pub enum ThinkResponse {
Do {
index: usize,
result_tx: SyncSender<String>,
},
Complete {
result: Result<Value, String>,
},
}Expand description
Response from the agent during a think session.
The interpreter blocks on an mpsc channel and receives these responses. Multiple responses may arrive (Do for recursive eval, then Complete).
Variants§
Do
The LLM invoked the “do” tool for recursive evaluation.
The interpreter should evaluate children[index] and send the result
back through result_tx.
Fields
§
result_tx: SyncSender<String>Channel to send the evaluation result back to the agent.
Complete
The think block completed with a final value.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ThinkResponse
impl RefUnwindSafe for ThinkResponse
impl Send for ThinkResponse
impl Sync for ThinkResponse
impl Unpin for ThinkResponse
impl UnsafeUnpin for ThinkResponse
impl UnwindSafe for ThinkResponse
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