Step in the workflow.
More...
#include <prompt_chaining_workflow.h>
|
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.
|
|
◆ 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
-
name | The name of the step |
prompt_template | The prompt template of the step |
validator | The validator function for the step |
transformer | The transformer function for the step |