#[non_exhaustive]pub struct ToolStreamUpdateEvent { /* private fields */ }Expand description
A tool yielded a progress event (ToolStreamUpdateEvent).
Implementations§
Source§impl ToolStreamUpdateEvent
impl ToolStreamUpdateEvent
Sourcepub fn invocation_state(&self) -> &InvocationState
pub fn invocation_state(&self) -> &InvocationState
The caller’s per-invocation state.
Sourcepub fn invocation_context(&self) -> Option<&InvocationContext>
pub fn invocation_context(&self) -> Option<&InvocationContext>
The request this event belongs to.
Source§impl ToolStreamUpdateEvent
impl ToolStreamUpdateEvent
Sourcepub fn event(&self) -> &ToolStreamEvent
pub fn event(&self) -> &ToolStreamEvent
The tool’s progress event.
Trait Implementations§
Source§impl Debug for ToolStreamUpdateEvent
impl Debug for ToolStreamUpdateEvent
Source§impl From<&ToolStreamUpdateEvent> for ToolStreamUpdateEventData
impl From<&ToolStreamUpdateEvent> for ToolStreamUpdateEventData
Source§fn from(event: &ToolStreamUpdateEvent) -> Self
fn from(event: &ToolStreamUpdateEvent) -> Self
Converts to this type from the input type.
Source§impl From<&ToolStreamUpdateEvent> for AgentStreamEvent
impl From<&ToolStreamUpdateEvent> for AgentStreamEvent
Source§fn from(event: &ToolStreamUpdateEvent) -> Self
fn from(event: &ToolStreamUpdateEvent) -> Self
Converts to this type from the input type.
Source§impl HookEvent for ToolStreamUpdateEvent
impl HookEvent for ToolStreamUpdateEvent
Source§type Event<'a> = ToolStreamUpdateEvent
type Event<'a> = ToolStreamUpdateEvent
The event type for an agent borrow of lifetime
'a.impl<H> IntoHookImpl<ToolStreamUpdateEvent> for Hwhere
H: Hook<ToolStreamUpdateEvent>,
impl<F, R> IntoSyncHook<ToolStreamUpdateEvent> for F
Auto Trait Implementations§
impl !RefUnwindSafe for ToolStreamUpdateEvent
impl !UnwindSafe for ToolStreamUpdateEvent
impl Freeze for ToolStreamUpdateEvent
impl Send for ToolStreamUpdateEvent
impl Sync for ToolStreamUpdateEvent
impl Unpin for ToolStreamUpdateEvent
impl UnsafeUnpin for ToolStreamUpdateEvent
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.