()
| 12026 | 3. **Use appropriate permission modes** — Start with \`"default"\` and only escalate when needed |
| 12027 | 4. **Handle all message types** — Check for \`ResultMessage\` to get agent output |
| 12028 | 5. **Limit max_turns** — Prevent runaway agents with reasonable limits |
| 12029 | `;var E85=()=>{};var h85=`# Message Batches API — Python |
| 12030 | |
| 12031 | The Batches API (\`POST /v1/messages/batches\`) processes Messages API requests asynchronously at 50% of standard prices. |