Agents 1.4.0
Edge AI Agents SDK
Loading...
Searching...
No Matches
agents::Agent::Options Struct Reference

Agent execution options. More...

#include <agent.h>

Public Attributes

int max_iterations = 10
 The maximum number of iterations.
int max_consecutive_errors = 3
 The maximum number of consecutive errors.
bool human_feedback_enabled = false
 Whether human feedback is enabled.
std::function< bool(const std::string &, const JsonObject &, std::string &)> human_in_the_loop
 The human in the loop function.

Detailed Description

Member Data Documentation

◆ human_in_the_loop

std::function<bool(const std::string&, const JsonObject&, std::string&)> agents::Agent::Options::human_in_the_loop

The human in the loop function.

Parameters
messageThe message to approve
contextThe context
modificationsOutput parameter for human modifications
Returns
Whether the step was approved
Examples
autonomous_agent_example.cpp, and coroutine_example.cpp.