Documentation
¶
Overview ¶
Package gemini implements canonical-trajectory continuation through the Gemini GenerateContent streaming API.
Index ¶
Constants ¶
const ( // DefaultModel is the stable Gemini model selected for the fast/slow study. DefaultModel = "gemini-3.5-flash" // ProviderStateType identifies a Gemini model Content object with preserved // thought signatures and function calls. ProviderStateType = "google.gemini.generate-content.model-content.v1" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter struct {
// contains filtered or unexported fields
}
Adapter streams Gemini output and preserves provider-authenticated thought signatures without requiring plaintext chain-of-thought retention.
func (*Adapter) Continue ¶
func (adapter *Adapter) Continue(ctx context.Context, request continuation.Request, emit continuation.Emit) (continuation.Completion, error)
Continue implements continuation.Provider using SSE GenerateContent.
func (*Adapter) Descriptor ¶
func (adapter *Adapter) Descriptor() continuation.Descriptor
Descriptor returns the immutable provider configuration.
type Config ¶
type Config struct {
APIKey string
Model string
Endpoint string
Phase trajectory.Phase
Effort continuation.Effort
ToolAuthority continuation.ToolAuthority
// SpeechAuthority declares whether this provider's output may be voiced.
// An unset value means voice; the fast/slow arrangement is what sets a
// provider silent, and it does so explicitly.
SpeechAuthority continuation.SpeechAuthority
// AllowTools is a compatibility alias for ToolAuthorityExecute.
AllowTools bool
IncludeThoughts bool
// Temperature is omitted when nil. Zero gives the fast voice a stable
// control decision without changing the slow reasoner's provider default.
Temperature *float64
HTTPClient *http.Client
RequestTimeout time.Duration
}
Config configures one Gemini fast or slow continuation profile.