Attributes
Members list
Type members
Classlikes
A tool that asks questions of type Q and takes answers of type Ans. Its spec is base with that question declared, so the loop encodes Ask(q) and decodes the answer with these codecs, then calls resume.
A tool that asks questions of type Q and takes answers of type Ans. Its spec is base with that question declared, so the loop encodes Ask(q) and decodes the answer with these codecs, then calls resume.
Attributes
- Supertypes
Value members
Concrete methods
A tool from a spec and a function; it never asks questions.
A tool from a spec and a function; it never asks questions.
Attributes
Adapts a core ToolFunction: the spec takes its name, description and schema (as a SchemaDefinition[ujson.Value] - the type parameter is a phantom), and arguments arrive as raw JSON. Right(json) becomes Success(json), Left(error) an Error with its formatted message. It writes no state and never asks. Its name is not checked here; ToolSet.of refuses an invalid one.
Adapts a core ToolFunction: the spec takes its name, description and schema (as a SchemaDefinition[ujson.Value] - the type parameter is a phantom), and arguments arrive as raw JSON. Right(json) becomes Success(json), Left(error) an Error with its formatted message. It writes no state and never asks. Its name is not checked here; ToolSet.of refuses an invalid one.