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

AxAIAnthropicChatRequest

TypeScript
type AxAIAnthropicChatRequest = object;

Defined in: https://github.com/ax-llm/ax/blob/f60ce12a5a7a0de6d7bf420400ca77934ea61504/src/ax/ai/anthropic/types.ts#L177

Properties

anthropic_version?

TypeScript
optional anthropic_version: string;

Defined in: https://github.com/ax-llm/ax/blob/f60ce12a5a7a0de6d7bf420400ca77934ea61504/src/ax/ai/anthropic/types.ts#L179


max_tokens?

TypeScript
optional max_tokens: number;

Defined in: https://github.com/ax-llm/ax/blob/f60ce12a5a7a0de6d7bf420400ca77934ea61504/src/ax/ai/anthropic/types.ts#L266


messages

TypeScript
messages: (
  | {
  content:   | string
     | object & AxAIAnthropicChatRequestCacheParam[];
  role: "system";
}
  | {
  content:   | string
     | (
     | AxAIAnthropicDocumentBlock
     | ... & ...
     | ... & ...
     | ... & ...
     | ... & ...)[];
  role: "user";
}
  | {
  content:   | string
     | (
     | ... & ...
     | {
     signature?: string;
     thinking: string;
     type: "thinking";
   }
     | {
     data: string;
     signature?: string;
     type: "redacted_thinking";
   }
     | ... & ...)[];
  role: "assistant";
})[];

Defined in: https://github.com/ax-llm/ax/blob/f60ce12a5a7a0de6d7bf420400ca77934ea61504/src/ax/ai/anthropic/types.ts#L180


metadata?

TypeScript
optional metadata: object;

Defined in: https://github.com/ax-llm/ax/blob/f60ce12a5a7a0de6d7bf420400ca77934ea61504/src/ax/ai/anthropic/types.ts#L282

user_id

TypeScript
user_id: string;

model?

TypeScript
optional model: string;

Defined in: https://github.com/ax-llm/ax/blob/f60ce12a5a7a0de6d7bf420400ca77934ea61504/src/ax/ai/anthropic/types.ts#L178


output_config?

TypeScript
optional output_config: AxAIAnthropicOutputConfig;

Defined in: https://github.com/ax-llm/ax/blob/f60ce12a5a7a0de6d7bf420400ca77934ea61504/src/ax/ai/anthropic/types.ts#L280


speed?

TypeScript
optional speed: "fast";

Defined in: https://github.com/ax-llm/ax/blob/f60ce12a5a7a0de6d7bf420400ca77934ea61504/src/ax/ai/anthropic/types.ts#L281


stop_sequences?

TypeScript
optional stop_sequences: string[];

Defined in: https://github.com/ax-llm/ax/blob/f60ce12a5a7a0de6d7bf420400ca77934ea61504/src/ax/ai/anthropic/types.ts#L268


stream?

TypeScript
optional stream: boolean;

Defined in: https://github.com/ax-llm/ax/blob/f60ce12a5a7a0de6d7bf420400ca77934ea61504/src/ax/ai/anthropic/types.ts#L269


system?

TypeScript
optional system: 
  | string
  | object & AxAIAnthropicChatRequestCacheParam[];

Defined in: https://github.com/ax-llm/ax/blob/f60ce12a5a7a0de6d7bf420400ca77934ea61504/src/ax/ai/anthropic/types.ts#L270


temperature?

TypeScript
optional temperature: number;

Defined in: https://github.com/ax-llm/ax/blob/f60ce12a5a7a0de6d7bf420400ca77934ea61504/src/ax/ai/anthropic/types.ts#L276


thinking?

TypeScript
optional thinking: AxAIAnthropicThinkingWire;

Defined in: https://github.com/ax-llm/ax/blob/f60ce12a5a7a0de6d7bf420400ca77934ea61504/src/ax/ai/anthropic/types.ts#L279


tool_choice?

TypeScript
optional tool_choice: 
  | {
  type: "auto" | "any" | "none";
}
  | {
  name?: string;
  type: "tool";
};

Defined in: https://github.com/ax-llm/ax/blob/f60ce12a5a7a0de6d7bf420400ca77934ea61504/src/ax/ai/anthropic/types.ts#L263


tools?

TypeScript
optional tools: AxAIAnthropicRequestTool[];

Defined in: https://github.com/ax-llm/ax/blob/f60ce12a5a7a0de6d7bf420400ca77934ea61504/src/ax/ai/anthropic/types.ts#L262


top_k?

TypeScript
optional top_k: number;

Defined in: https://github.com/ax-llm/ax/blob/f60ce12a5a7a0de6d7bf420400ca77934ea61504/src/ax/ai/anthropic/types.ts#L278


top_p?

TypeScript
optional top_p: number;

Defined in: https://github.com/ax-llm/ax/blob/f60ce12a5a7a0de6d7bf420400ca77934ea61504/src/ax/ai/anthropic/types.ts#L277

Docs