Class ConverterExtensions
public static class ConverterExtensions
- Inheritance
-
object
ConverterExtensions
Methods
ToAnthropicMessage(ChatMessage)
public static AnthropicMessage ToAnthropicMessage(this ChatMessage message)
Parameters
message ChatMessage
Returns
- AnthropicMessage
ToAnthropicMessageRequest(GENResponseTask, IJsonSchema, bool)
public static AnthropicMessageRequest ToAnthropicMessageRequest(this GENResponseTask task, IJsonSchema jsonSchema, bool isStreaming)
Parameters
task GENResponseTask
jsonSchema IJsonSchema
isStreaming bool
Returns
- AnthropicMessageRequest
public static AnthropicTool ToAnthropicTool(this ToolCall toolCall)
Parameters
toolCall ToolCall
Returns
- AnthropicTool
ToChatCompletionDelta(AnthropicMessageEventData)
public static ChatCompletion ToChatCompletionDelta(this AnthropicMessageEventData eventData)
Parameters
eventData AnthropicMessageEventData
Returns
- ChatCompletion
ToChatCompletionResponse(AnthropicMessage)
public static ChatCompletion ToChatCompletionResponse(this AnthropicMessage message)
Parameters
message AnthropicMessage
Returns
- ChatCompletion
ToDefaultUsage(AnthropicUsage)
public static Usage ToDefaultUsage(this AnthropicUsage usage)
Parameters
usage AnthropicUsage
Returns
- Usage