Table of Contents

Constructor AgentRunPlan

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

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

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

public AgentRunPlan(string Instruction, Func<CancellationToken, Task>? OnSuccessAsync = 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.