Untitled

 avatar
unknown
plain_text
11 days ago
6.0 kB
3
Indexable
{
  "messages": [
    {
      "role": "system",
      "content": "# Instructions\n\n\n\n## Rules\n\n## Rules\n- Never make decisions for the players.\n- Bad things can and should happen, even to good people.\n- Players should not be able to do anything that is impossible or unrealistic in the context of the story.\n- Wrap character dialogue in double quotes.\n- Request rolls when players attempt things that should require a roll, such as sneaking, acrobatics, intimidation, persuasion, stealth, or any other skill that requires a roll.\n\n\n\n## Time\n\n## Time\nCurrent game time is displayed below in the adventure context.\nTo update the time, end your message with a new game time in 24-hour clock format (e.g. \"Time: 12:34:56\").\nTime should progress realistically based on the events and dialogue in the conversation.\n\n\n\n## Players\n\n- pelatho playing as Peter.\n  - Vitals\n    - Health: 100\n    - Stamina: 100\n  - Race & Class: Human Lightsaber Warrior\n  - Bio: Peter is a lightsaber warrior from Earth.\n  - Attributes: STR 10, DEX 10, CON 10, INT 10, WIS 10, CHA 10\n\n- william playing as New Character.\n  - Vitals\n    - Health: 100\n    - Stamina: 100\n  - Race & Class: Human Warrior\n  - Bio: \n  - Attributes: STR 10, DEX 10, CON 10, INT 10, WIS 10, CHA 10\n\n\n\n# Instructions\n\nYou are a Dungeon Master in a text adventure game. Your role is to craft a high-quality, realistic, and mature story with concise, immersive narration that vividly describes settings, emotions, and characters—especially focusing on detailed appearances and mannerisms when introducing new characters.\n\nWhen players ask a question that seems to be OOC (out of character), respond in a friendly and casual way.\n\n\n\n# Adventure Context\n\nTime: 12:0:0\n\n## Summary\n\nNo summary yet.\n\n"
    },
    {
      "role": "system",
      "content": "(( Cue \"Intro\" triggered:\nThe players are part of an expedition to find hospitable homes for settlement and there is an outbreak of an extraterrestrial virus or other form of microorganism. Maybe it came from a recently explored planet that was deemed inhospiable?\n\nFeel free to add a few NPC characters by using ask_character_agent to populate the ship wih a couple of NPCs.\n---\nthis message is hidden from players, and only visible to the DM. ))"
    },
    {
      "role": "assistant",
      "content": "I'll help set up the scene by first creating a couple of NPCs for the expedition using the ask_character_agent tool.",
      "tool_calls": [
        {
          "id": "toolu_01GApM3LuViExmAhQG123Eg7",
          "type": "function",
          "name": "ask_character_agent",
          "function": {
            "name": "ask_character_agent",
            "arguments": "{\"prompt\":\"Create a ship's medical officer for the expedition. Make them experienced, slightly world-weary, but competent. Name: Dr. Elena Rodriguez\"}"
          }
        }
      ]
    },
    {
      "role": "tool",
      "content": "Character Agent: \n\nCharacter Dr. Elena Rodriguez created.",
      "name": null,
      "tool_call_id": "toolu_01GApM3LuViExmAhQG123Eg7"
    }
  ],
  "model": "anthropic/claude-3.5-haiku-20241022:beta",
  "temperature": 0.9,
  "tools": [
    {
      "type": "function",
      "function": {
        "name": "request_roll",
        "description": "Request dice rolls from one or more players (or NPC characters).",
        "parameters": {
          "type": "object",
          "properties": {
            "type": {
              "type": "string",
              "description": "The type of dice roll. One of: attack, damage, perception, intimidation, persuasion, stealth, STR, DEX, CON, INT, WIS, CHA"
            },
            "players": {
              "type": "array",
              "description": "The players to roll request rolls from."
            },
            "with_advantage": {
              "type": "boolean",
              "description": "Whether to roll with advantage."
            },
            "with_disadvantage": {
              "type": "boolean",
              "description": "Whether to roll with disadvantage."
            }
          }
        },
        "required": [
          "type",
          "players"
        ]
      }
    },
    {
      "type": "function",
      "function": {
        "name": "execute_attack",
        "description": "Execute an attack and modify the target's health.",
        "parameters": {
          "type": "object",
          "properties": {
            "attacker": {
              "type": "string",
              "description": "Name of the attacker."
            },
            "target": {
              "type": "string",
              "description": "The target name."
            },
            "damage_roll": {
              "type": "integer",
              "description": "The result of a prior damage roll."
            }
          }
        },
        "required": [
          "attacker",
          "target",
          "damage_roll"
        ]
      }
    },
    {
      "type": "function",
      "function": {
        "name": "ask_character_agent",
        "description": "Ask the Character Agent to create or modify a character. You can specify name, race, class, attributes, bio etc.",
        "parameters": {
          "type": "object",
          "properties": {
            "prompt": {
              "type": "string",
              "description": "The prompt for the Character Agent."
            }
          }
        },
        "required": [
          "prompt"
        ]
      }
    },
    {
      "type": "function",
      "function": {
        "name": "start_combat",
        "description": "Starts a combat phase.",
        "parameters": {
          "type": "object",
          "properties": {
            "characters": {
              "type": "array",
              "description": "Which characters that should participate in the combat phase."
            }
          }
        },
        "required": [
          "characters"
        ]
      }
    }
  ]
}
Editor is loading...
Leave a Comment