adk_tool_call (erlang_adk v0.7.0)

View Source

Structural validation for provider-emitted tool calls.

Provider output is untrusted. Validate the complete batch before persisting an event, invoking callbacks, or starting any tool so a malformed later entry cannot leave an invocation partially executed.

Summary

Functions

validate(Call)

-spec validate(term()) -> ok | {error, term()}.

validate_list(Calls)

-spec validate_list(term()) -> ok | {error, term()}.