silly-baker-11446
08/31/2025, 10:54 PMtall-airline-16756
08/31/2025, 10:54 PMtall-airline-16756
08/31/2025, 10:56 PMexclude_function_call, exclude_empty_message, or exclude_instructions.
2. How can we verify/log what messages are in a ChatContext object?
Great question! You can use the toJSON() method to get a neat JSON view of the context, or simply check out the items property to see the list of chat items directly.
3. How to inspect the complete context being sent to the LLM?
If your LLM library supports it, turning on verbose or debug output is a handy way to log the raw prompt being sent. Another option is to serialize the ChatContext with toJSON() and take a look at the full structure.
4. When adding new messages to a copied ChatContext, does it append to the copied history?
Yes! Any new messages you add will be appended to the copied history, and the original context stays just as it was.
5. How to verify that system and user prompts are included in the final LLM call?
You can check the serialized context or enable verbose/debug output to make sure the system and user messages are part of the final LLM request.
Feel free to reach out if you want me to explain anything further or help with anything else!
Sources: livekit-plugins/livekit-plugins-aws/livekit/plugins/aws/experimental/realti... | complex-agents/medical_office_triage/README.md | Workflows | LiveKit Docs | agents/src/llm/chat_context.test.ts | examples/src/basic_eou.ts