Table of Contents

Method ResumeAsync

Namespace
LMKit.Agents.Workflows
Assembly
LM-Kit.NET.dll

ResumeAsync(AgentRunState, AgentRunInput, OrchestrationOptions, CancellationToken)

Continues a workflow that stopped for a person with what unblocks it: decisions on the calls it waits for (an approval step's included), the answer to its question, or the outcome of a write. Steps already done replay their recorded output.

public Task<WorkflowResult> ResumeAsync(AgentRunState state, AgentRunInput input = null, OrchestrationOptions options = null, CancellationToken cancellationToken = default)

Parameters

state AgentRunState

The stopped workflow's state, from RunState.

input AgentRunInput

What unblocks it.

options OrchestrationOptions

Orchestration options.

cancellationToken CancellationToken

A token to cancel the run.

Returns

Task<WorkflowResult>

The workflow's result, which may stop again.

Exceptions

ArgumentNullException

Thrown when state is null.

InvalidOperationException

Thrown when the state is not a stopped run of this workflow.

ArgumentException

Thrown when a decision does not answer a call the workflow waits for.

Share