Documentation
¶
Index ¶
- Constants
- Variables
- type Provider
- func (r *Provider) Audio(ctx context.Context, prompt contractsai.AudioPrompt) (contractsai.AudioResponse, error)
- func (r *Provider) DeleteFile(ctx context.Context, id string) error
- func (r *Provider) GetFile(ctx context.Context, id string) (contractsai.FileResponse, error)
- func (r *Provider) Image(ctx context.Context, prompt contractsai.ImagePrompt) (contractsai.ImageResponse, error)
- func (r *Provider) Prompt(ctx context.Context, prompt contractsai.AgentPrompt) (contractsai.AgentResponse, error)
- func (r *Provider) PutFile(ctx context.Context, file contractsai.StorableFile) (contractsai.FileResponse, error)
- func (r *Provider) Stream(ctx context.Context, prompt contractsai.AgentPrompt) (contractsai.StreamableAgentResponse, error)
- func (r *Provider) Transcription(ctx context.Context, prompt contractsai.TranscriptionPrompt) (contractsai.TranscriptionResponse, error)
- type ServiceProvider
Constants ¶
View Source
const ( Binding = "goravel.gemini" Name = "Gemini" )
View Source
const DefaultAudioVoice = "Aoede"
View Source
const DefaultImageModel = "imagen-4.0-generate-001"
View Source
const DefaultTextModel = "gemini-2.5-flash"
Variables ¶
View Source
var App foundation.Application
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func (*Provider) Audio ¶
func (r *Provider) Audio(ctx context.Context, prompt contractsai.AudioPrompt) (contractsai.AudioResponse, error)
func (*Provider) GetFile ¶
func (r *Provider) GetFile(ctx context.Context, id string) (contractsai.FileResponse, error)
func (*Provider) Image ¶
func (r *Provider) Image(ctx context.Context, prompt contractsai.ImagePrompt) (contractsai.ImageResponse, error)
func (*Provider) Prompt ¶
func (r *Provider) Prompt(ctx context.Context, prompt contractsai.AgentPrompt) (contractsai.AgentResponse, error)
func (*Provider) PutFile ¶
func (r *Provider) PutFile(ctx context.Context, file contractsai.StorableFile) (contractsai.FileResponse, error)
func (*Provider) Stream ¶
func (r *Provider) Stream(ctx context.Context, prompt contractsai.AgentPrompt) (contractsai.StreamableAgentResponse, error)
func (*Provider) Transcription ¶
func (r *Provider) Transcription(ctx context.Context, prompt contractsai.TranscriptionPrompt) (contractsai.TranscriptionResponse, error)
type ServiceProvider ¶
type ServiceProvider struct{}
func (*ServiceProvider) Boot ¶
func (r *ServiceProvider) Boot(app foundation.Application)
func (*ServiceProvider) Register ¶
func (r *ServiceProvider) Register(app foundation.Application)
func (*ServiceProvider) Relationship ¶
func (r *ServiceProvider) Relationship() binding.Relationship
Click to show internal directories.
Click to hide internal directories.