Help us shape the future of Go! Take the 2026 Go Developer Survey

agent

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package agent selects a model provider for the examples from the environment.

AGENTX_PROVIDER chooses anthropic, openai or gemini; otherwise the first provider with an API key set is used. AGENTX_MODEL overrides the model.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ModelFromEnv

func ModelFromEnv() (model.Model, error)

ModelFromEnv constructs the provider selected by the environment without making a request. It returns a nil model when provider configuration fails.

Types

This section is empty.

Jump to

Keyboard shortcuts

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