pub struct MessageBuilder { /* private fields */ }
Implementations§
Source§impl MessageBuilder
impl MessageBuilder
pub fn with_role(self, role: Role) -> Self
pub fn with_content(self, content: impl Into<Content>) -> Self
pub fn with_tool_call_id(self, tool_call_id: impl Into<String>) -> Self
pub fn with_tool_calls(self, tool_calls: Vec<ToolCall>) -> Self
pub fn add_tool_call(self, tool_call: ToolCall) -> Self
pub fn build(self) -> Message
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MessageBuilder
impl RefUnwindSafe for MessageBuilder
impl Send for MessageBuilder
impl Sync for MessageBuilder
impl Unpin for MessageBuilder
impl UnwindSafe for MessageBuilder
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