pub struct RootTurnSpanParams<'a> {
pub provider_id: &'static str,
pub model: &'a str,
pub conversation_id: &'a str,
}Available on crate feature
otel only.Expand description
Inputs needed to open the daemon’s root invoke_agent span.
The daemon-hosted worker drives one turn across multiple tokio tasks
(execute → suspend at the tool boundary → resume). Unlike the
in-process loop’s agent_loop root span — which keeps a single live
span wrapping the whole run future — the worker creates this span
live on the FRESH turn, captures its (trace_id, span_id) to persist
on the turn attempt, and re-parents every later span (resumed chat
calls, child-task execute_tool calls) under those ids via
remote_parent_context.
Fields§
§provider_id: &'static strRaw SDK provider id (e.g. anthropic); normalised to the
gen_ai.provider.name semconv value internally.
model: &'a strModel driving the turn (gen_ai.request.model).
conversation_id: &'a strThread / conversation id (gen_ai.conversation.id).
Trait Implementations§
Source§impl<'a> Clone for RootTurnSpanParams<'a>
impl<'a> Clone for RootTurnSpanParams<'a>
Source§fn clone(&self) -> RootTurnSpanParams<'a>
fn clone(&self) -> RootTurnSpanParams<'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 RootTurnSpanParams<'a>
Auto Trait Implementations§
impl<'a> Freeze for RootTurnSpanParams<'a>
impl<'a> RefUnwindSafe for RootTurnSpanParams<'a>
impl<'a> Send for RootTurnSpanParams<'a>
impl<'a> Sync for RootTurnSpanParams<'a>
impl<'a> Unpin for RootTurnSpanParams<'a>
impl<'a> UnsafeUnpin for RootTurnSpanParams<'a>
impl<'a> UnwindSafe for RootTurnSpanParams<'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