Packages

A Gleam framework for building AI agents — type-safe, multi-provider, with tool calling, streaming, and simulation testing

Current section

Files

Jump to
glean include glean@tool_Tool.hrl
Raw

include/glean@tool_Tool.hrl

-record(tool, {
name :: binary(),
description :: binary(),
input_schema :: glean@schema:schema(),
execute :: fun((glean@tool:tool_context(any()), binary()) -> {ok, binary()} |
{error, glean@error:glean_error()}),
max_retries :: integer()
}).