llmrun

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package llmrun provides the gollem-backed implementation of evaltype.Completer. It wraps gollem.New(...).Execute so the eval components can issue a single system+user completion (optionally JSON-schema constrained) without each re-implementing the agent wiring.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Completer

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

Completer drives a single gollem completion against one LLM client.

func New

func New(llm gollem.LLMClient) *Completer

New builds a Completer over the given LLM client.

func (*Completer) Complete

func (c *Completer) Complete(ctx context.Context, systemPrompt, userPrompt string, schema *gollem.Parameter) (string, error)

Complete runs one completion. When schema is non-nil the call is constrained to JSON output and the first top-level JSON object is returned; otherwise the joined plain text is returned. LoopLimit is 2 (one generate plus the minimum to surface a structured-output round), matching the planexec final phase.

Jump to

Keyboard shortcuts

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