API Reference lemon_agent v#0.1.0

View Source

Modules

High-level agent execution library built on top of the LemonAi library.

Cooperative, ETS-backed abort signalling for the agent loop and tools.

GenServer implementation of an AI Agent that manages conversation state and streams.

Registry for agent process lookup and discovery.

OTP Application for LemonAgent.

Context management utilities for agent conversations.

Environment variables read by agent_core — the agent loop, model runtime, and credential resolution.

Async event stream for streaming Agent responses with OTP-compliant lifecycle management.

Stateless agent loop functions for conversation management.

Validates tool-call transcript invariants before provider calls.

Lemon-owned provider credential resolution.

Consumer-facing "what can I pick from right now" model catalog.

Canonical provider naming helpers for the Lemon AI runtime boundary.

Redacted provider route-plan preview.

Redacted provider credential readiness diagnostics.

Resolves provider configuration from canonical config + env + secrets.

Proxy stream function for apps that route LLM calls through a server.

Options for proxy streaming requests.

Security helpers for wrapping untrusted external content before returning it to models.

Dynamic supervisor for managing subagent processes.

Lightweight text completion bridge for apps that depend on agent_core.

Runtime registry for agent tools contributed by apps outside the platform.

Shared abort-signal helpers used across tool implementations.

Core type definitions for the LemonAgent library.

Context for agent conversations.

Configuration for the agent loop.

Runtime state of the agent containing all configuration and conversation data.

A tool the agent loop can call: a schema the model sees plus the function that runs when it calls it.

Result returned from tool execution.

Immutable tool schema snapshot used for one agent loop run.

Durable user goal state keyed by session.

Typed wrapper for heartbeat configuration and last-result tables.

Durable BEAM-native kanban board state for multi-agent work.

Mix Tasks

Show redacted provider readiness and routing state.