model
→ direct mapping (default: ‘claude-2.1’)max_tokens
→ direct mapping to max_tokens
temperature
→ direct mapping (constrained: 0-1)top_p
→ direct mapping (default: -1)stream
→ direct mapping (default: false)user
→ mapped to metadata.user_id
stop
→ mapped to stop_sequences
max_completion_tokens
→ mapped to max_tokens
role === 'system'
AnthropicMessageContentItem[]
transformAssistantMessage
):
{type: 'text', text: content}
{type: 'tool_use', name: function.name, id: toolCall.id, input: parsed_arguments}
transformToolMessage
):
{type: 'tool_result', tool_use_id: id, content: string}
{type: 'any'}
{type: 'auto'}
{type: 'tool', name: function.name}