Table of Contents

Class AgentPluginContext

Namespace
Oscova.Agents.Plugins
Assembly
Oscova.Agents.dll

Provides narrow host services a plugin can use when creating runtime contributions.

public sealed class AgentPluginContext

Inheritance

Inherited Members

Constructors

AgentPluginContext(IToolCredentialResolver, string, string)

Creates a plugin context with default HTTP, logging, and local time-zone services but without Host download support.

AgentPluginContext(IToolCredentialResolver, Func<string, HttpClient>, ILoggerFactory, Func<TimeZoneInfo>, string, string, Func<string, string, string, CancellationToken, Task>)

Creates a plugin context from host-provided services.

Properties

CredentialResolver

Resolves only the credential keys exposed to this plugin context.

LoggerFactory

Creates plugin loggers without exposing the host service provider.

ModelStorageDirectory

Gets the host-owned root under which providers may store models.

PluginDirectory

Gets the read-only deployment directory for the current plugin.

UserTimeZone

Resolves the user-selected time zone for plugin-generated timestamps.

Methods

CreateHttpClient(string)

Creates host-managed HTTP clients for plugin contributions.

EnsureDownloadAsync(string, string, string, CancellationToken)

Starts or joins a Host-tracked download for a plugin-owned asset.