fix(hermes): keep router compatible during rollout
Some checks failed
Tests / Declarative: Post Actions failed: 2, passed: 204
Some checks failed
Tests / Declarative: Post Actions failed: 2, passed: 204
This commit is contained in:
parent
f40a6f19bb
commit
86acf97e1b
@ -854,9 +854,16 @@ def register(ctx: Any) -> None:
|
||||
ctx.register_hook(
|
||||
"pre_internal_route", lambda **kwargs: _pre_internal_route(ctx, **kwargs)
|
||||
)
|
||||
ctx.register_hook(
|
||||
"pre_subagent_route", lambda **kwargs: _pre_subagent_route(ctx, **kwargs)
|
||||
)
|
||||
# ConfigMaps can reconcile before the matching immutable image digest. The
|
||||
# older image does not know this hook yet, so retain parent/internal routing
|
||||
# during that short rollout window and enable child routing after image
|
||||
# automation advances the pod.
|
||||
try:
|
||||
ctx.register_hook(
|
||||
"pre_subagent_route", lambda **kwargs: _pre_subagent_route(ctx, **kwargs)
|
||||
)
|
||||
except ValueError:
|
||||
pass
|
||||
ctx.register_hook("post_llm_call", lambda **kwargs: _post_turn_route(ctx, **kwargs))
|
||||
ctx.register_command(
|
||||
"route",
|
||||
|
||||
@ -4,4 +4,3 @@ description: Jetson-assisted provider, model, and reasoning-effort routing for A
|
||||
provides_hooks:
|
||||
- pre_turn_route
|
||||
- pre_internal_route
|
||||
- pre_subagent_route
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user