pydantic-ai
pydantic-ai copied to clipboard
How to dynamically unload tools?
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.
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.
Yes please, exactly that. And also to be able to select which tool to use, in case a user wants a specific tool.
This was solved by #157, sorry I forgot to link the PR.