(core): add function_tools_called event#6013
Conversation
| if called_fnc_calls: | ||
| session.emit( | ||
| "function_tools_called", | ||
| FunctionToolsCalledEvent(function_calls=called_fnc_calls), | ||
| ) |
There was a problem hiding this comment.
🚩 FunctionToolsCalledEvent is not forwarded via remote_session transport
The remote_session.py registers handlers for function_tools_executed at livekit-agents/livekit/agents/voice/remote_session.py:374 to forward it over the protobuf transport, but does not register a handler for the new function_tools_called event. This appears intentional since there's no corresponding protobuf message type (AgentSessionEvent.FunctionToolsCalled) defined. If remote consumers (e.g., frontend clients) need to know about tool calls before execution completes, a protobuf message and handler would need to be added in a follow-up.
Was this helpful? React with 👍 or 👎 to provide feedback.
|
I created a separate event for tool started, updated, and reply events #6100 |
No description provided.