v0.5.2
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/openaigithub.com/ktsoator/or/llm/anthropicgithub.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.