agreeable-dream-41746
11/17/2025, 5:34 PMtall-airline-16756
11/17/2025, 5:35 PMtall-airline-16756
11/17/2025, 5:35 PMagreeable-dream-41746
11/17/2025, 5:36 PMtall-airline-16756
11/17/2025, 5:37 PM{
"type": "function",
"name": "get_weather",
"description": "Get weather for a given location.",
"parameters": {
"type": "object",
"properties": {
"location": {
"type": "string",
"description": "City and country e.g. New York"
}
},
"required": [
"location"
]
}
}
1. Tool 2 Dynamically Updates: Then, the agent takes the schema from Tool 1 and uses it to register or update Tool 2 while it’s running. Here’s how it looks:
await activity.update_tools([
function_tool(handler, raw_schema=generated_schema)
])
So, in this process:
• Tool 1 generates the schema dynamically for you.
• The agent reads that schema and updates Tool 2 using the update_tools() method.
• After that, the agent can call Tool 2 with the fresh, updated schema.
If you’d like me to walk you through more details or tailor this to your specific needs, just let me know—I’m here to help!
Sources: Tool definition and use | LiveKit docs | Agent Session Management & Turn Detection | livekit/livekit_composite | Dee... | livekit-plugins/livekit-plugins-aws/livekit/plugins/aws/experimental/realti...agreeable-dream-41746
11/17/2025, 5:38 PMtall-airline-16756
11/17/2025, 5:38 PM{
"temperature": "70°F",
"condition": "Sunny"
}
1. Agent: Takes this JSON and decides to invoke Tool 2.
2. Tool 2: Uses the JSON input to perform further actions, such as storing the data or making another API call.
If you'd like, I’m here to guide you through implementing this flow or chat about your specific use case—just let me know!
Sources: Tool definition and use | LiveKit docs | livekit-plugins/livekit-plugins-aws/livekit/plugins/aws/experimental/realti... | agents/src/voice/generation_tools.test.tsagreeable-dream-41746
11/17/2025, 5:40 PMtall-airline-16756
11/17/2025, 5:40 PM