Method ResumeAsync
- Namespace
- LMKit.Agents.Orchestration
- Assembly
- LM-Kit.NET.dll
ResumeAsync(AgentRunState, AgentRunInput, OrchestrationOptions, CancellationToken)
Continues a pipeline that stopped at a stage (IsStopped):
the stage's run resumes from its state with input, and the stages after it
run on its answer. Use the same pipeline (same stages, same order) that stopped.
public Task<OrchestrationResult> ResumeAsync(AgentRunState state, AgentRunInput input = null, OrchestrationOptions options = null, CancellationToken cancellationToken = default)
Parameters
stateAgentRunStateThe stopped run's state, from RunState.
inputAgentRunInputWhat unblocks the run.
optionsOrchestrationOptionsOrchestration options.
cancellationTokenCancellationTokenA token to cancel the pipeline.
Returns
- Task<OrchestrationResult>
The pipeline's result, which may stop again.
Exceptions
- ArgumentNullException
Thrown when
stateis null.- ArgumentException
Thrown when the state did not stop at a stage of this pipeline.