Skip to content

Move resolve() for tools from Context to Agent. - #302

Merged
msullivan merged 1 commit into
mainfrom
tool-resolver
Sep 23, 2026
Merged

msullivan merged 1 commit into
mainfrom
tool-resolver

Conversation

@msullivan

Copy link
Copy Markdown
Collaborator

Add a ToolResolver that actually owns the logic, but have everything
do it via Agent.

Leave it on Context for now for backward compat.

@vercel

vercel Bot commented Sep 22, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
ai-python Ready Ready Preview, v0 Sep 22, 2026 6:07pm UTC

Add a `ToolResolver` that actually owns the logic, but have everything
do it via `Agent`.

Leave it on `Context` for now for backward compat.
@anbuzin

anbuzin commented Sep 23, 2026

Copy link
Copy Markdown
Collaborator

I actually don't remember why it was the other way around.

@msullivan

Copy link
Copy Markdown
Collaborator Author

Probably because Agent.run used to optionally take tools as an argument

@msullivan
msullivan merged commit c788059 into main Sep 23, 2026
12 checks passed
@msullivan
msullivan deleted the tool-resolver branch September 23, 2026 16:51

This branch was successfully deployed

1 active deployment
Preview — adedf270 Deployed Sep 22, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants