AI Services
Function Calling Frames
Frame types for handling LLM function calls and tool execution in Pipecat
FunctionCallResultFrame
Frame containing the result of an LLM function (tool) call.
Properties
function_name
str
requiredName of the function that was called
tool_call_id
str
requiredUnique identifier for the tool call
arguments
str
requiredArguments passed to the function, typically as JSON string
result
Any
requiredResult returned by the function
run_llm
bool
default: "true"Whether to run the LLM with the function result
FunctionCallInProgressFrame
Frame indicating an ongoing function call.
Properties
function_name
str
requiredName of the function being called
tool_call_id
str
requiredUnique identifier for the tool call
arguments
str
requiredArguments being passed to the function
Usage Examples
Function Call Implementation
Progress Tracking
Pipeline Integration
Frame Flow
Notes
- Function calls are typically initiated by LLM output
- Tool call IDs should be unique per conversation
- Arguments should be valid JSON strings
- Results can be of any type that the LLM can process
- Progress frames help track long-running operations