Skip to main content

Crate nenjo_tools

Crate nenjo_tools 

Source
Expand description

§nenjo-tools

Tool trait, types, and built-in tool implementations for the Nenjo agent platform.

This crate provides:

  • The Tool trait for defining agent capabilities
  • Supporting types: [SecurityPolicy], [RuntimeAdapter], [AgentMemory]
  • Built-in tool implementations (shell, file I/O, git, search, web, memory, etc.)

Re-exports§

pub use browser::BrowserTool;
pub use browser::ComputerUseConfig;
pub use browser_open::BrowserOpenTool;
pub use content_search::ContentSearchTool;
pub use file_edit::FileEditTool;
pub use file_read::FileReadTool;
pub use file_write::FileWriteTool;
pub use git_operations::GitOperationsTool;
pub use glob_search::GlobSearchTool;
pub use http_request::HttpRequestTool;
pub use memory_forget::MemoryForgetTool;
pub use memory_recall::MemoryRecallTool;
pub use memory_store::MemoryStoreTool;
pub use screenshot::ScreenshotTool;
pub use shell::ShellTool;
pub use web_fetch::WebFetchTool;
pub use web_search_tool::WebSearchTool;

Modules§

browser
Browser automation tool with pluggable backends.
browser_open
Open URLs in Brave Browser with domain allowlisting.
content_search
Regex-based content search across workspace files using ripgrep with grep fallback.
file_edit
Precise find-and-replace file editing with single-match enforcement.
file_read
Read file contents with path sandboxing and symlink-escape protection.
file_write
Write file contents with path sandboxing and auto-created parent directories.
git_operations
Structured git operations (status, diff, log, branch, commit, etc.) with parsed JSON output.
glob_search
File discovery by glob pattern within the workspace directory.
http_request
General-purpose HTTP request tool for API interactions with domain allowlisting.
memory
memory_forget
Delete or prune memory items by ID, search query, or age threshold.
memory_recall
Search the agent’s long-term memory across project, core, and shared scopes.
memory_store
Store facts, preferences, and insights in the agent’s long-term memory.
runtime
screenshot
Screenshot capture using platform-native commands (macOS screencapture, Linux scrot).
security
shell
Shell command execution tool with sandboxing, rate limiting, and environment isolation.
web_fetch
Fetch web pages and convert HTML to clean plain text for LLM consumption.
web_search_tool
Web search tool supporting DuckDuckGo (free) and Brave (API key) providers.

Structs§

ToolResult
Result of a tool execution.
ToolSpec
Full specification of a tool for LLM registration.

Enums§

ToolCategory
Classifies a tool’s side-effect profile for filtering.

Traits§

Tool
Core tool trait — implement for any agent capability.