class

Smith::Tools::Tool

Inherits Reference < Object

Instance methods

description
Source
mutating?
Source
name
Source
parallel?
Source
parameters
Source
run(args : JSON::Any) : String
Source
run_with_media(args : JSON::Any) : Tuple(String, Array(Smith::LLM::ContentBlock)) | Nil

The text result plus the blocks that travel beside it — an image or a PDF a call produced, rather than described.

nil, the default, means this tool only ever answers in text, which is true of every tool but read_file. Returning the pair rather than keeping the blocks on the instance is deliberate: a ParallelTool is shared between fibers, and state on it would belong to whichever call wrote last.

Source
spec
Source