pub struct ClientToolCallItem {
pub id: String,
pub object: String,
pub created_at: i64,
pub thread_id: String,
pub status: ClientToolCallStatus,
pub call_id: String,
pub name: String,
pub arguments: String,
pub output: Option<String>,
}Expand description
Record of a client side tool invocation initiated by the assistant.
Fields§
§id: StringIdentifier of the thread item.
object: StringType discriminator that is always chatkit.thread_item.
created_at: i64Unix timestamp (in seconds) for when the item was created.
thread_id: StringIdentifier of the parent thread.
status: ClientToolCallStatusExecution status for the tool call.
call_id: StringIdentifier for the client tool call.
name: StringTool name that was invoked.
arguments: StringJSON-encoded arguments that were sent to the tool.
output: Option<String>JSON-encoded output captured from the tool. Defaults to null while execution is in progress.
Trait Implementations§
Source§impl Clone for ClientToolCallItem
impl Clone for ClientToolCallItem
Source§fn clone(&self) -> ClientToolCallItem
fn clone(&self) -> ClientToolCallItem
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 ClientToolCallItem
impl Debug for ClientToolCallItem
Source§impl<'de> Deserialize<'de> for ClientToolCallItem
impl<'de> Deserialize<'de> for ClientToolCallItem
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
Source§impl PartialEq for ClientToolCallItem
impl PartialEq for ClientToolCallItem
Source§impl Serialize for ClientToolCallItem
impl Serialize for ClientToolCallItem
impl StructuralPartialEq for ClientToolCallItem
Auto Trait Implementations§
impl Freeze for ClientToolCallItem
impl RefUnwindSafe for ClientToolCallItem
impl Send for ClientToolCallItem
impl Sync for ClientToolCallItem
impl Unpin for ClientToolCallItem
impl UnwindSafe for ClientToolCallItem
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