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 ¶
- type Provider
- func (p *Provider) Chat(_ context.Context, _ request.Request, streamFunc stream.Func) (message.Message, usage.Usage, error)
- func (p *Provider) Estimate(_ context.Context, _ request.Request, _ string) (int, error)
- func (p *Provider) Model(_ context.Context, name string) (model.Model, error)
- func (p *Provider) Models(_ context.Context) (model.Models, error)
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 (*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.
Click to show internal directories.
Click to hide internal directories.