Hi, i've changed agent state/user data using RPC c...
# ask-ai
a
Hi, i've changed agent state/user data using RPC calls. But the agent didn't notice that on even know that. How to make agent know what i'm doing? Are I need to call chat context add message function? Or something?
t
Thanks for reaching out, Gamal. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
I'm happy to guide you on how to notify an agent about changes made to agent state or user data using RPC calls. Here's a simple approach you can follow: • You can use
perform_rpc
to send notifications from the agent to clients or other participants. This way, the agent stays informed about any changes. • Also,
register_rpc_method
allows the agent to receive notifications from clients or other participants, helping the agent handle incoming updates smoothly. To make everything work reliably, consider using structured payloads and proper error handling. If you'd like, I’m here to provide more details or examples—just let me know! Sources: avatars/tavus/tavus.py | Web and mobile frontends | LiveKit Docs | Tool definition and use | LiveKit Docs