pub struct CommandAgent { /* private fields */ }Expand description
An agent reached through a command line.
The command runs in the folder with the prompt on its input, and its output is the answer. It is told
VPF_ROLE (work, fix or judge), VPF_STEP, VPF_KEY, VPF_AGENT, VPF_MODEL, VPF_TOOLS (the kinds
of tools it may use, joined by commas), VPF_FOLDER, VPF_CONVERSATION (the conversation of the step’s
refused work, or nothing), VPF_COST_LEFT (what the run may still spend, or nothing), VPF_COST_FILE, a file
where it may write what each answer cost, one number per line, and VPF_CONVERSATION_FILE, a file where it may
write the id of the conversation it worked in.
For a run kept in the folder, the command’s process, output and end are kept in the request’s
keep folder, and a run that stopped while it worked waits for it and takes its answer
instead of asking again.