pub struct RoleSpec {
pub display_name: &'static str,
pub system_prompt_fragment: &'static str,
pub default_tool_allowlist: &'static [&'static str],
pub suggested_temperature: f32,
pub requires_approval: bool,
}Expand description
Specification for a single specialist role.
Carried inside RoleCatalog and resolved at planning time by the
hierarchical director (Phase H).
Fields§
§display_name: &'static strShort, human-readable display name (title-case).
system_prompt_fragment: &'static strOne-paragraph system-prompt fragment injected before the worker’s goal.
default_tool_allowlist: &'static [&'static str]Tool names this role is permitted to call by default.
The director may widen or narrow this list per-node at plan time.
suggested_temperature: f32Suggested sampling temperature for this role’s LLM calls (0.0–1.0).
requires_approval: boolWhether this role’s output requires human approval before being passed downstream.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RoleSpec
impl RefUnwindSafe for RoleSpec
impl Send for RoleSpec
impl Sync for RoleSpec
impl Unpin for RoleSpec
impl UnwindSafe for RoleSpec
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
Mutably borrows from an owned value. Read more