pub struct SendResponseCallProjection {
pub peer_id: PeerId,
pub display_name: Option<String>,
pub in_reply_to: String,
}Expand description
Schema-shaped model-facing send_response call affordance.
This helper owns the field names used when a prompt tells a model how to
answer a correlated peer request. The MCP SendResponseInput schema must
accept the object rendered here; comms tests pin that boundary.
Fields§
§peer_id: PeerId§display_name: Option<String>§in_reply_to: StringImplementations§
Source§impl SendResponseCallProjection
impl SendResponseCallProjection
pub const TOOL_NAME: &'static str = "send_response"
pub const PEER_ID_FIELD: &'static str = "peer_id"
pub const DISPLAY_NAME_FIELD: &'static str = "display_name"
pub const IN_REPLY_TO_FIELD: &'static str = "in_reply_to"
pub const STATUS_FIELD: &'static str = "status"
pub const RESULT_FIELD: &'static str = "result"
pub fn new( peer_id: PeerId, display_name: Option<&str>, in_reply_to: impl Into<String>, ) -> Self
Sourcepub fn completed_example_args(&self) -> Value
pub fn completed_example_args(&self) -> Value
A concrete, schema-valid example argument object for a completed reply.
The model may replace status with "failed". Public result payloads
are typed by the comms contract, so the generic projection omits a
result body instead of advertising arbitrary JSON.
pub fn instruction_text(&self) -> String
Trait Implementations§
Source§impl Clone for SendResponseCallProjection
impl Clone for SendResponseCallProjection
Source§fn clone(&self) -> SendResponseCallProjection
fn clone(&self) -> SendResponseCallProjection
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 SendResponseCallProjection
impl Debug for SendResponseCallProjection
Source§impl PartialEq for SendResponseCallProjection
impl PartialEq for SendResponseCallProjection
Source§fn eq(&self, other: &SendResponseCallProjection) -> bool
fn eq(&self, other: &SendResponseCallProjection) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for SendResponseCallProjection
impl StructuralPartialEq for SendResponseCallProjection
Auto Trait Implementations§
impl Freeze for SendResponseCallProjection
impl RefUnwindSafe for SendResponseCallProjection
impl Send for SendResponseCallProjection
impl Sync for SendResponseCallProjection
impl Unpin for SendResponseCallProjection
impl UnsafeUnpin for SendResponseCallProjection
impl UnwindSafe for SendResponseCallProjection
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,
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
Compare self to
key and return true if they are equal.