pub struct ToolCallRecord {
pub run_id: Option<RunId>,
pub command: Option<String>,
pub person: String,
pub conversation: ConversationKey,
pub server: String,
pub tool: String,
pub decision: ToolDecision,
pub error: Option<String>,
pub duration: Duration,
pub at: Timestamp,
}Expand description
One call of an [[mcp]] tool, by an agent or a chat command. Arguments and results are not
kept: they may hold secrets.
Fields§
§run_id: Option<RunId>The agent run, when an agent made the call.
command: Option<String>The [[command]], when a person ran one.
person: StringWho it was for (person_key).
conversation: ConversationKeyWhere.
server: StringThe [[mcp]] server.
tool: StringThe tool.
decision: ToolDecisionWhat happened.
error: Option<String>The transport error or the tool’s own error flag, when the call failed.
duration: DurationTime from the request to the answer (including a confirmation).
at: TimestampWhen the call was made.
Trait Implementations§
Source§impl Clone for ToolCallRecord
impl Clone for ToolCallRecord
Source§impl Debug for ToolCallRecord
impl Debug for ToolCallRecord
impl Eq for ToolCallRecord
Source§impl PartialEq for ToolCallRecord
impl PartialEq for ToolCallRecord
impl StructuralPartialEq for ToolCallRecord
Auto Trait Implementations§
impl Freeze for ToolCallRecord
impl RefUnwindSafe for ToolCallRecord
impl Send for ToolCallRecord
impl Sync for ToolCallRecord
impl Unpin for ToolCallRecord
impl UnsafeUnpin for ToolCallRecord
impl UnwindSafe for ToolCallRecord
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