Skip to main content

Crate llmoxide_tools

Crate llmoxide_tools 

Source
Expand description

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.

Structs§

RunConfig
ToolMeta
ToolRegistry
Registry of typed tools, convertible to provider tool schemas.

Traits§

ToolRunner
ToolRunnerStream
Streaming variant: forwards Event::TextDelta and Event::ToolCall while running the tool loop. Inner Event::Completed events from Client::stream are suppressed; a single Event::Completed is emitted for the final assistant response once the loop finishes.
ToolRunnerStreamText
ToolRunnerText

Functions§

tools_stream_debug_enabled
When LLMOXIDE_DEBUG_TOOLS_STREAM is 1, true, or yes, ToolRunnerStream logs diagnostics to stderr (provider, rounds, tool-call counts, response summaries).