Skip to content
Sign in

provider-antigravity

v0.3.1

POC llm-router provider `antigravity` that drives the Antigravity CLI (`agy acp`, Agent Client Protocol) on the host, reusing agy's own sign-in; the caller's functions reach the model as native tools.

license: Apache-2.0acpagyantigravityllmprovider

Install

bash
iii call compose::add worker=provider-antigravity@next

Run in your project with the iii engine running. Exact versions are immutable and digest-pinned.

Functions7

provider-antigravity::on-config-change

Function

Internal: reload provider-antigravity settings when they change.

Request
  • idstring

    Configuration id that changed.

Response
  • okbooleanrequired

provider-antigravity::ui-content

Function

Serve the provider-antigravity worker's injected console UI assets (the target of its ade::ui::asset observers; the console calls it through each asset's observer with {path}).

Request
  • pathstringrequired

    The asset path from the observer's args (e.g. `state/page.js`).

Response
  • contentstringrequired

    The asset source, verbatim.

  • content_typestringrequired

    MIME type the console should serve the asset with.

provider::antigravity::abort

Function

Cancel an in-flight Antigravity (CLI) turn.

Request
  • request_idstringrequired
Response
  • abortedbooleanrequired

provider::antigravity::on_router_ready

Function

Re-register Antigravity (CLI) after an llm-router restart.

Request
Empty object
Response
  • okbooleanrequired

provider::antigravity::refresh_models

Function

Re-list Antigravity (CLI) models and re-declare them to llm-router.

Request
Empty object
Response
  • countinteger· uintrequiredmin 0

    The models now registered, `default` included.

provider::antigravity::status

Function

Antigravity (CLI): host, binary, version, sign-in state, model count, last error and quota.

Request
Empty object
Response
  • binaryobjectrequired

    What the setup screen shows about agy. Presence flags only, never secrets.

    • errorstring
    • pathstringrequired
    • sourcestringrequiredenum setting, env, home, path

      Where the agy binary came from.

    • versionstring
  • credentialsobjectrequired

    How agy may be signed in, as the Antigravity docs describe it. Hints only: the keyring is not looked at, and `signed_in` in the status comes from what agy actually did.

    • adcbooleanrequired

      AGY_ADC_AUTH=true: Application Default Credentials.

    • api_keybooleanrequired

      settings.json has `"modelProvider": "gemini"` and GEMINI_API_KEY is set for the worker.

    • token_filebooleanrequired

      ~/.gemini/antigravity-cli/antigravity-oauth-token exists (never read).

  • hoststringrequired

    The machine agy must be installed and signed in on; the ADE may be open elsewhere.

  • last_turn_errorany of
    any of (2)
    Variant 1
    • atinteger· int64required
    • kindany of
      Show 2 nested
      any of (2)
      Variant 1
      valuestringenum auth_expired, rate_limited, context_overflow, transient, permanent
      Variant 2
      valuenull
    • messagestring
    Variant 2
    valuenull
  • loginobjectrequired

    The interactive sign-in the user runs in a terminal.

    • commandstringrequired
    • cwdstringrequired
  • modelsobjectrequired
    • countinteger· uintrequiredmin 0

      The listed models plus `default`.

    • errorstring
    • error_kindany of
      any of (2)
      Variant 1
      valuestringenum auth_expired, rate_limited, context_overflow, transient, permanent
      Variant 2
      valuenull
    • listed_atinteger· int64
  • quotaany of

    The current binary's last `agy usage` reading: `null` until there is one.

    any of (2)
    Variant 1
    • binstringrequired

      The agy binary it read: another binary's reading is not shown.

    • errorstring
    • groupsobject[]required

      Empty when the read failed.

      Show 2 nested
      • bucketsobject[]required
        Show 4 nested
        • idstringrequired

          agy's id (`gemini-5h`, `3p-weekly`): its prefix names the model group.

        • remaining_fractionnumber· doublerequired

          What is left of the limit, 0 to 1.

        • resets_at_msinteger· uint64min 0

          When the window resets; `null` while it is idle.

        • windowone ofrequired

          The usage window an account's limit belongs to.

          Show 2 nested
          one of (2)
          Variant 1
          valuestringenum five_hour
          Variant 2
          valuestringenum week
      • namestringrequired
    • read_at_msinteger· int64required
    Variant 2
    valuenull
  • registeredbooleanrequired
  • signed_inboolean

    From the current binary's last model listing or a newer turn's auth failure: `null` when unknown.

provider::antigravity::stream

Function

Stream a Antigravity (CLI) turn through the local agy over ACP.

