Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Requires Ollama and pyperclip

Default model used is Mistral 7b parameter model, however this can be adjusted in observer.py

LLM_Roleplay is a set of curated prompts to assit with roleplaying.

The observer.py script monitors user's clipboard. To interact with the LLM, just copy an input to the clipboard, then it will generate a response back to the clipboard. This allows seemless use while in game.

The agent has set of personas, instructions, and context to choose from.

To construct a custom agent, initialize using the Agent class then set is persona, instruction, and constraint. Use a temp vector to adjust the creativity along each component.

in configure_agent.py are some preset agents to use. Define the agent used in the observer.py file

Set persona and instruction to moderate, and constraint to mild

temps = [1, 1, 0]

agent = Agent(persona="scribe", instruction="rewrite", constraint="length", temps=temps)

This will set the agent to act as a scribe that can rewrite input int he style of a fanasty context. It will try to keep the length to about 2 sentences.

About

LLM_Roleplay s a local LLM-powered roleplaying assistant designed for immersive, lore-driven conversations. Using Ollama and a set of pre-configured persona prompts, players can interact with the AI as if speaking to warriors, scholars, mages, or even legendary figures from fantasy worlds.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages