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
Instructionstring-
Replaces the raw task instruction for this run.
OnSuccessAsyncFunc<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.