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 ¶
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.
Click to show internal directories.
Click to hide internal directories.