pub struct ToolResultSubagentContent {
pub resource: Uri,
pub title: String,
pub agent_name: Option<String>,
pub description: Option<String>,
}Expand description
A reference, embedded in a tool result, to a worker chat spawned by the tool
call (a sub-agent delegation), referenced by a chat URI (ahp-chat:/...).
This is the spawning tool call’s forward view of the worker. The worker chat
records the same edge in reverse via its {@link ChatOrigin} (kind: 'tool'),
whose toolCallId identifies the tool call that emitted this content.
Fields§
§resource: UriWorker chat URI (subscribable for full chat state)
title: StringDisplay title for the subagent
agent_name: Option<String>Internal agent name
description: Option<String>Human-readable description of the subagent’s task
Trait Implementations§
Source§impl Clone for ToolResultSubagentContent
impl Clone for ToolResultSubagentContent
Source§fn clone(&self) -> ToolResultSubagentContent
fn clone(&self) -> ToolResultSubagentContent
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 ToolResultSubagentContent
impl Debug for ToolResultSubagentContent
Source§impl<'de> Deserialize<'de> for ToolResultSubagentContent
impl<'de> Deserialize<'de> for ToolResultSubagentContent
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 ToolResultSubagentContent
impl PartialEq for ToolResultSubagentContent
Source§fn eq(&self, other: &ToolResultSubagentContent) -> bool
fn eq(&self, other: &ToolResultSubagentContent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ToolResultSubagentContent
Auto Trait Implementations§
impl Freeze for ToolResultSubagentContent
impl RefUnwindSafe for ToolResultSubagentContent
impl Send for ToolResultSubagentContent
impl Sync for ToolResultSubagentContent
impl Unpin for ToolResultSubagentContent
impl UnsafeUnpin for ToolResultSubagentContent
impl UnwindSafe for ToolResultSubagentContent
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