BaseSingleActionAgent |
BaseMultiActionAgent |
Executes one action per step, while BaseMultiActionAgent can execute multiple actions in a single iteration. |
AgentExecutor |
RunnableAgent , AgentExecutorIterator |
AgentExecutor runs the entire agent execution, while AgentExecutorIterator iterates over steps and allows fine-grained control. RunnableAgent is a more modular version of an agent. |
RunnableAgent |
RunnableMultiActionAgent |
RunnableAgent executes one action, while RunnableMultiActionAgent executes multiple actions per step. |
ZeroShotAgent |
ReActDocstoreAgent |
ZeroShotAgent makes immediate decisions without prior knowledge, while ReActDocstoreAgent retrieves and reasons before acting. |
ReActTextWorldAgent |
ReActDocstoreAgent |
ReActTextWorldAgent is optimized for text-based simulations and interactive environments, while ReActDocstoreAgent interacts with external document repositories. |
StructuredChatAgent |
ZeroShotAgent , XMLAgent |
StructuredChatAgent enforces structured input/output formats for chat workflows, while XMLAgent ensures responses follow an XML format. |
OpenAIFunctionsAgent |
OpenAIMultiFunctionsAgent |
OpenAIFunctionsAgent executes one tool call per response, while OpenAIMultiFunctionsAgent can invoke multiple functions simultaneously. |
SelfAskWithSearchAgent |
ReActDocstoreAgent |
SelfAskWithSearchAgent asks clarifying questions before searching, while ReActDocstoreAgent retrieves and reasons immediately. |
OpenAIAssistantRunnable |
OpenAIAssistantAgent |
Runnable version allows streaming execution and is better for dynamic workflows. |
AgentExecutorIterator |
AgentExecutor |
AgentExecutorIterator executes step-by-step, allowing fine-tuned control, while AgentExecutor executes the entire workflow at once. |
DocstoreExplorer |
ReActDocstoreAgent |
DocstoreExplorer provides direct retrieval from a document store, while ReActDocstoreAgent integrates retrieval with reasoning and action. |