pub struct ConverseStreamBuilder { /* private fields */ }Expand description
Fluent builder for converse_stream.
Implementations§
Source§impl ConverseStreamBuilder
impl ConverseStreamBuilder
pub fn model_id(self, id: impl Into<String>) -> Self
pub fn messages(self, msg: Message) -> Self
pub fn set_messages(self, msgs: Vec<Message>) -> Self
pub fn system(self, block: SystemContentBlock) -> Self
pub fn set_system(self, blocks: Vec<SystemContentBlock>) -> Self
pub fn inference_config(self, cfg: InferenceConfiguration) -> Self
pub fn tool_config(self, tc: ToolConfiguration) -> Self
pub fn additional_model_request_fields(self, v: Value) -> Self
Source§impl ConverseStreamBuilder
impl ConverseStreamBuilder
pub async fn send(self) -> Result<ConverseStreamOutputHandle, Error>
Auto Trait Implementations§
impl !RefUnwindSafe for ConverseStreamBuilder
impl !UnwindSafe for ConverseStreamBuilder
impl Freeze for ConverseStreamBuilder
impl Send for ConverseStreamBuilder
impl Sync for ConverseStreamBuilder
impl Unpin for ConverseStreamBuilder
impl UnsafeUnpin for ConverseStreamBuilder
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