GenkitG
Genkitโ€ข14mo agoโ€ข
34 replies
sacred-rose

Hello! I am running into a problem but I

Hello! I am running into a problem but I'm not sure if I'm doing something wrong or if there is a bug when using the plugin for OpenAI. I have a multi agent setup. For example a Complaint agent, a Question agent which is both added to the Triage Agent. They are all created with ai.definePrompt and have an input and output. When I then call the triage agent like
const chat = ai.chat(triageAgent);
    await chat.send('The tv is broken.')
it works fine when using Google AI. But when I switch to OpenAI I get the error Invalid schema for function 'complaintAgent': schema must be a JSON Schema of 'type: "object"', got 'type: "None"'. even though I have set a input and output. And when I call the complaint agent directly like
 const chat = ai.chat(complaintAgent);
    await chat.send('The tv is broken.')
it does work ๐Ÿ˜ฆ

edit: I'm using genkit 0.9.3 and genkitx-openai 0.11.0
Was this page helpful?