Request
  • cache_intentany of
    any of (2)
    Variant 1
    • surface_digeststringrequired
    Variant 2
    valuenull
  • max_output_tokensinteger· uint64min 0
  • messagesany of[]required
    any of (4)
    Variant 1
    • contentone of[]required
      Show 7 nested
      one of (7)
      Variant 1
      • textstringrequired
      • typestringrequiredenum text
      Variant 2
      • attachment_idstring

        Optional link to the stored original in the session-manager attachment store. Transcript bookkeeping for lazy readers only: the harness clears it before `router::chat`, and no provider mapping reads it. Tolerated here so a block that still carries it deserializes instead of failing the request; omitted on the wire when absent.

      • datastringrequired
      • mimestringrequired
      • typestringrequiredenum image
      Variant 3
      • attachment_idstringrequired
      • mimestringrequired
      • namestringrequired
      • sizeinteger· uint64requiredmin 0
      • typestringrequiredenum file
      Variant 4
      • signaturestring
      • textstringrequired
      • typestringrequiredenum thinking
      Variant 5
      • datastringrequired
      • typestringrequiredenum redacted_thinking
      Variant 6
      • argumentsunknownrequired
      • function_idstringrequired
      • idstringrequired
      • typestringrequiredenum function_call
      Variant 7
      • contentunknown[]required
      • function_call_idstringrequired
      • is_errorboolean
      • typestringrequiredenum function_result
    • error_detailsany of

      What `error_kind` alone does not say, such as an account's usage limit. Omitted when absent; readers that don't know it ignore it.

      Show 2 nested
      any of (2)
      Variant 1
      • resets_at_msinteger· uint64min 0

        When that limit resets, in milliseconds since the epoch.

      • usage_limitboolean

        The account's usage limit is reached: a `rate_limited` that waiting a moment does not fix, so the router never retries it.

      • windowany of

        Which limit was reached, when the provider said so. An unknown value reads as absent.

        Show 2 nested
        any of (2)
        Variant 1
        one of (2)
        Variant 1
        valuestringenum five_hour
        Variant 2
        valuestringenum week
        Variant 2
        valuenull
      Variant 2
      valuenull
    • error_kindany of
      Show 2 nested
      any of (2)
      Variant 1
      valuestringenum auth_expired, rate_limited, context_overflow, transient, permanent
      Variant 2
      valuenull
    • error_messagestring
    • modelstringrequired
    • native_stop_reasonstring
    • providerstringrequired
    • rolestringrequiredenum assistant
    • stop_reasonstringrequiredenum end, length, function_call, aborted, error
    • timestampinteger· int64required
    • usageany of
      Show 2 nested
      any of (2)
      Variant 1
      • cache_readinteger· uint64min 0
      • cache_writeinteger· uint64min 0
      • cost_usdnumber· double
      • inputinteger· uint64min 0
      • outputinteger· uint64min 0
      • reasoninginteger· uint64min 0
      Variant 2
      valuenull
    • warningsstring[]
    Variant 2
    • contentone of[]required
      Show 7 nested
      one of (7)
      Variant 1
      • textstringrequired
      • typestringrequiredenum text
      Variant 2
      • attachment_idstring

        Optional link to the stored original in the session-manager attachment store. Transcript bookkeeping for lazy readers only: the harness clears it before `router::chat`, and no provider mapping reads it. Tolerated here so a block that still carries it deserializes instead of failing the request; omitted on the wire when absent.

      • datastringrequired
      • mimestringrequired
      • typestringrequiredenum image
      Variant 3
      • attachment_idstringrequired
      • mimestringrequired
      • namestringrequired
      • sizeinteger· uint64requiredmin 0
      • typestringrequiredenum file
      Variant 4
      • signaturestring
      • textstringrequired
      • typestringrequiredenum thinking
      Variant 5
      • datastringrequired
      • typestringrequiredenum redacted_thinking
      Variant 6
      • argumentsunknownrequired
      • function_idstringrequired
      • idstringrequired
      • typestringrequiredenum function_call
      Variant 7
      • contentunknown[]required
      • function_call_idstringrequired
      • is_errorboolean
      • typestringrequiredenum function_result
    • detailsunknownrequired
    • function_call_idstringrequired
    • function_idstringrequired
    • is_errorbooleanrequired
    • rolestringrequiredenum function_result
    • timestampinteger· int64required
    Variant 3
    • contentone of[]required
      Show 7 nested
      one of (7)
      Variant 1
      • textstringrequired
      • typestringrequiredenum text
      Variant 2
      • attachment_idstring

        Optional link to the stored original in the session-manager attachment store. Transcript bookkeeping for lazy readers only: the harness clears it before `router::chat`, and no provider mapping reads it. Tolerated here so a block that still carries it deserializes instead of failing the request; omitted on the wire when absent.

      • datastringrequired
      • mimestringrequired
      • typestringrequiredenum image
      Variant 3
      • attachment_idstringrequired
      • mimestringrequired
      • namestringrequired
      • sizeinteger· uint64requiredmin 0
      • typestringrequiredenum file
      Variant 4
      • signaturestring
      • textstringrequired
      • typestringrequiredenum thinking
      Variant 5
      • datastringrequired
      • typestringrequiredenum redacted_thinking
      Variant 6
      • argumentsunknownrequired
      • function_idstringrequired
      • idstringrequired
      • typestringrequiredenum function_call
      Variant 7
      • contentunknown[]required
      • function_call_idstringrequired
      • is_errorboolean
      • typestringrequiredenum function_result
    • custom_typestringrequired
    • detailsunknown
    • displaystring
    • rolestringrequiredenum custom
    • timestampinteger· int64required
    Variant 4
    • contentone of[]required
      Show 7 nested
      one of (7)
      Variant 1
      • textstringrequired
      • typestringrequiredenum text
      Variant 2
      • attachment_idstring

        Optional link to the stored original in the session-manager attachment store. Transcript bookkeeping for lazy readers only: the harness clears it before `router::chat`, and no provider mapping reads it. Tolerated here so a block that still carries it deserializes instead of failing the request; omitted on the wire when absent.

      • datastringrequired
      • mimestringrequired
      • typestringrequiredenum image
      Variant 3
      • attachment_idstringrequired
      • mimestringrequired
      • namestringrequired
      • sizeinteger· uint64requiredmin 0
      • typestringrequiredenum file
      Variant 4
      • signaturestring
      • textstringrequired
      • typestringrequiredenum thinking
      Variant 5
      • datastringrequired
      • typestringrequiredenum redacted_thinking
      Variant 6
      • argumentsunknownrequired
      • function_idstringrequired
      • idstringrequired
      • typestringrequiredenum function_call
      Variant 7
      • contentunknown[]required
      • function_call_idstringrequired
      • is_errorboolean
      • typestringrequiredenum function_result
    • rolestringrequiredenum user

      Single-variant role tags: exact-match on deserialize, correct wire string on serialize, and they let `AgentMessage` be an untagged union.

    • timestampinteger· int64required
  • modelstringrequired
  • model_metaany of
    any of (2)
    Variant 1
    • context_windowinteger· uint64requiredmin 0
    • display_namestring
    • idstringrequired
    • input_limitinteger· uint64min 0
    • max_output_tokensinteger· uint64requiredmin 0
    • pricingany of
      Show 2 nested
      any of (2)
      Variant 1
      • cache_readnumber· double
      • cache_writenumber· double
      • inputnumber· double
      • outputnumber· double
      Variant 2
      valuenull
    • providerstringrequired
    • reasoning_effortsobject[]
      Show 2 nested
      • descriptionstring
      • effortstringrequired
    • speechany of

      Set on speech models only; see [`SpeechModel`].

      Show 2 nested
      any of (2)
      Variant 1
      • languagesstring[]

        BCP-47 tags of the languages the model handles; empty when the provider does not say.

      • modalityone ofrequired

        What a speech model does. Chat models carry no `speech` block.

        Show 2 nested
        one of (2)
        Variant 1
        valuestringenum stt
        Variant 2
        valuestringenum tts
      • streamingboolean

        Realtime input (stt) or streamed audio output (tts) is available.

      Variant 2
      valuenull
    • supports_cacheboolean
    • supports_structured_outputboolean
    • supports_thinkingboolean
    • supports_thinking_offboolean

      Whether `thinking_level: off` can switch the model's reasoning off. `Some(true)`: a native off switch exists. `Some(false)`: the model always reasons, or the provider has no switch. `None`: the provider does not know; consoles show the choice disabled.

    • supports_toolsboolean
    • supports_visionboolean
    • supports_xhighboolean
    • thinking_budgetsobject
    Variant 2
    valuenull
  • provider_optionsunknown
  • resolution_keystring
  • response_formatany of
    any of (2)
    Variant 1
    • schemaunknown
    • typestringrequired
    Variant 2
    valuenull
  • session_idstring

    Stable conversation identity for provider cache affinity.

  • system_promptstring
  • system_sectionsobject[]

    Ordered sections behind `system_prompt` (always forwarded alongside the flat string, which equals the sections joined with "\n\n").

    • cache_boundaryboolean
    • textstringrequired
  • thinking_levelany of
    any of (2)
    Variant 1
    valuestringenum off, minimal, low, medium, high, xhigh
    Variant 2
    valuenull
  • toolsobject[]
    • descriptionstringrequired
    • execution_modestring
    • labelstring
    • namestringrequired
    • parametersunknownrequired
  • writer_refobjectrequired

    One end of an engine pipe as a payload carries it: `{ channel_id, access_key, direction }`. The JSON is the same in every SDK and release, so new and old SDKs read each other's refs.

    • access_keystringrequired
    • channel_idstringrequired
    • directionstringrequiredenum read, write

      Which end of a pipe a [`StreamChannelRef`] opens: `read` is received as an [`InputStream`](crate::InputStream), `write` as an [`OutputStream`](crate::OutputStream).

Response
  • okbooleanrequired

Search the registry

Find workers, kits and executables, or jump to a page.