fix: simplify session tool schemas for Gemini compatibility (#599) (thanks @mcinteerj)

This commit is contained in:
Peter Steinberger
2026-01-09 20:17:46 +01:00
parent 423eef4624
commit 0edacd0469
3 changed files with 42 additions and 2 deletions

View File

@@ -32,8 +32,10 @@ import {
const SessionsSendToolSchema = Type.Object({
sessionKey: Type.Optional(Type.String()),
label: Type.Optional(Type.String()),
agentId: Type.Optional(Type.String()),
label: Type.Optional(
Type.String({ minLength: 1, maxLength: SESSION_LABEL_MAX_LENGTH }),
),
agentId: Type.Optional(Type.String({ minLength: 1, maxLength: 64 })),
message: Type.String(),
timeoutSeconds: Type.Optional(Type.Number({ minimum: 0 })),
});