πŸ“„ 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_NAME
  • LEGACY_AGENT_TOOL_NAME
  • VERIFICATION_AGENT_TYPE
  • ONE_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',
])