pub struct AssistantMessageBuilder { /* private fields */ }
Expand description
Builder for AssistantMessage
.
Implementations§
Source§impl AssistantMessageBuilder
impl AssistantMessageBuilder
pub fn role<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn content<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Sourcepub fn partial<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn partial<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
是否开启Partial Mode,参考: 前缀续写
Sourcepub fn tool_calls<VALUE: Into<Vec<ToolCall>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn tool_calls<VALUE: Into<Vec<ToolCall>>>( &mut self, value: VALUE, ) -> &mut Self
在发起 Function Calling后,模型回复的要调用的工具和调用工具时需要的参数。包含一个或多个对象。由上一轮模型响应的tool_calls字段获得。
Trait Implementations§
Source§impl Clone for AssistantMessageBuilder
impl Clone for AssistantMessageBuilder
Source§fn clone(&self) -> AssistantMessageBuilder
fn clone(&self) -> AssistantMessageBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for AssistantMessageBuilder
impl RefUnwindSafe for AssistantMessageBuilder
impl Send for AssistantMessageBuilder
impl Sync for AssistantMessageBuilder
impl Unpin for AssistantMessageBuilder
impl UnwindSafe for AssistantMessageBuilder
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