Package-level declarations
Types
An in-app agent: a model plus capabilities (tools, skills, MCP servers…), served as a ChatBackend for dev.ai.elements.core.chat.ChatController — the Kotlin counterpart of a Pydantic AI agent with Harness capabilities.
A sub-agent the harness runs itself: its own instructions (and optionally its own model) with the harness' capabilities.
How to reach a model: builds the backend of one agent run from its tools and instructions. ProviderProfile.model adapts any configured provider.
Functions
This provider as a ModelBinding (API key, or signed-in tokens); systemPrompt overrides the profile's; an AG-UI server's events go to agUiEventLog for replays.
Run one prompt on backend without a UI (scheduled or background work) and return the final answer. Throws when the run reports an error.
runHeadless on this harness. Nobody can approve tools here, so calls that need approval are denied unless approver says otherwise.