Table of Contents

Class WorkflowBridge

Namespace
JD.AI.Workflows
Assembly
JD.AI.Workflows.dll

Bridges JD.AI workflow definitions to WorkflowFramework's execution engine. Translates AgentWorkflowDefinition into Workflow<AgentWorkflowData> and runs it.

public sealed class WorkflowBridge : IWorkflowBridge
Inheritance
WorkflowBridge
Implements
Inherited Members

Methods

Build(AgentWorkflowDefinition)

Builds a WorkflowFramework workflow from an AgentWorkflowDefinition.

public IWorkflow<AgentWorkflowData> Build(AgentWorkflowDefinition definition)

Parameters

definition AgentWorkflowDefinition

Returns

IWorkflow<AgentWorkflowData>

ExecuteAsync(AgentWorkflowDefinition, AgentWorkflowData, CancellationToken)

Builds and executes a workflow, returning a bridge result.

public Task<WorkflowBridgeResult> ExecuteAsync(AgentWorkflowDefinition definition, AgentWorkflowData data, CancellationToken ct = default)

Parameters

definition AgentWorkflowDefinition
data AgentWorkflowData
ct CancellationToken

Returns

Task<WorkflowBridgeResult>