Table of Contents

Class RunSkillStep

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

A WorkflowFramework step that invokes a Semantic Kernel skill (prompt) against the configured LLM with auto-tool-calling enabled.

public sealed class RunSkillStep : IStep<AgentWorkflowData>
Inheritance
RunSkillStep
Implements
Inherited Members

Constructors

RunSkillStep(string, string)

public RunSkillStep(string name, string skillPrompt)

Parameters

name string

Human-readable step name.

skillPrompt string

Prompt template for this skill. Use {prompt} to reference the workflow's input prompt, and {previous} for the prior step's output.

Properties

Name

Gets the name of this step.

public string Name { get; }

Property Value

string

Methods

ExecuteAsync(IWorkflowContext<AgentWorkflowData>)

Executes this step with the given typed context.

public Task ExecuteAsync(IWorkflowContext<AgentWorkflowData> context)

Parameters

context IWorkflowContext<AgentWorkflowData>

The workflow context.

Returns

Task

A task representing the asynchronous operation.