pub struct ChatToolArgumentsSnapshotEvent {
pub choice_index: u32,
pub tool_call_index: u32,
pub name: String,
pub arguments_delta: String,
pub arguments: String,
pub parsed_arguments: Option<JsonPayload>,
}Expand description
表示工具参数增量和当前聚合快照。
Fields§
§choice_index: u32候选索引。
tool_call_index: u32工具调用索引。
name: String工具名称。
arguments_delta: String本次参数增量。
arguments: String当前累计参数字符串。
parsed_arguments: Option<JsonPayload>如果当前参数是合法 JSON,则提供解析结果。
Trait Implementations§
Source§impl Clone for ChatToolArgumentsSnapshotEvent
impl Clone for ChatToolArgumentsSnapshotEvent
Source§fn clone(&self) -> ChatToolArgumentsSnapshotEvent
fn clone(&self) -> ChatToolArgumentsSnapshotEvent
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<'de> Deserialize<'de> for ChatToolArgumentsSnapshotEvent
impl<'de> Deserialize<'de> for ChatToolArgumentsSnapshotEvent
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 ChatToolArgumentsSnapshotEvent
impl PartialEq for ChatToolArgumentsSnapshotEvent
Source§fn eq(&self, other: &ChatToolArgumentsSnapshotEvent) -> bool
fn eq(&self, other: &ChatToolArgumentsSnapshotEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ChatToolArgumentsSnapshotEvent
Auto Trait Implementations§
impl Freeze for ChatToolArgumentsSnapshotEvent
impl RefUnwindSafe for ChatToolArgumentsSnapshotEvent
impl Send for ChatToolArgumentsSnapshotEvent
impl Sync for ChatToolArgumentsSnapshotEvent
impl Unpin for ChatToolArgumentsSnapshotEvent
impl UnsafeUnpin for ChatToolArgumentsSnapshotEvent
impl UnwindSafe for ChatToolArgumentsSnapshotEvent
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