AxAICohereChatResponse Generated TypeScript API reference. typescript api api/reference build/apidocs/TypeAlias.AxAICohereChatResponse.md type AxAICohereChatResponse

AxAICohereChatResponse

TypeScript
type AxAICohereChatResponse = object;

Defined in: https://github.com/ax-llm/ax/blob/5b28f9093bb70863b59459bb6df5062d005bce41/src/ax/ai/cohere/types.ts#L89

Properties

finish_reason

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

Defined in: https://github.com/ax-llm/ax/blob/5b28f9093bb70863b59459bb6df5062d005bce41/src/ax/ai/cohere/types.ts#L99


generation_id

TypeScript
generation_id: string;

Defined in: https://github.com/ax-llm/ax/blob/5b28f9093bb70863b59459bb6df5062d005bce41/src/ax/ai/cohere/types.ts#L97


meta

TypeScript
meta: object;

Defined in: https://github.com/ax-llm/ax/blob/5b28f9093bb70863b59459bb6df5062d005bce41/src/ax/ai/cohere/types.ts#L91

billed_units

TypeScript
{
  input_tokens: number;
  output_tokens: number;
}

response_id

TypeScript
response_id: string;

Defined in: https://github.com/ax-llm/ax/blob/5b28f9093bb70863b59459bb6df5062d005bce41/src/ax/ai/cohere/types.ts#L90


text

TypeScript
text: string;

Defined in: https://github.com/ax-llm/ax/blob/5b28f9093bb70863b59459bb6df5062d005bce41/src/ax/ai/cohere/types.ts#L98


tool_calls

TypeScript
tool_calls: AxAICohereChatResponseToolCalls;

Defined in: https://github.com/ax-llm/ax/blob/5b28f9093bb70863b59459bb6df5062d005bce41/src/ax/ai/cohere/types.ts#L106

Docs