Skip to content
Discussion options

You must be logged in to vote

Don’t rebuild the graph. Add a policy node that writes allowed_tools to state each step
& bind the agent only to those tools (llm.bind_tools(enabled)). After consent, update state.
For cache, just include the current tool list in your cache key
(This is what’s worked for me so far)

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Mathharo
Comment options

@augustocesarperin
Comment options

Answer selected by Mathharo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants