Skip to content

v0.34.0

Choose a tag to compare

@MarkKropf MarkKropf released this 07 Jun 05:33
ff49ad4

One-shot lane: native strict structured + Complete resolver (P4b)

Completes the one-shot/structured-completion lane (started in v0.33.0).

  • agent.Complete(ctx, harness, req) — the public strategy resolver: an OneShotProvider (pure direct-API one-shot) is used directly; every other harness rides SpawnComplete, which delivers STRICT output for native-JSON harnesses and SOFT (validate-repair-drop) otherwise.
  • agent.Spec.ResponseSchema (additive) — the native structured-output schema, honored only by NativeJSONMode harnesses; interactive Spawns never set it (wire unchanged).
  • gemini honors it via generationConfig.responseSchema + responseMimeType; ollama via chatRequest.format — strict server-side structured output.

Purely additive; capability matrix unchanged. Built/tested with GOWORK=off (go test -race ./..., golangci-lint clean).