Skip to content

alloy

alloy

Alloy public API.

Python for logic. English for intelligence.

This is an initial scaffold of the v1.0 surface area.

CommandError

Bases: AlloyError

Raised when a command fails to produce a valid result.

ToolError

Bases: AlloyError

Raised when a tool contract fails or a tool invocation errors.

ConfigurationError

Bases: AlloyError

Raised when required configuration or provider backends are missing.

ToolLoopLimitExceeded

Bases: CommandError

Raised when the tool-call turn limit is exceeded without a final answer.

configure

configure(**kwargs)

Set global defaults for Alloy execution.

Example

configure(model="gpt-4", temperature=0.7)