Share via


FlowOrchestrator.ExecuteFlowAsync Method

Definition

Execute a given flow.

public System.Threading.Tasks.Task<Microsoft.SemanticKernel.FunctionResult> ExecuteFlowAsync (Microsoft.SemanticKernel.Experimental.Orchestration.Flow flow, string sessionId, string input, Microsoft.SemanticKernel.KernelArguments? kernelArguments = default);
member this.ExecuteFlowAsync : Microsoft.SemanticKernel.Experimental.Orchestration.Flow * string * string * Microsoft.SemanticKernel.KernelArguments -> System.Threading.Tasks.Task<Microsoft.SemanticKernel.FunctionResult>
Public Function ExecuteFlowAsync (flow As Flow, sessionId As String, input As String, Optional kernelArguments As KernelArguments = Nothing) As Task(Of FunctionResult)

Parameters

flow
Flow

goal to achieve

sessionId
String

execution session id

input
String

current input

kernelArguments
KernelArguments

execution kernel arguments

Returns

KernelArguments, which includes a json array of strings as output. The flow result is also exposed through the context when completes.

Applies to