pub enum TaskAgentRole {
Planner,
Implementer,
}Expand description
Built-in role contracts for a planner-to-implementer workflow.
These definitions do not dispatch work, select a model, or change ordinary
session turns. A workflow may use the same session Smart
crate::AgentSelection for both roles. Assignments, isolated
conversations, and result handoff must be supplied by the workflow before
these contracts can govern execution.
Variants§
Planner
Inspects the workspace and proposes a plan without making changes.
Implementer
Implements an explicitly accepted plan within session permissions.
Implementations§
Source§impl TaskAgentRole
impl TaskAgentRole
Sourcepub fn display_name(self) -> &'static str
pub fn display_name(self) -> &'static str
Human-readable role name for transcripts and status displays.
Sourcepub fn context_requirement(self) -> AgentContextRequirement
pub fn context_requirement(self) -> AgentContextRequirement
Explicit inputs required in the role’s own conversation context.
Sourcepub fn output_kind(self) -> AgentOutputKind
pub fn output_kind(self) -> AgentOutputKind
Expected answer content, using the existing response protocol.
Sourcepub fn permission_mode(
self,
session_permission_mode: PermissionMode,
) -> PermissionMode
pub fn permission_mode( self, session_permission_mode: PermissionMode, ) -> PermissionMode
Restricts session permissions for this role without granting new access.
Callers must pass this mode through worker/runtime permission enforcement; resolving a value alone does not sandbox a run. Worker execution policy remains an independent restriction. Implementers retain read-only sessions and the session’s existing auto-address-comments behavior unchanged.
Trait Implementations§
Source§impl Clone for TaskAgentRole
impl Clone for TaskAgentRole
impl Copy for TaskAgentRole
Source§impl Debug for TaskAgentRole
impl Debug for TaskAgentRole
impl Eq for TaskAgentRole
Source§impl Hash for TaskAgentRole
impl Hash for TaskAgentRole
Source§impl PartialEq for TaskAgentRole
impl PartialEq for TaskAgentRole
impl StructuralPartialEq for TaskAgentRole
Auto Trait Implementations§
impl Forget for TaskAgentRole
impl Freeze for TaskAgentRole
impl RefUnwindSafe for TaskAgentRole
impl Send for TaskAgentRole
impl Sync for TaskAgentRole
impl Unpin for TaskAgentRole
impl UnsafeUnpin for TaskAgentRole
impl UnwindSafe for TaskAgentRole
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.