Table of Contents

Class AgentBuildRequest

Namespace
Oscova.Agents.Runtime
Assembly
Oscova.Agents.dll

Carries all host-prepared inputs required to build or retrieve an agent.

public sealed record AgentBuildRequest : IEquatable<AgentBuildRequest>

Inheritance

Implements

Inherited Members

Constructors

AgentBuildRequest(Func<AgentDefinition, CancellationToken, Task<IChatClient>>, AgentDefinition, IReadOnlyList<AgentDefinition>, Func<AgentDefinition, CancellationToken, Task<IReadOnlyList<AIContextProvider>>>, Func<AgentDefinition, IReadOnlyList<AllowedDirectory>>, Func<ChatClientBuilder, ChatClientBuilder>?, Action<ChatClientAgentOptions>?, bool, Func<AgentDefinition, IChatClient, CancellationToken, Task<IChatReducer?>>?, Func<AgentDefinition, ChatClientBuilder, ChatClientBuilder>?, Func<ChatClientBuilder, ChatClientBuilder>?, Func<AgentDefinition, ChatOptions?>?)

Carries all host-prepared inputs required to build or retrieve an agent.

Properties

AgentDefinition

The definition for the agent requested by the host.

AvailableAgentDefinitions

All definitions available for resolving agent-as-tool dependencies.

BypassRequestedAgentCache

Whether the requested agent must be built fresh for this run.

ChatClientFactory

Creates the model-backed chat client for a specific agent definition.

ChatOptionsResolver

Resolves the default model request options for each built agent.

ChatReducerFactory

Creates a chat reducer for an agent definition when compaction is enabled.

ConfigureAgentBuilder

Adds host middleware to every built agent, including exposed agent-tool dependencies.

ConfigureBuilder

An optional callback that can add host middleware to the main requested agent.

ConfigureHarnessBuilder

Adds always-on harness middleware to every built agent. Unlike the customizer delegates, this does not affect agent caching.

ConfigureOptions

An optional callback that can adjust framework agent options for the main requested agent.

ContextProviderFactory

The factory that creates context providers for a specific definition.

WorkspaceResolver

The resolver that supplies the workspaces allowed for a specific definition.