pub struct AgentPoolMember {
pub run_id: RunId,
pub agent_id: AgentId,
pub policy_refs: Vec<PolicyRef>,
pub topics: Vec<TopicId>,
}Expand description
Holds agent pool member 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§
§run_id: RunIdRun identifier used for lineage, filtering, replay, and dedupe.
agent_id: AgentIdAgent identifier used for lineage, filtering, and ownership checks.
policy_refs: Vec<PolicyRef>Policy references that govern admission, projection, execution, or delivery.
topics: Vec<TopicId>Collection of topics values. Ordering and membership should be treated as part of the serialized contract when relevant.
Implementations§
Source§impl AgentPoolMember
impl AgentPoolMember
Sourcepub fn new(run_id: RunId, agent_id: AgentId) -> Self
pub fn new(run_id: RunId, agent_id: AgentId) -> 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 AgentPoolMember
impl Clone for AgentPoolMember
Source§fn clone(&self) -> AgentPoolMember
fn clone(&self) -> AgentPoolMember
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 AgentPoolMember
impl Debug for AgentPoolMember
Source§impl<'de> Deserialize<'de> for AgentPoolMember
impl<'de> Deserialize<'de> for AgentPoolMember
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>,
Source§impl PartialEq for AgentPoolMember
impl PartialEq for AgentPoolMember
Source§fn eq(&self, other: &AgentPoolMember) -> bool
fn eq(&self, other: &AgentPoolMember) -> bool
self and other values to be equal, and is used by ==.