Skip to content

Add par.0.4.8 and par_cli.0.4.8 (Programmable Agent Runtime)#30086

Open
jcz2020 wants to merge 1 commit into
ocaml:masterfrom
jcz2020:add-par-0.4.8
Open

Add par.0.4.8 and par_cli.0.4.8 (Programmable Agent Runtime)#30086
jcz2020 wants to merge 1 commit into
ocaml:masterfrom
jcz2020:add-par-0.4.8

Conversation

@jcz2020

@jcz2020 jcz2020 commented Jun 20, 2026

Copy link
Copy Markdown

Add par.0.4.8 and par_cli.0.4.8

First release of PAR (Programmable Agent Runtime) — a modular, type-safe agent runtime for OCaml 5.4+. LangChain + LangGraph equivalent for the OCaml ecosystem.

Packages

  • par — SDK: core types, ReAct engine, runtime, workflow, expression evaluator, state machine, context manager, event bus, OpenAI/Anthropic providers, SQLite persistence, 20 built-in tools (including type-safe bash), MCP client (stdio + HTTP/SSE), 7 middleware.
  • par_cli — CLI tool (par REPL + par config wizard + par ask single-shot). Thin SDK consumer, not a sibling of it.

Highlights of v0.4.8

  • New: Runtime.invoke_structured — schema-validated LLM output via JSON Schema (OpenAI native response_format + Anthropic output_config.format).
  • Engine feedback repair loop with cancellation + middleware hooks (max 3 attempts on schema violation).
  • Generic fallback path for non-native providers (Ollama, Custom providers).
  • Mock provider structured support + Python FFI binding (par_runtime on PyPI).

Verification

  • 987 OCaml tests + 33 Python tests passing (dune runtest + pytest)
  • opam lint Passed for both packages
  • Tarball sha512 verified against GitHub Release assets
  • CI (4 workflows): https://github.com/jcz2020/par/actions/runs/27878793270
  • par --version returns 0.4.8 after opam install

Source

Distribution

  • opam (this PR): par, par_cli
  • PyPI (separate): par-runtime (Python ctypes binding via par_capi.so)
  • GitHub Release binaries: linux-x64, macos-arm64 (macos-x64 manual build)

Maintainer: @jcz2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant