Help us shape the future of Go! Take the 2026 Go Developer Survey

antigravity

package
v6.9.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package antigravity implements thinking configuration for Antigravity API format.

Antigravity uses request.generationConfig.thinkingConfig.* path (same as gemini-cli) but requires additional normalization for Claude models:

  • Ensure thinking budget < max_tokens
  • Remove thinkingConfig if budget < minimum allowed

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Applier

type Applier struct{}

Applier applies thinking configuration for Antigravity API format.

func NewApplier

func NewApplier() *Applier

NewApplier creates a new Antigravity thinking applier.

func (*Applier) Apply

func (a *Applier) Apply(body []byte, config thinking.ThinkingConfig, modelInfo *registry.ModelInfo) ([]byte, error)

Apply applies thinking configuration to Antigravity request body.

For Claude models, additional constraints are applied:

  • Ensure thinking budget < max_tokens
  • Remove thinkingConfig if budget < minimum allowed

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL