pub struct ActionProposal { /* private fields */ }Expand description
Runtime-owned, provider-neutral proposal for a mutating registered action.
This type is public only so tool crates can supply deterministic proposal
evidence to merry-runtime. It is unstable implementation-facing API: it is
not part of merry_core::RuntimeJournalEvent, is not provider wire format, and must
not be rendered into provider-visible tool specs or continuations.
Implementations§
Source§impl ActionProposal
impl ActionProposal
Sourcepub fn new(
call: &PendingToolCall,
action_kind: ToolActionKind,
label: impl Into<String>,
subject: impl Into<String>,
summary: impl Into<String>,
evidence: ActionProposalEvidence,
) -> Result<Self, ActionProposalError>
pub fn new( call: &PendingToolCall, action_kind: ToolActionKind, label: impl Into<String>, subject: impl Into<String>, summary: impl Into<String>, evidence: ActionProposalEvidence, ) -> Result<Self, ActionProposalError>
Creates a validated mutating action proposal for a pending tool call.
Sourcepub fn tool_call_id(&self) -> &ToolCallId
pub fn tool_call_id(&self) -> &ToolCallId
Returns the proposed tool call id.
Sourcepub fn action_kind(&self) -> ToolActionKind
pub fn action_kind(&self) -> ToolActionKind
Returns the proposed runtime action kind.
Sourcepub fn evidence(&self) -> &ActionProposalEvidence
pub fn evidence(&self) -> &ActionProposalEvidence
Returns provider-neutral deterministic proposal evidence.
Trait Implementations§
Source§impl Clone for ActionProposal
impl Clone for ActionProposal
Source§impl Debug for ActionProposal
impl Debug for ActionProposal
Source§impl<'de> Deserialize<'de> for ActionProposal
impl<'de> Deserialize<'de> for ActionProposal
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 ActionProposal
Source§impl PartialEq for ActionProposal
impl PartialEq for ActionProposal
Source§impl Serialize for ActionProposal
impl Serialize for ActionProposal
impl StructuralPartialEq for ActionProposal
Auto Trait Implementations§
impl Forget for ActionProposal
impl Freeze for ActionProposal
impl Move for ActionProposal
impl RefUnwindSafe for ActionProposal
impl Send for ActionProposal
impl Sync for ActionProposal
impl Unpin for ActionProposal
impl UnsafeUnpin for ActionProposal
impl UnwindSafe for ActionProposal
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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.