feat(cron): add payload.fallbacks for per-job model fallback override (#26120) (#26304)

Co-authored-by: yinghaosang <yinghaosang@users.noreply.github.com>
This commit is contained in:
yinghaosang
2026-03-01 22:11:03 +08:00
committed by GitHub
parent 8c98cf05b2
commit f902697bd5
4 changed files with 305 additions and 1 deletions

View File

@@ -7,6 +7,7 @@ function cronAgentTurnPayloadSchema(params: { message: TSchema }) {
kind: Type.Literal("agentTurn"),
message: params.message,
model: Type.Optional(Type.String()),
fallbacks: Type.Optional(Type.Array(Type.String())),
thinking: Type.Optional(Type.String()),
timeoutSeconds: Type.Optional(Type.Integer({ minimum: 0 })),
allowUnsafeExternalContent: Type.Optional(Type.Boolean()),