module

ActiveAgent::Tool

Class methods

property_schema(type_string : String) : JSON::Any

Runtime half of the schema builder (types are compile-known — the macro passes them as strings; see #input).

Source
req_bool(key : String, payload : JSON::Any) : Bool
Source
req_float(key : String, payload : JSON::Any) : Float64
Source
req_int(key : String, payload : JSON::Any) : Int64
Source
req_str_array(key : String, payload : JSON::Any) : Array(String)
Source
req_string(key : String, payload : JSON::Any) : String
Source

Instance methods

call

The tool body. Receives nothing — inputs are typed properties.

Source

Macros

description(text)

The LLM-facing docstring.

Source
input(*decls)

input phone : String?, name : String?

Source