Class DelegatedWorker
- Namespace
- Oscova.Agents.Providers
- Assembly
- Oscova.Agents.dll
One running or finished subagent worker and its observed progress.
public sealed class DelegatedWorkerInheritance
Inherited Members
Properties
- AgentId
-
Definition the worker runs.
- Handle
-
Thread-unique handle used by the lifecycle tools.
- IsActive
-
True until the execution has exited and released its slot.
- Name
-
Display name for the worker.
- ObservedAt
-
When the state was last observed.
- ParentSession
-
Session of the agent that started the worker.
- PriorMessages
-
History the worker started from, including its new task message.
- Result
-
Final answer or failure text, once finished.
- Status
-
Last observed state.
Methods
- GetMessages()
-
Returns the starting history followed by everything streamed so far.
- OnFinished(Func<Task>)
-
Registers work that must finish before the worker releases its slot.
- Record(AgentResponseUpdate)
-
Records one streamed update and tracks whether the worker waits for approval.
- SendAsync(string, CancellationToken)
-
Queues a parent message for the worker's next model call.
- TryTakeResult()
-
Takes the final result once. Later calls return null.