Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/libs/Writer/Generated/Writer.Models.ApplicationInput.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@ public sealed partial class ApplicationInput
/// <param name="inputType">
/// Type of input field determining its behavior and validation rules.
/// </param>
/// <param name="description">
/// Human-readable description of the input field's purpose.
/// </param>
/// <param name="required">
/// Indicates if this input field is mandatory.
/// </param>
/// <param name="description">
/// Human-readable description of the input field's purpose.
/// </param>
/// <param name="options">
/// Type-specific configuration options for input fields.
/// </param>
Expand All @@ -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;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,6 @@ public sealed partial class ApplicationWithInputs
/// <param name="name">
/// Display name of the application.
/// </param>
/// <param name="type">
/// The type of no-code application.
/// </param>
/// <param name="status">
/// Current deployment status of the application. Note: currently only `deployed` applications are returned.
/// </param>
Expand All @@ -94,6 +91,9 @@ public sealed partial class ApplicationWithInputs
/// <param name="updatedAt">
/// Timestamp when the application was last updated.
/// </param>
/// <param name="type">
/// The type of no-code application.
/// </param>
/// <param name="lastDeployedAt">
/// Timestamp when the application was last deployed.
/// </param>
Expand All @@ -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;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,6 @@ public sealed partial class ChatCompletionChunk
/// <param name="id">
/// 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.
/// </param>
/// <param name="object">
/// The type of object returned, which is always `chat.completion.chunk` for streaming chat responses.
/// </param>
/// <param name="choices">
/// An array of objects representing the different outcomes or results produced by the model based on the input provided.
/// </param>
Expand All @@ -86,6 +83,9 @@ public sealed partial class ChatCompletionChunk
/// <param name="model">
/// Identifies the specific model used to generate the response.
/// </param>
/// <param name="object">
/// The type of object returned, which is always `chat.completion.chunk` for streaming chat responses.
/// </param>
/// <param name="usage">
/// Usage information for the chat completion response. Please note that at this time Knowledge Graph tool usage is not included in this object.
/// </param>
Expand All @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ public sealed partial class ChatCompletionStreamingChoice
/// The index of the choice in the list of completions generated by the model.
/// </param>
/// <param name="finishReason"></param>
/// <param name="message">
/// <param name="delta">
/// The chat completion message from the model. Note: this field is deprecated for streaming. Use `delta` instead.
/// </param>
/// <param name="delta">
/// <param name="message">
/// The chat completion message from the model. Note: this field is deprecated for streaming. Use `delta` instead.
/// </param>
/// <param name="logprobs"></param>
Expand All @@ -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;
}

Expand Down
8 changes: 4 additions & 4 deletions src/libs/Writer/Generated/Writer.Models.ChatMessage.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,12 @@ public sealed partial class ChatMessage
/// <summary>
/// Initializes a new instance of the <see cref="ChatMessage" /> class.
/// </summary>
/// <param name="content">
/// 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).
/// </param>
/// <param name="role">
/// 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`.
/// </param>
/// <param name="content">
/// 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).
/// </param>
/// <param name="name">
/// An optional name for the message sender. Useful for identifying different users, personas, or tools in multi-participant conversations.
/// </param>
Expand All @@ -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;
Expand Down
8 changes: 4 additions & 4 deletions src/libs/Writer/Generated/Writer.Models.ChatResponse.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,6 @@ public sealed partial class ChatResponse
/// <param name="id">
/// 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.
/// </param>
/// <param name="object">
/// The type of object returned, which is always `chat.completion` for chat responses.
/// </param>
/// <param name="choices">
/// An array of objects representing the different outcomes or results produced by the model based on the input provided.
/// </param>
Expand All @@ -86,6 +83,9 @@ public sealed partial class ChatResponse
/// <param name="model">
/// Identifies the specific model used to generate the response.
/// </param>
/// <param name="object">
/// The type of object returned, which is always `chat.completion` for chat responses.
/// </param>
/// <param name="usage">
/// Usage information for the chat completion response. Please note that at this time Knowledge Graph tool usage is not included in this object.
/// </param>
Expand All @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/libs/Writer/Generated/Writer.Models.Function.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,17 @@ public sealed partial class Function
/// <summary>
/// Initializes a new instance of the <see cref="Function" /> class.
/// </summary>
/// <param name="name"></param>
/// <param name="arguments"></param>
/// <param name="name"></param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
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));
}

