Skip to content

AxAIAnthropicChatResponse

Type Alias: AxAIAnthropicChatResponse

AxAIAnthropicChatResponse: object

Type declaration

content

content: (object | object)[]

id

id: string

model

model: string

role

role: "assistant"

stop_reason

stop_reason: "end_turn" | "max_tokens" | "stop_sequence" | "tool_use"

stop_sequence?

optional stop_sequence: string

type

type: "message"

usage

usage: object

usage.input_tokens

input_tokens: number

usage.output_tokens

output_tokens: number

Defined in

src/ax/ai/anthropic/types.ts:81