DOCSAPI reference

INTERFACE

ComponentToolConfig

Defined in: component-tool.ts:8

Options for ComponentTool.

Properties

Property Type Description Defined in
component Component Component that runs when the tool is called. component-tool.ts:14
description string Description that tells the model when to use the tool. component-tool.ts:12
name string Unique tool name. component-tool.ts:10
parameters? ToolParameters JSON Schema of the arguments. component-tool.ts:16
transformArgs? (args) => unknown Converts tool arguments to component input. Defaults to the identity function. component-tool.ts:18
transformResult? (result) => unknown Converts component output to the tool result. Defaults to the identity function. component-tool.ts:20