Merge pull request #3571 from pipecat-ai/filipi/funcion_call_improvements

Function call improvements
This commit is contained in:
Filipi da Silva Fuchter
2026-01-28 14:03:40 -05:00
committed by GitHub
15 changed files with 73 additions and 83 deletions

View File

@@ -0,0 +1 @@
- Added `function_call_timeout_secs` parameter to `LLMService` to configure timeout for deferred function calls (defaults to 10.0 seconds).

1
changelog/3571.added.md Normal file
View File

@@ -0,0 +1 @@
- Added `result_callback` parameter to `UserImageRequestFrame` to support deferred function call results.

View File

@@ -0,0 +1,4 @@
- ⚠️ Changed function call handling to use timeout-based completion instead of immediate callback execution.
- Function calls that defer their results (e.g., `UserImageRequestFrame`) now use a timeout mechanism
- The `result_callback` is invoked automatically when the deferred operation completes or after timeout
- This change affects examples using `UserImageRequestFrame` - the `result_callback` should now be passed to the frame instead of being called immediately