Post

Antigravity powers agents across the CLI, IDE, and desktop manager. The Java SDK wraps the native Go execution harness with a fluent, type-safe API for #Gemini models. Browse the 20-slide deck here: speakerdeck.com/glaforge/an...

speakerdeck.comAntigravity SDK for the Java DeveloperAntigravity is a family of agentic tools, comprising Antigravity 2.0 (the agent manager desktop application), Antigravity CLI (to work in the terminal),…

0 reposts1 like

1️⃣ Local Java Tools & Structured Output Annotate Java methods with @Tool and @Param to let the agent call your code. With .finishToolSchema(Record.class), the SDK derives the JSON Schema and deserializes the response directly into your Java record. Zero manual parsing.

2️⃣ Real-time Streaming & Thinking Modern Gemini models think before answering. With chatStream(), you stream tokens as they arrive while separating the model's internal chain-of-thought (thoughtsDelta) from the final response text (textDelta). Great for transparent UIs.

3️⃣ Deny-by-default Security Policies Autonomous agents shouldn't have unrestricted privileges. Configure guardrails with Policies.denyIf(...) to intercept and block destructive operations before execution, allow safe read tools, and fall back to denyAll().