pub struct CapabilityRequest {
pub kind: String,
pub capability: String,
pub input_contract: String,
pub output_contract: String,
pub constraints: CapabilityConstraints,
pub reason: String,
}Expand description
A structured request the model emits when text reasoning is genuinely insufficient for a computational task. The model NEVER generates or runs code — it only describes what it needs.
The supervisor decides whether to fulfil the request.
Fields§
§kind: StringMust be “capability_request” — validated after parse.
capability: StringShort identifier for the capability class (e.g., “stream_parse_logs”).
input_contract: StringHuman-readable description of the expected input format.
output_contract: StringHuman-readable description of the expected output format.
constraints: CapabilityConstraints§reason: StringWhy text reasoning alone is insufficient for this task.
Implementations§
Trait Implementations§
Source§impl Clone for CapabilityRequest
impl Clone for CapabilityRequest
Source§fn clone(&self) -> CapabilityRequest
fn clone(&self) -> CapabilityRequest
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 CapabilityRequest
impl Debug for CapabilityRequest
Source§impl<'de> Deserialize<'de> for CapabilityRequest
impl<'de> Deserialize<'de> for CapabilityRequest
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 CapabilityRequest
impl RefUnwindSafe for CapabilityRequest
impl Send for CapabilityRequest
impl Sync for CapabilityRequest
impl Unpin for CapabilityRequest
impl UnsafeUnpin for CapabilityRequest
impl UnwindSafe for CapabilityRequest
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