Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

4.2 KB
Raw Blame
[
  {
    "id": "msg-101",
    "role": "user",
    "content": "What's the weather like in San Francisco and Beijing today?",
    "parentId": null,
    "createdAt": 1704067200000,
    "updatedAt": 1704067200000
  },
  {
    "id": "msg-102",
    "role": "assistant",
    "content": "Let me check the current weather conditions in both cities for you.",
    "parentId": "msg-101",
    "tools": [
      {
        "id": "tool-sf",
        "identifier": "weather",
        "apiName": "getWeather",
        "arguments": "{\"city\":\"San Francisco\"}",
        "type": "default"
      },
      {
        "id": "tool-bj",
        "identifier": "weather",
        "apiName": "getWeather",
        "arguments": "{\"city\":\"Beijing\"}",
        "type": "default"
      }
    ],
    "createdAt": 1704067202000,
    "updatedAt": 1704067202000,
    "metadata": {
      "totalInputTokens": 28,
      "totalOutputTokens": 45,
      "totalTokens": 73,
      "cost": 0.000219,
      "tps": 48.5,
      "ttft": 245,
      "duration": 928,
      "latency": 1173
    }
  },
  {
    "id": "msg-103",
    "role": "tool",
    "tool_call_id": "tool-sf",
    "content": "{\"location\": \"San Francisco, CA\", \"temperature\": 18, \"conditions\": \"Partly Cloudy\", \"humidity\": 72, \"wind_speed\": 15}",
    "pluginState": {
      "cached": false,
      "executionTime": 234
    },
    "parentId": "msg-102",
    "createdAt": 1704067203000,
    "updatedAt": 1704067203000
  },
  {
    "id": "msg-104",
    "role": "tool",
    "tool_call_id": "tool-bj",
    "content": "{\"location\": \"Beijing, China\", \"temperature\": 12, \"conditions\": \"Clear\", \"humidity\": 45, \"wind_speed\": 8}",
    "pluginState": {
      "cached": false,
      "executionTime": 189
    },
    "parentId": "msg-102",
    "createdAt": 1704067203100,
    "updatedAt": 1704067203100
  },
  {
    "id": "msg-105",
    "role": "assistant",
    "content": "Let me also check the forecast for tomorrow to give you a better comparison.",
    "parentId": "msg-103",
    "tools": [
      {
        "id": "tool-sf-forecast",
        "identifier": "weather",
        "apiName": "getForecast",
        "arguments": "{\"city\":\"San Francisco\",\"days\":1}",
        "type": "default"
      },
      {
        "id": "tool-bj-forecast",
        "identifier": "weather",
        "apiName": "getForecast",
        "arguments": "{\"city\":\"Beijing\",\"days\":1}",
        "type": "default"
      }
    ],
    "createdAt": 1704067205000,
    "updatedAt": 1704067205000,
    "metadata": {
      "totalInputTokens": 156,
      "totalOutputTokens": 42,
      "totalTokens": 198,
      "cost": 0.000594,
      "tps": 48,
      "ttft": 178,
      "duration": 875,
      "latency": 1053,
      "collapsed": true
    }
  },
  {
    "id": "msg-106",
    "role": "tool",
    "tool_call_id": "tool-sf-forecast",
    "content": "{\"location\": \"San Francisco, CA\", \"date\": \"2024-01-02\", \"high\": 20, \"low\": 14, \"conditions\": \"Sunny\"}",
    "pluginState": {
      "cached": false,
      "executionTime": 198
    },
    "parentId": "msg-105",
    "createdAt": 1704067206000,
    "updatedAt": 1704067206000
  },
  {
    "id": "msg-107",
    "role": "tool",
    "tool_call_id": "tool-bj-forecast",
    "content": "{\"location\": \"Beijing, China\", \"date\": \"2024-01-02\", \"high\": 15, \"low\": 8, \"conditions\": \"Partly Cloudy\"}",
    "pluginState": {
      "cached": false,
      "executionTime": 176
    },
    "parentId": "msg-105",
    "createdAt": 1704067206100,
    "updatedAt": 1704067206100
  },
  {
    "id": "msg-108",
    "role": "assistant",
    "content": "Based on both current weather and tomorrow's forecast:\n\n**Today:**\n- San Francisco: 18°C, partly cloudy\n- Beijing: 12°C, clear\n\n**Tomorrow:**\n- San Francisco: High 20°C / Low 14°C, sunny\n- Beijing: High 15°C / Low 8°C, partly cloudy\n\nSan Francisco will have pleasant sunny weather tomorrow with a slight temperature increase. Beijing will see some clouds moving in but will still be cooler overall.",
    "parentId": "msg-106",
    "createdAt": 1704067208000,
    "updatedAt": 1704067208000,
    "metadata": {
      "totalInputTokens": 245,
      "totalOutputTokens": 112,
      "totalTokens": 357,
      "cost": 0.001071,
      "tps": 54,
      "ttft": 165,
      "duration": 2074,
      "latency": 2239
    }
  }
]