pub struct FireStreamHandle { /* private fields */ }Expand description
Handle returned by Agent::fire_stream.
Unlike SendHandle, this does NOT hold an AgentRuntime — the session is
temporary. Provides recv() for streaming and wait() (IntoFuture) for
the final ChatResponse.
Implementations§
Source§impl FireStreamHandle
impl FireStreamHandle
Sourcepub async fn recv(&mut self) -> Option<AgentEvent>
pub async fn recv(&mut self) -> Option<AgentEvent>
Receive the next streaming event.
Trait Implementations§
Source§impl IntoFuture for FireStreamHandle
impl IntoFuture for FireStreamHandle
Source§type Output = Result<ChatResponse, OrchestrateError>
type Output = Result<ChatResponse, OrchestrateError>
The output that the future will produce on completion.
Source§type IntoFuture = Pin<Box<dyn Future<Output = <FireStreamHandle as IntoFuture>::Output> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = <FireStreamHandle as IntoFuture>::Output> + Send>>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for FireStreamHandle
impl !UnwindSafe for FireStreamHandle
impl Freeze for FireStreamHandle
impl Send for FireStreamHandle
impl Sync for FireStreamHandle
impl Unpin for FireStreamHandle
impl UnsafeUnpin for FireStreamHandle
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