Documentation
¶
Index ¶
- type Provider
- func (g *Provider) Close() error
- func (g *Provider) Connect(ctx context.Context, cfg live.LiveConfig) error
- func (g *Provider) Name() string
- func (g *Provider) Receive(ctx context.Context) (*live.LiveMessage, error)
- func (g *Provider) Reconnect(ctx context.Context) error
- func (g *Provider) SendAudio(chunk []byte) error
- func (g *Provider) SendAudioStreamEnd() error
- func (g *Provider) SendText(text string) error
- func (g *Provider) SendToolResponse(response live.ToolResponse) error
- func (g *Provider) SessionCapabilities() live.SessionCapabilities
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider implements live.LiveProvider using the Google GenAI Live API.
func (*Provider) Reconnect ¶ added in v0.64.3
Reconnect re-establishes the session using the stored resumption handle. If the handle has expired (TTL) or been cleared, a fresh session is opened.
func (*Provider) SendAudio ¶ added in v0.64.3
live.ShouldTryFallback reports whether a fallback model is worth attempting when the primary fails. The fallback must be non-empty and different from the primary; otherwise the second attempt would just re-trigger the same failure.
func (*Provider) SendAudioStreamEnd ¶ added in v0.64.3
func (*Provider) SendToolResponse ¶ added in v0.64.3
func (g *Provider) SendToolResponse(response live.ToolResponse) error
func (*Provider) SessionCapabilities ¶ added in v0.64.3
func (g *Provider) SessionCapabilities() live.SessionCapabilities
Click to show internal directories.
Click to hide internal directories.