adk_connector_descriptor (erlang_adk v0.10.0)

View Source

Safe, 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

descriptor/0

-type descriptor() ::
          #{connector_id := binary(),
            service_ref := registry_ref(),
            credential_ref := registry_ref() | none}.

registry_ref/0

-type registry_ref() :: #{kind := service_kind() | credential, id := binary()}.

service_kind/0

-type service_kind() :: native | mcp | openapi.

Functions

describe(Descriptor)

-spec describe(descriptor()) -> map().

validate(Descriptor, ExpectedService)

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