SessionTarget Class

Definition

Target for a Voice Live session, specifying either a model or an agent.

public class SessionTarget
type SessionTarget = class
Public Class SessionTarget
Inheritance
SessionTarget

Remarks

Use FromModel(String) for model-centric sessions where the LLM is the main actor. Use FromAgent(AgentSessionConfig) for agent-centric sessions where the agent is the main actor.

Properties

Name Description
Agent

The agent configuration for agent-centric sessions.

IsAgentSession

Gets a value indicating whether this target specifies an agent session.

IsModelSession

Gets a value indicating whether this target specifies a model session.

Model

The model name for model-centric sessions.

Methods

Name Description
FromAgent(AgentSessionConfig)

Creates a session target for an agent-centric session.

FromModel(String)

Creates a session target for a model-centric session.

IsAgentSessionTarget()

Checks if this SessionTarget specifies an agent session.

IsModelSessionTarget()

Checks if this SessionTarget specifies a model session.

Operators

Name Description
Implicit(AgentSessionConfig to SessionTarget)

Implicit conversion from AgentSessionConfig to SessionTarget for agent sessions.

Implicit(String to SessionTarget)

Implicit conversion from string to SessionTarget for model sessions.

Applies to