diff --git a/.github/actions/generate-gaos/action.yml b/.github/actions/generate-gaos/action.yml new file mode 100644 index 0000000000..69e4bc8de1 --- /dev/null +++ b/.github/actions/generate-gaos/action.yml @@ -0,0 +1,45 @@ +# Composite action that installs the Speakeasy generator (with caching) and +# runs ./scripts/generate_gaos.sh to generate google/genai/_gaos/ from +# .speakeasy/openapi.json. +name: Generate GAOS SDK +description: Install the Speakeasy generator and generate google/genai/_gaos/. + +inputs: + speakeasy-license-token: + description: Speakeasy license token or API key. + required: true + speakeasy-version: + description: Speakeasy generator git tag. + required: false + default: v2.959.1 + +runs: + using: composite + steps: + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: '1.24' + + - name: Cache Speakeasy Generator + id: cache-generator + uses: actions/cache@v4 + with: + path: ~/go/bin/generate + key: speakeasy-generator-${{ inputs.speakeasy-version }} + + - name: Install Speakeasy Generator + if: steps.cache-generator.outputs.cache-hit != 'true' + shell: bash + run: | + git clone --depth 1 --branch "${{ inputs.speakeasy-version }}" https://github.com/speakeasy-api/openapi-generation.git /tmp/openapi-generation + cd /tmp/openapi-generation + go install ./cmd/generate + rm -rf /tmp/openapi-generation + + - name: Generate GAOS SDK + shell: bash + env: + SPEAKEASY_LICENSE_TOKEN: ${{ inputs.speakeasy-license-token }} + run: | + ./scripts/generate_gaos.sh diff --git a/.github/workflows/import.yml b/.github/workflows/import.yml deleted file mode 100644 index 89cb1a6f50..0000000000 --- a/.github/workflows/import.yml +++ /dev/null @@ -1,36 +0,0 @@ - -name: Import Test - -on: - push: - branches: [ main ] - pull_request: - branches: [ main ] - -jobs: - test-import: - runs-on: ubuntu-latest - - strategy: - matrix: - python-version: ['3.11', '3.12', '3.13', '3.14', '3.15'] - - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} - - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install setuptools wheel - pip install pytest - pip install . - - - name: Run import test - run: | - pytest google/genai/tests/imports/test_no_optional_imports.py \ No newline at end of file diff --git a/.github/workflows/mypy.yml b/.github/workflows/mypy.yml deleted file mode 100644 index 7cdb390dd8..0000000000 --- a/.github/workflows/mypy.yml +++ /dev/null @@ -1,39 +0,0 @@ -# This workflow runs mypy for static type checking. -# See https://mypy.readthedocs.io/en/stable/index.html for more information. -# -# You can adjust the behavior by modifying this file. -name: Run mypy - -on: - pull_request: - branches: - - main - -env: - SPEAKEASY_VERSION: v2.959.1 - -jobs: - mypy: - runs-on: ubuntu-latest - strategy: - matrix: - python-version: ['3.11', '3.12', '3.13', '3.14', '3.15'] - - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} - - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install mypy - sudo apt-get update && sudo apt-get install -y libjpeg-dev zlib1g-dev - pip install -r requirements.txt - - - name: Run mypy ${{ matrix.python-version }} - run: mypy google/genai/ \ No newline at end of file diff --git a/.github/workflows/sync-gaos.yml b/.github/workflows/sync-gaos.yml new file mode 100644 index 0000000000..9899376079 --- /dev/null +++ b/.github/workflows/sync-gaos.yml @@ -0,0 +1,54 @@ +# Commits the GAOS SDK generated by a successful `Tests` run on main back to +# main, since google/genai/_gaos/ is not exported from Piper. +# +# This reuses the `gaos-sdk` artifact from that run instead of generating the +# SDK a second time, and only runs after its tests pass. +name: Sync GAOS SDK on Main + +on: + workflow_run: + workflows: [Tests] + types: [completed] + branches: [main] + +jobs: + commit: + if: >- + github.event.workflow_run.conclusion == 'success' && + github.event.workflow_run.event == 'push' + runs-on: ubuntu-latest + permissions: + contents: write + actions: read + steps: + - name: Checkout the tested commit + uses: actions/checkout@v4 + with: + ref: ${{ github.event.workflow_run.head_sha }} + + - name: Replace GAOS SDK with the generated one + run: rm -rf google/genai/_gaos + + - name: Download GAOS SDK from the Tests run + uses: actions/download-artifact@v4 + with: + name: gaos-sdk + path: google/genai/_gaos + run-id: ${{ github.event.workflow_run.id }} + github-token: ${{ secrets.GITHUB_TOKEN }} + + - name: Commit and push changes if updated + run: | + git config user.name "github-actions[bot]" + git config user.email "github-actions[bot]@users.noreply.github.com" + git add -A google/genai/_gaos/ + if git diff --staged --quiet; then + echo "No changes to commit. GAOS SDK is up to date." + exit 0 + fi + git commit -m "chore: regenerate GAOS SDK [skip ci]" + # Fast-forward only. If main has moved on, its own Tests run will + # trigger a newer sync, so skip rather than push a stale SDK. + if ! git push origin HEAD:main; then + echo "main moved past ${{ github.event.workflow_run.head_sha }}; skipping." + fi diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000000..fadd8217ea --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,108 @@ +# Generates the GAOS (Interactions) SDK once per run and then runs mypy and the +# import test against it. +# +# Note: the job ids (`mypy`, `test-import`) determine the check-run names +# ("mypy (3.11)", "test-import (3.11)", ...) that copy.bara.sky requires, so +# keep them stable. +name: Tests + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + generate-gaos: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.12' + + - name: Generate GAOS SDK + uses: ./.github/actions/generate-gaos + with: + speakeasy-license-token: ${{ secrets.SPEAKEASY_LICENSE_TOKEN }} + + - name: Upload GAOS SDK + uses: actions/upload-artifact@v4 + with: + name: gaos-sdk + path: google/genai/_gaos/ + if-no-files-found: error + retention-days: 1 + + mypy: + needs: generate-gaos + if: github.event_name == 'pull_request' + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ['3.11', '3.12', '3.13', '3.14', '3.15'] + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Replace GAOS SDK with the generated one + run: rm -rf google/genai/_gaos + + - name: Download GAOS SDK + uses: actions/download-artifact@v4 + with: + name: gaos-sdk + path: google/genai/_gaos + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install mypy + sudo apt-get update && sudo apt-get install -y libjpeg-dev zlib1g-dev + pip install -r requirements.txt + + - name: Run mypy ${{ matrix.python-version }} + run: mypy google/genai/ + + test-import: + needs: generate-gaos + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ['3.11', '3.12', '3.13', '3.14', '3.15'] + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Replace GAOS SDK with the generated one + run: rm -rf google/genai/_gaos + + - name: Download GAOS SDK + uses: actions/download-artifact@v4 + with: + name: gaos-sdk + path: google/genai/_gaos + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install setuptools wheel + pip install pytest + pip install . + + - name: Run import test + run: | + pytest google/genai/tests/imports/test_no_optional_imports.py diff --git a/.speakeasy/addons/model_validator/types/interactions/interaction.py b/.speakeasy/addons/model_validator/types/interactions/interaction.py new file mode 100644 index 0000000000..8ec4ea8684 --- /dev/null +++ b/.speakeasy/addons/model_validator/types/interactions/interaction.py @@ -0,0 +1,107 @@ +# pylint: skip-file +from typing import Any, List +import pydantic + + +@classmethod +def _maybe_coerce_outputs(cls, data: Any) -> Any: + legacy_lyria_models = ("lyria-3-pro-preview", "lyria-3-clip-preview") + if not isinstance(data, dict): + return data + if ( + not isinstance(data.get("model"), str) + or data["model"] not in legacy_lyria_models + ): + return data + if "steps" in data: + return data + if "outputs" not in data: + return {**data, "steps": []} + outputs = data["outputs"] + if not isinstance(outputs, list): + return {**data, "steps": []} + + coerced = {**data} + coerced.pop("outputs") + coerced["steps"] = [{"type": "model_output", "content": outputs}] + return coerced + + +@pydantic.model_validator(mode="before") +@classmethod +def _coerce_outputs_to_steps(cls, data: Any) -> Any: + return cls._maybe_coerce_outputs(data) + + +# Applied to `Interaction(BaseModel)`: use `super().model_construct(...)` +# rather than `pydantic.BaseModel.model_construct(...)` so `cls` stays bound to +# `Interaction` through its MRO. +@classmethod +def model_construct(cls, _fields_set=None, **values): + # Coerce legacy lyria `outputs` -> `steps` here as well: validators + # do not run on model_construct (used by deferred SSE parsing). + return super().model_construct( + _fields_set, **cls._maybe_coerce_outputs(values) + ) + + +@pydantic.model_validator(mode="after") +def _populate_output_helpers(self): + steps = self.steps if isinstance(self.steps, list) else [] + + text_parts: List[str] = [] + collecting = False + for step in reversed(steps): + step_type = getattr(step, "type", None) + if step_type == "user_input": + break + if step_type == "thought": + continue + if step_type != "model_output": + if collecting: + break + continue + content = getattr(step, "content", None) + if not isinstance(content, list): + continue + should_stop = False + for item in reversed(content): + if getattr(item, "type", None) == "text": + collecting = True + text = getattr(item, "text", None) + text_parts.append(text if isinstance(text, str) else "") + elif collecting: + should_stop = True + break + if should_stop: + break + # Always derived from the trailing model-output text; a str, "" when none. + self.output_text = "".join(reversed(text_parts)) + + output_image = None + output_audio = None + output_video = None + for step in reversed(steps): + step_type = getattr(step, "type", None) + if step_type == "user_input": + break + if step_type != "model_output": + continue + content = getattr(step, "content", None) + if not isinstance(content, list): + continue + for item in reversed(content): + content_type = getattr(item, "type", None) + if content_type == "image" and output_image is None: + output_image = item + if content_type == "audio" and output_audio is None: + output_audio = item + if content_type == "video" and output_video is None: + output_video = item + if output_image is not None and self.output_image is None: + self.output_image = output_image + if output_audio is not None and self.output_audio is None: + self.output_audio = output_audio + if output_video is not None and self.output_video is None: + self.output_video = output_video + return self diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock new file mode 100644 index 0000000000..4982973434 --- /dev/null +++ b/.speakeasy/gen.lock @@ -0,0 +1,2128 @@ +lockVersion: 2.0.0 +id: b4f735f7-d65d-4d59-96cd-4e460fe62e9c +management: + docVersion: v1beta + speakeasyVersion: internal + generationVersion: internal + releaseVersion: 2.4.1-preview.5 + repoURL: https://github.com/speakeasy-sdks/genai-next.git + repoSubDirectory: dist/sp_python + installationURL: https://github.com/speakeasy-sdks/genai-next.git#subdirectory=dist/sp_python +features: + python: + acceptHeaders: 3.0.0 + additionalDependencies: 1.1.0 + additionalProperties: 1.0.2 + configurableModuleName: 0.2.0 + constsAndDefaults: 1.0.8 + core: 6.1.13 + customSecuritySchemes: 0.1.0 + defaultEnabledRetries: 0.2.0 + deprecations: 3.0.2 + enumUnions: 0.1.1 + envVarSecurityUsage: 0.3.4 + flatRequests: 1.0.1 + flattening: 3.1.1 + globalSecurity: 3.0.8 + globalSecurityCallbacks: 1.0.0 + globalServerURLs: 3.2.1 + globals: 3.0.0 + groups: 3.0.1 + inputOutputModels: 3.0.0 + nameOverrides: 3.0.3 + openEnums: 1.0.5 + publicExports: 0.1.2 + responseFormat: 1.1.0 + retries: 3.1.2 + sdkHooks: 1.3.0 + serverEvents: 1.1.1 + serverEventsSentinels: 0.1.0 + stringNumberFormats: 1.0.0 + unions: 3.1.15 +trackedFiles: + .gitattributes: + id: 24139dae6567 + pristine_git_object: 4d75d59008e4d8609876d263419a9dc56c8d6f3a + USAGE.md: + id: 3aed33ce6e6f + pristine_git_object: fc73fd5b6500698a860885fc60f4a2ffe9d0ae52 + _vscode/settings.json: {} + docs/errors/cancelinteractionbyidclienterror.md: + id: 0e1e25abb2d2 + pristine_git_object: fee5d037968fba50f349b5e170b4981491fb9fc7 + docs/errors/cancelinteractionbyidservererror.md: + id: 6d0e5f741758 + pristine_git_object: 151fa38ca5ca332457187ccae3cbc3d3455cee1c + docs/errors/createinteractionclienterror.md: + id: 597e97da7300 + pristine_git_object: d681a77fa163c1766498cdd1123c3b435c4a3b01 + docs/errors/createinteractionservererror.md: + id: 6f2b3733ec9f + pristine_git_object: 193597883fd40bf3b75cda2de2456c096292398a + docs/errors/deleteinteractionclienterror.md: + id: 2a3987d5ea23 + pristine_git_object: 287d8d46088d28e10d0a427ebb82a26594cf1761 + docs/errors/deleteinteractionservererror.md: + id: 14aec3c3b5d2 + pristine_git_object: 93eb737c9f0ace270d75605d5710d11a590b177c + docs/errors/getinteractionbyidclienterror.md: + id: 33e553489e4b + pristine_git_object: d7cd5018cda139c0feca8e800678cd66222758d3 + docs/errors/getinteractionbyidservererror.md: + id: a58cc7188b54 + pristine_git_object: db3b62d6781ceab999f4009e29feb0cc8697f58d + docs/models/cancelinteractionbyidglobals.md: + id: 570312fc2850 + pristine_git_object: 272fbb6d32a785f6f03ec79d8df9e7216a188d4d + docs/models/cancelinteractionbyidrequest.md: + id: 31112dfc8caf + pristine_git_object: 2766366745784041e69ef8f24f755b922ebd737d + docs/models/createagentglobals.md: + id: 1e0d9cf642f5 + pristine_git_object: 175f982c4135ea0bf8a9159d0b0b0ba6a0b5ac93 + docs/models/createagentrequest.md: {} + docs/models/createcredentialglobals.md: {} + docs/models/createcredentialrequest.md: {} + docs/models/createenvironmentglobals.md: {} + docs/models/createenvironmentrequest.md: {} + docs/models/createinteractionglobals.md: + id: 6988b2ad66c6 + pristine_git_object: a6737f74fa3e44c754134479415e663713d53c38 + docs/models/createinteractionrequest.md: + id: f396cf368aa6 + pristine_git_object: 21904c16d96fe4386d487205945117486719e85a + docs/models/createinteractionrequestbody.md: {} + docs/models/createinteractionresponse.md: + id: ea76e5c6b7b0 + pristine_git_object: 9bd82e14a009ce4779da214133a899be6dd02355 + docs/models/createtriggerglobals.md: {} + docs/models/createtriggerrequest.md: {} + docs/models/createvoiceglobals.md: {} + docs/models/createvoicerequest.md: {} + docs/models/createwebhookglobals.md: + id: 80ea8a260876 + pristine_git_object: f156beba482cfffe5209f66563165a4abd241680 + docs/models/createwebhookrequest.md: {} + docs/models/deleteagentglobals.md: + id: d6bc68d20595 + pristine_git_object: 94344733e44de9411213585b88ea533bce57bce9 + docs/models/deleteagentrequest.md: + id: 6411b6df1c85 + pristine_git_object: ba9b718ef8017b35e49928b2ae4a4d1a5435c477 + docs/models/deletecredentialglobals.md: {} + docs/models/deletecredentialrequest.md: {} + docs/models/deleteenvironmentglobals.md: {} + docs/models/deleteenvironmentrequest.md: {} + docs/models/deleteinteractionglobals.md: + id: 71adc119e543 + pristine_git_object: cfa7ca1d7a80b5b181ecb7393dbbda9171bd1e43 + docs/models/deleteinteractionrequest.md: + id: cf2f6e5a9616 + pristine_git_object: d03d33c630991ccc50f0fe53dd5f8b504fa668ca + docs/models/deletetriggerglobals.md: {} + docs/models/deletetriggerrequest.md: {} + docs/models/deletevoiceglobals.md: {} + docs/models/deletevoicerequest.md: {} + docs/models/deletewebhookglobals.md: + id: cc5c8013e685 + pristine_git_object: 89ff97e3b2dd72864ee0e84668de95a57c197b5b + docs/models/deletewebhookrequest.md: + id: 45e7311fd62f + pristine_git_object: 1e8a665c59196ddc9daa0fc5e14d4a73bcd8ddb9 + docs/models/getagentglobals.md: + id: a6fd02dd709e + pristine_git_object: 6446986a651478222bc5466decc28ffc05a4060c + docs/models/getagentrequest.md: + id: 743f3a4630be + pristine_git_object: 18f9e6e5860e43e4ef4eab95e72efcbb4a4d376d + docs/models/getcredentialglobals.md: {} + docs/models/getcredentialrequest.md: {} + docs/models/getenvironmentfilesglobals.md: {} + docs/models/getenvironmentfilesrequest.md: {} + docs/models/getenvironmentglobals.md: {} + docs/models/getenvironmentrequest.md: {} + docs/models/getinteractionbyidglobals.md: + id: c396d78504db + pristine_git_object: 616622c47b9e0d4d1772f0ccfc4f957666026930 + docs/models/getinteractionbyidrequest.md: + id: 57baabaca0a6 + pristine_git_object: b7ded845d0904e2538b7aef5b9000ccd07b95d0f + docs/models/getinteractionbyidresponse.md: + id: ed7990538a97 + pristine_git_object: 0fd8298c592e343e164660740e7329b9ad709a8e + docs/models/gettriggerglobals.md: {} + docs/models/gettriggerrequest.md: {} + docs/models/getvoiceglobals.md: {} + docs/models/getvoicerequest.md: {} + docs/models/getwebhookglobals.md: + id: f87722238f17 + pristine_git_object: 3d4b40ac9348a88bcf214575170a93f5735e90f5 + docs/models/getwebhookrequest.md: + id: efc5058ad05d + pristine_git_object: 57c215fdd83461ac8d355a87a73549e861a71210 + docs/models/internal/globals.md: + id: 9c173b87f41f + pristine_git_object: 72ec11eab52ef08c5bfa3febc80abcd95ef3d5ed + docs/models/listagentsglobals.md: + id: f1590011d3a8 + pristine_git_object: 66a3b24a16fcdb041f97a40d35d2536c8cab40bd + docs/models/listagentsrequest.md: + id: aeb9bbc163f5 + pristine_git_object: 4d93a848e351ee1dfa140396df410cd659574a31 + docs/models/listcredentialsglobals.md: {} + docs/models/listcredentialsrequest.md: {} + docs/models/listenvironmentsglobals.md: {} + docs/models/listenvironmentsrequest.md: {} + docs/models/listtriggerexecutionsglobals.md: {} + docs/models/listtriggerexecutionsrequest.md: {} + docs/models/listtriggersglobals.md: {} + docs/models/listtriggersrequest.md: {} + docs/models/listvoicesglobals.md: {} + docs/models/listvoicesrequest.md: {} + docs/models/listwebhooksglobals.md: + id: 824ce6085d8c + pristine_git_object: c4eb0b6060bd29c5b0a1087fb370989c415dcc6a + docs/models/listwebhooksrequest.md: + id: 7a76be221bc6 + pristine_git_object: eadc8acb2cae4815c25866e1b1f3fb3d12774bad + docs/models/pingwebhookglobals.md: + id: 1879492d5992 + pristine_git_object: 4414515721b6b19438fe951b9006170ac8cb21a5 + docs/models/pingwebhookrequest.md: + id: 337688a80563 + pristine_git_object: e952e791869d7b11a2c5c501902149d4d26e5db7 + docs/models/rotatesigningsecretglobals.md: + id: df2cc79f9017 + pristine_git_object: 5f181f005eeafe00342084d81db0b47d3923b3c2 + docs/models/rotatesigningsecretrequest.md: + id: ef1d72c46a5e + pristine_git_object: 305b6a0a988c821b5c6bdc6cdc50e5892cde5f02 + docs/models/runtriggerglobals.md: {} + docs/models/runtriggerrequest.md: {} + docs/models/startenvironmentfileuploadglobals.md: {} + docs/models/startenvironmentfileuploadrequest.md: {} + docs/models/startenvironmentfileuploadresponse.md: {} + docs/models/updatecredentialglobals.md: {} + docs/models/updatecredentialrequest.md: {} + docs/models/updatetriggerglobals.md: {} + docs/models/updatetriggerrequest.md: {} + docs/models/updatewebhookglobals.md: + id: b24ca29cbeb7 + pristine_git_object: aac4576564cbc5ce786e70680cbeb030f080a4c0 + docs/models/updatewebhookrequest.md: + id: bab30f53f529 + pristine_git_object: 58b29dddb22d16ab3daee96a75eb2249fd9bb47d + docs/models/utils/retryconfig.md: + id: 4343ac43161c + pristine_git_object: 69dd549ec7f5f885101d08dd502e25748183aebf + docs/sdks/agents/README.md: + id: 5965d8232fd8 + pristine_git_object: d729ba226924774625eaaca84abccfa9441da6a0 + docs/sdks/credentials/README.md: {} + docs/sdks/environments/README.md: {} + docs/sdks/files/README.md: {} + docs/sdks/interactions/README.md: + id: 62bf658fbb6b + pristine_git_object: 6d8a0e87c9f09bebe1f5247140dbaae250f88a84 + docs/sdks/internal/README.md: {} + docs/sdks/triggers/README.md: {} + docs/sdks/voices/README.md: {} + docs/sdks/webhooks/README.md: + id: e21b32d786a4 + pristine_git_object: 63d741848336eb38acf6ea3a7c799cb46d611961 + docs/types/agents/agent.md: + id: 8fc6e9c1a6f6 + pristine_git_object: 3712f96a400f6edd405e9acf29a06dff174c5d5c + docs/types/agents/agentconfig.md: {} + docs/types/agents/agentlistresponse.md: {} + docs/types/agents/agenttool.md: + id: 8d642f16b35a + pristine_git_object: 738046311c15d6269ed468974495bcea122a1417 + docs/types/agents/baseenvironment.md: + id: 88df329d1d45 + pristine_git_object: ef6102e7ade1ee91305f53202552654903b621ed + docs/types/credentials/credential.md: {} + docs/types/credentials/credentialcreateparams.md: {} + docs/types/credentials/credentiallistresponse.md: {} + docs/types/credentials/credentialupdate.md: {} + docs/types/credentials/environmentvariableconfig.md: {} + docs/types/credentials/environmentvariableconfiginjectionlocation.md: {} + docs/types/credentials/environmentvariableupdateconfig.md: {} + docs/types/credentials/environmentvariableupdateconfiginjectionlocation.md: {} + docs/types/credentials/httpbearerconfig.md: {} + docs/types/credentials/httpbearerupdateconfig.md: {} + docs/types/credentials/injectionlocationenum.md: {} + docs/types/credentials/oauth2config.md: {} + docs/types/credentials/oauth2updateconfig.md: {} + docs/types/credentials/status.md: {} + docs/types/credentials/type.md: {} + docs/types/environments/createenvironmentrequest.md: {} + docs/types/environments/createenvironmentrequestnetworkenum.md: {} + docs/types/environments/createenvironmentrequestnetworkunion.md: {} + docs/types/environments/environment.md: {} + docs/types/environments/environmentfile.md: {} + docs/types/environments/environmentnetworkenum.md: {} + docs/types/environments/environmentnetworkunion.md: {} + docs/types/environments/getenvironmentfilesresponse.md: {} + docs/types/environments/listenvironmentsresponse.md: {} + docs/types/environments/status.md: {} + docs/types/environments/type.md: {} + docs/types/interactions/agentoption.md: {} + docs/types/interactions/allowedtools.md: + id: 72b35d228ca9 + pristine_git_object: 62e073111ee6f67b73a56b97abd6fc2d8aa86a1b + docs/types/interactions/allowlist.md: {} + docs/types/interactions/allowlistentry.md: + id: ca294fa74a66 + pristine_git_object: a4f17afa21f1be74314355184542c86fb880c870 + docs/types/interactions/annotation.md: + id: ea93b78cef4c + pristine_git_object: d7ed1d63c1ac6ae16afe121572eb292825bf0fd4 + docs/types/interactions/antigravityagentconfig.md: {} + docs/types/interactions/argumentsdelta.md: + id: 8ff62fb35594 + pristine_git_object: 90e4378ae74b155bb4ab0ceacfb974cad35fd077 + docs/types/interactions/audiocontent.md: + id: e3673bcf9db6 + pristine_git_object: a3f3f0c50295367b134b5e5909101fe43e711e88 + docs/types/interactions/audiocontentmimetype.md: + id: 45857695e40f + pristine_git_object: bbed6f364b16525949e5a01f12c050fb79eb4e4e + docs/types/interactions/audiodelta.md: + id: 5435a0ae27b3 + pristine_git_object: e7d3f578ba419322e5f8c9345ad2cf74accd6218 + docs/types/interactions/audiodeltamimetype.md: + id: a9cfabd2a7b1 + pristine_git_object: eb586dc649edd9cc8aa4894b6478d40ba101211d + docs/types/interactions/audioresponseformat.md: + id: 140c7d262442 + pristine_git_object: fae4a57ea4f7dd96695e4a73709811c4c19178f9 + docs/types/interactions/audioresponseformatdelivery.md: + id: cf2d22653163 + pristine_git_object: 5a8000ba9b4ae008e646f2b6ccc82f556c259946 + docs/types/interactions/audioresponseformatmimetype.md: + id: ac6a27ebc4c3 + pristine_git_object: d920e34770dd1f169d1177894201b513beb9abe5 + docs/types/interactions/codeexecution.md: + id: 0e5f3b452206 + pristine_git_object: 56276d58b795b3a1b7b4088bf0c6de43b0f08f37 + docs/types/interactions/codeexecutioncallarguments.md: + id: 968df32b1ec4 + pristine_git_object: b0b8d06504faced3dc8a660a969bbfea7ad12988 + docs/types/interactions/codeexecutioncalldelta.md: + id: f81746cb20ef + pristine_git_object: 47c1ccb40407cdc83aff6ed0396ad485afa32ab8 + docs/types/interactions/codeexecutioncallstep.md: + id: 78ff72884310 + pristine_git_object: 3a3579e6211948e6a2531efbbe0874679fe1afa0 + docs/types/interactions/codeexecutionresultdelta.md: + id: 2c137095f1ab + pristine_git_object: e50c629b78779c1dfa237d1dd70b64e76d0a9494 + docs/types/interactions/codeexecutionresultstep.md: + id: b87d8d1b16eb + pristine_git_object: 6feaf93107d3e0646423a4f3cfea429376c87d02 + docs/types/interactions/codeexecutionresultstepresult.md: {} + docs/types/interactions/codemenderagentconfig.md: {} + docs/types/interactions/computeruse.md: + id: c63ebf79bf76 + pristine_git_object: a6393ec97e79810b45cd64241cf9d222019ecbb5 + docs/types/interactions/content.md: + id: db9eb1cddd44 + pristine_git_object: 7913e57e60062e9016951486bf09620e5a681642 + docs/types/interactions/createagentinteraction.md: {} + docs/types/interactions/createagentinteractionagentconfig.md: {} + docs/types/interactions/createagentinteractionenvironment.md: {} + docs/types/interactions/createagentinteractionresponseformat.md: {} + docs/types/interactions/createmodelinteraction.md: {} + docs/types/interactions/createmodelinteractionenvironment.md: {} + docs/types/interactions/createmodelinteractionresponseformat.md: {} + docs/types/interactions/deepresearchagentconfig.md: + id: 480de32f9c36 + pristine_git_object: ad0b48a6463dd4d58afeb9a378552d870bb6d953 + docs/types/interactions/disabled.md: {} + docs/types/interactions/disabledsafetypolicy.md: {} + docs/types/interactions/documentcontent.md: + id: b6c9b0ded646 + pristine_git_object: 7de3c994801b07de5f309fb3f2734d3d8ec43476 + docs/types/interactions/documentcontentmimetype.md: + id: f64b9a8106f4 + pristine_git_object: b1002a01c059b7a74d8961351044fee17e0f02c3 + docs/types/interactions/documentdelta.md: + id: f1cda027f2b2 + pristine_git_object: 0866f27ec62260546560d3f0c4b07c952af6b69e + docs/types/interactions/documentdeltamimetype.md: + id: 8fe7db9281da + pristine_git_object: 0f5fa381826a023edb1c8c63734ea5adecc1a2ac + docs/types/interactions/dynamicagentconfig.md: + id: 347229a7aee1 + pristine_git_object: 96d9b9856141600c3c32f55e09675110b6784cc3 + docs/types/interactions/empty.md: + id: 12222568d078 + pristine_git_object: 9348b3163fd145eb47cf3465fcaf1d57bdd0680c + docs/types/interactions/env.md: {} + docs/types/interactions/environment.md: + id: c8996b89b0b5 + pristine_git_object: b1d4ae06a9de62348ea2a11898948d8859efb1e4 + docs/types/interactions/environmentenum.md: + id: 645d465c134d + pristine_git_object: 7cb2f62ed89c791dd1bf009fdd9a27b7fedc0ea4 + docs/types/interactions/environmentnetworkegressallowlist.md: + id: bc44d8ff24fe + pristine_git_object: e8164f7b012e74c276c308502452a5e7356aadce + docs/types/interactions/envvar.md: {} + docs/types/interactions/error.md: + id: 199832accca7 + pristine_git_object: fd78ef9f0a2e90e6d827c9859b5d79a9532b32b4 + docs/types/interactions/errorevent.md: + id: c8e70864dcfb + pristine_git_object: afd110a439fe71028361ff60ecd2834362ba4930 + docs/types/interactions/exaaisearchconfig.md: {} + docs/types/interactions/filecitation.md: + id: e87513bc05be + pristine_git_object: 0a4d46380ddbdfe6084594bc5cc823ae909aa7d8 + docs/types/interactions/filecontent.md: {} + docs/types/interactions/filesearch.md: + id: ec5a95551525 + pristine_git_object: 299b0baa5465f27c96ac561b5254830f4d8d2568 + docs/types/interactions/filesearchcalldelta.md: + id: c7257456fdde + pristine_git_object: 58a41d0a1c4f02f076aa241a951c7c56adb26b5d + docs/types/interactions/filesearchcallstep.md: + id: f40b333dd4ad + pristine_git_object: ccb6f890f61f24328c8f6f2cdf4c7ab97345b9d4 + docs/types/interactions/filesearchresult.md: + id: aa3c3a9b13df + pristine_git_object: 5b88ecd0edf846fff5ef2d765e83b3929da31341 + docs/types/interactions/filesearchresultdelta.md: + id: f6aa2da15e5d + pristine_git_object: 7983dba47b8ca755066c36a4c32e6d4c4907dfb6 + docs/types/interactions/filesearchresultstep.md: + id: 8b748454b845 + pristine_git_object: df9498909197d23cb3bc08c754a29ba6e90cdda3 + docs/types/interactions/filter_.md: {} + docs/types/interactions/findrequest.md: {} + docs/types/interactions/fixrequest.md: {} + docs/types/interactions/function.md: + id: 1e031e4e6477 + pristine_git_object: d8ba51d11993040994955d840f301e82db58934c + docs/types/interactions/functioncallstep.md: + id: 852d217e6d1b + pristine_git_object: 77ef9f3a1c071814f3281d2f62e2e28b3130f008 + docs/types/interactions/functionresultdelta.md: + id: c00fcd81a823 + pristine_git_object: 4d2ef3bcf3b048180f75257f71f2416bbbe288bb + docs/types/interactions/functionresultdeltaresult.md: + id: a2634e36ae1a + pristine_git_object: d516a1a3cdcb6c7dfaed5f216f9055c6ba570646 + docs/types/interactions/functionresultdeltaresultunion.md: {} + docs/types/interactions/functionresultstep.md: + id: 38e4a27c8d35 + pristine_git_object: 4874739bee00c170bafb952b7ab0a585c584fd94 + docs/types/interactions/functionresultstepresult.md: + id: 34cf6260fa1d + pristine_git_object: 4f51fc21c1ad370d5b3956dca161cdba10c83f86 + docs/types/interactions/functionresultstepresultunion.md: {} + docs/types/interactions/functionresultsubcontent.md: + id: 16173dcfdd5e + pristine_git_object: 1c6f624e56790052d23ba01c7551629ea26fea59 + docs/types/interactions/generationconfig.md: + id: 663493ea9754 + pristine_git_object: 6ad73cb99eb4f64b48eb735b2abd8cfac2220a4e + docs/types/interactions/googlemaps.md: + id: 9e92f4424092 + pristine_git_object: cb9b5ebf343f216f486ecee968cb26b9af09e3b0 + docs/types/interactions/googlemapscallarguments.md: + id: 4c04ba61df23 + pristine_git_object: fc630167e19a9c126d3cbf58e38b49c3d7810b18 + docs/types/interactions/googlemapscalldelta.md: + id: 6b1294eb0be7 + pristine_git_object: ca352097edd6dee166aa7f6dfca99c0c84624572 + docs/types/interactions/googlemapscallstep.md: + id: 96f93bba7d4d + pristine_git_object: 88ddb74ad320d48466660eefe9e6cbd05bd3faaa + docs/types/interactions/googlemapsresult.md: + id: 15f45a36fc8d + pristine_git_object: ff74bc96dc6b252d0802c4b0229067d01847023d + docs/types/interactions/googlemapsresultdelta.md: + id: 184c1fa1fbbd + pristine_git_object: f85dda6820c35fb33fd9841201a76ff6c81c3ab6 + docs/types/interactions/googlemapsresultplaces.md: + id: fc252bbb3bdc + pristine_git_object: 3d55fc761c1986eda84254223ddfa59f9c2273a5 + docs/types/interactions/googlemapsresultstep.md: + id: e2ff010a9e05 + pristine_git_object: 59c09e52fb7d189a1c7f6ec8e7d201f18cd0d9b0 + docs/types/interactions/googlesearch.md: + id: c5a565923b6b + pristine_git_object: 3ed6fc62ecfd343ba744992f15636fba36e31dd9 + docs/types/interactions/googlesearchcallarguments.md: + id: 532964698c94 + pristine_git_object: 89e1a25845371e65f8ac8e190d39a6314ef9b2f6 + docs/types/interactions/googlesearchcalldelta.md: + id: b23d71ddf309 + pristine_git_object: 19005c102b18ddc94fcecf1325984dbeeffc761d + docs/types/interactions/googlesearchcallstep.md: + id: e1893b4b8d96 + pristine_git_object: a142b70c016de8e779b45cc7ba13bf39a6869313 + docs/types/interactions/googlesearchcallstepsearchtype.md: + id: 8105cb08d79f + pristine_git_object: 7d7e1d97da40a9acf15d204d5a46dff741706c27 + docs/types/interactions/googlesearchresult.md: + id: 81b2fed13d1a + pristine_git_object: 1ab878744382fd59d69ce56560806c29606d18db + docs/types/interactions/googlesearchresultdelta.md: + id: fe1e15b9f257 + pristine_git_object: de49ddf700a5f7e7b20f58f19576f1c1fc7b4057 + docs/types/interactions/googlesearchresultstep.md: + id: c1d3aec69921 + pristine_git_object: 025a7a3516221f735f62d68c9d1f9c9dd3772ec8 + docs/types/interactions/googlesearchsearchtype.md: + id: f460387eeb28 + pristine_git_object: b389f56d03d25a7d843d27992e3613a552afc798 + docs/types/interactions/groundingtoolcount.md: + id: 4e5c41bb8ae9 + pristine_git_object: ec1632b01ecee4b491b63edb05e7c79f451b616f + docs/types/interactions/groundingtoolcounttype.md: + id: 994a501ec937 + pristine_git_object: 4541c704f56132409f4247232eb43527b7ba8f96 + docs/types/interactions/harmcategory.md: {} + docs/types/interactions/hybridsearch.md: {} + docs/types/interactions/imageconfig.md: + id: 05e87e888ba2 + pristine_git_object: 54c4f6c50a06ec010894ee49a62c913194b5be24 + docs/types/interactions/imageconfigaspectratio.md: + id: 6d1a25aa782b + pristine_git_object: b15da26463dd482bff5caa74dc486ace232f787c + docs/types/interactions/imageconfigimagesize.md: + id: b83617f0dba8 + pristine_git_object: bc04fc67fa1ea312e8dab44fa50fb52849c8a954 + docs/types/interactions/imagecontent.md: + id: 2649dddbbb7b + pristine_git_object: 0a8b8d3ffe312a5ad2c423ab720080fe6f824790 + docs/types/interactions/imagecontentmimetype.md: + id: 9fb4d71bdc6e + pristine_git_object: 926d60ce87fec74a1db695082ecc142c7cf13d8f + docs/types/interactions/imagedelta.md: + id: 745c15f36c46 + pristine_git_object: b8f1881f98581de05c2a969587274a7de75cea67 + docs/types/interactions/imagedeltamimetype.md: + id: 54d1da1f8cdc + pristine_git_object: 5b82c4e4d3da72e40532281c52cdeaf31578aee6 + docs/types/interactions/imageresponseformat.md: + id: 7f3758af5bf5 + pristine_git_object: a8bda76af60e74c60d4c04ca1cac6b61bc90257e + docs/types/interactions/imageresponseformataspectratio.md: + id: 6ce6c43bf397 + pristine_git_object: d943c8cfbb21344b7180a2b6f5932cedc28dabd1 + docs/types/interactions/imageresponseformatdelivery.md: + id: 7aec35b3fe4e + pristine_git_object: a086b5364a75b1787e8f454fce0d428c081f00f2 + docs/types/interactions/imageresponseformatimagesize.md: + id: 7ff332d2f58b + pristine_git_object: 94c9a3785b06b354982ea23a4df4415ca3a1e8a4 + docs/types/interactions/imageresponseformatmimetype.md: + id: a142f19b3473 + pristine_git_object: cf0c45949d18c3ed3e4a8ac8fab63a05dfc8875c + docs/types/interactions/interaction.md: + id: 587633f2b2c1 + pristine_git_object: 407a6e4857cc6dd98b4d1648388ce0b31aae45a5 + docs/types/interactions/interactionagentconfig.md: + id: 42b66bb9dc5c + pristine_git_object: 2bca97d0077b25ccdbf122b89280f274c97e370e + docs/types/interactions/interactioncompletedevent.md: + id: 14532180a9f9 + pristine_git_object: 8507b3573cbd8782c4ad5f602ba44d551ab326e2 + docs/types/interactions/interactioncreatedevent.md: + id: 1db6b673d5a8 + pristine_git_object: 0829b58e6c68aeb643b0a166919b3d4bf32689ce + docs/types/interactions/interactionenvironment.md: + id: e6a5d1b8c8b7 + pristine_git_object: 2978be7655ec82042e93fae16b539aacf9e1bbee + docs/types/interactions/interactionresponseformat.md: + id: 58a7c281eafe + pristine_git_object: e6022ed7657abcfe194fc31c8b98193deadb9ebd + docs/types/interactions/interactionsinput.md: + id: a2b2cb5ee73a + pristine_git_object: dd0531b446c9f81b67ff763ee1da4acecb1b6256 + docs/types/interactions/interactionsseevent.md: + id: d0d530f552f9 + pristine_git_object: 79cc5e07bd51b3af3a9ec729db3e77216e39a16e + docs/types/interactions/interactionsseeventinteraction.md: {} + docs/types/interactions/interactionsseeventinteractionstatus.md: {} + docs/types/interactions/interactionssestreamevent.md: + id: 0dcbdc7c75de + pristine_git_object: 22b7342d617fff252e190326316b5e0c28154c0a + docs/types/interactions/interactionstatus.md: + id: 4f21235fe42c + pristine_git_object: 3ca5beff1a273d9819c7cfa5b82c23b11cc781b0 + docs/types/interactions/interactionstatusupdate.md: + id: 078870990d87 + pristine_git_object: 40fa18055c583b48520974e677c4279bb7d7980e + docs/types/interactions/interactionstatusupdatestatus.md: + id: f2f65f0f7ee3 + pristine_git_object: 6a2737aed1c2806a0651638987f5d5efd6a6d85b + docs/types/interactions/language.md: + id: 0a4339b814d2 + pristine_git_object: fe25d5fd3bf011e91eb0c0f22f333b4d096254d2 + docs/types/interactions/mcpserver.md: + id: c09cde681305 + pristine_git_object: e40a9ddc9a4b12e7d582d7e2a535a225a928e97b + docs/types/interactions/mcpservertoolcalldelta.md: + id: f61217c4d666 + pristine_git_object: 5cf1e85b2de7dc06ea6f3fa7aaced9a318ae934e + docs/types/interactions/mcpservertoolcallstep.md: + id: 6b4e8b5d5964 + pristine_git_object: b462191a8eac629c812bf88a2bafe3d581fa8243 + docs/types/interactions/mcpservertoolresultdelta.md: + id: c2dee00e2ffb + pristine_git_object: e8bd5d6342166c2125d09af910b986f16e4cdf0d + docs/types/interactions/mcpservertoolresultdeltaresult.md: + id: b1563b4ccce5 + pristine_git_object: 4a74231ecbd8526df6c2db018e2e832c7f9d513c + docs/types/interactions/mcpservertoolresultdeltaresultunion.md: {} + docs/types/interactions/mcpservertoolresultstep.md: + id: 91ff72285302 + pristine_git_object: 4b92d38b48cfec27118e4fcdfe87d780a4cf99e6 + docs/types/interactions/mcpservertoolresultstepresult.md: + id: e5b618acb624 + pristine_git_object: 69d9840e4ca5e32d1dd61e9fba0fa545f5fcdd5d + docs/types/interactions/mcpservertoolresultstepresultunion.md: + id: c6f487e8a562 + pristine_git_object: 6d5bd711744323104387532c3354062a60000eb9 + docs/types/interactions/mediaprocessing.md: {} + docs/types/interactions/mediaresolution.md: + id: f2139f6d1122 + pristine_git_object: c30b7ec68c5a15a4b83089d3d01487bb31bff837 + docs/types/interactions/method.md: {} + docs/types/interactions/modalitytokens.md: + id: f254c0e430ec + pristine_git_object: 5daf77f250d714632742f14a4052f6ccd791a5f3 + docs/types/interactions/mode.md: {} + docs/types/interactions/model.md: {} + docs/types/interactions/modeloutputstep.md: + id: 8c344fb767a2 + pristine_git_object: ffec7f7a7b42ecdb1b4b87e8990dbbf2b9303d76 + docs/types/interactions/network.md: {} + docs/types/interactions/networkenum.md: {} + docs/types/interactions/parallelaisearchconfig.md: {} + docs/types/interactions/placecitation.md: + id: 909cb78825e2 + pristine_git_object: 563f91e2d2457088fe916ed2874822a1f079c3a6 + docs/types/interactions/processing.md: {} + docs/types/interactions/processingcalldelta.md: {} + docs/types/interactions/processingcallstep.md: {} + docs/types/interactions/processingenum.md: {} + docs/types/interactions/processingresultdelta.md: {} + docs/types/interactions/processingresultstep.md: {} + docs/types/interactions/ragresource.md: {} + docs/types/interactions/ragretrievalconfig.md: {} + docs/types/interactions/ragstoreconfig.md: {} + docs/types/interactions/ranking.md: {} + docs/types/interactions/rankservice.md: {} + docs/types/interactions/resolution.md: {} + docs/types/interactions/responseformat.md: + id: 6b8587abf5d1 + pristine_git_object: bd69a74c4d5b8253ed4377714576d0bebe685415 + docs/types/interactions/responsemodality.md: + id: a190e1d5026e + pristine_git_object: 3ffd53bce0113ecca2a02716eae8b3dfcbff59f9 + docs/types/interactions/retrieval.md: + id: 00c7dff70b9c + pristine_git_object: a7ebe13c776d50d70010db71c2a90ce330fb0943 + docs/types/interactions/retrievalcallarguments.md: {} + docs/types/interactions/retrievalcalldelta.md: {} + docs/types/interactions/retrievalcalldeltaretrievaltype.md: {} + docs/types/interactions/retrievalcallstep.md: {} + docs/types/interactions/retrievalcallstepretrievaltype.md: {} + docs/types/interactions/retrievalresultdelta.md: {} + docs/types/interactions/retrievalresultstep.md: {} + docs/types/interactions/retrievalretrievaltype.md: {} + docs/types/interactions/reviewsnippet.md: + id: 8ca0e39c6ac4 + pristine_git_object: 11175d42b48de36f99871be6258aaa3029d0d43b + docs/types/interactions/safetysetting.md: {} + docs/types/interactions/servicetier.md: + id: 2c9da80000f5 + pristine_git_object: 3ad9700dc8d399df56335716704073e0aa9b3922 + docs/types/interactions/sessionconfig.md: {} + docs/types/interactions/smarttranscriptionmode.md: {} + docs/types/interactions/source.md: + id: 8de8d1751af3 + pristine_git_object: cfa1bd916de4d315535832d169ef4c73304fce38 + docs/types/interactions/sourcetype.md: + id: 2cbb2b3377f7 + pristine_git_object: ad32af2ebe93367209f7f7dce7c58bc07eb0723e + docs/types/interactions/speakerconfig.md: {} + docs/types/interactions/speechannotation.md: {} + docs/types/interactions/speechconfig.md: {} + docs/types/interactions/speechconfigunion.md: {} + docs/types/interactions/staticmediaprocessing.md: {} + docs/types/interactions/status.md: {} + docs/types/interactions/step.md: + id: bf3455595964 + pristine_git_object: 47a21e94b38721c6f8bdd5ce98cfeeba41478545 + docs/types/interactions/stepdelta.md: + id: ba9cd24d836c + pristine_git_object: 7fe1023f50ae82c3e28ded810e2a9ba6ec3ca578 + docs/types/interactions/stepdeltadata.md: + id: 92a501f549f1 + pristine_git_object: 654f737d575fa2fc91549523fc90b76044a6051f + docs/types/interactions/stepdeltametadata.md: {} + docs/types/interactions/stepstart.md: + id: 0c5228b391a7 + pristine_git_object: 837c69d6c994614afe0dbc510356d33d9dd46446 + docs/types/interactions/stepstop.md: + id: a907db45729f + pristine_git_object: 1ae78c7272caf4bc9a748e3319d3bcfab2f7c943 + docs/types/interactions/task.md: {} + docs/types/interactions/textannotationdelta.md: + id: 3cab69e4331b + pristine_git_object: b3e7b0731f7f6bc5e07c1b6e695501bcd6a7600a + docs/types/interactions/textcontent.md: + id: 88006398f171 + pristine_git_object: a3fcf775d51604a6b79ee3976fd9c501c32123b8 + docs/types/interactions/textdelta.md: + id: f1bbc6493be8 + pristine_git_object: b5c8d7f939ec800174557a8dc011ef297f7e7396 + docs/types/interactions/textresponseformat.md: + id: 403fe9f36d2a + pristine_git_object: 693ff8712aa1f5b4e685d8818235f93a64a872f7 + docs/types/interactions/textresponseformatmimetype.md: + id: f24c5f5dfdb7 + pristine_git_object: 221a8d7f5300676b997f717fdec607c12a953a67 + docs/types/interactions/thinkinglevel.md: + id: f2ab23f7fd38 + pristine_git_object: 9b7d2440e7f83512766a81b9744bb6fd24ac61b5 + docs/types/interactions/thinkingsummaries.md: + id: feb4a35be22d + pristine_git_object: efa4a5b67dc050c2425e56991ff8662b753c0016 + docs/types/interactions/thoughtsignaturedelta.md: + id: 8acf9cc181b4 + pristine_git_object: 4bba46dc2cab0ba69a6be92b6fe9e43a90b8bdc6 + docs/types/interactions/thoughtstep.md: + id: 51589ba426bc + pristine_git_object: f51f8f72780f8d12b449b09f2af3e84120d65e6a + docs/types/interactions/thoughtsummarycontent.md: + id: d49398d69f2a + pristine_git_object: 2917d1b5b0a0755a64406407e7208afe6d84dfc2 + docs/types/interactions/thoughtsummarydelta.md: + id: cc46a9483f15 + pristine_git_object: 720dc67b71d7333ced62d3d76e5fe44c661e6fc2 + docs/types/interactions/threshold.md: {} + docs/types/interactions/tool.md: + id: 4fb67806e9f2 + pristine_git_object: 8a4a2d0242389aa2df32401c27c83af4d3dfd4d0 + docs/types/interactions/toolchoice.md: + id: 5f5fa2731214 + pristine_git_object: 0e390acf2a924d02ca9f984a7fef34103add1362 + docs/types/interactions/toolchoiceconfig.md: + id: 1d7e638b5bf0 + pristine_git_object: 2b7a73c932b9a61592e00017bf41b1d78d72585c + docs/types/interactions/toolchoicetype.md: + id: 128b841a7e5f + pristine_git_object: 3e6885a8584ead8f044192b4803279850a29a937 + docs/types/interactions/transcriptionconfig.md: {} + docs/types/interactions/transcriptionconfigmode.md: {} + docs/types/interactions/transcriptionconfigmodeenum.md: {} + docs/types/interactions/transcriptionmode.md: {} + docs/types/interactions/transform.md: {} + docs/types/interactions/urlcitation.md: + id: 69dac7631280 + pristine_git_object: 3ca2db49471b41ccd7cdb70ad6fd89321e61e30a + docs/types/interactions/urlcontext.md: + id: 8f93fa9153a7 + pristine_git_object: e99c120eb306fcd7f661098c77fdeecc1e7f629b + docs/types/interactions/urlcontextcallarguments.md: {} + docs/types/interactions/urlcontextcalldelta.md: + id: 6d5697a8564b + pristine_git_object: 8d7582ebb7ec0f138da977e9a96486b2c912d404 + docs/types/interactions/urlcontextcallstep.md: + id: 75da776caf2d + pristine_git_object: 45e68aa5a7f01dda6f6e40e81bb84cd61d004fd4 + docs/types/interactions/urlcontextresult.md: {} + docs/types/interactions/urlcontextresultdelta.md: + id: 5267b2b97e0d + pristine_git_object: 9a0fdcfdf0fa57ce546a1ced88c8be405d4d8626 + docs/types/interactions/urlcontextresultstatus.md: {} + docs/types/interactions/urlcontextresultstep.md: + id: 8f8ecf58219b + pristine_git_object: 5a10b8f1daa9f909a4817ba6b1970afe3d1593d6 + docs/types/interactions/usage.md: + id: 88b4790287d3 + pristine_git_object: afc7af4a2ff0e44079f6812c8a4d872cc80cc000 + docs/types/interactions/userinputstep.md: + id: bd1c0082b3e6 + pristine_git_object: f062332d2ef75f9ee0b43066668e0bbab0511faf + docs/types/interactions/verbatimtranscriptionmode.md: {} + docs/types/interactions/vertexaisearchconfig.md: + id: 4bab7b85857a + pristine_git_object: 5c03f4b2562ab8b7e216fcc1ede28979b844481f + docs/types/interactions/videoconfig.md: {} + docs/types/interactions/videocontent.md: + id: c635123bcaa6 + pristine_git_object: 3350f463c36508994ea7230e972db08092cca9ef + docs/types/interactions/videocontentmimetype.md: + id: eb32208f9356 + pristine_git_object: de05e1c3d0c85089602d96cfd653731ccecea7cc + docs/types/interactions/videodelta.md: + id: 4b8be535fa4c + pristine_git_object: 952828a272c25233213662bc25ccceafcc54be94 + docs/types/interactions/videodeltamimetype.md: + id: 92ddc163dabb + pristine_git_object: e3e6e5593332c525f87bcb7692966599dabb71cb + docs/types/interactions/videoresponseformat.md: {} + docs/types/interactions/videoresponseformataspectratio.md: {} + docs/types/interactions/videoresponseformatdelivery.md: {} + docs/types/interactions/visualization.md: + id: 3fa1f78d2cbe + pristine_git_object: f8f5d4ef5cf7f45cd5fd52dd5a19a15c1a56a125 + docs/types/interactions/webhookconfig.md: + id: 15a1286b90b3 + pristine_git_object: ef64ce9ee0c1f4bfbe076afdd6f60dd2333185c7 + docs/types/interactions/wordinfo.md: {} + docs/types/security.md: {} + docs/types/triggers/listtriggerexecutionsresponse.md: {} + docs/types/triggers/listtriggersresponse.md: {} + docs/types/triggers/trigger.md: {} + docs/types/triggers/triggercreateparams.md: {} + docs/types/triggers/triggerexecution.md: {} + docs/types/triggers/triggerexecutionstatus.md: {} + docs/types/triggers/triggerstatus.md: {} + docs/types/triggers/triggerupdate.md: {} + docs/types/triggers/triggerupdatestatus.md: {} + docs/types/voices/audiodata.md: {} + docs/types/voices/createvoicerequest.md: {} + docs/types/voices/deletevoiceresponse.md: {} + docs/types/voices/listvoicesresponse.md: {} + docs/types/voices/pitch.md: {} + docs/types/voices/promptedvoice.md: {} + docs/types/voices/replicatedvoice.md: {} + docs/types/voices/voiceinput.md: {} + docs/types/voices/voiceoutput.md: {} + docs/types/voices/voicetype.md: {} + docs/types/webhooks/pingwebhookrequest.md: + id: d12c08d78630 + pristine_git_object: e862e47346ed8014ad3e8e2e50c42e6f6d049d2a + docs/types/webhooks/revocationbehavior.md: + id: 3b007047943a + pristine_git_object: e53b3030da765ff406b7d62b7483d17937176e31 + docs/types/webhooks/rotatesigningsecretrequest.md: + id: 305ea0a51bc5 + pristine_git_object: 3cb2fa386d564e51b1a6759aa4ccf6e6b64cff9a + docs/types/webhooks/signingsecret.md: + id: 79076e3ff4cb + pristine_git_object: 45c93f26c42104d2176bddf15d66f228facd3763 + docs/types/webhooks/webhook.md: + id: a107b5c948c9 + pristine_git_object: dda1663a2450feff852514c55e376efbd8de158c + docs/types/webhooks/webhookinput.md: + id: 4808f9b1e7bd + pristine_git_object: a365b3dd1365de955187201b61430ab5d44277ee + docs/types/webhooks/webhooklistresponse.md: {} + docs/types/webhooks/webhookpingresponse.md: {} + docs/types/webhooks/webhookrotatesigningsecretresponse.md: {} + docs/types/webhooks/webhookstate.md: + id: e6fe6d9e6511 + pristine_git_object: 2ef6d470ee9e210d5d18c9b59f09bc8a0de8210f + docs/types/webhooks/webhooksubscribedevent.md: {} + docs/types/webhooks/webhookupdate.md: + id: 427f239fec24 + pristine_git_object: b7c334baf2a4255b987af381b553aa704ffeb86d + docs/types/webhooks/webhookupdatestate.md: + id: 4b34ef39247f + pristine_git_object: df8309653a56064f70fba894aad135373c56450e + docs/types/webhooks/webhookupdatesubscribedevent.md: {} + py.typed: + id: 258c3ed47ae4 + pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544 + pylintrc: + id: 7ce8b9f946e6 + pristine_git_object: c00200cfd072e9febac5d6be783da1925d11dac0 + pyproject.toml: + id: 5d07e7d72637 + pristine_git_object: 7c9917c5e03a8cff48cb59b44892ffac17c9f328 + scripts/prepare_readme.py: + id: e0c5957a6035 + pristine_git_object: 311df6ba3070477e8bcac34d864e3dedad7214ae + scripts/publish.sh: + id: fe273b08f514 + pristine_git_object: c35748f360329c2bc370e9b189f49b1a360b2c48 + src/google/genai/__init__.py: + id: 089de0a1030c + pristine_git_object: 833c68cd526fe34aab2b7e7c45f974f7f4b9e120 + src/google/genai/_hooks/__init__.py: + id: d6c7744ede54 + pristine_git_object: 2ee66cdd592fe41731c24ddd407c8ca31c50aec1 + src/google/genai/_hooks/adapters.py: {} + src/google/genai/_hooks/asyncsdkhooks.py: {} + src/google/genai/_hooks/asynctypes.py: {} + src/google/genai/_hooks/google_genai_auth.py: {} + src/google/genai/_hooks/sdkhooks.py: + id: 978a45a77ce4 + pristine_git_object: 372de795054efae09f2b91b6bcf6a190d1837d37 + src/google/genai/_hooks/types.py: + id: b8c061506a26 + pristine_git_object: c450e85c6c3c904cac165dbda4a7a729436867cf + src/google/genai/_internal.py: {} + src/google/genai/_version.py: + id: 17673cd82669 + pristine_git_object: 58e25ba81d93d8bbe13614894ef482212446fc3d + src/google/genai/agents.py: + id: aff3c1fac716 + pristine_git_object: 07e484a22dbe102c5aa7562d3384fabbe52085d8 + src/google/genai/basesdk.py: + id: 0b4cad9f27d0 + pristine_git_object: cf422ba738cdb23f6debb3a42c52b9346609c43c + src/google/genai/credentials.py: {} + src/google/genai/environments.py: {} + src/google/genai/errors/__init__.py: + id: 327ff203e9ac + pristine_git_object: 97562e8764aa431a8c82bd1fb41df0a4d28b016f + src/google/genai/errors/cancelinteractionbyid.py: + id: ba80bc9313b3 + pristine_git_object: 76aea012a93f867adbfee319459776ff4448975b + src/google/genai/errors/createinteraction.py: + id: d1f1b97aed33 + pristine_git_object: 6c7d1e4174970fc41d3719129be725ec08e3d0c6 + src/google/genai/errors/deleteinteraction.py: + id: facdb6568751 + pristine_git_object: 8804c40f2874466c863e4516a7902935eb382e5c + src/google/genai/errors/genaidefaulterror.py: + id: 60714ab608e7 + pristine_git_object: df1ca0ec5bf9e29c89b86c8d440a9f3d64756238 + src/google/genai/errors/genaierror.py: + id: c31cf809ab15 + pristine_git_object: f5e67cb57d05583cae3812f8a73b7cfc04a6408f + src/google/genai/errors/getinteractionbyid.py: + id: f9a52c84dde1 + pristine_git_object: f1dabc5e17a7bd25ee5a7eee84f364ad6b7ff3c2 + src/google/genai/errors/no_response_error.py: + id: 87b0c1d7fd96 + pristine_git_object: 1deab64bc43e1e65bf3c412d326a4032ce342366 + src/google/genai/errors/responsevalidationerror.py: + id: 50a1668112c9 + pristine_git_object: 5900059db6dee7b964ef68395c933ba82fcdde95 + src/google/genai/files.py: {} + src/google/genai/httpclient.py: + id: 3f86ec472cd2 + pristine_git_object: 89560b566073785535643e694c112bedbd3db13d + src/google/genai/interactions.py: + id: d002e74891d8 + pristine_git_object: c000d6237e5c962783e30ddabbc5254ac5dbf7aa + src/google/genai/lib/compat_errors.py: {} + src/google/genai/models/__init__.py: + id: 33ec7ff23bc8 + pristine_git_object: c12bdd7fdf11862c9741146a33efe35878d456f5 + src/google/genai/models/cancelinteractionbyid.py: + id: 8f260344b79d + pristine_git_object: 66b1a0860046f7e9070502a3dd6edfec732bff16 + src/google/genai/models/createagent.py: + id: d832bface8f3 + pristine_git_object: da4481fe34e1e096c2609c30c6c3d1bcd2eaa6d6 + src/google/genai/models/createcredential.py: {} + src/google/genai/models/createenvironment.py: {} + src/google/genai/models/createinteraction.py: + id: 644b4aa14a07 + pristine_git_object: bc8763a638f962e1d623bb1214b8b06aa0afa29d + src/google/genai/models/createtrigger.py: {} + src/google/genai/models/createvoice.py: {} + src/google/genai/models/createwebhook.py: + id: 5534fe45d5b1 + pristine_git_object: 10a2654751bcbe940d880b20d07c8cb9784795ae + src/google/genai/models/deleteagent.py: + id: 4dcc007a1b50 + pristine_git_object: d2a693ca56464ffcabe771d98072548ac39b378c + src/google/genai/models/deletecredential.py: {} + src/google/genai/models/deleteenvironment.py: {} + src/google/genai/models/deleteinteraction.py: + id: 11c28932c77b + pristine_git_object: 4fba2061761b198805581b62d7e5cac5cb6621c1 + src/google/genai/models/deletetrigger.py: {} + src/google/genai/models/deletevoice.py: {} + src/google/genai/models/deletewebhook.py: + id: 46271cb98ac9 + pristine_git_object: 0470a295d49e1b82dc490701254b3f88b24b54ec + src/google/genai/models/getagent.py: + id: ac8838fa791b + pristine_git_object: 9ef12f7e347f5e7728eb386eac2f1add5eaf07dc + src/google/genai/models/getcredential.py: {} + src/google/genai/models/getenvironment.py: {} + src/google/genai/models/getenvironmentfiles.py: {} + src/google/genai/models/getinteractionbyid.py: + id: 2d379a5217df + pristine_git_object: 01977e9234f86ec06ceeb3a8ea9bfb2fba8bd2f3 + src/google/genai/models/gettrigger.py: {} + src/google/genai/models/getvoice.py: {} + src/google/genai/models/getwebhook.py: + id: 7755ffe07ed4 + pristine_git_object: 45fd6f99268c5855d3be861a098d07541a1b4011 + src/google/genai/models/internal/__init__.py: + id: 34d01b7f63dd + pristine_git_object: 6cbedeef514ae3d53a83c6d9bb455e2bb2866e32 + src/google/genai/models/internal/globals.py: + id: 5b0eaea39050 + pristine_git_object: b6bc2b631c06bed26e04e29dda5027d8325c410b + src/google/genai/models/listagents.py: + id: 6f132d3a141a + pristine_git_object: 418d0d345d4086fc306b20e935eb33d1009b764b + src/google/genai/models/listcredentials.py: {} + src/google/genai/models/listenvironments.py: {} + src/google/genai/models/listtriggerexecutions.py: {} + src/google/genai/models/listtriggers.py: {} + src/google/genai/models/listvoices.py: {} + src/google/genai/models/listwebhooks.py: + id: d2e2ba73641b + pristine_git_object: 33ebde0b0cddba60decef2171f27498a858345b9 + src/google/genai/models/pingwebhook.py: + id: 09667870d50f + pristine_git_object: a48832e2245e6b6dfcdc7d64bcfd4ccf19825c79 + src/google/genai/models/rotatesigningsecret.py: + id: 7d52dbd2a563 + pristine_git_object: c67e9e5ab6bc7e9cdc77f605b208ae577bd17aa9 + src/google/genai/models/runtrigger.py: {} + src/google/genai/models/startenvironmentfileupload.py: {} + src/google/genai/models/updatecredential.py: {} + src/google/genai/models/updatetrigger.py: {} + src/google/genai/models/updatewebhook.py: + id: 0baf5e98eb23 + pristine_git_object: 3c5e461d2528c02502ce47ade177bcbf6a15d776 + src/google/genai/py.typed: + id: c95051ad4aa5 + pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544 + src/google/genai/resources/__init__.py: {} + src/google/genai/resources/agents/__init__.py: {} + src/google/genai/resources/credentials/__init__.py: {} + src/google/genai/resources/environments/__init__.py: {} + src/google/genai/resources/interactions/__init__.py: {} + src/google/genai/resources/interactions/annotation/__init__.py: {} + src/google/genai/resources/interactions/codeexecutioncallstep/__init__.py: {} + src/google/genai/resources/interactions/codemenderagentconfig/__init__.py: {} + src/google/genai/resources/interactions/codemenderagentconfig/findrequest/__init__.py: {} + src/google/genai/resources/interactions/codemenderagentconfig/fixrequest/__init__.py: {} + src/google/genai/resources/interactions/environment/__init__.py: {} + src/google/genai/resources/interactions/environment/environmentnetworkegressallowlist/__init__.py: {} + src/google/genai/resources/interactions/errorevent/__init__.py: {} + src/google/genai/resources/interactions/googlemapscallstep/__init__.py: {} + src/google/genai/resources/interactions/googlemapsresult/__init__.py: {} + src/google/genai/resources/interactions/googlemapsresult/place/__init__.py: {} + src/google/genai/resources/interactions/googlemapsresultstep/__init__.py: {} + src/google/genai/resources/interactions/googlemapsresultstep/result/__init__.py: {} + src/google/genai/resources/interactions/googlemapsresultstep/result/place/__init__.py: {} + src/google/genai/resources/interactions/googlesearchcallstep/__init__.py: {} + src/google/genai/resources/interactions/googlesearchresultstep/__init__.py: {} + src/google/genai/resources/interactions/placecitation/__init__.py: {} + src/google/genai/resources/interactions/retrievalcalldelta/__init__.py: {} + src/google/genai/resources/interactions/retrievalcallstep/__init__.py: {} + src/google/genai/resources/interactions/stepdelta/__init__.py: {} + src/google/genai/resources/interactions/tool/__init__.py: {} + src/google/genai/resources/interactions/tool/retrieval/__init__.py: {} + src/google/genai/resources/interactions/transcriptionmode/__init__.py: {} + src/google/genai/resources/interactions/urlcontextcallstep/__init__.py: {} + src/google/genai/resources/interactions/urlcontextresultstep/__init__.py: {} + src/google/genai/resources/interactions/usage/__init__.py: {} + src/google/genai/resources/interactions/videocontent/__init__.py: {} + src/google/genai/resources/triggers/__init__.py: {} + src/google/genai/resources/voices/__init__.py: {} + src/google/genai/resources/voices/createvoicerequest/__init__.py: {} + src/google/genai/resources/voices/voicelistresponse/__init__.py: {} + src/google/genai/resources/webhooks/__init__.py: {} + src/google/genai/sdk.py: + id: 0486b92806c7 + pristine_git_object: f2e38527840e5ecf42645d984b6c5fe8eeca69aa + src/google/genai/sdkconfiguration.py: + id: 3214c6ca1591 + pristine_git_object: 29fc92bdfc8dd9f4e040a307f50596d9a9eed421 + src/google/genai/triggers.py: {} + src/google/genai/types/__init__.py: + id: 692c9839eec7 + pristine_git_object: fc76fe0c5505e29859b5d2bb707d48fd27661b8c + src/google/genai/types/agents/__init__.py: + id: b98ce99d88bb + pristine_git_object: ad729354883618963778021de1c1017c5de512fe + src/google/genai/types/agents/agent.py: + id: 3251418439eb + pristine_git_object: c4c2ba86ce75177a2311297bea0369fecf521ffe + src/google/genai/types/agents/agentlistresponse.py: {} + src/google/genai/types/agents/agenttool.py: + id: b165822e6ea7 + pristine_git_object: 8ca372aeb44d66fa2b006add89474831868547e1 + src/google/genai/types/base64fileinput.py: {} + src/google/genai/types/basemodel.py: + id: df1f0b33222b + pristine_git_object: fc19a8666d23ddd7a9c3bb76349cc88be340cdb3 + src/google/genai/types/credentials/__init__.py: {} + src/google/genai/types/credentials/credential.py: {} + src/google/genai/types/credentials/credentialcreateparams.py: {} + src/google/genai/types/credentials/credentiallistresponse.py: {} + src/google/genai/types/credentials/credentialupdate.py: {} + src/google/genai/types/credentials/environmentvariableconfig.py: {} + src/google/genai/types/credentials/environmentvariableupdateconfig.py: {} + src/google/genai/types/credentials/httpbearerconfig.py: {} + src/google/genai/types/credentials/httpbearerupdateconfig.py: {} + src/google/genai/types/credentials/injectionlocation_enum.py: {} + src/google/genai/types/credentials/oauth2config.py: {} + src/google/genai/types/credentials/oauth2updateconfig.py: {} + src/google/genai/types/environments/__init__.py: {} + src/google/genai/types/environments/createenvironmentrequest.py: {} + src/google/genai/types/environments/environment.py: {} + src/google/genai/types/environments/environmentfile.py: {} + src/google/genai/types/environments/getenvironmentfilesresponse.py: {} + src/google/genai/types/environments/listenvironmentsresponse.py: {} + src/google/genai/types/interactions/__init__.py: + id: 8509d6cedd3f + pristine_git_object: edd401ce7ae420bc1da677ef1e9443ad87e22319 + src/google/genai/types/interactions/agentoption.py: {} + src/google/genai/types/interactions/allowedtools.py: + id: 8d9e059909e2 + pristine_git_object: fbde526e6502861fdc60fdf28cb9799e118fa672 + src/google/genai/types/interactions/allowlistentry.py: + id: 5caf8efaeea4 + pristine_git_object: edacd19b9dbd28971f1bdb582b06db8a49e7e09f + src/google/genai/types/interactions/annotation.py: + id: 753a3854cd25 + pristine_git_object: 5e20f9fcb5a030dec504f2698309509f7565208a + src/google/genai/types/interactions/antigravityagentconfig.py: {} + src/google/genai/types/interactions/argumentsdelta.py: + id: 86479a4c9c7d + pristine_git_object: 6f4b131420ed546d44d5f3fbc69a59b34b771da7 + src/google/genai/types/interactions/audiocontent.py: + id: 75e3472fd777 + pristine_git_object: 0e63f554ea425aaac819400da8ac3fae981b24be + src/google/genai/types/interactions/audiodelta.py: + id: e999aeff5e17 + pristine_git_object: f43444ee67ccd151499bf31a6636b32f472a8487 + src/google/genai/types/interactions/audioresponseformat.py: + id: d5343d033040 + pristine_git_object: 69d92f2708a8d4e6599a8a7ea85abb2d51a7d395 + src/google/genai/types/interactions/codeexecution.py: + id: 4252e1c1d14b + pristine_git_object: fe9ee3f88b90c319bccb564d9b6919596683a6bb + src/google/genai/types/interactions/codeexecutioncallarguments.py: + id: 97f9dbca736b + pristine_git_object: f768e10e78b47086590f58fede9dc966c3b4f394 + src/google/genai/types/interactions/codeexecutioncalldelta.py: + id: 7db37af0e33b + pristine_git_object: b2e4124cc68b30ddff9673fc5f6a9f1b5342be4c + src/google/genai/types/interactions/codeexecutioncallstep.py: + id: cebae95ba877 + pristine_git_object: a03fb92ae6f691d5915b398ed5865a9d9dfc6095 + src/google/genai/types/interactions/codeexecutionresultdelta.py: + id: c569d8b59613 + pristine_git_object: 7ed72b11c6cf9cd77f52d3127597df92203d13bf + src/google/genai/types/interactions/codeexecutionresultstep.py: + id: 0947d37198aa + pristine_git_object: 68e4bd8ed086bc417c6e75a8093df4ab1b7bc2fa + src/google/genai/types/interactions/codemenderagentconfig.py: {} + src/google/genai/types/interactions/computeruse.py: + id: 1b79f202d8a1 + pristine_git_object: cddf963f69dd4ebc80d261d0a71e638088e42cd5 + src/google/genai/types/interactions/content.py: + id: 48fbe0da6d76 + pristine_git_object: e1a331d03812fc7325f348f609e84a257ee8ae5f + src/google/genai/types/interactions/createagentinteraction.py: {} + src/google/genai/types/interactions/createmodelinteraction.py: {} + src/google/genai/types/interactions/deepresearchagentconfig.py: + id: 3df6e4ff2b22 + pristine_git_object: c0bfbba9bf90e9f172e030795ada600d60f0cf51 + src/google/genai/types/interactions/documentcontent.py: + id: 76d1665127f3 + pristine_git_object: 5888f98f22d53ba7bae475a773127feb38a9fe9f + src/google/genai/types/interactions/documentdelta.py: + id: 89180d8f225a + pristine_git_object: b558b59b8ed351b0e7647c9cdf7d10ca1b4703d1 + src/google/genai/types/interactions/dynamicagentconfig.py: + id: c129b6c9db1b + pristine_git_object: dfcd5ec9fdb6da2f7737903d917742c49d069df2 + src/google/genai/types/interactions/empty.py: + id: e16e3bb0b935 + pristine_git_object: c51bc3b03414e4d2871283074d3a907fba69d602 + src/google/genai/types/interactions/environment.py: + id: 970d30d0cda8 + pristine_git_object: 10b3bfcc0bebf30567c15f8136afc4c9689fe078 + src/google/genai/types/interactions/environmentnetworkegressallowlist.py: {} + src/google/genai/types/interactions/envvar.py: {} + src/google/genai/types/interactions/error.py: + id: 252487508ab7 + pristine_git_object: 511683e19691a9c0f5d1e927d785242b37d88798 + src/google/genai/types/interactions/errorevent.py: + id: 2fc45f77ffd9 + pristine_git_object: 6e05d387e0be5ef0cb967ebea4173559b93bda84 + src/google/genai/types/interactions/exaaisearchconfig.py: {} + src/google/genai/types/interactions/filecitation.py: + id: d2fbad87adb5 + pristine_git_object: aa2b02832f6f99b76b11b2a9ac8a572d7e4ffddd + src/google/genai/types/interactions/filecontent.py: {} + src/google/genai/types/interactions/filesearch.py: + id: 2263b7327885 + pristine_git_object: 343d15d800354c256d86d5ef42efcc40d43d432e + src/google/genai/types/interactions/filesearchcalldelta.py: + id: bf20f051d782 + pristine_git_object: dd26258345c0bdc8b54c73df6bc669590fc7ae37 + src/google/genai/types/interactions/filesearchcallstep.py: + id: d6cc3ae2de0b + pristine_git_object: cb664437b1dc33a3d1d1938074fb0f48be16f18f + src/google/genai/types/interactions/filesearchresult.py: + id: a47b25c1c4e4 + pristine_git_object: ec1f4409478dcd53b47844906d4712505dcdf909 + src/google/genai/types/interactions/filesearchresultdelta.py: + id: 345b8de86d25 + pristine_git_object: 3c72fa8ae8a7bb1d9b45b5c4a1db319184635ab9 + src/google/genai/types/interactions/filesearchresultstep.py: + id: fc56eae2e450 + pristine_git_object: 461e983c606a04bda8be70647a57666a636643d9 + src/google/genai/types/interactions/filter_.py: {} + src/google/genai/types/interactions/findrequest.py: {} + src/google/genai/types/interactions/fixrequest.py: {} + src/google/genai/types/interactions/function.py: + id: 6e35307d60e0 + pristine_git_object: 0067050007581a265de4d773061d6e406fbbc61a + src/google/genai/types/interactions/functioncallstep.py: + id: 2c0285750233 + pristine_git_object: d7be8f8391ed52ffbb9fcbcb9d77e6a6eeb3bc75 + src/google/genai/types/interactions/functionresultdelta.py: + id: 0ac7f50e3e78 + pristine_git_object: e62b0cc0e0a7da9870d9fa3466995359762a2f8c + src/google/genai/types/interactions/functionresultstep.py: + id: 2a857701aa9d + pristine_git_object: 2dea410af0034f1a8b02dfa011e4be974af0008b + src/google/genai/types/interactions/functionresultsubcontent.py: + id: 0a2c23491f2e + pristine_git_object: 93934e3d2c196266026c5243e8c2ed9e58f3a486 + src/google/genai/types/interactions/generationconfig.py: + id: 5c1d3a7561ff + pristine_git_object: 807956015f64059c7adde78c18bd7e8673d0d327 + src/google/genai/types/interactions/googlemaps.py: + id: 7089e408d4b3 + pristine_git_object: 0863c4dbee12c86fe31281842f181f1897faf979 + src/google/genai/types/interactions/googlemapscallarguments.py: + id: 34dbfdd7e095 + pristine_git_object: 694586529ec1a060062eb6fbf7b9e0997b1a13d4 + src/google/genai/types/interactions/googlemapscalldelta.py: + id: bfb1f3d91358 + pristine_git_object: 65d30fa7c035a999cba89e15f0ce157042e9772e + src/google/genai/types/interactions/googlemapscallstep.py: + id: ac3e66173df4 + pristine_git_object: 9f3e095c98330381b6d4b79a20667ba54eef3fdf + src/google/genai/types/interactions/googlemapsresult.py: + id: f7584307e05a + pristine_git_object: c7c88fa86017dc8a8933aaa34fdb1ef7ea13736e + src/google/genai/types/interactions/googlemapsresultdelta.py: + id: dc62c43f3923 + pristine_git_object: e2f8f9e2cbd5bde6dad9630480d3465b446e0b11 + src/google/genai/types/interactions/googlemapsresultplaces.py: + id: 487fb3776e04 + pristine_git_object: 12075aa5d23c7b14fd2c02331417e4acf9c2b702 + src/google/genai/types/interactions/googlemapsresultstep.py: + id: 82bcc76ed6d3 + pristine_git_object: 66ba6a1adb61c2489c025b18ae67283ee95fb9d9 + src/google/genai/types/interactions/googlesearch.py: + id: f47dffc53b85 + pristine_git_object: b9738ec6b71c93379b03dca30a74a8b8fa343162 + src/google/genai/types/interactions/googlesearchcallarguments.py: + id: 056784206fd3 + pristine_git_object: 2768220e7c973ee66f7b60926a1532434e5a01f7 + src/google/genai/types/interactions/googlesearchcalldelta.py: + id: 6c0ea4706871 + pristine_git_object: e2f7140cc798aa9b608468fa2708912ff3351311 + src/google/genai/types/interactions/googlesearchcallstep.py: + id: c8e14824f315 + pristine_git_object: 2b64280c79b44f50ae91640be114a8aec818c169 + src/google/genai/types/interactions/googlesearchresult.py: + id: c446b1b4a32d + pristine_git_object: cdbd4a72b2915bb9b03a106fdc70ed72bd7d956e + src/google/genai/types/interactions/googlesearchresultdelta.py: + id: a6b8e94860c1 + pristine_git_object: d6556f49a9da9d1f0fe2acd40864121287091a70 + src/google/genai/types/interactions/googlesearchresultstep.py: + id: 577d04051ad0 + pristine_git_object: 8b0e556813d0d856ac2b949dbf527553e3dd2645 + src/google/genai/types/interactions/groundingtoolcount.py: + id: f4fa205f3193 + pristine_git_object: 8ff42d680a36bd2ec965af09b2637918672155e7 + src/google/genai/types/interactions/harmcategory.py: {} + src/google/genai/types/interactions/hybridsearch.py: {} + src/google/genai/types/interactions/imageconfig.py: + id: fd0cfbc7ce59 + pristine_git_object: 7e10ca0ca4abded755be7d8b255f13e27f967cc8 + src/google/genai/types/interactions/imagecontent.py: + id: d0ad4bde2e16 + pristine_git_object: 773093d47021304c4d6c66231aeb0b64246c2898 + src/google/genai/types/interactions/imagedelta.py: + id: 12985fd0e55d + pristine_git_object: aae0e6ce83c23260e249086a14ff703c0d6627ff + src/google/genai/types/interactions/imageresponseformat.py: + id: d09c8087fe7a + pristine_git_object: 9640125c85723fbbf2e6b4f3498039d22b277180 + src/google/genai/types/interactions/interaction.py: {} + src/google/genai/types/interactions/interactioncompletedevent.py: + id: 04d154de62b6 + pristine_git_object: 21b1184d0f35fc7ea2ed963be00950177b7b2ebd + src/google/genai/types/interactions/interactioncreatedevent.py: + id: 1c9f71e14a75 + pristine_git_object: 1f656c6ad4b060125d6a69077c5a4f636530f418 + src/google/genai/types/interactions/interactionsinput.py: + id: 8ff0858f39bd + pristine_git_object: 0875bdcd88a9e67c9b28c33b7783484230fffb8f + src/google/genai/types/interactions/interactionsseevent.py: + id: b0c9511c7ec5 + pristine_git_object: b7e7d3802770b6898e409bcb1767834e4e9c0a7f + src/google/genai/types/interactions/interactionsseeventinteraction.py: {} + src/google/genai/types/interactions/interactionssestreamevent.py: + id: e7827dc1cc08 + pristine_git_object: 1ee97da9564bc22c02c7f781357382d8f21b4af1 + src/google/genai/types/interactions/interactionstatusupdate.py: + id: f10050543f02 + pristine_git_object: af2d42965202ef8e4b9ed5483aa7a95937046f07 + src/google/genai/types/interactions/mcpserver.py: + id: 32e51baa4dd8 + pristine_git_object: 7c4b9cd158e6d2e47027184cb3f14c0c84ab2611 + src/google/genai/types/interactions/mcpservertoolcalldelta.py: + id: b20ef16c923c + pristine_git_object: e79205035809a2b5aa79a17d885e62f773b1bd72 + src/google/genai/types/interactions/mcpservertoolcallstep.py: + id: 9a16dfbbfaf0 + pristine_git_object: 38147cdbad3ccbad289ab0b4b0c3aa7ebcb42ed7 + src/google/genai/types/interactions/mcpservertoolresultdelta.py: + id: b699fb2110d9 + pristine_git_object: 38d60dc72d2804f8a3b29636471c43faf05c072a + src/google/genai/types/interactions/mcpservertoolresultstep.py: + id: 39ac8d488f2e + pristine_git_object: e5fe9b884faed4e1f3b35d3f1233500c23993e32 + src/google/genai/types/interactions/mediaprocessing.py: {} + src/google/genai/types/interactions/mediaresolution.py: + id: d2b04114c9c9 + pristine_git_object: 5990b9673cec5ba88769ca79918b2a41c9bd7ef9 + src/google/genai/types/interactions/modalitytokens.py: + id: ae431a1f1e06 + pristine_git_object: 5a8733586c2bdce35b5414928ea9d02b541d6335 + src/google/genai/types/interactions/model.py: {} + src/google/genai/types/interactions/modeloutputstep.py: + id: 7f4945c17ebd + pristine_git_object: 45c48301ed5b5cffd252b39825b366efa80f8f75 + src/google/genai/types/interactions/parallelaisearchconfig.py: {} + src/google/genai/types/interactions/placecitation.py: + id: 003be0518750 + pristine_git_object: 01dea3877b78bf2db7dc61c03003d21311661a54 + src/google/genai/types/interactions/processingcalldelta.py: {} + src/google/genai/types/interactions/processingcallstep.py: {} + src/google/genai/types/interactions/processingresultdelta.py: {} + src/google/genai/types/interactions/processingresultstep.py: {} + src/google/genai/types/interactions/ragresource.py: {} + src/google/genai/types/interactions/ragretrievalconfig.py: {} + src/google/genai/types/interactions/ragstoreconfig.py: {} + src/google/genai/types/interactions/ranking.py: {} + src/google/genai/types/interactions/rankservice.py: {} + src/google/genai/types/interactions/responseformat.py: {} + src/google/genai/types/interactions/responsemodality.py: + id: 9ce4d0b19a76 + pristine_git_object: ed1f8d3cfee0ceb8fe8953e6223f59e08909d052 + src/google/genai/types/interactions/retrieval.py: + id: b178831cd0d8 + pristine_git_object: a89b8401dca0345368b761fecfd962f01a12413b + src/google/genai/types/interactions/retrievalcallarguments.py: {} + src/google/genai/types/interactions/retrievalcalldelta.py: {} + src/google/genai/types/interactions/retrievalcallstep.py: {} + src/google/genai/types/interactions/retrievalresultdelta.py: {} + src/google/genai/types/interactions/retrievalresultstep.py: {} + src/google/genai/types/interactions/reviewsnippet.py: + id: 0aaf1740c2a8 + pristine_git_object: b8a68cd774f69187c67c3254651fdaf2d4b570d6 + src/google/genai/types/interactions/safetysetting.py: {} + src/google/genai/types/interactions/servicetier.py: + id: 8173399c37bd + pristine_git_object: 78bd91073c09394a0b8ec0caeaf3fe8c3879bd39 + src/google/genai/types/interactions/sessionconfig.py: {} + src/google/genai/types/interactions/smarttranscriptionmode.py: {} + src/google/genai/types/interactions/source.py: + id: 9d8befd24e7c + pristine_git_object: f70aaa687f56e39a2d2e2e1515bb13dcf1651d47 + src/google/genai/types/interactions/speakerconfig.py: {} + src/google/genai/types/interactions/speechannotation.py: {} + src/google/genai/types/interactions/speechconfig.py: {} + src/google/genai/types/interactions/staticmediaprocessing.py: {} + src/google/genai/types/interactions/status.py: {} + src/google/genai/types/interactions/step.py: + id: 353c72c28288 + pristine_git_object: 1374d7095937d4baa517c63be27b66adafaed885 + src/google/genai/types/interactions/stepdelta.py: + id: 37936c05045e + pristine_git_object: 1ba1fb6e9c3fd9cada24ba70059c802b79ede04e + src/google/genai/types/interactions/stepdeltadata.py: + id: 95f635133ff1 + pristine_git_object: feb2046e5950f695651d6193e3f4930eb061e549 + src/google/genai/types/interactions/stepdeltametadata.py: {} + src/google/genai/types/interactions/stepstart.py: + id: 5e8a18f9cccc + pristine_git_object: 8710daa74d281a241a6861b7f166381f83e7e025 + src/google/genai/types/interactions/stepstop.py: + id: 823f312edb6a + pristine_git_object: 7862e6f20f9096a987bb5fc15dcd9e2cb139652d + src/google/genai/types/interactions/textannotationdelta.py: + id: ef95a17c0be2 + pristine_git_object: 3c4f9191bd446b0a2033e56a68831d1ad8045a90 + src/google/genai/types/interactions/textcontent.py: + id: 752da7bf7e75 + pristine_git_object: f271cca278f3cb154bb961d38e0b29401b6eea47 + src/google/genai/types/interactions/textdelta.py: + id: 0934ba474f2a + pristine_git_object: dc36fc5ad8d66b7dece9be0708f81fdc1639a9fa + src/google/genai/types/interactions/textresponseformat.py: + id: 41db37b445a3 + pristine_git_object: 9d24a99d7162fbaa3c5fdeebafc9b893e306f65b + src/google/genai/types/interactions/thinkinglevel.py: + id: c2b2dc120a23 + pristine_git_object: 597b3e7c2517bd5f8df702506b9df4043737c8a5 + src/google/genai/types/interactions/thinkingsummaries.py: + id: 87984b64598b + pristine_git_object: 38c62adf54a1043eae025a9beacda1ce21d31c68 + src/google/genai/types/interactions/thoughtsignaturedelta.py: + id: 7f3b0164af15 + pristine_git_object: ffbc1fa2d1f1542d992dd6a69db39afdc4fa88da + src/google/genai/types/interactions/thoughtstep.py: + id: d52302b3001f + pristine_git_object: ba477e0af4a8aa6200d9a61afe81e3aece3b70aa + src/google/genai/types/interactions/thoughtsummarycontent.py: + id: f0074ddd5684 + pristine_git_object: 1e178a8581e8c12d33a0bee17cc6d88d7599266b + src/google/genai/types/interactions/thoughtsummarydelta.py: + id: d8a986ba0c24 + pristine_git_object: c17f8a0f1005c325a9168e383d1d89ca46622184 + src/google/genai/types/interactions/tool.py: + id: 7597aaaffc8f + pristine_git_object: 264fc4873797db2e071bf92b73cafad441f4c682 + src/google/genai/types/interactions/toolchoiceconfig.py: + id: 9316cfba072f + pristine_git_object: 388c126fcaeb15dac253333f9aaad709b63f0129 + src/google/genai/types/interactions/toolchoicetype.py: + id: ea55106c98ca + pristine_git_object: 18dd468fdfccf9faa5844127590bd48fc92e82c1 + src/google/genai/types/interactions/transcriptionconfig.py: {} + src/google/genai/types/interactions/transcriptionmode.py: {} + src/google/genai/types/interactions/urlcitation.py: + id: 1181af58d28e + pristine_git_object: 1cbcf4171619e7426f3cf385650e2e83b3a83325 + src/google/genai/types/interactions/urlcontext.py: + id: 3ff6abf51a1b + pristine_git_object: a8e1640cd5f1746c5cbea042780e355590a679f6 + src/google/genai/types/interactions/urlcontextcallarguments.py: {} + src/google/genai/types/interactions/urlcontextcalldelta.py: + id: 6bddc49bfe6e + pristine_git_object: 913044318f0196f7256ca32413af4ffc01db4f06 + src/google/genai/types/interactions/urlcontextcallstep.py: + id: 00d3abbfb062 + pristine_git_object: 858eb4ffccf64613330fe621b3a246f3770023d2 + src/google/genai/types/interactions/urlcontextresult.py: {} + src/google/genai/types/interactions/urlcontextresultdelta.py: + id: cfc75ad9cb12 + pristine_git_object: bff99c896ff1aa06eda48596b976a918b9188ebb + src/google/genai/types/interactions/urlcontextresultstep.py: + id: "757351916922" + pristine_git_object: 4da7817c067ebd30eda7c2e2e045c964608c7ad5 + src/google/genai/types/interactions/usage.py: + id: 99b77c8ad591 + pristine_git_object: 848dba60378c0ccc5fa40a212dc2519ba070e689 + src/google/genai/types/interactions/userinputstep.py: + id: e278dba7fe60 + pristine_git_object: 022dd4bca4ebbf670fc794f6970c5dabd1a20248 + src/google/genai/types/interactions/verbatimtranscriptionmode.py: {} + src/google/genai/types/interactions/vertexaisearchconfig.py: + id: 29c0efb23738 + pristine_git_object: 9a7916c96bfa55119dde468b1b703ba3a100e936 + src/google/genai/types/interactions/videoconfig.py: {} + src/google/genai/types/interactions/videocontent.py: + id: 35fdbc53ed43 + pristine_git_object: 1fe2b66744688c76a330953aa7f0316c8948abde + src/google/genai/types/interactions/videodelta.py: + id: 9dce22b4fe37 + pristine_git_object: 1169497d27731822531e639024a34fa02243903b + src/google/genai/types/interactions/videoresponseformat.py: {} + src/google/genai/types/interactions/webhookconfig.py: + id: 3c22574f3fee + pristine_git_object: acb7959d19f2d1dba945e05dcde4c12b8e0ffefe + src/google/genai/types/interactions/wordinfo.py: {} + src/google/genai/types/security.py: {} + src/google/genai/types/triggers/__init__.py: {} + src/google/genai/types/triggers/listtriggerexecutionsresponse.py: {} + src/google/genai/types/triggers/listtriggersresponse.py: {} + src/google/genai/types/triggers/trigger.py: {} + src/google/genai/types/triggers/triggercreateparams.py: {} + src/google/genai/types/triggers/triggerexecution.py: {} + src/google/genai/types/triggers/triggerupdate.py: {} + src/google/genai/types/voices/__init__.py: {} + src/google/genai/types/voices/audiodata.py: {} + src/google/genai/types/voices/createvoicerequest.py: {} + src/google/genai/types/voices/deletevoiceresponse.py: {} + src/google/genai/types/voices/listvoicesresponse.py: {} + src/google/genai/types/voices/pitch.py: {} + src/google/genai/types/voices/promptedvoice.py: {} + src/google/genai/types/voices/replicatedvoice.py: {} + src/google/genai/types/voices/voice_input.py: {} + src/google/genai/types/voices/voice_output.py: {} + src/google/genai/types/voices/voicetype.py: {} + src/google/genai/types/webhooks/__init__.py: + id: 29bc59f5caf9 + pristine_git_object: 038dfef6ded41a2e724670afe7f57cec3606af00 + src/google/genai/types/webhooks/pingwebhookrequest.py: + id: acd0330f26d1 + pristine_git_object: 3e5ba55d4c7bd07f9e32d48467a2124003f5047c + src/google/genai/types/webhooks/rotatesigningsecretrequest.py: + id: 6ae40631b0b1 + pristine_git_object: 723f0921275d4a8ce984f54aef3ed1fa6d896214 + src/google/genai/types/webhooks/signingsecret.py: + id: 18554818f835 + pristine_git_object: 7c991e3026943bb0490ccde6a0e9590afffd1826 + src/google/genai/types/webhooks/webhook.py: + id: 429c931b8768 + pristine_git_object: 3b09dce6f8d98a79a44f9bf5f20bceec83665fe4 + src/google/genai/types/webhooks/webhooklistresponse.py: {} + src/google/genai/types/webhooks/webhookpingresponse.py: {} + src/google/genai/types/webhooks/webhookrotatesigningsecretresponse.py: {} + src/google/genai/types/webhooks/webhookupdate.py: + id: fafcd672c45b + pristine_git_object: f05a06d6c2892966a417629ee9ea7bbe9a0a34ca + src/google/genai/utils/__init__.py: + id: ea262ecd4661 + pristine_git_object: b488c2df1390b22be3050eee72832a91c76d5385 + src/google/genai/utils/annotations.py: + id: 68ddb9f419a4 + pristine_git_object: 12e0aa4f1151bb52474cc02e88397329b90703f6 + src/google/genai/utils/datetimes.py: + id: 54d560ad36de + pristine_git_object: a6c52cd61bbe2d459046c940ce5e8c469f2f0664 + src/google/genai/utils/dynamic_imports.py: + id: cc8a354de87b + pristine_git_object: 673edf82a97d0fea7295625d3e092ea369a36b79 + src/google/genai/utils/enums.py: + id: 1f4cc3ebafba + pristine_git_object: 3324e1bc2668c54c4d5f5a1a845675319757a828 + src/google/genai/utils/eventstreaming.py: + id: 9a3733215ec3 + pristine_git_object: 3bdcd6d3d4fc772cb7f5fca8685dcdc8c85e13e8 + src/google/genai/utils/forms.py: + id: e53f73db84cd + pristine_git_object: 1e550bd5c2c35d977ddc10f49d77c23cb12c158d + src/google/genai/utils/headers.py: + id: 3f180d1ca184 + pristine_git_object: 37864cbbbc40d1a47112bbfdd3ba79568fc8818a + src/google/genai/utils/logger.py: + id: 3df15d5df26a + pristine_git_object: 0f145007aeee4862a8886f5f528aab093cdc7c4f + src/google/genai/utils/metadata.py: + id: 109486ca145d + pristine_git_object: 5abddd588837ac297050ca3b543627faadb350a9 + src/google/genai/utils/queryparams.py: + id: afc4638c7fbb + pristine_git_object: c04e0db82b68eca041f2cb2614d748fbac80fd41 + src/google/genai/utils/requestbodies.py: + id: 84f4b6897374 + pristine_git_object: 1de32b6d26f46590232f398fdba6ce0072f1659c + src/google/genai/utils/response_helpers.py: {} + src/google/genai/utils/retries.py: + id: 4cd098cc2f07 + pristine_git_object: af07d4e941007af4213c5ec9047ef8a2fca04e5e + src/google/genai/utils/security.py: + id: da91977e36d1 + pristine_git_object: 42d8d78e9981eed7507670014d99588e27ab325a + src/google/genai/utils/serializers.py: + id: "368116840e17" + pristine_git_object: d2149f8b909cb96628db140ac3cddb1b1e981367 + src/google/genai/utils/unions.py: + id: 42901795870a + pristine_git_object: a227f4e87be22fce682fcae5813b71835199ec5e + src/google/genai/utils/unmarshal_json_response.py: + id: 602dda5ce2e2 + pristine_git_object: 5e3012356bb21222ad8bfa4e32cc1e59f2727b3e + src/google/genai/utils/url.py: + id: 14ae77be2dec + pristine_git_object: c78ccbae426ce6d385709d97ce0b1c2813ea2418 + src/google/genai/utils/values.py: + id: ce4422e999ec + pristine_git_object: dae01a44384ac3bc13ae07453a053bf6c898ebe3 + src/google/genai/voices.py: {} + src/google/genai/webhooks.py: + id: ccea7f45ef7f + pristine_git_object: 9095e8d3d62e787bd55898c81f89a4d20f89889c +examples: + CreateAgent: + speakeasy-default-create-agent: + parameters: + path: + api_version: "" + requestBody: + application/json: {"base_environment": {"sources": [{"content": "You are a data analyst. Always include visualizations and export results as PDF.", "target": ".agents/AGENTS.md", "type": "inline"}, {"content": "---\nname: slide-maker\ndescription: Create HTML slide decks\n---\n# Slide Maker\n\nWhen asked to create a presentation:\n1. Analyze the input data\n2. Create an HTML slide deck with reveal.js\n3. Save to /workspace/output/slides.html", "target": ".agents/skills/slide-maker/SKILL.md", "type": "inline"}], "type": "remote"}} + responses: + default: + application/json: {"base_environment": {"sources": [{"content": "You are a data analyst. Always include visualizations and export results as PDF.", "target": ".agents/AGENTS.md", "type": "inline"}, {"content": "---\nname: slide-maker\ndescription: Create HTML slide decks\n---\n# Slide Maker\n\nWhen asked to create a presentation:\n1. Analyze the input data\n2. Create an HTML slide deck with reveal.js\n3. Save to /workspace/output/slides.html", "target": ".agents/skills/slide-maker/SKILL.md", "type": "inline"}], "type": "remote"}} + create: + parameters: + path: + api_version: "" + requestBody: + application/json: {"base_environment": {"sources": [{"content": "You are a data analyst. Always include visualizations and export results as PDF.", "target": ".agents/AGENTS.md", "type": "inline"}, {"content": "---\nname: slide-maker\ndescription: Create HTML slide decks\n---\n# Slide Maker\n\nWhen asked to create a presentation:\n1. Analyze the input data\n2. Create an HTML slide deck with reveal.js\n3. Save to /workspace/output/slides.html", "target": ".agents/skills/slide-maker/SKILL.md", "type": "inline"}], "type": "remote"}} + responses: + default: + application/json: {"base_agent": "antigravity-preview-09-2026", "base_environment": "remote", "description": "A helpful research assistant.", "id": "research-assistant-abc123", "system_instruction": "You are a helpful research assistant.", "tools": [{"type": "google_search"}]} + with_sources: + parameters: + path: + api_version: "" + requestBody: + application/json: {"base_environment": {"sources": [{"content": "You are a data analyst. Always include visualizations and export results as PDF.", "target": ".agents/AGENTS.md", "type": "inline"}, {"content": "---\nname: slide-maker\ndescription: Create HTML slide decks\n---\n# Slide Maker\n\nWhen asked to create a presentation:\n1. Analyze the input data\n2. Create an HTML slide deck with reveal.js\n3. Save to /workspace/output/slides.html", "target": ".agents/skills/slide-maker/SKILL.md", "type": "inline"}], "type": "remote"}} + responses: + default: + application/json: {"base_agent": "antigravity-preview-09-2026", "base_environment": {"sources": [{"content": "Always use matplotlib for charts. Include a summary table in every report.", "target": ".agents/AGENTS.md", "type": "inline"}, {"source": "https://github.com/my-org/analysis-templates", "target": "/workspace/templates", "type": "repository"}], "type": "remote"}, "id": "data-analyst-abc123", "system_instruction": "You are a data analyst. Always include visualizations and export results as PDF."} + fork_from_env: + parameters: + path: + api_version: "" + requestBody: + application/json: {"base_environment": {"sources": [{"content": "You are a data analyst. Always include visualizations and export results as PDF.", "target": ".agents/AGENTS.md", "type": "inline"}, {"content": "---\nname: slide-maker\ndescription: Create HTML slide decks\n---\n# Slide Maker\n\nWhen asked to create a presentation:\n1. Analyze the input data\n2. Create an HTML slide deck with reveal.js\n3. Save to /workspace/output/slides.html", "target": ".agents/skills/slide-maker/SKILL.md", "type": "inline"}], "type": "remote"}} + responses: + default: + application/json: {"base_agent": "antigravity-preview-09-2026", "base_environment": "env_abc123", "id": "my-data-analyst-abc123", "system_instruction": "You are a data analyst. Use the template at /workspace/template.py for all reports."} + CreateCredential: + speakeasy-default-create-credential: + parameters: + path: + api_version: "" + requestBody: + application/json: {"id": "", "token": "", "type": "bearer_token"} + responses: + "200": + application/json: {"id": ""} + default: + application/json: {"id": ""} + CreateEnvironment: + speakeasy-default-create-environment: + parameters: + path: + api_version: "" + requestBody: + application/json: {"network": {"allowlist": [{"domain": "github.com", "transform": [{"Authorization": "Bearer your-token"}]}, {"domain": "*.googleapis.com"}]}} + responses: + default: + application/json: {"id": "", "network": {"allowlist": [{"domain": "github.com", "transform": [{"Authorization": "Bearer your-token"}]}, {"domain": "*.googleapis.com"}]}} + create: + parameters: + path: + api_version: "" + requestBody: + application/json: {"network": {"allowlist": [{"domain": "github.com", "transform": [{"Authorization": "Bearer your-token"}]}, {"domain": "*.googleapis.com"}]}} + responses: + default: + application/json: {"created": "2026-08-19T00:00:00Z", "id": "env_abc123", "last_accessed": "2026-08-19T00:00:00Z", "sources": [{"content": "print('Hello, World!')", "target": "main.py", "type": "inline"}], "status": "active", "updated": "2026-08-19T00:00:00Z"} + CreateInteraction: + simple: + parameters: + path: + api_version: "" + requestBody: + application/json: {"environment": {"sources": [{"content": "You are a data analyst. Always include visualizations and export results as PDF.", "target": ".agents/AGENTS.md", "type": "inline"}, {"content": "---\nname: slide-maker\ndescription: Create HTML slide decks\n---\n# Slide Maker\n\nWhen asked to create a presentation:\n1. Analyze the input data\n2. Create an HTML slide deck with reveal.js\n3. Save to /workspace/output/slides.html", "target": ".agents/skills/slide-maker/SKILL.md", "type": "inline"}], "type": "remote"}, "generation_config": {"tool_choice": {"allowed_tools": {"mode": "any", "tools": ["my_tool"]}}}, "input": "{\"type\":\"VideoContent\"}", "model": "lyria-3-clip-preview", "response_format": {"0": {"type": "text", "mime_type": "application/json"}}} + responses: + "200": + application/json: {"created": "2025-11-26T12:25:15Z", "id": "v1_ChdPU0F4YWFtNkFwS2kxZThQZ05lbXdROBIXT1NBeGFhbTZBcEtpMWU4UGdOZW13UTg", "model": "gemini-3.6-flash", "status": "completed", "steps": [{"content": [{"text": "Hello! I'm functioning perfectly and ready to assist you.\n\nHow are you doing today?", "type": "text"}], "type": "model_output"}], "updated": "2025-11-26T12:25:15Z", "usage": {"input_tokens_by_modality": [{"modality": "text", "tokens": 7}], "total_cached_tokens": 0, "total_input_tokens": 7, "total_output_tokens": 20, "total_thought_tokens": 22, "total_tokens": 49, "total_tool_use_tokens": 0}} + multi_turn: + parameters: + path: + api_version: "" + requestBody: + application/json: {"environment": {"sources": [{"content": "You are a data analyst. Always include visualizations and export results as PDF.", "target": ".agents/AGENTS.md", "type": "inline"}, {"content": "---\nname: slide-maker\ndescription: Create HTML slide decks\n---\n# Slide Maker\n\nWhen asked to create a presentation:\n1. Analyze the input data\n2. Create an HTML slide deck with reveal.js\n3. Save to /workspace/output/slides.html", "target": ".agents/skills/slide-maker/SKILL.md", "type": "inline"}], "type": "remote"}, "generation_config": {"tool_choice": {"allowed_tools": {"mode": "any", "tools": ["my_tool"]}}}, "input": "{\"type\":\"VideoContent\"}", "model": "lyria-3-clip-preview", "response_format": {"0": {"type": "text", "mime_type": "application/json"}}} + responses: + "200": + application/json: {"created": "2025-11-26T12:22:47Z", "id": "v1_ChdPU0F4YWFtNkFwS2kxZThQZ05lbXdROBIXT1NBeGFhbTZBcEtpMWU4UGdOZW13UTg", "model": "gemini-3.6-flash", "status": "completed", "steps": [{"content": [{"text": "The capital of France is Paris.", "type": "text"}], "type": "model_output"}], "updated": "2025-11-26T12:22:47Z", "usage": {"input_tokens_by_modality": [{"modality": "text", "tokens": 50}], "total_cached_tokens": 0, "total_input_tokens": 50, "total_output_tokens": 10, "total_thought_tokens": 0, "total_tokens": 60, "total_tool_use_tokens": 0}} + multimodal_image: + parameters: + path: + api_version: "" + requestBody: + application/json: {"environment": {"type": "remote"}, "generation_config": {"tool_choice": {"allowed_tools": {"mode": "any", "tools": ["my_tool"]}}}, "input": "", "model": "lyria-3-clip-preview", "response_format": {"0": {"type": "text", "mime_type": "application/json"}}} + responses: + "200": + application/json: {"created": "2025-11-26T12:22:47Z", "id": "v1_ChdPU0F4YWFtNkFwS2kxZThQZ05lbXdROBIXT1NBeGFhbTZBcEtpMWU4UGdOZW13UTg", "model": "gemini-3.6-flash", "status": "completed", "steps": [{"content": [{"text": "A white humanoid robot with glowing blue eyes stands holding a red skateboard.", "type": "text"}], "type": "model_output"}], "updated": "2025-11-26T12:22:47Z", "usage": {"input_tokens_by_modality": [{"modality": "text", "tokens": 10}, {"modality": "image", "tokens": 258}], "total_cached_tokens": 0, "total_input_tokens": 268, "total_output_tokens": 20, "total_thought_tokens": 0, "total_tokens": 288, "total_tool_use_tokens": 0}} + function_calling: + parameters: + path: + api_version: "" + requestBody: + application/json: {"agent": "deep-research-max-preview-04-2026", "environment": "", "input": "{\"type\":\"VideoContent\"}", "response_format": {"0": {"type": "text", "mime_type": "application/json"}}} + responses: + "200": + application/json: {"created": "2025-11-26T12:22:47Z", "id": "v1_ChdPU0F4YWFtNkFwS2kxZThQZ05lbXdROBIXT1NBeGFhbTZBcEtpMWU4UGdOZW13UTg", "model": "gemini-3.6-flash", "status": "requires_action", "steps": [{"arguments": {"location": "Boston, MA"}, "id": "gth23981", "name": "get_weather", "type": "function_call"}], "updated": "2025-11-26T12:22:47Z", "usage": {"input_tokens_by_modality": [{"modality": "text", "tokens": 100}], "total_cached_tokens": 0, "total_input_tokens": 100, "total_output_tokens": 25, "total_thought_tokens": 0, "total_tokens": 125, "total_tool_use_tokens": 50}} + deep_research: + parameters: + path: + api_version: "" + requestBody: + application/json: {"environment": {"type": "remote"}, "generation_config": {"tool_choice": {"allowed_tools": {"mode": "any", "tools": ["my_tool"]}}}, "input": "", "model": "lyria-3-clip-preview", "response_format": {"0": {"type": "text", "mime_type": "application/json"}}} + responses: + "200": + application/json: {"agent": "deep-research-preview-04-2026", "created": "2025-11-26T12:22:47Z", "id": "v1_ChdPU0F4YWFtNkFwS2kxZThQZ05lbXdROBIXT1NBeGFhbTZBcEtpMWU4UGdOZW13UTg", "status": "completed", "steps": [{"content": [{"text": "Here is a comprehensive research report on the current state of cancer research...", "type": "text"}], "type": "model_output"}], "updated": "2025-11-26T12:22:47Z", "usage": {"input_tokens_by_modality": [{"modality": "text", "tokens": 20}], "total_cached_tokens": 0, "total_input_tokens": 20, "total_output_tokens": 1000, "total_thought_tokens": 500, "total_tokens": 1520, "total_tool_use_tokens": 0}} + antigravity: + parameters: + path: + api_version: "" + requestBody: + application/json: {"agent": "deep-research-max-preview-04-2026", "environment": "", "input": "{\"type\":\"VideoContent\"}", "response_format": {"0": {"type": "text", "mime_type": "application/json"}}} + responses: + "200": + application/json: {"agent": "antigravity-preview-09-2026", "created": "2025-11-26T12:22:47Z", "environment_id": "env_abc123", "id": "v1_ChdPU0F4YWFtNkFwS2kxZThQZ05lbXdROBIXT1NBeGFhbTZBcEtpMWU4UGdOZW13UTg", "status": "completed", "steps": [{"content": [{"text": "I've summarized the top 5 Hacker News stories and saved the results to /workspace/summary.md.", "type": "text"}], "type": "model_output"}], "updated": "2025-11-26T12:22:47Z", "usage": {"input_tokens_by_modality": [{"modality": "text", "tokens": 50}], "total_cached_tokens": 0, "total_input_tokens": 50, "total_output_tokens": 500, "total_thought_tokens": 200, "total_tokens": 750, "total_tool_use_tokens": 0}} + reuse_env: + parameters: + path: + api_version: "" + requestBody: + application/json: {"agent": "deep-research-max-preview-04-2026", "environment": {"type": "remote"}, "input": "", "response_format": {"0": {"type": "text", "mime_type": "application/json"}}} + responses: + "200": + application/json: {"agent": "antigravity-preview-09-2026", "created": "2025-11-26T12:23:00Z", "environment_id": "env_abc123", "id": "v1_Chd2ZTJhYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkwMTIzNDU2Nzg", "status": "completed", "steps": [{"content": [{"text": "I've updated /workspace/hello.py to accept a name argument and greet the user.", "type": "text"}], "type": "model_output"}], "updated": "2025-11-26T12:23:00Z", "usage": {"input_tokens_by_modality": [{"modality": "text", "tokens": 80}], "total_cached_tokens": 0, "total_input_tokens": 80, "total_output_tokens": 200, "total_thought_tokens": 100, "total_tokens": 380, "total_tool_use_tokens": 0}} + CreateTrigger: + speakeasy-default-create-trigger: + parameters: + path: + api_version: "" + requestBody: + application/json: {"interaction": {"agent": "deep-research-max-preview-04-2026", "environment": {"sources": [{"content": "You are a data analyst. Always include visualizations and export results as PDF.", "target": ".agents/AGENTS.md", "type": "inline"}, {"content": "---\nname: slide-maker\ndescription: Create HTML slide decks\n---\n# Slide Maker\n\nWhen asked to create a presentation:\n1. Analyze the input data\n2. Create an HTML slide deck with reveal.js\n3. Save to /workspace/output/slides.html", "target": ".agents/skills/slide-maker/SKILL.md", "type": "inline"}], "type": "remote"}, "input": [{"data": "BASE64_ENCODED_AUDIO", "mime_type": "audio/wav", "type": "audio"}], "response_format": {}}, "schedule": "", "time_zone": "Asia/Aqtau"} + responses: + "200": + application/json: {"id": "", "interaction": {"created": "2025-12-04T15:01:45Z", "id": "v1_ChdXS0l4YWZXTk9xbk0xZThQczhEcmlROBIXV0tJeGFmV05PcW5NMWU4UHM4RHJpUTg", "model": "gemini-3.6-flash", "status": "completed", "steps": [{"content": [{"text": "Hello! I'm doing well, functioning as expected. Thank you for asking! How are you doing today?", "type": "text"}], "type": "model_output"}], "updated": "2025-12-04T15:01:45Z", "usage": {"input_tokens_by_modality": [{"modality": "text", "tokens": 7}], "total_cached_tokens": 0, "total_input_tokens": 7, "total_output_tokens": 23, "total_thought_tokens": 49, "total_tokens": 79, "total_tool_use_tokens": 0}}, "schedule": "", "time_zone": "Africa/Lubumbashi"} + default: + application/json: {"id": "", "interaction": {"agent": "deep-research-max-preview-04-2026", "environment": {"sources": [{"content": "You are a data analyst. Always include visualizations and export results as PDF.", "target": ".agents/AGENTS.md", "type": "inline"}, {"content": "---\nname: slide-maker\ndescription: Create HTML slide decks\n---\n# Slide Maker\n\nWhen asked to create a presentation:\n1. Analyze the input data\n2. Create an HTML slide deck with reveal.js\n3. Save to /workspace/output/slides.html", "target": ".agents/skills/slide-maker/SKILL.md", "type": "inline"}], "type": "remote"}, "input": [{"data": "BASE64_ENCODED_AUDIO", "mime_type": "audio/wav", "type": "audio"}], "response_format": {}}, "schedule": "", "time_zone": "Asia/Aqtau"} + CreateVoice: + speakeasy-default-create-voice: + parameters: + path: + api_version: "" + requestBody: + application/json: {"voice": {"type": "prebuilt"}} + responses: + default: + application/json: {"type": "prompted"} + CreateWebhook: + speakeasy-default-create-webhook: + parameters: + path: + api_version: "" + requestBody: + application/json: {"subscribed_events": ["interaction.completed", "batch.expired"], "uri": "https://insidious-farm.org/"} + responses: + default: + application/json: {"subscribed_events": ["batch.failed", "batch.failed"], "uri": "https://insidious-farm.org/"} + DeleteAgent: + speakeasy-default-delete-agent: + parameters: + path: + api_version: "" + id: "" + agentsId: "" + responses: + default: + application/json: {} + delete: + parameters: + path: + api_version: "" + id: "" + agentsId: "" + responses: + default: + application/json: {} + DeleteCredential: + speakeasy-default-delete-credential: + parameters: + path: + api_version: "" + id: "" + responses: + "200": + application/json: {} + default: + application/json: {} + DeleteEnvironment: + speakeasy-default-delete-environment: + parameters: + path: + api_version: "" + id: "" + responses: + default: + application/json: {} + delete: + parameters: + path: + api_version: "" + id: "" + responses: + default: + application/json: {} + DeleteTrigger: + speakeasy-default-delete-trigger: + parameters: + path: + api_version: "" + id: "" + responses: + "200": + application/json: {} + default: + application/json: {} + DeleteVoice: + speakeasy-default-delete-voice: + parameters: + path: + api_version: "" + voicesId: "" + responses: + default: + application/json: {} + DeleteWebhook: + speakeasy-default-delete-webhook: + parameters: + path: + api_version: "" + id: "" + responses: + default: + application/json: {} + GetAgent: + speakeasy-default-get-agent: + parameters: + path: + api_version: "" + id: "" + agentsId: "" + responses: + default: + application/json: {"base_environment": {"sources": [{"content": "You are a data analyst. Always include visualizations and export results as PDF.", "target": ".agents/AGENTS.md", "type": "inline"}, {"content": "---\nname: slide-maker\ndescription: Create HTML slide decks\n---\n# Slide Maker\n\nWhen asked to create a presentation:\n1. Analyze the input data\n2. Create an HTML slide deck with reveal.js\n3. Save to /workspace/output/slides.html", "target": ".agents/skills/slide-maker/SKILL.md", "type": "inline"}], "type": "remote"}} + get: + parameters: + path: + api_version: "" + id: "" + agentsId: "" + responses: + default: + application/json: {"id": "ag_abc123", "system_instruction": "You are a helpful research assistant.", "tools": [{"type": "google_search"}]} + GetCredential: + speakeasy-default-get-credential: + parameters: + path: + api_version: "" + id: "" + responses: + "200": + application/json: {"id": ""} + default: + application/json: {"id": ""} + GetEnvironment: + speakeasy-default-get-environment: + parameters: + path: + api_version: "" + id: "" + responses: + default: + application/json: {"id": "", "network": {"allowlist": [{"domain": "github.com", "transform": [{"Authorization": "Bearer your-token"}]}, {"domain": "*.googleapis.com"}]}} + get: + parameters: + path: + api_version: "" + id: "" + responses: + default: + application/json: {"created": "2026-08-19T00:00:00Z", "id": "env_abc123", "last_accessed": "2026-08-19T00:00:00Z", "sources": [{"content": "print('Hello, World!')", "target": "main.py", "type": "inline"}], "status": "active", "updated": "2026-08-19T00:00:00Z"} + GetEnvironmentFiles: + speakeasy-default-get-environment-files: + parameters: + path: + api_version: "" + environment: "" + path: "/var/mail" + responses: + "200": + application/json: {} + download_file: + parameters: + path: + api_version: "" + environment: "" + path: "/var/mail" + responses: + "200": + application/json: {"files": [{"mime_type": "text/x-python", "name": "main.py", "path": "main.py", "size_bytes": "22", "type": "file"}]} + get_file: + parameters: + path: + api_version: "" + environment: "" + path: "/boot" + responses: + "200": + application/json: {"files": [{"created": "2026-08-19T00:00:00Z", "mime_type": "text/x-python", "modified": "2026-08-19T00:00:00Z", "name": "main.py", "path": "main.py", "size_bytes": "22", "type": "file"}]} + list_files: + parameters: + path: + api_version: "" + environment: "" + path: "/Library" + responses: + "200": + application/json: {"files": [{"created": "2026-08-19T00:00:00Z", "modified": "2026-08-19T00:00:00Z", "name": "src", "path": "src", "type": "directory"}, {"created": "2026-08-19T00:00:00Z", "mime_type": "text/x-python", "modified": "2026-08-19T00:00:00Z", "name": "main.py", "path": "main.py", "size_bytes": "22", "type": "file"}]} + GetTrigger: + speakeasy-default-get-trigger: + parameters: + path: + api_version: "" + id: "" + responses: + "200": + application/json: {"id": "", "interaction": {"created": "2025-12-04T15:01:45Z", "id": "v1_ChdXS0l4YWZXTk9xbk0xZThQczhEcmlROBIXV0tJeGFmV05PcW5NMWU4UHM4RHJpUTg", "model": "gemini-3.6-flash", "status": "completed", "steps": [{"content": [{"text": "Hello! I'm doing well, functioning as expected. Thank you for asking! How are you doing today?", "type": "text"}], "type": "model_output"}], "updated": "2025-12-04T15:01:45Z", "usage": {"input_tokens_by_modality": [{"modality": "text", "tokens": 7}], "total_cached_tokens": 0, "total_input_tokens": 7, "total_output_tokens": 23, "total_thought_tokens": 49, "total_tokens": 79, "total_tool_use_tokens": 0}}, "schedule": "", "time_zone": "Indian/Christmas"} + default: + application/json: {"id": "", "interaction": {"agent": "antigravity-preview-09-2026", "environment": {"sources": [{"content": "You are a data analyst. Always include visualizations and export results as PDF.", "target": ".agents/AGENTS.md", "type": "inline"}, {"content": "---\nname: slide-maker\ndescription: Create HTML slide decks\n---\n# Slide Maker\n\nWhen asked to create a presentation:\n1. Analyze the input data\n2. Create an HTML slide deck with reveal.js\n3. Save to /workspace/output/slides.html", "target": ".agents/skills/slide-maker/SKILL.md", "type": "inline"}], "type": "remote"}, "input": "", "response_format": {"type": "audio", "sample_rate": 24000}}, "schedule": "", "time_zone": "Indian/Christmas"} + GetVoice: + speakeasy-default-get-voice: + parameters: + path: + api_version: "" + voicesId: "" + responses: + default: + application/json: {"type": "prebuilt"} + GetWebhook: + speakeasy-default-get-webhook: + parameters: + path: + api_version: "" + id: "" + responses: + default: + application/json: {"subscribed_events": ["batch.failed"], "uri": "https://repentant-goodwill.net/"} + ListAgents: + speakeasy-default-list-agents: + parameters: + path: + api_version: "" + responses: + default: + application/json: {"agents": [{"base_environment": {"sources": [{"content": "You are a data analyst. Always include visualizations and export results as PDF.", "target": ".agents/AGENTS.md", "type": "inline"}, {"content": "---\nname: slide-maker\ndescription: Create HTML slide decks\n---\n# Slide Maker\n\nWhen asked to create a presentation:\n1. Analyze the input data\n2. Create an HTML slide deck with reveal.js\n3. Save to /workspace/output/slides.html", "target": ".agents/skills/slide-maker/SKILL.md", "type": "inline"}], "type": "remote"}}]} + list: + parameters: + path: + api_version: "" + responses: + default: + application/json: {"agents": [{"base_agent": "antigravity-preview-09-2026", "description": "A helpful research assistant.", "id": "research-assistant-abc123", "system_instruction": "You are a helpful research assistant.", "tools": [{"type": "google_search"}]}]} + ListCredentials: + speakeasy-default-list-credentials: + parameters: + path: + api_version: "" + responses: + "200": + application/json: {} + default: + application/json: {} + ListEnvironments: + speakeasy-default-list-environments: + parameters: + path: + api_version: "" + responses: + default: + application/json: {"environments": [{"id": "", "network": {"allowlist": [{"domain": "github.com", "transform": [{"Authorization": "Bearer your-token"}]}, {"domain": "*.googleapis.com"}]}}]} + list: + parameters: + path: + api_version: "" + responses: + default: + application/json: {"environments": [{"created": "2026-08-19T00:00:00Z", "id": "env_abc123", "last_accessed": "2026-08-19T00:00:00Z", "status": "active", "updated": "2026-08-19T00:00:00Z"}]} + ListTriggerExecutions: + speakeasy-default-list-trigger-executions: + parameters: + path: + api_version: "" + trigger_id: "" + triggerId: "" + responses: + "200": + application/json: {} + default: + application/json: {} + ListTriggers: + speakeasy-default-list-triggers: + parameters: + path: + api_version: "" + responses: + "200": + application/json: {"triggers": [{"id": "", "interaction": {"created": "2025-12-04T15:01:45Z", "id": "v1_ChdXS0l4YWZXTk9xbk0xZThQczhEcmlROBIXV0tJeGFmV05PcW5NMWU4UHM4RHJpUTg", "model": "gemini-3.5-flash", "status": "completed", "steps": [{"content": [{"text": "Hello! I'm doing well, functioning as expected. Thank you for asking! How are you doing today?", "type": "text"}], "type": "model_output"}], "updated": "2025-12-04T15:01:45Z", "usage": {"input_tokens_by_modality": [{"modality": "text", "tokens": 7}], "total_cached_tokens": 0, "total_input_tokens": 7, "total_output_tokens": 23, "total_thought_tokens": 49, "total_tokens": 79, "total_tool_use_tokens": 0}}, "schedule": "", "time_zone": "America/Argentina/San_Luis"}]} + default: + application/json: {"triggers": [{"id": "", "interaction": {"agent": "deep-research-pro-preview-12-2025", "environment": {"sources": [{"content": "You are a data analyst. Always include visualizations and export results as PDF.", "target": ".agents/AGENTS.md", "type": "inline"}, {"content": "---\nname: slide-maker\ndescription: Create HTML slide decks\n---\n# Slide Maker\n\nWhen asked to create a presentation:\n1. Analyze the input data\n2. Create an HTML slide deck with reveal.js\n3. Save to /workspace/output/slides.html", "target": ".agents/skills/slide-maker/SKILL.md", "type": "inline"}], "type": "remote"}, "input": "", "response_format": {"type": "audio", "sample_rate": 24000}}, "schedule": "", "time_zone": "America/Miquelon"}]} + ListVoices: + speakeasy-default-list-voices: + parameters: + path: + api_version: "" + responses: + default: + application/json: {} + ListWebhooks: + speakeasy-default-list-webhooks: + parameters: + path: + api_version: "" + responses: + default: + application/json: {} + PingWebhook: + speakeasy-default-ping-webhook: + parameters: + path: + api_version: "" + id: "" + requestBody: + application/json: {} + responses: + default: + application/json: {} + RotateSigningSecret: + speakeasy-default-rotate-signing-secret: + parameters: + path: + api_version: "" + id: "" + requestBody: + application/json: {} + responses: + default: + application/json: {} + RunTrigger: + speakeasy-default-run-trigger: + parameters: + path: + api_version: "" + trigger_id: "" + triggerId: "" + responses: + "200": + application/json: {"id": "", "trigger_id": ""} + default: + application/json: {"id": "", "trigger_id": ""} + StartEnvironmentFileUpload: + speakeasy-default-start-environment-file-upload: + parameters: + path: + api_version: "" + environment: "" + path: "/lib" + header: + X-Goog-Upload-Command: "start" + X-Goog-Upload-Header-Content-Length: 668811 + X-Goog-Upload-Header-Content-Type: "" + X-Goog-Upload-Protocol: "resumable" + UpdateCredential: + speakeasy-default-update-credential: + parameters: + path: + api_version: "" + id: "" + requestBody: + application/json: {"type": "environment_variable"} + responses: + "200": + application/json: {"id": ""} + default: + application/json: {"id": ""} + UpdateTrigger: + speakeasy-default-update-trigger: + parameters: + path: + api_version: "" + id: "" + requestBody: + application/json: {} + responses: + "200": + application/json: {"id": "", "interaction": {"created": "2025-12-04T15:01:45Z", "id": "v1_ChdXS0l4YWZXTk9xbk0xZThQczhEcmlROBIXV0tJeGFmV05PcW5NMWU4UHM4RHJpUTg", "model": "gemini-3.6-flash", "status": "completed", "steps": [{"content": [{"text": "Hello! I'm doing well, functioning as expected. Thank you for asking! How are you doing today?", "type": "text"}], "type": "model_output"}], "updated": "2025-12-04T15:01:45Z", "usage": {"input_tokens_by_modality": [{"modality": "text", "tokens": 7}], "total_cached_tokens": 0, "total_input_tokens": 7, "total_output_tokens": 23, "total_thought_tokens": 49, "total_tokens": 79, "total_tool_use_tokens": 0}}, "schedule": "", "time_zone": "Asia/Kabul"} + default: + application/json: {"id": "", "interaction": {"agent": "deep-research-max-preview-04-2026", "environment": {"sources": [{"content": "You are a data analyst. Always include visualizations and export results as PDF.", "target": ".agents/AGENTS.md", "type": "inline"}, {"content": "---\nname: slide-maker\ndescription: Create HTML slide decks\n---\n# Slide Maker\n\nWhen asked to create a presentation:\n1. Analyze the input data\n2. Create an HTML slide deck with reveal.js\n3. Save to /workspace/output/slides.html", "target": ".agents/skills/slide-maker/SKILL.md", "type": "inline"}], "type": "remote"}, "input": [{"data": "BASE64_ENCODED_AUDIO", "mime_type": "audio/wav", "type": "audio"}], "response_format": {"type": "audio", "sample_rate": 24000}}, "schedule": "", "time_zone": "Asia/Kabul"} + UpdateWebhook: + speakeasy-default-update-webhook: + parameters: + path: + api_version: "" + id: "" + requestBody: + application/json: {} + responses: + default: + application/json: {"subscribed_events": ["interaction.failed", "video.generated"], "uri": "https://thorny-forage.biz"} + cancelInteractionById: + cancel: + parameters: + path: + id: "" + api_version: "" + interactionsId: "" + responses: + "200": + application/json: {"agent": "deep-research-preview-04-2026", "created": "2026-06-22T04:55:47Z", "id": "v1_ChdVc0E0YXJTYk1zYlV6N0lQcXRXVG1BYxIXVXNBNGFyU2JNc2JVejdJUHF0V1RtQWM", "status": "cancelled", "steps": [{"content": [{"text": "Research the history of the Google TPUs with a focus on 2025 specs.", "type": "text"}], "type": "user_input"}], "updated": "2026-06-22T04:55:47Z"} + speakeasy-default-cancel-interaction-by-id: + parameters: + path: + api_version: "" + interactionsId: "" + responses: + "200": + application/json: {"created": "2025-12-04T15:01:45Z", "id": "v1_ChdXS0l4YWZXTk9xbk0xZThQczhEcmlROBIXV0tJeGFmV05PcW5NMWU4UHM4RHJpUTg", "model": "gemini-3.6-flash", "status": "completed", "steps": [{"content": [{"text": "Hello! I'm doing well, functioning as expected. Thank you for asking! How are you doing today?", "type": "text"}], "type": "model_output"}], "updated": "2025-12-04T15:01:45Z", "usage": {"input_tokens_by_modality": [{"modality": "text", "tokens": 7}], "total_cached_tokens": 0, "total_input_tokens": 7, "total_output_tokens": 23, "total_thought_tokens": 49, "total_tokens": 79, "total_tool_use_tokens": 0}} + 4XX: + application/json: {"error": {}} + 5XX: + application/json: {"error": {}} + deleteInteraction: + delete: + parameters: + path: + id: "" + api_version: "" + responses: + "200": + application/json: {} + speakeasy-default-delete-interaction: + parameters: + path: + id: "" + api_version: "" + interactionsId: "" + responses: + 4XX: + application/json: {"error": {}} + 5XX: + application/json: {"error": {}} + getInteractionById: + get: + parameters: + path: + id: "" + api_version: "" + interactionsId: "" + query: + stream: false + include_input: false + responses: + "200": + application/json: {"created": "2025-11-26T12:25:15Z", "id": "v1_ChdPU0F4YWFtNkFwS2kxZThQZ05lbXdROBIXT1NBeGFhbTZBcEtpMWU4UGdOZW13UTg", "model": "gemini-3.6-flash", "status": "completed", "steps": [{"content": [{"text": "I'm doing great, thank you for asking! How can I help you today?", "type": "text"}], "type": "model_output"}], "updated": "2025-11-26T12:25:15Z"} +examplesVersion: 1.0.2 +generatedTests: + CreateInteraction-simple: "2026-05-19T12:44:20+01:00" + CreateInteraction-multi_turn: "2026-05-19T12:44:20+01:00" + CreateInteraction-multimodal_image: "2026-05-19T12:44:20+01:00" + CreateInteraction-function_calling: "2026-05-19T12:44:20+01:00" + CreateInteraction-deep_research: "2026-05-19T12:44:20+01:00" + getInteractionById-get: "2026-05-19T12:44:20+01:00" + deleteInteraction-delete: "2026-05-19T12:44:20+01:00" + cancelInteractionById-cancel: "2026-05-19T12:44:20+01:00" + CreateInteraction: "2026-05-19T13:03:48+01:00" + getInteractionById: "2026-05-19T13:03:48+01:00" + deleteInteraction: "2026-05-19T13:03:48+01:00" + cancelInteractionById: "2026-05-19T13:03:48+01:00" diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml new file mode 100644 index 0000000000..188e1ac1fb --- /dev/null +++ b/.speakeasy/gen.yaml @@ -0,0 +1,112 @@ +configVersion: 2.0.0 +generation: + sdkClassName: GenAI + maintainOpenAPIOrder: true + usageSnippets: + optionalPropertyRendering: withExample + sdkInitStyle: constructor + useClassNamesForArrayFields: true + fixes: + nameResolutionDec2023: true + nameResolutionFeb2025: true + parameterOrderingFeb2024: true + requestResponseComponentNamesFeb2024: true + securityFeb2025: true + sharedErrorComponentsApr2025: true + sharedNestedComponentsJan2026: true + nameOverrideFeb2026: true + openSingleValueEnumsOct2026: true + auth: + oAuth2ClientCredentialsEnabled: true + oAuth2PasswordEnabled: true + hoistGlobalSecurity: true + inferSSEOverload: true + sdkHooksConfigAccess: true + schemas: + allOfMergeStrategy: shallowMerge + requestBodyFieldName: body + versioningStrategy: manual + mockServer: + disabled: true + persistentEdits: + enabled: never + tests: + generateTests: false + generateNewTests: false + skipResponseBodyAssertions: false + repoSubDirectory: dist/sp_python + repoURL: https://github.com/speakeasy-sdks/genai-next.git +python: + version: 2.4.1-preview.5 + additionalDependencies: + dev: {} + main: + pydantic: ==2.12.5 + allowedRedefinedBuiltins: + - id + - object + - input + - dir + asyncMode: split + authors: + - Google LLC + baseErrorName: GenAiError + bodyVariantOverloads: true + clientServerStatusCodesAsErrors: true + constFieldCasing: normal + defaultErrorName: GenAiDefaultError + description: GenAI Python SDK + durationFormat: false + enableCustomCodeRegions: false + enumFormat: union + envVarPrefix: GOOGLE_GENAI + errorSchemaValidation: false + eventStreamClassNames: + async: AsyncStream + sync: Stream + fixFlags: + asyncPaginationSep2025: true + conflictResistantModelImportsFeb2026: true + responseRequiredSep2024: true + flattenGlobalSecurity: true + flattenRequests: true + flatteningOrder: parameters-first + forwardCompatibleEnumsByDefault: true + forwardCompatibleUnionsByDefault: tagged-only + httpClientLibrary: httpx + imports: + option: openapi + paths: + callbacks: "" + errors: errors + operations: "" + resources: resources + shared: types + webhooks: "" + relative: true + inferUnionDiscriminators: true + inputModelSuffix: input + inputTypedDictSuffix: Param + license: Apache-2.0 + maxMethodParams: 999 + methodArguments: positional-path-with-extras + methodTimeoutArgument: timeout + methodTimeoutUnits: seconds + modelSerializationMethods: true + moduleName: google.genai + multipartArrayFormat: standard + optionalDependencies: {} + outputModelSuffix: output + packageManager: uv + packageName: google-genai + preApplyUnionDiscriminators: true + preserveUnknownFields: true + pytestFilterWarnings: [] + pytestTimeout: 0 + rawResponseHelpers: true + responseFormat: flat + responseSchemaValidation: lenient + sseFlatResponse: true + templateVersion: v2 + useAsyncHooks: true + uuidFormat: false diff --git a/.speakeasy/openapi.json b/.speakeasy/openapi.json new file mode 100644 index 0000000000..9ba68db421 --- /dev/null +++ b/.speakeasy/openapi.json @@ -0,0 +1,10746 @@ +{ + "openapi": "3.0.3", + "info": { + "title": "Gemini API", + "description": "The Gemini Interactions API allows developers to build generative AI applications using Gemini models. Gemini is our most capable model, built from the ground up to be multimodal. It can generalize and seamlessly understand, operate across, and combine different types of information including language, images, audio, video, and code. You can use the Gemini API for use cases like reasoning across text and images, content generation, dialogue agents, summarization and classification systems, and more.", + "version": "v1beta", + "x-google-revision": "0" + }, + "servers": [ + { + "url": "https://generativelanguage.googleapis.com", + "description": "Global Endpoint" + } + ], + "paths": { + "/upload/{api_version}/environments/{environment}/files/{path}": { + "parameters": [ + { + "$ref": "#/components/parameters/api_version" + }, + { + "name": "environment", + "in": "path", + "description": "The ID of the environment that owns the destination file.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "path", + "in": "path", + "description": "The relative destination path inside the environment workspace.", + "required": true, + "schema": { + "type": "string" + }, + "x-speakeasy-param-encoding-override": "allowReserved" + } + ], + "put": { + "operationId": "StartEnvironmentFileUpload", + "description": "Starts a resumable upload session for a file in an environment workspace.\nUpload the file bytes to the URL returned in the `X-Goog-Upload-URL`\nresponse header, using the resumable upload protocol.\n", + "parameters": [ + { + "$ref": "#/components/parameters/EnvironmentFileExtract" + }, + { + "$ref": "#/components/parameters/EnvironmentFileOverwrite" + }, + { + "$ref": "#/components/parameters/EnvironmentFileUploadCommand" + }, + { + "$ref": "#/components/parameters/EnvironmentFileUploadContentLength" + }, + { + "$ref": "#/components/parameters/EnvironmentFileUploadContentType" + }, + { + "$ref": "#/components/parameters/EnvironmentFileUploadProtocol" + } + ], + "responses": { + "200": { + "description": "Upload session created successfully. Send the file bytes to the returned upload URL.", + "headers": { + "X-Goog-Upload-URL": { + "$ref": "#/components/headers/EnvironmentFileUploadUrl" + } + } + }, + "4XX": { + "description": "The upload session request failed with a client error." + }, + "5XX": { + "description": "The upload session request failed with a server error." + } + }, + "summary": "Start an environment file upload", + "x-speakeasy-group": "environments._internal", + "x-speakeasy-name-override": "startUpload" + } + }, + "/{api_version}/agents": { + "parameters": [ + { + "$ref": "#/components/parameters/api_version" + } + ], + "get": { + "operationId": "ListAgents", + "description": "Lists all Agents.", + "parameters": [ + { + "name": "page_size", + "in": "query", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "name": "page_token", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "parent", + "in": "query", + "description": "Required. The parent resource to list agents from.\nFormat: `projects/{project}/locations/{location}`", + "schema": { + "type": "string" + } + } + ], + "responses": { + "default": { + "description": "Successful operation", + "content": { + "application/json": { + "examples": { + "list": { + "summary": "List Agents", + "value": { + "agents": [ + { + "description": "A helpful research assistant.", + "base_agent": "antigravity-preview-09-2026", + "id": "research-assistant-abc123", + "system_instruction": "You are a helpful research assistant.", + "tools": [ + { + "type": "google_search" + } + ] + } + ] + } + } + }, + "schema": { + "$ref": "#/components/schemas/ListAgentsResponse" + } + } + } + } + }, + "tags": [ + "agents" + ], + "x-speakeasy-exports": [ + { + "name": "AgentListParams", + "group": "agents", + "representation": "input" + } + ], + "x-speakeasy-name-override": "list" + }, + "post": { + "operationId": "CreateAgent", + "description": "Creates a new Agent (Typed version for SDK).", + "parameters": [], + "requestBody": { + "description": "Required. The request body.", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Agent" + } + } + } + }, + "responses": { + "default": { + "description": "Successful operation", + "content": { + "application/json": { + "examples": { + "create": { + "summary": "Create Agent", + "value": { + "description": "A helpful research assistant.", + "base_agent": "antigravity-preview-09-2026", + "base_environment": "remote", + "id": "research-assistant-abc123", + "system_instruction": "You are a helpful research assistant.", + "tools": [ + { + "type": "google_search" + } + ] + } + }, + "fork_from_env": { + "summary": "Agent Forked from Environment", + "value": { + "base_agent": "antigravity-preview-09-2026", + "base_environment": "env_abc123", + "id": "my-data-analyst-abc123", + "system_instruction": "You are a data analyst. Use the template at /workspace/template.py for all reports." + } + }, + "with_sources": { + "summary": "Agent with Sources", + "value": { + "base_agent": "antigravity-preview-09-2026", + "base_environment": { + "type": "remote", + "sources": [ + { + "type": "inline", + "content": "Always use matplotlib for charts. Include a summary table in every report.", + "target": ".agents/AGENTS.md" + }, + { + "type": "repository", + "source": "https://github.com/my-org/analysis-templates", + "target": "/workspace/templates" + } + ] + }, + "id": "data-analyst-abc123", + "system_instruction": "You are a data analyst. Always include visualizations and export results as PDF." + } + } + }, + "schema": { + "$ref": "#/components/schemas/Agent" + } + } + } + } + }, + "tags": [ + "agents" + ], + "x-speakeasy-exports": [ + { + "name": "AgentCreateParams", + "group": "agents", + "representation": "input" + } + ], + "x-speakeasy-name-override": "create" + } + }, + "/{api_version}/agents/{agentsId}": { + "parameters": [ + { + "$ref": "#/components/parameters/api_version" + } + ], + "delete": { + "operationId": "DeleteAgent", + "description": "Deletes an Agent.", + "parameters": [ + { + "name": "agentsId", + "in": "path", + "description": "Required. The name of the agent to delete.", + "required": true, + "schema": { + "type": "string" + }, + "x-speakeasy-name-override": "id" + } + ], + "responses": { + "default": { + "description": "Successful operation", + "content": { + "application/json": { + "examples": { + "delete": { + "summary": "Delete Agent", + "value": {} + } + }, + "schema": { + "$ref": "#/components/schemas/Empty" + } + } + } + } + }, + "tags": [ + "agents" + ], + "x-speakeasy-exports": [ + { + "name": "AgentDeleteParams", + "group": "agents", + "representation": "input" + } + ], + "x-speakeasy-name-override": "delete" + }, + "get": { + "operationId": "GetAgent", + "description": "Gets a specific Agent.", + "parameters": [ + { + "name": "agentsId", + "in": "path", + "description": "Required. The name of the agent to retrieve.", + "required": true, + "schema": { + "type": "string" + }, + "x-speakeasy-name-override": "id" + } + ], + "responses": { + "default": { + "description": "Successful operation", + "content": { + "application/json": { + "examples": { + "get": { + "summary": "Get Agent", + "value": { + "created": "2025-11-26T12:25:15Z", + "display_name": "My Research Agent", + "id": "ag_abc123", + "object": "agent", + "system_instruction": "You are a helpful research assistant.", + "tools": [ + { + "type": "google_search" + } + ], + "updated": "2025-11-26T12:25:15Z" + } + } + }, + "schema": { + "$ref": "#/components/schemas/Agent" + } + } + } + } + }, + "tags": [ + "agents" + ], + "x-speakeasy-exports": [ + { + "name": "AgentGetParams", + "group": "agents", + "representation": "input" + } + ], + "x-speakeasy-name-override": "get" + } + }, + "/{api_version}/credentials": { + "parameters": [ + { + "$ref": "#/components/parameters/api_version" + } + ], + "get": { + "operationId": "ListCredentials", + "description": "Lists credentials.", + "parameters": [ + { + "name": "page_size", + "in": "query", + "description": "Optional. Maximum number of credentials to return.", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "name": "page_token", + "in": "query", + "description": "Optional. Pagination token.", + "schema": { + "type": "string" + } + } + ], + "responses": { + "default": { + "description": "Successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ListCredentialsResponse" + } + } + } + } + }, + "tags": [ + "credentials" + ], + "x-speakeasy-exports": [ + { + "name": "CredentialListParams", + "group": "credentials", + "representation": "input" + } + ], + "x-speakeasy-name-override": "list" + }, + "post": { + "operationId": "CreateCredential", + "description": "Creates a new credential.", + "parameters": [], + "requestBody": { + "description": "Required. The request body.", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CredentialCreateParams" + } + } + } + }, + "responses": { + "default": { + "description": "Successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Credential" + } + } + } + } + }, + "tags": [ + "credentials" + ], + "x-speakeasy-exports": [ + { + "name": "CredentialCreateParams", + "group": "credentials", + "representation": "input" + } + ], + "x-speakeasy-name-override": "create" + } + }, + "/{api_version}/credentials/{id}": { + "parameters": [ + { + "$ref": "#/components/parameters/api_version" + } + ], + "delete": { + "operationId": "DeleteCredential", + "description": "Deletes a credential.", + "parameters": [ + { + "name": "id", + "in": "path", + "description": "Required. Resource ID segment making up resource `name`. It identifies the resource\nwithin its parent collection as described in https://google.aip.dev/122.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "default": { + "description": "Successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Empty" + } + } + } + } + }, + "tags": [ + "credentials" + ], + "x-speakeasy-exports": [ + { + "name": "CredentialDeleteParams", + "group": "credentials", + "representation": "input" + } + ], + "x-speakeasy-name-override": "delete" + }, + "get": { + "operationId": "GetCredential", + "description": "Gets a credential by ID.", + "parameters": [ + { + "name": "id", + "in": "path", + "description": "Required. Resource ID segment making up resource `name`. It identifies the resource\nwithin its parent collection as described in https://google.aip.dev/122.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "default": { + "description": "Successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Credential" + } + } + } + } + }, + "tags": [ + "credentials" + ], + "x-speakeasy-exports": [ + { + "name": "CredentialGetParams", + "group": "credentials", + "representation": "input" + } + ], + "x-speakeasy-name-override": "get" + }, + "patch": { + "operationId": "UpdateCredential", + "description": "Updates a credential.", + "parameters": [ + { + "name": "id", + "in": "path", + "description": "Required. Resource ID segment making up resource `name`. It identifies the resource\nwithin its parent collection as described in https://google.aip.dev/122.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "update_mask", + "in": "query", + "description": "Optional. The list of fields to update.", + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "description": "Required. The request body.", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CredentialUpdateParams" + } + } + } + }, + "responses": { + "default": { + "description": "Successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Credential" + } + } + } + } + }, + "tags": [ + "credentials" + ], + "x-speakeasy-exports": [ + { + "name": "CredentialUpdate", + "group": "credentials", + "representation": "input" + } + ], + "x-speakeasy-name-override": "update" + } + }, + "/{api_version}/environments": { + "parameters": [ + { + "$ref": "#/components/parameters/api_version" + } + ], + "get": { + "operationId": "ListEnvironments", + "description": "Lists environments.", + "parameters": [ + { + "name": "page_size", + "in": "query", + "description": "Optional. Maximum number of environments to return.\nIf unspecified, defaults to 50. Maximum is 1000.", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "name": "page_token", + "in": "query", + "description": "Optional. Pagination token.", + "schema": { + "type": "string" + } + } + ], + "responses": { + "default": { + "description": "Successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ListEnvironmentsResponse" + } + } + } + } + }, + "tags": [ + "environments" + ] + }, + "post": { + "operationId": "CreateEnvironment", + "description": "Creates an environment.", + "parameters": [], + "requestBody": { + "description": "Required. The request body.", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateEnvironmentRequest" + } + } + } + }, + "responses": { + "default": { + "description": "Successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Environment" + } + } + } + } + }, + "tags": [ + "environments" + ] + } + }, + "/{api_version}/environments/{environment}/files/{path}": { + "parameters": [ + { + "$ref": "#/components/parameters/api_version" + }, + { + "name": "environment", + "in": "path", + "description": "The ID of the environment whose snapshot to read.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "path", + "in": "path", + "description": "Path of the file or directory inside the environment workspace, relative to its root (e.g. src).", + "required": true, + "schema": { + "type": "string" + }, + "x-speakeasy-param-encoding-override": "allowReserved" + } + ], + "get": { + "operationId": "GetEnvironmentFiles", + "description": "Retrieves file metadata or directory contents from an environment's snapshot. To download file content, use the download URL returned in the response.", + "parameters": [ + { + "name": "page_size", + "in": "query", + "description": "Optional. Maximum number of entries to return per page (for directory listing).", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "name": "page_token", + "in": "query", + "description": "Optional. Pagination token for directory listing.", + "schema": { + "type": "string" + } + }, + { + "name": "recursive", + "in": "query", + "description": "Optional. If true and the path is a directory, recursively lists all files.", + "schema": { + "type": "boolean" + } + } + ], + "responses": { + "200": { + "description": "Successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetEnvironmentFilesResponse" + } + } + } + } + }, + "tags": [ + "environments.files" + ], + "x-speakeasy-name-override": "list" + } + }, + "/{api_version}/environments/{id}": { + "parameters": [ + { + "$ref": "#/components/parameters/api_version" + } + ], + "delete": { + "operationId": "DeleteEnvironment", + "description": "Deletes an environment.", + "parameters": [ + { + "name": "id", + "in": "path", + "description": "Required. Resource ID segment making up resource `name`. It identifies the resource\nwithin its parent collection as described in https://google.aip.dev/122.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "default": { + "description": "Successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Empty" + } + } + } + } + }, + "tags": [ + "environments" + ] + }, + "get": { + "operationId": "GetEnvironment", + "description": "Gets an environment.", + "parameters": [ + { + "name": "id", + "in": "path", + "description": "Required. Resource ID segment making up resource `name`. It identifies the resource\nwithin its parent collection as described in https://google.aip.dev/122.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "default": { + "description": "Successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Environment" + } + } + } + } + }, + "tags": [ + "environments" + ] + } + }, + "/{api_version}/interactions": { + "parameters": [ + { + "$ref": "#/components/parameters/api_version" + } + ], + "post": { + "operationId": "CreateInteraction", + "description": "Creates a new interaction.", + "parameters": [], + "requestBody": { + "description": "The request body.", + "required": true, + "content": { + "application/json": { + "schema": { + "oneOf": [ + { + "$ref": "#/components/schemas/AgentInteraction" + }, + { + "$ref": "#/components/schemas/ModelInteraction" + } + ] + } + } + } + }, + "responses": { + "200": { + "description": "Successful operation", + "content": { + "application/json": { + "examples": { + "antigravity": { + "summary": "Antigravity Agent", + "value": { + "agent": "antigravity-preview-09-2026", + "created": "2025-11-26T12:22:47Z", + "environment_id": "env_abc123", + "id": "v1_ChdPU0F4YWFtNkFwS2kxZThQZ05lbXdROBIXT1NBeGFhbTZBcEtpMWU4UGdOZW13UTg", + "object": "interaction", + "status": "completed", + "steps": [ + { + "type": "model_output", + "content": [ + { + "type": "text", + "text": "I've summarized the top 5 Hacker News stories and saved the results to /workspace/summary.md." + } + ] + } + ], + "updated": "2025-11-26T12:22:47Z", + "usage": { + "input_tokens_by_modality": [ + { + "modality": "text", + "tokens": 50 + } + ], + "total_cached_tokens": 0, + "total_input_tokens": 50, + "total_output_tokens": 500, + "total_thought_tokens": 200, + "total_tokens": 750, + "total_tool_use_tokens": 0 + } + } + }, + "deep_research": { + "summary": "Deep Research", + "value": { + "agent": "deep-research-preview-04-2026", + "created": "2025-11-26T12:22:47Z", + "id": "v1_ChdPU0F4YWFtNkFwS2kxZThQZ05lbXdROBIXT1NBeGFhbTZBcEtpMWU4UGdOZW13UTg", + "object": "interaction", + "status": "completed", + "steps": [ + { + "type": "model_output", + "content": [ + { + "type": "text", + "text": "Here is a comprehensive research report on the current state of cancer research..." + } + ] + } + ], + "updated": "2025-11-26T12:22:47Z", + "usage": { + "input_tokens_by_modality": [ + { + "modality": "text", + "tokens": 20 + } + ], + "total_cached_tokens": 0, + "total_input_tokens": 20, + "total_output_tokens": 1000, + "total_thought_tokens": 500, + "total_tokens": 1520, + "total_tool_use_tokens": 0 + } + } + }, + "function_calling": { + "summary": "Function Calling", + "value": { + "created": "2025-11-26T12:22:47Z", + "id": "v1_ChdPU0F4YWFtNkFwS2kxZThQZ05lbXdROBIXT1NBeGFhbTZBcEtpMWU4UGdOZW13UTg", + "model": "gemini-3.6-flash", + "object": "interaction", + "status": "requires_action", + "steps": [ + { + "name": "get_weather", + "type": "function_call", + "arguments": { + "location": "Boston, MA" + }, + "id": "gth23981" + } + ], + "updated": "2025-11-26T12:22:47Z", + "usage": { + "input_tokens_by_modality": [ + { + "modality": "text", + "tokens": 100 + } + ], + "total_cached_tokens": 0, + "total_input_tokens": 100, + "total_output_tokens": 25, + "total_thought_tokens": 0, + "total_tokens": 125, + "total_tool_use_tokens": 50 + } + } + }, + "multi_turn": { + "summary": "Multi-turn", + "value": { + "created": "2025-11-26T12:22:47Z", + "id": "v1_ChdPU0F4YWFtNkFwS2kxZThQZ05lbXdROBIXT1NBeGFhbTZBcEtpMWU4UGdOZW13UTg", + "model": "gemini-3.6-flash", + "object": "interaction", + "status": "completed", + "steps": [ + { + "type": "model_output", + "content": [ + { + "type": "text", + "text": "The capital of France is Paris." + } + ] + } + ], + "updated": "2025-11-26T12:22:47Z", + "usage": { + "input_tokens_by_modality": [ + { + "modality": "text", + "tokens": 50 + } + ], + "total_cached_tokens": 0, + "total_input_tokens": 50, + "total_output_tokens": 10, + "total_thought_tokens": 0, + "total_tokens": 60, + "total_tool_use_tokens": 0 + } + } + }, + "multimodal_image": { + "summary": "Image Input", + "value": { + "created": "2025-11-26T12:22:47Z", + "id": "v1_ChdPU0F4YWFtNkFwS2kxZThQZ05lbXdROBIXT1NBeGFhbTZBcEtpMWU4UGdOZW13UTg", + "model": "gemini-3.6-flash", + "object": "interaction", + "status": "completed", + "steps": [ + { + "type": "model_output", + "content": [ + { + "type": "text", + "text": "A white humanoid robot with glowing blue eyes stands holding a red skateboard." + } + ] + } + ], + "updated": "2025-11-26T12:22:47Z", + "usage": { + "input_tokens_by_modality": [ + { + "modality": "text", + "tokens": 10 + }, + { + "modality": "image", + "tokens": 258 + } + ], + "total_cached_tokens": 0, + "total_input_tokens": 268, + "total_output_tokens": 20, + "total_thought_tokens": 0, + "total_tokens": 288, + "total_tool_use_tokens": 0 + } + } + }, + "reuse_env": { + "summary": "Reuse Environment", + "value": { + "agent": "antigravity-preview-09-2026", + "created": "2025-11-26T12:23:00Z", + "environment_id": "env_abc123", + "id": "v1_Chd2ZTJhYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkwMTIzNDU2Nzg", + "object": "interaction", + "status": "completed", + "steps": [ + { + "type": "model_output", + "content": [ + { + "type": "text", + "text": "I've updated /workspace/hello.py to accept a name argument and greet the user." + } + ] + } + ], + "updated": "2025-11-26T12:23:00Z", + "usage": { + "input_tokens_by_modality": [ + { + "modality": "text", + "tokens": 80 + } + ], + "total_cached_tokens": 0, + "total_input_tokens": 80, + "total_output_tokens": 200, + "total_thought_tokens": 100, + "total_tokens": 380, + "total_tool_use_tokens": 0 + } + } + }, + "simple": { + "summary": "Simple Request", + "value": { + "created": "2025-11-26T12:25:15Z", + "id": "v1_ChdPU0F4YWFtNkFwS2kxZThQZ05lbXdROBIXT1NBeGFhbTZBcEtpMWU4UGdOZW13UTg", + "model": "gemini-3.6-flash", + "object": "interaction", + "status": "completed", + "steps": [ + { + "type": "model_output", + "content": [ + { + "type": "text", + "text": "Hello! I'm functioning perfectly and ready to assist you.\n\nHow are you doing today?" + } + ] + } + ], + "updated": "2025-11-26T12:25:15Z", + "usage": { + "input_tokens_by_modality": [ + { + "modality": "text", + "tokens": 7 + } + ], + "total_cached_tokens": 0, + "total_input_tokens": 7, + "total_output_tokens": 20, + "total_thought_tokens": 22, + "total_tokens": 49, + "total_tool_use_tokens": 0 + } + } + } + }, + "schema": { + "$ref": "#/components/schemas/Interaction" + } + }, + "text/event-stream": { + "schema": { + "$ref": "#/components/schemas/InteractionSseStreamEnvelope" + }, + "x-speakeasy-sse-sentinel": "[DONE]" + } + } + }, + "4XX": { + "description": "Client Error", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "error": { + "$ref": "#/components/schemas/Error" + } + }, + "required": [ + "error" + ] + } + } + } + }, + "5XX": { + "description": "Server Error", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "error": { + "$ref": "#/components/schemas/Error" + } + }, + "required": [ + "error" + ] + } + } + } + } + }, + "tags": [ + "interactions" + ], + "x-speakeasy-exports": [ + { + "name": "InteractionCreateParams", + "group": "interactions", + "representation": "input" + } + ], + "x-speakeasy-name-override": "create" + } + }, + "/{api_version}/interactions/{interactionsId}": { + "parameters": [ + { + "$ref": "#/components/parameters/api_version" + } + ], + "delete": { + "operationId": "deleteInteraction", + "description": "Deletes the interaction by id.", + "parameters": [ + { + "name": "interactionsId", + "in": "path", + "description": "Required. The name of the interaction to delete.", + "required": true, + "schema": { + "type": "string" + }, + "x-speakeasy-name-override": "id" + } + ], + "responses": { + "200": { + "description": "Successful deletion of the interaction." + }, + "4XX": { + "description": "Client Error", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "error": { + "$ref": "#/components/schemas/Error" + } + }, + "required": [ + "error" + ] + } + } + } + }, + "5XX": { + "description": "Server Error", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "error": { + "$ref": "#/components/schemas/Error" + } + }, + "required": [ + "error" + ] + } + } + } + } + }, + "tags": [ + "interactions" + ], + "x-speakeasy-exports": [ + { + "name": "InteractionDeleteParams", + "group": "interactions", + "representation": "input" + } + ], + "x-speakeasy-name-override": "delete" + }, + "get": { + "operationId": "getInteractionById", + "description": "Retrieves the full details of a single interaction based on its\n`Interaction.id`.", + "parameters": [ + { + "name": "include_input", + "in": "query", + "description": "If true, includes the input in the response.", + "schema": { + "type": "boolean" + } + }, + { + "name": "interactionsId", + "in": "path", + "description": "Required. The name of the interaction to retrieve.", + "required": true, + "schema": { + "type": "string" + }, + "x-speakeasy-name-override": "id" + }, + { + "name": "last_event_id", + "in": "query", + "description": "If set, resumes the interaction stream from the chunk after the event\nmarked by the event id. Can only be used if `stream` is true.", + "schema": { + "type": "string" + } + }, + { + "name": "stream", + "in": "query", + "description": "If true, streams the interaction events as Server-Sent Events.", + "schema": { + "type": "boolean" + } + } + ], + "responses": { + "200": { + "description": "Successful retrieval of the interaction.", + "content": { + "application/json": { + "examples": { + "get": { + "summary": "Get Interaction", + "value": { + "created": "2025-11-26T12:25:15Z", + "id": "v1_ChdPU0F4YWFtNkFwS2kxZThQZ05lbXdROBIXT1NBeGFhbTZBcEtpMWU4UGdOZW13UTg", + "model": "gemini-3.6-flash", + "object": "interaction", + "status": "completed", + "steps": [ + { + "type": "model_output", + "content": [ + { + "type": "text", + "text": "I'm doing great, thank you for asking! How can I help you today?" + } + ] + } + ], + "updated": "2025-11-26T12:25:15Z" + } + } + }, + "schema": { + "$ref": "#/components/schemas/Interaction" + } + }, + "text/event-stream": { + "schema": { + "$ref": "#/components/schemas/InteractionSseStreamEnvelope" + }, + "x-speakeasy-sse-sentinel": "[DONE]" + } + } + }, + "4XX": { + "description": "Client Error", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "error": { + "$ref": "#/components/schemas/Error" + } + }, + "required": [ + "error" + ] + } + } + } + }, + "5XX": { + "description": "Server Error", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "error": { + "$ref": "#/components/schemas/Error" + } + }, + "required": [ + "error" + ] + } + } + } + } + }, + "tags": [ + "interactions" + ], + "x-speakeasy-exports": [ + { + "name": "InteractionGetParams", + "group": "interactions", + "representation": "input" + } + ], + "x-speakeasy-name-override": "get", + "x-speakeasy-sse-overload": true + } + }, + "/{api_version}/interactions/{interactionsId}/cancel": { + "parameters": [ + { + "$ref": "#/components/parameters/api_version" + } + ], + "post": { + "operationId": "cancelInteractionById", + "description": "Cancels an interaction by id. This only applies to background interactions\nthat are still running.", + "parameters": [ + { + "name": "interactionsId", + "in": "path", + "description": "Required. The name of the interaction to cancel.", + "required": true, + "schema": { + "type": "string" + }, + "x-speakeasy-name-override": "id" + } + ], + "responses": { + "200": { + "description": "Successful operation", + "content": { + "application/json": { + "examples": { + "cancel": { + "summary": "Cancel Interaction", + "value": { + "agent": "deep-research-preview-04-2026", + "created": "2026-06-22T04:55:47Z", + "id": "v1_ChdVc0E0YXJTYk1zYlV6N0lQcXRXVG1BYxIXVXNBNGFyU2JNc2JVejdJUHF0V1RtQWM", + "object": "interaction", + "status": "cancelled", + "steps": [ + { + "type": "user_input", + "content": [ + { + "type": "text", + "text": "Research the history of the Google TPUs with a focus on 2025 specs." + } + ] + } + ], + "updated": "2026-06-22T04:55:47Z" + } + } + }, + "schema": { + "$ref": "#/components/schemas/Interaction" + } + } + } + }, + "4XX": { + "description": "Client Error", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "error": { + "$ref": "#/components/schemas/Error" + } + }, + "required": [ + "error" + ] + } + } + } + }, + "5XX": { + "description": "Server Error", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "error": { + "$ref": "#/components/schemas/Error" + } + }, + "required": [ + "error" + ] + } + } + } + } + }, + "tags": [ + "interactions" + ], + "x-speakeasy-exports": [ + { + "name": "InteractionCancelParams", + "group": "interactions", + "representation": "input" + } + ], + "x-speakeasy-name-override": "cancel" + } + }, + "/{api_version}/triggers": { + "parameters": [ + { + "$ref": "#/components/parameters/api_version" + } + ], + "get": { + "operationId": "ListTriggers", + "description": "Lists triggers for a project.", + "parameters": [ + { + "name": "filter", + "in": "query", + "description": "Optional. Filter expression (e.g., by state).", + "schema": { + "type": "string" + } + }, + { + "name": "page_size", + "in": "query", + "description": "Optional. The maximum number of triggers to return per page.", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "name": "page_token", + "in": "query", + "description": "Optional. A page token from a previous ListTriggers call.", + "schema": { + "type": "string" + } + } + ], + "responses": { + "default": { + "description": "Successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ListTriggersResponse" + } + } + } + } + }, + "tags": [ + "triggers" + ], + "x-speakeasy-exports": [ + { + "name": "TriggerListParams", + "group": "triggers", + "representation": "input" + } + ], + "x-speakeasy-name-override": "list" + }, + "post": { + "operationId": "CreateTrigger", + "description": "Creates a new trigger that will invoke the specified agent on the given\ncron schedule.", + "parameters": [], + "requestBody": { + "description": "Required. The trigger configuration to create.", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TriggerCreateParams" + } + } + } + }, + "responses": { + "default": { + "description": "Successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Trigger" + } + } + } + } + }, + "tags": [ + "triggers" + ], + "x-speakeasy-exports": [ + { + "name": "TriggerCreateParams", + "group": "triggers", + "representation": "input" + } + ], + "x-speakeasy-name-override": "create" + } + }, + "/{api_version}/triggers/{id}": { + "parameters": [ + { + "$ref": "#/components/parameters/api_version" + } + ], + "delete": { + "operationId": "DeleteTrigger", + "description": "Deletes a trigger.", + "parameters": [ + { + "name": "id", + "in": "path", + "description": "Required. Resource name of the trigger.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "default": { + "description": "Successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Empty" + } + } + } + } + }, + "tags": [ + "triggers" + ], + "x-speakeasy-exports": [ + { + "name": "TriggerDeleteParams", + "group": "triggers", + "representation": "input" + } + ], + "x-speakeasy-name-override": "delete" + }, + "get": { + "operationId": "GetTrigger", + "description": "Gets details of a single trigger.", + "parameters": [ + { + "name": "id", + "in": "path", + "description": "Required. Resource name of the trigger.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "default": { + "description": "Successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Trigger" + } + } + } + } + }, + "tags": [ + "triggers" + ], + "x-speakeasy-exports": [ + { + "name": "TriggerGetParams", + "group": "triggers", + "representation": "input" + } + ], + "x-speakeasy-name-override": "get" + }, + "patch": { + "operationId": "UpdateTrigger", + "description": "Updates a trigger.", + "parameters": [ + { + "name": "id", + "in": "path", + "description": "Required. Resource name of the trigger.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "description": "Required. The trigger with updated fields.", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TriggerUpdate" + } + } + } + }, + "responses": { + "default": { + "description": "Successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Trigger" + } + } + } + } + }, + "tags": [ + "triggers" + ], + "x-speakeasy-exports": [ + { + "name": "TriggerUpdateParams", + "group": "triggers", + "representation": "input" + } + ], + "x-speakeasy-name-override": "update" + } + }, + "/{api_version}/triggers/{triggerId}/executions": { + "parameters": [ + { + "$ref": "#/components/parameters/api_version" + } + ], + "get": { + "operationId": "ListTriggerExecutions", + "description": "Lists executions for a trigger.", + "parameters": [ + { + "name": "page_size", + "in": "query", + "description": "The maximum number of executions to return per page.", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "name": "page_token", + "in": "query", + "description": "A page token from a previous ListTriggerExecutions call.", + "schema": { + "type": "string" + } + }, + { + "name": "triggerId", + "in": "path", + "description": "Required. The trigger ID to list executions from.", + "required": true, + "schema": { + "type": "string" + }, + "x-speakeasy-name-override": "trigger_id" + } + ], + "responses": { + "default": { + "description": "Successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ListTriggerExecutionsResponse" + } + } + } + } + }, + "tags": [ + "triggers.executions" + ], + "x-speakeasy-exports": [ + { + "name": "TriggerListExecutionsParams", + "group": "triggers", + "representation": "input" + } + ], + "x-speakeasy-group": "triggers", + "x-speakeasy-name-override": "list_executions" + }, + "post": { + "operationId": "RunTrigger", + "description": "Runs a trigger immediately.", + "parameters": [ + { + "name": "triggerId", + "in": "path", + "description": "Required. Resource name of the trigger.", + "required": true, + "schema": { + "type": "string" + }, + "x-speakeasy-name-override": "trigger_id" + } + ], + "responses": { + "default": { + "description": "Successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TriggerExecution" + } + } + } + } + }, + "tags": [ + "triggers" + ], + "x-speakeasy-exports": [ + { + "name": "TriggerRunParams", + "group": "triggers", + "representation": "input" + } + ], + "x-speakeasy-name-override": "run" + } + }, + "/{api_version}/voices": { + "parameters": [ + { + "$ref": "#/components/parameters/api_version" + } + ], + "get": { + "operationId": "ListVoices", + "description": "Lists custom stored voices owned by the caller (ordered newest first)\nfollowed by prebuilt system voices from Google's voice catalog.", + "parameters": [ + { + "name": "accent", + "in": "query", + "description": "Optional. Filter by accent description (e.g. \"American\", \"British\").\nCase-insensitive exact match. If multiple values are specified, matches\nvoices with any of the specified accents (OR).", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "context", + "in": "query", + "description": "Optional. Filter by intended context or domain (e.g. \"News, Commercial\").\nCase-insensitive exact match. If multiple values are specified, matches\nvoices with any of the specified contexts (OR).", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "x-speakeasy-name-override": "contexts" + }, + { + "name": "gender", + "in": "query", + "description": "Optional. Filter by gender presentation (e.g. \"female\", \"male\", \"neutral\").\nCase-insensitive exact match. If multiple values are specified, matches\nvoices with any of the specified genders (OR).", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "language_code", + "in": "query", + "description": "Optional. Filter by BCP-47 language code (e.g. \"en-US\").\nCase-insensitive exact match. If multiple values are specified, matches\nvoices with any of the specified language codes (OR).", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "page_size", + "in": "query", + "description": "Optional. The maximum number of voices to return per page. The service may\nreturn fewer than this value. If unspecified, at most 50 voices are\nreturned. The maximum value is 1000; values above 1000 are coerced to\n1000.", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "name": "page_token", + "in": "query", + "description": "Optional. A page token received from a previous `ListVoices` call. Provide\nthis to retrieve the subsequent page.\n\nWhen paginating, all filter query parameters (`language_code`,\n`region_code`, `accent`, `persona`, `context`, `gender`, `pitch`, `type`,\nand `search`) must match the call that returned this token; otherwise the\nrequest fails with `INVALID_ARGUMENT`. `page_size` may change between\npages.", + "schema": { + "type": "string" + } + }, + { + "name": "persona", + "in": "query", + "description": "Optional. Filter by vocal persona (e.g. \"Warm, Friendly\").\nCase-insensitive exact match. If multiple values are specified, matches\nvoices with any of the specified personas (OR).", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "pitch", + "in": "query", + "description": "Optional. Filter by vocal pitch. Accepts `\"low\"`, `\"medium\"`, `\"high\"`\n(case-insensitive). If multiple values are specified, matches voices with\nany of the specified pitches (OR).", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "region_code", + "in": "query", + "description": "Optional. Filter by ISO 3166-1 alpha-2 or UN M.49 region code (e.g. \"US\",\n\"001\").\nCase-insensitive exact match. If multiple values are specified, matches\nvoices with any of the specified region codes (OR).", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "name": "search", + "in": "query", + "description": "Optional. Free-text substring search query matched case-insensitively\nagainst both `display_name` and `description`. Maximum 2048 bytes.", + "schema": { + "type": "string" + } + }, + { + "name": "type", + "in": "query", + "description": "Optional. Filter by voice type. Accepts `\"prebuilt\"`, `\"replicated\"`,\n`\"prompted\"` (case-insensitive). If multiple values are specified, matches\nvoices with any of the specified types (OR).", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "default": { + "description": "Successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ListVoicesResponse" + } + } + } + } + }, + "tags": [ + "voices" + ], + "x-speakeasy-exports": [ + { + "name": "VoiceListParams", + "group": "voices", + "representation": "input" + } + ], + "x-speakeasy-name-override": "list" + }, + "post": { + "operationId": "CreateVoice", + "description": "Creates a custom voice from a natural-language prompt\n(`VOICE_TYPE_PROMPTED`) or from reference and consent audio recordings\n(`VOICE_TYPE_REPLICATED`).", + "parameters": [], + "requestBody": { + "description": "The request body.", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateVoiceRequest" + } + } + } + }, + "responses": { + "default": { + "description": "Successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Voice" + } + } + } + } + }, + "tags": [ + "voices" + ], + "x-speakeasy-exports": [ + { + "name": "VoiceCreateParams", + "group": "voices", + "representation": "input" + } + ], + "x-speakeasy-name-override": "create" + } + }, + "/{api_version}/voices/{voicesId}": { + "parameters": [ + { + "$ref": "#/components/parameters/api_version" + } + ], + "delete": { + "operationId": "DeleteVoice", + "description": "Deletes a custom stored voice (`store = true`) by resource name.\nPrebuilt catalog voices (`VOICE_TYPE_PREBUILT`) cannot be deleted.", + "parameters": [ + { + "name": "voicesId", + "in": "path", + "description": "Required. The resource name of the custom stored voice to delete\n(for example, `voices/voice_abc123def456`).", + "required": true, + "schema": { + "type": "string" + }, + "x-speakeasy-name-override": "id" + } + ], + "responses": { + "default": { + "description": "Successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DeleteVoiceResponse" + } + } + } + } + }, + "tags": [ + "voices" + ], + "x-speakeasy-exports": [ + { + "name": "VoiceDeleteParams", + "group": "voices", + "representation": "input" + } + ], + "x-speakeasy-name-override": "delete" + }, + "get": { + "operationId": "GetVoice", + "description": "Gets a custom stored voice (`store = true`) by resource name.\nPrebuilt catalog voices (`VOICE_TYPE_PREBUILT`) cannot be retrieved via\n`GetVoice`; use `ListVoices` instead.", + "parameters": [ + { + "name": "voicesId", + "in": "path", + "description": "Required. The resource name of the custom stored voice to retrieve\n(for example, `voices/voice_abc123def456`).", + "required": true, + "schema": { + "type": "string" + }, + "x-speakeasy-name-override": "id" + } + ], + "responses": { + "default": { + "description": "Successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Voice" + } + } + } + } + }, + "tags": [ + "voices" + ], + "x-speakeasy-exports": [ + { + "name": "VoiceGetParams", + "group": "voices", + "representation": "input" + } + ], + "x-speakeasy-name-override": "get" + } + }, + "/{api_version}/webhooks": { + "parameters": [ + { + "$ref": "#/components/parameters/api_version" + } + ], + "get": { + "operationId": "ListWebhooks", + "description": "Lists all Webhooks.", + "parameters": [ + { + "name": "page_size", + "in": "query", + "description": "Optional. The maximum number of webhooks to return. The service may return\nfewer than this value. If unspecified, at most 50 webhooks will be\nreturned. The maximum value is 1000.", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "name": "page_token", + "in": "query", + "description": "Optional. A page token, received from a previous `ListWebhooks` call.\nProvide this to retrieve the subsequent page.", + "schema": { + "type": "string" + } + } + ], + "responses": { + "default": { + "description": "Successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ListWebhooksResponse" + } + } + } + } + }, + "tags": [ + "webhooks" + ], + "x-speakeasy-exports": [ + { + "name": "WebhookListParams", + "group": "webhooks", + "representation": "input" + } + ], + "x-speakeasy-name-override": "list" + }, + "post": { + "operationId": "CreateWebhook", + "description": "Creates a new Webhook.", + "parameters": [], + "requestBody": { + "description": "Required. The request body.", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Webhook" + } + } + } + }, + "responses": { + "default": { + "description": "Successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Webhook" + } + } + } + } + }, + "tags": [ + "webhooks" + ], + "x-speakeasy-exports": [ + { + "name": "WebhookCreateParams", + "group": "webhooks", + "representation": "input" + } + ], + "x-speakeasy-name-override": "create" + } + }, + "/{api_version}/webhooks/{id}": { + "parameters": [ + { + "$ref": "#/components/parameters/api_version" + } + ], + "delete": { + "operationId": "DeleteWebhook", + "description": "Deletes a Webhook.", + "parameters": [ + { + "name": "id", + "in": "path", + "description": "Required. The ID of the webhook to delete.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "default": { + "description": "Successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Empty" + } + } + } + } + }, + "tags": [ + "webhooks" + ], + "x-speakeasy-exports": [ + { + "name": "WebhookDeleteParams", + "group": "webhooks", + "representation": "input" + } + ], + "x-speakeasy-name-override": "delete" + }, + "get": { + "operationId": "GetWebhook", + "description": "Gets a specific Webhook.", + "parameters": [ + { + "name": "id", + "in": "path", + "description": "Required. The ID of the webhook to retrieve.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "default": { + "description": "Successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Webhook" + } + } + } + } + }, + "tags": [ + "webhooks" + ], + "x-speakeasy-exports": [ + { + "name": "WebhookGetParams", + "group": "webhooks", + "representation": "input" + } + ], + "x-speakeasy-name-override": "get" + }, + "patch": { + "operationId": "UpdateWebhook", + "description": "Updates an existing Webhook.", + "parameters": [ + { + "name": "id", + "in": "path", + "description": "Required. The ID of the webhook to update.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "update_mask", + "in": "query", + "description": "Optional list of fields to update.", + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "description": "Required. The request body.", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebhookUpdate" + } + } + } + }, + "responses": { + "default": { + "description": "Successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Webhook" + } + } + } + } + }, + "tags": [ + "webhooks" + ], + "x-speakeasy-name-override": "update" + } + }, + "/{api_version}/webhooks/{id}:ping": { + "parameters": [ + { + "$ref": "#/components/parameters/api_version" + } + ], + "post": { + "operationId": "PingWebhook", + "description": "Sends a ping event to a Webhook.", + "parameters": [ + { + "name": "id", + "in": "path", + "description": "Required. The ID of the webhook to ping.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "description": "The request body.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PingWebhookRequest" + } + } + } + }, + "responses": { + "default": { + "description": "Successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PingWebhookResponse" + } + } + } + } + }, + "tags": [ + "webhooks" + ], + "x-speakeasy-name-override": "ping" + } + }, + "/{api_version}/webhooks/{id}:rotateSigningSecret": { + "parameters": [ + { + "$ref": "#/components/parameters/api_version" + } + ], + "post": { + "operationId": "RotateSigningSecret", + "description": "Generates a new signing secret for a Webhook.", + "parameters": [ + { + "name": "id", + "in": "path", + "description": "Required. The ID of the webhook for which to generate a signing secret.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "description": "Required. The request body.", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RotateSigningSecretRequest" + } + } + } + }, + "responses": { + "default": { + "description": "Successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RotateSigningSecretResponse" + } + } + } + } + }, + "tags": [ + "webhooks" + ], + "x-speakeasy-name-override": "rotate_signing_secret" + } + } + }, + "components": { + "parameters": { + "EnvironmentFileExtract": { + "name": "extract", + "in": "query", + "description": "Optional. If true, treats the uploaded file as a tar/tar.gz archive and unpacks it into `path`.", + "schema": { + "type": "boolean" + } + }, + "EnvironmentFileOverwrite": { + "name": "overwrite", + "in": "query", + "description": "Optional. Whether to overwrite the destination file if it already exists.", + "schema": { + "type": "boolean" + } + }, + "EnvironmentFileUploadCommand": { + "name": "X-Goog-Upload-Command", + "in": "header", + "description": "Command that starts the resumable upload session.", + "required": true, + "schema": { + "type": "string", + "const": "start", + "default": "start" + } + }, + "EnvironmentFileUploadContentLength": { + "name": "X-Goog-Upload-Header-Content-Length", + "in": "header", + "description": "Total number of file bytes that will be uploaded to the session URL.", + "required": true, + "schema": { + "type": "integer", + "format": "int64", + "minimum": 0 + } + }, + "EnvironmentFileUploadContentType": { + "name": "X-Goog-Upload-Header-Content-Type", + "in": "header", + "description": "MIME type of the file that will be uploaded to the session URL.", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + }, + "EnvironmentFileUploadProtocol": { + "name": "X-Goog-Upload-Protocol", + "in": "header", + "description": "Resumable upload protocol selector.", + "required": true, + "schema": { + "type": "string", + "const": "resumable", + "default": "resumable" + } + }, + "api_version": { + "name": "api_version", + "in": "path", + "description": "API version for request routing.", + "required": true, + "schema": { + "type": "string" + } + }, + "google_genai_user_project": { + "name": "x-goog-user-project", + "in": "header", + "description": "Quota project header to send with Google GenAI API requests.", + "schema": { + "type": "string" + }, + "x-speakeasy-name-override": "user_project" + } + }, + "headers": { + "EnvironmentFileUploadUrl": { + "description": "Opaque URL to which file chunks are uploaded and finalized.", + "schema": { + "type": "string", + "format": "uri" + } + } + }, + "schemas": { + "Agent": { + "description": "An agent definition for the CreateAgent API.\nThis message is the target for annotation-parser-based JSON parsing.\nNew format:\n {\n \"id\": \"customer-sentinel\",\n \"base_agent\": \"\",\n \"system_instruction\": \"...\",\n \"base_environment\": { \"type\": \"remote\", \"sources\": [...] },\n \"tools\": [ {\"type\": \"code_execution\"} ]\n }", + "type": "object", + "properties": { + "agent_config": { + "description": "Configuration parameters for the agent.", + "oneOf": [ + { + "$ref": "#/components/schemas/AntigravityAgentConfig" + } + ] + }, + "base_agent": { + "description": "The base agent to extend.", + "type": "string" + }, + "base_environment": { + "description": "The environment configuration for the agent.", + "oneOf": [ + { + "$ref": "#/components/schemas/EnvironmentConfig" + }, + { + "type": "string" + } + ] + }, + "description": { + "description": "Agent description for developers to quickly read and understand.", + "type": "string" + }, + "id": { + "description": "The unique identifier for the agent.", + "type": "string" + }, + "system_instruction": { + "description": "System instruction for the agent.", + "type": "string" + }, + "tools": { + "description": "The tools available to the agent.", + "type": "array", + "items": { + "$ref": "#/components/schemas/AgentTool" + } + } + }, + "x-speakeasy-exports": [ + { + "name": "Agent", + "group": "agents" + } + ], + "x-speakeasy-model-namespace": "agents" + }, + "AgentInteraction": { + "description": "Interaction for generating the completion using agents.", + "type": "object", + "properties": { + "agent": { + "description": "The name of the `Agent` used for generating the interaction.", + "$ref": "#/components/schemas/AgentOption" + }, + "agent_config": { + "description": "Configuration parameters for the agent interaction.", + "oneOf": [ + { + "$ref": "#/components/schemas/AntigravityAgentConfig" + }, + { + "$ref": "#/components/schemas/CodeMenderAgentConfig" + }, + { + "$ref": "#/components/schemas/DeepResearchAgentConfig" + }, + { + "$ref": "#/components/schemas/DynamicAgentConfig" + } + ], + "x-speakeasy-unknown-values": "disallow" + }, + "background": { + "description": "Input only. Whether to run the model interaction in the background.", + "type": "boolean" + }, + "continuation_token": { + "description": "Opaque token to resume a long decode. Output: set when status is\nREQUIRES_CONTINUATION and decoding can be resumed. Input: pass the latest\ntoken back unchanged in CreateInteraction to continue decoding.", + "type": "string", + "format": "byte" + }, + "environment": { + "description": "The environment configuration for the interaction. Can be an object\nspecifying remote environment sources or a string referencing an existing\nenvironment ID.", + "oneOf": [ + { + "$ref": "#/components/schemas/EnvironmentConfig" + }, + { + "type": "string" + } + ], + "x-speakeasy-unknown-values": "disallow" + }, + "input": { + "$ref": "#/components/schemas/InteractionsInput" + }, + "labels": { + "description": "The labels with user-defined metadata for the request.\n\nLabel keys and values can be no longer than 63 characters\n(Unicode codepoints) and can only contain lowercase letters, numeric\ncharacters, underscores, and dashes. International characters are allowed.\nLabel values are optional. Label keys must start with a letter.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "previous_interaction_id": { + "description": "The ID of the previous interaction, if any.", + "type": "string" + }, + "response_format": { + "description": "Enforces that the generated response is a JSON object that complies with\nthe JSON schema specified in this field.", + "oneOf": [ + { + "$ref": "#/components/schemas/ResponseFormat" + }, + { + "title": "ResponseFormatList", + "type": "array", + "items": { + "$ref": "#/components/schemas/ResponseFormat" + } + } + ] + }, + "response_mime_type": { + "description": "The mime type of the response. This is required if response_format is set.", + "type": "string", + "deprecated": true + }, + "response_modalities": { + "description": "The requested modalities of the response (TEXT, IMAGE, AUDIO).", + "type": "array", + "deprecated": true, + "items": { + "$ref": "#/components/schemas/ResponseModality" + } + }, + "safety_settings": { + "description": "Safety settings for the interaction.", + "type": "array", + "items": { + "$ref": "#/components/schemas/SafetySetting" + } + }, + "service_tier": { + "description": "The service tier for the interaction.", + "$ref": "#/components/schemas/ServiceTier" + }, + "store": { + "description": "Input only. Whether to store the response and request for later retrieval.", + "type": "boolean" + }, + "stream": { + "description": "Input only. Whether the interaction will be streamed.", + "type": "boolean" + }, + "system_instruction": { + "description": "System instruction for the interaction.", + "type": "string" + }, + "tools": { + "description": "A list of tool declarations the model may call during interaction.", + "type": "array", + "items": { + "$ref": "#/components/schemas/Tool" + } + }, + "webhook_config": { + "description": "Optional. Webhook configuration for receiving notifications when the\ninteraction completes.", + "$ref": "#/components/schemas/WebhookConfig" + } + }, + "required": [ + "agent" + ], + "x-speakeasy-exports": [ + { + "name": "CreateAgentInteractionParamsNonStreaming", + "group": "interactions", + "representation": "input" + }, + { + "name": "CreateAgentInteractionParamsStreaming", + "group": "interactions", + "representation": "input" + } + ], + "x-speakeasy-model-namespace": "interactions", + "x-speakeasy-name-override": "CreateAgentInteraction" + }, + "AgentOption": { + "title": "Agent", + "description": "The agent to interact with.", + "type": "string", + "enum": [ + "deep-research-pro-preview-12-2025", + "deep-research-preview-04-2026", + "deep-research-max-preview-04-2026", + "antigravity-preview-05-2026", + "antigravity-preview-09-2026" + ], + "x-speakeasy-enum-descriptions": [ + "Gemini Deep Research Agent", + "Gemini Deep Research Agent", + "Gemini Deep Research Max Agent", + "Use the Antigravity managed agent to perform multi-step tasks that require reasoning, file operations, and tool use.", + "Use the Antigravity managed agent to perform multi-step tasks that require reasoning, file operations, and tool use." + ], + "x-speakeasy-enum-format": "union", + "x-speakeasy-model-namespace": "interactions", + "x-speakeasy-unknown-values": "allow" + }, + "AgentTool": { + "description": "A tool that the agent can use.", + "oneOf": [ + { + "$ref": "#/components/schemas/CodeExecution" + }, + { + "$ref": "#/components/schemas/Function" + }, + { + "$ref": "#/components/schemas/GoogleSearch" + }, + { + "$ref": "#/components/schemas/McpServer" + }, + { + "$ref": "#/components/schemas/UrlContext" + } + ], + "x-speakeasy-exports": [ + { + "name": "AgentTool", + "group": "agents" + } + ], + "x-speakeasy-model-namespace": "agents" + }, + "AllowedTools": { + "description": "The configuration for allowed tools.", + "type": "object", + "properties": { + "mode": { + "description": "The mode of the tool choice.", + "$ref": "#/components/schemas/ToolChoiceType" + }, + "tools": { + "description": "The names of the allowed tools.", + "type": "array", + "items": { + "type": "string" + } + } + }, + "x-speakeasy-exports": [ + { + "name": "AllowedTools", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions" + }, + "Annotation": { + "description": "Citation information for model-generated content.", + "oneOf": [ + { + "$ref": "#/components/schemas/FileCitation" + }, + { + "$ref": "#/components/schemas/PlaceCitation" + }, + { + "$ref": "#/components/schemas/SpeechAnnotation" + }, + { + "$ref": "#/components/schemas/UrlCitation" + }, + { + "$ref": "#/components/schemas/WordInfo" + } + ], + "x-speakeasy-exports": [ + { + "name": "Annotation", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions" + }, + "AntigravityAgentConfig": { + "description": "Configuration for the Antigravity agent runtime.\nProvides server-side control over the agent's execution environment\nand tool configuration.", + "type": "object", + "properties": { + "max_total_tokens": { + "description": "Max total tokens for the agent run.", + "type": "string", + "format": "int64" + }, + "model": { + "description": "The model to use for agent reasoning.", + "type": "string" + }, + "type": { + "const": "antigravity" + } + }, + "required": [ + "type" + ], + "x-speakeasy-exports": [ + { + "name": "AntigravityAgentConfig", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions", + "x-speakeasy-unknown-values": "disallow" + }, + "ArgumentsDelta": { + "type": "object", + "properties": { + "arguments": { + "type": "string" + }, + "type": { + "const": "arguments_delta" + } + }, + "required": [ + "type" + ], + "x-speakeasy-model-namespace": "interactions" + }, + "AudioContent": { + "description": "An audio content block.", + "type": "object", + "properties": { + "channels": { + "description": "The number of audio channels.", + "type": "integer", + "format": "int32" + }, + "data": { + "description": "The audio content.", + "type": "string", + "format": "byte", + "x-speakeasy-base64-input-mode": "file" + }, + "mime_type": { + "description": "The mime type of the audio.", + "type": "string", + "enum": [ + "audio/wav", + "audio/mp3", + "audio/aiff", + "audio/aac", + "audio/ogg", + "audio/flac", + "audio/mpeg", + "audio/m4a", + "audio/l16", + "audio/opus", + "audio/alaw", + "audio/mulaw", + "audio/webm" + ], + "x-google-enum-descriptions": [ + "WAV audio format", + "MP3 audio format", + "AIFF audio format", + "AAC audio format", + "OGG audio format", + "FLAC audio format", + "MPEG audio format", + "M4A audio format", + "L16 audio format", + "OPUS audio format", + "ALAW audio format", + "MULAW audio format", + "WebM audio format" + ] + }, + "sample_rate": { + "description": "The sample rate of the audio.", + "type": "integer", + "format": "int32" + }, + "type": { + "const": "audio" + }, + "uri": { + "description": "The URI of the audio.", + "type": "string" + } + }, + "required": [ + "type" + ], + "example": { + "type": "audio", + "data": "BASE64_ENCODED_AUDIO", + "mime_type": "audio/wav" + }, + "x-example-summaries": [ + "Audio" + ], + "x-speakeasy-exports": [ + { + "name": "AudioContent", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions" + }, + "AudioData": { + "description": "Audio payload used for voice creation.", + "type": "object", + "properties": { + "data": { + "description": "Required. The raw audio bytes.", + "type": "string", + "format": "byte", + "x-speakeasy-base64-input-mode": "file" + }, + "mime_type": { + "description": "Required. The IANA MIME type of the audio data (for example, `audio/wav` or\n`audio/mpeg`).", + "type": "string" + } + }, + "required": [ + "data", + "mime_type" + ], + "x-speakeasy-exports": [ + { + "name": "AudioData", + "group": "voices" + } + ], + "x-speakeasy-model-namespace": "voices" + }, + "AudioDelta": { + "type": "object", + "properties": { + "channels": { + "description": "The number of audio channels.", + "type": "integer", + "format": "int32" + }, + "data": { + "type": "string", + "format": "byte", + "x-speakeasy-base64-input-mode": "file" + }, + "mime_type": { + "type": "string", + "enum": [ + "audio/wav", + "audio/mp3", + "audio/aiff", + "audio/aac", + "audio/ogg", + "audio/flac", + "audio/mpeg", + "audio/m4a", + "audio/l16", + "audio/opus", + "audio/alaw", + "audio/mulaw", + "audio/webm" + ], + "x-google-enum-descriptions": [ + "WAV audio format", + "MP3 audio format", + "AIFF audio format", + "AAC audio format", + "OGG audio format", + "FLAC audio format", + "MPEG audio format", + "M4A audio format", + "L16 audio format", + "OPUS audio format", + "ALAW audio format", + "MULAW audio format", + "WEBM audio format" + ] + }, + "rate": { + "description": "Deprecated. Use sample_rate instead. The value is ignored.", + "type": "integer", + "deprecated": true, + "format": "int32" + }, + "sample_rate": { + "description": "The sample rate of the audio.", + "type": "integer", + "format": "int32" + }, + "type": { + "const": "audio" + }, + "uri": { + "type": "string" + } + }, + "required": [ + "type" + ], + "x-speakeasy-model-namespace": "interactions" + }, + "AudioResponseFormat": { + "description": "Configuration for audio output format.", + "type": "object", + "properties": { + "bit_rate": { + "description": "Bit rate in bits per second (bps). Only applicable for compressed formats\n(MP3, Opus).", + "type": "integer", + "format": "int32" + }, + "delivery": { + "description": "The delivery mode for the audio output.", + "type": "string", + "enum": [ + "inline", + "uri" + ], + "x-google-enum-descriptions": [ + "Audio data is returned inline in the response.", + "Audio data is returned as a URI." + ] + }, + "mime_type": { + "description": "The MIME type of the audio output.", + "type": "string", + "enum": [ + "audio/mp3", + "audio/ogg_opus", + "audio/l16", + "audio/wav", + "audio/alaw", + "audio/mulaw" + ], + "x-google-enum-descriptions": [ + "MP3 audio format.", + "OGG Opus audio format.", + "Raw PCM (L16) audio format.", + "WAV audio format.", + "A-law audio format.", + "Mu-law audio format." + ] + }, + "sample_rate": { + "description": "Sample rate in Hz.", + "type": "integer", + "format": "int32" + }, + "type": { + "const": "audio" + } + }, + "required": [ + "type" + ], + "example": { + "type": "audio", + "sample_rate": 24000 + }, + "x-example-summaries": [ + "Audio Output" + ], + "x-speakeasy-exports": [ + { + "name": "AudioResponseFormat", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions" + }, + "CodeExecution": { + "description": "A tool that can be used by the model to execute code.", + "type": "object", + "properties": { + "type": { + "const": "code_execution" + } + }, + "required": [ + "type" + ], + "x-speakeasy-model-namespace": "interactions" + }, + "CodeExecutionCallArguments": { + "description": "The arguments to pass to the code execution.", + "type": "object", + "properties": { + "code": { + "description": "The code to be executed.", + "type": "string" + }, + "language": { + "description": "Programming language of the `code`.", + "type": "string", + "enum": [ + "python", + "bash" + ], + "x-google-enum-descriptions": [ + "Python >= 3.10, with numpy and simpy available.", + "Bash. Only available for Gemini 3.0 model or above." + ] + } + }, + "x-speakeasy-model-namespace": "interactions" + }, + "CodeExecutionCallDelta": { + "type": "object", + "properties": { + "arguments": { + "$ref": "#/components/schemas/CodeExecutionCallArguments" + }, + "signature": { + "description": "A signature hash for backend validation.", + "type": "string", + "format": "byte", + "x-speakeasy-base64-input-mode": "file" + }, + "type": { + "const": "code_execution_call" + } + }, + "required": [ + "arguments", + "type" + ], + "x-speakeasy-model-namespace": "interactions" + }, + "CodeExecutionCallStep": { + "description": "Code execution call step.", + "type": "object", + "properties": { + "arguments": { + "description": "Required. The arguments to pass to the code execution.", + "$ref": "#/components/schemas/CodeExecutionCallStepArguments" + }, + "id": { + "description": "Required. A unique ID for this specific tool call.", + "type": "string" + }, + "signature": { + "description": "A signature hash for backend validation.", + "type": "string", + "format": "byte", + "x-speakeasy-base64-input-mode": "file" + }, + "type": { + "const": "code_execution_call" + } + }, + "required": [ + "arguments", + "id", + "type" + ], + "example": { + "type": "code_execution_call", + "arguments": { + "code": "print(sum(range(1, 11)))", + "language": "python" + }, + "id": "code_call_71021" + }, + "x-example-summaries": [ + "CodeExecutionCallStep" + ], + "x-speakeasy-exports": [ + { + "name": "CodeExecutionCallStep", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions" + }, + "CodeExecutionCallStepArguments": { + "description": "The arguments to pass to the code execution.", + "type": "object", + "properties": { + "code": { + "description": "The code to be executed.", + "type": "string" + }, + "language": { + "description": "Programming language of the `code`.", + "type": "string", + "enum": [ + "python", + "bash" + ], + "x-google-enum-descriptions": [ + "Python >= 3.10, with numpy and simpy available.", + "Bash. Only available for Gemini 3.0 model or above." + ] + } + }, + "x-speakeasy-exports": [ + { + "name": "CodeExecutionCallArguments", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions", + "x-speakeasy-name-override": "CodeExecutionCallArguments" + }, + "CodeExecutionResultDelta": { + "type": "object", + "properties": { + "is_error": { + "type": "boolean" + }, + "result": { + "type": "string" + }, + "signature": { + "description": "A signature hash for backend validation.", + "type": "string", + "format": "byte", + "x-speakeasy-base64-input-mode": "file" + }, + "type": { + "const": "code_execution_result" + } + }, + "required": [ + "result", + "type" + ], + "x-speakeasy-model-namespace": "interactions" + }, + "CodeExecutionResultStep": { + "description": "Code execution result step.", + "type": "object", + "properties": { + "call_id": { + "description": "Required. ID to match the ID from the function call block.", + "type": "string" + }, + "is_error": { + "description": "Whether the code execution resulted in an error.", + "type": "boolean" + }, + "result": { + "description": "The output of the code execution.", + "oneOf": [ + { + "title": "ContentList", + "description": "The contents of the list.", + "type": "array", + "items": { + "$ref": "#/components/schemas/Content" + } + }, + { + "type": "string" + } + ] + }, + "signature": { + "description": "A signature hash for backend validation.", + "type": "string", + "format": "byte", + "x-speakeasy-base64-input-mode": "file" + }, + "type": { + "const": "code_execution_result" + } + }, + "required": [ + "call_id", + "result", + "type" + ], + "example": { + "type": "code_execution_result", + "call_id": "code_call_71021", + "result": "55\n" + }, + "x-example-summaries": [ + "CodeExecutionResultStep" + ], + "x-speakeasy-exports": [ + { + "name": "CodeExecutionResultStep", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions" + }, + "CodeMenderAgentConfig": { + "description": "Configuration for the CodeMender agent.", + "type": "object", + "properties": { + "find_request": { + "description": "Parameters for finding vulnerabilities.", + "$ref": "#/components/schemas/FindRequest" + }, + "fix_request": { + "description": "Parameters for fixing vulnerabilities.", + "$ref": "#/components/schemas/FixRequest" + }, + "model": { + "description": "The name of the model to use for the CodeMender agent. One\nCodeMender session will only use one model.", + "type": "string" + }, + "session_config": { + "description": "Optional session-specific configurations to override default agent\nbehavior.", + "$ref": "#/components/schemas/SessionConfig" + }, + "session_id": { + "description": "Parameter for grouping multiple interactions that belong to\nthe same CodeMender session.", + "type": "string" + }, + "type": { + "const": "code-mender" + } + }, + "required": [ + "type" + ], + "x-speakeasy-exports": [ + { + "name": "CodeMenderAgentConfig", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions", + "x-speakeasy-unknown-values": "disallow" + }, + "ComputerUse": { + "description": "A tool that can be used by the model to interact with the computer.", + "type": "object", + "properties": { + "disabled_safety_policies": { + "description": "Optional. Disabled safety policies for computer use.", + "type": "array", + "items": { + "type": "string", + "enum": [ + "financial_transactions", + "sensitive_data_modification", + "communication_tool", + "account_creation", + "data_modification", + "user_consent_management", + "legal_terms_and_agreements" + ], + "x-google-enum-descriptions": [ + "Safety policy for financial transactions.", + "Safety policy for sensitive data modification.", + "Safety policy for communication tools (e.g. Gmail, Chat, Meet).", + "Safety policy for account creation.", + "Safety policy for data modification.", + "Safety policy for user consent management.", + "Safety policy for legal terms and agreements." + ] + } + }, + "enable_prompt_injection_detection": { + "description": "Whether enable the prompt injection detection check on computer-use\nrequest.", + "type": "boolean" + }, + "environment": { + "description": "The environment being operated.", + "type": "string", + "enum": [ + "browser", + "mobile", + "desktop" + ], + "x-google-enum-descriptions": [ + "Operates in a web browser.", + "Operates in a mobile environment.", + "Operates in a desktop environment." + ] + }, + "excluded_predefined_functions": { + "description": "The list of predefined functions that are excluded from the model call.", + "type": "array", + "items": { + "type": "string" + } + }, + "type": { + "const": "computer_use" + } + }, + "required": [ + "type" + ], + "x-speakeasy-model-namespace": "interactions" + }, + "Content": { + "description": "The content of the response.", + "oneOf": [ + { + "$ref": "#/components/schemas/AudioContent" + }, + { + "$ref": "#/components/schemas/DocumentContent" + }, + { + "$ref": "#/components/schemas/ImageContent" + }, + { + "$ref": "#/components/schemas/TextContent" + }, + { + "$ref": "#/components/schemas/VideoContent" + } + ], + "x-speakeasy-exports": [ + { + "name": "Content", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions" + }, + "CreateEnvironmentRequest": { + "description": "Request for `CreateEnvironment`.", + "type": "object", + "properties": { + "from_environment": { + "description": "Optional. The source environment to copy/fork from.\nFormat: `environments/{environment_id}` or `{environment_id}`.\nWhen specified, `sources` and `env` must be empty.", + "type": "string" + }, + "network": { + "description": "Network configuration for the environment.", + "oneOf": [ + { + "$ref": "#/components/schemas/EnvironmentNetworkEgressAllowlist" + }, + { + "type": "string", + "enum": [ + "disabled" + ], + "x-google-enum-descriptions": [ + "All network egress is blocked." + ] + } + ] + }, + "sources": { + "description": "Sources to be mounted into the environment.", + "type": "array", + "items": { + "$ref": "#/components/schemas/Source" + } + } + }, + "x-speakeasy-exports": [ + { + "name": "CreateEnvironmentRequest", + "group": "environments" + } + ], + "x-speakeasy-model-namespace": "environments" + }, + "CreateVoiceRequest": { + "description": "Request message for `VoicesService.CreateVoice`.", + "type": "object", + "properties": { + "store": { + "description": "Optional. Whether the created voice is persisted and managed by Google.\n\n* When `true`, Google stores the voice and returns `Voice.id` (for example,\n `voice_abc123def456`), which can be managed via `GetVoice`, `ListVoices`,\n and `DeleteVoice` and referenced by ID in synthesis requests. Stored\n voices expire after 1 year of inactivity; using a stored voice in speech\n synthesis or as a `base_voice` in `CreateVoice` extends its\n `expire_time`. Projects are subject to a maximum active stored voice\n quota; exceeding the quota returns `RESOURCE_EXHAUSTED`.\n* When `false` (default), the voice is not stored by Google and `Voice.key`\n (for example, `voicekey_...`) is returned for client-side storage and\n synthesis. Optional discovery metadata fields on `voice` are not\n persisted or returned when `store` is `false`.\n* Required to be `true` when `voice.type` is `\"prompted\"`\n (otherwise fails with `INVALID_ARGUMENT`).", + "type": "boolean" + }, + "voice": { + "description": "Required. The voice to create.\n`voice.model` is optional; if omitted, the service selects the default\nvoice creation model. Output-only fields on `Voice` (`id`, `key`,\n`expire_time`, `usage`) are ignored if set.", + "$ref": "#/components/schemas/Voice" + } + }, + "required": [ + "voice" + ], + "x-speakeasy-exports": [ + { + "name": "CreateVoiceRequest", + "group": "voices" + } + ], + "x-speakeasy-model-namespace": "voices" + }, + "CreateWebhookRequest": { + "description": "Request message for WebhookService.CreateWebhook.", + "type": "object", + "properties": { + "webhook": { + "description": "Required. The webhook to create.", + "$ref": "#/components/schemas/Webhook" + } + }, + "required": [ + "webhook" + ], + "x-speakeasy-model-namespace": "interactions" + }, + "Credential": { + "description": "Server-managed credential resource stored in Secret Manager.", + "type": "object", + "properties": { + "create_time": { + "description": "Output only. The timestamp when the credential was created.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "id": { + "description": "Required. Output only. Identifier. Unique identifier for the credential.", + "type": "string", + "readOnly": true, + "x-google-identifier": true + }, + "status": { + "description": "Output only. Current status of the credential.", + "type": "string", + "enum": [ + "active", + "revoked" + ], + "readOnly": true, + "x-google-enum-descriptions": [ + "The credential is active and valid for use.", + "The credential has been revoked and is no longer valid." + ] + }, + "type": { + "description": "Required. Output only. The type of credential.", + "type": "string", + "enum": [ + "bearer_token", + "oauth2", + "environment_variable" + ], + "readOnly": true, + "x-google-enum-descriptions": [ + "Static token injected as header. No refresh logic.", + "Auto-refresh expired access tokens using stored refresh token.", + "Environment variable injected into sandbox container." + ] + }, + "update_time": { + "description": "Output only. The timestamp when the credential was last updated.", + "type": "string", + "format": "date-time", + "readOnly": true + } + }, + "required": [ + "id" + ], + "x-speakeasy-exports": [ + { + "name": "Credential", + "group": "credentials", + "representation": "model" + } + ], + "x-speakeasy-model-namespace": "credentials" + }, + "CredentialCreateParams": { + "description": "Represents the fields of a Credential provided on creation.", + "oneOf": [ + { + "$ref": "#/components/schemas/EnvironmentVariableConfig" + }, + { + "$ref": "#/components/schemas/HttpBearerConfig" + }, + { + "$ref": "#/components/schemas/OAuth2Config" + } + ], + "x-speakeasy-exports": [ + { + "name": "CredentialCreateParams", + "group": "credentials", + "representation": "input" + } + ], + "x-speakeasy-model-namespace": "credentials" + }, + "CredentialUpdateParams": { + "description": "Represents the fields of a Credential that can be updated.", + "oneOf": [ + { + "$ref": "#/components/schemas/EnvironmentVariableUpdateConfig" + }, + { + "$ref": "#/components/schemas/HttpBearerUpdateConfig" + }, + { + "$ref": "#/components/schemas/OAuth2UpdateConfig" + } + ], + "x-speakeasy-exports": [ + { + "name": "CredentialUpdate", + "group": "credentials", + "representation": "input" + } + ], + "x-speakeasy-model-namespace": "credentials", + "x-speakeasy-name-override": "CredentialUpdate" + }, + "DeepResearchAgentConfig": { + "description": "Configuration for the Deep Research agent.", + "type": "object", + "properties": { + "collaborative_planning": { + "description": "Enables human-in-the-loop planning for the Deep Research agent. If set to\ntrue, the Deep Research agent will provide a research plan in its response.\nThe agent will then proceed only if the user confirms the plan in the next\nturn.", + "type": "boolean" + }, + "enable_bigquery_tool": { + "description": "Enables bigquery tool for the Deep Research agent.", + "type": "boolean" + }, + "thinking_summaries": { + "description": "Whether to include thought summaries in the response.", + "$ref": "#/components/schemas/ThinkingSummaries" + }, + "type": { + "const": "deep-research" + }, + "visualization": { + "description": "Whether to include visualizations in the response.", + "type": "string", + "enum": [ + "off", + "auto" + ], + "x-google-enum-descriptions": [ + "Do not include visualizations.", + "Automatically include visualizations." + ] + } + }, + "required": [ + "type" + ], + "x-speakeasy-exports": [ + { + "name": "DeepResearchAgentConfig", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions", + "x-speakeasy-unknown-values": "disallow" + }, + "DeleteVoiceResponse": { + "description": "Response message for `VoicesService.DeleteVoice`.", + "type": "object", + "x-speakeasy-exports": [ + { + "name": "VoiceDeleteResponse", + "group": "voices" + } + ], + "x-speakeasy-model-namespace": "voices" + }, + "DocumentContent": { + "description": "A document content block.", + "type": "object", + "properties": { + "data": { + "description": "The document content.", + "type": "string", + "format": "byte", + "x-speakeasy-base64-input-mode": "file" + }, + "mime_type": { + "description": "The mime type of the document.", + "type": "string", + "enum": [ + "application/pdf", + "text/csv", + "application/vnd.openxmlformats-officedocument.presentationml.presentation", + "application/vnd.ms-powerpoint", + "application/vnd.oasis.opendocument.presentation", + "application/vnd.openxmlformats-officedocument.wordprocessingml.document", + "application/msword", + "application/vnd.openxmlformats-officedocument.wordprocessingml.template", + "application/vnd.oasis.opendocument.text", + "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", + "application/vnd.ms-excel", + "application/vnd.oasis.opendocument.spreadsheet" + ], + "x-google-enum-descriptions": [ + "PDF document format", + "CSV document format", + "PPTX presentation format", + "PPT presentation format", + "ODP presentation format", + "DOCX document format", + "DOC document format", + "DOTX document template format", + "ODT document format", + "XLSX spreadsheet format", + "XLS spreadsheet format", + "ODS spreadsheet format" + ] + }, + "type": { + "const": "document" + }, + "uri": { + "description": "The URI of the document.", + "type": "string" + } + }, + "required": [ + "type" + ], + "example": { + "type": "document", + "data": "BASE64_ENCODED_DOCUMENT", + "mime_type": "application/pdf" + }, + "x-example-summaries": [ + "Document" + ], + "x-speakeasy-exports": [ + { + "name": "DocumentContent", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions" + }, + "DocumentDelta": { + "type": "object", + "properties": { + "data": { + "type": "string", + "format": "byte", + "x-speakeasy-base64-input-mode": "file" + }, + "mime_type": { + "type": "string", + "enum": [ + "application/pdf", + "text/csv", + "application/vnd.openxmlformats-officedocument.presentationml.presentation", + "application/vnd.ms-powerpoint", + "application/vnd.oasis.opendocument.presentation", + "application/vnd.openxmlformats-officedocument.wordprocessingml.document", + "application/msword", + "application/vnd.openxmlformats-officedocument.wordprocessingml.template", + "application/vnd.oasis.opendocument.text", + "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", + "application/vnd.ms-excel", + "application/vnd.oasis.opendocument.spreadsheet" + ], + "x-google-enum-descriptions": [ + "PDF document format", + "CSV document format", + "PPTX presentation format", + "PPT presentation format", + "ODP presentation format", + "DOCX document format", + "DOC document format", + "DOTX document template format", + "ODT document format", + "XLSX spreadsheet format", + "XLS spreadsheet format", + "ODS spreadsheet format" + ] + }, + "type": { + "const": "document" + }, + "uri": { + "type": "string" + } + }, + "required": [ + "type" + ], + "x-speakeasy-model-namespace": "interactions" + }, + "DynamicAgentConfig": { + "description": "Configuration for dynamic agents.", + "type": "object", + "properties": { + "type": { + "const": "dynamic" + } + }, + "required": [ + "type" + ], + "additionalProperties": true, + "x-speakeasy-exports": [ + { + "name": "DynamicAgentConfig", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions", + "x-speakeasy-unknown-values": "disallow" + }, + "EgressRule": { + "description": "A single domain allowlist rule with optional header injection.", + "type": "object", + "properties": { + "credential": { + "description": "Optional. Reference to a server-managed Credential resource by ID.", + "type": "string" + }, + "domain": { + "description": "Domain to allow outbound requests to. Supports wildcards (e.g.\n'*.googleapis.com'). Use '*' to allow all domains.", + "type": "string" + }, + "transform": { + "description": "Headers to inject on all outbound requests matching this domain. Accepts a single dict or a list of dicts. The egress proxy injects these automatically.", + "oneOf": [ + { + "description": "A list of headers to inject.", + "type": "array", + "items": { + "description": "A single header to inject.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + { + "description": "A single header injection mapping, e.g., {\"Authorization\": \"Bearer token\"}.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + ], + "x-speakeasy-param-sensitive": true + } + }, + "required": [ + "domain" + ], + "x-speakeasy-model-namespace": "interactions", + "x-speakeasy-name-override": "AllowlistEntry" + }, + "Empty": { + "description": "A generic empty message that you can re-use to avoid defining duplicated\nempty messages in your APIs. A typical example is to use it as the request\nor the response type of an API method. For instance:\n\n service Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);\n }", + "type": "object", + "x-speakeasy-exports": [ + { + "name": "InteractionDeleteResponse", + "group": "interactions" + }, + { + "name": "AgentDeleteResponse", + "group": "agents" + }, + { + "name": "WebhookDeleteResponse", + "group": "webhooks" + }, + { + "name": "TriggerDeleteResponse", + "group": "triggers" + }, + { + "name": "EnvironmentDeleteResponse", + "group": "environments" + }, + { + "name": "CredentialDeleteResponse", + "group": "credentials" + } + ], + "x-speakeasy-model-namespace": "interactions" + }, + "EnvVar": { + "description": "An environment variable to set in the execution environment.", + "type": "object", + "properties": { + "credential": { + "description": "Optional reference to a server-managed Credential resource by ID.", + "type": "string" + }, + "value": { + "description": "Direct string value for plain environment variables.", + "type": "string" + } + }, + "x-speakeasy-model-namespace": "interactions" + }, + "Environment": { + "description": "An execution environment for an agent.", + "type": "object", + "properties": { + "created": { + "description": "Output only. The time at which the environment was created in ISO 8601 format\n(YYYY-MM-DDThh:mm:ssZ).", + "type": "string", + "readOnly": true + }, + "file_count": { + "description": "Output only. The number of files in the environment, output only.", + "type": "string", + "format": "int64", + "readOnly": true + }, + "id": { + "description": "Required. Output only. The ID of the environment.", + "type": "string", + "readOnly": true + }, + "last_accessed": { + "description": "Output only. The time at which the environment was last accessed in ISO 8601 format\n(YYYY-MM-DDThh:mm:ssZ).", + "type": "string", + "readOnly": true + }, + "network": { + "description": "Network configuration for the environment.", + "oneOf": [ + { + "$ref": "#/components/schemas/EnvironmentNetworkEgressAllowlist" + }, + { + "type": "string", + "enum": [ + "disabled" + ], + "x-google-enum-descriptions": [ + "All network egress is blocked." + ] + } + ] + }, + "size_bytes": { + "description": "Output only. The total size of the environment files in bytes, output only.", + "type": "string", + "format": "int64", + "readOnly": true + }, + "sources": { + "description": "Sources to be mounted into the environment.", + "type": "array", + "items": { + "$ref": "#/components/schemas/Source" + } + }, + "status": { + "description": "Output only. The status of the environment container.", + "type": "string", + "enum": [ + "active", + "expired" + ], + "readOnly": true, + "x-google-enum-descriptions": [ + "", + "" + ] + }, + "updated": { + "description": "Output only. The time at which the environment was last updated in ISO 8601 format\n(YYYY-MM-DDThh:mm:ssZ).", + "type": "string", + "readOnly": true + } + }, + "required": [ + "id" + ], + "x-speakeasy-exports": [ + { + "name": "Environment", + "group": "environments" + } + ], + "x-speakeasy-model-namespace": "environments" + }, + "EnvironmentConfig": { + "description": "Configuration for a custom environment.", + "type": "object", + "properties": { + "env": { + "description": "Environment variables to set in the sandbox environment.", + "type": "object", + "additionalProperties": { + "oneOf": [ + { + "$ref": "#/components/schemas/EnvVar" + }, + { + "type": "string" + } + ] + } + }, + "environment_id": { + "description": "Optional. The environment ID for the interaction. If specified, the request will\nupdate the existing environment instead of creating a new one.", + "type": "string" + }, + "network": { + "description": "Network configuration for the environment.", + "oneOf": [ + { + "$ref": "#/components/schemas/EnvironmentNetworkEgressAllowlist" + }, + { + "type": "string", + "enum": [ + "disabled" + ], + "x-google-enum-descriptions": [ + "All network egress is blocked." + ] + } + ] + }, + "sources": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Source" + } + }, + "type": { + "const": "remote" + } + }, + "required": [ + "type" + ], + "examples": [ + { + "type": "remote", + "sources": [ + { + "type": "inline", + "content": "You are a data analyst. Always include visualizations and export results as PDF.", + "target": ".agents/AGENTS.md" + }, + { + "type": "inline", + "content": "---\nname: slide-maker\ndescription: Create HTML slide decks\n---\n# Slide Maker\n\nWhen asked to create a presentation:\n1. Analyze the input data\n2. Create an HTML slide deck with reveal.js\n3. Save to /workspace/output/slides.html", + "target": ".agents/skills/slide-maker/SKILL.md" + } + ] + }, + { + "type": "remote", + "sources": [ + { + "type": "repository", + "source": "https://github.com/my-org/my-skills.git", + "target": ".agents/skills" + }, + { + "type": "gcs", + "source": "gs://my-bucket/my-folder", + "target": "/workspace/data" + } + ] + }, + { + "type": "remote", + "network": { + "allowlist": [ + { + "domain": "pypi.org" + }, + { + "domain": "*.github.com" + } + ] + } + }, + { + "type": "remote", + "network": { + "allowlist": [ + { + "domain": "api.github.com", + "transform": { + "Authorization": "Bearer YOUR_GITHUB_TOKEN" + } + } + ] + } + } + ], + "x-example-summaries": [ + "Inline Sources", + "External Sources", + "Network Allowlist", + "Proxy Credentials" + ], + "x-speakeasy-exports": [ + { + "name": "Environment", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions", + "x-speakeasy-name-override": "Environment", + "x-speakeasy-unknown-values": "disallow" + }, + "EnvironmentFile": { + "description": "Metadata for a file or directory within an environment.", + "type": "object", + "properties": { + "created": { + "description": "Output only. The creation time of the file/directory.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "mime_type": { + "description": "Output only. The MIME type of the file (e.g., \"text/python\", \"image/png\").\nEmpty for directories.\nNOLINT", + "type": "string", + "readOnly": true + }, + "modified": { + "description": "Output only. The modification time of the file/directory.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "name": { + "description": "Output only. The name of the file or directory (e.g., \"main.py\" or \"src\").", + "type": "string", + "readOnly": true + }, + "path": { + "description": "Output only. The full relative path within the environment\n(e.g., \"workspace/src/main.py\").", + "type": "string", + "readOnly": true + }, + "size_bytes": { + "description": "Output only. The size of the file/directory in bytes.\nNOLINT", + "type": "string", + "format": "int64", + "readOnly": true + }, + "type": { + "description": "Output only. The type of the entry.", + "type": "string", + "enum": [ + "file", + "directory" + ], + "readOnly": true, + "x-google-enum-descriptions": [ + "A regular file.", + "A directory." + ] + } + }, + "x-speakeasy-exports": [ + { + "name": "EnvironmentFile", + "group": "environments" + } + ], + "x-speakeasy-model-namespace": "environments" + }, + "EnvironmentNetworkEgressAllowlist": { + "description": "Network egress configuration for the environment.", + "type": "object", + "properties": { + "allowlist": { + "description": "List of allowed domains and their configurations. Set to `\"disabled\"`\nto block all network egress.", + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/components/schemas/EgressRule" + } + }, + { + "title": "Disabled", + "type": "string", + "enum": [ + "disabled" + ], + "x-google-enum-descriptions": [ + "All network egress is blocked." + ] + } + ] + } + }, + "example": { + "allowlist": [ + { + "domain": "github.com", + "transform": [ + { + "Authorization": "Bearer your-token" + } + ] + }, + { + "domain": "*.googleapis.com" + } + ] + }, + "x-example-summaries": [ + "Network Allowlist" + ], + "x-speakeasy-model-namespace": "interactions" + }, + "EnvironmentVariableConfig": { + "description": "Configuration for environment variable credentials.", + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "injection_location": { + "description": "Required. Locations where the environment variable can be injected in\noutgoing HTTP requests. Must contain at least one location.\nAccepts either a single location (e.g. \"header\") or an array of locations.", + "oneOf": [ + { + "$ref": "#/components/schemas/InjectionLocation" + }, + { + "type": "array", + "items": { + "$ref": "#/components/schemas/InjectionLocation" + } + } + ] + }, + "trusted_domains": { + "description": "Optional. List of domains allowed to receive this environment variable\nvalue in HTTP requests.", + "type": "array", + "items": { + "type": "string" + } + }, + "type": { + "const": "environment_variable" + }, + "value": { + "description": "Required. Input only. Secret value of the environment variable. Write-only; never\nreturned in responses.", + "type": "string", + "writeOnly": true, + "x-speakeasy-param-sensitive": true + } + }, + "required": [ + "id", + "injection_location", + "type", + "value" + ], + "x-speakeasy-exports": [ + { + "name": "EnvironmentVariableConfig", + "group": "credentials" + } + ], + "x-speakeasy-model-namespace": "credentials" + }, + "EnvironmentVariableUpdateConfig": { + "description": "Configuration for updating environment variable credentials.", + "type": "object", + "properties": { + "injection_location": { + "description": "Optional. Locations where the environment variable can be injected in\noutgoing HTTP requests.\nAccepts either a single location (e.g. \"header\") or an array of locations.", + "oneOf": [ + { + "$ref": "#/components/schemas/InjectionLocation" + }, + { + "type": "array", + "items": { + "$ref": "#/components/schemas/InjectionLocation" + } + } + ] + }, + "trusted_domains": { + "description": "Optional. List of domains allowed to receive this environment variable\nvalue in HTTP requests.", + "type": "array", + "items": { + "type": "string" + } + }, + "type": { + "const": "environment_variable" + }, + "value": { + "description": "Optional. Input only. Secret value of the environment variable. Write-only; never\nreturned in responses.", + "type": "string", + "writeOnly": true, + "x-speakeasy-param-sensitive": true + } + }, + "required": [ + "type" + ], + "x-speakeasy-exports": [ + { + "name": "EnvironmentVariableUpdateConfig", + "group": "credentials" + } + ], + "x-speakeasy-model-namespace": "credentials" + }, + "Error": { + "description": "Error message from an interaction.", + "type": "object", + "properties": { + "code": { + "description": "A URI that identifies the error type.", + "type": "string" + }, + "message": { + "description": "A human-readable error message.", + "type": "string" + } + }, + "x-speakeasy-exports": [ + { + "name": "Error", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions" + }, + "ErrorEvent": { + "type": "object", + "properties": { + "error": { + "$ref": "#/components/schemas/Error" + }, + "event_id": { + "description": "The event_id token to be used to resume the interaction stream, from\nthis event.", + "type": "string" + }, + "event_type": { + "const": "error" + } + }, + "required": [ + "event_type" + ], + "example": { + "error": { + "code": "not_found", + "message": "Failed to get completed interaction: Result not found." + }, + "event_type": "error" + }, + "x-example-summaries": [ + "Error Event" + ], + "x-speakeasy-exports": [ + { + "name": "ErrorEvent", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions" + }, + "ExaAISearchConfig": { + "description": "Used to specify configuration for ExaAISearch.", + "type": "object", + "properties": { + "api_key": { + "description": "Required. The API key for ExaAiSearch.", + "type": "string", + "x-speakeasy-param-sensitive": true + }, + "custom_config": { + "description": "Optional. This field can be used to pass any parameter from the Exa.ai Search API.", + "type": "object", + "additionalProperties": { + "description": "Properties of the object." + } + } + }, + "required": [ + "api_key" + ], + "x-speakeasy-model-namespace": "interactions" + }, + "FileCitation": { + "description": "A file citation annotation.", + "type": "object", + "properties": { + "custom_metadata": { + "description": "User provided metadata about the retrieved context.", + "type": "object", + "additionalProperties": { + "description": "Properties of the object." + } + }, + "document_uri": { + "description": "The URI of the file.", + "type": "string" + }, + "end_index": { + "description": "End of the attributed segment, exclusive.", + "type": "integer", + "format": "int32" + }, + "file_name": { + "description": "The name of the file.", + "type": "string" + }, + "media_id": { + "description": "Media ID in-case of image citations, if applicable.", + "type": "string" + }, + "page_number": { + "description": "Page number of the cited document, if applicable.", + "type": "integer", + "format": "int32" + }, + "source": { + "description": "Source attributed for a portion of the text.", + "type": "string" + }, + "start_index": { + "description": "Start of segment of the response that is attributed to this source.\n\nIndex indicates the start of the segment, measured in bytes.", + "type": "integer", + "format": "int32" + }, + "type": { + "const": "file_citation" + } + }, + "required": [ + "type" + ], + "x-speakeasy-exports": [ + { + "name": "FileCitation", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions" + }, + "FileContent": { + "description": "Content of a single file in the codebase.", + "type": "object", + "properties": { + "content": { + "description": "The UTF-8 encoded text content of the file.", + "type": "string" + }, + "path": { + "description": "The relative path of the file from the project root.", + "type": "string" + } + }, + "x-speakeasy-model-namespace": "interactions" + }, + "FileSearch": { + "description": "A tool that can be used by the model to search files.", + "type": "object", + "properties": { + "file_search_store_names": { + "description": "The file search store names to search.", + "type": "array", + "items": { + "type": "string" + } + }, + "metadata_filter": { + "description": "Metadata filter to apply to the semantic retrieval documents and chunks.", + "type": "string" + }, + "top_k": { + "description": "The number of semantic retrieval chunks to retrieve.", + "type": "integer", + "format": "int32" + }, + "type": { + "const": "file_search" + } + }, + "required": [ + "type" + ], + "x-speakeasy-model-namespace": "interactions" + }, + "FileSearchCallDelta": { + "type": "object", + "properties": { + "signature": { + "description": "A signature hash for backend validation.", + "type": "string", + "format": "byte", + "x-speakeasy-base64-input-mode": "file" + }, + "type": { + "const": "file_search_call" + } + }, + "required": [ + "type" + ], + "x-speakeasy-model-namespace": "interactions" + }, + "FileSearchCallStep": { + "description": "File Search call step.", + "type": "object", + "properties": { + "id": { + "description": "Required. A unique ID for this specific tool call.", + "type": "string" + }, + "signature": { + "description": "A signature hash for backend validation.", + "type": "string", + "format": "byte", + "x-speakeasy-base64-input-mode": "file" + }, + "type": { + "const": "file_search_call" + } + }, + "required": [ + "id", + "type" + ], + "example": { + "type": "file_search_call", + "id": "file_call_88192" + }, + "x-example-summaries": [ + "FileSearchCallStep" + ], + "x-speakeasy-exports": [ + { + "name": "FileSearchCallStep", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions" + }, + "FileSearchResult": { + "description": "The result of the File Search.", + "type": "object", + "x-speakeasy-model-namespace": "interactions" + }, + "FileSearchResultDelta": { + "type": "object", + "properties": { + "result": { + "type": "array", + "items": { + "$ref": "#/components/schemas/FileSearchResult" + } + }, + "signature": { + "description": "A signature hash for backend validation.", + "type": "string", + "format": "byte", + "x-speakeasy-base64-input-mode": "file" + }, + "type": { + "const": "file_search_result" + } + }, + "required": [ + "result", + "type" + ], + "x-speakeasy-model-namespace": "interactions" + }, + "FileSearchResultStep": { + "description": "File Search result step.", + "type": "object", + "properties": { + "call_id": { + "description": "Required. ID to match the ID from the function call block.", + "type": "string" + }, + "signature": { + "description": "A signature hash for backend validation.", + "type": "string", + "format": "byte", + "x-speakeasy-base64-input-mode": "file" + }, + "type": { + "const": "file_search_result" + } + }, + "required": [ + "call_id", + "type" + ], + "example": { + "type": "file_search_result", + "call_id": "file_call_88192" + }, + "x-example-summaries": [ + "FileSearchResultStep" + ], + "x-speakeasy-exports": [ + { + "name": "FileSearchResultStep", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions" + }, + "Filter": { + "description": "Config for filters.", + "type": "object", + "properties": { + "metadata_filter": { + "description": "Optional. String for metadata filtering.", + "type": "string" + }, + "vector_distance_threshold": { + "description": "Optional. Only returns contexts with vector distance smaller than the\nthreshold.", + "type": "number", + "format": "double" + }, + "vector_similarity_threshold": { + "description": "Optional. Only returns contexts with vector similarity larger than the\nthreshold.", + "type": "number", + "format": "double" + } + }, + "x-speakeasy-model-namespace": "interactions" + }, + "FindRequest": { + "description": "Request parameters specific to FIND sessions, used for discovering\nvulnerabilities in a codebase.", + "type": "object", + "properties": { + "description": { + "description": "Additional context or custom instructions provided by the user to guide\nthe vulnerability analysis.", + "type": "string" + }, + "finding_id": { + "description": "The identifier of a specific finding to verify. This is primarily used in\nVERIFY mode to focus the agent's execution-based validation on a single\nvulnerability.", + "type": "string" + }, + "mode": { + "description": "The mode of the find session.", + "type": "string", + "enum": [ + "scan", + "verify" + ], + "x-google-enum-descriptions": [ + "Fast scan using only the initial classifier.", + "Performs classification followed by detailed investigation." + ] + }, + "source_files": { + "description": "A list of source files to provide as context for the scan.", + "type": "array", + "items": { + "$ref": "#/components/schemas/FileContent" + } + } + }, + "x-speakeasy-model-namespace": "interactions" + }, + "FixRequest": { + "description": "Request parameters specific to FIX sessions, used for generating and\nvalidating security patches.", + "type": "object", + "properties": { + "description": { + "description": "Additional context or custom instructions provided by the user to guide\nthe patch generation process.", + "type": "string" + }, + "finding_id": { + "description": "The identifier of the specific security finding to be remediated. This ID\nmaps to a previously discovered vulnerability.", + "type": "string" + }, + "source_files": { + "description": "A list of source files providing context for the remediation. These files\nare typically the ones containing the identified vulnerability.", + "type": "array", + "items": { + "$ref": "#/components/schemas/FileContent" + } + } + }, + "x-speakeasy-model-namespace": "interactions" + }, + "Function": { + "description": "A tool that can be used by the model.", + "type": "object", + "properties": { + "description": { + "description": "A description of the function.", + "type": "string" + }, + "name": { + "description": "The name of the function.", + "type": "string" + }, + "parameters": { + "description": "The JSON Schema for the function's parameters.\n\nSupports a subset of JSON Schema. `minLength`, `maxLength`,\n`minProperties`, `maxProperties`, `uniqueItems`, `contains`,\n`minContains`, and `maxContains` are ignored and not enforced." + }, + "type": { + "const": "function" + } + }, + "required": [ + "type" + ], + "x-speakeasy-exports": [ + { + "name": "Function", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions" + }, + "FunctionCallStep": { + "description": "A function tool call step.", + "type": "object", + "properties": { + "arguments": { + "description": "Required. The arguments to pass to the function.", + "type": "object", + "additionalProperties": { + "description": "Properties of the object." + } + }, + "id": { + "description": "Required. A unique ID for this specific tool call.", + "type": "string" + }, + "name": { + "description": "Required. The name of the tool to call.", + "type": "string" + }, + "type": { + "const": "function_call" + } + }, + "required": [ + "arguments", + "id", + "name", + "type" + ], + "example": { + "name": "get_weather", + "type": "function_call", + "arguments": { + "location": "Boston, MA" + }, + "id": "call_98231" + }, + "x-example-summaries": [ + "FunctionCallStep" + ], + "x-speakeasy-exports": [ + { + "name": "FunctionCallStep", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions" + }, + "FunctionResultDelta": { + "type": "object", + "properties": { + "is_error": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "result": { + "oneOf": [ + { + "title": "FunctionResultSubcontentList", + "type": "array", + "items": { + "$ref": "#/components/schemas/FunctionResultSubContent" + } + }, + { + "type": "object" + }, + { + "type": "string" + } + ] + }, + "type": { + "const": "function_result" + } + }, + "required": [ + "result", + "type" + ], + "x-speakeasy-model-namespace": "interactions" + }, + "FunctionResultStep": { + "description": "Result of a function tool call.", + "type": "object", + "properties": { + "call_id": { + "description": "Required. ID to match the ID from the function call block.", + "type": "string" + }, + "is_error": { + "description": "Whether the tool call resulted in an error.", + "type": "boolean" + }, + "name": { + "description": "The name of the tool that was called.", + "type": "string" + }, + "result": { + "description": "Required. The result of the tool call.", + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/components/schemas/FunctionResultSubContent" + } + }, + { + "type": "object" + }, + { + "type": "string" + } + ] + }, + "type": { + "const": "function_result" + } + }, + "required": [ + "call_id", + "result", + "type" + ], + "example": { + "name": "get_weather", + "type": "function_result", + "call_id": "call_98231", + "result": [ + { + "type": "text", + "text": "{\"weather\":\"sunny\"}" + } + ] + }, + "x-example-summaries": [ + "FunctionResultStep" + ], + "x-speakeasy-exports": [ + { + "name": "FunctionResultStep", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions" + }, + "FunctionResultSubContent": { + "oneOf": [ + { + "$ref": "#/components/schemas/AudioContent" + }, + { + "$ref": "#/components/schemas/DocumentContent" + }, + { + "$ref": "#/components/schemas/ImageContent" + }, + { + "$ref": "#/components/schemas/TextContent" + }, + { + "$ref": "#/components/schemas/VideoContent" + } + ], + "x-speakeasy-model-namespace": "interactions", + "x-speakeasy-name-override": "FunctionResultSubcontent" + }, + "GenerationConfig": { + "description": "Configuration parameters for model interactions.", + "type": "object", + "properties": { + "image_config": { + "description": "Configuration for image interaction.", + "$ref": "#/components/schemas/ImageConfig", + "deprecated": true + }, + "max_output_tokens": { + "description": "The maximum number of tokens to include in the response.", + "type": "integer", + "format": "int32" + }, + "seed": { + "description": "Seed used in decoding for reproducibility.", + "type": "integer", + "format": "int32" + }, + "speech_config": { + "description": "Optional. Speech and multi-speaker configuration.", + "oneOf": [ + { + "$ref": "#/components/schemas/SpeakerConfig" + }, + { + "type": "array", + "items": { + "$ref": "#/components/schemas/SpeechConfig" + } + } + ] + }, + "stop_sequences": { + "description": "A list of character sequences that will stop output interaction.", + "type": "array", + "items": { + "type": "string" + } + }, + "temperature": { + "description": "Controls the randomness of the output.", + "type": "number", + "deprecated": true, + "format": "float" + }, + "thinking_level": { + "description": "The level of thought tokens that the model should generate.", + "$ref": "#/components/schemas/ThinkingLevel" + }, + "thinking_summaries": { + "description": "Whether to include thought summaries in the response.", + "$ref": "#/components/schemas/ThinkingSummaries" + }, + "tool_choice": { + "description": "The tool choice configuration.", + "oneOf": [ + { + "$ref": "#/components/schemas/ToolChoiceConfig" + }, + { + "$ref": "#/components/schemas/ToolChoiceType" + } + ] + }, + "top_p": { + "description": "The maximum cumulative probability of tokens to consider when sampling.", + "type": "number", + "deprecated": true, + "format": "float" + }, + "transcription_config": { + "description": "Optional. Configuration for speech recognition (transcription). If present, ASR is\nenabled.", + "$ref": "#/components/schemas/TranscriptionConfig" + }, + "video_config": { + "description": "Configuration for video generation.", + "$ref": "#/components/schemas/VideoConfig" + } + }, + "x-speakeasy-exports": [ + { + "name": "GenerationConfig", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions" + }, + "GetEnvironmentFilesResponse": { + "description": "Response for `GetEnvironmentFiles`.", + "type": "object", + "properties": { + "files": { + "description": "If the requested path is a directory, this contains its contents.\nIf the requested path is a file, this contains a single entry with the\nfile's metadata.\nIf alt=media was specified, this is empty (content is served via `blob`).", + "type": "array", + "items": { + "$ref": "#/components/schemas/EnvironmentFile" + } + }, + "next_page_token": { + "description": "Pagination token for directory listing.\nNOLINT", + "type": "string" + } + }, + "x-speakeasy-exports": [ + { + "name": "GetEnvironmentFilesResponse", + "group": "environments" + } + ], + "x-speakeasy-model-namespace": "environments" + }, + "GetInteractionRequest": { + "description": "Request for InteractionService.GetInteraction.", + "type": "object", + "properties": { + "include_input": { + "description": "If true, includes the input in the response.", + "type": "boolean", + "deprecated": true + }, + "last_event_id": { + "description": "If set, resumes the interaction stream from the chunk after the event\nmarked by the event id. Can only be used if `stream` is true.", + "type": "string" + }, + "name": { + "description": "Required. The name of the interaction to retrieve.\nFormat: interactions/{interaction}", + "type": "string" + }, + "stream": { + "description": "If true, streams the interaction events as Server-Sent Events.", + "type": "boolean" + } + }, + "required": [ + "name" + ], + "x-speakeasy-model-namespace": "interactions" + }, + "GoogleMaps": { + "description": "A tool that can be used by the model to call Google Maps.", + "type": "object", + "properties": { + "enable_widget": { + "description": "Whether to return a widget context token in the tool call result of the\nresponse.", + "type": "boolean" + }, + "latitude": { + "description": "The latitude of the user's location.", + "type": "number", + "format": "double" + }, + "longitude": { + "description": "The longitude of the user's location.", + "type": "number", + "format": "double" + }, + "type": { + "const": "google_maps" + } + }, + "required": [ + "type" + ], + "x-speakeasy-model-namespace": "interactions" + }, + "GoogleMapsCallArguments": { + "description": "The arguments to pass to the Google Maps tool.", + "type": "object", + "properties": { + "queries": { + "description": "The queries to be executed.", + "type": "array", + "items": { + "type": "string" + } + } + }, + "x-speakeasy-model-namespace": "interactions" + }, + "GoogleMapsCallDelta": { + "type": "object", + "properties": { + "arguments": { + "description": "The arguments to pass to the Google Maps tool.", + "$ref": "#/components/schemas/GoogleMapsCallArguments" + }, + "signature": { + "description": "A signature hash for backend validation.", + "type": "string", + "format": "byte", + "x-speakeasy-base64-input-mode": "file" + }, + "type": { + "const": "google_maps_call" + } + }, + "required": [ + "type" + ], + "x-speakeasy-model-namespace": "interactions" + }, + "GoogleMapsCallStep": { + "description": "Google Maps call step.", + "type": "object", + "properties": { + "arguments": { + "description": "The arguments to pass to the Google Maps tool.", + "$ref": "#/components/schemas/GoogleMapsCallStepArguments" + }, + "id": { + "description": "Required. A unique ID for this specific tool call.", + "type": "string" + }, + "signature": { + "description": "A signature hash for backend validation.", + "type": "string", + "format": "byte", + "x-speakeasy-base64-input-mode": "file" + }, + "type": { + "const": "google_maps_call" + } + }, + "required": [ + "id", + "type" + ], + "example": { + "type": "google_maps_call", + "arguments": { + "queries": [ + "parks near San Francisco" + ] + }, + "id": "maps_call_39201" + }, + "x-example-summaries": [ + "GoogleMapsCallStep" + ], + "x-speakeasy-exports": [ + { + "name": "GoogleMapsCallStep", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions" + }, + "GoogleMapsCallStepArguments": { + "description": "The arguments to pass to the Google Maps tool.", + "type": "object", + "properties": { + "queries": { + "description": "The queries to be executed.", + "type": "array", + "items": { + "type": "string" + } + } + }, + "x-speakeasy-exports": [ + { + "name": "GoogleMapsCallArguments", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions", + "x-speakeasy-name-override": "GoogleMapsCallArguments" + }, + "GoogleMapsResult": { + "description": "The result of the Google Maps.", + "type": "object", + "properties": { + "places": { + "description": "The places that were found.", + "type": "array", + "items": { + "$ref": "#/components/schemas/Places" + } + }, + "widget_context_token": { + "description": "Resource name of the Google Maps widget context token.", + "type": "string" + } + }, + "x-speakeasy-model-namespace": "interactions" + }, + "GoogleMapsResultDelta": { + "type": "object", + "properties": { + "result": { + "description": "The results of the Google Maps.", + "type": "array", + "items": { + "$ref": "#/components/schemas/GoogleMapsResult" + } + }, + "signature": { + "description": "A signature hash for backend validation.", + "type": "string", + "format": "byte", + "x-speakeasy-base64-input-mode": "file" + }, + "type": { + "const": "google_maps_result" + } + }, + "required": [ + "type" + ], + "x-speakeasy-model-namespace": "interactions" + }, + "GoogleMapsResultItem": { + "description": "The result of the Google Maps.", + "type": "object", + "properties": { + "places": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GoogleMapsResultPlaces" + } + }, + "widget_context_token": { + "type": "string" + } + }, + "x-speakeasy-exports": [ + { + "name": "GoogleMapsResult", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions", + "x-speakeasy-name-override": "GoogleMapsResult" + }, + "GoogleMapsResultPlaces": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "place_id": { + "type": "string" + }, + "review_snippets": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ReviewSnippet" + } + }, + "url": { + "type": "string" + } + }, + "x-speakeasy-model-namespace": "interactions" + }, + "GoogleMapsResultStep": { + "description": "Google Maps result step.", + "type": "object", + "properties": { + "call_id": { + "description": "Required. ID to match the ID from the function call block.", + "type": "string" + }, + "result": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GoogleMapsResultItem" + } + }, + "signature": { + "description": "A signature hash for backend validation.", + "type": "string", + "format": "byte", + "x-speakeasy-base64-input-mode": "file" + }, + "type": { + "const": "google_maps_result" + } + }, + "required": [ + "call_id", + "result", + "type" + ], + "example": { + "type": "google_maps_result", + "call_id": "maps_call_39201", + "result": [ + { + "places": [ + { + "url": "https://maps.google.com/?cid=12345", + "name": "Golden Gate Park", + "place_id": "ChIJIQBpAG2ahYAR9R7bNdTLg8M" + } + ] + } + ] + }, + "x-example-summaries": [ + "GoogleMapsResultStep" + ], + "x-speakeasy-exports": [ + { + "name": "GoogleMapsResultStep", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions" + }, + "GoogleSearch": { + "description": "A tool that can be used by the model to search Google.", + "type": "object", + "properties": { + "search_types": { + "description": "The types of search grounding to enable.", + "type": "array", + "items": { + "type": "string", + "enum": [ + "web_search", + "image_search", + "enterprise_web_search" + ], + "x-google-enum-descriptions": [ + "Setting this field enables web search. Only text results are returned.", + "Setting this field enables image search. Image bytes are returned.", + "Setting this field enables enterprise web search." + ] + } + }, + "type": { + "const": "google_search" + } + }, + "required": [ + "type" + ], + "x-speakeasy-model-namespace": "interactions" + }, + "GoogleSearchCallArguments": { + "description": "The arguments to pass to Google Search.", + "type": "object", + "properties": { + "queries": { + "description": "Web search queries for the following-up web search.", + "type": "array", + "items": { + "type": "string" + } + } + }, + "x-speakeasy-model-namespace": "interactions" + }, + "GoogleSearchCallDelta": { + "type": "object", + "properties": { + "arguments": { + "$ref": "#/components/schemas/GoogleSearchCallArguments" + }, + "signature": { + "description": "A signature hash for backend validation.", + "type": "string", + "format": "byte", + "x-speakeasy-base64-input-mode": "file" + }, + "type": { + "const": "google_search_call" + } + }, + "required": [ + "arguments", + "type" + ], + "x-speakeasy-model-namespace": "interactions" + }, + "GoogleSearchCallStep": { + "description": "Google Search call step.", + "type": "object", + "properties": { + "arguments": { + "description": "Required. The arguments to pass to Google Search.", + "$ref": "#/components/schemas/GoogleSearchCallStepArguments" + }, + "id": { + "description": "Required. A unique ID for this specific tool call.", + "type": "string" + }, + "search_type": { + "description": "The type of search grounding enabled.", + "type": "string", + "enum": [ + "web_search", + "image_search", + "enterprise_web_search" + ], + "x-google-enum-descriptions": [ + "Setting this field enables web search. Only text results are returned.", + "Setting this field enables image search. Image bytes are returned.", + "Setting this field enables enterprise web search." + ] + }, + "signature": { + "description": "A signature hash for backend validation.", + "type": "string", + "format": "byte", + "x-speakeasy-base64-input-mode": "file" + }, + "type": { + "const": "google_search_call" + } + }, + "required": [ + "arguments", + "id", + "type" + ], + "example": { + "type": "google_search_call", + "arguments": { + "queries": [ + "Who won the men's 100m in Paris 2024?" + ] + }, + "id": "search_call_19201" + }, + "x-example-summaries": [ + "GoogleSearchCallStep" + ], + "x-speakeasy-exports": [ + { + "name": "GoogleSearchCallStep", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions" + }, + "GoogleSearchCallStepArguments": { + "description": "The arguments to pass to Google Search.", + "type": "object", + "properties": { + "queries": { + "description": "Web search queries for the following-up web search.", + "type": "array", + "items": { + "type": "string" + } + } + }, + "x-speakeasy-exports": [ + { + "name": "GoogleSearchCallArguments", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions", + "x-speakeasy-name-override": "GoogleSearchCallArguments" + }, + "GoogleSearchResult": { + "description": "The result of the Google Search.", + "type": "object", + "properties": { + "search_suggestions": { + "description": "Web content snippet that can be embedded in a web page or an app webview.", + "type": "string" + } + }, + "x-speakeasy-model-namespace": "interactions" + }, + "GoogleSearchResultDelta": { + "type": "object", + "properties": { + "is_error": { + "type": "boolean" + }, + "result": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GoogleSearchResult" + } + }, + "signature": { + "description": "A signature hash for backend validation.", + "type": "string", + "format": "byte", + "x-speakeasy-base64-input-mode": "file" + }, + "type": { + "const": "google_search_result" + } + }, + "required": [ + "result", + "type" + ], + "x-speakeasy-model-namespace": "interactions" + }, + "GoogleSearchResultItem": { + "description": "The result of the Google Search.", + "type": "object", + "properties": { + "search_suggestions": { + "description": "Web content snippet that can be embedded in a web page or an app webview.", + "type": "string" + } + }, + "x-speakeasy-exports": [ + { + "name": "GoogleSearchResult", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions", + "x-speakeasy-name-override": "GoogleSearchResult" + }, + "GoogleSearchResultStep": { + "description": "Google Search result step.", + "type": "object", + "properties": { + "call_id": { + "description": "Required. ID to match the ID from the function call block.", + "type": "string" + }, + "is_error": { + "description": "Whether the Google Search resulted in an error.", + "type": "boolean" + }, + "result": { + "description": "Required. The results of the Google Search.", + "type": "array", + "items": { + "$ref": "#/components/schemas/GoogleSearchResultItem" + } + }, + "signature": { + "description": "A signature hash for backend validation.", + "type": "string", + "format": "byte", + "x-speakeasy-base64-input-mode": "file" + }, + "type": { + "const": "google_search_result" + } + }, + "required": [ + "call_id", + "result", + "type" + ], + "example": { + "type": "google_search_result", + "call_id": "search_call_19201", + "result": [ + { + "search_suggestions": "
...
" + } + ] + }, + "x-example-summaries": [ + "GoogleSearchResultStep" + ], + "x-speakeasy-exports": [ + { + "name": "GoogleSearchResultStep", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions" + }, + "GroundingToolCount": { + "description": "The number of grounding tool counts.", + "type": "object", + "properties": { + "count": { + "description": "The number of grounding tool counts.", + "type": "integer", + "format": "int32" + }, + "type": { + "description": "The grounding tool type associated with the count.", + "type": "string", + "enum": [ + "google_search", + "google_maps", + "retrieval" + ], + "x-google-enum-descriptions": [ + "Grounding with Google Web Search and Image Search, & Web Grounding\nfor Enterprise.", + "Grounding with Google Maps.", + "Grounding with customer's data, for example, VertexAISearch." + ] + } + }, + "x-speakeasy-model-namespace": "interactions" + }, + "HarmCategory": { + "type": "string", + "enum": [ + "hate_speech", + "dangerous_content", + "harassment", + "sexually_explicit", + "civic_integrity", + "image_hate", + "image_dangerous_content", + "image_harassment", + "image_sexually_explicit", + "jailbreak" + ], + "x-google-enum-deprecated": [ + false, + false, + false, + false, + true, + false, + false, + false, + false, + false + ], + "x-google-enum-descriptions": [ + "Content that promotes violence or incites hatred against individuals or\ngroups based on certain attributes.", + "Content that promotes, facilitates, or enables dangerous activities.", + "Abusive, threatening, or content intended to bully, torment, or ridicule.", + "Content that contains sexually explicit material.", + "Deprecated: Election filter is not longer supported.\nThe harm category is civic integrity.", + "Images that contain hate speech.", + "Images that contain dangerous content.", + "Images that contain harassment.", + "Images that contain sexually explicit content.", + "Prompts designed to bypass safety filters." + ], + "x-speakeasy-exports": [ + { + "name": "HarmCategory", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions" + }, + "HttpBearerConfig": { + "description": "Configuration for HTTP Bearer token credentials.", + "type": "object", + "properties": { + "header_name": { + "description": "Optional. Header name to inject the token into. Defaults to\n'Authorization'.", + "type": "string" + }, + "id": { + "type": "string" + }, + "prefix": { + "description": "Optional. Prefix to prepend to the token. Defaults to 'Bearer'. Set to ''\nfor no prefix.", + "type": "string" + }, + "token": { + "description": "Required. Input only. The static bearer token. Write-only; never returned in responses.", + "type": "string", + "writeOnly": true, + "x-speakeasy-param-sensitive": true + }, + "type": { + "const": "bearer_token" + } + }, + "required": [ + "id", + "token", + "type" + ], + "x-speakeasy-exports": [ + { + "name": "HttpBearerConfig", + "group": "credentials" + } + ], + "x-speakeasy-model-namespace": "credentials" + }, + "HttpBearerUpdateConfig": { + "description": "Configuration for updating HTTP Bearer token credentials.", + "type": "object", + "properties": { + "header_name": { + "description": "Optional. Header name to inject the token into. Defaults to\n'Authorization'.", + "type": "string" + }, + "prefix": { + "description": "Optional. Prefix to prepend to the token. Defaults to 'Bearer'. Set to ''\nfor no prefix.", + "type": "string" + }, + "token": { + "description": "Optional. Input only. The static bearer token. Write-only; never returned in responses.", + "type": "string", + "writeOnly": true, + "x-speakeasy-param-sensitive": true + }, + "type": { + "const": "bearer_token" + } + }, + "required": [ + "type" + ], + "x-speakeasy-exports": [ + { + "name": "HttpBearerUpdateConfig", + "group": "credentials" + } + ], + "x-speakeasy-model-namespace": "credentials" + }, + "HttpBody": { + "description": "Message that represents an arbitrary HTTP body. It should only be used for\npayload formats that can't be represented as JSON, such as raw binary or\nan HTML page.\n\n\nThis message can be used both in streaming and non-streaming API methods in\nthe request as well as the response.\n\nIt can be used as a top-level request field, which is convenient if one\nwants to extract parameters from either the URL or HTTP template into the\nrequest fields and also want access to the raw HTTP body.\n\nExample:\n\n message GetResourceRequest {\n // A unique request id.\n string request_id = 1;\n\n // The raw HTTP body is bound to this field.\n google.api.HttpBody http_body = 2;\n\n }\n\n service ResourceService {\n rpc GetResource(GetResourceRequest)\n returns (google.api.HttpBody);\n rpc UpdateResource(google.api.HttpBody)\n returns (google.protobuf.Empty);\n\n }\n\nExample with streaming methods:\n\n service CaldavService {\n rpc GetCalendar(stream google.api.HttpBody)\n returns (stream google.api.HttpBody);\n rpc UpdateCalendar(stream google.api.HttpBody)\n returns (stream google.api.HttpBody);\n\n }\n\nUse of this type only changes how the request and response bodies are\nhandled, all other features will continue to work unchanged.", + "type": "object", + "properties": { + "content_type": { + "description": "The HTTP Content-Type header value specifying the content type of the body.", + "type": "string" + }, + "data": { + "description": "The HTTP request/response body as raw binary.", + "type": "string", + "format": "byte", + "x-speakeasy-base64-input-mode": "file" + }, + "extensions": { + "description": "Application specific response metadata. Must be set in the first response\nfor streaming APIs.", + "type": "array", + "items": { + "type": "object", + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL." + } + } + } + }, + "x-speakeasy-model-namespace": "interactions" + }, + "HybridSearch": { + "description": "Config for Hybrid Search.", + "type": "object", + "properties": { + "alpha": { + "description": "Optional. Alpha value controls the weight between dense and sparse vector search\nresults.", + "type": "number", + "format": "float" + } + }, + "x-speakeasy-model-namespace": "interactions" + }, + "ImageConfig": { + "description": "The configuration for image interaction.", + "type": "object", + "properties": { + "aspect_ratio": { + "description": "The aspect ratio of the image to generate. Supported aspect ratios: 1:1,\n2:3, 3:2, 3:4, 4:3, 9:16, 16:9, 21:9.\n\nIf not specified, the model will choose a default aspect ratio based on any\nreference images provided.", + "type": "string", + "enum": [ + "1:1", + "2:3", + "3:2", + "3:4", + "4:3", + "4:5", + "5:4", + "9:16", + "16:9", + "21:9", + "1:8", + "8:1", + "1:4", + "4:1" + ], + "x-google-enum-descriptions": [ + "1:1 aspect ratio.", + "2:3 aspect ratio.", + "3:2 aspect ratio.", + "3:4 aspect ratio.", + "4:3 aspect ratio.", + "4:5 aspect ratio.", + "5:4 aspect ratio.", + "9:16 aspect ratio.", + "16:9 aspect ratio.", + "21:9 aspect ratio.", + "1:8 aspect ratio.", + "8:1 aspect ratio.", + "1:4 aspect ratio.", + "4:1 aspect ratio." + ] + }, + "image_size": { + "description": "Specifies the size of generated images. Supported values are `1K`, `2K`,\n`4K`. If not specified, the model will use default value `1K`.", + "type": "string", + "enum": [ + "1K", + "2K", + "4K", + "512" + ], + "x-google-enum-descriptions": [ + "1K image size.", + "2K image size.", + "4K image size.", + "512 image size." + ] + } + }, + "deprecated": true, + "x-speakeasy-model-namespace": "interactions" + }, + "ImageContent": { + "description": "An image content block.", + "type": "object", + "properties": { + "data": { + "description": "The image content.", + "type": "string", + "format": "byte", + "x-speakeasy-base64-input-mode": "file" + }, + "mime_type": { + "description": "The mime type of the image.", + "type": "string", + "enum": [ + "image/png", + "image/jpeg", + "image/webp", + "image/heic", + "image/heif", + "image/gif", + "image/bmp", + "image/tiff" + ], + "x-google-enum-descriptions": [ + "PNG image format", + "JPEG image format", + "WebP image format", + "HEIC image format", + "HEIF image format", + "GIF image format", + "BMP image format", + "TIFF image format" + ] + }, + "resolution": { + "description": "The resolution of the media.", + "$ref": "#/components/schemas/MediaResolution" + }, + "type": { + "const": "image" + }, + "uri": { + "description": "The URI of the image.", + "type": "string" + } + }, + "required": [ + "type" + ], + "example": { + "type": "image", + "data": "BASE64_ENCODED_IMAGE", + "mime_type": "image/png" + }, + "x-example-summaries": [ + "Image" + ], + "x-speakeasy-exports": [ + { + "name": "ImageContent", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions" + }, + "ImageDelta": { + "type": "object", + "properties": { + "data": { + "type": "string", + "format": "byte", + "x-speakeasy-base64-input-mode": "file" + }, + "mime_type": { + "type": "string", + "enum": [ + "image/png", + "image/jpeg", + "image/webp", + "image/heic", + "image/heif", + "image/gif", + "image/bmp", + "image/tiff" + ], + "x-google-enum-descriptions": [ + "PNG image format", + "JPEG image format", + "WebP image format", + "HEIC image format", + "HEIF image format", + "GIF image format", + "BMP image format", + "TIFF image format" + ] + }, + "resolution": { + "description": "The resolution of the media.", + "$ref": "#/components/schemas/MediaResolution" + }, + "type": { + "const": "image" + }, + "uri": { + "type": "string" + } + }, + "required": [ + "type" + ], + "x-speakeasy-model-namespace": "interactions" + }, + "ImageResponseFormat": { + "description": "Configuration for image output format.", + "type": "object", + "properties": { + "aspect_ratio": { + "description": "The aspect ratio for the image output.", + "type": "string", + "enum": [ + "1:1", + "2:3", + "3:2", + "3:4", + "4:3", + "4:5", + "5:4", + "9:16", + "16:9", + "21:9", + "1:8", + "8:1", + "1:4", + "4:1" + ], + "x-google-enum-descriptions": [ + "1:1 aspect ratio.", + "2:3 aspect ratio.", + "3:2 aspect ratio.", + "3:4 aspect ratio.", + "4:3 aspect ratio.", + "4:5 aspect ratio.", + "5:4 aspect ratio.", + "9:16 aspect ratio.", + "16:9 aspect ratio.", + "21:9 aspect ratio.", + "1:8 aspect ratio.", + "8:1 aspect ratio.", + "1:4 aspect ratio.", + "4:1 aspect ratio." + ] + }, + "delivery": { + "description": "The delivery mode for the image output.", + "type": "string", + "enum": [ + "inline", + "uri" + ], + "x-google-enum-descriptions": [ + "Image data is returned inline in the response.", + "Image data is returned as a URI." + ] + }, + "image_size": { + "description": "The size of the image output.", + "type": "string", + "enum": [ + "512", + "1K", + "2K", + "4K" + ], + "x-google-enum-descriptions": [ + "512px image size.", + "1K image size.", + "2K image size.", + "4K image size." + ] + }, + "mime_type": { + "description": "The MIME type of the image output.", + "type": "string", + "enum": [ + "image/jpeg" + ], + "x-google-enum-descriptions": [ + "JPEG image format." + ] + }, + "type": { + "const": "image" + } + }, + "required": [ + "type" + ], + "example": { + "type": "image", + "aspect_ratio": "16:9", + "image_size": "1K", + "mime_type": "image/jpeg" + }, + "x-example-summaries": [ + "Image Output" + ], + "x-speakeasy-exports": [ + { + "name": "ImageResponseFormat", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions" + }, + "InjectionLocation": { + "type": "string", + "enum": [ + "header", + "query", + "body" + ], + "x-google-enum-descriptions": [ + "Injected into HTTP request headers.", + "Injected into HTTP URL query parameters.", + "Injected into HTTP request body." + ], + "x-speakeasy-exports": [ + { + "name": "InjectionLocation", + "group": "credentials" + } + ], + "x-speakeasy-model-namespace": "credentials" + }, + "Interaction": { + "description": "The Interaction resource.", + "type": "object", + "properties": { + "agent": { + "description": "The name of the `Agent` used for generating the interaction.", + "$ref": "#/components/schemas/AgentOption" + }, + "agent_config": { + "description": "Configuration parameters for the agent interaction.", + "oneOf": [ + { + "$ref": "#/components/schemas/AntigravityAgentConfig" + }, + { + "$ref": "#/components/schemas/CodeMenderAgentConfig" + }, + { + "$ref": "#/components/schemas/DeepResearchAgentConfig" + }, + { + "$ref": "#/components/schemas/DynamicAgentConfig" + } + ] + }, + "background": { + "description": "Input only. Whether to run the model interaction in the background.", + "type": "boolean", + "writeOnly": true + }, + "cached_content": { + "description": "The name of the cached content used as context to serve the prediction. Note: only used in explicit caching, where users can have control over caching (e.g. what content to cache) and enjoy guaranteed cost savings. Format: cachedContents/{cachedContent}", + "type": "string", + "deprecated": true + }, + "continuation_ids": { + "description": "The IDs of all server interactions merged into this response when automatic continuation is enabled, in order (ending with the final hop's ID).\n\nNote: this is added by the SDK.", + "type": "array", + "items": { + "type": "string" + } + }, + "continuation_token": { + "description": "Opaque token to resume a long decode. Output: set when status is\nREQUIRES_CONTINUATION and decoding can be resumed. Input: pass the latest\ntoken back unchanged in CreateInteraction to continue decoding.", + "type": "string", + "format": "byte" + }, + "created": { + "description": "Required. Output only. The time at which the response was created in ISO 8601 format\n(YYYY-MM-DDThh:mm:ssZ).", + "type": "string", + "readOnly": true + }, + "environment": { + "description": "The environment configuration for the interaction. Can be an object\nspecifying remote environment sources or a string referencing an existing\nenvironment ID.", + "oneOf": [ + { + "$ref": "#/components/schemas/EnvironmentConfig" + }, + { + "type": "string" + } + ] + }, + "environment_id": { + "description": "Output only. The environment ID for the interaction. Only populated if environment\nconfig is set in the request.", + "type": "string", + "readOnly": true + }, + "errors": { + "description": "Output only. Diagnostic faults / platform errors recorded on the interaction.", + "type": "array", + "items": { + "$ref": "#/components/schemas/Error" + }, + "readOnly": true + }, + "generation_config": { + "description": "Input only. Configuration parameters for the model interaction.", + "$ref": "#/components/schemas/GenerationConfig", + "writeOnly": true + }, + "id": { + "description": "Required. Output only. A unique identifier for the interaction completion.", + "type": "string", + "default": "", + "readOnly": true + }, + "input": { + "$ref": "#/components/schemas/InteractionsInput" + }, + "labels": { + "description": "The labels with user-defined metadata for the request.\n\nLabel keys and values can be no longer than 63 characters\n(Unicode codepoints) and can only contain lowercase letters, numeric\ncharacters, underscores, and dashes. International characters are allowed.\nLabel values are optional. Label keys must start with a letter.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "model": { + "description": "The name of the `Model` used for generating the interaction.", + "$ref": "#/components/schemas/ModelOption" + }, + "output_audio": { + "description": "The last audio generated by the model in response to the current request.\n\nNote: this is added by the SDK.", + "$ref": "#/components/schemas/AudioContent" + }, + "output_image": { + "description": "The last image generated by the model in response to the current request.\n\nNote: this is added by the SDK.", + "$ref": "#/components/schemas/ImageContent" + }, + "output_text": { + "description": "Concatenated text from the last model output in response to the current request.\n\nNote: this is added by the SDK.", + "type": "string" + }, + "output_video": { + "description": "The last video generated by the model in response to the current request.\n\nNote: this is added by the SDK.", + "$ref": "#/components/schemas/VideoContent" + }, + "previous_interaction_id": { + "description": "The ID of the previous interaction, if any.", + "type": "string" + }, + "response_format": { + "description": "Enforces that the generated response is a JSON object that complies with\nthe JSON schema specified in this field.", + "oneOf": [ + { + "$ref": "#/components/schemas/ResponseFormat" + }, + { + "title": "ResponseFormatList", + "type": "array", + "items": { + "$ref": "#/components/schemas/ResponseFormat" + } + } + ] + }, + "response_mime_type": { + "description": "The mime type of the response. This is required if response_format is set.", + "type": "string", + "deprecated": true + }, + "response_modalities": { + "description": "The requested modalities of the response (TEXT, IMAGE, AUDIO).", + "type": "array", + "deprecated": true, + "items": { + "$ref": "#/components/schemas/ResponseModality" + } + }, + "safety_settings": { + "description": "Safety settings for the interaction.", + "type": "array", + "items": { + "$ref": "#/components/schemas/SafetySetting" + } + }, + "service_tier": { + "description": "The service tier for the interaction.", + "$ref": "#/components/schemas/ServiceTier" + }, + "status": { + "description": "Required. Output only. The status of the interaction.", + "type": "string", + "enum": [ + "in_progress", + "requires_action", + "completed", + "failed", + "cancelled", + "incomplete", + "budget_exceeded", + "queued", + "requires_continuation" + ], + "readOnly": true, + "x-google-enum-deprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false + ], + "x-google-enum-descriptions": [ + "The interaction is in progress.", + "The interaction requires action/input from the user.", + "The interaction is completed.", + "The interaction failed.", + "The interaction was cancelled.", + "The interaction is completed, but contains incomplete results (e.g.\nhitting max_tokens).", + "Deprecated: Token and execution budget exhaustion returns INCOMPLETE\n(11).", + "The interaction is queued, waiting for processing (e.g. waiting for\noff-peak capacity).", + "The interaction requires at least one more request for it to be\ncompleted. The next request should set the continuation_token to the one\nreturned by this request." + ] + }, + "steps": { + "description": "Required. Output only. The steps that make up the interaction, when included in the response.", + "type": "array", + "items": { + "$ref": "#/components/schemas/Step" + }, + "readOnly": true + }, + "store": { + "description": "Input only. Whether to store the response and request for later retrieval.", + "type": "boolean", + "writeOnly": true + }, + "stream": { + "description": "Input only. Whether the interaction will be streamed.", + "type": "boolean", + "writeOnly": true + }, + "system_instruction": { + "description": "System instruction for the interaction.", + "type": "string" + }, + "tools": { + "description": "A list of tool declarations the model may call during interaction.", + "type": "array", + "items": { + "$ref": "#/components/schemas/Tool" + } + }, + "updated": { + "description": "Required. Output only. The time at which the response was last updated in ISO 8601 format\n(YYYY-MM-DDThh:mm:ssZ).", + "type": "string", + "readOnly": true + }, + "usage": { + "description": "Output only. Statistics on the interaction request's token usage.", + "$ref": "#/components/schemas/Usage", + "readOnly": true + }, + "webhook_config": { + "description": "Optional. Webhook configuration for receiving notifications when the\ninteraction completes.", + "$ref": "#/components/schemas/WebhookConfig" + } + }, + "required": [ + "status" + ], + "example": { + "created": "2025-12-04T15:01:45Z", + "id": "v1_ChdXS0l4YWZXTk9xbk0xZThQczhEcmlROBIXV0tJeGFmV05PcW5NMWU4UHM4RHJpUTg", + "model": "gemini-3.6-flash", + "object": "interaction", + "status": "completed", + "steps": [ + { + "type": "model_output", + "content": [ + { + "type": "text", + "text": "Hello! I'm doing well, functioning as expected. Thank you for asking! How are you doing today?" + } + ] + } + ], + "updated": "2025-12-04T15:01:45Z", + "usage": { + "input_tokens_by_modality": [ + { + "modality": "text", + "tokens": 7 + } + ], + "total_cached_tokens": 0, + "total_input_tokens": 7, + "total_output_tokens": 23, + "total_thought_tokens": 49, + "total_tokens": 79, + "total_tool_use_tokens": 0 + } + }, + "x-speakeasy-exports": [ + { + "name": "Interaction", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions" + }, + "InteractionCompletedEvent": { + "description": "Signals that the Interaction completed. Sent when the Interaction receives\nComplete/Cancel or naturally terminates. No more input can be sent to the\nInteraction after this.", + "type": "object", + "properties": { + "event_id": { + "description": "The event_id token to be used to resume the interaction stream, from\nthis event.", + "type": "string" + }, + "event_type": { + "const": "interaction.completed" + }, + "interaction": { + "description": "Required. Partial completed interaction resource emitted at the end of the stream.", + "$ref": "#/components/schemas/InteractionSseEventInteraction" + } + }, + "required": [ + "event_type", + "interaction" + ], + "example": { + "event_id": "evt_123", + "event_type": "interaction.completed", + "interaction": { + "created": "2025-12-04T15:01:45Z", + "id": "v1_ChdXS0l4YWZXTk9xbk0xZThQczhEcmlROBIXV0tJeGFmV05PcW5NMWU4UHM4RHJpUTg", + "model": "gemini-3.6-flash", + "status": "completed", + "updated": "2025-12-04T15:01:45Z" + } + }, + "x-example-summaries": [ + "Interaction Completed" + ], + "x-speakeasy-exports": [ + { + "name": "InteractionCompletedEvent", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions" + }, + "InteractionCreatedEvent": { + "description": "Server response confirming that a new interaction was created.", + "type": "object", + "properties": { + "event_id": { + "description": "The event_id token to be used to resume the interaction stream, from\nthis event.", + "type": "string" + }, + "event_type": { + "const": "interaction.created" + }, + "interaction": { + "description": "Required. Partial interaction resource emitted when the stream is created.", + "$ref": "#/components/schemas/InteractionSseEventInteraction" + } + }, + "required": [ + "event_type", + "interaction" + ], + "example": { + "event_id": "evt_123", + "event_type": "interaction.created", + "interaction": { + "created": "2025-12-04T15:01:45Z", + "id": "v1_ChdXS0l4YWZXTk9xbk0xZThQczhEcmlROBIXV0tJeGFmV05PcW5NMWU4UHM4RHJpUTg", + "model": "gemini-3.6-flash", + "status": "in_progress", + "updated": "2025-12-04T15:01:45Z" + } + }, + "x-example-summaries": [ + "Interaction Created" + ], + "x-speakeasy-exports": [ + { + "name": "InteractionCreatedEvent", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions" + }, + "InteractionSseEventInteraction": { + "description": "Partial interaction resource emitted by interaction lifecycle SSE events.\nStreaming lifecycle payloads may omit fields that are only available on\nfull non-streaming Interaction responses.\n", + "type": "object", + "properties": { + "agent": { + "description": "The agent to interact with.", + "type": "string" + }, + "continuation_token": { + "description": "Output only. Opaque token to resume a long decode when status is incomplete.", + "type": "string", + "format": "byte", + "readOnly": true + }, + "created": { + "description": "Output only. The time at which the response was created in ISO 8601 format.", + "type": "string", + "readOnly": true + }, + "id": { + "description": "Required. Output only. A unique identifier for the interaction completion.", + "type": "string", + "readOnly": true + }, + "model": { + "description": "The model that will complete your prompt.", + "type": "string" + }, + "object": { + "description": "Output only. The resource type.", + "type": "string", + "readOnly": true + }, + "service_tier": { + "description": "The service tier for the interaction.", + "$ref": "#/components/schemas/ServiceTier" + }, + "status": { + "description": "Required. Output only. The status of the interaction.", + "type": "string", + "enum": [ + "in_progress", + "requires_action", + "completed", + "failed", + "cancelled", + "incomplete", + "budget_exceeded", + "queued", + "requires_continuation" + ], + "readOnly": true, + "x-google-enum-deprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false + ], + "x-google-enum-descriptions": [ + "The interaction is in progress.", + "The interaction requires action/input from the user.", + "The interaction is completed.", + "The interaction failed.", + "The interaction was cancelled.", + "The interaction is completed, but contains incomplete results (e.g.\nhitting max_tokens).", + "Deprecated: Token and execution budget exhaustion returns INCOMPLETE\n(11).", + "The interaction is queued, waiting for processing (e.g. waiting for\noff-peak capacity).", + "The interaction requires at least one more request for it to be\ncompleted. The next request should set the continuation_token to the one\nreturned by this request." + ] + }, + "steps": { + "description": "Output only. The steps that make up the interaction, if included in this event.", + "type": "array", + "items": { + "$ref": "#/components/schemas/Step" + }, + "readOnly": true + }, + "updated": { + "description": "Output only. The time at which the response was last updated in ISO 8601 format.", + "type": "string", + "readOnly": true + }, + "usage": { + "description": "Output only. Statistics on the interaction request's token usage.", + "$ref": "#/components/schemas/Usage", + "readOnly": true + } + }, + "required": [ + "id", + "status" + ], + "x-speakeasy-model-namespace": "interactions" + }, + "InteractionSseStreamEnvelope": { + "type": "object", + "properties": { + "data": { + "$ref": "#/components/schemas/InteractionSseStreamEvent" + } + }, + "required": [ + "data" + ], + "x-speakeasy-model-namespace": "interactions", + "x-speakeasy-name-override": "InteractionSSEStreamEvent" + }, + "InteractionSseStreamEvent": { + "oneOf": [ + { + "$ref": "#/components/schemas/ErrorEvent" + }, + { + "$ref": "#/components/schemas/InteractionCompletedEvent" + }, + { + "$ref": "#/components/schemas/InteractionCreatedEvent" + }, + { + "$ref": "#/components/schemas/InteractionStatusUpdate" + }, + { + "$ref": "#/components/schemas/StepDelta" + }, + { + "$ref": "#/components/schemas/StepStart" + }, + { + "$ref": "#/components/schemas/StepStop" + } + ], + "x-speakeasy-exports": [ + { + "name": "InteractionSSEEvent", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions", + "x-speakeasy-name-override": "InteractionSSEEvent" + }, + "InteractionStatusUpdate": { + "type": "object", + "properties": { + "continuation_token": { + "description": "An optional opaque continuation token used to resume decoding from the\nlatest checkpoint after a disconnected stream.", + "type": "string", + "format": "byte" + }, + "event_id": { + "description": "The event_id token to be used to resume the interaction stream, from\nthis event.", + "type": "string" + }, + "event_type": { + "const": "interaction.status_update" + }, + "interaction_id": { + "type": "string" + }, + "status": { + "type": "string", + "enum": [ + "in_progress", + "requires_action", + "completed", + "failed", + "cancelled", + "incomplete", + "budget_exceeded", + "queued", + "requires_continuation" + ], + "x-google-enum-deprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false + ], + "x-google-enum-descriptions": [ + "The interaction is in progress.", + "The interaction requires action/input from the user.", + "The interaction is completed.", + "The interaction failed.", + "The interaction was cancelled.", + "The interaction is completed, but contains incomplete results (e.g.\nhitting max_tokens).", + "Deprecated: Token and execution budget exhaustion returns INCOMPLETE\n(11).", + "The interaction is queued, waiting for processing (e.g. waiting for\noff-peak capacity).", + "The interaction requires at least one more request for it to be\ncompleted. The next request should set the continuation_token to the one\nreturned by this request." + ] + }, + "usage": { + "description": "Model usage statistics up to this checkpoint.", + "$ref": "#/components/schemas/Usage" + } + }, + "required": [ + "event_type", + "interaction_id", + "status" + ], + "example": { + "event_type": "interaction.status_update", + "interaction_id": "v1_ChdTMjQ0YWJ5TUF1TzcxZThQdjRpcnFRcxIXUzI0NGFieU1BdU83MWU4UHY0aXJxUXM", + "status": "in_progress" + }, + "x-example-summaries": [ + "Interaction Status Update" + ], + "x-speakeasy-exports": [ + { + "name": "InteractionStatusUpdate", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions" + }, + "InteractionsInput": { + "description": "The input for the interaction.", + "oneOf": [ + { + "$ref": "#/components/schemas/Content" + }, + { + "title": "StepList", + "type": "array", + "items": { + "$ref": "#/components/schemas/Step" + } + }, + { + "title": "ContentList", + "type": "array", + "items": { + "$ref": "#/components/schemas/Content" + } + }, + { + "type": "string" + } + ], + "x-speakeasy-model-namespace": "interactions" + }, + "ListAgentsResponse": { + "type": "object", + "properties": { + "agents": { + "description": "The list of agents.", + "type": "array", + "items": { + "$ref": "#/components/schemas/Agent" + } + }, + "next_page_token": { + "description": "A token to retrieve the next page of results.", + "type": "string" + } + }, + "x-speakeasy-exports": [ + { + "name": "AgentListResponse", + "group": "agents" + } + ], + "x-speakeasy-model-namespace": "agents", + "x-speakeasy-name-override": "AgentListResponse" + }, + "ListCredentialsResponse": { + "type": "object", + "properties": { + "credentials": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Credential" + } + }, + "next_page_token": { + "type": "string" + } + }, + "x-speakeasy-exports": [ + { + "name": "CredentialListResponse", + "group": "credentials" + } + ], + "x-speakeasy-model-namespace": "credentials", + "x-speakeasy-name-override": "CredentialListResponse" + }, + "ListEnvironmentsResponse": { + "description": "Response for `ListEnvironments`.", + "type": "object", + "properties": { + "environments": { + "description": "Environments belonging to the provided project.", + "type": "array", + "items": { + "$ref": "#/components/schemas/Environment" + } + }, + "next_page_token": { + "description": "Pagination token.", + "type": "string" + } + }, + "x-speakeasy-exports": [ + { + "name": "EnvironmentListResponse", + "group": "environments" + } + ], + "x-speakeasy-model-namespace": "environments" + }, + "ListTriggerExecutionsResponse": { + "description": "Response message for TriggerService.ListTriggerExecutions.", + "type": "object", + "properties": { + "next_page_token": { + "description": "A page token, received from a previous `ListTriggerExecutions` call.\nProvide this to retrieve the subsequent page.", + "type": "string" + }, + "trigger_executions": { + "description": "The list of trigger executions.", + "type": "array", + "items": { + "$ref": "#/components/schemas/TriggerExecution" + } + } + }, + "x-speakeasy-exports": [ + { + "name": "TriggerListExecutionsResponse", + "group": "triggers" + } + ], + "x-speakeasy-model-namespace": "triggers" + }, + "ListTriggersResponse": { + "description": "Response message for TriggerService.ListTriggers.", + "type": "object", + "properties": { + "next_page_token": { + "description": "A page token, received from a previous `ListTriggers` call.\nProvide this to retrieve the subsequent page.", + "type": "string" + }, + "triggers": { + "description": "The list of triggers.", + "type": "array", + "items": { + "$ref": "#/components/schemas/Trigger" + } + } + }, + "x-speakeasy-exports": [ + { + "name": "TriggerListResponse", + "group": "triggers" + } + ], + "x-speakeasy-model-namespace": "triggers" + }, + "ListVoicesResponse": { + "description": "Response message for `VoicesService.ListVoices`.", + "type": "object", + "properties": { + "next_page_token": { + "description": "A token that can be sent as `page_token` to retrieve the next page.\nIf empty, there are no subsequent pages.", + "type": "string" + }, + "voices": { + "description": "The voices from the specified collection.", + "type": "array", + "items": { + "$ref": "#/components/schemas/Voice" + } + } + }, + "x-speakeasy-exports": [ + { + "name": "VoiceListResponse", + "group": "voices" + } + ], + "x-speakeasy-model-namespace": "voices" + }, + "ListWebhooksResponse": { + "description": "Response message for WebhookService.ListWebhooks.", + "type": "object", + "properties": { + "next_page_token": { + "description": "A token, which can be sent as `page_token` to retrieve the next page.\nIf this field is omitted, there are no subsequent pages.", + "type": "string" + }, + "webhooks": { + "description": "The webhooks.", + "type": "array", + "items": { + "$ref": "#/components/schemas/Webhook" + } + } + }, + "x-speakeasy-exports": [ + { + "name": "WebhookListResponse", + "group": "webhooks" + } + ], + "x-speakeasy-model-namespace": "webhooks", + "x-speakeasy-name-override": "WebhookListResponse" + }, + "McpServer": { + "description": "A MCPServer is a server that can be called by the model to perform actions.", + "type": "object", + "properties": { + "allowed_tools": { + "description": "The allowed tools.", + "type": "array", + "items": { + "$ref": "#/components/schemas/AllowedTools" + } + }, + "headers": { + "description": "Optional: Fields for authentication headers, timeouts, etc., if needed.", + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-speakeasy-param-sensitive": true + }, + "name": { + "description": "The name of the MCPServer.", + "type": "string" + }, + "type": { + "const": "mcp_server" + }, + "url": { + "description": "The full URL for the MCPServer endpoint.\nExample: \"https://api.example.com/mcp\"", + "type": "string" + } + }, + "required": [ + "type" + ], + "x-speakeasy-model-namespace": "interactions", + "x-speakeasy-name-override": "MCPServer" + }, + "McpServerToolCallDelta": { + "type": "object", + "properties": { + "arguments": { + "type": "object", + "additionalProperties": { + "description": "Properties of the object." + } + }, + "name": { + "type": "string" + }, + "server_name": { + "type": "string" + }, + "type": { + "const": "mcp_server_tool_call" + } + }, + "required": [ + "arguments", + "name", + "server_name", + "type" + ], + "x-speakeasy-model-namespace": "interactions", + "x-speakeasy-name-override": "MCPServerToolCallDelta" + }, + "McpServerToolCallStep": { + "description": "MCPServer tool call step.", + "type": "object", + "properties": { + "arguments": { + "description": "Required. The JSON object of arguments for the function.", + "type": "object", + "additionalProperties": { + "description": "Properties of the object." + } + }, + "id": { + "description": "Required. A unique ID for this specific tool call.", + "type": "string" + }, + "name": { + "description": "Required. The name of the tool which was called.", + "type": "string" + }, + "server_name": { + "description": "Required. The name of the used MCP server.", + "type": "string" + }, + "type": { + "const": "mcp_server_tool_call" + } + }, + "required": [ + "arguments", + "id", + "name", + "server_name", + "type" + ], + "example": { + "name": "calculate_tax", + "type": "mcp_server_tool_call", + "arguments": { + "income": 120000, + "state": "CA" + }, + "id": "mcp_call_29012", + "server_name": "financial_mcp_server" + }, + "x-example-summaries": [ + "McpServerToolCallStep" + ], + "x-speakeasy-exports": [ + { + "name": "MCPServerToolCallStep", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions", + "x-speakeasy-name-override": "MCPServerToolCallStep" + }, + "McpServerToolResultDelta": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "result": { + "oneOf": [ + { + "title": "FunctionResultSubcontentList", + "type": "array", + "items": { + "$ref": "#/components/schemas/FunctionResultSubContent" + } + }, + { + "type": "object" + }, + { + "type": "string" + } + ] + }, + "server_name": { + "type": "string" + }, + "type": { + "const": "mcp_server_tool_result" + } + }, + "required": [ + "result", + "type" + ], + "x-speakeasy-model-namespace": "interactions", + "x-speakeasy-name-override": "MCPServerToolResultDelta" + }, + "McpServerToolResultStep": { + "description": "MCPServer tool result step.", + "type": "object", + "properties": { + "call_id": { + "description": "Required. ID to match the ID from the function call block.", + "type": "string" + }, + "name": { + "description": "Name of the tool which is called for this specific tool call.", + "type": "string" + }, + "result": { + "description": "Required. The output from the MCP server call. Can be simple text or rich content.", + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/components/schemas/FunctionResultSubContent" + } + }, + { + "type": "object" + }, + { + "type": "string" + } + ] + }, + "server_name": { + "description": "The name of the used MCP server.", + "type": "string" + }, + "type": { + "const": "mcp_server_tool_result" + } + }, + "required": [ + "call_id", + "result", + "type" + ], + "example": { + "name": "calculate_tax", + "type": "mcp_server_tool_result", + "call_id": "mcp_call_29012", + "result": { + "tax_due": 32400 + }, + "server_name": "financial_mcp_server" + }, + "x-example-summaries": [ + "McpServerToolResultStep" + ], + "x-speakeasy-exports": [ + { + "name": "MCPServerToolResultStep", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions", + "x-speakeasy-name-override": "MCPServerToolResultStep" + }, + "MediaProcessing": { + "oneOf": [ + { + "$ref": "#/components/schemas/StaticMediaProcessing" + } + ], + "x-speakeasy-model-namespace": "interactions" + }, + "MediaResolution": { + "type": "string", + "enum": [ + "low", + "medium", + "high", + "ultra_high" + ], + "x-google-enum-descriptions": [ + "Low resolution.", + "Medium resolution.", + "High resolution.", + "Ultra high resolution." + ], + "x-speakeasy-model-namespace": "interactions" + }, + "ModalityTokens": { + "description": "The token count for a single response modality.", + "type": "object", + "properties": { + "modality": { + "description": "The modality associated with the token count.", + "$ref": "#/components/schemas/ResponseModality" + }, + "tokens": { + "description": "Number of tokens for the modality.", + "type": "integer", + "format": "int32" + } + }, + "x-speakeasy-model-namespace": "interactions" + }, + "ModelInteraction": { + "description": "Interaction for generating the completion using models.", + "type": "object", + "properties": { + "background": { + "description": "Input only. Whether to run the model interaction in the background.", + "type": "boolean" + }, + "cached_content": { + "description": "The name of the cached content used as context to serve the prediction. Note: only used in explicit caching, where users can have control over caching (e.g. what content to cache) and enjoy guaranteed cost savings. Format: cachedContents/{cachedContent}", + "type": "string", + "deprecated": true + }, + "continuation_token": { + "description": "Opaque token to resume a long decode. Output: set when status is\nREQUIRES_CONTINUATION and decoding can be resumed. Input: pass the latest\ntoken back unchanged in CreateInteraction to continue decoding.", + "type": "string", + "format": "byte" + }, + "environment": { + "description": "The environment configuration for the interaction. Can be an object\nspecifying remote environment sources or a string referencing an existing\nenvironment ID.", + "oneOf": [ + { + "$ref": "#/components/schemas/EnvironmentConfig" + }, + { + "type": "string" + } + ] + }, + "generation_config": { + "description": "Input only. Configuration parameters for the model interaction.", + "$ref": "#/components/schemas/GenerationConfig" + }, + "input": { + "$ref": "#/components/schemas/InteractionsInput" + }, + "labels": { + "description": "The labels with user-defined metadata for the request.\n\nLabel keys and values can be no longer than 63 characters\n(Unicode codepoints) and can only contain lowercase letters, numeric\ncharacters, underscores, and dashes. International characters are allowed.\nLabel values are optional. Label keys must start with a letter.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "model": { + "description": "The name of the `Model` used for generating the interaction.", + "$ref": "#/components/schemas/ModelOption" + }, + "previous_interaction_id": { + "description": "The ID of the previous interaction, if any.", + "type": "string" + }, + "response_format": { + "description": "Enforces that the generated response is a JSON object that complies with\nthe JSON schema specified in this field.", + "oneOf": [ + { + "$ref": "#/components/schemas/ResponseFormat" + }, + { + "title": "ResponseFormatList", + "type": "array", + "items": { + "$ref": "#/components/schemas/ResponseFormat" + } + } + ] + }, + "response_mime_type": { + "description": "The mime type of the response. This is required if response_format is set.", + "type": "string", + "deprecated": true + }, + "response_modalities": { + "description": "The requested modalities of the response (TEXT, IMAGE, AUDIO).", + "type": "array", + "deprecated": true, + "items": { + "$ref": "#/components/schemas/ResponseModality" + } + }, + "safety_settings": { + "description": "Safety settings for the interaction.", + "type": "array", + "items": { + "$ref": "#/components/schemas/SafetySetting" + } + }, + "service_tier": { + "description": "The service tier for the interaction.", + "$ref": "#/components/schemas/ServiceTier" + }, + "store": { + "description": "Input only. Whether to store the response and request for later retrieval.", + "type": "boolean" + }, + "stream": { + "description": "Input only. Whether the interaction will be streamed.", + "type": "boolean" + }, + "system_instruction": { + "description": "System instruction for the interaction.", + "type": "string" + }, + "tools": { + "description": "A list of tool declarations the model may call during interaction.", + "type": "array", + "items": { + "$ref": "#/components/schemas/Tool" + } + }, + "webhook_config": { + "description": "Optional. Webhook configuration for receiving notifications when the\ninteraction completes.", + "$ref": "#/components/schemas/WebhookConfig" + } + }, + "required": [ + "model" + ], + "x-speakeasy-exports": [ + { + "name": "CreateModelInteractionParamsNonStreaming", + "group": "interactions", + "representation": "input" + }, + { + "name": "CreateModelInteractionParamsStreaming", + "group": "interactions", + "representation": "input" + } + ], + "x-speakeasy-model-namespace": "interactions", + "x-speakeasy-name-override": "CreateModelInteraction" + }, + "ModelOption": { + "title": "Model", + "description": "The model that will complete your prompt.\\n\\nSee [models](https://aistudio.google.com/docs/models) for additional details.", + "type": "string", + "enum": [ + "gemma-4-26b-a4b-it", + "gemma-4-31b-it", + "gemini-flash-latest", + "gemini-flash-lite-latest", + "gemini-pro-latest", + "gemini-2.5-flash", + "gemini-2.5-pro", + "gemini-2.5-flash-lite", + "gemini-3.5-flash-lite", + "gemini-2.5-flash-image", + "gemini-3-flash-preview", + "gemini-3.1-pro-preview", + "gemini-3.1-pro-preview-customtools", + "gemini-3.1-flash-lite", + "gemini-3.1-flash-lite-image", + "gemini-3-pro-image", + "nano-banana-pro-preview", + "gemini-3.1-flash-image", + "gemini-nano-banana-2.1", + "gemini-3.1-flash-tts-preview", + "gemini-3.5-flash", + "gemini-3.6-flash", + "gemini-3.7-flash", + "gemini-3.8-flash", + "gemini-4-argon", + "gemini-3.8-flash-tts", + "gemini-3.8-flash-lite-tts", + "gemini-3.5-transcribe", + "lyria-3-clip-preview", + "lyria-3-pro-preview", + "gemini-robotics-er-1.6-preview", + "gemini-robotics-er-2-preview", + "lyria-3.5", + "gemini-omni-1.2-flash", + "gemini-omni-1.1-flash", + "gemini-omni-flash-preview" + ], + "x-speakeasy-enum-descriptions": [ + "Gemma 4 26B A4B IT", + "Gemma 4 31B IT", + "Latest release of Gemini Flash", + "Latest release of Gemini Flash-Lite", + "Latest release of Gemini Pro", + "Our first hybrid reasoning model which supports a 1M token context window and has thinking budgets.", + "Our state-of-the-art multipurpose model, which excels at coding and complex reasoning tasks.", + "Our smallest and most cost effective model, built for at scale usage.", + "Gemini 3.5 Flash-Lite - Our fastest, most cost-effective 3.5 model for high-throughput execution.", + "Our native image generation model, optimized for speed, flexibility, and contextual understanding. Text input and output is priced the same as 2.5 Flash.", + "Our most intelligent model built for speed, combining frontier intelligence with superior search and grounding.", + "Our latest SOTA reasoning model with unprecedented depth and nuance, and powerful multimodal understanding and coding capabilities.", + "Gemini 3.1 Pro Preview optimized for custom tool usage", + "Our most cost-efficient model, optimized for high-volume agentic tasks, translation, and simple data processing.", + "Gemini 3.1 Flash Lite Image.", + "Gemini 3 Pro Image", + "Gemini 3 Pro Image Preview", + "Gemini 3.1 Flash Image.", + "Gemini Nano Banana 2.1.", + "Gemini 3.1 Flash TTS: Powerful, low-latency speech generation. Enjoy natural outputs, steerable prompts, and new expressive audio tags for precise narration control.", + "Gemini 3.5 Flash - Our earlier Flash model, built for speed and foundational performance across routine, high-throughput workloads.", + "Gemini 3.6 Flash - Our previous generation Flash model, balancing speed and multimodal capabilities across general agentic and everyday tasks.", + "Gemini 3.7 Flash - Our high-speed, efficient Flash model built for everyday coding, agentic tool use, and reliable multi-step execution.", + "Gemini 3.8 Flash - Our most intelligent Flash model, engineered for long-horizon software engineering, autonomous agents, and complex enterprise workflows.", + "Gemini 4 Argon - Our new frontier model, built to solve the hardest problems with depth and precision across real-world software engineering and knowledge work.", + "Gemini 3.8 Flash TTS - Flagship TTS model for Voice Design and dual-speaker screenplay control. Prompt custom vocal personas, direct line-by-line delivery, and add vocal bursts.", + "Gemini 3.8 Flash Lite TTS - High-speed and cost-efficient, ideal for rapid dubbing, media localization, and high-throughput voice agents. Direct replacement for gemini-3.1-flash-tts-preview.", + "Gemini 3.5 Transcribe - Low-latency speech-to-text model with utterance-based language detection, speaker diarization, word-level timestamps, and custom vocabulary biasing.", + "Our low-latency, music generation model optimized for high-fidelity audio clips and precise rhythmic control.", + "Our advanced, full-song generative model with deep compositional understanding, optimized for precise structural control and complex transitions across diverse musical styles.", + "Gemini Robotics-ER 1.6 Preview", + "Gemini Robotics Embodied Reasoning 2 Preview", + "Our flagship music generation model, optimized for full-length songs with complex structural coherence.", + "Gemini Omni 1.2 Flash - Our latest multimodal model for fast, conversational video generation, editing, and cinematic control.", + "Our high-performance multimodal model designed for fast, conversational video generation, editing, and cinematic control.", + "Preview release of our multimodal model for conversational video generation, editing, and cinematic control." + ], + "x-speakeasy-enum-format": "union", + "x-speakeasy-enum-groups": { + "gemini-2.5-flash": "Gemini", + "gemini-2.5-flash-image": "Image", + "gemini-2.5-flash-lite": "Gemini", + "gemini-2.5-pro": "Gemini", + "gemini-3-flash-preview": "Gemini", + "gemini-3-pro-image": "Image", + "gemini-3.1-flash-image": "Image", + "gemini-3.1-flash-lite": "Gemini", + "gemini-3.1-flash-lite-image": "Image", + "gemini-3.1-flash-tts-preview": "Speech", + "gemini-3.1-pro-preview": "Gemini", + "gemini-3.1-pro-preview-customtools": "Gemini", + "gemini-3.5-flash": "Gemini", + "gemini-3.5-flash-lite": "Gemini", + "gemini-3.5-transcribe": "Speech", + "gemini-3.6-flash": "Gemini", + "gemini-3.7-flash": "Gemini", + "gemini-3.8-flash": "Gemini", + "gemini-3.8-flash-lite-tts": "Speech", + "gemini-3.8-flash-tts": "Speech", + "gemini-4-argon": "Gemini", + "gemini-flash-latest": "Gemini", + "gemini-flash-lite-latest": "Gemini", + "gemini-nano-banana-2.1": "Image", + "gemini-omni-1.1-flash": "Video", + "gemini-omni-1.2-flash": "Video", + "gemini-omni-flash-preview": "Video", + "gemini-pro-latest": "Gemini", + "gemini-robotics-er-1.6-preview": "Robotics", + "gemini-robotics-er-2-preview": "Robotics", + "gemma-4-26b-a4b-it": "Gemma", + "gemma-4-31b-it": "Gemma", + "lyria-3-clip-preview": "Music", + "lyria-3-pro-preview": "Music", + "lyria-3.5": "Music", + "nano-banana-pro-preview": "Image" + }, + "x-speakeasy-exports": [ + { + "name": "Model", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions", + "x-speakeasy-name-override": "Model", + "x-speakeasy-unknown-values": "allow" + }, + "ModelOutputStep": { + "description": "Output generated by the model.", + "type": "object", + "properties": { + "content": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Content" + } + }, + "error": { + "description": "The error result of the operation in case of failure or cancellation.", + "$ref": "#/components/schemas/Status", + "deprecated": true + }, + "type": { + "const": "model_output" + } + }, + "required": [ + "type" + ], + "example": { + "type": "model_output", + "content": [ + { + "type": "text", + "text": "The capital of France is Paris." + } + ] + }, + "x-example-summaries": [ + "ModelOutputStep" + ], + "x-speakeasy-exports": [ + { + "name": "ModelOutputStep", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions" + }, + "OAuth2Config": { + "description": "Configuration for OAuth2 credentials with automatic token refresh.", + "type": "object", + "properties": { + "client_id": { + "description": "Required. OAuth2 client ID.", + "type": "string" + }, + "client_secret": { + "description": "Required. Input only. OAuth2 client secret. Write-only; never returned in responses.", + "type": "string", + "writeOnly": true, + "x-speakeasy-param-sensitive": true + }, + "id": { + "type": "string" + }, + "refresh_token": { + "description": "Required. Input only. OAuth2 refresh token. Write-only; never returned in responses.", + "type": "string", + "writeOnly": true, + "x-speakeasy-param-sensitive": true + }, + "scopes": { + "description": "Optional. List of OAuth2 scopes.", + "type": "array", + "items": { + "type": "string" + } + }, + "token_url": { + "description": "Required. OAuth2 token endpoint URL for refreshing access tokens.", + "type": "string" + }, + "type": { + "const": "oauth2" + } + }, + "required": [ + "client_id", + "client_secret", + "id", + "refresh_token", + "token_url", + "type" + ], + "x-speakeasy-exports": [ + { + "name": "OAuth2Config", + "group": "credentials" + } + ], + "x-speakeasy-model-namespace": "credentials" + }, + "OAuth2UpdateConfig": { + "description": "Configuration for updating OAuth2 credentials.", + "type": "object", + "properties": { + "client_id": { + "description": "Optional. OAuth2 client ID.", + "type": "string" + }, + "client_secret": { + "description": "Optional. Input only. OAuth2 client secret. Write-only; never returned in responses.", + "type": "string", + "writeOnly": true, + "x-speakeasy-param-sensitive": true + }, + "refresh_token": { + "description": "Optional. Input only. OAuth2 refresh token. Write-only; never returned in responses.", + "type": "string", + "writeOnly": true, + "x-speakeasy-param-sensitive": true + }, + "scopes": { + "description": "Optional. List of OAuth2 scopes.", + "type": "array", + "items": { + "type": "string" + } + }, + "token_url": { + "description": "Optional. OAuth2 token endpoint URL for refreshing access tokens.", + "type": "string" + }, + "type": { + "const": "oauth2" + } + }, + "required": [ + "type" + ], + "x-speakeasy-exports": [ + { + "name": "OAuth2UpdateConfig", + "group": "credentials" + } + ], + "x-speakeasy-model-namespace": "credentials" + }, + "ParallelAISearchConfig": { + "description": "Used to specify configuration for ParallelAISearch.", + "type": "object", + "properties": { + "api_key": { + "description": "Optional. The API key for ParallelAiSearch.", + "type": "string", + "x-speakeasy-param-sensitive": true + }, + "custom_config": { + "description": "Optional. Custom configs for ParallelAiSearch.", + "type": "object", + "additionalProperties": { + "description": "Properties of the object." + } + } + }, + "x-speakeasy-model-namespace": "interactions" + }, + "PingWebhookRequest": { + "description": "Request message for WebhookService.PingWebhook.", + "type": "object", + "properties": {}, + "x-speakeasy-exports": [ + { + "name": "WebhookPingParams", + "group": "webhooks", + "representation": "input" + } + ], + "x-speakeasy-model-namespace": "webhooks" + }, + "PingWebhookResponse": { + "description": "Response message for WebhookService.PingWebhook.", + "type": "object", + "x-speakeasy-exports": [ + { + "name": "WebhookPingResponse", + "group": "webhooks" + } + ], + "x-speakeasy-model-namespace": "webhooks", + "x-speakeasy-name-override": "WebhookPingResponse" + }, + "Pitch": { + "type": "string", + "enum": [ + "low", + "medium", + "high" + ], + "x-google-enum-descriptions": [ + "Lower pitch voice.", + "Medium pitch voice.", + "Higher pitch voice." + ], + "x-speakeasy-exports": [ + { + "name": "Pitch", + "group": "voices" + } + ], + "x-speakeasy-model-namespace": "voices" + }, + "PlaceCitation": { + "description": "A place citation annotation.", + "type": "object", + "properties": { + "end_index": { + "description": "End of the attributed segment, exclusive.", + "type": "integer", + "format": "int32" + }, + "name": { + "description": "Title of the place.", + "type": "string" + }, + "place_id": { + "description": "The ID of the place, in `places/{place_id}` format.", + "type": "string" + }, + "review_snippets": { + "description": "Snippets of reviews that are used to generate answers about the\nfeatures of a given place in Google Maps.", + "type": "array", + "items": { + "$ref": "#/components/schemas/ReviewSnippet" + } + }, + "start_index": { + "description": "Start of segment of the response that is attributed to this source.\n\nIndex indicates the start of the segment, measured in bytes.", + "type": "integer", + "format": "int32" + }, + "type": { + "const": "place_citation" + }, + "url": { + "description": "URI reference of the place.", + "type": "string" + } + }, + "required": [ + "type" + ], + "x-speakeasy-exports": [ + { + "name": "PlaceCitation", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions" + }, + "Places": { + "type": "object", + "properties": { + "name": { + "description": "Title of the place.", + "type": "string" + }, + "place_id": { + "description": "The ID of the place, in `places/{place_id}` format.", + "type": "string" + }, + "review_snippets": { + "description": "Snippets of reviews that are used to generate answers about the\nfeatures of a given place in Google Maps.", + "type": "array", + "items": { + "$ref": "#/components/schemas/ReviewSnippet" + } + }, + "url": { + "description": "URI reference of the place.", + "type": "string" + } + }, + "x-speakeasy-model-namespace": "interactions" + }, + "ProcessingCallDelta": { + "description": "Streaming delta for a server-initiated media processing step.", + "type": "object", + "properties": { + "signature": { + "description": "A signature hash for backend validation.", + "type": "string", + "format": "byte", + "x-speakeasy-base64-input-mode": "file" + }, + "type": { + "const": "processing_call" + } + }, + "required": [ + "type" + ], + "x-speakeasy-model-namespace": "interactions" + }, + "ProcessingCallStep": { + "description": "A server-initiated processing step for media analysis (e.g. video\nunderstanding).", + "type": "object", + "properties": { + "id": { + "description": "Required. A unique ID for this specific tool call.", + "type": "string" + }, + "signature": { + "description": "A signature hash for backend validation.", + "type": "string", + "format": "byte", + "x-speakeasy-base64-input-mode": "file" + }, + "type": { + "const": "processing_call" + } + }, + "required": [ + "id", + "type" + ], + "x-speakeasy-exports": [ + { + "name": "ProcessingCallStep", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions" + }, + "ProcessingResultDelta": { + "description": "Streaming delta for the result of a server-initiated media processing step.", + "type": "object", + "properties": { + "signature": { + "description": "A signature hash for backend validation.", + "type": "string", + "format": "byte", + "x-speakeasy-base64-input-mode": "file" + }, + "type": { + "const": "processing_result" + } + }, + "required": [ + "type" + ], + "x-speakeasy-model-namespace": "interactions" + }, + "ProcessingResultStep": { + "description": "The result of a server-initiated media processing step.", + "type": "object", + "properties": { + "call_id": { + "description": "Required. ID to match the ID from the function call block.", + "type": "string" + }, + "signature": { + "description": "A signature hash for backend validation.", + "type": "string", + "format": "byte", + "x-speakeasy-base64-input-mode": "file" + }, + "type": { + "const": "processing_result" + } + }, + "required": [ + "call_id", + "type" + ], + "x-speakeasy-exports": [ + { + "name": "ProcessingResultStep", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions" + }, + "PromptedVoice": { + "description": "Parameters for prompted voice generation.\nRequired in `CreateVoice` when `type` is `\"prompted\"`. Returned in\n`CreateVoice`, `GetVoice`, and `ListVoices` responses for prompted voices.", + "type": "object", + "properties": { + "base_voice": { + "description": "Optional. The name or ID of an existing base voice to edit or remix.\nUse the voice name for prebuilt voices (e.g., `Puck`) or the voice ID for\npreviously created voices (e.g., `voice_abc123`). This can be any\nprompted or replicated voice that the user has access to.\nWhen present, `input` describes relative alterations to make to the base\nvoice.", + "type": "string" + }, + "input": { + "description": "Required. The natural-language prompt describing the desired voice, e.g.\n\"A deep, booming male voice of a massive evil ogre in his middle years.\"", + "type": "string" + } + }, + "required": [ + "input" + ], + "x-speakeasy-exports": [ + { + "name": "PromptedVoice", + "group": "voices" + } + ], + "x-speakeasy-model-namespace": "voices" + }, + "RagResource": { + "description": "The definition of the Rag resource.", + "type": "object", + "properties": { + "rag_corpus": { + "description": "Optional. RagCorpora resource name.", + "type": "string" + }, + "rag_file_ids": { + "description": "Optional. rag_file_id. The files should be in the same rag_corpus set in\nrag_corpus field.", + "type": "array", + "items": { + "type": "string" + } + } + }, + "x-speakeasy-model-namespace": "interactions" + }, + "RagRetrievalConfig": { + "description": "Specifies the context retrieval config.", + "type": "object", + "properties": { + "filter": { + "description": "Optional. Config for filters.", + "$ref": "#/components/schemas/Filter" + }, + "hybrid_search": { + "description": "Optional. Config for Hybrid Search.", + "$ref": "#/components/schemas/HybridSearch" + }, + "ranking": { + "description": "Optional. Config for ranking and reranking.", + "$ref": "#/components/schemas/Ranking" + }, + "top_k": { + "description": "Optional. The number of contexts to retrieve.", + "type": "integer", + "format": "int32" + } + }, + "x-speakeasy-model-namespace": "interactions" + }, + "RagStoreConfig": { + "description": "Use to specify configuration for RAG Store.", + "type": "object", + "properties": { + "rag_resources": { + "description": "Optional. The representation of the rag source.", + "type": "array", + "items": { + "$ref": "#/components/schemas/RagResource" + } + }, + "rag_retrieval_config": { + "description": "Optional. The retrieval config for the Rag query.", + "$ref": "#/components/schemas/RagRetrievalConfig" + }, + "similarity_top_k": { + "description": "Optional. Number of top k results to return from the selected corpora.", + "type": "integer", + "deprecated": true, + "format": "int32" + }, + "vector_distance_threshold": { + "description": "Optional. Only return results with vector distance smaller than the threshold.", + "type": "number", + "deprecated": true, + "format": "double" + } + }, + "x-speakeasy-model-namespace": "interactions" + }, + "RankService": { + "description": "Config for Rank Service.", + "type": "object", + "properties": { + "model_name": { + "description": "Optional. The model name of the rank service.", + "type": "string" + } + }, + "x-speakeasy-model-namespace": "interactions" + }, + "Ranking": { + "description": "Config for ranking and reranking.", + "type": "object", + "properties": { + "model_name": { + "description": "Optional. The model name of the rank service.", + "type": "string" + }, + "rank_service": { + "description": "Config for Rank Service.", + "$ref": "#/components/schemas/RankService" + }, + "ranking_config": { + "const": "rank_service" + } + }, + "required": [ + "ranking_config" + ], + "x-speakeasy-model-namespace": "interactions" + }, + "ReplicatedVoice": { + "description": "Input only. Parameters for replicated voice generation.\nRequired on input when `type` is `\"replicated\"`. Not returned in\nresponses.", + "type": "object", + "properties": { + "consent_audio": { + "description": "Required. Audio recording of the same speaker reading the required\nconsent phrase, confirming authorization to replicate the voice.", + "$ref": "#/components/schemas/AudioData" + }, + "source_audio": { + "description": "Required. The reference audio sample of the speaker's voice to replicate.\nMust be an unmodified recording of an adult human voice.", + "$ref": "#/components/schemas/AudioData" + } + }, + "required": [ + "consent_audio", + "source_audio" + ], + "writeOnly": true, + "x-speakeasy-exports": [ + { + "name": "ReplicatedVoice", + "group": "voices" + } + ], + "x-speakeasy-model-namespace": "voices" + }, + "ResponseFormat": { + "oneOf": [ + { + "$ref": "#/components/schemas/AudioResponseFormat" + }, + { + "$ref": "#/components/schemas/ImageResponseFormat" + }, + { + "$ref": "#/components/schemas/TextResponseFormat" + }, + { + "$ref": "#/components/schemas/VideoResponseFormat" + }, + { + "type": "object", + "additionalProperties": true + } + ], + "x-speakeasy-model-namespace": "interactions" + }, + "ResponseModality": { + "type": "string", + "enum": [ + "text", + "image", + "audio", + "video", + "document" + ], + "x-google-enum-descriptions": [ + "Indicates the model should return text.", + "Indicates the model should return images.", + "Indicates the model should return audio.", + "Indicates the model should return video.", + "Indicates the model should return documents." + ], + "x-speakeasy-model-namespace": "interactions" + }, + "Retrieval": { + "description": "A tool that can be used by the model to retrieve files.", + "type": "object", + "properties": { + "exa_ai_search_config": { + "description": "Used to specify configuration for ExaAISearch.", + "$ref": "#/components/schemas/ExaAISearchConfig" + }, + "parallel_ai_search_config": { + "description": "Used to specify configuration for ParallelAISearch.", + "$ref": "#/components/schemas/ParallelAISearchConfig" + }, + "rag_store_config": { + "description": "Used to specify configuration for RagStore.", + "$ref": "#/components/schemas/RagStoreConfig" + }, + "retrieval_types": { + "description": "The types of file retrieval to enable.", + "type": "array", + "items": { + "type": "string", + "enum": [ + "vertex_ai_search", + "rag_store", + "exa_ai_search", + "parallel_ai_search" + ], + "x-google-enum-descriptions": [ + "", + "", + "", + "" + ] + } + }, + "type": { + "const": "retrieval" + }, + "vertex_ai_search_config": { + "description": "Used to specify configuration for VertexAISearch.", + "$ref": "#/components/schemas/VertexAISearchConfig" + } + }, + "required": [ + "type" + ], + "x-speakeasy-model-namespace": "interactions" + }, + "RetrievalCallDelta": { + "description": "Used by Vertex Retrieval tools such as Parallel AI, Exa AI, Vertex AI Search,\netc. RetrievalType decides which tool is used.", + "type": "object", + "properties": { + "arguments": { + "description": "Required. The arguments to pass to the Retrieval tool.", + "$ref": "#/components/schemas/RetrievalStepArguments" + }, + "retrieval_type": { + "description": "The type of retrieval tools.", + "type": "string", + "enum": [ + "vertex_ai_search", + "rag_store", + "exa_ai_search", + "parallel_ai_search" + ], + "x-google-enum-descriptions": [ + "", + "", + "", + "" + ] + }, + "signature": { + "description": "A signature hash for backend validation.", + "type": "string", + "format": "byte", + "x-speakeasy-base64-input-mode": "file" + }, + "type": { + "const": "retrieval_call" + } + }, + "required": [ + "arguments", + "type" + ], + "x-speakeasy-exports": [ + { + "name": "RetrievalCallDelta", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions" + }, + "RetrievalCallStep": { + "description": "Retrieval call step.\nUsed by Vertex Retrieval tools such as Parallel AI, Exa AI, Vertex AI Search,\netc. RetrievalType decides which tool is used.", + "type": "object", + "properties": { + "arguments": { + "description": "Required. The arguments to pass to the retrieval tool.", + "$ref": "#/components/schemas/RetrievalStepArguments" + }, + "id": { + "description": "Required. A unique ID for this specific tool call.", + "type": "string" + }, + "retrieval_type": { + "description": "The type of retrieval tools.", + "type": "string", + "enum": [ + "vertex_ai_search", + "rag_store", + "exa_ai_search", + "parallel_ai_search" + ], + "x-google-enum-descriptions": [ + "", + "", + "", + "" + ] + }, + "signature": { + "description": "A signature hash for backend validation.", + "type": "string", + "format": "byte", + "x-speakeasy-base64-input-mode": "file" + }, + "type": { + "const": "retrieval_call" + } + }, + "required": [ + "arguments", + "id", + "type" + ], + "x-speakeasy-exports": [ + { + "name": "RetrievalCallStep", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions" + }, + "RetrievalResultDelta": { + "description": "Used by Vertex Retrieval tools such as Parallel AI, Exa AI, Vertex AI Search,\netc.\nToolResultDelta.type", + "type": "object", + "properties": { + "is_error": { + "description": "Whether the retrieval resulted in an error.", + "type": "boolean" + }, + "signature": { + "description": "A signature hash for backend validation.", + "type": "string", + "format": "byte", + "x-speakeasy-base64-input-mode": "file" + }, + "type": { + "const": "retrieval_result" + } + }, + "required": [ + "type" + ], + "x-speakeasy-exports": [ + { + "name": "RetrievalResultDelta", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions" + }, + "RetrievalResultStep": { + "description": "Vertex Retrieval result step.\nUsed by Vertex Retrieval tools such as Parallel AI, Exa AI, Vertex AI Search,\netc.", + "type": "object", + "properties": { + "call_id": { + "description": "Required. ID to match the ID from the function call block.", + "type": "string" + }, + "is_error": { + "description": "Whether the retrieval resulted in an error.", + "type": "boolean" + }, + "signature": { + "description": "A signature hash for backend validation.", + "type": "string", + "format": "byte", + "x-speakeasy-base64-input-mode": "file" + }, + "type": { + "const": "retrieval_result" + } + }, + "required": [ + "call_id", + "type" + ], + "x-speakeasy-exports": [ + { + "name": "RetrievalResultStep", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions" + }, + "RetrievalStepArguments": { + "description": "The arguments to pass to Retrieval tools.", + "type": "object", + "properties": { + "queries": { + "description": "Queries for Retrieval information.", + "type": "array", + "items": { + "type": "string" + } + } + }, + "x-speakeasy-exports": [ + { + "name": "RetrievalCallArguments", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions", + "x-speakeasy-name-override": "RetrievalCallArguments" + }, + "ReviewSnippet": { + "description": "Encapsulates a snippet of a user review that answers a question about\nthe features of a specific place in Google Maps.", + "type": "object", + "properties": { + "review_id": { + "description": "The ID of the review snippet.", + "type": "string" + }, + "title": { + "description": "Title of the review.", + "type": "string" + }, + "url": { + "description": "A link that corresponds to the user review on Google Maps.", + "type": "string" + } + }, + "x-speakeasy-model-namespace": "interactions" + }, + "RotateSigningSecretRequest": { + "description": "Request message for WebhookService.RotateSigningSecret.", + "type": "object", + "properties": { + "revocation_behavior": { + "description": "Optional. The revocation behavior for previous signing secrets.", + "type": "string", + "enum": [ + "revoke_previous_secrets_after_h24", + "revoke_previous_secrets_immediately" + ], + "x-google-enum-descriptions": [ + "Generate a new signing secret and revoke all previous secrets after 24\nhours. Default and safest option for migrations.", + "Revoke all previous secrets immediately. Use with caution as this can\ninterrupt ongoing notifications." + ] + } + }, + "x-speakeasy-exports": [ + { + "name": "WebhookRotateSigningSecretParams", + "group": "webhooks", + "representation": "input" + } + ], + "x-speakeasy-model-namespace": "webhooks" + }, + "RotateSigningSecretResponse": { + "description": "Response message for WebhookService.RotateSigningSecret.", + "type": "object", + "properties": { + "secret": { + "description": "Output only. The newly generated signing secret.", + "type": "string", + "readOnly": true, + "x-speakeasy-param-sensitive": true + } + }, + "x-speakeasy-exports": [ + { + "name": "WebhookRotateSigningSecretResponse", + "group": "webhooks" + } + ], + "x-speakeasy-model-namespace": "webhooks", + "x-speakeasy-name-override": "WebhookRotateSigningSecretResponse" + }, + "RunTriggerRequest": { + "description": "Request message for TriggerService.RunTrigger.", + "type": "object", + "properties": { + "id": { + "description": "Required. The ID of the trigger to run immediately.", + "type": "string" + } + }, + "required": [ + "id" + ], + "x-speakeasy-model-namespace": "interactions" + }, + "SafetySetting": { + "description": "A safety setting that affects the safety-blocking behavior.\n\nA SafetySetting consists of a\nharm category and a\nthreshold for that\ncategory.", + "type": "object", + "properties": { + "method": { + "description": "Optional. The method for blocking content. If not specified, the default\nbehavior is to use the probability score.", + "type": "string", + "enum": [ + "severity", + "probability" + ], + "x-google-enum-descriptions": [ + "The harm block method uses both probability and severity scores.", + "The harm block method uses the probability score." + ] + }, + "threshold": { + "description": "Required. The threshold for blocking content. If the harm probability\nexceeds this threshold, the content will be blocked.", + "type": "string", + "enum": [ + "block_low_and_above", + "block_medium_and_above", + "block_only_high", + "block_none", + "off" + ], + "x-google-enum-descriptions": [ + "Block content with a low harm probability or higher.", + "Block content with a medium harm probability or higher.", + "Block content with a high harm probability.", + "Do not block any content, regardless of its harm probability.", + "Turn off the safety filter entirely." + ] + }, + "type": { + "description": "Required. The type of harm category to be blocked.", + "$ref": "#/components/schemas/HarmCategory" + } + }, + "required": [ + "threshold", + "type" + ], + "x-speakeasy-exports": [ + { + "name": "SafetySetting", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions" + }, + "ServiceTier": { + "type": "string", + "enum": [ + "flex", + "standard", + "priority", + "deferred" + ], + "x-google-enum-descriptions": [ + "Flex service tier.", + "Standard service tier.", + "Priority service tier.", + "Deferred service tier." + ], + "x-speakeasy-model-namespace": "interactions" + }, + "SessionConfig": { + "description": "The configuration of CodeMender sessions.", + "type": "object", + "properties": { + "max_rounds": { + "description": "The maximum number of interaction rounds the agent is allowed to perform\nbefore reaching a timeout.", + "type": "integer", + "format": "int32" + } + }, + "x-speakeasy-model-namespace": "interactions" + }, + "SigningSecret": { + "description": "Represents a signing secret used to verify webhook payloads.", + "type": "object", + "properties": { + "expire_time": { + "description": "Output only. The expiration date of the signing secret.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "truncated_secret": { + "description": "Output only. The truncated version of the signing secret.", + "type": "string", + "readOnly": true + } + }, + "x-speakeasy-exports": [ + { + "name": "SigningSecret", + "group": "webhooks" + } + ], + "x-speakeasy-model-namespace": "webhooks" + }, + "SmartTranscriptionMode": { + "description": "Configuration for smart transcription mode.", + "type": "object", + "properties": { + "source_text": { + "description": "The source text to be edited or rewritten via voice instructions.\nWhen provided, the model performs voice-driven editing and outputs the\nfinalized replacement text.", + "type": "string" + }, + "type": { + "const": "smart" + } + }, + "required": [ + "type" + ], + "x-speakeasy-model-namespace": "interactions" + }, + "Source": { + "description": "A source to be mounted into the environment.", + "type": "object", + "properties": { + "content": { + "description": "The inline content if `type` is `INLINE`.", + "type": "string" + }, + "encoding": { + "description": "Optional encoding for inline content (e.g. `base64`).", + "type": "string" + }, + "source": { + "description": "The source of the environment.\nFor Cloud Storage, this is the Cloud Storage path.\nFor GitHub, this is the GitHub path.", + "type": "string" + }, + "target": { + "description": "Where the source should appear in the environment.", + "type": "string" + }, + "type": { + "type": "string", + "enum": [ + "gcs", + "inline", + "repository", + "skill_registry" + ], + "x-google-enum-descriptions": [ + "A Cloud Storage bucket.", + "Inline content.", + "A generic repository. The protocol prefix in the source URL\nidentifies the provider (e.g., github://, gcs://).", + "A skill resource from the Skill Registry Service.\nSkill: projects/{project}/locations/{location}/skills/{skill}\nSkillRevision:\nprojects/{project}/locations/{location}/skills/{skill}/revisions/{revision}\nSupport mounting all skills under a project:\nprojects/{project}/locations/{location}/skills." + ] + } + }, + "x-speakeasy-model-namespace": "interactions" + }, + "SpeakerConfig": { + "description": "Configuration for multi-speaker and speech generation.", + "type": "object", + "properties": { + "speakers": { + "description": "Individual speaker configurations.", + "type": "array", + "items": { + "$ref": "#/components/schemas/SpeechConfig" + } + } + }, + "x-speakeasy-model-namespace": "interactions" + }, + "SpeechAnnotation": { + "description": "Speech annotation for text content.", + "type": "object", + "properties": { + "end_index": { + "description": "End of the attributed segment, exclusive.", + "type": "integer", + "format": "int32" + }, + "speaker": { + "description": "The speaker to associate with this turn.", + "type": "string" + }, + "start_index": { + "description": "Start of segment of the response that is attributed to this source.\n\nIndex indicates the start of the segment, measured in bytes.", + "type": "integer", + "format": "int32" + }, + "style": { + "description": "Style instruction for the speech synthesis.", + "type": "string" + }, + "type": { + "const": "speech_metadata" + } + }, + "required": [ + "type" + ], + "x-speakeasy-model-namespace": "interactions" + }, + "SpeechConfig": { + "description": "The configuration for speech interaction.", + "type": "object", + "properties": { + "language": { + "description": "The language of the speech.", + "type": "string" + }, + "speaker": { + "description": "The speaker's name, it should match the speaker name given in the prompt.", + "type": "string" + }, + "voice": { + "description": "The voice of the speaker.", + "type": "string" + } + }, + "x-speakeasy-exports": [ + { + "name": "SpeechConfig", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions" + }, + "StaticMediaProcessing": { + "type": "object", + "properties": { + "end_offset": { + "description": "Optional. Segment end time. Specified as a decimal number of seconds followed\nby an 's' suffix, e.g., \"30s\". Must be non-negative and greater than\n`start_offset` if `start_offset` is set.", + "type": "string", + "format": "google-duration" + }, + "fps": { + "description": "Optional. Video frame-rate sampling density.", + "type": "number", + "format": "double" + }, + "start_offset": { + "description": "Optional. Segment start time. Specified as a decimal number of seconds followed\nby an 's' suffix, e.g., \"10.5s\". Must be non-negative.", + "type": "string", + "format": "google-duration" + }, + "type": { + "const": "static" + } + }, + "required": [ + "type" + ], + "x-speakeasy-model-namespace": "interactions" + }, + "Status": { + "description": "The `Status` type defines a logical error model that is suitable for\ndifferent programming environments, including REST APIs and RPC APIs. It is\nused by [gRPC](https://github.com/grpc). Each `Status` message contains\nthree pieces of data: error code, error message, and error details.\n\nYou can find out more about this error model and how to work with it in the\n[API Design Guide](https://cloud.google.com/apis/design/errors).", + "type": "object", + "properties": { + "code": { + "description": "The status code, which should be an enum value of google.rpc.Code.", + "type": "integer", + "format": "int32" + }, + "details": { + "description": "A list of messages that carry the error details. There is a common set of\nmessage types for APIs to use.", + "type": "array", + "items": { + "type": "object", + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL." + } + } + }, + "message": { + "description": "A developer-facing error message, which should be in English. Any\nuser-facing error message should be localized and sent in the\ngoogle.rpc.Status.details field, or localized by the client.", + "type": "string" + } + }, + "x-speakeasy-model-namespace": "interactions" + }, + "Step": { + "description": "A step in the interaction.", + "oneOf": [ + { + "$ref": "#/components/schemas/CodeExecutionCallStep" + }, + { + "$ref": "#/components/schemas/CodeExecutionResultStep" + }, + { + "$ref": "#/components/schemas/FileSearchCallStep" + }, + { + "$ref": "#/components/schemas/FileSearchResultStep" + }, + { + "$ref": "#/components/schemas/FunctionCallStep" + }, + { + "$ref": "#/components/schemas/FunctionResultStep" + }, + { + "$ref": "#/components/schemas/GoogleMapsCallStep" + }, + { + "$ref": "#/components/schemas/GoogleMapsResultStep" + }, + { + "$ref": "#/components/schemas/GoogleSearchCallStep" + }, + { + "$ref": "#/components/schemas/GoogleSearchResultStep" + }, + { + "$ref": "#/components/schemas/McpServerToolCallStep" + }, + { + "$ref": "#/components/schemas/McpServerToolResultStep" + }, + { + "$ref": "#/components/schemas/ModelOutputStep" + }, + { + "$ref": "#/components/schemas/ProcessingCallStep" + }, + { + "$ref": "#/components/schemas/ProcessingResultStep" + }, + { + "$ref": "#/components/schemas/RetrievalCallStep" + }, + { + "$ref": "#/components/schemas/RetrievalResultStep" + }, + { + "$ref": "#/components/schemas/ThoughtStep" + }, + { + "$ref": "#/components/schemas/UrlContextCallStep" + }, + { + "$ref": "#/components/schemas/UrlContextResultStep" + }, + { + "$ref": "#/components/schemas/UserInputStep" + } + ], + "x-speakeasy-exports": [ + { + "name": "Step", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions" + }, + "StepDelta": { + "type": "object", + "properties": { + "delta": { + "$ref": "#/components/schemas/StepDeltaData" + }, + "event_id": { + "description": "The event_id token to be used to resume the interaction stream, from\nthis event.", + "type": "string" + }, + "event_type": { + "const": "step.delta" + }, + "index": { + "type": "integer", + "format": "int32" + }, + "metadata": { + "$ref": "#/components/schemas/StepDeltaMetadata" + } + }, + "required": [ + "delta", + "event_type", + "index" + ], + "example": { + "delta": { + "type": "text", + "text": "Hello" + }, + "event_type": "step.delta", + "index": 0 + }, + "x-example-summaries": [ + "Step Delta" + ], + "x-speakeasy-exports": [ + { + "name": "StepDelta", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions" + }, + "StepDeltaData": { + "oneOf": [ + { + "$ref": "#/components/schemas/ArgumentsDelta" + }, + { + "$ref": "#/components/schemas/AudioDelta" + }, + { + "$ref": "#/components/schemas/CodeExecutionCallDelta" + }, + { + "$ref": "#/components/schemas/CodeExecutionResultDelta" + }, + { + "$ref": "#/components/schemas/DocumentDelta" + }, + { + "$ref": "#/components/schemas/FileSearchCallDelta" + }, + { + "$ref": "#/components/schemas/FileSearchResultDelta" + }, + { + "$ref": "#/components/schemas/FunctionResultDelta" + }, + { + "$ref": "#/components/schemas/GoogleMapsCallDelta" + }, + { + "$ref": "#/components/schemas/GoogleMapsResultDelta" + }, + { + "$ref": "#/components/schemas/GoogleSearchCallDelta" + }, + { + "$ref": "#/components/schemas/GoogleSearchResultDelta" + }, + { + "$ref": "#/components/schemas/ImageDelta" + }, + { + "$ref": "#/components/schemas/McpServerToolCallDelta" + }, + { + "$ref": "#/components/schemas/McpServerToolResultDelta" + }, + { + "$ref": "#/components/schemas/ProcessingCallDelta" + }, + { + "$ref": "#/components/schemas/ProcessingResultDelta" + }, + { + "$ref": "#/components/schemas/RetrievalCallDelta" + }, + { + "$ref": "#/components/schemas/RetrievalResultDelta" + }, + { + "$ref": "#/components/schemas/TextAnnotationDelta" + }, + { + "$ref": "#/components/schemas/TextDelta" + }, + { + "$ref": "#/components/schemas/ThoughtSignatureDelta" + }, + { + "$ref": "#/components/schemas/ThoughtSummaryDelta" + }, + { + "$ref": "#/components/schemas/UrlContextCallDelta" + }, + { + "$ref": "#/components/schemas/UrlContextResultDelta" + }, + { + "$ref": "#/components/schemas/VideoDelta" + } + ], + "x-speakeasy-model-namespace": "interactions" + }, + "StepDeltaMetadata": { + "description": "Optional metadata accompanying ANY streamed event.", + "type": "object", + "properties": { + "total_usage": { + "description": "Statistics on the interaction request's token usage.", + "$ref": "#/components/schemas/Usage" + } + }, + "x-speakeasy-model-namespace": "interactions" + }, + "StepStart": { + "type": "object", + "properties": { + "event_id": { + "description": "The event_id token to be used to resume the interaction stream, from\nthis event.", + "type": "string" + }, + "event_type": { + "const": "step.start" + }, + "index": { + "type": "integer", + "format": "int32" + }, + "step": { + "$ref": "#/components/schemas/Step" + } + }, + "required": [ + "event_type", + "index", + "step" + ], + "example": { + "event_type": "step.start", + "index": 0, + "step": { + "type": "model_output" + } + }, + "x-example-summaries": [ + "Step Start" + ], + "x-speakeasy-exports": [ + { + "name": "StepStart", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions" + }, + "StepStop": { + "type": "object", + "properties": { + "event_id": { + "description": "The event_id token to be used to resume the interaction stream, from\nthis event.", + "type": "string" + }, + "event_type": { + "const": "step.stop" + }, + "index": { + "type": "integer", + "format": "int32" + }, + "step_usage": { + "description": "Model usage stats for this specific step.", + "$ref": "#/components/schemas/Usage" + }, + "usage": { + "description": "Cumulative model usage stats from the start of the session.", + "$ref": "#/components/schemas/Usage" + } + }, + "required": [ + "event_type", + "index" + ], + "example": { + "event_type": "step.stop", + "index": 0 + }, + "x-example-summaries": [ + "Step Stop" + ], + "x-speakeasy-exports": [ + { + "name": "StepStop", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions" + }, + "TextAnnotationDelta": { + "type": "object", + "properties": { + "annotations": { + "description": "Citation information for model-generated content.", + "type": "array", + "items": { + "$ref": "#/components/schemas/Annotation" + } + }, + "type": { + "const": "text_annotation_delta" + } + }, + "required": [ + "type" + ], + "x-speakeasy-model-namespace": "interactions" + }, + "TextContent": { + "description": "A text content block.", + "type": "object", + "properties": { + "annotations": { + "description": "Citation information for model-generated content.", + "type": "array", + "items": { + "$ref": "#/components/schemas/Annotation" + } + }, + "text": { + "description": "Required. The text content.", + "type": "string" + }, + "type": { + "const": "text" + } + }, + "required": [ + "text", + "type" + ], + "example": { + "type": "text", + "text": "Hello, how are you?" + }, + "x-example-summaries": [ + "Text" + ], + "x-speakeasy-exports": [ + { + "name": "TextContent", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions" + }, + "TextDelta": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "type": { + "const": "text" + } + }, + "required": [ + "text", + "type" + ], + "x-speakeasy-model-namespace": "interactions" + }, + "TextResponseFormat": { + "description": "Configuration for text output format.", + "type": "object", + "properties": { + "mime_type": { + "description": "The MIME type of the text output.", + "type": "string", + "enum": [ + "application/json", + "text/plain" + ], + "x-google-enum-descriptions": [ + "JSON output format.", + "Plain text output format." + ] + }, + "schema": { + "description": "The JSON schema that the output should conform to. Only applicable when\nmime_type is application/json.\n\nSupports a subset of JSON Schema. `minLength`, `maxLength`,\n`minProperties`, `maxProperties`, `uniqueItems`, `contains`,\n`minContains`, and `maxContains` are ignored and not enforced; validate\nthese in your application. `minItems` and `maxItems` are enforced. Schemas\nthat are too complex to enforce (for example, large `maxItems` on nested\narrays) return a 400 INVALID_ARGUMENT error.", + "type": "object", + "additionalProperties": { + "description": "Properties of the object." + } + }, + "type": { + "const": "text" + } + }, + "required": [ + "type" + ], + "example": { + "type": "text", + "mime_type": "application/json", + "schema": { + "type": "object", + "properties": { + "ingredients": { + "type": "array", + "items": { + "type": "string" + } + }, + "recipe_name": { + "type": "string" + } + }, + "required": [ + "ingredients", + "recipe_name" + ] + } + }, + "x-example-summaries": [ + "Text Output (JSON Schema)" + ], + "x-speakeasy-exports": [ + { + "name": "TextResponseFormat", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions" + }, + "ThinkingLevel": { + "type": "string", + "enum": [ + "minimal", + "low", + "medium", + "high" + ], + "x-google-enum-descriptions": [ + "Little to no thinking.", + "Low thinking level.", + "Medium thinking level.", + "High thinking level." + ], + "x-speakeasy-exports": [ + { + "name": "ThinkingLevel", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions" + }, + "ThinkingSummaries": { + "type": "string", + "enum": [ + "auto", + "none" + ], + "x-google-enum-descriptions": [ + "Auto thinking summaries.", + "No thinking summaries." + ], + "x-speakeasy-model-namespace": "interactions" + }, + "ThoughtContent": { + "oneOf": [ + { + "$ref": "#/components/schemas/ImageContent" + }, + { + "$ref": "#/components/schemas/TextContent" + } + ], + "x-speakeasy-model-namespace": "interactions", + "x-speakeasy-name-override": "ThoughtSummaryContent" + }, + "ThoughtSignatureDelta": { + "type": "object", + "properties": { + "signature": { + "description": "Signature to match the backend source to be part of the generation.", + "type": "string", + "format": "byte", + "x-speakeasy-base64-input-mode": "file" + }, + "type": { + "const": "thought_signature" + } + }, + "required": [ + "type" + ], + "x-speakeasy-model-namespace": "interactions" + }, + "ThoughtStep": { + "description": "A thought step.", + "type": "object", + "properties": { + "signature": { + "description": "A signature hash for backend validation.", + "type": "string", + "format": "byte", + "x-speakeasy-base64-input-mode": "file" + }, + "summary": { + "description": "A summary of the thought.", + "type": "array", + "items": { + "$ref": "#/components/schemas/ThoughtContent" + } + }, + "type": { + "const": "thought" + } + }, + "required": [ + "type" + ], + "example": { + "type": "thought", + "signature": "thought_sig_abcd1234", + "summary": [ + { + "type": "text", + "text": "The model is searching Google for the capital of France." + } + ] + }, + "x-example-summaries": [ + "ThoughtStep" + ], + "x-speakeasy-exports": [ + { + "name": "ThoughtStep", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions" + }, + "ThoughtSummaryDelta": { + "type": "object", + "properties": { + "content": { + "description": "A new summary item to be added to the thought.", + "$ref": "#/components/schemas/Content" + }, + "type": { + "const": "thought_summary" + } + }, + "required": [ + "type" + ], + "x-speakeasy-model-namespace": "interactions" + }, + "Tool": { + "description": "A tool that can be used by the model.", + "oneOf": [ + { + "$ref": "#/components/schemas/CodeExecution" + }, + { + "$ref": "#/components/schemas/ComputerUse" + }, + { + "$ref": "#/components/schemas/FileSearch" + }, + { + "$ref": "#/components/schemas/Function" + }, + { + "$ref": "#/components/schemas/GoogleMaps" + }, + { + "$ref": "#/components/schemas/GoogleSearch" + }, + { + "$ref": "#/components/schemas/McpServer" + }, + { + "$ref": "#/components/schemas/Retrieval" + }, + { + "$ref": "#/components/schemas/UrlContext" + } + ], + "x-speakeasy-exports": [ + { + "name": "Tool", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions" + }, + "ToolChoiceConfig": { + "description": "The tool choice configuration containing allowed tools.", + "type": "object", + "properties": { + "allowed_tools": { + "description": "The allowed tools.", + "$ref": "#/components/schemas/AllowedTools" + } + }, + "example": { + "allowed_tools": { + "mode": "any", + "tools": [ + "my_tool" + ] + } + }, + "x-example-summaries": [ + "Allowed Tools" + ], + "x-speakeasy-exports": [ + { + "name": "ToolChoiceConfig", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions" + }, + "ToolChoiceType": { + "type": "string", + "enum": [ + "auto", + "any", + "none", + "validated" + ], + "x-google-enum-descriptions": [ + "Auto tool choice.", + "Any tool choice.", + "No tool choice.", + "Validated tool choice." + ], + "x-speakeasy-exports": [ + { + "name": "ToolChoiceType", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions" + }, + "TranscriptionConfig": { + "description": "Configuration for speech recognition (transcription).", + "type": "object", + "properties": { + "adaptation_phrases": { + "description": "Optional. A list of phrases to bias the ASR model towards.", + "type": "array", + "deprecated": true, + "items": { + "type": "string" + } + }, + "custom_vocabulary": { + "description": "Optional. A list of custom vocabulary phrases to bias the speech recognition model\ntoward recognizing specific terms.", + "type": "array", + "items": { + "type": "string" + } + }, + "diarization_mode": { + "description": "Optional. Configures speaker diarization. Supported values: \"speaker\".", + "type": "string", + "deprecated": true + }, + "language_codes": { + "description": "Optional. BCP-47 language codes providing hints about the languages present in the\naudio. If omitted or empty, defaults to automatic language detection.", + "type": "array", + "items": { + "type": "string" + } + }, + "language_hints": { + "description": "Deprecated: use language_codes. BCP-47 language codes providing hints about the languages present in the audio.", + "type": "array", + "deprecated": true, + "items": { + "type": "string" + } + }, + "mode": { + "title": "TranscriptionConfigMode", + "description": "Discriminated transcription mode options or enum.", + "oneOf": [ + { + "$ref": "#/components/schemas/TranscriptionMode" + }, + { + "type": "string", + "enum": [ + "verbatim", + "smart" + ], + "x-google-enum-descriptions": [ + "Verbatim transcription mode.", + "Smart transcription mode." + ] + } + ] + }, + "timestamp_granularities": { + "description": "Optional. The granularity of timestamps to include in the transcription output.\nSupported values: \"word\". If empty, no timestamps are generated.", + "type": "array", + "deprecated": true, + "items": { + "type": "string" + } + } + }, + "x-speakeasy-exports": [ + { + "name": "TranscriptionConfig", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions" + }, + "TranscriptionMode": { + "description": "Configuration for transcription mode.", + "oneOf": [ + { + "$ref": "#/components/schemas/SmartTranscriptionMode" + }, + { + "$ref": "#/components/schemas/VerbatimTranscriptionMode" + } + ], + "x-speakeasy-exports": [ + { + "name": "TranscriptionMode", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions" + }, + "Trigger": { + "description": "A trigger configuration that is scheduled to run an agent.", + "type": "object", + "properties": { + "consecutive_failure_count": { + "description": "Output only. The number of consecutive failures that have occurred\nsince the last successful execution.", + "type": "integer", + "format": "int32", + "readOnly": true + }, + "create_time": { + "description": "Output only. The time when the trigger was created.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "display_name": { + "description": "Optional. The display name of the trigger.", + "type": "string" + }, + "environment_id": { + "description": "Optional. The environment ID for the trigger execution.", + "type": "string" + }, + "execution_timeout_seconds": { + "description": "Optional. The execution timeout for the triggered interaction.", + "type": "integer", + "format": "int32" + }, + "id": { + "description": "Required. Output only. Identifier. The ID of the trigger.", + "type": "string", + "readOnly": true, + "x-google-identifier": true + }, + "interaction": { + "description": "Required. The interaction request template to be executed.", + "$ref": "#/components/schemas/AgentInteraction" + }, + "last_pause_time": { + "description": "Output only. The time when the trigger was last paused.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "last_resume_time": { + "description": "Output only. The time when the trigger was last resumed.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "last_run_time": { + "description": "Output only. The time when the trigger was last run.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "max_consecutive_failures": { + "description": "Optional. The maximum number of consecutive failures allowed before\nthe trigger is automatically paused (status becomes ERROR).", + "type": "integer", + "format": "int32" + }, + "next_run_time": { + "description": "Output only. The time when the trigger is scheduled to run next.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "previous_interaction_id": { + "description": "Output only. The ID of the last interaction created by this trigger.", + "type": "string", + "readOnly": true + }, + "schedule": { + "description": "Required. The cron schedule on which the trigger should run.\nStandard cron format.", + "type": "string" + }, + "status": { + "description": "Output only. The current status of the trigger.", + "type": "string", + "enum": [ + "active", + "paused", + "error" + ], + "readOnly": true, + "x-google-enum-descriptions": [ + "The trigger is active and will fire on schedule.", + "The trigger is paused and will not fire.", + "The trigger has entered an error state due to consecutive failures." + ] + }, + "time_zone": { + "description": "Required. Time zone in which the schedule should be interpreted.", + "type": "string" + }, + "update_time": { + "description": "Output only. The time when the trigger was last updated.", + "type": "string", + "format": "date-time", + "readOnly": true + } + }, + "required": [ + "id", + "interaction", + "schedule", + "time_zone" + ], + "x-speakeasy-exports": [ + { + "name": "Trigger", + "group": "triggers", + "representation": "model" + } + ], + "x-speakeasy-model-namespace": "triggers" + }, + "TriggerCreateParams": { + "description": "Parameters for creating a trigger.", + "type": "object", + "properties": { + "display_name": { + "description": "Optional. The display name of the trigger.", + "type": "string" + }, + "environment_id": { + "description": "Optional. The environment ID for the trigger execution.", + "type": "string" + }, + "execution_timeout_seconds": { + "description": "Optional. The execution timeout for the triggered interaction.", + "type": "integer", + "format": "int32" + }, + "interaction": { + "description": "Required. The interaction request template to be executed.", + "$ref": "#/components/schemas/AgentInteraction" + }, + "max_consecutive_failures": { + "description": "Optional. The maximum number of consecutive failures allowed before\nthe trigger is automatically paused (status becomes ERROR).", + "type": "integer", + "format": "int32" + }, + "schedule": { + "description": "Required. The cron schedule on which the trigger should run.\nStandard cron format.", + "type": "string" + }, + "time_zone": { + "description": "Required. Time zone in which the schedule should be interpreted.", + "type": "string" + } + }, + "required": [ + "interaction", + "schedule", + "time_zone" + ], + "x-speakeasy-exports": [ + { + "name": "TriggerCreateParams", + "group": "triggers", + "representation": "input" + } + ], + "x-speakeasy-model-namespace": "triggers" + }, + "TriggerExecution": { + "description": "An execution instance of a trigger.", + "type": "object", + "properties": { + "end_time": { + "description": "Output only. The time when the execution finished.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "environment_id": { + "description": "Output only. The environment ID used for the execution.", + "type": "string", + "readOnly": true + }, + "error": { + "description": "Output only. The error message if the execution failed.", + "type": "string", + "readOnly": true + }, + "id": { + "description": "Required. Output only. Identifier. The ID of the trigger execution.", + "type": "string", + "readOnly": true, + "x-google-identifier": true + }, + "interaction_id": { + "description": "Output only. The ID of the interaction created by this execution, if any.", + "type": "string", + "readOnly": true + }, + "scheduled_time": { + "description": "Output only. The time when the execution was scheduled to run.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "start_time": { + "description": "Output only. The time when the execution started.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "status": { + "description": "Output only. The status of the execution.", + "type": "string", + "enum": [ + "in_progress", + "completed", + "failed", + "skipped", + "timed_out" + ], + "readOnly": true, + "x-google-enum-descriptions": [ + "The execution is currently in progress.", + "The execution completed successfully.", + "The execution failed.", + "The execution was skipped (e.g., previous execution still running).", + "The execution timed out." + ] + }, + "trigger_id": { + "description": "Required. Output only. Identifier. The ID of the trigger that created this execution.", + "type": "string", + "readOnly": true, + "x-google-identifier": true + } + }, + "required": [ + "id", + "trigger_id" + ], + "x-speakeasy-exports": [ + { + "name": "TriggerExecution", + "group": "triggers" + } + ], + "x-speakeasy-model-namespace": "triggers" + }, + "TriggerUpdate": { + "description": "Represents the fields of a Trigger that can be updated.", + "type": "object", + "properties": { + "display_name": { + "description": "Optional. The display name of the trigger.", + "type": "string" + }, + "status": { + "description": "Optional. The status of the trigger.", + "type": "string", + "enum": [ + "active", + "paused", + "error" + ], + "x-google-enum-descriptions": [ + "The trigger is active and will fire on schedule.", + "The trigger is paused and will not fire.", + "The trigger has entered an error state due to consecutive failures." + ] + } + }, + "x-speakeasy-exports": [ + { + "name": "TriggerUpdate", + "group": "triggers" + } + ], + "x-speakeasy-model-namespace": "triggers" + }, + "UpdateTriggerRequest": { + "description": "Request message for TriggerService.UpdateTrigger.", + "type": "object", + "properties": { + "id": { + "description": "Required. The ID of the trigger to update.", + "type": "string" + }, + "trigger": { + "description": "Required. The trigger to update.", + "$ref": "#/components/schemas/TriggerUpdate" + }, + "update_mask": { + "description": "Optional. The update mask applies to the resource.", + "type": "string", + "format": "google-fieldmask", + "pattern": "^(\\s*[^,\\s.]+(\\s*[,.]\\s*[^,\\s.]+)*)?$" + } + }, + "required": [ + "id", + "trigger" + ], + "x-speakeasy-model-namespace": "interactions" + }, + "UpdateWebhookRequest": { + "description": "Request message for WebhookService.UpdateWebhook.", + "type": "object", + "properties": { + "id": { + "description": "Required. The ID of the webhook to update.", + "type": "string" + }, + "update_mask": { + "description": "Optional. The list of fields to update.", + "type": "string", + "format": "google-fieldmask", + "pattern": "^(\\s*[^,\\s.]+(\\s*[,.]\\s*[^,\\s.]+)*)?$" + }, + "webhook": { + "description": "Required. The webhook to update.", + "$ref": "#/components/schemas/WebhookUpdate" + } + }, + "required": [ + "id", + "webhook" + ], + "x-speakeasy-model-namespace": "interactions" + }, + "UploadEnvironmentFileRequest": { + "description": "Request for `UploadEnvironmentFile`.", + "type": "object", + "properties": { + "extract": { + "description": "Optional. If true, treats the uploaded file as a tar/tar.gz archive and\nunpacks it into `path`.", + "type": "boolean" + }, + "overwrite": { + "description": "Optional. Whether to overwrite the destination file if it already exists.", + "type": "boolean" + } + }, + "x-speakeasy-model-namespace": "interactions" + }, + "UploadEnvironmentFileResponse": { + "description": "Response for `UploadEnvironmentFile`.", + "type": "object", + "properties": { + "files": { + "description": "List of files created or extracted in the environment.", + "type": "array", + "items": { + "$ref": "#/components/schemas/EnvironmentFile" + } + } + }, + "x-speakeasy-model-namespace": "interactions" + }, + "UrlCitation": { + "description": "A URL citation annotation.", + "type": "object", + "properties": { + "end_index": { + "description": "End of the attributed segment, exclusive.", + "type": "integer", + "format": "int32" + }, + "start_index": { + "description": "Start of segment of the response that is attributed to this source.\n\nIndex indicates the start of the segment, measured in bytes.", + "type": "integer", + "format": "int32" + }, + "title": { + "description": "The title of the URL.", + "type": "string" + }, + "type": { + "const": "url_citation" + }, + "url": { + "description": "The URL.", + "type": "string" + } + }, + "required": [ + "type" + ], + "x-speakeasy-exports": [ + { + "name": "URLCitation", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions", + "x-speakeasy-name-override": "URLCitation" + }, + "UrlContext": { + "description": "A tool that can be used by the model to fetch URL context.", + "type": "object", + "properties": { + "type": { + "const": "url_context" + } + }, + "required": [ + "type" + ], + "x-speakeasy-model-namespace": "interactions", + "x-speakeasy-name-override": "URLContext" + }, + "UrlContextCallArguments": { + "description": "The arguments to pass to the URL context.", + "type": "object", + "properties": { + "urls": { + "description": "The URLs to fetch.", + "type": "array", + "items": { + "type": "string" + } + } + }, + "x-speakeasy-exports": [ + { + "name": "URLContextCallArguments", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions", + "x-speakeasy-name-override": "URLContextCallArguments" + }, + "UrlContextCallDelta": { + "type": "object", + "properties": { + "arguments": { + "$ref": "#/components/schemas/UrlContextCallArguments" + }, + "signature": { + "description": "A signature hash for backend validation.", + "type": "string", + "format": "byte", + "x-speakeasy-base64-input-mode": "file" + }, + "type": { + "const": "url_context_call" + } + }, + "required": [ + "arguments", + "type" + ], + "x-speakeasy-model-namespace": "interactions", + "x-speakeasy-name-override": "URLContextCallDelta" + }, + "UrlContextCallStep": { + "description": "URL context call step.", + "type": "object", + "properties": { + "arguments": { + "description": "Required. The arguments to pass to the URL context.", + "$ref": "#/components/schemas/UrlContextCallArguments" + }, + "id": { + "description": "Required. A unique ID for this specific tool call.", + "type": "string" + }, + "signature": { + "description": "A signature hash for backend validation.", + "type": "string", + "format": "byte", + "x-speakeasy-base64-input-mode": "file" + }, + "type": { + "const": "url_context_call" + } + }, + "required": [ + "arguments", + "id", + "type" + ], + "example": { + "type": "url_context_call", + "arguments": { + "urls": [ + "https://www.example.com" + ] + }, + "id": "url_call_10219" + }, + "x-example-summaries": [ + "UrlContextCallStep" + ], + "x-speakeasy-exports": [ + { + "name": "URLContextCallStep", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions", + "x-speakeasy-name-override": "URLContextCallStep" + }, + "UrlContextCallStepArguments": { + "description": "The arguments to pass to the URL context.", + "type": "object", + "properties": { + "urls": { + "description": "The URLs to fetch.", + "type": "array", + "items": { + "type": "string" + } + } + }, + "x-speakeasy-model-namespace": "interactions" + }, + "UrlContextResult": { + "description": "The result of the URL context.", + "type": "object", + "properties": { + "status": { + "description": "The status of the URL retrieval.", + "type": "string", + "enum": [ + "success", + "error", + "paywall", + "unsafe" + ], + "x-google-enum-descriptions": [ + "Url retrieval is successful.", + "Url retrieval is failed due to error.", + "Url retrieval is failed because the content is behind paywall.", + "Url retrieval is failed because the content is unsafe." + ] + }, + "url": { + "description": "The URL that was fetched.", + "type": "string" + } + }, + "x-speakeasy-exports": [ + { + "name": "URLContextResult", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions", + "x-speakeasy-name-override": "URLContextResult" + }, + "UrlContextResultDelta": { + "type": "object", + "properties": { + "is_error": { + "type": "boolean" + }, + "result": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UrlContextResult" + } + }, + "signature": { + "description": "A signature hash for backend validation.", + "type": "string", + "format": "byte", + "x-speakeasy-base64-input-mode": "file" + }, + "type": { + "const": "url_context_result" + } + }, + "required": [ + "result", + "type" + ], + "x-speakeasy-model-namespace": "interactions", + "x-speakeasy-name-override": "URLContextResultDelta" + }, + "UrlContextResultItem": { + "description": "The result of the URL context.", + "type": "object", + "properties": { + "status": { + "description": "The status of the URL retrieval.", + "type": "string", + "enum": [ + "success", + "error", + "paywall", + "unsafe" + ], + "x-google-enum-descriptions": [ + "", + "", + "", + "" + ] + }, + "url": { + "description": "The URL that was fetched.", + "type": "string" + } + }, + "x-speakeasy-model-namespace": "interactions" + }, + "UrlContextResultStep": { + "description": "URL context result step.", + "type": "object", + "properties": { + "call_id": { + "description": "Required. ID to match the ID from the function call block.", + "type": "string" + }, + "is_error": { + "description": "Whether the URL context resulted in an error.", + "type": "boolean" + }, + "result": { + "description": "Required. The results of the URL context.", + "type": "array", + "items": { + "$ref": "#/components/schemas/UrlContextResult" + } + }, + "signature": { + "description": "A signature hash for backend validation.", + "type": "string", + "format": "byte", + "x-speakeasy-base64-input-mode": "file" + }, + "type": { + "const": "url_context_result" + } + }, + "required": [ + "call_id", + "result", + "type" + ], + "example": { + "type": "url_context_result", + "call_id": "url_call_10219", + "result": [ + { + "url": "https://www.example.com", + "status": "success" + } + ] + }, + "x-example-summaries": [ + "UrlContextResultStep" + ], + "x-speakeasy-exports": [ + { + "name": "URLContextResultStep", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions", + "x-speakeasy-name-override": "URLContextResultStep" + }, + "Usage": { + "description": "Statistics on the interaction request's token usage.", + "type": "object", + "properties": { + "cached_tokens_by_modality": { + "description": "A breakdown of cached token usage by modality.", + "type": "array", + "items": { + "$ref": "#/components/schemas/ModalityTokens" + } + }, + "grounding_tool_count": { + "description": "Grounding tool count.", + "type": "array", + "items": { + "$ref": "#/components/schemas/GroundingToolCount" + } + }, + "initial_input_tokens": { + "description": "Number of input tokens used in the first turn of this interaction.", + "type": "integer", + "format": "int32" + }, + "input_tokens_by_modality": { + "description": "A breakdown of input token usage by modality.", + "type": "array", + "items": { + "$ref": "#/components/schemas/ModalityTokens" + } + }, + "output_tokens_by_modality": { + "description": "A breakdown of output token usage by modality.", + "type": "array", + "items": { + "$ref": "#/components/schemas/ModalityTokens" + } + }, + "tool_use_tokens_by_modality": { + "description": "A breakdown of tool-use token usage by modality.", + "type": "array", + "items": { + "$ref": "#/components/schemas/ModalityTokens" + } + }, + "total_cached_tokens": { + "description": "Number of tokens in the cached part of the prompt (the cached content).", + "type": "integer", + "format": "int32" + }, + "total_input_tokens": { + "description": "Number of tokens in the prompt (context).", + "type": "integer", + "format": "int32" + }, + "total_output_tokens": { + "description": "Total number of tokens across all the generated responses.", + "type": "integer", + "format": "int32" + }, + "total_thought_tokens": { + "description": "Number of tokens of thoughts for thinking models.", + "type": "integer", + "format": "int32" + }, + "total_tokens": { + "description": "Total token count for the interaction request (prompt + responses + other\ninternal tokens).", + "type": "integer", + "format": "int32" + }, + "total_tool_use_tokens": { + "description": "Number of tokens present in tool-use prompt(s).", + "type": "integer", + "format": "int32" + } + }, + "readOnly": true, + "x-speakeasy-exports": [ + { + "name": "Usage", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions" + }, + "UserInputStep": { + "description": "Input provided by the user.", + "type": "object", + "properties": { + "content": { + "title": "ContentList", + "type": "array", + "items": { + "$ref": "#/components/schemas/Content" + } + }, + "type": { + "const": "user_input" + } + }, + "required": [ + "type" + ], + "example": { + "type": "user_input", + "content": [ + { + "type": "text", + "text": "What is the capital of France?" + } + ] + }, + "x-example-summaries": [ + "UserInputStep" + ], + "x-speakeasy-exports": [ + { + "name": "UserInputStep", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions" + }, + "VerbatimTranscriptionMode": { + "description": "Configuration for verbatim transcription mode.", + "type": "object", + "properties": { + "diarization_mode": { + "description": "Optional. Configures speaker diarization. Supported values: \"speaker\".", + "type": "string" + }, + "timestamp_granularities": { + "description": "Optional. The granularity of timestamps to include in the transcription output.\nSupported values: \"word\". If empty, no timestamps are generated.", + "type": "array", + "items": { + "type": "string" + } + }, + "type": { + "const": "verbatim" + } + }, + "required": [ + "type" + ], + "x-speakeasy-model-namespace": "interactions" + }, + "VertexAISearchConfig": { + "description": "Used to specify configuration for VertexAISearch.", + "type": "object", + "properties": { + "datastores": { + "description": "Optional. Used to specify Vertex AI Search datastores.", + "type": "array", + "items": { + "type": "string" + } + }, + "engine": { + "description": "Optional. Used to specify Vertex AI Search engine.", + "type": "string" + } + }, + "x-speakeasy-model-namespace": "interactions" + }, + "VideoConfig": { + "description": "Configuration options for video generation.", + "type": "object", + "properties": { + "task": { + "description": "Optional task mode for video generation. If not specified, the model\nautomatically determines the appropriate mode based on the provided text\nprompt and input media.", + "type": "string", + "enum": [ + "text_to_video", + "image_to_video", + "reference_to_video", + "edit", + "extend", + "upscale" + ], + "x-google-enum-descriptions": [ + "Generates video solely from a text prompt.", + "Generates video from one or two source images. The first image defines\nthe starting frame, and the optional second image defines the ending\nframe.", + "Generates video using reference media (such as images, audio, or video).", + "Modifies an existing input video.", + "Extends an existing input video.", + "Increases the resolution of an existing input video." + ] + } + }, + "x-speakeasy-exports": [ + { + "name": "VideoConfig", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions" + }, + "VideoContent": { + "description": "A video content block.", + "type": "object", + "properties": { + "data": { + "description": "The video content.", + "type": "string", + "format": "byte", + "x-speakeasy-base64-input-mode": "file" + }, + "mime_type": { + "description": "The mime type of the video.", + "type": "string", + "enum": [ + "video/mp4", + "video/mpeg", + "video/mpg", + "video/mov", + "video/avi", + "video/x-flv", + "video/webm", + "video/wmv", + "video/3gpp" + ], + "x-google-enum-descriptions": [ + "MP4 video format", + "MPEG video format", + "MPG video format", + "MOV video format", + "AVI video format", + "FLV video format", + "WebM video format", + "WMV video format", + "3GPP video format" + ] + }, + "name": { + "description": "A user-defined name for this content block. Can be referenced by the model\nin the final response.", + "type": "string" + }, + "processing": { + "description": "How the model processes this video for understanding.", + "oneOf": [ + { + "$ref": "#/components/schemas/MediaProcessing" + }, + { + "type": "string", + "enum": [ + "static", + "agentic" + ], + "x-google-enum-descriptions": [ + "Fixed-rate frame extraction. All frames placed in context.", + "Model-driven dynamic navigation." + ] + } + ] + }, + "resolution": { + "description": "The resolution of the media.", + "$ref": "#/components/schemas/MediaResolution" + }, + "type": { + "const": "video" + }, + "uri": { + "description": "The URI of the video.", + "type": "string" + } + }, + "required": [ + "type" + ], + "example": { + "type": "video", + "uri": "https://www.youtube.com/watch?v=9hE5-98ZeCg" + }, + "x-example-summaries": [ + "Video" + ], + "x-speakeasy-exports": [ + { + "name": "VideoContent", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions" + }, + "VideoDelta": { + "type": "object", + "properties": { + "data": { + "type": "string", + "format": "byte", + "x-speakeasy-base64-input-mode": "file" + }, + "mime_type": { + "type": "string", + "enum": [ + "video/mp4", + "video/mpeg", + "video/mpg", + "video/mov", + "video/avi", + "video/x-flv", + "video/webm", + "video/wmv", + "video/3gpp", + "video/jpeg2000" + ], + "x-google-enum-descriptions": [ + "MP4 video format", + "MPEG video format", + "MPG video format", + "MOV video format", + "AVI video format", + "FLV video format", + "WebM video format", + "WMV video format", + "3GPP video format", + "JPEG 2000 video format" + ] + }, + "resolution": { + "description": "The resolution of the media.", + "$ref": "#/components/schemas/MediaResolution" + }, + "type": { + "const": "video" + }, + "uri": { + "type": "string" + } + }, + "required": [ + "type" + ], + "x-speakeasy-model-namespace": "interactions" + }, + "VideoResponseFormat": { + "description": "Configuration for video output format.", + "type": "object", + "properties": { + "aspect_ratio": { + "description": "The aspect ratio for the video output.", + "type": "string", + "enum": [ + "16:9", + "9:16" + ], + "x-google-enum-descriptions": [ + "16:9 aspect ratio.", + "9:16 aspect ratio." + ] + }, + "delivery": { + "description": "The delivery mode for the video output.", + "type": "string", + "enum": [ + "inline", + "uri" + ], + "x-google-enum-descriptions": [ + "Video data is returned inline in the response.", + "Video data is returned as a URI." + ] + }, + "duration": { + "description": "The duration for the video output.", + "type": "string", + "format": "google-duration" + }, + "gcs_uri": { + "description": "The Cloud Storage URI to store the video output. Required for Vertex if\ndelivery mode is URI.", + "type": "string" + }, + "resolution": { + "description": "The video output resolution. Defaults to 720p.", + "type": "string", + "enum": [ + "360p", + "720p", + "1080p", + "4k" + ], + "x-google-enum-descriptions": [ + "360p resolution.", + "720p resolution.", + "1080p resolution.", + "4K resolution." + ] + }, + "type": { + "const": "video" + } + }, + "required": [ + "type" + ], + "example": { + "type": "video", + "aspect_ratio": "16:9", + "delivery": "inline" + }, + "x-example-summaries": [ + "Video Output" + ], + "x-speakeasy-exports": [ + { + "name": "VideoResponseFormat", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions" + }, + "Voice": { + "description": "A voice resource representing either a custom voice (created via\n`CreateVoice`) or a prebuilt system voice (returned by `ListVoices`).", + "type": "object", + "properties": { + "accent": { + "description": "Optional. Regional accent descriptor (e.g. \"American\", \"British\").", + "type": "string" + }, + "context": { + "description": "Optional. Optimal usage context or domain (e.g. \"Conversational\",\n\"Audiobook\", \"News\").", + "type": "string" + }, + "description": { + "description": "Optional. Descriptive summary of vocal timbre, personality, and tone.", + "type": "string" + }, + "display_name": { + "description": "Optional. User-provided display name for a stored voice (`store = true`),\nor the catalog name for a prebuilt voice.", + "type": "string" + }, + "expire_time": { + "description": "Output only. The timestamp at which a custom stored voice (`store = true`)\nor replicated voice key (`store = false`) expires. For custom stored voices\n(`store = true`), this expiration time is extended when the voice is used\nfor speech synthesis or as a `base_voice` in `CreateVoice`. Unset for\nprebuilt catalog voices (`\"prebuilt\"`), which do not expire.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "gender": { + "description": "Optional. Perceived voice gender presentation (e.g. \"female\", \"male\",\n\"neutral\").", + "type": "string" + }, + "id": { + "description": "Output only. The unique identifier of the voice.\n\n* For Google-managed custom voices (`store = true`), this is a generated ID\n with prefix `voice_` (for example, `voice_abc123def456`). Pass\n `voices/{id}` as the `name` in `GetVoice` and `DeleteVoice`, and pass\n `{id}` directly to `SpeechConfig.voice_config.voice` (or\n `SpeechConfig.voice`) during speech synthesis.\n* For prebuilt catalog voices (`\"prebuilt\"` returned by `ListVoices`), this\n is the speaker name (for example, `Puck` or `Charon`).\n* Unset when `CreateVoice` is called with `store = false`.", + "type": "string", + "readOnly": true + }, + "key": { + "description": "Output only. The client-managed voice replication key (with prefix\n`voicekey_`). Returned only by `CreateVoice` when `type` is `\"replicated\"`\nand `store` is `false`. Pass this key to `SpeechConfig.voice_config.voice`\n(or `SpeechConfig.voice`) during speech synthesis.", + "type": "string", + "readOnly": true + }, + "language_code": { + "description": "Optional. Primary BCP-47 language tag (e.g. \"en-US\", \"fr-FR\").", + "type": "string" + }, + "model": { + "description": "Optional. The model used to design or replicate the voice.\nIf omitted in `CreateVoice`, defaults to the latest supported voice design\nmodel. Returned in `CreateVoice`, `GetVoice`, and `ListVoices` responses\nfor custom voices (`\"prompted\"` and `\"replicated\"`); unset for `\"prebuilt\"`\nvoices. Created voices can be synthesized across any supported TTS\nsynthesis model.", + "type": "string" + }, + "persona": { + "description": "Optional. Intended persona or character archetype (e.g. \"Warm, Friendly\",\n\"Narrator\").", + "type": "string" + }, + "pitch": { + "description": "Optional. Voice pitch classification.", + "$ref": "#/components/schemas/Pitch" + }, + "prompted": { + "description": "Parameters for prompted voice generation.\nRequired in `CreateVoice` when `type` is `\"prompted\"`. Returned in\n`CreateVoice`, `GetVoice`, and `ListVoices` responses for prompted voices.", + "$ref": "#/components/schemas/PromptedVoice" + }, + "region_code": { + "description": "Optional. ISO 3166-1 alpha-2 or UN M.49 geographic region code (e.g. \"US\",\n\"GB\", \"001\").", + "type": "string" + }, + "replicated": { + "description": "Input only. Parameters for replicated voice generation.\nRequired on input when `type` is `\"replicated\"`. Not returned in\nresponses.", + "$ref": "#/components/schemas/ReplicatedVoice", + "writeOnly": true + }, + "sample_audio": { + "description": "Output only. Sample audio (synthesizer prompt audio) generated for a\nprompted voice.\nPopulated only in `CreateVoice` and `GetVoice` responses when `type` is\n`\"prompted\"`; unset in `ListVoices` responses and for `\"replicated\"` or\n`\"prebuilt\"` voices.", + "$ref": "#/components/schemas/AudioData", + "readOnly": true + }, + "type": { + "description": "Required. The type of the voice. In `CreateVoice`, must be `\"replicated\"`\nor `\"prompted\"`. In `ListVoices` responses, may also be `\"prebuilt\"`.", + "$ref": "#/components/schemas/VoiceType" + }, + "usage": { + "description": "Output only. Token usage statistics for the voice creation request.\nPopulated only in the response of `CreateVoice` when `type` is\n`\"prompted\"`; unset for `\"replicated\"` and in `GetVoice` and `ListVoices`\nresponses.", + "$ref": "#/components/schemas/Usage", + "readOnly": true + } + }, + "required": [ + "type" + ], + "x-speakeasy-exports": [ + { + "name": "Voice", + "group": "voices" + } + ], + "x-speakeasy-model-namespace": "voices" + }, + "VoiceType": { + "type": "string", + "enum": [ + "replicated", + "prompted", + "prebuilt" + ], + "x-google-enum-descriptions": [ + "A custom voice replicated from a reference audio sample and speaker consent\nrecording.", + "A custom voice generated from a natural-language text prompt (optionally\nediting or remixing a `base_voice`).", + "A built-in system voice from Google's voice catalog (e.g., `Puck`,\n`Charon`). Returned in responses; cannot be specified as the type in\n`CreateVoice`." + ], + "x-speakeasy-exports": [ + { + "name": "VoiceType", + "group": "voices" + } + ], + "x-speakeasy-model-namespace": "voices" + }, + "Webhook": { + "description": "A Webhook resource.", + "type": "object", + "properties": { + "create_time": { + "description": "Output only. The timestamp when the webhook was created.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "id": { + "description": "Output only. The ID of the webhook.", + "type": "string", + "readOnly": true + }, + "name": { + "description": "Optional. The user-provided name of the webhook.", + "type": "string" + }, + "new_signing_secret": { + "description": "Output only. The new signing secret for the webhook. Only populated on create.", + "type": "string", + "readOnly": true, + "x-speakeasy-param-sensitive": true + }, + "signing_secrets": { + "description": "Output only. The signing secrets associated with this webhook.", + "type": "array", + "items": { + "$ref": "#/components/schemas/SigningSecret" + }, + "readOnly": true + }, + "state": { + "description": "Output only. The state of the webhook.", + "type": "string", + "enum": [ + "enabled", + "disabled", + "disabled_due_to_failed_deliveries" + ], + "readOnly": true, + "x-google-enum-descriptions": [ + "The webhook is enabled.", + "The webhook is disabled by the user.", + "The webhook is disabled due to failed deliveries." + ] + }, + "subscribed_events": { + "description": "Required. The events that the webhook is subscribed to.\nAvailable events:\n- batch.succeeded\n- batch.expired\n- batch.failed\n- interaction.requires_action\n- interaction.completed\n- interaction.failed\n- video.generated", + "type": "array", + "items": { + "type": "string", + "enum": [ + "batch.succeeded", + "batch.expired", + "batch.failed", + "interaction.requires_action", + "interaction.completed", + "interaction.failed", + "video.generated" + ], + "x-speakeasy-enum-descriptions": [ + "Batch processing finished successfully.", + "Batch has not been processed within the 48h timeframe.", + "Batch job failed.", + "Interaction requires action (e.g., function calling).", + "Interaction completed successfully.", + "Interaction failed.", + "Video generation completed." + ], + "x-speakeasy-enum-format": "union", + "x-speakeasy-unknown-values": "allow" + } + }, + "update_time": { + "description": "Output only. The timestamp when the webhook was last updated.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "uri": { + "description": "Required. The URI to which webhook events will be sent.", + "type": "string" + } + }, + "required": [ + "subscribed_events", + "uri" + ], + "x-speakeasy-exports": [ + { + "name": "Webhook", + "group": "webhooks" + }, + { + "name": "WebhookInput", + "group": "webhooks", + "representation": "input" + } + ], + "x-speakeasy-model-namespace": "webhooks" + }, + "WebhookConfig": { + "description": "Message for configuring webhook events for a request.", + "type": "object", + "properties": { + "uris": { + "description": "Optional. If set, these webhook URIs will be used for webhook events instead of the\nregistered webhooks.", + "type": "array", + "items": { + "type": "string" + } + }, + "user_metadata": { + "description": "Optional. The user metadata that will be returned on each event emission to the\nwebhooks.", + "type": "object", + "additionalProperties": { + "description": "Properties of the object." + } + } + }, + "x-speakeasy-exports": [ + { + "name": "WebhookConfig", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions" + }, + "WebhookUpdate": { + "type": "object", + "properties": { + "name": { + "description": "Optional. The user-provided name of the webhook.", + "type": "string" + }, + "state": { + "description": "Optional. The state of the webhook.", + "type": "string", + "enum": [ + "enabled", + "disabled", + "disabled_due_to_failed_deliveries" + ], + "x-google-enum-descriptions": [ + "The webhook is enabled.", + "The webhook is disabled by the user.", + "The webhook is disabled due to failed deliveries." + ] + }, + "subscribed_events": { + "description": "Optional. The events that the webhook is subscribed to.\nAvailable events:\n- batch.succeeded\n- batch.expired\n- batch.failed\n- interaction.requires_action\n- interaction.completed\n- interaction.failed\n- video.generated", + "type": "array", + "items": { + "type": "string", + "enum": [ + "batch.succeeded", + "batch.expired", + "batch.failed", + "interaction.requires_action", + "interaction.completed", + "interaction.failed", + "video.generated" + ], + "x-speakeasy-enum-descriptions": [ + "Batch processing finished successfully.", + "Batch has not been processed within the 48h timeframe.", + "Batch job failed.", + "Interaction requires action (e.g., function calling).", + "Interaction completed successfully.", + "Interaction failed.", + "Video generation completed." + ], + "x-speakeasy-enum-format": "union", + "x-speakeasy-unknown-values": "allow" + } + }, + "uri": { + "description": "Optional. The URI to which webhook events will be sent.", + "type": "string" + } + }, + "x-speakeasy-exports": [ + { + "name": "WebhookUpdate", + "group": "webhooks" + }, + { + "name": "WebhookUpdateParams", + "group": "webhooks", + "representation": "input" + } + ], + "x-speakeasy-model-namespace": "webhooks" + }, + "WordInfo": { + "description": "Word-level ASR annotation for transcription output.\nCarries the word text, optional timing, and optional speaker attribution.", + "type": "object", + "properties": { + "end_index": { + "description": "End of the attributed segment, exclusive.", + "type": "integer", + "format": "int32" + }, + "end_offset": { + "description": "End offset in time of the word relative to the start of the audio.\nPresent when timestamp_granularities contains \"word\".", + "type": "string", + "format": "google-duration" + }, + "speaker": { + "description": "Optional. Speaker label for this word (e.g. \"spk_1\", \"spk_2\").\nPresent when diarization_mode is set in TranscriptionConfig.", + "type": "string" + }, + "start_index": { + "description": "Start of segment of the response that is attributed to this source.\n\nIndex indicates the start of the segment, measured in bytes.", + "type": "integer", + "format": "int32" + }, + "start_offset": { + "description": "Start offset in time of the word relative to the start of the audio.\nPresent when timestamp_granularities contains \"word\".", + "type": "string", + "format": "google-duration" + }, + "text": { + "description": "The transcribed word.", + "type": "string" + }, + "type": { + "const": "word_info" + } + }, + "required": [ + "type" + ], + "x-speakeasy-exports": [ + { + "name": "WordInfo", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions" + } + }, + "securitySchemes": { + "googleGenAIAuth": { + "type": "http", + "scheme": "custom", + "x-speakeasy-custom-security-scheme": { + "schema": { + "type": "object", + "properties": { + "accessToken": { + "description": "OAuth access token sent as a bearer Authorization header.", + "type": "string" + }, + "apiKey": { + "description": "Gemini API key sent as x-goog-api-key.", + "type": "string" + }, + "defaultHeaders": { + "description": "Additional default headers to apply before request-specific headers and auth.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "required": [] + } + } + } + } + }, + "security": [ + { + "googleGenAIAuth": [] + } + ], + "x-speakeasy-globals": { + "parameters": [ + { + "$ref": "#/components/parameters/api_version" + }, + { + "$ref": "#/components/parameters/google_genai_user_project" + } + ] + }, + "x-speakeasy-retries": { + "backoff": { + "exponent": 2, + "initialInterval": 500, + "maxElapsedTime": 30000, + "maxInterval": 8000 + }, + "maxRetries": 4, + "retryConnectionErrors": true, + "statusCodes": [ + 408, + 409, + 429, + "5XX" + ], + "strategy": "attempt-count-backoff" + } +} diff --git a/.speakeasy/patches/src/google/genai/_hooks/asyncregistration.py.patch b/.speakeasy/patches/src/google/genai/_hooks/asyncregistration.py.patch new file mode 100644 index 0000000000..2aa2dc6def --- /dev/null +++ b/.speakeasy/patches/src/google/genai/_hooks/asyncregistration.py.patch @@ -0,0 +1,39 @@ +diff --git a/src/google/genai/_hooks/asyncregistration.py b/src/google/genai/_hooks/asyncregistration.py +--- a/src/google/genai/_hooks/asyncregistration.py ++++ b/src/google/genai/_hooks/asyncregistration.py +@@ -1,4 +1,13 @@ + from .asynctypes import AsyncHooks ++from .adapters import ( ++ SyncToAsyncAfterErrorAdapter, ++ SyncToAsyncAfterParseErrorAdapter, ++ SyncToAsyncBeforeRequestAdapter, ++) ++from .google_genai_auth import GoogleGenAIAuthHook ++from ..lib.compat_errors import CompatErrorHook ++from typing import cast ++from .types import AfterErrorHook, AfterParseErrorHook + + + # This file is only ever generated once on the first generation and then is free to be modified. +@@ -8,7 +17,7 @@ + + def init_async_hooks(hooks: AsyncHooks): + # pylint: disable=unused-argument +- """Add async hooks by calling hooks.register_{sdk_init/before_request/after_success/after_error/after_parse_error}_hook ++ """Add async hooks by calling hooks.register_{sdk_init/before_request/after_success/after_error}_hook + with an instance of a hook that implements that specific AsyncHook interface. + Async hooks are registered per SDK instance, and are valid for the lifetime of the SDK instance. + +@@ -30,3 +39,12 @@ + + hooks.register_before_request_hook(MyAsyncHook()) + """ ++ hooks.register_before_request_hook( ++ SyncToAsyncBeforeRequestAdapter(GoogleGenAIAuthHook()) ++ ) ++ hooks.register_after_error_hook( ++ SyncToAsyncAfterErrorAdapter(cast(AfterErrorHook, CompatErrorHook())) ++ ) ++ hooks.register_after_parse_error_hook( ++ SyncToAsyncAfterParseErrorAdapter(cast(AfterParseErrorHook, CompatErrorHook())) ++ ) diff --git a/.speakeasy/patches/src/google/genai/_hooks/google_genai_auth.py.patch b/.speakeasy/patches/src/google/genai/_hooks/google_genai_auth.py.patch new file mode 100644 index 0000000000..1a2119bda8 --- /dev/null +++ b/.speakeasy/patches/src/google/genai/_hooks/google_genai_auth.py.patch @@ -0,0 +1,142 @@ +diff --git a/src/google/genai/_hooks/google_genai_auth.py b/src/google/genai/_hooks/google_genai_auth.py +new file mode 100644 +index 00000000..591e33e1 +--- /dev/null ++++ b/src/google/genai/_hooks/google_genai_auth.py +@@ -0,0 +1,136 @@ ++"""Google GenAI authentication hooks for the embedded Speakeasy SDK.""" ++ ++from __future__ import annotations ++ ++from typing import Any, Callable, Mapping, Optional, Union, cast ++ ++import httpx ++ ++from .. import types, utils ++from .types import BeforeRequestContext, BeforeRequestHook ++ ++ ++GOOGLE_GENAI_API_REVISION = "2026-05-20" ++_MANAGED_BEARER_AUTH = "google_genai_managed_bearer_auth" ++ ++ ++class GoogleGenAISecurityProvider: ++ """Callable security source that keeps generated auth refreshes retry-safe.""" ++ ++ def __init__( ++ self, ++ *, ++ access_token: Callable[[], str], ++ default_headers: Optional[Mapping[str, str]] = None, ++ ) -> None: ++ self._access_token = access_token ++ self._default_headers = dict(default_headers or {}) ++ self._pending_access_token: Optional[str] = None ++ ++ def __call__(self) -> types.Security: ++ if self._pending_access_token is None: ++ self._pending_access_token = self._access_token() ++ ++ return types.Security( ++ access_token=self._pending_access_token, ++ default_headers=self._default_headers or None, ++ ) ++ ++ def consume(self) -> None: ++ self._pending_access_token = None ++ ++ ++class GoogleGenAIAuthHook(BeforeRequestHook): ++ """Applies Google GenAI headers and custom auth before sending requests.""" ++ ++ def before_request( ++ self, ++ hook_ctx: BeforeRequestContext, ++ request: httpx.Request, ++ ) -> Union[httpx.Request, Exception]: ++ security = _resolve_security(hook_ctx.security_source) ++ ++ _apply_default_headers(hook_ctx, security, request) ++ _apply_user_project(hook_ctx, request) ++ _apply_auth(security, request) ++ ++ return request ++ ++ ++def _resolve_security(security_source: Any) -> Optional[types.Security]: ++ security = security_source ++ ++ if callable(security_source): ++ security = security_source() ++ consume = getattr(security_source, "consume", None) ++ if callable(consume): ++ consume() ++ ++ security = utils.get_security_from_env(security, types.Security) ++ if security is None: ++ return None ++ ++ if isinstance(security, types.Security): ++ return security ++ ++ if isinstance(security, Mapping): ++ return types.Security(**security) ++ ++ return cast(types.Security, security) ++ ++ ++def _apply_default_headers( ++ hook_ctx: BeforeRequestContext, ++ security: Optional[types.Security], ++ request: httpx.Request, ++) -> None: ++ headers = security.default_headers if security else None ++ default_ua = getattr(hook_ctx.config, "user_agent", None) ++ for key, value in (headers or {}).items(): ++ existing = request.headers.get(key) ++ if existing is None or ( ++ key.lower() == "user-agent" and existing == default_ua ++ ): ++ request.headers[key] = value ++ ++ ++def _apply_user_project( ++ hook_ctx: BeforeRequestContext, request: httpx.Request ++) -> None: ++ user_project = hook_ctx.config.globals.user_project ++ if user_project and request.headers.get("x-goog-user-project") is None: ++ request.headers["x-goog-user-project"] = user_project ++ ++ ++def _has_auth_headers(request: httpx.Request) -> bool: ++ return ( ++ request.headers.get("authorization") is not None ++ or request.headers.get("x-goog-api-key") is not None ++ ) ++ ++ ++def _has_user_auth_headers(request: httpx.Request) -> bool: ++ return ( ++ not request.extensions.get(_MANAGED_BEARER_AUTH) ++ and _has_auth_headers(request) ++ ) ++ ++ ++def _apply_auth( ++ security: Optional[types.Security], request: httpx.Request ++) -> None: ++ if security is None or _has_user_auth_headers(request): ++ return ++ ++ if security.api_key: ++ request.extensions.pop(_MANAGED_BEARER_AUTH, None) ++ request.headers["x-goog-api-key"] = security.api_key ++ return ++ ++ if security.access_token: ++ request.extensions[_MANAGED_BEARER_AUTH] = True ++ request.headers["Authorization"] = _bearer(security.access_token) ++ ++ ++def _bearer(token: str) -> str: ++ return token if token.lower().startswith("bearer ") else f"Bearer {token}" diff --git a/.speakeasy/patches/src/google/genai/_hooks/sdkhooks.py.patch b/.speakeasy/patches/src/google/genai/_hooks/sdkhooks.py.patch new file mode 100644 index 0000000000..934ae49548 --- /dev/null +++ b/.speakeasy/patches/src/google/genai/_hooks/sdkhooks.py.patch @@ -0,0 +1,25 @@ +diff --git a/src/google/genai/_hooks/sdkhooks.py b/src/google/genai/_hooks/sdkhooks.py +--- a/src/google/genai/_hooks/sdkhooks.py ++++ b/src/google/genai/_hooks/sdkhooks.py +@@ -14,6 +14,8 @@ + Hooks, + ) + from .registration import init_hooks ++from .google_genai_auth import GoogleGenAIAuthHook ++from ..lib.compat_errors import CompatErrorHook +-from typing import List, Optional, Tuple ++from typing import cast, List, Optional, Tuple + from ..sdkconfiguration import SDKConfiguration + +@@ -26,6 +28,11 @@ + self.after_error_hooks: List[AfterErrorHook] = [] + self.after_parse_error_hooks: List[AfterParseErrorHook] = [] + init_hooks(self) ++ self.register_before_request_hook(GoogleGenAIAuthHook()) ++ self.register_after_error_hook(cast(AfterErrorHook, CompatErrorHook())) ++ self.register_after_parse_error_hook( ++ cast(AfterParseErrorHook, CompatErrorHook()) ++ ) + + def register_sdk_init_hook(self, hook: SDKInitHook) -> None: + self.sdk_init_hooks.append(hook) diff --git a/.speakeasy/patches/src/google/genai/basesdk.py.patch b/.speakeasy/patches/src/google/genai/basesdk.py.patch new file mode 100644 index 0000000000..7219408550 --- /dev/null +++ b/.speakeasy/patches/src/google/genai/basesdk.py.patch @@ -0,0 +1,69 @@ +diff --git a/src/google/genai/basesdk.py b/src/google/genai/basesdk.py +--- a/src/google/genai/basesdk.py ++++ b/src/google/genai/basesdk.py +@@ -10,6 +10,25 @@ + from .utils import RetryConfig, SerializedRequestBody, get_body_content + import httpx + from typing import Any, Callable, List, Mapping, Optional, Tuple + from urllib.parse import parse_qs, urlparse ++ ++try: ++ import httpx2 ++except ImportError: ++ httpx2 = None ++ ++_HTTPX_TIMEOUT_TYPES = ( ++ (httpx.Timeout,) ++ if httpx2 is None ++ else (httpx.Timeout, httpx2.Timeout) ++) ++ ++ ++def _use_client_default(client: Any) -> Any: ++ if httpx2 is not None and isinstance( ++ client, (httpx2.Client, httpx2.AsyncClient) ++ ): ++ return httpx2.USE_CLIENT_DEFAULT ++ return httpx.USE_CLIENT_DEFAULT + +@@ -46,7 +65,7 @@ + return None + if isinstance(timeout, (int, float)): + return int(timeout * 1000) +- if isinstance(timeout, httpx.Timeout): ++ if isinstance(timeout, _HTTPX_TIMEOUT_TYPES): + values = [timeout.connect, timeout.read, timeout.write, timeout.pool] + finite_values = [value for value in values if value is not None] + if not finite_values: +@@ -206,7 +225,9 @@ + data=serialized_request_body.data, + files=serialized_request_body.files, + headers=headers, +- timeout=timeout if timeout is not None else httpx.USE_CLIENT_DEFAULT, ++ timeout=( ++ timeout if timeout is not None else _use_client_default(client) ++ ), + ) + + def do_request( +@@ -313,7 +334,7 @@ + return None + if isinstance(timeout, (int, float)): + return int(timeout * 1000) +- if isinstance(timeout, httpx.Timeout): ++ if isinstance(timeout, _HTTPX_TIMEOUT_TYPES): + values = [timeout.connect, timeout.read, timeout.write, timeout.pool] + finite_values = [value for value in values if value is not None] + if not finite_values: +@@ -473,7 +494,9 @@ + data=serialized_request_body.data, + files=serialized_request_body.files, + headers=headers, +- timeout=timeout if timeout is not None else httpx.USE_CLIENT_DEFAULT, ++ timeout=( ++ timeout if timeout is not None else _use_client_default(client) ++ ), + ) + + async def do_request_async( + diff --git a/.speakeasy/patches/src/google/genai/interactions.py.patch b/.speakeasy/patches/src/google/genai/interactions.py.patch new file mode 100644 index 0000000000..0dea9e1aa2 --- /dev/null +++ b/.speakeasy/patches/src/google/genai/interactions.py.patch @@ -0,0 +1,99 @@ +diff --git a/src/google/genai/interactions.py b/src/google/genai/interactions.py +--- a/src/google/genai/interactions.py ++++ b/src/google/genai/interactions.py +@@ -31,6 +31,7 @@ + extra_query: Optional[Mapping[str, Any]] = None, + extra_body: Optional[Mapping[str, Any]] = None, + timeout: Optional[Union[float, httpx.Timeout]] = None, ++ automatic_continuation: Optional[bool] = None, + ) -> Union[interactions.Interaction, Stream[interactions.InteractionSSEEvent]]: + r"""Creates a new interaction. + +@@ -70,6 +71,7 @@ + extra_query: Optional[Mapping[str, Any]] = None, + extra_body: Optional[Mapping[str, Any]] = None, + timeout: Optional[Union[float, httpx.Timeout]] = None, ++ automatic_continuation: Optional[bool] = None, + ) -> interactions.Interaction: + r"""Creates a new interaction. + +@@ -137,6 +139,7 @@ + extra_query: Optional[Mapping[str, Any]] = None, + extra_body: Optional[Mapping[str, Any]] = None, + timeout: Optional[Union[float, httpx.Timeout]] = None, ++ automatic_continuation: Optional[bool] = None, + ) -> Stream[interactions.InteractionSSEEvent]: + r"""Creates a new interaction. + +@@ -203,6 +206,7 @@ + extra_query: Optional[Mapping[str, Any]] = None, + extra_body: Optional[Mapping[str, Any]] = None, + timeout: Optional[Union[float, httpx.Timeout]] = None, ++ automatic_continuation: Optional[bool] = None, + ) -> interactions.Interaction: + r"""Creates a new interaction. + +@@ -268,6 +272,7 @@ + extra_query: Optional[Mapping[str, Any]] = None, + extra_body: Optional[Mapping[str, Any]] = None, + timeout: Optional[Union[float, httpx.Timeout]] = None, ++ automatic_continuation: Optional[bool] = None, + ) -> Stream[interactions.InteractionSSEEvent]: + r"""Creates a new interaction. + +@@ -318,6 +323,7 @@ + extra_query: Optional[Mapping[str, Any]] = None, + extra_body: Optional[Mapping[str, Any]] = None, + timeout: Optional[Union[float, httpx.Timeout]] = None, ++ automatic_continuation: Optional[bool] = None, + **body_kwargs: Any, + ) -> Union[interactions.Interaction, Stream[interactions.InteractionSSEEvent]]: + r"""Creates a new interaction. +@@ -1300,6 +1306,7 @@ + extra_query: Optional[Mapping[str, Any]] = None, + extra_body: Optional[Mapping[str, Any]] = None, + timeout: Optional[Union[float, httpx.Timeout]] = None, ++ automatic_continuation: Optional[bool] = None, + ) -> Union[interactions.Interaction, AsyncStream[interactions.InteractionSSEEvent]]: + r"""Creates a new interaction. + +@@ -1339,6 +1346,7 @@ + extra_query: Optional[Mapping[str, Any]] = None, + extra_body: Optional[Mapping[str, Any]] = None, + timeout: Optional[Union[float, httpx.Timeout]] = None, ++ automatic_continuation: Optional[bool] = None, + ) -> interactions.Interaction: + r"""Creates a new interaction. + +@@ -1406,6 +1414,7 @@ + extra_query: Optional[Mapping[str, Any]] = None, + extra_body: Optional[Mapping[str, Any]] = None, + timeout: Optional[Union[float, httpx.Timeout]] = None, ++ automatic_continuation: Optional[bool] = None, + ) -> AsyncStream[interactions.InteractionSSEEvent]: + r"""Creates a new interaction. + +@@ -1472,6 +1481,7 @@ + extra_query: Optional[Mapping[str, Any]] = None, + extra_body: Optional[Mapping[str, Any]] = None, + timeout: Optional[Union[float, httpx.Timeout]] = None, ++ automatic_continuation: Optional[bool] = None, + ) -> interactions.Interaction: + r"""Creates a new interaction. + +@@ -1537,6 +1547,7 @@ + extra_query: Optional[Mapping[str, Any]] = None, + extra_body: Optional[Mapping[str, Any]] = None, + timeout: Optional[Union[float, httpx.Timeout]] = None, ++ automatic_continuation: Optional[bool] = None, + ) -> AsyncStream[interactions.InteractionSSEEvent]: + r"""Creates a new interaction. + +@@ -1587,6 +1598,7 @@ + extra_query: Optional[Mapping[str, Any]] = None, + extra_body: Optional[Mapping[str, Any]] = None, + timeout: Optional[Union[float, httpx.Timeout]] = None, ++ automatic_continuation: Optional[bool] = None, + **body_kwargs: Any, + ) -> Union[interactions.Interaction, AsyncStream[interactions.InteractionSSEEvent]]: + r"""Creates a new interaction. diff --git a/.speakeasy/patches/src/google/genai/lib/compat_errors.py.patch b/.speakeasy/patches/src/google/genai/lib/compat_errors.py.patch new file mode 100644 index 0000000000..2cf1388b15 --- /dev/null +++ b/.speakeasy/patches/src/google/genai/lib/compat_errors.py.patch @@ -0,0 +1,599 @@ +diff --git a/src/google/genai/lib/compat_errors.py b/src/google/genai/lib/compat_errors.py +new file mode 100644 +index 0000000..0000000 +--- /dev/null ++++ b/src/google/genai/lib/compat_errors.py +@@ -0,0 +1,573 @@ ++"""Error-class compatibility shim. ++ ++Backs `google.genai._interactions` imports of `BadRequestError`, ++`NotFoundError`, `RateLimitError`, etc. ++ ++The generated SDK raises `GenAiError` (and per-operation subclasses thereof). ++The bridge layer in `google_genai.py` translates those into the status-code ++classes defined here via `wrap_sdk_error` / `wrap_sdk_call`. ++""" ++ ++import inspect ++import json ++from typing import Any, Awaitable, Callable, Optional, TypeVar, cast ++ ++try: ++ import httpx2 ++except ImportError: ++ httpx2 = None ++ ++import httpx ++ ++_HTTPX_TIMEOUT_ERRORS = ( ++ (httpx.TimeoutException,) ++ if httpx2 is None ++ else (httpx.TimeoutException, httpx2.TimeoutException) ++) ++_HTTPX_HTTP_ERRORS = ( ++ (httpx.HTTPError,) ++ if httpx2 is None ++ else (httpx.HTTPError, httpx2.HTTPError) ++) ++ ++from ..errors.genaierror import GenAiError ++from ..errors.no_response_error import NoResponseError ++from ..errors.responsevalidationerror import ResponseValidationError ++from ..utils.eventstreaming import AsyncStream, Stream ++ ++ ++T = TypeVar("T") ++ ++ ++class GeminiNextGenAPIClientError(Exception): ++ """Root of the GenAI error hierarchy.""" ++ ++ ++class APIError(GeminiNextGenAPIClientError): ++ """General errors raised by the GenAI API. ++ ++ Carries `message`, `request`, `body`. Status-code subclasses add ++ `response` and override `status_code` to a concrete value. ++ """ ++ ++ message: str ++ request: httpx.Request ++ body: object ++ status_code: Optional[int] = None ++ ++ def __init__( ++ self, ++ message: str, ++ request: httpx.Request, ++ *, ++ body: object, ++ ) -> None: ++ super().__init__(message) ++ self.request = request ++ self.message = message ++ self.body = body ++ ++ def __str__(self) -> str: ++ return self.message ++ ++ @classmethod ++ def generate( ++ cls, ++ status_code: Optional[int], ++ body: object, ++ message: Optional[str], ++ response: Optional[httpx.Response], ++ ) -> "APIError": ++ """Return the most specific APIError subclass for the given status.""" ++ target_cls = _status_class(status_code) ++ msg = message if message is not None else _compose_message(status_code, body) ++ if issubclass(target_cls, APIStatusError): ++ if response is None: ++ raise ValueError( ++ "APIStatusError subclasses require a response object." ++ ) ++ status_cls = cast(type[APIStatusError], target_cls) ++ return status_cls(msg, response=response, body=body) ++ # Plain APIError fallback (status_code None or unexpected success ++ # status like 201). Attach status_code to the instance for callers ++ # that need to inspect it; not part of the Stainless contract for ++ # APIError but covers the unexpected-status path. ++ request = response.request if response is not None else None ++ err = target_cls(msg, request, body=body) # type: ignore[arg-type] ++ if status_code is not None: ++ err.status_code = status_code ++ return err ++ ++ ++class APIResponseValidationError(APIError): ++ response: httpx.Response ++ ++ def __init__( ++ self, ++ response: httpx.Response, ++ body: object, ++ *, ++ message: Optional[str] = None, ++ ) -> None: ++ super().__init__( ++ message or "Data returned by API invalid for expected schema.", ++ response.request, ++ body=body, ++ ) ++ self.response = response ++ self.status_code = response.status_code ++ ++ ++class APIStatusError(APIError): ++ """Raised when an API response has a 4xx or 5xx status code.""" ++ ++ response: httpx.Response ++ ++ def __init__( ++ self, ++ message: str, ++ *, ++ response: httpx.Response, ++ body: object, ++ ) -> None: ++ super().__init__(message, response.request, body=body) ++ self.response = response ++ self.status_code = response.status_code ++ ++ ++class APIConnectionError(APIError): ++ def __init__( ++ self, ++ *, ++ message: str = "Connection error.", ++ request: httpx.Request, ++ ) -> None: ++ super().__init__(message, request, body=None) ++ ++ ++class APITimeoutError(APIConnectionError): ++ def __init__(self, request: httpx.Request) -> None: ++ super().__init__( ++ message=( ++ "Request timed out. This is a client-side timeout. You can " ++ "increase the timeout by setting the `timeout` argument on " ++ "your request or in the client http options." ++ ), ++ request=request, ++ ) ++ ++ ++class BadRequestError(APIStatusError): ++ status_code: int = 400 # type: ignore[assignment] ++ ++ ++class AuthenticationError(APIStatusError): ++ status_code: int = 401 # type: ignore[assignment] ++ ++ ++class PermissionDeniedError(APIStatusError): ++ status_code: int = 403 # type: ignore[assignment] ++ ++ ++class NotFoundError(APIStatusError): ++ status_code: int = 404 # type: ignore[assignment] ++ ++ ++class ConflictError(APIStatusError): ++ status_code: int = 409 # type: ignore[assignment] ++ ++ ++class UnprocessableEntityError(APIStatusError): ++ status_code: int = 422 # type: ignore[assignment] ++ ++ ++class RateLimitError(APIStatusError): ++ status_code: int = 429 # type: ignore[assignment] ++ ++ ++class InternalServerError(APIStatusError): ++ pass ++ ++ ++_STATUS_MAP = { ++ 400: BadRequestError, ++ 401: AuthenticationError, ++ 403: PermissionDeniedError, ++ 404: NotFoundError, ++ 409: ConflictError, ++ 422: UnprocessableEntityError, ++ 429: RateLimitError, ++} ++ ++ ++def _status_class(status_code: Optional[int]) -> type[APIError]: ++ if status_code is None: ++ return APIError ++ cls = _STATUS_MAP.get(status_code) ++ if cls is not None: ++ return cls ++ if 500 <= status_code < 600: ++ return InternalServerError ++ if 400 <= status_code < 500: ++ return APIStatusError ++ return APIError ++ ++ ++def _parse_body(body: Any) -> Any: ++ """Return parsed JSON if body is a JSON string, else the original value.""" ++ if isinstance(body, (dict, list)): ++ return body ++ if not isinstance(body, str): ++ return body ++ text = body.strip() ++ if not text: ++ return None ++ try: ++ return json.loads(text) ++ except (ValueError, TypeError): ++ return text ++ ++ ++def _compose_message(status_code: Optional[int], body: Any) -> str: ++ """Build an error message in `Error code: {status} - {body}` form. ++ ++ JSON body → `Error code: {status} - {body}`. ++ Text body → raw text. ++ Empty body → `Error code: {status}`. ++ """ ++ if isinstance(body, (dict, list)): ++ return f"Error code: {status_code} - {body}" ++ if isinstance(body, str) and body.strip(): ++ return body.strip() ++ if status_code is not None: ++ return f"Error code: {status_code}" ++ return "An error occurred" ++ ++ ++def _wrap_validation_error(error: ResponseValidationError) -> APIResponseValidationError: ++ response = error.raw_response ++ body = _parse_body(error.body) ++ wrapped = APIResponseValidationError(response, body, message=error.message) ++ wrapped.__cause__ = error ++ return wrapped ++ ++ ++def _wrap_no_response_error(error: NoResponseError) -> APIConnectionError: ++ wrapped = APIConnectionError( ++ message=error.message or "No response received.", ++ request=None, # type: ignore[arg-type] ++ ) ++ wrapped.__cause__ = error ++ return wrapped ++ ++ ++def _wrap_httpx_error(error: BaseException) -> APIConnectionError: ++ """Translate an `httpx.HTTPError` into the compat connection-error class. ++ ++ `httpx.HTTPError.request` is a descriptor that raises `RuntimeError` when ++ the request was never attached. Reads the underlying `_request` attribute ++ directly. May pass `None` if the error was raised before request ++ construction — type hint stays strict (mirrors Stainless) but runtime ++ tolerates the edge case rather than fabricating a misleading stand-in. ++ """ ++ request = getattr(error, "_request", None) ++ if isinstance(error, _HTTPX_TIMEOUT_ERRORS): ++ wrapped: APIConnectionError = APITimeoutError(request=request) # type: ignore[arg-type] ++ else: ++ wrapped = APIConnectionError( ++ message=str(error) or "Connection error.", ++ request=request, # type: ignore[arg-type] ++ ) ++ wrapped.__cause__ = error ++ return wrapped ++ ++ ++def wrap_sdk_error(error: BaseException) -> BaseException: ++ """Translate a generated SDK exception into an `APIError` subclass. ++ ++ Covers: ++ - `ResponseValidationError` → `APIResponseValidationError`. ++ - `NoResponseError` → `APIConnectionError`. ++ - `httpx.TimeoutException` → `APITimeoutError`. ++ - `httpx.HTTPError` → `APIConnectionError`. ++ - `GenAiError` → status-code class via `APIError.generate`. ++ ++ Already-wrapped or unrelated exceptions pass through. ++ """ ++ if isinstance(error, APIError): ++ return error ++ if isinstance(error, ResponseValidationError): ++ return _wrap_validation_error(error) ++ if isinstance(error, NoResponseError): ++ return _wrap_no_response_error(error) ++ if isinstance(error, _HTTPX_HTTP_ERRORS): ++ return _wrap_httpx_error(error) ++ if not isinstance(error, GenAiError): ++ return error ++ ++ response = error.raw_response ++ body = _parse_body(error.body) ++ wrapped = APIError.generate( ++ status_code=error.status_code, ++ body=body, ++ message=_compose_message(error.status_code, body), ++ response=response, ++ ) ++ wrapped.__cause__ = error ++ return wrapped ++ ++ ++_WRAP_EXCEPTIONS = ( ++ (GenAiError, NoResponseError, httpx.HTTPError) ++ if httpx2 is None ++ else (GenAiError, NoResponseError, httpx.HTTPError, httpx2.HTTPError) ++) ++ ++ ++class CompatErrorHook: ++ """Hook adapter that maps generated SDK exceptions to compat errors.""" ++ ++ def after_error( ++ self, ++ hook_ctx: Any, ++ response: Optional[httpx.Response], ++ error: Optional[Exception], ++ ) -> tuple[Optional[httpx.Response], Optional[Exception]]: ++ if error is None: ++ return response, error ++ return response, wrap_sdk_error(error) # type: ignore[return-value] ++ ++ def after_parse_error( ++ self, ++ hook_ctx: Any, ++ response: httpx.Response, ++ error: Exception, ++ ) -> Exception: ++ return wrap_sdk_error(error) # type: ignore[return-value] ++ ++ ++def wrap_sdk_call(fn: Callable[..., T], *args: Any, **kwargs: Any) -> T: ++ """Execute `fn(*args, **kwargs)`, translating known SDK exceptions.""" ++ try: ++ return fn(*args, **kwargs) ++ except _WRAP_EXCEPTIONS as exc: ++ raise wrap_sdk_error(exc) from exc ++ ++ ++async def async_wrap_sdk_call( ++ fn: Callable[..., Awaitable[T]], *args: Any, **kwargs: Any ++) -> T: ++ """Async variant of `wrap_sdk_call`.""" ++ try: ++ return await fn(*args, **kwargs) ++ except _WRAP_EXCEPTIONS as exc: ++ raise wrap_sdk_error(exc) from exc ++ ++ ++def is_stream(obj: Any) -> bool: ++ """True if `obj` is a live SSE `Stream` / `AsyncStream`. ++ ++ Distinguishes the streaming iterator — which carries a `.generator` ready ++ for `wrap_stream_errors` to wrap — from a `StreamedAPIResponse`, whose ++ underlying stream only materializes once `.parse()` is called. Subclasses ++ produced by `parse(to=MyStream)` are covered by `isinstance`. ++ """ ++ return isinstance(obj, (Stream, AsyncStream)) ++ ++ ++def wrap_stream_errors(stream: Stream[Any]) -> Stream[Any]: ++ """Wrap a `Stream` so iteration-time `GenAiError`s become `APIError`s. ++ ++ Mutates `stream.generator` in place and returns the same stream object so ++ the caller's typing and identity are preserved. ++ ++ Precondition: caller ensures `is_stream(stream)` (see `_wrap_response_parse` ++ and the `google_genai` bridge). A `StreamedAPIResponse` has no `.generator`. ++ """ ++ original = stream.generator ++ ++ def _wrapped_gen(): ++ try: ++ for chunk in original: ++ yield chunk ++ except _WRAP_EXCEPTIONS as exc: ++ raise wrap_sdk_error(exc) from exc ++ ++ stream.generator = _wrapped_gen() ++ return stream ++ ++ ++def wrap_async_stream_errors(stream: AsyncStream[Any]) -> AsyncStream[Any]: ++ """Async variant of `wrap_stream_errors`.""" ++ original = stream.generator ++ ++ async def _wrapped_agen(): ++ try: ++ async for chunk in original: ++ yield chunk ++ except _WRAP_EXCEPTIONS as exc: ++ raise wrap_sdk_error(exc) from exc ++ ++ stream.generator = _wrapped_agen() ++ return stream ++ ++ ++def _wrap_response_parse(response: Any) -> Any: ++ """Shadow `response.parse` so SDK errors raised at parse-time and iteration-time become compat errors.""" ++ original_parse = response.parse ++ ++ def _parse(*args: Any, **kwargs: Any) -> Any: ++ result = wrap_sdk_call(original_parse, *args, **kwargs) ++ if is_stream(result): ++ return wrap_stream_errors(result) ++ return result ++ ++ response.parse = _parse # type: ignore[method-assign] ++ return response ++ ++ ++async def _wrap_async_response_parse(response: Any) -> Any: ++ """Async variant of `_wrap_response_parse`.""" ++ original_parse = response.parse ++ ++ async def _parse(*args: Any, **kwargs: Any) -> Any: ++ result = await async_wrap_sdk_call(original_parse, *args, **kwargs) ++ if is_stream(result): ++ return wrap_async_stream_errors(result) ++ return result ++ ++ response.parse = _parse # type: ignore[method-assign] ++ return response ++ ++ ++class _StreamingContextManagerProxy: ++ """Proxy a sync `ResponseContextManager` so the entered response wraps parse.""" ++ ++ __slots__ = ("_inner",) ++ ++ def __init__(self, inner: Any) -> None: ++ self._inner = inner ++ ++ def __enter__(self) -> Any: ++ try: ++ response = self._inner.__enter__() ++ except _WRAP_EXCEPTIONS as exc: ++ raise wrap_sdk_error(exc) from exc ++ if hasattr(response, "parse"): ++ response = _wrap_response_parse(response) ++ return response ++ ++ def __exit__(self, *exc_info: Any) -> Any: ++ return self._inner.__exit__(*exc_info) ++ ++ ++class _AsyncStreamingContextManagerProxy: ++ """Async variant of `_StreamingContextManagerProxy`.""" ++ ++ __slots__ = ("_inner",) ++ ++ def __init__(self, inner: Any) -> None: ++ self._inner = inner ++ ++ async def __aenter__(self) -> Any: ++ try: ++ response = await self._inner.__aenter__() ++ except _WRAP_EXCEPTIONS as exc: ++ raise wrap_sdk_error(exc) from exc ++ if hasattr(response, "parse"): ++ response = await _wrap_async_response_parse(response) ++ return response ++ ++ async def __aexit__(self, *exc_info: Any) -> Any: ++ return await self._inner.__aexit__(*exc_info) ++ ++ ++class _RawResponseAccessorProxy: ++ """Sync proxy around the value of `with_raw_response` / `with_streaming_response`. ++ ++ Delegates attribute access to the wrapped instance. Methods are wrapped so ++ that exceptions are translated via `wrap_sdk_error`, and the returned value ++ is decorated based on shape: ++ ++ - `APIResponse` / `StreamedAPIResponse`: `.parse` is shadowed so parse-time ++ errors are translated. ++ - `ResponseContextManager` (from `with_streaming_response`): proxied so the ++ response yielded by `__enter__` has `.parse` shadowed. ++ """ ++ ++ __slots__ = ("_inner",) ++ ++ def __init__(self, inner: Any) -> None: ++ object.__setattr__(self, "_inner", inner) ++ ++ def __getattr__(self, name: str) -> Any: ++ inner = object.__getattribute__(self, "_inner") ++ attr = getattr(inner, name) ++ if name.startswith("_") or not callable(attr): ++ return attr ++ ++ def _wrapped(*args: Any, **kwargs: Any) -> Any: ++ try: ++ result = attr(*args, **kwargs) ++ except _WRAP_EXCEPTIONS as exc: ++ raise wrap_sdk_error(exc) from exc ++ if hasattr(result, "parse"): ++ return _wrap_response_parse(result) ++ if hasattr(result, "__enter__"): ++ return _StreamingContextManagerProxy(result) ++ return result ++ ++ return _wrapped ++ ++ ++class _AsyncRawResponseAccessorProxy: ++ """Async variant of `_RawResponseAccessorProxy`. ++ ++ The accessor's methods may return: ++ - `Awaitable[AsyncAPIResponse]` (raw): await, then shadow `.parse`. ++ - `AsyncResponseContextManager` (streaming): proxy so `__aenter__` yields a ++ response with `.parse` shadowed. ++ """ ++ ++ __slots__ = ("_inner",) ++ ++ def __init__(self, inner: Any) -> None: ++ object.__setattr__(self, "_inner", inner) ++ ++ def __getattr__(self, name: str) -> Any: ++ inner = object.__getattribute__(self, "_inner") ++ attr = getattr(inner, name) ++ if name.startswith("_") or not callable(attr): ++ return attr ++ ++ def _wrapped(*args: Any, **kwargs: Any) -> Any: ++ try: ++ result = attr(*args, **kwargs) ++ except _WRAP_EXCEPTIONS as exc: ++ raise wrap_sdk_error(exc) from exc ++ if hasattr(result, "__aenter__"): ++ return _AsyncStreamingContextManagerProxy(result) ++ if inspect.isawaitable(result): ++ ++ async def _await_and_wrap() -> Any: ++ try: ++ response = await result ++ except _WRAP_EXCEPTIONS as exc: ++ raise wrap_sdk_error(exc) from exc ++ if hasattr(response, "parse"): ++ return await _wrap_async_response_parse(response) ++ return response ++ ++ return _await_and_wrap() ++ if hasattr(result, "parse"): ++ return _wrap_async_response_parse(result) ++ return result ++ ++ return _wrapped ++ ++ ++__all__ = [ ++ "APIConnectionError", ++ "APIError", ++ "APIResponseValidationError", ++ "APIStatusError", ++ "APITimeoutError", ++ "AuthenticationError", ++ "BadRequestError", ++ "ConflictError", ++ "CompatErrorHook", ++ "GeminiNextGenAPIClientError", ++ "InternalServerError", ++ "NotFoundError", ++ "PermissionDeniedError", ++ "RateLimitError", ++ "UnprocessableEntityError", ++ "_AsyncRawResponseAccessorProxy", ++ "_RawResponseAccessorProxy", ++ "async_wrap_sdk_call", ++ "is_stream", ++ "wrap_async_stream_errors", ++ "wrap_sdk_call", ++ "wrap_sdk_error", ++ "wrap_stream_errors", ++] diff --git a/.speakeasy/testfiles/example.file b/.speakeasy/testfiles/example.file new file mode 100644 index 0000000000..3b18e512db --- /dev/null +++ b/.speakeasy/testfiles/example.file @@ -0,0 +1 @@ +hello world diff --git a/scripts/generate_gaos.sh b/scripts/generate_gaos.sh new file mode 100755 index 0000000000..3826aae347 --- /dev/null +++ b/scripts/generate_gaos.sh @@ -0,0 +1,206 @@ +#!/bin/bash +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -euo pipefail + +SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +# Works both in GitHub repo root (scripts/..) and google3 (third_party/py/google/genai/..) +REPO_ROOT="$(cd "${SCRIPT_DIR}/.." && pwd)" + +# Parse optional CLI flags +SPEC_FILE_CLI="" +SPEAKEASY_CONFIG_DIR_CLI="" +TARGET_GAOS_DIR_CLI="" +GENERATOR_BIN_CLI="" +SYNC_GAOS_OUTPUT_BIN_CLI="" +SKIP_COMPILE=true + +while [[ $# -gt 0 ]]; do + case "$1" in + --spec|-s) + SPEC_FILE_CLI="$2" + shift 2 + ;; + --speakeasy-config) + SPEAKEASY_CONFIG_DIR_CLI="$2" + shift 2 + ;; + --output-dir|-o) + TARGET_GAOS_DIR_CLI="$2" + shift 2 + ;; + --generator-bin) + GENERATOR_BIN_CLI="$2" + shift 2 + ;; + --sync-bin) + SYNC_GAOS_OUTPUT_BIN_CLI="$2" + shift 2 + ;; + --no-skip-compile) + SKIP_COMPILE=false + shift 1 + ;; + --skip-compile) + SKIP_COMPILE=true + shift 1 + ;; + *) + echo "Warning: Unknown option '$1', skipping." >&2 + shift 1 + ;; + esac +done + +# Locate spec file: CLI arg > in GitHub repo (.speakeasy/openapi.json) > in google3 +if [[ -n "${SPEC_FILE_CLI}" && -f "${SPEC_FILE_CLI}" ]]; then + SPEC_FILE="${SPEC_FILE_CLI}" +elif [[ -f "${REPO_ROOT}/.speakeasy/openapi.json" ]]; then + SPEC_FILE="${REPO_ROOT}/.speakeasy/openapi.json" +elif [[ -f "${REPO_ROOT}/../../../../labs/language/genai/interactions/openapi/genai-next/specs/genai/openapi.with-overlays.gaos.json" ]]; then + SPEC_FILE="${REPO_ROOT}/../../../../labs/language/genai/interactions/openapi/genai-next/specs/genai/openapi.with-overlays.gaos.json" +elif [[ -f "${REPO_ROOT}/../../../../labs/language/genai/interactions/openapi/genai-next/specs/genai/openapi.with-overlays.json" ]]; then + SPEC_FILE="${REPO_ROOT}/../../../../labs/language/genai/interactions/openapi/genai-next/specs/genai/openapi.with-overlays.json" +else + echo "Error: Could not locate OpenAPI spec file." >&2 + exit 1 +fi + +# Locate Speakeasy config: CLI arg > in GitHub repo (.speakeasy/gen.yaml) > in google3 +if [[ -n "${SPEAKEASY_CONFIG_DIR_CLI}" && -d "${SPEAKEASY_CONFIG_DIR_CLI}" ]]; then + SPEAKEASY_CONFIG_DIR="${SPEAKEASY_CONFIG_DIR_CLI}" +elif [[ -f "${REPO_ROOT}/.speakeasy/gen.yaml" ]]; then + SPEAKEASY_CONFIG_DIR="${REPO_ROOT}/.speakeasy" +elif [[ -f "${REPO_ROOT}/../../../../labs/language/genai/interactions/openapi/genai-next/dist/sp_python/.speakeasy/gen.yaml" ]]; then + SPEAKEASY_CONFIG_DIR="${REPO_ROOT}/../../../../labs/language/genai/interactions/openapi/genai-next/dist/sp_python/.speakeasy" +else + echo "Error: Could not locate Speakeasy configuration." >&2 + exit 1 +fi + +# Find generator binary: CLI arg > SPEAKEASY_GENERATOR_BIN > path lookups +GENERATOR_BIN="${GENERATOR_BIN_CLI:-${SPEAKEASY_GENERATOR_BIN:-}}" +if [[ -z "${GENERATOR_BIN}" ]]; then + if command -v generate >/dev/null 2>&1; then + GENERATOR_BIN="generate" + elif [[ -x "${HOME}/go/bin/generate" ]]; then + GENERATOR_BIN="${HOME}/go/bin/generate" + elif [[ -n "${GOPATH:-}" && -x "${GOPATH}/bin/generate" ]]; then + GENERATOR_BIN="${GOPATH}/bin/generate" + elif [[ -x "${REPO_ROOT}/../../../../blaze-bin/third_party/golang/github_com/speakeasy_api/openapi_generation/v/v2/cmd/generate/generate" ]]; then + # google3: //third_party/golang/github_com/speakeasy_api/openapi_generation/v/v2/cmd/generate + GENERATOR_BIN="${REPO_ROOT}/../../../../blaze-bin/third_party/golang/github_com/speakeasy_api/openapi_generation/v/v2/cmd/generate/generate" + else + echo "Error: Speakeasy generator binary 'generate' not found. Run:" >&2 + echo " git clone --depth 1 --branch \${SPEAKEASY_VERSION} https://github.com/speakeasy-api/openapi-generation.git /tmp/openapi-generation && (cd /tmp/openapi-generation && go install ./cmd/generate)" >&2 + exit 1 + fi +fi + +# Determine target directory: CLI arg > GitHub repo (google/genai/_gaos) > google3 (_gaos) +if [[ -n "${TARGET_GAOS_DIR_CLI}" ]]; then + TARGET_GAOS_DIR="${TARGET_GAOS_DIR_CLI}" +elif [[ -d "${REPO_ROOT}/google/genai" ]]; then + TARGET_GAOS_DIR="${REPO_ROOT}/google/genai/_gaos" +elif [[ -d "${REPO_ROOT}/_gaos" || "${REPO_ROOT}" =~ /third_party/py/google/genai$ ]]; then + TARGET_GAOS_DIR="${REPO_ROOT}/_gaos" +else + TARGET_GAOS_DIR="${REPO_ROOT}/google/genai/_gaos" +fi + +STAGING_DIR="$(mktemp -d -t gaos_gen.XXXXXX)" +cleanup() { + rm -rf "${STAGING_DIR}" +} +trap cleanup EXIT + +# Stage .speakeasy config in staging dir +mkdir -p "${STAGING_DIR}/.speakeasy" +cp -r "${SPEAKEASY_CONFIG_DIR}/." "${STAGING_DIR}/.speakeasy/" + +GEN_OPTS=("-skip-versioning") +if [[ "${SKIP_COMPILE}" == "true" ]]; then + GEN_OPTS+=("-skip-compile") +fi + +# If SPEAKEASY_LICENSE_TOKEN or SPEAKEASY_API_KEY is an API key (not a compact JWS), +# exchange it for a signed license JWT token via the Speakeasy auth validate endpoint. +TOKEN_CANDIDATE="${SPEAKEASY_LICENSE_TOKEN:-${SPEAKEASY_API_KEY:-}}" +if [[ -n "${TOKEN_CANDIDATE}" && "${TOKEN_CANDIDATE}" != *.*.* ]]; then + echo "Exchanging Speakeasy API key for signed license token..." + FETCHED_TOKEN=$(python3 -c " +import urllib.request, json +req = urllib.request.Request('https://app.speakeasy.com/v1/auth/validate', headers={'x-api-key': '${TOKEN_CANDIDATE}', 'Accept': 'application/json'}) +try: + with urllib.request.urlopen(req, timeout=30) as resp: + data = json.loads(resp.read().decode('utf-8')) + print(data.get('license_jwt') or '') +except Exception: + pass +" 2>/dev/null || true) + if [[ -n "${FETCHED_TOKEN}" ]]; then + export SPEAKEASY_LICENSE_TOKEN="${FETCHED_TOKEN}" + fi +fi + +echo "Generating Python GAOS SDK using ${GENERATOR_BIN}..." +"${GENERATOR_BIN}" \ + -s "${SPEC_FILE}" \ + -o "${STAGING_DIR}" \ + -l python \ + "${GEN_OPTS[@]}" + +# Locate generated source inside staging dir +SRC_GEN="" +for candidate in "${STAGING_DIR}/src/google/genai" "${STAGING_DIR}/google/genai"; do + if [[ -d "${candidate}" ]]; then + SRC_GEN="${candidate}" + break + fi +done + +if [[ -z "${SRC_GEN}" ]]; then + echo "Error: Generator did not produce expected output under ${STAGING_DIR}" >&2 + exit 1 +fi + +SYNC_BIN="${SYNC_GAOS_OUTPUT_BIN_CLI:-${SYNC_GAOS_OUTPUT_BIN:-}}" +SYNC_EXTRA_ARGS=() +if [[ -d "${REPO_ROOT}/google/genai" && ! "${REPO_ROOT}" =~ /third_party/py/google/genai$ ]]; then + SYNC_EXTRA_ARGS+=("--httpx2-fallback") +fi + +echo "Syncing and rewriting imports to ${TARGET_GAOS_DIR}..." +if [[ -n "${SYNC_BIN}" && -x "${SYNC_BIN}" ]]; then + "${SYNC_BIN}" \ + --input-dir="${SRC_GEN}" \ + --output-dir="${TARGET_GAOS_DIR}" \ + "${SYNC_EXTRA_ARGS[@]}" +elif command -v python3 >/dev/null 2>&1; then + python3 "${SCRIPT_DIR}/sync_gaos_output.py" \ + --input-dir="${SRC_GEN}" \ + --output-dir="${TARGET_GAOS_DIR}" \ + "${SYNC_EXTRA_ARGS[@]}" +elif command -v python >/dev/null 2>&1; then + python "${SCRIPT_DIR}/sync_gaos_output.py" \ + --input-dir="${SRC_GEN}" \ + --output-dir="${TARGET_GAOS_DIR}" \ + "${SYNC_EXTRA_ARGS[@]}" +else + echo "Error: Neither SYNC_GAOS_OUTPUT_BIN nor python3/python found." >&2 + exit 1 +fi + +echo "GAOS SDK generation finished successfully!" diff --git a/scripts/sync_gaos_output.py b/scripts/sync_gaos_output.py new file mode 100644 index 0000000000..0953fed797 --- /dev/null +++ b/scripts/sync_gaos_output.py @@ -0,0 +1,186 @@ +"""Syncs generated Speakeasy Python output to target _gaos directory and rewrites imports.""" + +from __future__ import annotations + +import argparse +import pathlib +import re +import shutil +import textwrap + +PYTHON_LICENSE_HEADER = textwrap.dedent("""\ + # Copyright 2026 Google LLC + # + # Licensed under the Apache License, Version 2.0 (the "License"); + # you may not use this file except in compliance with the License. + # You may obtain a copy of the License at + # + # http://www.apache.org/licenses/LICENSE-2.0 + # + # Unless required by applicable law or agreed to in writing, software + # distributed under the License is distributed on an "AS IS" BASIS, + # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + # See the License for the specific language governing permissions and + # limitations under the License. + # + # pyformat: disable + # pylint: skip-file + """) + +_PY_ABSOLUTE_IMPORT_RE = re.compile( + r"(?P
(?:from|import)\s+)(?Pgoogle\.genai(?:\.\w+)*)(?P\b)"
+)
+
+
+def _absolute_to_relative(
+    match: re.Match[str], file_pkg: tuple[str, ...]
+) -> str:
+  pre = match.group("pre")
+  pkg = match.group("pkg")
+  rest = match.group("rest")
+
+  sub = pkg[len("google.genai") :]
+  if sub.startswith("."):
+    sub = sub[1:]
+
+  target_pkg = tuple(sub.split(".")) if sub else ()
+
+  k = 0
+  min_len = min(len(file_pkg), len(target_pkg))
+  while k < min_len and file_pkg[k] == target_pkg[k]:
+    k += 1
+
+  up = len(file_pkg) - k
+  down = target_pkg[k:]
+
+  if up == 0:
+    dots = "."
+  else:
+    dots = "." * (up + 1)
+
+  if down:
+    relative_module = dots + ".".join(down)
+  else:
+    relative_module = dots
+
+  return f"{pre}{relative_module}{rest}"
+
+
+def _apply_httpx2_fallback(output_dir: pathlib.Path) -> None:
+  """Rewrites httpx imports to fall back to httpx2 (matching common.bara.sky)."""
+  for py_file in sorted(output_dir.rglob("*.py")):
+    text = py_file.read_text(encoding="utf-8")
+    rewritten = text.replace(
+        "\nimport httpx\n",
+        "\ntry:\n    import httpx\nexcept ImportError:\n    import httpx2 as"
+        " httpx\n",
+    )
+    rel_posix = py_file.relative_to(output_dir).as_posix()
+    if rel_posix == "utils/headers.py":
+      rewritten = rewritten.replace(
+          "\nfrom httpx import Headers\n",
+          "\ntry:\n    from httpx import Headers\nexcept ImportError:\n    from"
+          " httpx2 import Headers\n",
+      )
+    elif rel_posix == "utils/values.py":
+      rewritten = rewritten.replace(
+          "\nfrom httpx import Response\n",
+          "\ntry:\n    from httpx import Response\nexcept ImportError:\n   "
+          " from httpx2 import Response\n",
+      )
+    if rewritten != text:
+      py_file.write_text(rewritten, encoding="utf-8")
+
+
+def sync_and_rewrite(
+    input_dir: pathlib.Path,
+    output_dir: pathlib.Path,
+    httpx2_fallback: bool = False,
+) -> None:
+  if not input_dir.is_dir():
+    raise FileNotFoundError(f"Input directory does not exist: {input_dir}")
+
+  output_dir.mkdir(parents=True, exist_ok=True)
+
+  # Clear existing python and typed files in target, preserving hand-crafted files
+  preserved_paths = {"google_genai.py", "live_interactions.py", "lib", "_hooks"}
+  for p in output_dir.glob("**/*"):
+    if p.is_file() and p.suffix in {".py", ".typed"}:
+      rel_parts = p.relative_to(output_dir).parts
+      if rel_parts[0] in preserved_paths:
+        continue
+      p.unlink()
+
+  # Clean empty directories
+  for p in sorted(output_dir.glob("**/*"), reverse=True):
+    if p.is_dir() and not any(p.iterdir()):
+      p.rmdir()
+
+  # Copy all files from input_dir to output_dir
+  for src_file in input_dir.rglob("*"):
+    if not src_file.is_file():
+      continue
+
+    rel_path = src_file.relative_to(input_dir)
+    dest_file = output_dir / rel_path
+    dest_file.parent.mkdir(parents=True, exist_ok=True)
+
+    if src_file.suffix == ".py":
+      content = src_file.read_text(encoding="utf-8")
+      if not content.startswith("# Copyright"):
+        content = PYTHON_LICENSE_HEADER + "\n" + content
+      dest_file.write_text(content, encoding="utf-8")
+    else:
+      shutil.copy2(src_file, dest_file)
+
+  # Rewrite absolute imports to relative
+  rewritten_count = 0
+  for py_file in sorted(output_dir.rglob("*.py")):
+    rel = py_file.relative_to(output_dir)
+    file_pkg = rel.parent.parts
+
+    text = py_file.read_text(encoding="utf-8")
+    rewritten = _PY_ABSOLUTE_IMPORT_RE.sub(
+        lambda m, pkg=file_pkg: _absolute_to_relative(m, pkg), text
+    )
+    if rewritten != text:
+      py_file.write_text(rewritten, encoding="utf-8")
+      rewritten_count += 1
+
+  if httpx2_fallback:
+    _apply_httpx2_fallback(output_dir)
+
+  print(
+      f"Synced {len(list(output_dir.rglob('*.py')))} Python files"
+      f" ({rewritten_count} imports rewritten)."
+  )
+
+
+def main() -> None:
+  parser = argparse.ArgumentParser(description=__doc__)
+  parser.add_argument(
+      "--input-dir",
+      type=pathlib.Path,
+      required=True,
+      help="Input directory from generator",
+  )
+  parser.add_argument(
+      "--output-dir",
+      type=pathlib.Path,
+      required=True,
+      help="Target _gaos directory",
+  )
+  parser.add_argument(
+      "--httpx2-fallback",
+      action="store_true",
+      help="Rewrite httpx imports to fall back to httpx2 (for GitHub repos).",
+  )
+  args = parser.parse_args()
+
+  sync_and_rewrite(
+      args.input_dir, args.output_dir, httpx2_fallback=args.httpx2_fallback
+  )
+
+
+if __name__ == "__main__":
+  main()