- 工具循环:capture_image / get_robot_status / spawn_subagent - 子代理:技能超集(run_command 带超时截断、read_file / write_file) - V4L2 摄像头抓帧:MJPEG 优先零转码,YUYV+libjpeg 回退,/dev/video* 自动探测 - 时间戳注入:system prompt 会话级当前时间 + 工具结果执行时间 - CLI:--prompt-file / --camera / --camera-device / --model / --max-turns
10 lines
282 B
C++
10 lines
282 B
C++
#pragma once
|
|
|
|
#include "agent.hpp"
|
|
|
|
#include <string>
|
|
|
|
// 子代理:拥有命令行执行、文件读写等扩展技能(主代理的超集),
|
|
// 完成主代理委派的任务后返回结论文本。
|
|
std::string run_subagent(const AgentConfig& cfg, const std::string& task);
|