factory

package
v0.8.9 Latest Latest
Warning

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

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

Documentation

Overview

Package factory constructs agent.Agent implementations from a provider name. It lives in its own package because internal/agent cannot import the provider packages (claude, opencode) without an import cycle.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(provider, binary, model, codexReasoningEffort string) (agent.Agent, error)

New constructs an agent.Agent for the given provider. binary may be empty (each provider falls back to its default binary name); model may be empty. codexReasoningEffort is passed through to the codex provider, which applies its own "medium" default when it is empty. An empty provider maps to claude to preserve current default behavior.

Types

This section is empty.

Jump to

Keyboard shortcuts

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