- * Example "It is currently 4:56 pm" - * - * @param time Current time - * @return Current time as natural language - */ - public String getTimeAsString(LocalDateTime time) { - DateTimeFormatter formatter = DateTimeFormatter.ofPattern(Config.getConfig().getTimeFormat()); - return "It is currently " + time.format(formatter); - } - - /** - * [World Description] - *
- * Location listing of the world
- *
- * @param list
- * @return
- */
- public String getWorldDescription(List
- * This summary comprises agents’ identity information (e.g., name and
- * personality), as well as a description of their main motivational drivers and
- * statements that describes their current occupation and self-assessment.
- *
- * To save costs it currently filters memories by instanceof
- * {@link Characteristic} for the description
- *
- * @return
- */
- public String getAgentSummaryDescription(Agent person) {
- var prompt = Config.getPrompts().getAgentSummaryDescription();
-
- List
- * Example: chat.send(createAskQuestionPrompt("What do you have planned for
- * tomorrow?")) should return "Tomorrow I plan on..."
- *
- * @param question
- * @return the prompt builder instance
- */
- PromptBuilder createAskQuestionPrompt(String question);
-}
diff --git a/smallville/src/main/java/io/github/nickm980/smallville/prompts/MiniPrompts.java b/smallville/src/main/java/io/github/nickm980/smallville/prompts/MiniPrompts.java
new file mode 100644
index 0000000..37ad045
--- /dev/null
+++ b/smallville/src/main/java/io/github/nickm980/smallville/prompts/MiniPrompts.java
@@ -0,0 +1,63 @@
+package io.github.nickm980.smallville.prompts;
+
+import java.util.HashMap;
+import java.util.Map;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import io.github.nickm980.smallville.config.SmallvilleConfig;
+import io.github.nickm980.smallville.entities.Agent;
+import io.github.nickm980.smallville.entities.memory.Memory;
+import io.github.nickm980.smallville.entities.memory.TemporalMemory;
+
+/**
+ * Creates the prompts used by other prompts and converts objects to natural
+ * language
+ *
+ */
+public class MiniPrompts {
+ private static final Logger LOG = LoggerFactory.getLogger(MiniPrompts.class);
+
+ public String buildAgentSummary(Agent agent) {
+ String prompt = SmallvilleConfig.getPrompts().getAgent().getSummary();
+
+ Map