pub struct AiBound { /* private fields */ }Expand description
Fluent call builder (prompt / system / generate / stream_response).
Implementations§
Source§impl AiBound
impl AiBound
pub fn system(self, system: impl Into<String>) -> Self
pub fn prompt(self, prompt: impl Into<String>) -> Self
pub fn messages(self, messages: Messages) -> Self
Sourcepub fn builder(self) -> LanguageModelRequestBuilder<SharedModel, SystemStage>
pub fn builder(self) -> LanguageModelRequestBuilder<SharedModel, SystemStage>
Full AISDK builder (model already set).
Sourcepub async fn generate(self) -> Result<GenerateTextResponse, AiError>
pub async fn generate(self) -> Result<GenerateTextResponse, AiError>
Non-streaming generation.
Auto Trait Implementations§
impl !RefUnwindSafe for AiBound
impl !UnwindSafe for AiBound
impl Freeze for AiBound
impl Send for AiBound
impl Sync for AiBound
impl Unpin for AiBound
impl UnsafeUnpin for AiBound
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