Skip to content

agentix.errors

errors

Exception hierarchy for agentix.

All library-raised errors derive from :class:AgentError so callers can catch the whole family with one except.

AgentError

Bases: Exception

Base class for all agentix errors.

BudgetExceeded

Bases: AgentError

Raised/recorded when a run exceeds its token or step budget.

GuardError

Bases: AgentError

A guard refused a tool call. Carries a human-readable reason.

ToolError

Bases: AgentError

A tool failed to execute. Surfaced to the model as data, not a crash.