noop

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package noop provides a no-operation LLM provider that returns fixed responses without making any network calls. Used by --dry=noop to exercise the full pipeline end-to-end without a running model.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct{}

Provider is a no-operation LLM provider. Chat returns a fixed "noop" message with no tool calls, causing the assistant loop to exit after one turn.

func New

func New() *Provider

New creates a noop provider.

func (*Provider) Chat

func (p *Provider) Chat(
	_ context.Context,
	_ request.Request,
	streamFunc stream.Func,
) (message.Message, usage.Usage, error)

Chat returns a fixed "noop" assistant message with no tool calls and zero usage.

func (*Provider) Estimate

func (p *Provider) Estimate(_ context.Context, _ request.Request, _ string) (int, error)

Estimate is not supported by the noop provider.

func (*Provider) Model

func (p *Provider) Model(_ context.Context, name string) (model.Model, error)

Model returns a minimal model entry with the requested name.

func (*Provider) Models

func (p *Provider) Models(_ context.Context) (model.Models, error)

Models returns a single noop:latest model entry.

Jump to

Keyboard shortcuts

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