adk_llm behaviour (erlang_adk v0.2.0)

View Source

Summary

Functions

Dispatch the call to the specified provider.

Dispatch the streaming call to the specified provider.

Types

config/0

-type config() :: map().

memory/0

-type memory() :: [map()].

tools/0

-type tools() :: [module()].

Callbacks

generate/3

-callback generate(Config :: config(), Memory :: memory(), Tools :: tools()) ->
                      {ok, binary() | string()} | {tool_calls, list()} | {error, term()}.

stream/4

-callback stream(Config :: config(),
                 Memory :: memory(),
                 Tools :: tools(),
                 Callback :: fun((binary()) -> ok)) ->
                    ok | {error, term()}.

Functions

generate(Config, Memory, Tools)

Dispatch the call to the specified provider.

stream(Config, Memory, Tools, Callback)

Dispatch the streaming call to the specified provider.