AgentSessionConfig Class

Definition

Configuration for creating a session with an agent as the main AI actor. When using an agent session, the agent's configuration (tools, instructions, temperature, etc.) is managed in the Foundry portal, not in session code.

public class AgentSessionConfig
type AgentSessionConfig = class
Public Class AgentSessionConfig
Inheritance
AgentSessionConfig

Remarks

This is distinct from VoiceLiveToolDefinition which represents agent tools that can be added to model-centric sessions.

Constructors

Name Description
AgentSessionConfig(String, String)

Initializes a new instance of AgentSessionConfig.

Properties

Name Description
AgentName

The name of the Foundry agent to use.

AgentVersion

The version of the agent to use. If not specified, the latest version will be used.

AuthenticationIdentityClientId

The client ID of a user-assigned managed identity used for authenticating to the Foundry Agent service. If not specified, the system-assigned managed identity will be used.

ConversationId

The conversation ID to continue. If not specified, a new conversation will be created.

FoundryResourceOverride

The Foundry resource name to use for cross-resource agent mode. When set, the agent service endpoint will use this resource instead of the one from the connection URL.

ProjectName

The name of the Azure AI project which the agent belongs to.

Applies to