Skip to main content

Documentation Index

Fetch the complete documentation index at: https://wb-21fd5541-update-reference-docs-34.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

startTool

startTool(opts): Tool Start a Tool span. Parent resolution (matches the design’s “flat by default, hierarchical if you nest”):
  • If an LLM is active, the Tool nests under it.
  • Otherwise, the Tool is a sibling under the current Turn.
Throws if neither a Turn nor an LLM is active.

Parameters

NameType
optsToolInit

Returns

Tool

Defined in

genai/api.ts:50