pub struct ToolDispatchFacts {Show 28 fields
pub runs_as_judged: bool,
pub keeps_own_grants: bool,
pub shell_command_line: bool,
pub offering: Offering,
pub task_lead_delegation: bool,
pub same_tool_streak: SameToolStreak,
pub delivers_files: bool,
pub spawns_child_agents: bool,
pub requirement_checklist: bool,
pub opaque_execution: bool,
pub manages_own_timeout: bool,
pub records_launch_trust: bool,
pub goal_context: GoalContext,
pub network_reach: NetworkReach,
pub file_guard: FileGuard,
pub checkpoints_writes: bool,
pub needs_live_model: bool,
pub status_from_arguments: bool,
pub recap: RecapKind,
pub activity: ToolActivity,
pub status_label: Option<&'static str>,
pub project_dir_argument: ProjectDirArgument,
pub opens_project_instructions: bool,
pub result_fit: ResultFit,
pub channel_reach: ChannelReach,
pub evidence: EvidenceSource,
pub semantic_scope: Option<ToolSemanticScope>,
pub low_signal_result: bool,
}Expand description
Typed facts about how the dispatcher and the engine treat a tool. A tool
states them about itself; nothing keys on its name. Several can hold for
one tool, so they are flags beside ToolRole (which scopes tools by
agent role) rather than more roles.
Fields§
§runs_as_judged: boolThe kernel’s approval rules judge this tool’s calls in the canonical form the dispatcher executes, and the dispatcher then runs each call exactly as judged (the terminal).
keeps_own_grants: boolThe tool keeps the owner’s answers to its cards in its own grant stores, consulted by its own ladder (the terminal’s command prefixes), instead of the kernel’s session grants.
shell_command_line: boolThe call’s command or script is a shell command line, which the
kernel’s access manifest carries so the approval policy’s
catastrophic-command check sees it (the terminal).
offering: OfferingWhether the tool’s schema is sent on every model call
(Offering::Core) or listed by name until the run loads it
(Offering::Deferred, the default).
task_lead_delegation: boolA task lead keeps the tool through pruning: it is its delegation
surface (spawn_agent, cli_agent, manage_goal_tasks).
same_tool_streak: SameToolStreakHow long a run may call the tool consecutively before the same-tool guard treats it as a loop.
delivers_files: boolThe tool delivers a file to the user; the same file and caption go out once per task.
spawns_child_agents: boolThe tool spawns child agents, which inherit the turn’s authority as it is when the call runs.
requirement_checklist: boolThe tool is the executor’s requirement checklist: the status line shows the checklist, and its items become ledger expectations.
opaque_execution: boolThe call runs inside a process the daemon cannot see into (an MCP server), so its downstream effects escape per-action scoping and accounting. A mandate never delegates such a tool.
manages_own_timeout: boolThe tool manages its own timeout and backgrounding, so the generic watchdog never wraps it (it would cancel the call early and could orphan the process it started).
records_launch_trust: boolThe tool records the trusted roots its launch was judged with (the terminal), so a background result keeps the trust it ran under.
goal_context: GoalContextWhich goal facts the call receives.
network_reach: NetworkReachWhich addresses a call may name, judged by web::NetworkGuard.
file_guard: FileGuardWhich of a call’s paths ProtectedPathGuard judges.
checkpoints_writes: boolThe dispatcher takes a file checkpoint before the call runs, so its writes can be rolled back.
needs_live_model: boolThe call receives the live model, provider and model chain (a tool that runs its own model loop).
status_from_arguments: boolThe status line summarizes a finished call from its arguments, not its result (memory and people edits, whose result text is terse).
recap: RecapKindWhat a run’s activity recap counts a finished call as.
activity: ToolActivityWhat kind of work every card shows a call as.
status_label: Option<&'static str>The words a live status ping uses for the tool (“reading a file”).
None: its name in words.
project_dir_argument: ProjectDirArgumentWhich argument names the project directory a call works in, and how the turn’s known project directory fills it when it is empty.
opens_project_instructions: boolThe paths a call touches open their project’s instructions on first access (reads, writes and command working directories; broad searches do not).
result_fit: ResultFitHow the engine fits the call’s result for the model.
channel_reach: ChannelReachWhich conversations the tool may be offered in.
evidence: EvidenceSourceWhat a substantive result from the call can serve as evidence for.
semantic_scope: Option<ToolSemanticScope>The domain the tool inspects or changes, when it states no per-call semantics.
low_signal_result: boolA result that says only that it worked (a write’s confirmation): the turn’s recent-work context leaves it out.
Trait Implementations§
Source§impl Clone for ToolDispatchFacts
impl Clone for ToolDispatchFacts
Source§fn clone(&self) -> ToolDispatchFacts
fn clone(&self) -> ToolDispatchFacts
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ToolDispatchFacts
Source§impl Debug for ToolDispatchFacts
impl Debug for ToolDispatchFacts
Source§impl Default for ToolDispatchFacts
impl Default for ToolDispatchFacts
Source§fn default() -> ToolDispatchFacts
fn default() -> ToolDispatchFacts
impl Eq for ToolDispatchFacts
Source§impl PartialEq for ToolDispatchFacts
impl PartialEq for ToolDispatchFacts
impl StructuralPartialEq for ToolDispatchFacts
Auto Trait Implementations§
impl Forget for ToolDispatchFacts
impl Freeze for ToolDispatchFacts
impl Move for ToolDispatchFacts
impl RefUnwindSafe for ToolDispatchFacts
impl Send for ToolDispatchFacts
impl Sync for ToolDispatchFacts
impl Unpin for ToolDispatchFacts
impl UnsafeUnpin for ToolDispatchFactswhere
&'static str: UnsafeUnpin,
impl UnwindSafe for ToolDispatchFactswhere
&'static str: UnwindSafe,
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more