#[non_exhaustive]pub struct PromptResponse {
pub meta: Option<Meta>,
}unstable_protocol_v2 only.Expand description
Response acknowledging that a user prompt was accepted.
This response does not indicate that the agent has finished processing.
Agents report session state through state_update session updates.
See protocol docs: Prompt Accepted
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.meta: Option<Meta>The _meta property is reserved by ACP to allow clients and agents to attach additional metadata to their interactions. Implementations MUST NOT make assumptions about values at these keys.
See protocol docs: Extensibility
Implementations§
Source§impl PromptResponse
impl PromptResponse
Sourcepub fn new() -> Self
pub fn new() -> Self
Builds PromptResponse with the required response fields set; optional fields start unset or empty.
Sourcepub fn meta(self, meta: impl IntoOption<Meta>) -> Self
pub fn meta(self, meta: impl IntoOption<Meta>) -> Self
The _meta property is reserved by ACP to allow clients and agents to attach additional metadata to their interactions. Implementations MUST NOT make assumptions about values at these keys.
See protocol docs: Extensibility
Trait Implementations§
Source§impl Clone for PromptResponse
impl Clone for PromptResponse
Source§fn clone(&self) -> PromptResponse
fn clone(&self) -> PromptResponse
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 PromptResponse
impl Debug for PromptResponse
Source§impl Default for PromptResponse
impl Default for PromptResponse
Source§fn default() -> PromptResponse
fn default() -> PromptResponse
Source§impl<'de> Deserialize<'de> for PromptResponse
impl<'de> Deserialize<'de> for PromptResponse
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>,
impl Eq for PromptResponse
Source§impl IntoV1 for PromptResponse
impl IntoV1 for PromptResponse
Source§impl JsonSchema for PromptResponse
impl JsonSchema for PromptResponse
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 PromptResponse
impl PartialEq for PromptResponse
Source§fn eq(&self, other: &PromptResponse) -> bool
fn eq(&self, other: &PromptResponse) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for PromptResponse
impl Serialize for PromptResponse
impl StructuralPartialEq for PromptResponse
Auto Trait Implementations§
impl Freeze for PromptResponse
impl RefUnwindSafe for PromptResponse
impl Send for PromptResponse
impl Sync for PromptResponse
impl Unpin for PromptResponse
impl UnsafeUnpin for PromptResponse
impl UnwindSafe for PromptResponse
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
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.