Skip to content

v0.2.0

Latest

Choose a tag to compare

@folathecoder folathecoder released this 03 Nov 16:42
· 12 commits to main since this release
729396c

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