pub struct ToolCallStreamingState {
pub tool_call_id: String,
pub tool_name: String,
pub display_name: String,
pub contributor: Option<ToolCallContributor>,
pub meta: Option<JsonObject>,
pub partial_input: Option<String>,
pub invocation_message: Option<StringOrMarkdown>,
}Expand description
LM is streaming the tool call parameters.
Fields§
§tool_call_id: StringUnique tool call identifier
tool_name: StringInternal tool name (for debugging/logging)
display_name: StringHuman-readable tool name
contributor: Option<ToolCallContributor>Reference to the contributor of the tool being called.
meta: Option<JsonObject>Additional provider-specific metadata for this tool call.
This MAY include a ui field corresponding to the MCP Apps (SEP-1865)
McpUiToolMeta found in MCP tool calls, which may be used in combination
with the {@link contributor} to serve MCP Apps.
partial_input: Option<String>Partial parameters accumulated so far
invocation_message: Option<StringOrMarkdown>Progress message shown while parameters are streaming
Trait Implementations§
Source§impl Clone for ToolCallStreamingState
impl Clone for ToolCallStreamingState
Source§fn clone(&self) -> ToolCallStreamingState
fn clone(&self) -> ToolCallStreamingState
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 ToolCallStreamingState
impl Debug for ToolCallStreamingState
Source§impl<'de> Deserialize<'de> for ToolCallStreamingState
impl<'de> Deserialize<'de> for ToolCallStreamingState
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 ToolCallStreamingState
impl PartialEq for ToolCallStreamingState
Source§fn eq(&self, other: &ToolCallStreamingState) -> bool
fn eq(&self, other: &ToolCallStreamingState) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ToolCallStreamingState
impl Serialize for ToolCallStreamingState
impl StructuralPartialEq for ToolCallStreamingState
Auto Trait Implementations§
impl Freeze for ToolCallStreamingState
impl RefUnwindSafe for ToolCallStreamingState
impl Send for ToolCallStreamingState
impl Sync for ToolCallStreamingState
impl Unpin for ToolCallStreamingState
impl UnsafeUnpin for ToolCallStreamingState
impl UnwindSafe for ToolCallStreamingState
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