AxAIAnthropicChatResponse
type AxAIAnthropicChatResponse = object;
Defined in: https://github.com/ax-llm/ax/blob/8dfd0ce02b8cb386fb2c93fa280a2ec0da2d6011/src/ax/ai/anthropic/types.ts#L159
Properties
content
content: (
| {
text: string;
type: "text";
}
| {
id: string;
input?: string;
name: string;
type: "tool_use";
}
| {
signature?: string;
thinking: string;
type: "thinking";
}
| {
signature?: string;
thinking: string;
type: "redacted_thinking";
})[];
Defined in: https://github.com/ax-llm/ax/blob/8dfd0ce02b8cb386fb2c93fa280a2ec0da2d6011/src/ax/ai/anthropic/types.ts#L163
id
id: string;
Defined in: https://github.com/ax-llm/ax/blob/8dfd0ce02b8cb386fb2c93fa280a2ec0da2d6011/src/ax/ai/anthropic/types.ts#L160
model
model: string;
Defined in: https://github.com/ax-llm/ax/blob/8dfd0ce02b8cb386fb2c93fa280a2ec0da2d6011/src/ax/ai/anthropic/types.ts#L185
role
role: "assistant";
Defined in: https://github.com/ax-llm/ax/blob/8dfd0ce02b8cb386fb2c93fa280a2ec0da2d6011/src/ax/ai/anthropic/types.ts#L162
stop_reason
stop_reason: "end_turn" | "max_tokens" | "stop_sequence" | "tool_use";
Defined in: https://github.com/ax-llm/ax/blob/8dfd0ce02b8cb386fb2c93fa280a2ec0da2d6011/src/ax/ai/anthropic/types.ts#L186
stop_sequence?
optional stop_sequence: string;
Defined in: https://github.com/ax-llm/ax/blob/8dfd0ce02b8cb386fb2c93fa280a2ec0da2d6011/src/ax/ai/anthropic/types.ts#L187
type
type: "message";
Defined in: https://github.com/ax-llm/ax/blob/8dfd0ce02b8cb386fb2c93fa280a2ec0da2d6011/src/ax/ai/anthropic/types.ts#L161
usage
usage: object;
Defined in: https://github.com/ax-llm/ax/blob/8dfd0ce02b8cb386fb2c93fa280a2ec0da2d6011/src/ax/ai/anthropic/types.ts#L188
input_tokens
input_tokens: number;
output_tokens
output_tokens: number;