wooden-smartphone-55787
09/24/2025, 4:22 AMtall-airline-16756
09/24/2025, 4:22 AMtall-airline-16756
09/24/2025, 4:22 AMfunction_tools_executed event doesn’t directly give access to custom properties set in your current agent, like self.light_on. This event mainly reports the results of executed function tools, including details such as function_calls and function_call_outputs, but it doesn’t reveal the agent’s internal state or custom properties.
To work with and access custom properties smoothly, here’s a helpful approach:
• Keep the state as instance variables within your agent class.
• Then, access or update this state inside your tool functions or event handlers by using the agent instance.
If anything feels unclear or you’d like some examples to guide you further, please don’t hesitate to ask—I’m here to help!
Sources: Events and error handling | LiveKit Docs | agents/src/voice/agent_activity.ts | examples/voice_agents/silent_function_call.pywooden-smartphone-55787
09/24/2025, 4:23 AMtall-airline-16756
09/24/2025, 4:23 AMsession._agent can be used to access custom properties of the agent? If that's the case, it would be really helpful if you could share a bit more about your use case or what you're hoping to accomplish. I'm here to help you through this!wooden-smartphone-55787
09/24/2025, 4:24 AMwooden-smartphone-55787
09/24/2025, 4:26 AMwooden-smartphone-55787
09/24/2025, 4:32 AM