(tool_use_id: str, name: str = "get_weather")
| 187 | |
| 188 | |
| 189 | def tool_use(tool_use_id: str, name: str = "get_weather") -> BetaMessageParam: |
| 190 | return { |
| 191 | "role": "assistant", |
| 192 | "content": [{"type": "tool_use", "id": tool_use_id, "name": name, "input": {"location": "San Francisco"}}], |
| 193 | } |
| 194 | |
| 195 | |
| 196 | def tool_result(tool_use_id: str, content: str = "Sunny in San Francisco") -> BetaMessageParam: |
no outgoing calls