DOCSAPI reference

INTERFACE

AgentTool

Defined in: packages/components/src/agents/types.ts:66

Tool shape accepted by agents. At run time, a tool must expose invoke(args) (as in @astack-tech/tools) or execute(args).

Properties

Property Type Description Defined in
description string Description that tells the model when to use the tool. packages/components/src/agents/types.ts:70
name string Unique tool name. packages/components/src/agents/types.ts:68
parameters? Record<string, unknown> JSON Schema of the arguments. packages/components/src/agents/types.ts:72