Agents 0.0.2
Edge AI Agents SDK
|
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. | |
Task definition for parallel execution.
|
inline |
Constructor.
name | The name of the task |
prompt_template | The prompt template of the task |
context | The context of the task |
prompt_fn | The prompt function of the task |
result_parser | The result parser of the task |