Skip to content

Releases

v0.5.0: stable analyzer and llmvcr APIs

Choose a tag to compare

@local-dev-bot local-dev-bot released this 28 Nov 13:15
ceb3580

Highlights

  • API freeze (#40): pkg/analyzer, pkg/llmvcr, pkg/provider and pkg/policy are now stable. CI runs apidiff on every PR and fails breaking changes unless they are labelled breaking-change (see README, "API stability"). All other packages remain experimental.
  • Provider features: typed multi-turn messages (#109), streaming for Ollama, OpenAI and Gemini (#110, #111), typed tool calling with a bounded loop (#112, #113), adaptive concurrency and circuit breaker provider.Guard (#106).
  • New packages: offline evaluation pkg/eval (#108), cost estimation pkg/cost (#104), SQLite vector store pkg/vectorstore/sqlitestore (#68), versioned prompt overlays in pkg/promptregistry (#103).
  • Pipeline: resumable checkpointed batches and DLQ attempts (#105).
  • Docs: runnable GoDoc examples and concurrency patterns (#115).

Breaking changes and migration

pkg/analyzer (#116)

  • Configure templates only through analyzer.NewBuilder(p, parser).With...().Build(). Removed: NewTemplate, NewTextTemplate (use NewTextBuilder(p)), TemplateConfigurator, the WithTemplate* options (use the matching Builder.With*, e.g. WithScrubFunc) and Builder.MustBuild (handle the error from Build).
  • Retry and error-taxonomy aliases moved to their home packages: Tier*, ErrorTier, Code, WithCode, TierCode, TierPolicy, RetryPolicy, DefaultRetryPolicy, DefaultCodeToTier, IsRetryable, IsLongRetryable → pkg/policy; provider sentinels (ErrQuotaExceeded, ErrRateLimitExceeded, ErrMissingAPIKey, ErrAllKeysCoolingDown, …) → pkg/provider.
  • Removed internals: ExecuteWithRetries, RetryConfig, ExtractAllJSON, Preflighter/RunPreflight, Event/EventLLMRetrying, the JSON-schema keyword constants (Prop*, Type*, StringEncodedBytes) and the photo-specific DefaultLeniencyPercent/DefaultMinTagsRequired.

pkg/llmvcr (#117)

  • pkg/vcrpatch, pkg/vcrpatch/pretty, pkg/scrub and pkg/llmtest are merged into pkg/llmvcr: replace scrub.X, vcrpatch.X, pretty.X and llmtest.X with llmvcr.X.
  • Renamed: vcrpatch.Matcher → llmvcr.InteractionMatcher, llmtest.UpdateEnv → llmvcr.GoldenUpdateEnv; the golden update variable is now LLMVCR_UPDATE (was LLMTEST_UPDATE).
  • The photo/judge response fixtures moved to an internal package; OllamaMalformedJSON is removed.

Other

  • pkg/provider/gemini calls the REST API over net/http instead of the deprecated SDK (#100).
  • pkg/strategy: the judge prompt builder returns an error (#84).

Full changelog: v0.4.0...v0.5.0

v0.4.0

Choose a tag to compare

@local-dev-bot local-dev-bot released this 28 Nov 17:29
Immutable release. Only release title and notes can be modified.
f599262

What's Changed

  • feat(ollama): add local embeddings adapter for pkg/vectorstore by @vmontagh in #54
  • test: replace real clocks in strategy and httputil tests with a logical clock by @vmontagh in #56
  • docs(go-idioms): make the no-repeated-t.Run rule explicit in §3.2 by @vmontagh in #61
  • test: reusable VCR cassette record/replay harness for provider adapters by @vmontagh in #59
  • refactor(ollama): extract shared JSON-POST helper by @vmontagh in #60
  • feat(vectorstore): metric-generic single-linkage clustering (ClusterByDistance) by @vmontagh in #62
  • test: godog BDD integration harness with @fake/@live-local lanes by @vmontagh in #63
  • feat(promptregistry): add versioned, testable prompt registry by @vmontagh in #64
  • feat(semcache): semantic response cache backed by pkg/vectorstore by @vmontagh in #65
  • feat(vectorstore): export scoring and validation helpers by @vmontagh in #66
  • test(vectorstore): add reusable Store conformance harness by @vmontagh in #67
  • docs: add §3.0 test authoring structure & simplicity standard by @vmontagh in #73
  • feat(ollama): add WithThink option to toggle model thinking mode by @vmontagh in #74

Full Changelog: v0.3.0...v0.4.0

v0.3.0

Choose a tag to compare

@local-dev-bot local-dev-bot released this 28 Nov 17:29
Immutable release. Only release title and notes can be modified.
e70d6aa

What's Changed

  • Add doctor environment-readiness diagnostics API by @vmontagh in #31
  • chore(review): add code-review agent skill for Copilot PR reviews by @vmontagh in #29
  • feat(vectorstore): dependency-free in-memory vector store by @vmontagh in #35

Full Changelog: v0.2.0...v0.3.0

v0.2.0

Choose a tag to compare

@vmontagh vmontagh released this 16 Aug 04:19

Additive, backward-compatible additions to pkg/pipeline.

Feature A — PauseGate.Draining()

func (g *PauseGate) Draining() <-chan struct{} returns a broadcast channel closed exactly once by Stop(), so callers can select on a graceful drain instead of polling IsStopping(). Works on the zero-value gate; repeated Stop() never double-closes.

Feature B — per-stage Consume drain policy

  • DrainMode enum: DrainComplete (default, iota) and DrainDiscard.
  • WithDrainMode(m DrainMode) ConsumeOption
  • WithDrainHandler[T any](fn func(T)) ConsumeOption

Under DrainDiscard, not-yet-started items are routed to the drain handler instead of being processed; the loop drains the channel until it closes and never cancels ctx. Default behavior is identical to v0.1.0.

Validated with go test -race ./... (green) and golangci-lint run ./... (0 issues).

v0.1.0

Choose a tag to compare

@vmontagh vmontagh released this 16 Aug 02:01

First tagged release of pkg/pipeline.

Highlights (closes #19)

  • Graceful-stop / drain primitive. PauseGate.Stop() transitions the gate into a terminal draining state and unblocks all waiters with the new ErrDraining sentinel — distinct from context.Canceled, so in-flight LLM/HTTP calls finish on a live context instead of aborting mid-write. Adds PauseGate.IsStopping().
  • Drain-aware Consume. On stop, workers stop blocking on the pause, drain queued/in-flight items to completion on the live ctx, and return once the input channel closes. The context is never cancelled.
  • Waiter observability. PauseGate.Waiters() reports parked callers, enabling deterministic, sleep-free pause/resume tests.
  • Lifecycle godoc documenting the Running / Paused / Draining / Cancelled states.

Consume

go get github.com/vmontagh/go-llm-pipeline@v0.1.0