π File detail
tools/AgentTool/constants.ts
π§© .tsπ 13 linesπΎ 547 bytesπ text
β Back to All Filesπ― Use case
This module implements the βAgentToolβ tool (Agent) β something the model can call at runtime alongside other agent tools. On the API surface it exposes AGENT_TOOL_NAME, LEGACY_AGENT_TOOL_NAME, VERIFICATION_AGENT_TYPE, and ONE_SHOT_BUILTIN_AGENT_TYPES β mainly types, interfaces, or factory objects.
Generated from folder role, exports, dependency roots, and inline comments β not hand-reviewed for every path.
π§ Inline summary
export const AGENT_TOOL_NAME = 'Agent' // Legacy wire name for backward compat (permission rules, hooks, resumed sessions) export const LEGACY_AGENT_TOOL_NAME = 'Task' export const VERIFICATION_AGENT_TYPE = 'verification'
π€ Exports (heuristic)
AGENT_TOOL_NAMELEGACY_AGENT_TOOL_NAMEVERIFICATION_AGENT_TYPEONE_SHOT_BUILTIN_AGENT_TYPES
π₯οΈ Source preview
export const AGENT_TOOL_NAME = 'Agent' // Legacy wire name for backward compat (permission rules, hooks, resumed sessions) export const LEGACY_AGENT_TOOL_NAME = 'Task' export const VERIFICATION_AGENT_TYPE = 'verification' // Built-in agents that run once and return a report β the parent never // SendMessages back to continue them. Skip the agentId/SendMessage/usage // trailer for these to save tokens (~135 chars Γ 34M Explore runs/week). export const ONE_SHOT_BUILTIN_AGENT_TYPES: ReadonlySet<string> = new Set([ 'Explore', 'Plan', ])