Repository navigation
v0.5.0 — langchain-golang v0.6.2: reasoning effort & native JSON mode
Highlight: langchain-golang v0.5.0 → v0.6.2
LadyM's LLM/LangGraph foundation jumps three releases (v0.6.0 → v0.6.1 → v0.6.2) and puts the new capabilities to work:
- v0.6.0 — Python SDK parity completion: OpenAI
tool_choice, native JSON mode / rawresponse_formatpassthrough,with_structured_outputimprovements, model token counting APIs, checkpoint saver management API, prebuilt react agent helpers. - v0.6.1 — token counting parity: real tiktoken BPE for OpenAI (cl100k_base / o200k_base, official vision-token formula), Anthropic
/messages/count_tokensbacking, usage-metadata-scaled approximate counting. - v0.6.2 —
tiktoken-go/tokenizerv0.8.1. Requires Go ≥ 1.26 (LadyM already targets go 1.26.4).
What's new in LadyM
reasoning_effortconfig knob, plumbed end to end — steer OpenAI o-series / gpt-5 reasoning models (low|medium|high):Also via[llm] reasoning_effort = "high"
LADYM_LLM_REASONING_EFFORTand per-operation[agents.<op>]overrides. Validated at provider construction; anthropic / ollama / http accept and ignore it.- OpenAI-native JSON mode for structured output —
structured_method = "json_mode"now binds the provider-nativeresponse_format={"type":"json_object"}on OpenAI partner models (upstream enforcement) while retaining the schema system prompt, replacing the former prompt-only path. Non-OpenAI models are unchanged.
Verification
go build/go vetgreen on both editions (personal +-tags enterprise)make test-allgreen: personal + live Postgres, enterprise, comment lint- Statement coverage 95.8% (personal + PG); providers 99.5%, config 99.1%
- TDD throughout (RED witnessed per task); two per-task reviews + final whole-branch review: merge-ready
Full Changelog: v0.4.0...v0.5.0