Generation Callbacks
Agents support beforegeneration and aftergeneration callbacks, letting you hook into the lifecycle of a single run without overriding it yourself.
Run Entrypoints
OmniAgent::Agent always exposes the low-level run method, but you'll usually call an agent through one of its higher-level entrypoints.
Change an Agent's Provider or Model
By default, agents use the configured defaultprovider and defaultmodel. You can override these settings on a per-agent basis using one of the following DSL directives.