pub struct CompiledTeam { /* private fields */ }Expand description
Executable root produced by TeamSpec::compile.
Implementations§
Source§impl CompiledTeam
impl CompiledTeam
Sourcepub fn spec(&self) -> &TeamSpec
pub fn spec(&self) -> &TeamSpec
Returns the portable source specification used to compile this root.
Sourcepub fn coordinator_name(&self) -> &str
pub fn coordinator_name(&self) -> &str
Returns the validated portable source specification’s coordinator name.
Sourcepub fn handoff_targets(&self, member: &str) -> Option<&[String]>
pub fn handoff_targets(&self, member: &str) -> Option<&[String]>
Returns the exact handoff targets for a member.
Sourcepub fn execution_snapshot(
&self,
invocation_id: &str,
) -> Option<TeamExecutionSnapshot>
pub fn execution_snapshot( &self, invocation_id: &str, ) -> Option<TeamExecutionSnapshot>
Returns the latest serializable execution receipt for a root invocation.
Sourcepub fn execution_snapshots(&self) -> Vec<TeamExecutionSnapshot>
pub fn execution_snapshots(&self) -> Vec<TeamExecutionSnapshot>
Returns all execution receipts currently retained by this compiled team.
Sourcepub fn restore_execution_snapshot(
&self,
snapshot: TeamExecutionSnapshot,
) -> Result<(), TeamError>
pub fn restore_execution_snapshot( &self, snapshot: TeamExecutionSnapshot, ) -> Result<(), TeamError>
Restores a persisted execution receipt before resuming with the same root invocation identifier.
The team name and frozen roster must exactly match this compiled team, preventing a resumed execution from silently selecting different agents.
Sourcepub fn resume_plan(&self, invocation_id: &str) -> Option<TeamResumePlan>
pub fn resume_plan(&self, invocation_id: &str) -> Option<TeamResumePlan>
Returns the safe durable-resume action for a retained invocation.
This method never replays delegation implicitly. A checkpoint plan must be handed to the target’s durable host adapter with the named opaque token; a fail-closed plan requires operator resolution.
Sourcepub fn analyze_execution(
&self,
invocation_id: &str,
) -> Result<Option<TeamExecutionAnalysis>, TeamReplayError>
pub fn analyze_execution( &self, invocation_id: &str, ) -> Result<Option<TeamExecutionAnalysis>, TeamReplayError>
Validates and summarizes one retained execution receipt without model calls.
Trait Implementations§
Source§impl Agent for CompiledTeam
impl Agent for CompiledTeam
Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§fn sub_agents(&self) -> &[Arc<dyn Agent>]
fn sub_agents(&self) -> &[Arc<dyn Agent>]
Source§fn capabilities(&self) -> AgentCapabilities
fn capabilities(&self) -> AgentCapabilities
Source§fn topology(&self) -> Option<AgentTopology>
fn topology(&self) -> Option<AgentTopology>
Source§fn configure_run(&self, agent_name: &str, config: &mut RunConfig)
fn configure_run(&self, agent_name: &str, config: &mut RunConfig)
agent_name. Read moreSource§fn transfer_targets_for(&self, agent_name: &str) -> Option<Vec<String>>
fn transfer_targets_for(&self, agent_name: &str) -> Option<Vec<String>>
agent_name, when this
agent owns an explicit transfer topology. Read more