도구 호출 흐름
전체 흐름
LLM 모델 호출 내부 흐름 (Strands Framework)
도구 선택 메커니즘
재귀적 Event Loop (Multi-turn)
stop_reason
의미
다음 동작
Bedrock API 요청 구조
마지막 업데이트
마지막 업데이트
request = {
"modelId": "global.anthropic.claude-sonnet-4-20250514-v1:0",
"messages": formatted_messages,
"system": [{"text": system_prompt}],
"inferenceConfig": {
"maxTokens": 4096,
"temperature": temperature,
},
"toolConfig": {
"tools": [
{"toolSpec": {"name": "dns-resolve", "description": "...", "inputSchema": {...}}},
{"toolSpec": {"name": "connectivity", "description": "...", "inputSchema": {...}}},
],
"toolChoice": {"auto": {}}
}
}
response = client.converse_stream(**request)