Commit graph

6 commits

Author SHA1 Message Date
Rohan Mehta
6fb5792b77 Make the reset behavior on tool use configurable
## Summary:

#263 added this behavior. The goal was to prevent infinite loops when tool choice was set. The key change I'm making is:
1. Making it configurable on the agent.
2. Doing bookkeeping in the Runner to track this, to prevent mutating agents.
3. Not resetting the global tool choice in RunConfig.

## Test Plan:
Unit tests.
.
2025-03-25 13:29:32 -04:00
xianghuijin
8f2f76cb65 docs: Update tool_choice reset documentation to match implementation 2025-03-22 14:22:47 +08:00
xianghuijin
d169d79288 Update documentation for tool_choice auto-reset feature 2025-03-20 21:49:38 +08:00
Rohan Mehta
10aa5555af Introduce tool_use_behavior on agents 2025-03-18 21:55:12 -04:00
jhills20
a373162bb0 use @function_tool decorator in docs 2025-03-12 11:15:42 -07:00
Rohan Mehta
aaec57a426 Initial commit 2025-03-11 09:42:28 -07:00