Module primitive_tools

Module primitive_tools 

Source
Expand description

Primitive tools that work with the Environment abstraction.

These tools provide basic file and command operations:

  • ReadTool - Read file contents
  • WriteTool - Write/create files
  • EditTool - Edit existing files with string replacement
  • GlobTool - Find files by pattern
  • GrepTool - Search file contents
  • BashTool - Execute shell commands

All tools respect AgentCapabilities for security.

Structsยง

BashTool
Tool for executing shell commands
EditTool
Tool for editing files via string replacement
GlobTool
Tool for finding files by glob pattern
GrepTool
Tool for searching file contents using regex patterns
PrimitiveToolContext
Context for primitive tools that need environment access
ReadTool
Tool for reading file contents
WriteTool
Tool for writing file contents