Packages

A well-typed, idiomatic Gleam client for Anthropic's Claude API with streaming support and tool use

Current section

Files

Jump to
anthropic_gleam include anthropic@hooks_Hooks.hrl
Raw

include/anthropic@hooks_Hooks.hrl

-record(hooks, {
on_request_start :: gleam@option:option(fun((anthropic@hooks:request_start_event()) -> nil)),
on_request_end :: gleam@option:option(fun((anthropic@hooks:request_end_event()) -> nil)),
on_retry :: gleam@option:option(fun((anthropic@hooks:retry_event()) -> nil)),
on_stream_event :: gleam@option:option(fun((anthropic@hooks:stream_event()) -> nil))
}).