pub struct IdleTurn {
pub text: String,
pub tool_calls: Vec<IdleToolCall>,
pub touched_files: Vec<PathBuf>,
pub input_tokens: u64,
pub output_tokens: u64,
}Expand description
A single turn in the idle execution
Fields§
§text: StringTurn text (assistant message)
tool_calls: Vec<IdleToolCall>Tool calls made during this turn
touched_files: Vec<PathBuf>Files touched during this turn
input_tokens: u64Token usage for this turn
output_tokens: u64Implementations§
Source§impl IdleTurn
impl IdleTurn
Sourcepub fn add_tool_call(&mut self, call: IdleToolCall)
pub fn add_tool_call(&mut self, call: IdleToolCall)
Add a tool call
Sourcepub fn add_touched_file(&mut self, path: impl Into<PathBuf>)
pub fn add_touched_file(&mut self, path: impl Into<PathBuf>)
Add a touched file
Trait Implementations§
Source§impl<'de> Deserialize<'de> for IdleTurn
impl<'de> Deserialize<'de> for IdleTurn
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for IdleTurn
impl RefUnwindSafe for IdleTurn
impl Send for IdleTurn
impl Sync for IdleTurn
impl Unpin for IdleTurn
impl UnsafeUnpin for IdleTurn
impl UnwindSafe for IdleTurn
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