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

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

No files matched your search

+4 -2
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 })),
});