fix: simplify tool schemas for Gemini compatibility

Replaces Type.Integer with Type.Number and simplifies the sessions_send tool schema to avoid anyOf/oneOf unions that cause 400 errors with Google Cloud Code Assist API.
This commit is contained in:
Keith the Silly Goose
2026-01-10 07:42:32 +13:00
committed by Peter Steinberger
parent f0a909f6dd
commit 423eef4624
4 changed files with 13 additions and 25 deletions

View File

@@ -18,7 +18,7 @@ import {
const SessionsHistoryToolSchema = Type.Object({
sessionKey: Type.String(),
limit: Type.Optional(Type.Integer({ minimum: 1 })),
limit: Type.Optional(Type.Number({ minimum: 1 })),
includeTools: Type.Optional(Type.Boolean()),
});