class

ActiveAgent::Base

Inherits Reference < Object

Constants

AGENTS = [] of TypeNode
DEFAULT_MAX_STEPS = 8

Class methods

__max_steps
Source
__model
Source
__provider_name
Source
__system_prompt
Source
__tool_metas
Source
ask(input : String | Message, provider impl : Provider | Nil = nil, stream : Proc(String, Nil) | Nil = nil) : Run
Source
build_provider

Provider registry (the QueueAdapter-adapter analog).

Source
execute_tool(tc : ToolCall) : ToolResult

Execute one tool call via the compile-time dispatch: parse JSON args into compile-time types, run the tool's own code, never let tool errors escape the loop — the model sees the error and can correct itself.

Source

Macros

max_steps(n)
Source
provider(name, model = nil)

provider :openai | :zai | :kimi | :deepseek | :lmstudio | :vllm | :ollama | :test [, model: "..."]

Source
system(text)
Source
tools(*klasses)

tools Foo, Bar — the allowlist (the agent's whole world). Compile-time dispatch: metas for the wire, a case-dispatch for execution (no runtime reflection, no metaclass arrays).

Source