pydantic-ai icon indicating copy to clipboard operation
pydantic-ai copied to clipboard

How to dynamically unload tools?

Open pedroallenrevez opened this issue 1 year ago • 2 comments

We can agent.tool but how to unload them? The objective is to have fine-grained control over what tools are possible to choose according to user query.

pedroallenrevez avatar Dec 03 '24 10:12 pedroallenrevez

ye, we've discussed this, it would also be useful if the description for a tool could be dynamic (generated per LLM call by a function). So maybe w can combine the two.

samuelcolvin avatar Dec 03 '24 18:12 samuelcolvin

Yes please, exactly that. And also to be able to select which tool to use, in case a user wants a specific tool.

pedroallenrevez avatar Dec 04 '24 19:12 pedroallenrevez

This was solved by #157, sorry I forgot to link the PR.

samuelcolvin avatar Dec 09 '24 18:12 samuelcolvin