pub struct LlmSpanBuilder { /* private fields */ }Expand description
Builder for creating LlmSpan instances.
Implementations§
Source§impl LlmSpanBuilder
impl LlmSpanBuilder
Sourcepub fn parent_span_id(self, id: impl Into<SpanId>) -> Self
pub fn parent_span_id(self, id: impl Into<SpanId>) -> Self
Set parent span ID.
Sourcepub fn token_usage(self, usage: TokenUsage) -> Self
pub fn token_usage(self, usage: TokenUsage) -> Self
Set token usage.
Sourcepub fn status(self, status: SpanStatus) -> Self
pub fn status(self, status: SpanStatus) -> Self
Set status.
Trait Implementations§
Source§impl Default for LlmSpanBuilder
impl Default for LlmSpanBuilder
Source§fn default() -> LlmSpanBuilder
fn default() -> LlmSpanBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LlmSpanBuilder
impl RefUnwindSafe for LlmSpanBuilder
impl Send for LlmSpanBuilder
impl Sync for LlmSpanBuilder
impl Unpin for LlmSpanBuilder
impl UnwindSafe for LlmSpanBuilder
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