AgentServerContext Class
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.
Provides singleton access to application-level services and context. This context is initialized once at application startup and provides access to shared resources like the tool runtime.
public sealed class AgentServerContext : IAsyncDisposable
type AgentServerContext = class
interface IAsyncDisposable
Public NotInheritable Class AgentServerContext
Implements IAsyncDisposable
- Inheritance
-
AgentServerContext
- Implements
Properties
| Name | Description |
|---|---|
| Tools |
Gets the tool runtime for accessing and invoking Foundry tools. |
Methods
| Name | Description |
|---|---|
| DisposeAsync() |
Disposes the agent server context and its resources. |
| Get() |
Gets the singleton instance of the agent server context. |