AgentServerContext.Get Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.