Type alias AnthropicChatRequest
AnthropicChatRequest: {
max_tokens: number;
messages: {
content: string | {
content?: string;
source?: {
data: string;
media_type: string;
type: "base64";
};
text?: string;
tool_use_id?: string;
type: "text" | "image" | "tool_result";
}[];
role: "user" | "assistant" | "system";
}[];
metadata?: {
user_id: string;
};
model: string;
stop_sequences?: string[];
stream?: boolean;
temperature?: number;
tools?: {
description: string;
input_schema?: object;
name: string;
}[];
top_k?: number;
top_p?: number;
}
Type declaration
max_tokens: number
messages: {
content: string | {
content?: string;
source?: {
data: string;
media_type: string;
type: "base64";
};
text?: string;
tool_use_id?: string;
type: "text" | "image" | "tool_result";
}[];
role: "user" | "assistant" | "system";
}[]
Optional
metadata?: {
user_id: string;
}
model: string
Optional
stop_sequences?: string[]
Optional
stream?: boolean
Optional
temperature?: number
Optional
tools?: {
description: string;
input_schema?: object;
name: string;
}[]
Optional
top_k?: number
Optional
top_p?: number