Skip to main content

Crate erio_tools

Crate erio_tools 

Source
Expand description

§erio-tools

erio-tools defines the tool execution layer for Erio: a Tool trait, JSON-schema-like input modeling, result types, and an in-memory registry.

Use it when you want an agent to discover tools, validate parameters, and invoke tool implementations consistently.

§Quickstart

use erio_tools::{PropertyType, ToolRegistry, ToolResult, ToolSchema};

let mut _registry = ToolRegistry::new();

let _schema = ToolSchema::builder()
    .property("query", PropertyType::String, "Search query", true)
    .build();

let _ok = ToolResult::success("done");

§API tour

  • Key types: Tool, ToolRegistry, ToolResult
  • Schema helpers: ToolSchema, ToolSchemaBuilder, PropertyType
  • Error re-export: ToolError (from erio-core)

§Compatibility

  • MSRV: Rust 1.93
  • License: Apache-2.0 Erio Tools - Tool trait, registry, and execution for the agent runtime.

Structs§

ToolRegistry
Registry for managing tools.
ToolSchema
Schema describing tool parameters as JSON Schema.
ToolSchemaBuilder
Builder for constructing tool schemas.

Enums§

PropertyType
JSON Schema property types.
ToolError
Tool-specific errors.
ToolResult
Result of a tool execution.

Traits§

Tool
A tool that can be executed by an agent.