pub struct DelegatedWork {
pub agent_id: String,
pub prompt: String,
pub turns: Vec<Turn>,
pub result: Option<String>,
}Expand description
A sub-agent delegation: a turn that spawned child work.
Fields§
§agent_id: StringProvider-specific agent identifier (e.g. session ID, task ID).
prompt: StringThe prompt/instruction given to the sub-agent.
turns: Vec<Turn>Turns produced by the sub-agent (may be empty if not available or if the sub-agent’s work is stored in a separate session).
result: Option<String>Final result returned by the sub-agent.
Trait Implementations§
Source§impl Clone for DelegatedWork
impl Clone for DelegatedWork
Source§fn clone(&self) -> DelegatedWork
fn clone(&self) -> DelegatedWork
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 DelegatedWork
impl Debug for DelegatedWork
Source§impl<'de> Deserialize<'de> for DelegatedWork
impl<'de> Deserialize<'de> for DelegatedWork
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 DelegatedWork
impl RefUnwindSafe for DelegatedWork
impl Send for DelegatedWork
impl Sync for DelegatedWork
impl Unpin for DelegatedWork
impl UnsafeUnpin for DelegatedWork
impl UnwindSafe for DelegatedWork
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