v0.4.0 — streaming memory + observability
Two zero-dependency client-loop features, byte-parity across all five ports.
Streaming + memory
stream(prompt, { toolkit, id? })—idmakes streaming stateful (loads the thread's transcript, saves on thedoneevent).ask(prompt, { toolkit, id?, on_text? })—on_textstreams text deltas whileaskstill returns the finalRunResult.
Observability
create_client(..., on_metric)— semantic events ({event:"llm"|"tool"|"run", …}) to forward anywhere (statsd/logs/OTel).client.metrics()— built-in Prometheus text exposition (zero-dependency), mount atGET /metrics. Byte-identical across ports. OTLP push = future companion.
npm i toolnexus · pip install toolnexus · go get github.com/muthuishere/toolnexus/golang@v0.4.0 · dotnet add package Toolnexus --version 0.4.0 · io.github.muthuishere:toolnexus:0.4.0