MCPcopy
hub / github.com/7836246/cursor2api / AnthropicRequest

Interface AnthropicRequest

src/types.ts:3–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1// ==================== Anthropic API Types ====================
2
3export interface AnthropicRequest {
4 model: string;
5 messages: AnthropicMessage[];
6 max_tokens: number;
7 stream?: boolean;
8 system?: string | AnthropicContentBlock[];
9 tools?: AnthropicTool[];
10 tool_choice?: AnthropicToolChoice;
11 temperature?: number;
12 top_p?: number;
13 stop_sequences?: string[];
14 thinking?: { type: 'enabled' | 'disabled' | 'adaptive'; budget_tokens?: number };
15}
16
17/** tool_choice 控制模型是否必须调用工具
18 * - auto: 模型自行决定(默认)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected