Hopefully the last alpha before a stable release that includes tool support.
Features
- Plugin-provided tools can now be grouped into "Toolboxes".
- Tool support for
llm chat. - Tools can now execute asynchronously.
- Models that implement
AsyncModelcan now run tools, including tool functions defined asasync def. This enables non-blocking tool calls for potentially long-running operations. (#1063)
- Models that implement
llm chatnow supports adding fragments during a session.- Use the new
!fragment <id>command while chatting to insert content from a fragment. Initial fragments can also be passed tollm chatusing-for--sf. Thanks, Dan Turkel. (#1044, #1048)
- Use the new
- Filter
llm logsby tools. llm schemas listcan output JSON.- Added
--jsonand--nl(newline-delimited JSON) options tollm schemas listfor programmatic access to saved schema definitions. (#1070)
- Added
- Filter
llm similarresults by ID prefix.- The new
--prefixoption forllm similarallows searching for similar items only within IDs that start with a specified string (e.g.,llm similar my-collection --prefix 'docs/'). Thanks, Dan Turkel. (#1052)
- The new
- Control chained tool execution limit.
- New
--chain-limit <N>(or--cl) option forllm promptandllm chatto specify the maximum number of consecutive tool calls allowed for a single prompt. Defaults to 5; set to 0 for unlimited. (#1025)
- New
llm plugins --hook <NAME>option.- Filter the list of installed plugins to only show those that implement a specific plugin hook. (#1047)
llm tools listnow shows toolboxes and their methods. (#1013)llm promptandllm chatnow automatically re-enable plugin-provided tools when continuing a conversation (-cor--cid). (#1020)- The
--tools-debugoption now pretty-prints JSON tool results for improved readability. (#1083) - New
LLM_TOOLS_DEBUGenvironment variable to permanently enable--tools-debug. (#1045) llm chatsessions now correctly respect default model options configured withllm models set-options. Thanks, André Arko. (#985)- New
--preoption forllm installto allow installing pre-release packages. (#1060) - OpenAI models (
gpt-4o,gpt-4o-mini) now explicitly declare support for tools and vision. (#1037) - The
supports_toolsparameter is now supported inextra-openai-models.yaml. Thanks, Mahesh Hegde . (#1068)