# Incorrect SDK code when generating code for creating interaction to antigravity models

**URL:** <https://discuss.ai.google.dev/t/incorrect-sdk-code-when-generating-code-for-creating-interaction-to-antigravity-models/190834>\
**Category:** Google AI Studio\
**Created:** [October 19, 2026, 5:08pm UTC](https://discuss.ai.google.dev/t/incorrect-sdk-code-when-generating-code-for-creating-interaction-to-antigravity-models/190834 "2026-10-19T17:08:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![angusma](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/angusma/32/56437_2.png) [@angusma](https://discuss.ai.google.dev/u/angusma)\
**Post date:** [October 19, 2026, 5:08pm UTC](https://discuss.ai.google.dev/t/incorrect-sdk-code-when-generating-code-for-creating-interaction-to-antigravity-models/190834/1 "2026-10-19T17:08:11Z")

</div>

Select a model manually for the Antigravity Agent Preview(antigravity-preview-09-2026) agent, then click the “Get code” button, AI Studio will build a code like this:

```py
interaction = client.interactions.create(
    agent='antigravity-preview-09-2026',
    input="""INSERT_INPUT_HERE""",
    background=True,
    tools=tools,
    agent_config={
        'type': 'antigravity',
        'model': 'models/gemini-4-argon',
    },
    environment={
        'type': 'remote',
        'network': 'disabled',
    },
)

```

In this generated Python code, the `agent_config.model` is assigned as `models/gemini-4-argon` incorrectly, which should be `gemini-4-argon` without the `models/` prefix. Running the code directly will receive the error response `{"error":{"message":"Requested entity was not found.","code":"not_found"}}`
