Skip to content

Don't cache agent tools during a run #803

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 2, 2025
Merged

Don't cache agent tools during a run #803

merged 1 commit into from
Jun 2, 2025

Conversation

rm-openai
Copy link
Collaborator

Summary:

Towards #767. We were caching the list of tools for an agent, so if you did agent.tools.append(...) from a tool call, the next call to the model wouldn't include the new tool. THis is a bug.

Test Plan:

Unit tests. Note that now MCP tools are listed each time the agent runs (users can still cache the list_tools however).

### Summary:
Towards #767. We were caching the list of tools for an agent, so if you did `agent.tools.append(...)` from a tool call, the next call to the model wouldn't include the new tool. THis is a bug.

### Test Plan:
Unit tests. Note that now MCP tools are listed each time the agent runs (users can still cache the `list_tools` however).
@rm-openai rm-openai merged commit d4c7a23 into main Jun 2, 2025
5 checks passed
@rm-openai rm-openai deleted the rm/pr803 branch June 2, 2025 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants