Skip to content

v0.14.0

Choose a tag to compare

@github-actions github-actions released this 09 Nov 04:34
· 86 commits to master since this release

Tools now tell the model the timeout each one enforces, so a model plans around the real budget instead of a number baked into the schema; and a tool call that streamed no arguments can no longer crash the async path.

Tools state the timeouts they enforce

NmTool gains an optional render hook that fills the wire description — and the parameter schema, where it embeds a number — from the config store at serialization time (5961c78). run_command quotes its inactivity budget, or says no timeout is set, and states the timeout cannot be set per call; exec_command states its fixed yield window and that a running job cannot be killed; write_stdin quotes the poll_timeout ceiling in its description and in its yield_time_ms parameter, which used to hard-code 300000; web_search quotes searxng_timeout as a total deadline. Durations are spelled one way everywhere — 300000 ms (300 s) — so the wire unit and the seconds reading cannot disagree.

The rendered text is the cache key: nm_toolset_to_json rebuilds only when it changes, so an unchanged config keeps the request bytes byte-stable and a /config edit of one of these keys reaches the next request. Hook text depends on config values only, never on runtime state such as the web_search latch, so it cannot churn between requests. Tools without a hook serialize first and hooked ones last, so an edit keeps the static tools' tokens ahead of it on an implicit prompt cache and costs one prefix miss rather than a re-read of the whole tool block.

An argument-less tool call no longer segfaults

A tool call that streamed no argument deltas carries a NULL args_json. The synchronous path substituted {}; the async begin() path passed the NULL through and run_command_begin ran strlen on it (c7b56d1). begin() now receives {} too, and a regression test covers the streaming shape that produced it.

Upgrading

Nothing to migrate: no config keys or wire formats change, and the CI pins stay at boba v0.9.0 and coffer v0.12.0.

Full Changelog

v0.13.0...v0.14.0