pulsatrix 1.1.0
Loading...
Searching...
No Matches
pulsatrix::orch::ToolLoopOptions Struct Reference

Settings for RunToolLoop(). More...

#include <tool_loop.hpp>

Collaboration diagram for pulsatrix::orch::ToolLoopOptions:

Public Attributes

int max_turns = 20
 The most requests to make. The loop stops there even if the model wants more tools.
 
StreamCallbacks stream
 
std::function< void(const Message &)> on_message
 Called with each message the loop adds: the model's answers and the tool results.
 

Detailed Description

Settings for RunToolLoop().

Member Data Documentation

◆ max_turns

int pulsatrix::orch::ToolLoopOptions::max_turns = 20

The most requests to make. The loop stops there even if the model wants more tools.

◆ on_message

std::function<void(const Message&)> pulsatrix::orch::ToolLoopOptions::on_message

Called with each message the loop adds: the model's answers and the tool results.

◆ stream

StreamCallbacks pulsatrix::orch::ToolLoopOptions::stream

The documentation for this struct was generated from the following file: