MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / tool

Method tool

atomic-agent/src/transcript/types.rs:77–84  ·  view source on GitHub ↗

Create a tool invocation entry.

(name: impl Into<String>, detail: Option<impl Into<String>>)

Source from the content-addressed store, hash-verified

75
76 /// Create a tool invocation entry.
77 pub fn tool(name: impl Into<String>, detail: Option<impl Into<String>>) -> Self {
78 Self {
79 entry_type: EntryType::Tool,
80 content: None,
81 tool_name: Some(name.into()),
82 tool_detail: detail.map(Into::into),
83 }
84 }
85
86 /// Returns true if this is a user entry.
87 pub fn is_user(&self) -> bool {

Calls

no outgoing calls