Share via


IHostedAgentBuilder Interface

Definition

Represents a builder for configuring AI agents within a hosting environment.

public interface IHostedAgentBuilder
type IHostedAgentBuilder = interface
Public Interface IHostedAgentBuilder

Properties

Name Description
Name

Gets the name of the agent being configured.

ServiceCollection

Gets the service collection for configuration.

Extension Methods

Name Description
WithAITool(IHostedAgentBuilder, AITool)

Adds an AI tool to an agent being configured with the service collection.

WithAITool(IHostedAgentBuilder, Func<IServiceProvider,AITool>)

Adds AI tool to an agent being configured with the service collection.

WithAITools(IHostedAgentBuilder, AITool[])

Adds multiple AI tools to an agent being configured with the service collection.

WithInMemorySessionStore(IHostedAgentBuilder)

Configures the host agent builder to use an in-memory session store for agent session management.

WithSessionStore(IHostedAgentBuilder, AgentSessionStore)

Registers the specified agent session store with the host agent builder, enabling session-specific storage for agent operations.

WithSessionStore(IHostedAgentBuilder, Func<IServiceProvider,String,AgentSessionStore>)

Configures the host agent builder to use a custom session store implementation for agent sessions.

Applies to