Table of Contents

Constructor AgentRunPlan

Namespace
Oscova.Agents.Tasks
Assembly
Oscova.Agents.dll

AgentRunPlan(string, Func<CancellationToken, Task>?, Func<int, CancellationToken, Task<AgentRunPlan>>?)

Customizations an agent task handler applies around the standard agent run.

public AgentRunPlan(string Instruction, Func<CancellationToken, Task>? OnSuccessAsync = null, Func<int, CancellationToken, Task<AgentRunPlan>>? FinalizeAsync = null)

Parameters

Instruction string

Replaces the raw task instruction for this run.

OnSuccessAsync Func<CancellationToken, Task>?

Optional callback invoked after the agent run succeeds and before the run is marked completed. If this throws, the run is marked failed.

FinalizeAsync Func<int, CancellationToken, Task<AgentRunPlan>>?

Optionally selects input and success progress after the executor supplies its evidence token allowance.