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.
Implementations§
Trait Implementations§
Source§impl Agent for CommandAgent
impl Agent for CommandAgent
Source§fn ask(&self, request: &AgentRequest<'_>) -> Result<AgentAnswer, String>
fn ask(&self, request: &AgentRequest<'_>) -> Result<AgentAnswer, String>
Asks the agent. Read more
Source§impl Clone for CommandAgent
impl Clone for CommandAgent
Auto Trait Implementations§
impl Forget for CommandAgent
impl Freeze for CommandAgent
impl Move for CommandAgent
impl RefUnwindSafe for CommandAgent
impl Send for CommandAgentwhere
RawVecInner: Send,
impl Sync for CommandAgentwhere
RawVecInner: Sync,
impl Unpin for CommandAgent
impl UnsafeUnpin for CommandAgent
impl UnwindSafe for CommandAgentwhere
RawVecInner: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more