Table of Contents

Constructor AgentPluginContext

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

AgentPluginContext(IToolCredentialResolver, string, string)

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

public AgentPluginContext(IToolCredentialResolver credentialResolver, string pluginDirectory, string modelStorageDirectory)

Parameters

credentialResolver IToolCredentialResolver

The resolver used for plugin-requested credentials.

pluginDirectory string

The fully qualified directory containing the plugin manifest.

modelStorageDirectory string

The fully qualified host-owned model storage directory.

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

Creates a plugin context from host-provided services.

public AgentPluginContext(IToolCredentialResolver credentialResolver, Func<string, HttpClient> httpClientFactory, ILoggerFactory loggerFactory, Func<TimeZoneInfo> userTimeZoneResolver, string pluginDirectory, string modelStorageDirectory, Func<string, string, string, CancellationToken, Task> ensureDownloadAsync)

Parameters

credentialResolver IToolCredentialResolver

The resolver used for plugin-requested credentials.

httpClientFactory Func<string, HttpClient>

The factory that creates named HTTP clients for plugin dependencies.

loggerFactory ILoggerFactory

The logger factory exposed to plugin contributions.

userTimeZoneResolver Func<TimeZoneInfo>

Resolves the user's current preferred time zone for user-facing timestamps.

pluginDirectory string

The fully qualified directory containing the plugin manifest.

modelStorageDirectory string

The fully qualified host-owned model storage directory.

ensureDownloadAsync Func<string, string, string, CancellationToken, Task>

Starts or joins a Host-tracked plugin asset download.