adk_agent_tree (erlang_adk v0.7.0)

View Source

Bounded structural validation for the process-backed agent tree.

Public agents are independent OTP processes, so a parent receives child references rather than owning mutable child objects. Validation therefore walks the immutable runtime descriptions exposed by already-started child agents. The walk is deliberately bounded by node count, depth, and one overall deadline so malformed or unresponsive references cannot turn agent creation into an unbounded operation.

Summary

Types

name_error/0

-type name_error() :: reserved_user | invalid_identifier.

Functions

validate(Name, Config)

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

validate_name(Name)

-spec validate_name(term()) -> {ok, binary()} | {error, name_error()}.