internal

package
v0.2.14 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	ID       string // Provider-specific file ID
	URI      string // For Google (file URI)
	MimeType string // MIME type of the file
}

File represents a file attachment for prompts

type Provider

type Provider interface {
	Prompt(ctx context.Context, systemPrompt, userPrompt, jsonSchema, apiKey string, settings Settings, files ...File) (string, error)
	Agent(apiKey string) (interface{}, error)
}

Provider defines the internal interface for LLM providers

type Settings added in v0.2.6

type Settings struct {
	Model       string  // Model to use for the request (provider-specific default if empty)
	MaxTokens   int     // Maximum tokens in response (0 = omit from request)
	Temperature float64 // Sampling temperature (0 = omit from request)
	TopK        int     // Only sample from the top K options for each subsequent token (0 = omit from request)
	TopP        float64 // Use nucleus sampling (0 = omit from request)
}

Settings contains all possible provider-specific settings

Jump to

Keyboard shortcuts

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