Agents 0.0.2
Edge AI Agents SDK
Loading...
Searching...
No Matches
PromptChainingWorkflow::Step Struct Reference

Step in the workflow. More...

#include <prompt_chaining_workflow.h>

Public Member Functions

 Step (const String &name, const String &prompt_template, std::function< bool(const JsonObject &)> validator=nullptr, std::function< JsonObject(const JsonObject &)> transformer=nullptr)
 Constructor.
 

Public Attributes

String name
 Name of the step.
 
String prompt_template
 Prompt template for this step.
 
std::function< bool(const JsonObject &)> validator
 Function to validate step output (returns true if valid)
 
std::function< JsonObject(const JsonObject &)> transformer
 Function to transform step output for the next step.
 
bool use_tools = false
 Flag to control tool usage.
 

Detailed Description

Step in the workflow.

Constructor & Destructor Documentation

◆ Step()

agents::workflows::PromptChainingWorkflow::Step::Step ( const String & name,
const String & prompt_template,
std::function< bool(const JsonObject &)> validator = nullptr,
std::function< JsonObject(const JsonObject &)> transformer = nullptr )
inline

Constructor.

Parameters
nameThe name of the step
prompt_templateThe prompt template of the step
validatorThe validator function for the step
transformerThe transformer function for the step