pub struct DelegateRequest {
pub call_id: String,
pub target_agent_id: String,
pub task: String,
pub context: Option<String>,
pub result_schema: Option<Value>,
}Expand description
Parsed __delegate_to arguments, produced by parse_delegate_args.
Fields§
§call_id: StringTool-call id the provider assigned to the __delegate_to call. Echoed
back as the tool_result id so the function-calling loop sees a
matched call → result pair.
target_agent_id: StringThe model’s chosen worker agent identifier.
task: StringThe self-contained task for the worker to perform — becomes the sole user message of the worker’s fresh transcript.
context: Option<String>Optional extra context, appended to the worker’s transcript alongside
task. None when the model supplied none.
result_schema: Option<Value>Optional JSON Schema the worker’s final answer must satisfy (#871).
None ⇒ the worker answers in free text, exactly as #870 shipped —
this is the byte-for-byte-unaffected default the acceptance criteria
require. The raw schema value is not validated for well-formedness
here (compiling it into a jsonschema::Validator is the caller’s
job, at the point it’s actually used) — a bad schema is an argument
error the caller surfaces the same way a missing task is.
Trait Implementations§
Source§impl Clone for DelegateRequest
impl Clone for DelegateRequest
Source§fn clone(&self) -> DelegateRequest
fn clone(&self) -> DelegateRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for DelegateRequest
impl RefUnwindSafe for DelegateRequest
impl Send for DelegateRequest
impl Sync for DelegateRequest
impl Unpin for DelegateRequest
impl UnsafeUnpin for DelegateRequest
impl UnwindSafe for DelegateRequest
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more