Problem.
router/router.py resolves provider config lazily but may re-instantiate per request. Provider construction has measurable overhead at high request rates.
Actions.
Acceptance:
provider is constructed once per (agent_id, config) for the lifetime of a run.
Problem.
router/router.py resolves provider config lazily but may re-instantiate per request. Provider construction has measurable overhead at high request rates.
Actions.
(agent_id, provider_config_hash).tests/perf/to lock the improvement in.Acceptance:
provider is constructed once per
(agent_id, config)for the lifetime of a run.