| 12958 | 3. **Track token usage** — The \`message_delta\` event contains usage information |
| 12959 | 4. **Use timeouts** — Set appropriate timeouts for your application |
| 12960 | 5. **Default to streaming** — Use \`.get_final_message()\` to get the complete response even when streaming, giving you timeout protection without needing to handle individual events |
| 12961 | `;var I85=()=>{};var p85=`# Tool Use — Python |
| 12962 | |
| 12963 | For conceptual overview (tool definitions, tool choice, tips), see [shared/tool-use-concepts.md](../../shared/tool-use-concepts.md). |