square-agency-82011
06/26/2025, 9:00 PMmessages_with_timestamp = session.history.to_dict(exclude_timestamp=False, exclude_function_call=False)
print('messages_with_timestamp', messages_with_timestamp)
would this not include the tools as part of the history?tall-airline-16756
06/26/2025, 9:00 PMtall-airline-16756
06/26/2025, 9:00 PMexclude_function_call
parameter in the to_dict
method. When this parameter is set to True
, it filters out items of type "function_call" and "function_call_output" from the chat history. If you want to include tool calls in the history, ensure that exclude_function_call
is set to False
when calling to_dict
. This should allow the tool calls to appear in the history as expected.
Sources: GitHub::livekit::agents | livekit-plugins/livekit-plugins-google/livekit/pl...square-agency-82011
06/26/2025, 9:01 PMtall-airline-16756
06/26/2025, 9:01 PMexclude_function_call=False
, things might not work exactly as you expect. It's like the code has its own mind sometimes š
. There could be some internal logic that's quietly changing your setting ā maybe when converting chat contexts for specific providers like Google, the exclude_function_call
might automatically get set to True
. My advice? Take a peek under the hood and double-check the implementation. Make sure no other part of the code is sneaking in and overriding your parameter. It's a bit like detective work, but I'm confident you'll get to the bottom of it! If you need any help tracing this down, just give me a shout. We'll solve this together! šµļøāāļøš¤ Sources: GitHub::livekit::agents | livekit-plugins/livekit-plugins-google/livekit/pl...square-agency-82011
06/26/2025, 9:02 PMtall-airline-16756
06/26/2025, 9:02 PMtall-airline-16756
06/26/2025, 9:02 PM