#[non_exhaustive]pub struct CreateThreadRunRequest {
pub assistant_id: String,
pub model: Option<String>,
pub instructions: Option<String>,
pub additional_instructions: Option<String>,
pub additional_messages: Vec<Value>,
pub tools: Vec<Value>,
pub metadata: BTreeMap<String, String>,
pub extra: BTreeMap<String, Value>,
/* private fields */
}Expand description
EN: Request body for POST /v1/threads/{thread_id}/runs.
中文:POST /v1/threads/{thread_id}/runs 的请求体。
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.assistant_id: StringEN: Assistant id used to execute the run. 中文:用于执行 Run 的 Assistant ID。
model: Option<String>EN: Optional model override for this run. 中文:此 Run 的可选模型覆盖值。
instructions: Option<String>EN: Optional instruction override for this run. 中文:此 Run 的可选指令覆盖值。
additional_instructions: Option<String>EN: Optional additional instructions appended for this run. 中文:此 Run 追加的可选补充指令。
additional_messages: Vec<Value>EN: Optional additional messages inserted before creating the run. 中文:创建 Run 前插入的可选补充消息。
tools: Vec<Value>EN: Optional tool overrides for this run. 中文:此 Run 的可选工具覆盖值。
metadata: BTreeMap<String, String>EN: Optional metadata. 中文:可选元数据。
extra: BTreeMap<String, Value>EN: Forward-compatible optional fields not yet covered by handwritten types. 中文:手写类型尚未覆盖的前向兼容可选字段。
Implementations§
Source§impl CreateThreadRunRequest
impl CreateThreadRunRequest
Sourcepub fn builder() -> CreateThreadRunRequestBuilder
pub fn builder() -> CreateThreadRunRequestBuilder
EN: Starts building a thread-run creation request. 中文:开始构建线程 Run 创建请求。
Trait Implementations§
Source§impl Clone for CreateThreadRunRequest
impl Clone for CreateThreadRunRequest
Source§fn clone(&self) -> CreateThreadRunRequest
fn clone(&self) -> CreateThreadRunRequest
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 Debug for CreateThreadRunRequest
impl Debug for CreateThreadRunRequest
Source§impl PartialEq for CreateThreadRunRequest
impl PartialEq for CreateThreadRunRequest
Source§fn eq(&self, other: &CreateThreadRunRequest) -> bool
fn eq(&self, other: &CreateThreadRunRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CreateThreadRunRequest
impl Serialize for CreateThreadRunRequest
impl StructuralPartialEq for CreateThreadRunRequest
Auto Trait Implementations§
impl Freeze for CreateThreadRunRequest
impl RefUnwindSafe for CreateThreadRunRequest
impl Send for CreateThreadRunRequest
impl Sync for CreateThreadRunRequest
impl Unpin for CreateThreadRunRequest
impl UnsafeUnpin for CreateThreadRunRequest
impl UnwindSafe for CreateThreadRunRequest
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