#[non_exhaustive]pub struct CreateThreadRunRequestBuilder { /* private fields */ }Expand description
EN: Builder for thread-run creation requests. 中文:线程 Run 创建请求的构建器。
Implementations§
Source§impl CreateThreadRunRequestBuilder
impl CreateThreadRunRequestBuilder
Sourcepub fn assistant_id(self, assistant_id: impl Into<String>) -> Self
pub fn assistant_id(self, assistant_id: impl Into<String>) -> Self
EN: Sets the Assistant id. 中文:设置 Assistant ID。
Sourcepub fn model(self, model: impl Into<String>) -> Self
pub fn model(self, model: impl Into<String>) -> Self
EN: Sets an optional model override. 中文:设置可选模型覆盖值。
Sourcepub fn instructions(self, instructions: impl Into<String>) -> Self
pub fn instructions(self, instructions: impl Into<String>) -> Self
EN: Sets optional run instructions. 中文:设置可选 Run 指令。
Sourcepub fn additional_instructions(
self,
additional_instructions: impl Into<String>,
) -> Self
pub fn additional_instructions( self, additional_instructions: impl Into<String>, ) -> Self
EN: Sets optional additional run instructions. 中文:设置可选的补充 Run 指令。
Sourcepub fn additional_message(self, message: Value) -> Self
pub fn additional_message(self, message: Value) -> Self
EN: Adds an additional message descriptor. 中文:添加一个补充消息描述。
Sourcepub fn additional_messages(
self,
messages: impl IntoIterator<Item = Value>,
) -> Self
pub fn additional_messages( self, messages: impl IntoIterator<Item = Value>, ) -> Self
EN: Replaces the additional message list. 中文:替换补充消息列表。
Sourcepub fn tools(self, tools: impl IntoIterator<Item = Value>) -> Self
pub fn tools(self, tools: impl IntoIterator<Item = Value>) -> Self
EN: Replaces the tool descriptor list. 中文:替换工具描述列表。
Sourcepub fn metadata(self, key: impl Into<String>, value: impl Into<String>) -> Self
pub fn metadata(self, key: impl Into<String>, value: impl Into<String>) -> Self
EN: Adds a metadata key/value pair. 中文:添加一个元数据键值对。
Sourcepub fn extra(self, name: impl Into<String>, value: Value) -> Self
pub fn extra(self, name: impl Into<String>, value: Value) -> Self
EN: Adds a forward-compatible JSON field. 中文:添加前向兼容的 JSON 字段。
Sourcepub fn include_file_search_result_content(self) -> Self
pub fn include_file_search_result_content(self) -> Self
EN: Includes file search result content in step details for the created run. 中文:在创建的 Run 的 step details 中包含 file search 结果内容。
Sourcepub fn build(self) -> Result<CreateThreadRunRequest, LingerError>
pub fn build(self) -> Result<CreateThreadRunRequest, LingerError>
EN: Builds and validates the request. 中文:构建并校验请求。
Trait Implementations§
Source§impl Clone for CreateThreadRunRequestBuilder
impl Clone for CreateThreadRunRequestBuilder
Source§fn clone(&self) -> CreateThreadRunRequestBuilder
fn clone(&self) -> CreateThreadRunRequestBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for CreateThreadRunRequestBuilder
impl Default for CreateThreadRunRequestBuilder
Source§fn default() -> CreateThreadRunRequestBuilder
fn default() -> CreateThreadRunRequestBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CreateThreadRunRequestBuilder
impl RefUnwindSafe for CreateThreadRunRequestBuilder
impl Send for CreateThreadRunRequestBuilder
impl Sync for CreateThreadRunRequestBuilder
impl Unpin for CreateThreadRunRequestBuilder
impl UnsafeUnpin for CreateThreadRunRequestBuilder
impl UnwindSafe for CreateThreadRunRequestBuilder
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