diff --git a/src/libs/Writer/Generated/Writer.Models.ApplicationInput.g.cs b/src/libs/Writer/Generated/Writer.Models.ApplicationInput.g.cs
index 6ca56fd..bef1258 100644
--- a/src/libs/Writer/Generated/Writer.Models.ApplicationInput.g.cs
+++ b/src/libs/Writer/Generated/Writer.Models.ApplicationInput.g.cs
@@ -58,12 +58,12 @@ public sealed partial class ApplicationInput
///
/// Type of input field determining its behavior and validation rules.
///
- ///
- /// Human-readable description of the input field's purpose.
- ///
///
/// Indicates if this input field is mandatory.
///
+ ///
+ /// Human-readable description of the input field's purpose.
+ ///
///
/// Type-specific configuration options for input fields.
///
@@ -79,8 +79,8 @@ public ApplicationInput(
{
this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name));
this.InputType = inputType;
- this.Required = required;
this.Description = description;
+ this.Required = required;
this.Options = options;
}
diff --git a/src/libs/Writer/Generated/Writer.Models.ApplicationWithInputs.g.cs b/src/libs/Writer/Generated/Writer.Models.ApplicationWithInputs.g.cs
index eff29fc..4e1432a 100644
--- a/src/libs/Writer/Generated/Writer.Models.ApplicationWithInputs.g.cs
+++ b/src/libs/Writer/Generated/Writer.Models.ApplicationWithInputs.g.cs
@@ -79,9 +79,6 @@ public sealed partial class ApplicationWithInputs
///
/// Display name of the application.
///
- ///
- /// The type of no-code application.
- ///
///
/// Current deployment status of the application. Note: currently only `deployed` applications are returned.
///
@@ -94,6 +91,9 @@ public sealed partial class ApplicationWithInputs
///
/// Timestamp when the application was last updated.
///
+ ///
+ /// The type of no-code application.
+ ///
///
/// Timestamp when the application was last deployed.
///
@@ -112,11 +112,11 @@ public ApplicationWithInputs(
{
this.Id = id;
this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name));
+ this.Type = type;
this.Status = status;
this.Inputs = inputs ?? throw new global::System.ArgumentNullException(nameof(inputs));
this.CreatedAt = createdAt;
this.UpdatedAt = updatedAt;
- this.Type = type;
this.LastDeployedAt = lastDeployedAt;
}
diff --git a/src/libs/Writer/Generated/Writer.Models.ChatCompletionChunk.g.cs b/src/libs/Writer/Generated/Writer.Models.ChatCompletionChunk.g.cs
index ce32f77..a6d93c8 100644
--- a/src/libs/Writer/Generated/Writer.Models.ChatCompletionChunk.g.cs
+++ b/src/libs/Writer/Generated/Writer.Models.ChatCompletionChunk.g.cs
@@ -74,9 +74,6 @@ public sealed partial class ChatCompletionChunk
///
/// A globally unique identifier (UUID) for the response generated by the API. This ID can be used to reference the specific operation or transaction within the system for tracking or debugging purposes.
///
- ///
- /// The type of object returned, which is always `chat.completion.chunk` for streaming chat responses.
- ///
///
/// An array of objects representing the different outcomes or results produced by the model based on the input provided.
///
@@ -86,6 +83,9 @@ public sealed partial class ChatCompletionChunk
///
/// Identifies the specific model used to generate the response.
///
+ ///
+ /// The type of object returned, which is always `chat.completion.chunk` for streaming chat responses.
+ ///
///
/// Usage information for the chat completion response. Please note that at this time Knowledge Graph tool usage is not included in this object.
///
@@ -105,10 +105,10 @@ public ChatCompletionChunk(
string? serviceTier)
{
this.Id = id;
+ this.Object = @object;
this.Choices = choices ?? throw new global::System.ArgumentNullException(nameof(choices));
this.Created = created;
this.Model = model ?? throw new global::System.ArgumentNullException(nameof(model));
- this.Object = @object;
this.Usage = usage;
this.SystemFingerprint = systemFingerprint;
this.ServiceTier = serviceTier;
diff --git a/src/libs/Writer/Generated/Writer.Models.ChatCompletionStreamingChoice.g.cs b/src/libs/Writer/Generated/Writer.Models.ChatCompletionStreamingChoice.g.cs
index 4fcf90d..9c2acd9 100644
--- a/src/libs/Writer/Generated/Writer.Models.ChatCompletionStreamingChoice.g.cs
+++ b/src/libs/Writer/Generated/Writer.Models.ChatCompletionStreamingChoice.g.cs
@@ -55,10 +55,10 @@ public sealed partial class ChatCompletionStreamingChoice
/// The index of the choice in the list of completions generated by the model.
///
///
- ///
+ ///
/// The chat completion message from the model. Note: this field is deprecated for streaming. Use `delta` instead.
///
- ///
+ ///
/// The chat completion message from the model. Note: this field is deprecated for streaming. Use `delta` instead.
///
///
@@ -74,8 +74,8 @@ public ChatCompletionStreamingChoice(
{
this.Index = index;
this.FinishReason = finishReason;
- this.Delta = delta ?? throw new global::System.ArgumentNullException(nameof(delta));
this.Message = message;
+ this.Delta = delta ?? throw new global::System.ArgumentNullException(nameof(delta));
this.Logprobs = logprobs;
}
diff --git a/src/libs/Writer/Generated/Writer.Models.ChatMessage.g.cs b/src/libs/Writer/Generated/Writer.Models.ChatMessage.g.cs
index 724e7bc..b3478cc 100644
--- a/src/libs/Writer/Generated/Writer.Models.ChatMessage.g.cs
+++ b/src/libs/Writer/Generated/Writer.Models.ChatMessage.g.cs
@@ -62,12 +62,12 @@ public sealed partial class ChatMessage
///
/// Initializes a new instance of the class.
///
- ///
- /// The content of the message. Can be either a string (for text-only messages) or an array of content fragments (for mixed text and image messages).
- ///
///
/// The role of the chat message. You can provide a system prompt by setting the role to `system`, or specify that a message is the result of a [tool call](https://dev.writer.com/home/tool-calling) by setting the role to `tool`.
///
+ ///
+ /// The content of the message. Can be either a string (for text-only messages) or an array of content fragments (for mixed text and image messages).
+ ///
///
/// An optional name for the message sender. Useful for identifying different users, personas, or tools in multi-participant conversations.
///
@@ -87,8 +87,8 @@ public ChatMessage(
global::Writer.GraphData? graphData,
string? refusal)
{
- this.Role = role;
this.Content = content;
+ this.Role = role;
this.Name = name;
this.ToolCallId = toolCallId;
this.ToolCalls = toolCalls;
diff --git a/src/libs/Writer/Generated/Writer.Models.ChatResponse.g.cs b/src/libs/Writer/Generated/Writer.Models.ChatResponse.g.cs
index e7901bb..e040b42 100644
--- a/src/libs/Writer/Generated/Writer.Models.ChatResponse.g.cs
+++ b/src/libs/Writer/Generated/Writer.Models.ChatResponse.g.cs
@@ -74,9 +74,6 @@ public sealed partial class ChatResponse
///
/// A globally unique identifier (UUID) for the response generated by the API. This ID can be used to reference the specific operation or transaction within the system for tracking or debugging purposes.
///
- ///
- /// The type of object returned, which is always `chat.completion` for chat responses.
- ///
///
/// An array of objects representing the different outcomes or results produced by the model based on the input provided.
///
@@ -86,6 +83,9 @@ public sealed partial class ChatResponse
///
/// Identifies the specific model used to generate the response.
///
+ ///
+ /// The type of object returned, which is always `chat.completion` for chat responses.
+ ///
///
/// Usage information for the chat completion response. Please note that at this time Knowledge Graph tool usage is not included in this object.
///
@@ -109,10 +109,10 @@ public ChatResponse(
string? serviceTier)
{
this.Id = id;
+ this.Object = @object;
this.Choices = choices ?? throw new global::System.ArgumentNullException(nameof(choices));
this.Created = created;
this.Model = model ?? throw new global::System.ArgumentNullException(nameof(model));
- this.Object = @object;
this.Usage = usage;
this.SystemFingerprint = systemFingerprint;
this.ServiceTier = serviceTier;
diff --git a/src/libs/Writer/Generated/Writer.Models.Function.g.cs b/src/libs/Writer/Generated/Writer.Models.Function.g.cs
index 378c2c4..1df0f61 100644
--- a/src/libs/Writer/Generated/Writer.Models.Function.g.cs
+++ b/src/libs/Writer/Generated/Writer.Models.Function.g.cs
@@ -30,8 +30,8 @@ public sealed partial class Function
///
/// Initializes a new instance of the class.
///
- ///
///
+ ///
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
@@ -39,8 +39,8 @@ public Function(
string arguments,
string? name)
{
- this.Arguments = arguments ?? throw new global::System.ArgumentNullException(nameof(arguments));
this.Name = name;
+ this.Arguments = arguments ?? throw new global::System.ArgumentNullException(nameof(arguments));
}
///
diff --git a/src/libs/Writer/Generated/Writer.Models.FunctionTool.g.cs b/src/libs/Writer/Generated/Writer.Models.FunctionTool.g.cs
index 720ae46..819e375 100644
--- a/src/libs/Writer/Generated/Writer.Models.FunctionTool.g.cs
+++ b/src/libs/Writer/Generated/Writer.Models.FunctionTool.g.cs
@@ -31,12 +31,12 @@ public sealed partial class FunctionTool
///
/// Initializes a new instance of the class.
///
- ///
- /// The type of tool.
- ///
///
/// A tool that uses a custom function.
///
+ ///
+ /// The type of tool.
+ ///
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
@@ -44,8 +44,8 @@ public FunctionTool(
global::Writer.ToolFunction function,
global::Writer.FunctionToolType type)
{
- this.Function = function ?? throw new global::System.ArgumentNullException(nameof(function));
this.Type = type;
+ this.Function = function ?? throw new global::System.ArgumentNullException(nameof(function));
}
///
diff --git a/src/libs/Writer/Generated/Writer.Models.GenerateApplicationResponse.g.cs b/src/libs/Writer/Generated/Writer.Models.GenerateApplicationResponse.g.cs
index d401390..6bf7ec4 100644
--- a/src/libs/Writer/Generated/Writer.Models.GenerateApplicationResponse.g.cs
+++ b/src/libs/Writer/Generated/Writer.Models.GenerateApplicationResponse.g.cs
@@ -30,12 +30,12 @@ public sealed partial class GenerateApplicationResponse
///
/// Initializes a new instance of the class.
///
- ///
- /// The name of the output field.
- ///
///
/// The response from the model specified in the application.
///
+ ///
+ /// The name of the output field.
+ ///
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
@@ -43,8 +43,8 @@ public GenerateApplicationResponse(
string suggestion,
string? title)
{
- this.Suggestion = suggestion ?? throw new global::System.ArgumentNullException(nameof(suggestion));
this.Title = title;
+ this.Suggestion = suggestion ?? throw new global::System.ArgumentNullException(nameof(suggestion));
}
///
diff --git a/src/libs/Writer/Generated/Writer.Models.GetApplicationsResponse.g.cs b/src/libs/Writer/Generated/Writer.Models.GetApplicationsResponse.g.cs
index adebbd6..e7f0f80 100644
--- a/src/libs/Writer/Generated/Writer.Models.GetApplicationsResponse.g.cs
+++ b/src/libs/Writer/Generated/Writer.Models.GetApplicationsResponse.g.cs
@@ -46,15 +46,15 @@ public sealed partial class GetApplicationsResponse
///
/// List of application objects with their configurations.
///
+ ///
+ /// Indicates if there are more results available in subsequent pages.
+ ///
///
/// UUID of the first application in the current page.
///
///
/// UUID of the last application in the current page.
///
- ///
- /// Indicates if there are more results available in subsequent pages.
- ///
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
@@ -65,9 +65,9 @@ public GetApplicationsResponse(
global::System.Guid? lastId)
{
this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data));
- this.HasMore = hasMore;
this.FirstId = firstId;
this.LastId = lastId;
+ this.HasMore = hasMore;
}
///
diff --git a/src/libs/Writer/Generated/Writer.Models.Graph.g.cs b/src/libs/Writer/Generated/Writer.Models.Graph.g.cs
index 399397c..7f10f1c 100644
--- a/src/libs/Writer/Generated/Writer.Models.Graph.g.cs
+++ b/src/libs/Writer/Generated/Writer.Models.Graph.g.cs
@@ -77,9 +77,6 @@ public sealed partial class Graph
///
/// The name of the Knowledge Graph.
///
- ///
- /// A description of the Knowledge Graph.
- ///
///
///
/// The type of Knowledge Graph:
@@ -87,6 +84,9 @@ public sealed partial class Graph
/// - `connector`: files are uploaded via a data connector such as Google Drive or Confluence
/// - `web`: URLs are connected to the Knowledge Graph
///
+ ///
+ /// A description of the Knowledge Graph.
+ ///
///
/// An array of web connector URLs associated with this Knowledge Graph.
///
@@ -105,9 +105,9 @@ public Graph(
this.Id = id;
this.CreatedAt = createdAt;
this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name));
+ this.Description = description;
this.FileStatus = fileStatus ?? throw new global::System.ArgumentNullException(nameof(fileStatus));
this.Type = type;
- this.Description = description;
this.Urls = urls;
}
diff --git a/src/libs/Writer/Generated/Writer.Models.GraphFunction.g.cs b/src/libs/Writer/Generated/Writer.Models.GraphFunction.g.cs
index 4bf262d..2ec3d87 100644
--- a/src/libs/Writer/Generated/Writer.Models.GraphFunction.g.cs
+++ b/src/libs/Writer/Generated/Writer.Models.GraphFunction.g.cs
@@ -43,15 +43,15 @@ public sealed partial class GraphFunction
///
/// Initializes a new instance of the class.
///
- ///
- /// A description of the graph content.
- ///
///
/// An array of graph IDs to use in the tool.
///
///
/// Boolean to indicate whether to include subqueries in the response.
///
+ ///
+ /// A description of the graph content.
+ ///
///
/// Configuration options for Knowledge Graph queries.
///
@@ -64,9 +64,9 @@ public GraphFunction(
string? description,
global::Writer.GraphQueryConfig? queryConfig)
{
+ this.Description = description;
this.GraphIds = graphIds ?? throw new global::System.ArgumentNullException(nameof(graphIds));
this.Subqueries = subqueries;
- this.Description = description;
this.QueryConfig = queryConfig;
}
diff --git a/src/libs/Writer/Generated/Writer.Models.GraphTool.g.cs b/src/libs/Writer/Generated/Writer.Models.GraphTool.g.cs
index 7782b9e..e7d0092 100644
--- a/src/libs/Writer/Generated/Writer.Models.GraphTool.g.cs
+++ b/src/libs/Writer/Generated/Writer.Models.GraphTool.g.cs
@@ -31,12 +31,12 @@ public sealed partial class GraphTool
///
/// Initializes a new instance of the class.
///
- ///
- /// The type of tool.
- ///
///
/// A tool that uses Knowledge Graphs as context for responses.
///
+ ///
+ /// The type of tool.
+ ///
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
@@ -44,8 +44,8 @@ public GraphTool(
global::Writer.GraphFunction function,
global::Writer.GraphToolType type)
{
- this.Function = function ?? throw new global::System.ArgumentNullException(nameof(function));
this.Type = type;
+ this.Function = function ?? throw new global::System.ArgumentNullException(nameof(function));
}
///
diff --git a/src/libs/Writer/Generated/Writer.Models.GraphsResponse.g.cs b/src/libs/Writer/Generated/Writer.Models.GraphsResponse.g.cs
index ccc266e..35385f7 100644
--- a/src/libs/Writer/Generated/Writer.Models.GraphsResponse.g.cs
+++ b/src/libs/Writer/Generated/Writer.Models.GraphsResponse.g.cs
@@ -44,15 +44,15 @@ public sealed partial class GraphsResponse
/// Initializes a new instance of the class.
///
///
+ ///
+ /// Indicates if there are more Knowledge Graphs available beyond the current page.
+ ///
///
/// The ID of the first Knowledge Graph in the current response.
///
///
/// The ID of the last Knowledge Graph in the current response.
///
- ///
- /// Indicates if there are more Knowledge Graphs available beyond the current page.
- ///
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
@@ -63,9 +63,9 @@ public GraphsResponse(
global::System.Guid? lastId)
{
this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data));
- this.HasMore = hasMore;
this.FirstId = firstId;
this.LastId = lastId;
+ this.HasMore = hasMore;
}
///
diff --git a/src/libs/Writer/Generated/Writer.Models.ImageFragment.g.cs b/src/libs/Writer/Generated/Writer.Models.ImageFragment.g.cs
index bae7528..bffbc3a 100644
--- a/src/libs/Writer/Generated/Writer.Models.ImageFragment.g.cs
+++ b/src/libs/Writer/Generated/Writer.Models.ImageFragment.g.cs
@@ -31,12 +31,12 @@ public sealed partial class ImageFragment
///
/// Initializes a new instance of the class.
///
- ///
- /// The type of content fragment. Must be `image_url` for image fragments.
- ///
///
/// The image URL object containing the location of the image.
///
+ ///
+ /// The type of content fragment. Must be `image_url` for image fragments.
+ ///
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
@@ -44,8 +44,8 @@ public ImageFragment(
global::Writer.ImageFragmentImageUrl imageUrl,
global::Writer.ImageFragmentType type)
{
- this.ImageUrl = imageUrl ?? throw new global::System.ArgumentNullException(nameof(imageUrl));
this.Type = type;
+ this.ImageUrl = imageUrl ?? throw new global::System.ArgumentNullException(nameof(imageUrl));
}
///
diff --git a/src/libs/Writer/Generated/Writer.Models.LlmTool.g.cs b/src/libs/Writer/Generated/Writer.Models.LlmTool.g.cs
index 0258cbe..2618c5d 100644
--- a/src/libs/Writer/Generated/Writer.Models.LlmTool.g.cs
+++ b/src/libs/Writer/Generated/Writer.Models.LlmTool.g.cs
@@ -31,12 +31,12 @@ public sealed partial class LlmTool
///
/// Initializes a new instance of the class.
///
- ///
- /// The type of tool.
- ///
///
/// A tool that uses another Writer model to generate a response.
///
+ ///
+ /// The type of tool.
+ ///
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
@@ -44,8 +44,8 @@ public LlmTool(
global::Writer.LlmFunction function,
global::Writer.LlmToolType type)
{
- this.Function = function ?? throw new global::System.ArgumentNullException(nameof(function));
this.Type = type;
+ this.Function = function ?? throw new global::System.ArgumentNullException(nameof(function));
}
///
diff --git a/src/libs/Writer/Generated/Writer.Models.LogprobsToken.g.cs b/src/libs/Writer/Generated/Writer.Models.LogprobsToken.g.cs
index 8632f8f..38ad337 100644
--- a/src/libs/Writer/Generated/Writer.Models.LogprobsToken.g.cs
+++ b/src/libs/Writer/Generated/Writer.Models.LogprobsToken.g.cs
@@ -46,8 +46,8 @@ public sealed partial class LogprobsToken
///
///
///
- ///
///
+ ///
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
@@ -59,8 +59,8 @@ public LogprobsToken(
{
this.Token = token ?? throw new global::System.ArgumentNullException(nameof(token));
this.Logprob = logprob;
- this.TopLogprobs = topLogprobs ?? throw new global::System.ArgumentNullException(nameof(topLogprobs));
this.Bytes = bytes;
+ this.TopLogprobs = topLogprobs ?? throw new global::System.ArgumentNullException(nameof(topLogprobs));
}
///
diff --git a/src/libs/Writer/Generated/Writer.Models.MedicalComprehendAttribute.g.cs b/src/libs/Writer/Generated/Writer.Models.MedicalComprehendAttribute.g.cs
index 1cc0830..5d1bc17 100644
--- a/src/libs/Writer/Generated/Writer.Models.MedicalComprehendAttribute.g.cs
+++ b/src/libs/Writer/Generated/Writer.Models.MedicalComprehendAttribute.g.cs
@@ -85,7 +85,6 @@ public sealed partial class MedicalComprehendAttribute
///
/// Initializes a new instance of the class.
///
- ///
///
///
///
@@ -93,8 +92,9 @@ public sealed partial class MedicalComprehendAttribute
///
///
///
- ///
///
+ ///
+ ///
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
@@ -110,6 +110,7 @@ public MedicalComprehendAttribute(
string? category,
string? relationshipType)
{
+ this.Category = category;
this.RelationshipScore = relationshipScore;
this.BeginOffset = beginOffset;
this.EndOffset = endOffset;
@@ -117,9 +118,8 @@ public MedicalComprehendAttribute(
this.Traits = traits ?? throw new global::System.ArgumentNullException(nameof(traits));
this.Concepts = concepts ?? throw new global::System.ArgumentNullException(nameof(concepts));
this.Score = score;
- this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type));
- this.Category = category;
this.RelationshipType = relationshipType;
+ this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type));
}
///
diff --git a/src/libs/Writer/Generated/Writer.Models.QuestionRequest.g.cs b/src/libs/Writer/Generated/Writer.Models.QuestionRequest.g.cs
index 251e200..91c0331 100644
--- a/src/libs/Writer/Generated/Writer.Models.QuestionRequest.g.cs
+++ b/src/libs/Writer/Generated/Writer.Models.QuestionRequest.g.cs
@@ -54,13 +54,13 @@ public sealed partial class QuestionRequest
///
/// The unique identifiers of the Knowledge Graphs to query.
///
+ ///
+ /// The question to answer using the Knowledge Graph.
+ ///
///
/// Specify whether to include subqueries.
/// Default Value: false
///
- ///
- /// The question to answer using the Knowledge Graph.
- ///
///
/// Determines whether the model's output should be streamed. If true, the output is generated and sent incrementally, which can be useful for real-time applications.
/// Default Value: false
@@ -79,8 +79,8 @@ public QuestionRequest(
global::Writer.GraphQueryConfig? queryConfig)
{
this.GraphIds = graphIds ?? throw new global::System.ArgumentNullException(nameof(graphIds));
- this.Question = question ?? throw new global::System.ArgumentNullException(nameof(question));
this.Subqueries = subqueries;
+ this.Question = question ?? throw new global::System.ArgumentNullException(nameof(question));
this.Stream = stream;
this.QueryConfig = queryConfig;
}
diff --git a/src/libs/Writer/Generated/Writer.Models.TextFragment.g.cs b/src/libs/Writer/Generated/Writer.Models.TextFragment.g.cs
index c7d656a..19e6733 100644
--- a/src/libs/Writer/Generated/Writer.Models.TextFragment.g.cs
+++ b/src/libs/Writer/Generated/Writer.Models.TextFragment.g.cs
@@ -31,12 +31,12 @@ public sealed partial class TextFragment
///
/// Initializes a new instance of the class.
///
- ///
- /// The type of content fragment. Must be `text` for text fragments.
- ///
///
/// The actual text content of the message fragment.
///
+ ///
+ /// The type of content fragment. Must be `text` for text fragments.
+ ///
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
@@ -44,8 +44,8 @@ public TextFragment(
string text,
global::Writer.TextFragmentType type)
{
- this.Text = text ?? throw new global::System.ArgumentNullException(nameof(text));
this.Type = type;
+ this.Text = text ?? throw new global::System.ArgumentNullException(nameof(text));
}
///
diff --git a/src/libs/Writer/Generated/Writer.Models.ToolCall.g.cs b/src/libs/Writer/Generated/Writer.Models.ToolCall.g.cs
index 6a63ca4..12819ab 100644
--- a/src/libs/Writer/Generated/Writer.Models.ToolCall.g.cs
+++ b/src/libs/Writer/Generated/Writer.Models.ToolCall.g.cs
@@ -44,10 +44,10 @@ public sealed partial class ToolCall
///
/// Initializes a new instance of the class.
///
- ///
///
- ///
///
+ ///
+ ///
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
@@ -57,10 +57,10 @@ public ToolCall(
int? index,
global::Writer.ToolCallType type)
{
- this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id));
- this.Function = function ?? throw new global::System.ArgumentNullException(nameof(function));
this.Index = index;
+ this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id));
this.Type = type;
+ this.Function = function ?? throw new global::System.ArgumentNullException(nameof(function));
}
///
diff --git a/src/libs/Writer/Generated/Writer.Models.ToolFunction.g.cs b/src/libs/Writer/Generated/Writer.Models.ToolFunction.g.cs
index e9565d4..8a032bc 100644
--- a/src/libs/Writer/Generated/Writer.Models.ToolFunction.g.cs
+++ b/src/libs/Writer/Generated/Writer.Models.ToolFunction.g.cs
@@ -36,12 +36,12 @@ public sealed partial class ToolFunction
///
/// Initializes a new instance of the class.
///
- ///
- /// Description of the function.
- ///
///
/// Name of the function.
///
+ ///
+ /// Description of the function.
+ ///
///
/// The parameters of the function.
///
@@ -53,8 +53,8 @@ public ToolFunction(
string? description,
object? parameters)
{
- this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name));
this.Description = description;
+ this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name));
this.Parameters = parameters;
}
diff --git a/src/libs/Writer/Generated/Writer.Models.TranslationFunction.g.cs b/src/libs/Writer/Generated/Writer.Models.TranslationFunction.g.cs
index 4d9712f..b4a75f4 100644
--- a/src/libs/Writer/Generated/Writer.Models.TranslationFunction.g.cs
+++ b/src/libs/Writer/Generated/Writer.Models.TranslationFunction.g.cs
@@ -57,15 +57,6 @@ public sealed partial class TranslationFunction
///
/// Initializes a new instance of the class.
///
- ///
- /// The model to use for translation.
- ///
- ///
- /// Optional. The [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) language code of the original text to translate. For example, `en` for English, `zh` for Chinese, `fr` for French, `es` for Spanish. If the language has a variant, the code appends the two-digit [ISO-3166 country code](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes). If you do not provide a language code, the LLM detects the language of the text.
- ///
- ///
- /// Optional. The [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) language code of the target language for the translation. For example, `en` for English, `zh` for Chinese, `fr` for French, `es` for Spanish. If the language has a variant, the code appends the two-digit [ISO-3166 country code](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes). If you do not provide a language code, the LLM uses the content of the chat message to determine the target language.
- ///
///
/// Whether to use formal or informal language in the translation. See the [list of languages that support formality](https://dev.writer.com/api-reference/translation-api/language-support#formality). If the language does not support formality, this parameter is ignored.
///
@@ -75,6 +66,15 @@ public sealed partial class TranslationFunction
///
/// Whether to mask profane words in the translated text. See the [list of languages that do not support profanity masking](https://dev.writer.com/api-reference/translation-api/language-support#profanity-masking). If the language does not support profanity masking, this parameter is ignored.
///
+ ///
+ /// The model to use for translation.
+ ///
+ ///
+ /// Optional. The [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) language code of the original text to translate. For example, `en` for English, `zh` for Chinese, `fr` for French, `es` for Spanish. If the language has a variant, the code appends the two-digit [ISO-3166 country code](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes). If you do not provide a language code, the LLM detects the language of the text.
+ ///
+ ///
+ /// Optional. The [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) language code of the target language for the translation. For example, `en` for English, `zh` for Chinese, `fr` for French, `es` for Spanish. If the language has a variant, the code appends the two-digit [ISO-3166 country code](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes). If you do not provide a language code, the LLM uses the content of the chat message to determine the target language.
+ ///
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
@@ -86,12 +86,12 @@ public TranslationFunction(
string? sourceLanguageCode,
string? targetLanguageCode)
{
- this.Formality = formality;
- this.LengthControl = lengthControl;
- this.MaskProfanity = maskProfanity;
this.Model = model;
this.SourceLanguageCode = sourceLanguageCode;
this.TargetLanguageCode = targetLanguageCode;
+ this.Formality = formality;
+ this.LengthControl = lengthControl;
+ this.MaskProfanity = maskProfanity;
}
///
diff --git a/src/libs/Writer/Generated/Writer.Models.TranslationRequest.g.cs b/src/libs/Writer/Generated/Writer.Models.TranslationRequest.g.cs
index a661aee..4576e18 100644
--- a/src/libs/Writer/Generated/Writer.Models.TranslationRequest.g.cs
+++ b/src/libs/Writer/Generated/Writer.Models.TranslationRequest.g.cs
@@ -66,9 +66,6 @@ public sealed partial class TranslationRequest
///
/// Initializes a new instance of the class.
///
- ///
- /// The model to use for translation.
- ///
///
/// The [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) language code of the original text to translate. For example, `en` for English, `zh` for Chinese, `fr` for French, `es` for Spanish. If the language has a variant, the code appends the two-digit [ISO-3166 country code](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes). For example, Mexican Spanish is `es-MX`. See the [list of supported languages and language codes](https://dev.writer.com/api-reference/translation-api/language-support).
///
@@ -87,6 +84,9 @@ public sealed partial class TranslationRequest
///
/// Whether to mask profane words in the translated text. See the [list of languages that do not support profanity masking](https://dev.writer.com/api-reference/translation-api/language-support#profanity-masking). If the language does not support profanity masking, this parameter is ignored.
///
+ ///
+ /// The model to use for translation.
+ ///
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
@@ -99,13 +99,13 @@ public TranslationRequest(
bool maskProfanity,
global::Writer.TranslationRequestModel model)
{
+ this.Model = model;
this.SourceLanguageCode = sourceLanguageCode ?? throw new global::System.ArgumentNullException(nameof(sourceLanguageCode));
this.TargetLanguageCode = targetLanguageCode ?? throw new global::System.ArgumentNullException(nameof(targetLanguageCode));
this.Text = text ?? throw new global::System.ArgumentNullException(nameof(text));
this.Formality = formality;
this.LengthControl = lengthControl;
this.MaskProfanity = maskProfanity;
- this.Model = model;
}
///
diff --git a/src/libs/Writer/Generated/Writer.Models.TranslationTool.g.cs b/src/libs/Writer/Generated/Writer.Models.TranslationTool.g.cs
index 25ea34c..72948cb 100644
--- a/src/libs/Writer/Generated/Writer.Models.TranslationTool.g.cs
+++ b/src/libs/Writer/Generated/Writer.Models.TranslationTool.g.cs
@@ -31,12 +31,12 @@ public sealed partial class TranslationTool
///
/// Initializes a new instance of the class.
///
- ///
- /// The type of tool.
- ///
///
/// A tool that uses Palmyra Translate to translate text.
///
+ ///
+ /// The type of tool.
+ ///
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
@@ -44,8 +44,8 @@ public TranslationTool(
global::Writer.TranslationFunction function,
global::Writer.TranslationToolType type)
{
- this.Function = function ?? throw new global::System.ArgumentNullException(nameof(function));
this.Type = type;
+ this.Function = function ?? throw new global::System.ArgumentNullException(nameof(function));
}
///
diff --git a/src/libs/Writer/Generated/Writer.Models.UpdateGraphWebUrl.g.cs b/src/libs/Writer/Generated/Writer.Models.UpdateGraphWebUrl.g.cs
index f712b9e..7a405a0 100644
--- a/src/libs/Writer/Generated/Writer.Models.UpdateGraphWebUrl.g.cs
+++ b/src/libs/Writer/Generated/Writer.Models.UpdateGraphWebUrl.g.cs
@@ -41,12 +41,12 @@ public sealed partial class UpdateGraphWebUrl
///
/// The URL to be processed by the web connector.
///
- ///
- /// An array of URLs to exclude from processing within this web connector.
- ///
///
/// The type of web connector processing for a URL.
///
+ ///
+ /// An array of URLs to exclude from processing within this web connector.
+ ///
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
@@ -56,8 +56,8 @@ public UpdateGraphWebUrl(
global::System.Collections.Generic.IList? excludeUrls)
{
this.Url = url ?? throw new global::System.ArgumentNullException(nameof(url));
- this.Type = type;
this.ExcludeUrls = excludeUrls;
+ this.Type = type;
}
///
diff --git a/src/libs/Writer/Generated/Writer.Models.VisionRequest.g.cs b/src/libs/Writer/Generated/Writer.Models.VisionRequest.g.cs
index f16a386..96d9a72 100644
--- a/src/libs/Writer/Generated/Writer.Models.VisionRequest.g.cs
+++ b/src/libs/Writer/Generated/Writer.Models.VisionRequest.g.cs
@@ -38,13 +38,13 @@ public sealed partial class VisionRequest
///
/// Initializes a new instance of the class.
///
- ///
- /// The model to use for image analysis.
- ///
///
/// The prompt to use for the image analysis. The prompt must include the name of each image variable, surrounded by double curly braces (`{{}}`). For example, `Describe the difference between the image {{image_1}} and the image {{image_2}}`.
///
///
+ ///
+ /// The model to use for image analysis.
+ ///
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
@@ -53,9 +53,9 @@ public VisionRequest(
global::System.Collections.Generic.IList variables,
global::Writer.VisionRequestModel model)
{
+ this.Model = model;
this.Prompt = prompt ?? throw new global::System.ArgumentNullException(nameof(prompt));
this.Variables = variables ?? throw new global::System.ArgumentNullException(nameof(variables));
- this.Model = model;
}
///
diff --git a/src/libs/Writer/Generated/Writer.Models.VisionTool.g.cs b/src/libs/Writer/Generated/Writer.Models.VisionTool.g.cs
index 3348366..1cdbffd 100644
--- a/src/libs/Writer/Generated/Writer.Models.VisionTool.g.cs
+++ b/src/libs/Writer/Generated/Writer.Models.VisionTool.g.cs
@@ -31,12 +31,12 @@ public sealed partial class VisionTool
///
/// Initializes a new instance of the class.
///
- ///
- /// The type of tool.
- ///
///
/// A tool that uses Palmyra Vision to analyze images and documents. Supports JPG, PNG, PDF, and TXT files up to 7MB each.
///
+ ///
+ /// The type of tool.
+ ///
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
@@ -44,8 +44,8 @@ public VisionTool(
global::Writer.VisionFunction function,
global::Writer.VisionToolType type)
{
- this.Function = function ?? throw new global::System.ArgumentNullException(nameof(function));
this.Type = type;
+ this.Function = function ?? throw new global::System.ArgumentNullException(nameof(function));
}
///
diff --git a/src/libs/Writer/Generated/Writer.Models.WebConnectorUrl.g.cs b/src/libs/Writer/Generated/Writer.Models.WebConnectorUrl.g.cs
index 302d345..6787247 100644
--- a/src/libs/Writer/Generated/Writer.Models.WebConnectorUrl.g.cs
+++ b/src/libs/Writer/Generated/Writer.Models.WebConnectorUrl.g.cs
@@ -51,12 +51,12 @@ public sealed partial class WebConnectorUrl
///
/// The state of a web connector URL processing.
///
- ///
- /// An array of URLs to exclude from processing within this web connector.
- ///
///
/// The type of web connector processing for a URL.
///
+ ///
+ /// An array of URLs to exclude from processing within this web connector.
+ ///
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
@@ -68,8 +68,8 @@ public WebConnectorUrl(
{
this.Url = url ?? throw new global::System.ArgumentNullException(nameof(url));
this.Status = status ?? throw new global::System.ArgumentNullException(nameof(status));
- this.Type = type;
this.ExcludeUrls = excludeUrls;
+ this.Type = type;
}
///
diff --git a/src/libs/Writer/Generated/Writer.Models.WebSearchResponse.g.cs b/src/libs/Writer/Generated/Writer.Models.WebSearchResponse.g.cs
index 1e9867b..3aa6824 100644
--- a/src/libs/Writer/Generated/Writer.Models.WebSearchResponse.g.cs
+++ b/src/libs/Writer/Generated/Writer.Models.WebSearchResponse.g.cs
@@ -40,12 +40,12 @@ public sealed partial class WebSearchResponse
///
/// The search query that was submitted.
///
- ///
- /// Generated answer based on the search results. Not included if `include_answer` is `false`.
- ///
///
/// The search results found.
///
+ ///
+ /// Generated answer based on the search results. Not included if `include_answer` is `false`.
+ ///
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
@@ -55,8 +55,8 @@ public WebSearchResponse(
string? answer)
{
this.Query = query ?? throw new global::System.ArgumentNullException(nameof(query));
- this.Sources = sources ?? throw new global::System.ArgumentNullException(nameof(sources));
this.Answer = answer;
+ this.Sources = sources ?? throw new global::System.ArgumentNullException(nameof(sources));
}
///
diff --git a/src/libs/Writer/Generated/Writer.Models.WebSearchTool.g.cs b/src/libs/Writer/Generated/Writer.Models.WebSearchTool.g.cs
index 1646faf..d0ee18e 100644
--- a/src/libs/Writer/Generated/Writer.Models.WebSearchTool.g.cs
+++ b/src/libs/Writer/Generated/Writer.Models.WebSearchTool.g.cs
@@ -31,12 +31,12 @@ public sealed partial class WebSearchTool
///
/// Initializes a new instance of the class.
///
- ///
- /// The type of tool.
- ///
///
/// A tool that uses web search to find information.
///
+ ///
+ /// The type of tool.
+ ///
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
@@ -44,8 +44,8 @@ public WebSearchTool(
global::Writer.WebSearchFunction function,
global::Writer.WebSearchToolType type)
{
- this.Function = function ?? throw new global::System.ArgumentNullException(nameof(function));
this.Type = type;
+ this.Function = function ?? throw new global::System.ArgumentNullException(nameof(function));
}
///