Agents 0.0.2
Edge AI Agents SDK
Loading...
Searching...
No Matches
ParallelizationWorkflow::Task Struct Reference

Task definition for parallel execution. More...

#include <parallelization_workflow.h>

Public Member Functions

 Task (const String &name, const String &prompt_template, const JsonObject &context=JsonObject(), std::function< String(const String &)> prompt_fn=nullptr, std::function< JsonObject(const String &)> result_parser=nullptr)
 Constructor.
 

Public Attributes

String name
 The name of the task.
 
String prompt_template
 The prompt template of the task.
 
JsonObject context
 The context of the task.
 
std::function< String(const String &)> prompt_fn
 The prompt function of the task.
 
std::function< JsonObject(const String &)> result_parser
 The result parser of the task.
 

Detailed Description

Task definition for parallel execution.

Note
This is a task in the parallelization workflow. It contains the name, prompt template, context, prompt function, and result parser.

Constructor & Destructor Documentation

◆ Task()

agents::workflows::ParallelizationWorkflow::Task::Task ( const String & name,
const String & prompt_template,
const JsonObject & context = JsonObject(),
std::function< String(const String &)> prompt_fn = nullptr,
std::function< JsonObject(const String &)> result_parser = nullptr )
inline

Constructor.

Parameters
nameThe name of the task
prompt_templateThe prompt template of the task
contextThe context of the task
prompt_fnThe prompt function of the task
result_parserThe result parser of the task