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
The FireFlow tool definition
schema?
Optional pre-filtered schema (e.g., from buildLLMInputSchema)
Returns
Anthropic-compatible tool object