Replies: 1 comment
-
You need to either generate the tools at run time and bind to them information from the config, or you can inherit from the structuredtool class (which is a runnable) and set it up with configurable tools. The main issue is the agent executor in langchain does not propagate configuration information (I suspect that the langgraph agents do not have that limitation so you could try those as well!), so you'll need to wrap it as a custom runnable; e.g., https://github.com/langchain-ai/langserve/tree/main/examples/configurable_agent_executor |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Say I have a chat application with user id and conversation id under
config
, and need to support tools calling.The core code would be:
How to pass the
user_id
andconversation_id
fromconfig
to that 2 tool functions?Beta Was this translation helpful? Give feedback.
All reactions