Table of Contents

Class AgentTaskDefinition

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

Describes a saved unit of agent work that can run manually or on a schedule.

public class AgentTaskDefinition

Inheritance

Inherited Members

Properties

AgentId

Gets or sets the agent identifier that executes the task.

CreatedAt

Gets or sets when the task definition was created.

CreatedByAgentId

Gets or sets the agent that created this task through a tool call, or null when user-created.

ExternalTrigger

Gets or sets the optional externally callable webhook trigger settings.

Id

Gets or sets the stable task identifier.

Instruction

Gets or sets the instruction submitted when the task executes.

InstructionMode

Gets or sets the saved instruction composition mode.

InstructionSource

Gets or sets the opaque source assigned during task provisioning.

IsEnabled

Gets or sets whether the scheduler may run this task.

KeepLastRuns

Gets or sets how many of the newest saved runs to keep, or null to keep every run.

MaxTokenBudget

Gets or sets an optional token budget for the task run.

ModelOverrideId

Gets or sets an optional model override used for this task run.

Name

Gets or sets the user-facing task name.

NotifyOnCompletion

Gets or sets whether a successful task run emits an automatic completion notice.

RunScope

Gets or sets optional task-local runtime settings for the selected agent.

Schedule

Gets or sets the schedule that determines automatic task execution.

SessionMode

Gets or sets whether task runs use an isolated or persistent session.

ToolApprovalRunMode

Gets or sets how approval-required tools are handled during unattended execution.

UserId

Gets or sets the user that owns the task.

WaitForOwnerProviderIdle

Gets or sets whether scheduled starts wait for the owner's foreground provider requests to finish.

Methods

GetContentFingerprint()

Serializes the definition for optimistic concurrency and stale-admission checks.

HasSameContentAs(AgentTaskDefinition)

Returns whether another snapshot has the same serializable task definition.

WithInstruction(string)

Creates a run-local view with the selected instruction without changing the stored snapshot.