pub struct PackAgentRuntimeLog {
pub context: PackLogContext,
pub duration_ms: Option<f64>,
pub from_agent: Option<String>,
pub instructions: Option<String>,
pub model: Option<String>,
pub name: Option<String>,
pub to_agent: Option<String>,
pub token_usage: Option<String>,
pub turn_type: String,
pub type_: PackAgentRuntimeLogType,
}Expand description
Pack log generated by an executing agent runtime.
JSON schema
{
"description": "Pack log generated by an executing agent runtime.",
"type": "object",
"required": [
"context",
"turnType",
"type"
],
"properties": {
"context": {
"$ref": "#/components/schemas/PackLogContext"
},
"durationMs": {
"description": "The duration of the turn in milliseconds.",
"type": "number"
},
"fromAgent": {
"description": "The name of the agent that initiated the turn.",
"type": "string"
},
"instructions": {
"description": "The instructions for the turn.",
"type": "string"
},
"model": {
"description": "The model used for the turn.",
"type": "string"
},
"name": {
"description": "The name of the turn target.",
"type": "string"
},
"toAgent": {
"description": "The name of the agent that received the turn.",
"type": "string"
},
"tokenUsage": {
"description": "The token usage for the turn.",
"type": "string"
},
"turnType": {
"description": "The type of LLM agent turn that this log is for.",
"type": "string"
},
"type": {
"type": "string",
"enum": [
"agentRuntime"
],
"x-tsType": "PackLogType.AgentRuntime"
}
},
"additionalProperties": false,
"x-schema-name": "PackAgentRuntimeLog"
}Fields§
§context: PackLogContext§duration_ms: Option<f64>§from_agent: Option<String>The name of the agent that initiated the turn.
instructions: Option<String>The instructions for the turn.
model: Option<String>The model used for the turn.
name: Option<String>The name of the turn target.
to_agent: Option<String>The name of the agent that received the turn.
token_usage: Option<String>The token usage for the turn.
turn_type: StringThe type of LLM agent turn that this log is for.
type_: PackAgentRuntimeLogTypeTrait Implementations§
Source§impl Clone for PackAgentRuntimeLog
impl Clone for PackAgentRuntimeLog
Source§fn clone(&self) -> PackAgentRuntimeLog
fn clone(&self) -> PackAgentRuntimeLog
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PackAgentRuntimeLog
impl Debug for PackAgentRuntimeLog
Source§impl<'de> Deserialize<'de> for PackAgentRuntimeLog
impl<'de> Deserialize<'de> for PackAgentRuntimeLog
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
Source§impl From<&PackAgentRuntimeLog> for PackAgentRuntimeLog
impl From<&PackAgentRuntimeLog> for PackAgentRuntimeLog
Source§fn from(value: &PackAgentRuntimeLog) -> Self
fn from(value: &PackAgentRuntimeLog) -> Self
Converts to this type from the input type.
Source§impl From<PackAgentRuntimeLog> for PackLog
impl From<PackAgentRuntimeLog> for PackLog
Source§fn from(value: PackAgentRuntimeLog) -> Self
fn from(value: PackAgentRuntimeLog) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PackAgentRuntimeLog
impl RefUnwindSafe for PackAgentRuntimeLog
impl Send for PackAgentRuntimeLog
impl Sync for PackAgentRuntimeLog
impl Unpin for PackAgentRuntimeLog
impl UnwindSafe for PackAgentRuntimeLog
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