llm

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Generate(ctx context.Context, systemPrompt, userPrompt string, responseSchema any) (*GenerateResult, error)
}

Client is the common interface for LLM providers

type GenerateResult

type GenerateResult struct {
	Content      string
	PromptTokens int
	OutputTokens int
	TotalTokens  int
	Latency      time.Duration
}

GenerateResult holds the result of an LLM generation call

Jump to

Keyboard shortcuts

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