#[non_exhaustive]pub struct CreateThreadAndRunRequest {
pub assistant_id: String,
pub thread: Option<Value>,
pub model: Option<String>,
pub instructions: Option<String>,
pub tools: Vec<Value>,
pub metadata: BTreeMap<String, String>,
pub extra: BTreeMap<String, Value>,
}Expand description
EN: Request body for POST /v1/threads/runs.
中文:POST /v1/threads/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。
thread: Option<Value>EN: Optional thread descriptor created with the run. 中文:随 Run 一起创建的可选线程描述。
model: Option<String>EN: Optional model override for this run. 中文:此 Run 的可选模型覆盖值。
instructions: Option<String>EN: Optional instruction override for this 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 CreateThreadAndRunRequest
impl CreateThreadAndRunRequest
Sourcepub fn builder() -> CreateThreadAndRunRequestBuilder
pub fn builder() -> CreateThreadAndRunRequestBuilder
EN: Starts building a create-thread-and-run request. 中文:开始构建创建线程并运行的请求。
Trait Implementations§
Source§impl Clone for CreateThreadAndRunRequest
impl Clone for CreateThreadAndRunRequest
Source§fn clone(&self) -> CreateThreadAndRunRequest
fn clone(&self) -> CreateThreadAndRunRequest
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 CreateThreadAndRunRequest
impl Debug for CreateThreadAndRunRequest
Source§impl PartialEq for CreateThreadAndRunRequest
impl PartialEq for CreateThreadAndRunRequest
Source§fn eq(&self, other: &CreateThreadAndRunRequest) -> bool
fn eq(&self, other: &CreateThreadAndRunRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CreateThreadAndRunRequest
Auto Trait Implementations§
impl Freeze for CreateThreadAndRunRequest
impl RefUnwindSafe for CreateThreadAndRunRequest
impl Send for CreateThreadAndRunRequest
impl Sync for CreateThreadAndRunRequest
impl Unpin for CreateThreadAndRunRequest
impl UnsafeUnpin for CreateThreadAndRunRequest
impl UnwindSafe for CreateThreadAndRunRequest
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