Skip to content

PersistentAI API Documentation / @persistent-ai/fireflow-types / toAnthropicTool

Function: toAnthropicTool()

toAnthropicTool(toolDef, schema?): AnthropicToolFormat

Defined in: packages/fireflow-types/src/tool/converters.ts:47

Convert a FireFlowToolDefinition to Anthropic tool format.

Parameters

toolDef

FireFlowToolDefinition

The FireFlow tool definition

schema?

ToolInputSchema

Optional pre-filtered schema (e.g., from buildLLMInputSchema)

Returns

AnthropicToolFormat

Anthropic-compatible tool object

Licensed under BUSL-1.1