pub struct BindRequest {
pub agent: String,
pub request_digest: BindingDigest,
pub backend: BindingBackend,
pub binding_target: Option<OperatorRef>,
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<OperatorRef>Provider-specific routing key. For Operator-backed runners this is
the logical operator_ref, never a runtime session id — which is
why it is typed OperatorRef rather than a bare string. The
schemars(with) keeps the generated JSON Schema a plain optional
string, matching the wire form the newtype serializes to.
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
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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<BindRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<BindRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
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>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for BindRequest
impl PartialEq for BindRequest
Source§impl Serialize for BindRequest
impl Serialize for BindRequest
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
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
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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