pub struct ToolSpanParams<'a> {
pub tool_name: &'a str,
pub tool_call_id: &'a str,
pub display_name: &'a str,
pub tier: Option<ToolTier>,
pub kind: &'static str,
}Available on crate feature
otel only.Expand description
Inputs needed to open an execute_tool INTERNAL span.
Mirrors the attributes set by
agent_loop::tool_execution::start_tool_span.
Fields§
§tool_name: &'a strgen_ai.tool.name — the protocol tool name.
tool_call_id: &'a strgen_ai.tool.call.id — the LLM-assigned call id.
display_name: &'a stragent_sdk.tool.display_name; skipped when empty.
tier: Option<ToolTier>agent_sdk.tool.tier; None when the tool is unknown to the
registry (matches the in-process loop’s unknown-kind path,
which omits the tier attribute).
kind: &'static stragent_sdk.tool.kind — sync / async / listen /
unknown.
Trait Implementations§
Source§impl<'a> Clone for ToolSpanParams<'a>
impl<'a> Clone for ToolSpanParams<'a>
Source§fn clone(&self) -> ToolSpanParams<'a>
fn clone(&self) -> ToolSpanParams<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for ToolSpanParams<'a>
Auto Trait Implementations§
impl<'a> Freeze for ToolSpanParams<'a>
impl<'a> RefUnwindSafe for ToolSpanParams<'a>
impl<'a> Send for ToolSpanParams<'a>
impl<'a> Sync for ToolSpanParams<'a>
impl<'a> Unpin for ToolSpanParams<'a>
impl<'a> UnsafeUnpin for ToolSpanParams<'a>
impl<'a> UnwindSafe for ToolSpanParams<'a>
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