firebase-tools
Version:
Command-Line Interface for Firebase
28 lines (27 loc) • 1.03 kB
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.consult_assistant = void 0;
const zod_1 = require("zod");
const tool_js_1 = require("../../tool.js");
const util_js_1 = require("../../util.js");
const fdcExperience_js_1 = require("../../../gemini/fdcExperience.js");
exports.consult_assistant = (0, tool_js_1.tool)({
name: "consult_assistant",
description: "Send a question to an AI assistant specifically enhanced to answer Firebase questions.",
inputSchema: zod_1.z.object({
prompt: zod_1.z
.string()
.describe("A description of what the user is trying to do or learn with Firebase."),
}),
annotations: {
title: "Consult Firebase Assistant",
readOnlyHint: true,
},
_meta: {
requiresProject: true,
requiresAuth: true,
},
}, async ({ prompt }, { projectId }) => {
const schema = await (0, fdcExperience_js_1.chatWithFirebase)(prompt, projectId);
return (0, util_js_1.toContent)(schema);
});
;