pub struct RunMessage {
pub message_id: MessageId,
pub from: RunId,
pub to: RunAddress,
pub content_ref: ContentRef,
pub correlation: EventCorrelation,
pub reply_to: Option<MessageId>,
pub response_contract: Option<MessageResponseContract>,
pub expires_at_millis: Option<u64>,
pub idempotency_key: IdempotencyKey,
pub policy_refs: Vec<PolicyRef>,
}Expand description
Holds run message application-layer state or configuration. Use it with the documented coordinator methods; run, journal, event, provider, or port effects are called out on those methods rather than on construction.
Fields§
§message_id: MessageIdMessage identifier for transcript, projection, or provider-response lineage.
from: RunIdFrom used by this record or request.
to: RunAddressTo used by this record or request.
content_ref: ContentRefContent reference where payload bytes or structured tool output are stored.
correlation: EventCorrelationCorrelation used by this record or request.
reply_to: Option<MessageId>Optional reply to value. When absent, callers should use the documented default or skip that optional behavior.
response_contract: Option<MessageResponseContract>Optional response contract value. When absent, callers should use the documented default or skip that optional behavior.
expires_at_millis: Option<u64>Time value in milliseconds for expires at millis. Use it for timeout, ordering, or diagnostic calculations.
idempotency_key: IdempotencyKeyIdempotency setting or key for deduping retries. Use it to prevent duplicate side effects during replay or repair.
policy_refs: Vec<PolicyRef>Policy references that govern admission, projection, execution, or delivery.
Implementations§
Source§impl RunMessage
impl RunMessage
Sourcepub fn new(
message_id: MessageId,
from: RunId,
to: RunAddress,
content_ref: ContentRef,
idempotency_key: IdempotencyKey,
) -> Self
pub fn new( message_id: MessageId, from: RunId, to: RunAddress, content_ref: ContentRef, idempotency_key: IdempotencyKey, ) -> Self
Creates a new application::agent_pool value with explicit caller-provided inputs. This constructor is data-only and performs no I/O or external side effects.
Sourcepub fn policy_ref(self, policy_ref: PolicyRef) -> Self
pub fn policy_ref(self, policy_ref: PolicyRef) -> Self
Returns an updated value with policy ref configured. This sets the policy reference on the coordination value and performs no I/O.
Trait Implementations§
Source§impl Clone for RunMessage
impl Clone for RunMessage
Source§fn clone(&self) -> RunMessage
fn clone(&self) -> RunMessage
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 RunMessage
impl Debug for RunMessage
Source§impl<'de> Deserialize<'de> for RunMessage
impl<'de> Deserialize<'de> for RunMessage
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 RunMessage
Source§impl PartialEq for RunMessage
impl PartialEq for RunMessage
Source§fn eq(&self, other: &RunMessage) -> bool
fn eq(&self, other: &RunMessage) -> bool
self and other values to be equal, and is used by ==.