Skip to content

v0.5.2

Choose a tag to compare

@ktsoator ktsoator released this 28 Jun 11:32
a5210c2

Importable provider packages and expanded docs

One packaging refactor plus documentation expansion. Existing llm APIs remain in place, but applications now import the provider packages they want to register.

or/llm — import only the providers you use

The LLM core is now a public llm package, while provider adapters live in importable packages:

  • github.com/ktsoator/or/llm/openai
  • github.com/ktsoator/or/llm/anthropic
  • github.com/ktsoator/or/llm/all

Import a provider, often as a blank import, to register its protocol. This lets binaries link only the vendor SDKs for the providers they actually use.

or/agent — custom message projection helper

Adds agent.ToLLM, the inverse of agent.FromLLM, for custom ConvertToLLM implementations that need to pass standard llm messages through while projecting UI-only message types.

Documentation

The docs site is now much more complete:

  • Expanded LLM guides with runnable examples.
  • New Agent guide pages for tools, events, steering, hooks, messages, configuration, and RunLoop.
  • New internals docs for models, messages, adapters, streaming, and model switching.
  • English and Simplified Chinese pages kept in sync across the new docs.

Verified with go test ./.... Local mkdocs build --strict was skipped because mkdocs is not installed in this environment.