Class ConverterExtensions
Inheritance
object
ConverterExtensions
Assembly: .dll
Syntax
public static class ConverterExtensions
Methods
ToAnthropicMessage(ChatMessage)
Declaration
public static AnthropicMessage ToAnthropicMessage(this ChatMessage message)
Parameters
Returns
ToAnthropicMessageRequest(GENResponseTask, IJsonSchema, bool)
Declaration
public static AnthropicMessageRequest ToAnthropicMessageRequest(this GENResponseTask task, IJsonSchema jsonSchema, bool isStreaming)
Parameters
Type |
Name |
Description |
GENResponseTask |
task |
|
IJsonSchema |
jsonSchema |
|
bool |
isStreaming |
|
Returns
Declaration
public static AnthropicTool ToAnthropicTool(this ToolCall toolCall)
Parameters
Returns
ToChatCompletionDelta(AnthropicMessageEventData)
Declaration
public static ChatCompletion ToChatCompletionDelta(this AnthropicMessageEventData eventData)
Parameters
Returns
ToChatCompletionResponse(AnthropicMessage)
Declaration
public static ChatCompletion ToChatCompletionResponse(this AnthropicMessage message)
Parameters
Returns
ToDefaultUsage(AnthropicUsage)
Declaration
public static Usage ToDefaultUsage(this AnthropicUsage usage)
Parameters
Returns