PersistentAI API Documentation / @persistent-ai/fireflow-types / toOpenAIFunction
Function: toOpenAIFunction()
toOpenAIFunction(
toolDef,schema?):OpenAIFunctionFormat
Defined in: packages/fireflow-types/src/tool/converters.ts:70
Convert a FireFlowToolDefinition to OpenAI function calling format.
Parameters
toolDef
The FireFlow tool definition
schema?
Optional pre-filtered schema (e.g., from buildLLMInputSchema)
Returns
OpenAI-compatible function tool object