Table of Contents

Constructor AgentExecutor

Namespace
LMKit.Agents
Assembly
LM-Kit.NET.dll

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

conversation MultiTurnConversation

The conversation to use for execution.

Exceptions

ArgumentNullException

Thrown when conversation is null.