Replies: 1 comment 1 reply
-
You can use Runnable Generator or Runnable Lambda to create the agent at run time. e.g., Or you can create a custom agent executor: https://github.com/langchain-ai/langserve/blob/main/examples/configurable_agent_executor/server.py |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
so currently I use langserve like this:
I want to include the model / agent name in the api call which will later be processed in agent.py so that the model change process can be done dynamically, how do I do that?
In agent.py:
example api call:
Thankyou!
Beta Was this translation helpful? Give feedback.
All reactions