pub struct BetaThreadRun {Show 14 fields
pub id: String,
pub object: String,
pub thread_id: Option<String>,
pub assistant_id: Option<String>,
pub status: Option<String>,
pub model: Option<String>,
pub instructions: Option<String>,
pub required_action: Option<BetaThreadRunRequiredAction>,
pub last_error: Option<BetaThreadRunLastError>,
pub incomplete_details: Option<BetaThreadRunIncompleteDetails>,
pub tools: Vec<BetaThreadRunTool>,
pub metadata: Option<BTreeMap<String, String>>,
pub usage: Option<BetaThreadRunUsage>,
pub extra: BTreeMap<String, Value>,
}Expand description
表示 beta thread run 对象。
Fields§
§id: String对象 ID。
object: String对象类型。
thread_id: Option<String>thread ID。
assistant_id: Option<String>assistant ID。
status: Option<String>状态。
model: Option<String>模型 ID。
instructions: Option<String>指令。
required_action: Option<BetaThreadRunRequiredAction>需要用户采取的动作。
last_error: Option<BetaThreadRunLastError>最近错误。
incomplete_details: Option<BetaThreadRunIncompleteDetails>不完整细节。
tools: Vec<BetaThreadRunTool>工具集合。
metadata: Option<BTreeMap<String, String>>元数据。
usage: Option<BetaThreadRunUsage>用量。
extra: BTreeMap<String, Value>额外字段。
Trait Implementations§
Source§impl Clone for BetaThreadRun
impl Clone for BetaThreadRun
Source§fn clone(&self) -> BetaThreadRun
fn clone(&self) -> BetaThreadRun
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 moreSource§impl Debug for BetaThreadRun
impl Debug for BetaThreadRun
Source§impl Default for BetaThreadRun
impl Default for BetaThreadRun
Source§fn default() -> BetaThreadRun
fn default() -> BetaThreadRun
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BetaThreadRun
impl<'de> Deserialize<'de> for BetaThreadRun
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for BetaThreadRun
impl RefUnwindSafe for BetaThreadRun
impl Send for BetaThreadRun
impl Sync for BetaThreadRun
impl Unpin for BetaThreadRun
impl UnsafeUnpin for BetaThreadRun
impl UnwindSafe for BetaThreadRun
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