Table of Contents

Method DeliverEvent

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

DeliverEvent(AgentRunState, string, string, string)

Delivers an event to a run that waits for it: when the run is in AwaitingEvent for this event and correlation key, the payload is kept for the waiting step and the run becomes resumable (Suspended); resume it to go on. False, and nothing changed, when the run waits for anything else.

public static bool DeliverEvent(AgentRunState state, string eventName, string correlation, string payload)

Parameters

state AgentRunState

The waiting run, changed in place.

eventName string

The event's name.

correlation string

The event's correlation key.

payload string

The event's payload, the waiting step's output.

Returns

bool

Whether the run took the event.

Share