adk_agent (erlang_adk v0.2.5)

View Source

Summary

Functions

Delegate with an explicit caller-supplied correlation reference.

Format a tool execution result into a standard map.

Return the immutable runtime configuration needed by Runner lifecycle hooks. Kept separate from get_tools/1 for backward compatibility.

Get the tools and sub-agents registered with this agent.

Run the agent using the new Event-based architecture.

Functions

code_change(OldVsn, State, Extra)

delegate(Pid, Message)

delegate(Pid, Message, ReplyToPid)

delegate(Pid, Message, ReplyToPid, Ref)

Delegate with an explicit caller-supplied correlation reference.

format_result(Res)

-spec format_result(Res :: term()) -> map().

Format a tool execution result into a standard map.

get_runtime(Pid)

Return the immutable runtime configuration needed by Runner lifecycle hooks. Kept separate from get_tools/1 for backward compatibility.

get_tools(Pid)

-spec get_tools(Pid :: pid()) -> {ok, [module()], map()}.

Get the tools and sub-agents registered with this agent.

handle_call(Request, From, State)

handle_cast(Msg, State)

handle_info(Info, State)

init(_)

prompt(Pid, Message)

run_with_events(Pid, HistoryEvents, InvocationId)

Run the agent using the new Event-based architecture.

start_link(Name, LLMConfig, Tools)

stop(Pid)

terminate(Reason, State)