Skip to content

Instantly share code, notes, and snippets.

const { GoogleGenerativeAI } = require('@google/generative-ai');
// Create a simple class to manage conversations between LLM instances
class ConversationSimulator {
constructor(apiKey) {
this.genAI = new GoogleGenerativeAI(apiKey);
this.model = this.genAI.getGenerativeModel({ model: 'gemini-pro' });
this.CONSENSUS_MARKER = '[CONSENSUS]';
}

You are a prompt engineer specializing in crafting instructions for Google Gemini to create AI chatbots. Your goal is to generate clear, concise, and effective instructions for a chatbot that will respond to the following user task:

[[User task]]

Format your response as follows:

  1. AI ROLE:
    • Begin with: "YOU ARE A..."
    • Clearly define the AI's role based on the task (e.g., "YOU ARE A HELPFUL ASSISTANT AI," "YOU ARE A CREATIVE STORYTELLING AI," or "YOU ARE A KNOWLEDGEABLE TUTORING AI").
// LLM: Google Gemini 1.5 Flash
// status: list of all Answer Bot status messages for today (see #teia-answer-bot channel on the Teia Discord server: https://discord.gg/fmNTjfBdyV)
const prompt =
`Act as a Site Reliability Engineer. Consider the following logs from a bot called Answer Bot tracking the technical dependencies for the Teia NFT marketplace. Each dependency relate to the infrastructure, API's and services for running the marketplace as a Web3 app using the Tezos blockchain.
"""
${status}
"""
I am attesting that this GitHub handle norulesJustFeels is linked to the Tezos account tz1XtjZTzEM6EQ3TnUPUQviCD6WfcsZRHXbj for tzprofiles
sig:edsigtjTsmpxS4SAJ9xydEaq2exoi53YTXQWYxTWDRKvJNADCkgp5W16HDdSeFgo6788zMrm9TCqas8gjLd5yR5aNjXKGBSLtA9