llm

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2026 License: MIT Imports: 7 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 struct {
	// contains filtered or unexported fields
}

Client wraps the Anthropic API client

func NewClient

func NewClient(cfg *config.Config) (*Client, error)

NewClient creates a new LLM client using settings from config

func (*Client) GenerateEntry

func (c *Client) GenerateEntry(ctx context.Context, personaDescription string, snapshot *metrics.Snapshot, previousEntries []prompt.PreviousEntry) (*GenerateResult, error)

GenerateEntry creates a journal entry based on system metrics

type GenerateResult added in v0.0.2

type GenerateResult struct {
	Content   string
	ModelID   string
	MessageID string
}

GenerateResult contains the generated entry and metadata from the API call

Jump to

Keyboard shortcuts

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