pub struct BindRequest {
pub agent: String,
pub request_digest: BindingDigest,
pub backend: BindingBackend,
pub binding_target: Option<String>,
pub requested_model: Option<String>,
pub requested_tools: Vec<String>,
pub launch_variant: Option<String>,
}Expand description
Platform-neutral request sent to an AgentBindingProvider
before a Run is dispatched.
The request contains only Swarm declarations. A provider may resolve
platform aliases or inspect its own execution environment, but Swarm
validates the returned BindReceipt before accepting it.
Fields§
§agent: StringLogical agent name; the receipt correlation key.
request_digest: BindingDigestDigest of the declaration-only BoundAgent snapshot.
backend: BindingBackendRunner backend family Core resolved for this agent.
binding_target: Option<String>Provider-specific routing key. For Operator-backed runners this is
the logical operator_ref, never a runtime session id.
requested_model: Option<String>Requested model name or tier from AgentProfile::model.
requested_tools: Vec<String>Minimum tool grant declared by the resolved Runner.
launch_variant: Option<String>Platform launch variant requested by the resolved Runner.
Trait Implementations§
Source§impl Clone for BindRequest
impl Clone for BindRequest
Source§fn clone(&self) -> BindRequest
fn clone(&self) -> BindRequest
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 BindRequest
impl Debug for BindRequest
Source§impl<'de> Deserialize<'de> for BindRequest
impl<'de> Deserialize<'de> for BindRequest
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
impl Eq for BindRequest
Source§impl JsonSchema for BindRequest
impl JsonSchema for BindRequest
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for BindRequest
impl PartialEq for BindRequest
Source§impl Serialize for BindRequest
impl Serialize for BindRequest
impl StructuralPartialEq for BindRequest
Auto Trait Implementations§
impl Freeze for BindRequest
impl RefUnwindSafe for BindRequest
impl Send for BindRequest
impl Sync for BindRequest
impl Unpin for BindRequest
impl UnsafeUnpin for BindRequest
impl UnwindSafe for BindRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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>
Converts
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>
Converts
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