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
Original file line number Diff line number Diff line change
Expand Up @@ -337,8 +337,8 @@ namespace tryAGI.OpenAI
typeof(global::tryAGI.OpenAI.JsonConverters.ComputerScreenshotImageTypeNullableJsonConverter),
typeof(global::tryAGI.OpenAI.JsonConverters.ComputerCallOutputItemParamTypeJsonConverter),
typeof(global::tryAGI.OpenAI.JsonConverters.ComputerCallOutputItemParamTypeNullableJsonConverter),
typeof(global::tryAGI.OpenAI.JsonConverters.ComputerEnvironment1JsonConverter),
typeof(global::tryAGI.OpenAI.JsonConverters.ComputerEnvironment1NullableJsonConverter),
typeof(global::tryAGI.OpenAI.JsonConverters.ComputerEnvironmentJsonConverter),
typeof(global::tryAGI.OpenAI.JsonConverters.ComputerEnvironmentNullableJsonConverter),
typeof(global::tryAGI.OpenAI.JsonConverters.ComputerScreenshotContentTypeJsonConverter),
typeof(global::tryAGI.OpenAI.JsonConverters.ComputerScreenshotContentTypeNullableJsonConverter),
typeof(global::tryAGI.OpenAI.JsonConverters.ComputerToolCallStatusJsonConverter),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ public partial class ConversationsClient
{
partial void PrepareCreateConversationArguments(
global::System.Net.Http.HttpClient httpClient,
global::tryAGI.OpenAI.CreateConversationRequest request);
global::tryAGI.OpenAI.CreateConversationBody request);
partial void PrepareCreateConversationRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
global::tryAGI.OpenAI.CreateConversationRequest request);
global::tryAGI.OpenAI.CreateConversationBody request);
partial void ProcessCreateConversationResponse(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage);
Expand All @@ -29,7 +29,7 @@ partial void ProcessCreateConversationResponseContent(
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::tryAGI.OpenAI.ApiException"></exception>
public async global::System.Threading.Tasks.Task<global::tryAGI.OpenAI.ConversationResource> CreateConversationAsync(
global::tryAGI.OpenAI.CreateConversationRequest request,
global::tryAGI.OpenAI.CreateConversationBody request,
global::System.Threading.CancellationToken cancellationToken = default)
{
request = request ?? throw new global::System.ArgumentNullException(nameof(request));
Expand Down Expand Up @@ -171,24 +171,17 @@ partial void ProcessCreateConversationResponseContent(
/// Create a conversation.
/// </summary>
/// <param name="items">
/// Initial items to include in the conversation context.<br/>
/// You may add up to 20 items at a time.
/// </param>
/// <param name="metadata">
/// Set of 16 key-value pairs that can be attached to an object. This can be<br/>
/// useful for storing additional information about the object in a structured<br/>
/// format, and querying for objects via API or the dashboard.<br/>
/// Keys are strings with a maximum length of 64 characters. Values are strings<br/>
/// with a maximum length of 512 characters.
/// Initial items to include in the conversation context. You may add up to 20 items at a time.
/// </param>
/// <param name="metadata"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::tryAGI.OpenAI.ConversationResource> CreateConversationAsync(
global::System.Collections.Generic.IList<global::tryAGI.OpenAI.InputItem>? items = default,
global::System.Collections.Generic.Dictionary<string, string>? metadata = default,
object? metadata = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::tryAGI.OpenAI.CreateConversationRequest
var __request = new global::tryAGI.OpenAI.CreateConversationBody
{
Items = items,
Metadata = metadata,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ partial void ProcessDeleteConversationResponseContent(

/// <summary>
/// Delete a conversation<br/>
/// Delete a conversation with the given ID.
/// Delete a conversation. Items in the conversation will not be deleted.
/// </summary>
/// <param name="conversationId">
/// Example: conv_123
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ partial void ProcessGetConversationResponseContent(

/// <summary>
/// Retrieve a conversation<br/>
/// Get a conversation with the given ID.
/// Get a conversation
/// </summary>
/// <param name="conversationId">
/// Example: conv_123
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ partial void ProcessUpdateConversationResponseContent(

/// <summary>
/// Update a conversation<br/>
/// Update a conversation's metadata with the given ID.
/// Update a conversation
/// </summary>
/// <param name="conversationId">
/// Example: conv_123
Expand Down Expand Up @@ -176,20 +176,23 @@ partial void ProcessUpdateConversationResponseContent(

/// <summary>
/// Update a conversation<br/>
/// Update a conversation's metadata with the given ID.
/// Update a conversation
/// </summary>
/// <param name="conversationId">
/// Example: conv_123
/// </param>
/// <param name="metadata">
/// Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard.<br/>
/// Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.
/// Set of 16 key-value pairs that can be attached to an object. This can be<br/>
/// useful for storing additional information about the object in a structured<br/>
/// format, and querying for objects via API or the dashboard.<br/>
/// Keys are strings with a maximum length of 64 characters. Values are strings<br/>
/// with a maximum length of 512 characters.
/// </param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::tryAGI.OpenAI.ConversationResource> UpdateConversationAsync(
string conversationId,
global::System.Collections.Generic.Dictionary<string, string> metadata,
global::System.Collections.Generic.Dictionary<string, string>? metadata,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::tryAGI.OpenAI.UpdateConversationBody
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,29 +12,22 @@ public partial interface IConversationsClient
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::tryAGI.OpenAI.ApiException"></exception>
global::System.Threading.Tasks.Task<global::tryAGI.OpenAI.ConversationResource> CreateConversationAsync(
global::tryAGI.OpenAI.CreateConversationRequest request,
global::tryAGI.OpenAI.CreateConversationBody request,
global::System.Threading.CancellationToken cancellationToken = default);

/// <summary>
/// Create a conversation<br/>
/// Create a conversation.
/// </summary>
/// <param name="items">
/// Initial items to include in the conversation context.<br/>
/// You may add up to 20 items at a time.
/// </param>
/// <param name="metadata">
/// Set of 16 key-value pairs that can be attached to an object. This can be<br/>
/// useful for storing additional information about the object in a structured<br/>
/// format, and querying for objects via API or the dashboard.<br/>
/// Keys are strings with a maximum length of 64 characters. Values are strings<br/>
/// with a maximum length of 512 characters.
/// Initial items to include in the conversation context. You may add up to 20 items at a time.
/// </param>
/// <param name="metadata"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::tryAGI.OpenAI.ConversationResource> CreateConversationAsync(
global::System.Collections.Generic.IList<global::tryAGI.OpenAI.InputItem>? items = default,
global::System.Collections.Generic.Dictionary<string, string>? metadata = default,
object? metadata = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ public partial interface IConversationsClient
{
/// <summary>
/// Delete a conversation<br/>
/// Delete a conversation with the given ID.
/// Delete a conversation. Items in the conversation will not be deleted.
/// </summary>
/// <param name="conversationId">
/// Example: conv_123
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ public partial interface IConversationsClient
{
/// <summary>
/// Retrieve a conversation<br/>
/// Get a conversation with the given ID.
/// Get a conversation
/// </summary>
/// <param name="conversationId">
/// Example: conv_123
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ public partial interface IConversationsClient
{
/// <summary>
/// Update a conversation<br/>
/// Update a conversation's metadata with the given ID.
/// Update a conversation
/// </summary>
/// <param name="conversationId">
/// Example: conv_123
Expand All @@ -21,20 +21,23 @@ public partial interface IConversationsClient

/// <summary>
/// Update a conversation<br/>
/// Update a conversation's metadata with the given ID.
/// Update a conversation
/// </summary>
/// <param name="conversationId">
/// Example: conv_123
/// </param>
/// <param name="metadata">
/// Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard.<br/>
/// Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.
/// Set of 16 key-value pairs that can be attached to an object. This can be<br/>
/// useful for storing additional information about the object in a structured<br/>
/// format, and querying for objects via API or the dashboard.<br/>
/// Keys are strings with a maximum length of 64 characters. Values are strings<br/>
/// with a maximum length of 512 characters.
/// </param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::tryAGI.OpenAI.ConversationResource> UpdateConversationAsync(
string conversationId,
global::System.Collections.Generic.Dictionary<string, string> metadata,
global::System.Collections.Generic.Dictionary<string, string>? metadata,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
namespace tryAGI.OpenAI.JsonConverters
{
/// <inheritdoc />
public sealed class ComputerEnvironment1JsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::tryAGI.OpenAI.ComputerEnvironment1>
public sealed class ComputerEnvironmentJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::tryAGI.OpenAI.ComputerEnvironment>
{
/// <inheritdoc />
public override global::tryAGI.OpenAI.ComputerEnvironment1 Read(
public override global::tryAGI.OpenAI.ComputerEnvironment Read(
ref global::System.Text.Json.Utf8JsonReader reader,
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
Expand All @@ -18,19 +18,19 @@ public sealed class ComputerEnvironment1JsonConverter : global::System.Text.Json
var stringValue = reader.GetString();
if (stringValue != null)
{
return global::tryAGI.OpenAI.ComputerEnvironment1Extensions.ToEnum(stringValue) ?? default;
return global::tryAGI.OpenAI.ComputerEnvironmentExtensions.ToEnum(stringValue) ?? default;
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
{
var numValue = reader.GetInt32();
return (global::tryAGI.OpenAI.ComputerEnvironment1)numValue;
return (global::tryAGI.OpenAI.ComputerEnvironment)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::tryAGI.OpenAI.ComputerEnvironment1);
return default(global::tryAGI.OpenAI.ComputerEnvironment);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
Expand All @@ -42,12 +42,12 @@ public sealed class ComputerEnvironment1JsonConverter : global::System.Text.Json
/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::tryAGI.OpenAI.ComputerEnvironment1 value,
global::tryAGI.OpenAI.ComputerEnvironment value,
global::System.Text.Json.JsonSerializerOptions options)
{
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));

writer.WriteStringValue(global::tryAGI.OpenAI.ComputerEnvironment1Extensions.ToValueString(value));
writer.WriteStringValue(global::tryAGI.OpenAI.ComputerEnvironmentExtensions.ToValueString(value));
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
namespace tryAGI.OpenAI.JsonConverters
{
/// <inheritdoc />
public sealed class ComputerEnvironment1NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::tryAGI.OpenAI.ComputerEnvironment1?>
public sealed class ComputerEnvironmentNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::tryAGI.OpenAI.ComputerEnvironment?>
{
/// <inheritdoc />
public override global::tryAGI.OpenAI.ComputerEnvironment1? Read(
public override global::tryAGI.OpenAI.ComputerEnvironment? Read(
ref global::System.Text.Json.Utf8JsonReader reader,
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
Expand All @@ -18,19 +18,19 @@ public sealed class ComputerEnvironment1NullableJsonConverter : global::System.T
var stringValue = reader.GetString();
if (stringValue != null)
{
return global::tryAGI.OpenAI.ComputerEnvironment1Extensions.ToEnum(stringValue);
return global::tryAGI.OpenAI.ComputerEnvironmentExtensions.ToEnum(stringValue);
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
{
var numValue = reader.GetInt32();
return (global::tryAGI.OpenAI.ComputerEnvironment1)numValue;
return (global::tryAGI.OpenAI.ComputerEnvironment)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::tryAGI.OpenAI.ComputerEnvironment1?);
return default(global::tryAGI.OpenAI.ComputerEnvironment?);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
Expand All @@ -42,7 +42,7 @@ public sealed class ComputerEnvironment1NullableJsonConverter : global::System.T
/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::tryAGI.OpenAI.ComputerEnvironment1? value,
global::tryAGI.OpenAI.ComputerEnvironment? value,
global::System.Text.Json.JsonSerializerOptions options)
{
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
Expand All @@ -53,7 +53,7 @@ public override void Write(
}
else
{
writer.WriteStringValue(global::tryAGI.OpenAI.ComputerEnvironment1Extensions.ToValueString(value.Value));
writer.WriteStringValue(global::tryAGI.OpenAI.ComputerEnvironmentExtensions.ToValueString(value.Value));
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2178,7 +2178,7 @@ public sealed partial class JsonSerializerContextTypes
/// <summary>
///
/// </summary>
public global::tryAGI.OpenAI.ComputerEnvironment1? Type538 { get; set; }
public global::tryAGI.OpenAI.ComputerEnvironment? Type538 { get; set; }
/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -3062,7 +3062,7 @@ public sealed partial class JsonSerializerContextTypes
/// <summary>
///
/// </summary>
public global::tryAGI.OpenAI.CreateConversationRequest? Type759 { get; set; }
public global::tryAGI.OpenAI.CreateConversationBody? Type759 { get; set; }
/// <summary>
///
/// </summary>
Expand Down
Loading
Loading