llm

package
v0.0.0-...-400149e Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model struct {
	// contains filtered or unexported fields
}

func NewModel

func NewModel(_ context.Context, client *genai.Client) (*Model, error)

NewModel returns a genai model configured for the project.

func (*Model) Query

func (m *Model) Query(ctx context.Context, message string, history []db.ChatMessage) (*db.ChatMessage, error)

Query sends a message to the model and returns the response.

Jump to

Keyboard shortcuts

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