Smith::Tools::Tool
Inherits Reference < Object
Instance methods
description
Sourcemutating?
Sourcename
Sourceparallel?
Sourceparameters
Sourcerun(args : JSON::Any) : String
SourceThe 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.
spec
Source