wenjin272 opened a new issue, #1437: URL: https://github.com/apache/flink-agents/issues/1437
### Search before asking - [x] I searched the existing issues. #1328 is the design discussion; #1424 tracks a separate fallback/escalation ordering follow-up. ### Description Track quality-triggered escalation for Java model routing, discussed in https://github.com/apache/flink-agents/discussions/1328 and implemented in #1363. Routing selects a model before it answers, and fallback handles invocation failures. Quality-triggered escalation handles a model that answers successfully but does not satisfy the configured quality checks: discard that answer before dispatching its tool calls and try the next declared tier. ### Delivered in #1363 - Declare ordered tiers, quality signals, and an escalation limit through `Escalation` and `ModelRouter.Builder.escalation(...)`. - Evaluate built-in structural checks and custom or decision-model quality signals. Decision-model signals skip tool-only responses. - Preserve the selected tier across tool calls, with durable quality decisions and routing events, metadata, and metrics. - Separate the Java API-side `ModelRouter` declaration from the plan-side resource, centralize plan validation, and resolve the declaration placeholder before resource instantiation. - Encapsulate model invocation orchestration in `ModelRoutingExecutor`, with separate routing metadata and retry-stat helpers. ### Status and follow-ups The Java implementation was merged in #1363. This issue records the delivered feature retrospectively. - Fallback/escalation ordering, including avoiding repeated calls to a failed tier, is tracked in #1424. - Python's own `ModelRouter` still combines the declaration entry point with the `Resource` implementation. The Python edits in #1363 synchronize the Java router constant and cross-language handling; they do not apply the declaration/resource split to the Python implementation or add Python quality escalation. These remain follow-up work, separate from the Java feature delivered here. #1333 tracks the broader Python routing work. ### Are you willing to submit a PR? Implementation already merged in #1363. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
