CliSubprocessCore.AntigravityModels (CliSubprocessCore v0.10.0)

Copy Markdown View Source

Lists the model slugs advertised by the active Antigravity CLI account.

Summary

Functions

Runs agy models through the Core command lane.

Types

discovery_error()

@type discovery_error() :: :model_list_failed | :invalid_model_list

entry()

@type entry() :: %{id: String.t(), label: String.t()}

Functions

list(opts \\ [])

@spec list(keyword()) :: {:ok, [entry()]} | {:error, discovery_error()}

Runs agy models through the Core command lane.

Accepts :cli_path, :cwd, :env, :clear_env?, and a :timeout in milliseconds. Call this when refreshing an account picker. A successful empty list and a failed command are returned separately. Refresh the list when the active account changes.