Share via


AgentServerContext.Get Method

Definition

Gets the singleton instance of the agent server context.

public static Azure.AI.AgentServer.Core.Server.AgentServerContext Get();
static member Get : unit -> Azure.AI.AgentServer.Core.Server.AgentServerContext
Public Shared Function Get () As AgentServerContext

Returns

The current agent server context instance.

Exceptions

Thrown when the context has not been initialized. This typically means AgentServerApplication.RunAsync has not been called.

Applies to