Northwind Health runs the lookup_drug_interaction tool as several instances. Agents resolve the tool name to an instance endpoint at runtime by querying a tool registry.
The team has built version 1.1.0 of the tool. It has the same parameters as version 1.0.0 and changes only internal processing.
Requirements:
- Send a fixed percentage of traffic that the team configures (starting at 5%) to the 1.1.0 instance, and raise that percentage gradually.
- Complete the rollout without changing the agent configuration.
Which tool selection approach should you implement?
The requirement is a canary rollout driven by a configured traffic percentage, which is what weighted routing provides: start at a small canary weight such as 5%, monitor, then increase gradually. Resolving the tool through a registry gives runtime indirection from the tool name to an instance endpoint, so instances can be added or replaced without editing the agent. Latency-based and capability-based routing choose instances by performance or version, not by a configured traffic split.
- Not correct: Registry resolution with latency-based routing. Latency-based routing picks the instance with the best recent P95 latency, so the share sent to 1.1.0 depends on measured performance, not on a configured percentage.
- Not correct: Registry resolution with capability-based routing. Capability-based routing filters by minimum version so that requests needing a new feature reach instances that support it. No request here needs a new capability, and this approach does not split traffic by percentage.
- Correct: Registry resolution with weighted routing. Weighted routing distributes traffic by configured percentages for canary rollouts, and resolving through the registry means the agent configuration does not hold the endpoint.
- Not correct: A hardcoded 1.1.0 endpoint in the agent configuration. The module contrasts hardcoding an endpoint in agent configuration with registry resolution. Hardcoding means editing the agent configuration, and it sends all traffic to one endpoint rather than a percentage.