You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to do so in conjunction with the newly added agent streaming support raises: "Error! Chain type 'CustomAgentExecutor' is not currently supported by 'AsyncStreamingResponseCallback'."
To reproduce the error you can run examples/app/zero_shot_agent.py and replace the zero_shot_agent_dependency with a modified version of the function. This function creates a dummy custom subclass of AgentExecutor and initializes it manually rather than using the initialize_agent helper function as it currently does not support custom agent executors.
In more advanced agents use cases, you often want to have greater control of the loop that controls how agents act.
The langchain
AgentExecutor
class has a method_take_next_step
which is encouraged to be overridden in order to "(...) take control of how the agent makes and acts on choices." (https://github.com/hwchase17/langchain/blob/master/langchain/agents/agent.py#L748)Trying to do so in conjunction with the newly added agent streaming support raises:
"Error! Chain type 'CustomAgentExecutor' is not currently supported by 'AsyncStreamingResponseCallback'."
To reproduce the error you can run
examples/app/zero_shot_agent.py
and replace thezero_shot_agent_dependency
with a modified version of the function. This function creates a dummy custom subclass ofAgentExecutor
and initializes it manually rather than using theinitialize_agent
helper function as it currently does not support custom agent executors.Acceptance Criteria
AgentExecutor
no longer raises an errorThe text was updated successfully, but these errors were encountered: