Constructor AgentExecutor
AgentExecutor()
Initializes a new instance of the AgentExecutor class.
A new conversation will be created on first execution using the agent's model.
public AgentExecutor()
AgentExecutor(MultiTurnConversation)
Initializes a new instance of the AgentExecutor class with an existing conversation.
Use this constructor for multi-turn agent interactions where you want to maintain conversation history across executions.
public AgentExecutor(MultiTurnConversation conversation)
Parameters
conversationMultiTurnConversationThe conversation to use for execution.
Exceptions
- ArgumentNullException
Thrown when
conversationisnull.