pub struct ChatKitThreadItem {
pub id: String,
pub object: String,
pub thread_id: Option<String>,
pub created_at: Option<u64>,
pub item_type: Option<String>,
pub content: Vec<ChatKitThreadContent>,
pub arguments: Option<String>,
pub call_id: Option<String>,
pub name: Option<String>,
pub extra: BTreeMap<String, Value>,
}Expand description
表示 ChatKit thread item。
Fields§
§id: Stringitem ID。
object: String对象类型。
thread_id: Option<String>所属 thread ID。
created_at: Option<u64>创建时间。
item_type: Option<String>item 类型。
content: Vec<ChatKitThreadContent>message content。
arguments: Option<String>client tool call 的参数。
call_id: Option<String>client tool call ID。
name: Option<String>client tool call 名称。
extra: BTreeMap<String, Value>额外字段。
Trait Implementations§
Source§impl Clone for ChatKitThreadItem
impl Clone for ChatKitThreadItem
Source§fn clone(&self) -> ChatKitThreadItem
fn clone(&self) -> ChatKitThreadItem
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 ChatKitThreadItem
impl Debug for ChatKitThreadItem
Source§impl Default for ChatKitThreadItem
impl Default for ChatKitThreadItem
Source§fn default() -> ChatKitThreadItem
fn default() -> ChatKitThreadItem
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChatKitThreadItem
impl<'de> Deserialize<'de> for ChatKitThreadItem
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 ChatKitThreadItem
impl RefUnwindSafe for ChatKitThreadItem
impl Send for ChatKitThreadItem
impl Sync for ChatKitThreadItem
impl Unpin for ChatKitThreadItem
impl UnsafeUnpin for ChatKitThreadItem
impl UnwindSafe for ChatKitThreadItem
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