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

Large diffs are not rendered by default.

509 changes: 0 additions & 509 deletions src/libs/Phoenix/Generated/Phoenix.ChatClient.ChatChatPost.g.cs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,12 @@ partial void ProcessSummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostRe
/// <param name="openaiApiType">
/// Default Value: responses
/// </param>
/// <param name="ingestTraces">
/// Default Value: false
/// </param>
/// <param name="exportRemoteTraces">
/// Default Value: false
/// </param>
/// <param name="messages"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
Expand All @@ -572,11 +578,15 @@ partial void ProcessSummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostRe
string? providerId = default,
global::Phoenix.ModelProvider? provider = default,
global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiType? openaiApiType = default,
bool? ingestTraces = default,
bool? exportRemoteTraces = default,
global::Phoenix.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Phoenix.SummarizeRequest
{
IngestTraces = ingestTraces,
ExportRemoteTraces = exportRemoteTraces,
Messages = messages,
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,43 +7,57 @@ public partial interface IChatClient
/// <summary>
/// Chat
/// </summary>
/// <param name="agentId"></param>
/// <param name="sessionId"></param>
/// <param name="providerType"></param>
/// <param name="modelName"></param>
/// <param name="providerId"></param>
/// <param name="provider"></param>
/// <param name="openaiApiType">
/// Default Value: responses
/// </param>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Phoenix.ApiException"></exception>
global::System.Threading.Tasks.Task<string> ChatChatPostAsync(
global::Phoenix.ChatChatPostProviderType providerType,
global::System.Threading.Tasks.Task<global::Phoenix.AssistantMessageMetadata> ChatAgentsAgentIdSessionsSessionIdChatPostAsync(
string agentId,
string sessionId,
global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostProviderType providerType,
string modelName,

global::Phoenix.ChatRequest request,
string? providerId = default,
global::Phoenix.ModelProvider? provider = default,
global::Phoenix.ChatChatPostOpenaiApiType? openaiApiType = default,
global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiType? openaiApiType = default,
global::Phoenix.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Chat
/// </summary>
/// <param name="agentId"></param>
/// <param name="sessionId"></param>
/// <param name="providerType"></param>
/// <param name="modelName"></param>
/// <param name="providerId"></param>
/// <param name="provider"></param>
/// <param name="openaiApiType">
/// Default Value: responses
/// </param>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Phoenix.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Phoenix.AutoSDKHttpResponse<string>> ChatChatPostAsResponseAsync(
global::Phoenix.ChatChatPostProviderType providerType,
global::System.Threading.Tasks.Task<global::Phoenix.AutoSDKHttpResponse<global::Phoenix.AssistantMessageMetadata>> ChatAgentsAgentIdSessionsSessionIdChatPostAsResponseAsync(
string agentId,
string sessionId,
global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostProviderType providerType,
string modelName,

global::Phoenix.ChatRequest request,
string? providerId = default,
global::Phoenix.ModelProvider? provider = default,
global::Phoenix.ChatChatPostOpenaiApiType? openaiApiType = default,
global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiType? openaiApiType = default,
global::Phoenix.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@ public partial interface IChatClient
/// <param name="openaiApiType">
/// Default Value: responses
/// </param>
/// <param name="ingestTraces">
/// Default Value: false
/// </param>
/// <param name="exportRemoteTraces">
/// Default Value: false
/// </param>
/// <param name="messages"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
Expand All @@ -85,6 +91,8 @@ public partial interface IChatClient
string? providerId = default,
global::Phoenix.ModelProvider? provider = default,
global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiType? openaiApiType = default,
bool? ingestTraces = default,
bool? exportRemoteTraces = default,
global::Phoenix.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
namespace Phoenix.JsonConverters
{
/// <inheritdoc />
public sealed class ChatChatPostOpenaiApiTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::Phoenix.ChatChatPostOpenaiApiType>
public sealed class AssistantMetadataUIMessageRoleJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::Phoenix.AssistantMetadataUIMessageRole>
{
/// <inheritdoc />
public override global::Phoenix.ChatChatPostOpenaiApiType Read(
public override global::Phoenix.AssistantMetadataUIMessageRole 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 ChatChatPostOpenaiApiTypeJsonConverter : global::System.Text
var stringValue = reader.GetString();
if (stringValue != null)
{
return global::Phoenix.ChatChatPostOpenaiApiTypeExtensions.ToEnum(stringValue) ?? default;
return global::Phoenix.AssistantMetadataUIMessageRoleExtensions.ToEnum(stringValue) ?? default;
}

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

writer.WriteStringValue(global::Phoenix.ChatChatPostOpenaiApiTypeExtensions.ToValueString(value));
writer.WriteStringValue(global::Phoenix.AssistantMetadataUIMessageRoleExtensions.ToValueString(value));
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
namespace Phoenix.JsonConverters
{
/// <inheritdoc />
public sealed class ChatV2ChatV2PostOpenaiApiTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::Phoenix.ChatV2ChatV2PostOpenaiApiType?>
public sealed class AssistantMetadataUIMessageRoleNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::Phoenix.AssistantMetadataUIMessageRole?>
{
/// <inheritdoc />
public override global::Phoenix.ChatV2ChatV2PostOpenaiApiType? Read(
public override global::Phoenix.AssistantMetadataUIMessageRole? 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 ChatV2ChatV2PostOpenaiApiTypeNullableJsonConverter : global:
var stringValue = reader.GetString();
if (stringValue != null)
{
return global::Phoenix.ChatV2ChatV2PostOpenaiApiTypeExtensions.ToEnum(stringValue);
return global::Phoenix.AssistantMetadataUIMessageRoleExtensions.ToEnum(stringValue);
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
{
var numValue = reader.GetInt32();
return (global::Phoenix.ChatV2ChatV2PostOpenaiApiType)numValue;
return (global::Phoenix.AssistantMetadataUIMessageRole)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::Phoenix.ChatV2ChatV2PostOpenaiApiType?);
return default(global::Phoenix.AssistantMetadataUIMessageRole?);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
Expand All @@ -42,7 +42,7 @@ public sealed class ChatV2ChatV2PostOpenaiApiTypeNullableJsonConverter : global:
/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::Phoenix.ChatV2ChatV2PostOpenaiApiType? value,
global::Phoenix.AssistantMetadataUIMessageRole? 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::Phoenix.ChatV2ChatV2PostOpenaiApiTypeExtensions.ToValueString(value.Value));
writer.WriteStringValue(global::Phoenix.AssistantMetadataUIMessageRoleExtensions.ToValueString(value.Value));
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
#nullable enable

namespace Phoenix.JsonConverters
{
/// <inheritdoc />
public sealed class ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiType>
{
/// <inheritdoc />
public override global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiType Read(
ref global::System.Text.Json.Utf8JsonReader reader,
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
{
switch (reader.TokenType)
{
case global::System.Text.Json.JsonTokenType.String:
{
var stringValue = reader.GetString();
if (stringValue != null)
{
return global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiTypeExtensions.ToEnum(stringValue) ?? default;
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
{
var numValue = reader.GetInt32();
return (global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiType)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiType);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
}

return default;
}

/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiType value,
global::System.Text.Json.JsonSerializerOptions options)
{
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));

writer.WriteStringValue(global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiTypeExtensions.ToValueString(value));
}
}
}
Loading