adk_long_running_tool (erlang_adk v0.2.0)

View Source

adk_long_running_tool - Built-in tool for pausing execution.

When an agent calls a long-running tool, the engine pauses execution and yields control back to the user or orchestrator. The workflow can be resumed later by providing the tool result.

Summary

Functions

Executing this tool intentionally throws a pause exception that the adk_runner catches to suspend the workflow.

Tool schema for the long-running interaction.

Functions

execute(Args)

-spec execute(Args :: map()) -> {ok, term()} | {error, term()}.

Executing this tool intentionally throws a pause exception that the adk_runner catches to suspend the workflow.

schema()

-spec schema() -> map().

Tool schema for the long-running interaction.