pub struct AgentStep {
pub agent: String,
pub step: u64,
pub call: u64,
pub tool: String,
pub args: Map<String, Value>,
pub result: String,
pub error: Option<String>,
pub model_ms: f64,
pub tool_ms: f64,
pub usage: Usage,
}Expand description
One tool call of an agent working the machine, as it finished: the tool, with what, and what
came back. Each turn ends with a step of its own after its calls: its program (run_code),
or no tool. 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: StringWhat it returned, as JSON text.
error: Option<String>Why it failed.
model_ms: f64The turn’s model time and usage ride on its own step, 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 Move 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