view mrjunejune/inference/mock_responses.json @ 269:de291f396881

install initial production config Copy the ignored repository config into /etc/mrjunejune on first deployment while preserving existing production configuration on later deploys. Co-authored-by: Copilot <[email protected]>
author MrJuneJune <me@mrjunejune.com>
date Fri, 07 Aug 2026 13:08:10 -0700
parents b401627fc49e
children
line wrap: on
line source

{
  "delay_ms": 55,
  "fallback": "!response",
  "commands": {
    "!hello": {
      "description": "Short greeting with exact chunks.",
      "events": [
        {
          "type": "assistant.delta",
          "delta": "Hello, "
        },
        {
          "type": "assistant.delta",
          "delta": "traveler."
        },
        {
          "type": "assistant.completed",
          "content": "Hello, traveler."
        }
      ]
    },
    "!response": {
      "description": "Long response for typing, wrapping, and scrolling.",
      "events": [
        {
          "type": "assistant.delta",
          "delta": "The neon trail stretches across the terminal while "
        },
        {
          "type": "assistant.delta",
          "delta": "each word arrives through the real Seobeo SSE path. "
        },
        {
          "type": "assistant.delta",
          "delta": "Edit mock_responses.json to change this sequence."
        },
        {
          "type": "assistant.completed",
          "content": "The neon trail stretches across the terminal while each word arrives through the real Seobeo SSE path. Edit mock_responses.json to change this sequence."
        }
      ]
    },
    "!tool": {
      "description": "Example tool lifecycle for future tool-call UI.",
      "events": [
        {
          "type": "tool.started",
          "tool": {
            "id": "mock-tool-1",
            "name": "site_search",
            "arguments": {
              "query": "JRPG design notes"
            }
          }
        },
        {
          "type": "tool.completed",
          "delay_ms": 350,
          "tool": {
            "id": "mock-tool-1",
            "name": "site_search",
            "result": {
              "matches": 3
            }
          }
        },
        {
          "type": "assistant.delta",
          "delta": "The mock search found three matching entries."
        },
        {
          "type": "assistant.completed",
          "content": "The mock search found three matching entries."
        }
      ]
    },
    "!plan": {
      "description": "Example plan event for a future plan-view component.",
      "events": [
        {
          "type": "plan.updated",
          "plan": {
            "title": "Tune the JRPG chat",
            "steps": [
              {
                "id": "layout",
                "label": "Adjust layout",
                "status": "completed"
              },
              {
                "id": "motion",
                "label": "Review stream motion",
                "status": "in_progress"
              },
              {
                "id": "details",
                "label": "Polish tool details",
                "status": "pending"
              }
            ]
          }
        },
        {
          "type": "assistant.delta",
          "delta": "I updated the mock implementation plan."
        },
        {
          "type": "assistant.completed",
          "content": "I updated the mock implementation plan."
        }
      ]
    },
    "!error": {
      "description": "Failed turn treatment.",
      "events": [
        {
          "type": "turn.error",
          "error": {
            "code": "mock_failure",
            "message": "The mock crystal was asked to fail."
          }
        }
      ]
    }
  }
}