/// <summary>
Expand Down
8 changes: 4 additions & 4 deletions src/libs/Writer/Generated/Writer.Models.FunctionTool.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,21 @@ public sealed partial class FunctionTool
/// <summary>
/// Initializes a new instance of the <see cref="FunctionTool" /> class.
/// </summary>
/// <param name="type">
/// The type of tool.
/// </param>
/// <param name="function">
/// A tool that uses a custom function.
/// </param>
/// <param name="type">
/// The type of tool.
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
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));
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,21 @@ public sealed partial class GenerateApplicationResponse
/// <summary>
/// Initializes a new instance of the <see cref="GenerateApplicationResponse" /> class.
/// </summary>
/// <param name="title">
/// The name of the output field.
/// </param>
/// <param name="suggestion">
/// The response from the model specified in the application.
/// </param>
/// <param name="title">
/// The name of the output field.
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
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));
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@ public sealed partial class GetApplicationsResponse
/// <param name="data">
/// List of application objects with their configurations.
/// </param>
/// <param name="hasMore">
/// Indicates if there are more results available in subsequent pages.
/// </param>
/// <param name="firstId">
/// UUID of the first application in the current page.
/// </param>
/// <param name="lastId">
/// UUID of the last application in the current page.
/// </param>
/// <param name="hasMore">
/// Indicates if there are more results available in subsequent pages.
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
Expand All @@ -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;
}

/// <summary>
Expand Down
8 changes: 4 additions & 4 deletions src/libs/Writer/Generated/Writer.Models.Graph.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,16 +77,16 @@ public sealed partial class Graph
/// <param name="name">
/// The name of the Knowledge Graph.
/// </param>
/// <param name="description">
/// A description of the Knowledge Graph.
/// </param>
/// <param name="fileStatus"></param>
/// <param name="type">
/// The type of Knowledge Graph:<br/>
/// - `manual`: files are uploaded via UI or API<br/>
/// - `connector`: files are uploaded via a data connector such as Google Drive or Confluence<br/>
/// - `web`: URLs are connected to the Knowledge Graph
/// </param>
/// <param name="description">
/// A description of the Knowledge Graph.
/// </param>
/// <param name="urls">
/// An array of web connector URLs associated with this Knowledge Graph.
/// </param>
Expand All @@ -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;
}

Expand Down
8 changes: 4 additions & 4 deletions src/libs/Writer/Generated/Writer.Models.GraphFunction.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@ public sealed partial class GraphFunction
/// <summary>
/// Initializes a new instance of the <see cref="GraphFunction" /> class.
/// </summary>
/// <param name="description">
/// A description of the graph content.
/// </param>
/// <param name="graphIds">
/// An array of graph IDs to use in the tool.
/// </param>
/// <param name="subqueries">
/// Boolean to indicate whether to include subqueries in the response.
/// </param>
/// <param name="description">
/// A description of the graph content.
/// </param>
/// <param name="queryConfig">
/// Configuration options for Knowledge Graph queries.
/// </param>
Expand All @@ -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;
}

Expand Down
8 changes: 4 additions & 4 deletions src/libs/Writer/Generated/Writer.Models.GraphTool.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,21 @@ public sealed partial class GraphTool
/// <summary>
/// Initializes a new instance of the <see cref="GraphTool" /> class.
/// </summary>
/// <param name="type">
/// The type of tool.
/// </param>
/// <param name="function">
/// A tool that uses Knowledge Graphs as context for responses.
/// </param>
/// <param name="type">
/// The type of tool.
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
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));
}

/// <summary>
Expand Down
8 changes: 4 additions & 4 deletions src/libs/Writer/Generated/Writer.Models.GraphsResponse.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ public sealed partial class GraphsResponse
/// Initializes a new instance of the <see cref="GraphsResponse" /> class.
/// </summary>
/// <param name="data"></param>
/// <param name="hasMore">
/// Indicates if there are more Knowledge Graphs available beyond the current page.
/// </param>
/// <param name="firstId">
/// The ID of the first Knowledge Graph in the current response.
/// </param>
/// <param name="lastId">
/// The ID of the last Knowledge Graph in the current response.
/// </param>
/// <param name="hasMore">
/// Indicates if there are more Knowledge Graphs available beyond the current page.
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
Expand All @@ -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;
}

/// <summary>
Expand Down
Loading