pub enum CallKind {
Generate,
Stream,
}Expand description
Discriminates the active call kind passed to
LanguageModelMiddleware::transform_params.
Mirrors ai-sdk’s type: 'generate' | 'stream' discriminator.
Variants§
Generate
Non-streaming generation; the wrapper will invoke
LanguageModel::do_generate after the middleware chain runs.
Stream
Streaming generation; the wrapper will invoke
LanguageModel::do_stream after the middleware chain runs.
Trait Implementations§
impl Copy for CallKind
impl Eq for CallKind
impl StructuralPartialEq for CallKind
Auto Trait Implementations§
impl Freeze for CallKind
impl RefUnwindSafe for CallKind
impl Send for CallKind
impl Sync for CallKind
impl Unpin for CallKind
impl UnsafeUnpin for CallKind
impl UnwindSafe for CallKind
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