pub struct TaskChain {
pub accepted_plan: Option<AcceptedTaskPlan>,
pub agent: AgentSelection,
pub agents: PlanThenImplementAgents,
pub current_execution: Option<GraphExecutionRef>,
pub current_role: TaskAgentRole,
pub id: String,
pub implementer_task_id: String,
pub phase: TaskChainPhase,
pub planner_task_id: String,
pub revision: NonZeroU64,
pub session_id: SessionId,
pub user_request: String,
}Expand description
Consistent workflow snapshot projected from one execution graph.
Reading never dispatches work. Graph executions remain the authoritative execution records.
Fields§
§accepted_plan: Option<AcceptedTaskPlan>Exact immutable accepted version, present after explicit handoff.
agent: AgentSelectionShared captured provider/model selection.
agents: PlanThenImplementAgentsImmutable definitions captured for both workflow stages at launch.
current_execution: Option<GraphExecutionRef>Latest admitted execution of the current role, absent before its first admission. A pending continuation keeps its source here.
current_role: TaskAgentRoleRole the user currently interacts with.
id: StringStable workflow identity, equal to its execution-graph identity.
implementer_task_id: StringSeparate Implementer task conversation.
phase: TaskChainPhaseProjection from graph node progress.
planner_task_id: StringSeparate Planner task conversation, retained after implementation.
revision: NonZeroU64Graph revision used by explicit graph actions.
session_id: SessionIdSession owning the shared workspace and serialized worker.
user_request: StringImmutable objective captured at launch.
Implementations§
Source§impl TaskChain
impl TaskChain
Sourcepub fn current_attempt_id(&self) -> Option<&str>
pub fn current_attempt_id(&self) -> Option<&str>
Returns the attempt identity of the current role’s latest execution.
Sourcepub fn task_id(chain_id: &str, role: TaskAgentRole) -> String
pub fn task_id(chain_id: &str, role: TaskAgentRole) -> String
Returns the deterministic task identity for one role in a chain.
Sourcepub fn role(graph_id: &str, node: &GraphNode) -> Option<TaskAgentRole>
pub fn role(graph_id: &str, node: &GraphNode) -> Option<TaskAgentRole>
Returns the role a node plays when it belongs to a task-chain graph.
Sourcepub fn project(
graph: &ExecutionGraph,
progress: &ExecutionGraphProgress,
accepted_plan: Option<AcceptedTaskPlan>,
) -> Option<Self>
pub fn project( graph: &ExecutionGraph, progress: &ExecutionGraphProgress, accepted_plan: Option<AcceptedTaskPlan>, ) -> Option<Self>
Projects a task-chain graph, returning None for other graph shapes.
accepted_plan must come from authoritative acceptance evidence for
the Planner’s plan output.
Trait Implementations§
impl Eq for TaskChain
impl StructuralPartialEq for TaskChain
Auto Trait Implementations§
impl Forget for TaskChain
impl Freeze for TaskChain
impl RefUnwindSafe for TaskChain
impl Send for TaskChain
impl Sync for TaskChain
impl Unpin for TaskChain
impl UnsafeUnpin for TaskChain
impl UnwindSafe for TaskChain
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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
key and return true if they are equal.