All skills
google-antigravity avatar

/google-antigravity-sdk

@2eb7fee

Design, implement, and debug autonomous AI agents and multi-agent systems using the Google Antigravity (AGY) SDK. ACTIVATE this skill when the user wants to create, configure, or orchestrate Google Antigravity agents.

Use this Skill: https://skilld.dev/gh/google-antigravity/antigravity-sdk-python/google-antigravity-sdk

This session only. Nothing lands on disk.

examplesgetting_startedpersistence.md

≈362 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Conversation Persistence

This example demonstrates how to persist conversation state and resume it later using a conversation_id. This is useful for long-running interactions or when you need to restart an agent without losing context.

Resuming a Conversation

To resume a conversation, you need to: 1. Save the conversation_id from a previous session. 2. Provide the conversation_id and the same save_dir in the LocalAgentConfig for the new session.

import tempfile
from google.antigravity import Agent, LocalAgentConfig

# Use a directory to save the conversation state
save_dir = tempfile.mkdtemp()

# --- Session 1: Setup Persistence Directory ---
config1 = LocalAgentConfig(save_dir=save_dir)

async with Agent(config1) as agent:
    await agent.chat("Remember this: my favorite color is blue.")
    # Retrieve the conversation ID
    conversation_id = agent.conversation_id

# --- Session 2: Resume conversation ---
config2 = LocalAgentConfig(
    conversation_id=conversation_id,
    save_dir=save_dir,
)

async with Agent(config2) as agent:
    response = await agent.chat("What is my favorite color?")
    print(await response.text())

[!TIP] While save_dir persists the conversation trajectory history, you can use app_data_dir to control where generated artifacts (like task.md), scratch files, and media are written. See app_data_dir_override.md for an example.

Source: SKILL.md on GitHub

No alerts6d3 checks · Risk SAFE
  • Gen Agent Trust Hub6d

    The skill provides comprehensive documentation and code examples for the Google Antigravity SDK. It describes tools for shell execution, web search, and subagent orchestration, which are intended features of the SDK. The documentation emphasizes security best practices, including safe credential management, safety policy configuration, and the use of sandboxing for shell commands.

  • Socket6d

    No alerts

  • Snyk6d

    Risk: LOW · No issues

Signed by skilld at 2eb7fee. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 3 days ago.

Activeupdated 2 weeks ago

README badge

README badge for google-antigravity/antigravity-sdk-python