#[non_exhaustive]pub enum MessageProducer {
Principal {
principal: PrincipalIdentity,
},
ModelAttempt {
attempt_id: AttemptId,
},
Capability {
owner: PrincipalIdentity,
capability: CapabilityReference,
},
ToolInvocation {
owner: PrincipalIdentity,
capability: CapabilityReference,
invocation_id: InvocationId,
},
}Expand description
Typed attribution for the entity that produced a message.
Capability names are registry-local, so capability-based variants include the owning principal. A tool result additionally carries its invocation ID; a model message references the durable attempt that snapshots provider and model identity.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Principal
Direct input attributable to one authenticated principal.
Fields
principal: PrincipalIdentityThe authenticated producer.
ModelAttempt
Output attributable to one durable model attempt.
Capability
Output from a versioned non-tool capability.
Fields
owner: PrincipalIdentityPrincipal owning the capability registry namespace.
capability: CapabilityReferencePinned agent, workflow, or application capability.
ToolInvocation
Output from one committed tool invocation.
Fields
owner: PrincipalIdentityPrincipal owning the capability registry namespace.
capability: CapabilityReferencePinned invoked tool capability.
invocation_id: InvocationIdDurable invocation record for call/result correlation.
Implementations§
Source§impl MessageProducer
impl MessageProducer
Sourcepub const fn kind(&self) -> MessageProducerKind
pub const fn kind(&self) -> MessageProducerKind
Returns the stable producer classification.
Trait Implementations§
Source§impl Clone for MessageProducer
impl Clone for MessageProducer
Source§impl Debug for MessageProducer
impl Debug for MessageProducer
Source§impl<'de> Deserialize<'de> for MessageProducer
impl<'de> Deserialize<'de> for MessageProducer
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 MessageProducer
Source§impl Hash for MessageProducer
impl Hash for MessageProducer
Source§impl JsonSchema for MessageProducer
impl JsonSchema for MessageProducer
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 more