mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-03-30 05:43:55 +00:00
do not allow agent to ask custom-less questions
This commit is contained in:
parent
bcdaf7e779
commit
0026bc5815
@ -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({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user