do not allow agent to ask custom-less questions

This commit is contained in:
Dax Raad
2026-01-13 17:14:12 -05:00
parent 0eb898abcf
commit 0187b6bb72

View File

@@ -6,7 +6,7 @@ import DESCRIPTION from "./question.txt"
export const QuestionTool = Tool.define("question", {
description: DESCRIPTION,
parameters: z.object({
questions: z.array(Question.Info).describe("Questions to ask"),
questions: z.array(Question.Info.omit({ custom: true })).describe("Questions to ask"),
}),
async execute(params, ctx) {
const answers = await Question.ask({