#tool-calling #stream #runner #callback #anthropic #llmoxide

llmoxide-tools

Tool-calling runner for llmoxide (schemas, dispatch, streaming callbacks)

1 unstable release

Uses new Rust 2024

0.1.0 Apr 21, 2026

#77 in #callback

MIT/Apache

155KB
3.5K SLoC

Typed tools layer built on top of llmoxide.

This crate focuses on:

  • Defining tools with typed args/results.
  • Converting tool definitions into llmoxide::ToolSpec schemas.
  • Executing tool calls returned by providers and sending tool results back.

llmoxide-tools

Tool-calling runner for llmoxide.

This crate provides:

  • A ToolRegistry for registering JSON-schema’d tools (args + return types)
  • A portable tool execution loop:
    • run_with_tools_text
    • run_with_tools_stream_text (streaming Event::TextDelta / Event::ToolCall callbacks)

Example

See crates/llmoxide-tools/examples/add_tool.rs and crates/llmoxide-tools/examples/add_tool_stream.rs in the repository.

Debugging

  • LLMOXIDE_DEBUG_TOOLS_STREAM=1 enables stderr diagnostics for the tool runner.

Dependencies

~4–11MB
~194K SLoC