Table of Contents

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

state AgentRunState

The stopped run's state, from RunState.

input AgentRunInput

What unblocks the run.

options OrchestrationOptions

Orchestration options.

cancellationToken CancellationToken

A token to cancel the pipeline.

Returns

Task<OrchestrationResult>

The pipeline's result, which may stop again.

Exceptions

ArgumentNullException

Thrown when state is null.

ArgumentException

Thrown when the state did not stop at a stage of this pipeline.

Share