Repository navigation
Releases
v0.2.0
v0.2.0: any model you bring
Breaking: Agentling no longer ships a model provider or depends on openai.
A model is any object with a stream(messages, tools) method that yields
Deltas, so OpenAI, Anthropic, Gemini or a local server all work through an
adapter you own. MIGRATING.md has the 0.1 code and its 0.2 replacement for
every removed or changed API.
Highlights:
- Removed: OpenAIModel, ToolSpec, Model.generate and Tool.to_schema. The only
runtime dependency is pyyaml. - Reference adapters to copy in examples/providers/: OpenAI-compatible,
Anthropic Messages and Ollama, each with a recorded fixture. - agentling.testing: ScriptedModel runs an agent offline, and check_model
reports which contract rule an adapter breaks. - Classified ModelError subclasses, and RetryPolicy, so the loop owns retries.
- AgentSession.resume() and is_running; an idle interrupt() no longer stops
the next run; one run per session. - Memory format 2. Format 1 saves still load.
- Python 3.13 is supported.
Full changelog: CHANGELOG.md
v0.1.1
v0.1.1: Dynamic tools
Tools whose schemas come from somewhere else (an MCP server, an OpenAPI spec,
a plugin) now work, and a running session can gain or lose tools.
Highlights:
- AgentSession.add_tools() and remove_tools() change a live session's tools.
The model sees the change from its next call, and each call is all or
nothing. - Tool.validate_arguments and @tool(validate_arguments=...) let a remote
server do the validation; Tool.validate() checks arguments without running
the tool. - Validation no longer crashes on union types such as ["string", "null"],
skips keywords it doesn't implement, and only rejects extra arguments when
additionalProperties is false. - Tool names and schemas are checked wherever a tool is registered.
- Docstrings now say which errors are reserved and that provider errors reach
the caller unwrapped.
Behaviour change: a Tool subclass whose schema doesn't set
"additionalProperties": false now accepts extra arguments. @tool schemas still
reject them.
Full changelog: CHANGELOG.md
v0.1.0
v0.1.0 — first production-minded release
The core async framework plus a full production-hardening pass.
Highlights:
- Async ReAct loop: Agent (immutable config/factory) + AgentSession (isolated per-run state)
- OpenAI-compatible model adapter with retries; @tool with JSON-schema arg validation
- Typed memory with JSON persist/replay; streaming events + print_events; terminal run status
- Progressive-disclosure skills (SKILL.md) with a built-in load_skill tool
- Hardening: tool/model timeouts + cancellation, malformed-output recovery, error
redaction, output truncation, cumulative usage, and a context-window hook - Six runnable examples; ruff + mypy clean; 151 tests
Full changelog: CHANGELOG.md