- Enhance InMemorySessionService to utilize the two-call Ollama pattern for session creation and turn submissions, generating narratives and state updates based on provided scenarios. - Introduce OllamaContextBuilder to construct turn contexts for both session initialization and turn continuation. - Add OllamaPrompts class to define system prompts for narrative generation and state extraction. - Implement StateUpdateMapper to handle merging state updates into session responses. - Create unit tests for InMemorySessionService to validate Ollama interactions and ensure correct session state management.
RolePlay
Minimal Quarkus (Java 21) project scaffold for the RolePlay service.
Structure
src/main/java/de/neitzel/roleplay: startup and base packagesrc/main/java/de/neitzel/roleplay/business: business logicsrc/main/java/de/neitzel/roleplay/common: shared utilitiessrc/main/java/de/neitzel/roleplay/data: data accesssrc/main/java/de/neitzel/roleplay/fascade: external facadessrc/main/resources/db/migration: Liquibase changelog location
Build and test
mvn test
Description
Languages
Java
58.3%
TypeScript
30.9%
Mustache
10.6%
HTML
0.2%