#[non_exhaustive]pub struct RequiresActionStateUpdate {
pub meta: Option<Meta>,
}unstable_protocol_v2 only.Expand description
The foreground workflow as a whole is blocked on user action.
Agents SHOULD report this state when foreground work cannot progress without
user action. Pending permissions or elicitations alone do not imply this
state if other foreground work can progress, or if the requests belong only
to independent background activity. Once reported, agents MUST report
running when progress resumes, or idle if the work ends without resuming.
Responding to one request does not itself imply running.
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 RequiresActionStateUpdate
impl RequiresActionStateUpdate
Sourcepub fn new() -> Self
pub fn new() -> Self
Builds RequiresActionStateUpdate with the required 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 RequiresActionStateUpdate
impl Clone for RequiresActionStateUpdate
Source§impl Debug for RequiresActionStateUpdate
impl Debug for RequiresActionStateUpdate
Source§impl Default for RequiresActionStateUpdate
impl Default for RequiresActionStateUpdate
Source§impl<'de> Deserialize<'de> for RequiresActionStateUpdate
impl<'de> Deserialize<'de> for RequiresActionStateUpdate
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 RequiresActionStateUpdate
Source§impl JsonSchema for RequiresActionStateUpdate
impl JsonSchema for RequiresActionStateUpdate
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 moreimpl StructuralPartialEq for RequiresActionStateUpdate
Auto Trait Implementations§
impl Freeze for RequiresActionStateUpdate
impl RefUnwindSafe for RequiresActionStateUpdate
impl Send for RequiresActionStateUpdate
impl Sync for RequiresActionStateUpdate
impl Unpin for RequiresActionStateUpdate
impl UnsafeUnpin for RequiresActionStateUpdate
impl UnwindSafe for RequiresActionStateUpdate
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.