adk_vertex_model_resource (erlang_adk v0.9.0)

View Source

Strict resolver for the supported Vertex AI publisher-model target.

The adapter accepts only a complete Google publisher resource. The project, location, publisher, and model are therefore one operator-owned value; no caller-controlled host or path is combined with ambient credentials.

Summary

Types

target/0

-type target() ::
          #{resource := binary(),
            project := binary(),
            location := binary(),
            publisher := google,
            model := binary(),
            base_url := binary()}.

Functions

generate_path(_)

-spec generate_path(target()) -> binary().

parse(Resource)

-spec parse(term()) -> {ok, target()} | {error, invalid_vertex_model_resource}.

stream_path(_)

-spec stream_path(target()) -> binary().