adk_connector_descriptor (erlang_adk v0.10.0)
View SourceSafe, registry-only descriptor for a connector instance.
Agent configuration selects the resulting trusted toolset by registry ID. This descriptor is operator-owned and contains only stable registry IDs; it deliberately has no field for URLs, headers, tokens, passwords, or keys.
Summary
Types
-type descriptor() :: #{connector_id := binary(), service_ref := registry_ref(), credential_ref := registry_ref() | none}.
-type registry_ref() :: #{kind := service_kind() | credential, id := binary()}.
-type service_kind() :: native | mcp | openapi.
Functions
-spec describe(descriptor()) -> map().
-spec validate(term(), service_kind()) -> {ok, descriptor()} | {error, term()}.