pub struct AgentStep {
pub agent: String,
pub step: u64,
pub call: u64,
pub tool: String,
pub args: Map<String, Value>,
pub result: String,
pub model_ms: f64,
pub tool_ms: f64,
pub usage: Usage,
}Expand description
One tool call of an agent working the machine: the tool, with what, and what came back. A turn
with several calls arrives as several steps. Args and result are capped at about 2 KB; larger
args arrive as { truncated }.
Fields§
§agent: StringThe agent’s id, as in the room’s control state.
step: u64The turn, counting from 1.
call: u64The call’s place in its turn, from 0.
tool: String§args: Map<String, Value>§result: String§model_ms: f64The turn’s model time and usage ride on its first call, so totals add up.
tool_ms: f64§usage: UsageTrait Implementations§
Source§impl<'de> Deserialize<'de> for AgentStep
impl<'de> Deserialize<'de> for AgentStep
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
impl StructuralPartialEq for AgentStep
Auto Trait Implementations§
impl Forget for AgentStep
impl Freeze for AgentStep
impl RefUnwindSafe for AgentStep
impl Send for AgentStep
impl Sync for AgentStep
impl Unpin for AgentStep
impl UnsafeUnpin for AgentStep
impl UnwindSafe for AgentStep
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