Method SettleAsync
- Namespace
- Oscova.Agents.Providers
- Assembly
- Oscova.Agents.dll
SettleAsync(AIAgent, AgentSession, Func<CancellationToken, Task>?, CancellationToken)
Waits while the parent session has active workers and nothing to answer. Returns undelivered results to send, an empty list when queued input is pending while workers run, or null when settled.
public Task<IReadOnlyList<ChatMessage>?> SettleAsync(AIAgent parentAgent, AgentSession parentSession, Func<CancellationToken, Task>? onWaiting, CancellationToken ct)Parameters
parentAgentAIAgentparentSessionAgentSessiononWaitingFunc<CancellationToken, Task>?ctCancellationToken
Returns
- Task<IReadOnlyList<ChatMessage>?>