jbilcke-hf's picture
jbilcke-hf HF Staff
up
f0dc1c3
raw
history blame
484 Bytes
import { Game } from "@/app/games/types"
export const getBase = (game: Game, situation: string = "", actionnable: string = "") => {
const initialPrompt = [...game.getScenePrompt()].join(", ")
const currentPrompt = situation
? [...game.getScenePrompt(situation)].join(", ")
: initialPrompt
const userSituationPrompt = `Player is currently in "${currentPrompt}". Player clicked on the "${actionnable}".`
return { initialPrompt, currentPrompt, userSituationPrompt }
}