Skip to content

AxAICohereChatResponse

Type Alias: AxAICohereChatResponse

AxAICohereChatResponse: object

Type declaration

finish_reason

finish_reason: "COMPLETE" | "ERROR" | "ERROR_TOXIC" | "ERROR_LIMIT" | "USER_CANCEL" | "MAX_TOKENS"

generation_id

generation_id: string

meta

meta: object

meta.billed_units

billed_units: object

meta.billed_units.input_tokens

input_tokens: number

meta.billed_units.output_tokens

output_tokens: number

response_id

response_id: string

text

text: string

tool_calls

tool_calls: AxAICohereChatResponseToolCalls

Defined in

src/ax/ai/cohere/types.ts:92