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.8 KB
Raw Blame
[
  {
    "id": "msg-user-1",
    "role": "user",
    "content": "Help me create an async task to write a 400-word short story and save it to Notebook.",
    "parentId": null,
    "createdAt": 1739032787856,
    "updatedAt": 1739032787856
  },
  {
    "id": "msg-assistant-1",
    "role": "assistant",
    "content": "",
    "parentId": "msg-user-1",
    "createdAt": 1739032788546,
    "updatedAt": 1739032805810,
    "model": "gpt-4",
    "provider": "openai",
    "tools": [
      {
        "id": "call_exec_task_1",
        "type": "builtin",
        "apiName": "callSubAgent",
        "arguments": "{\"description\":\"Write 400-word story and save to Notebook\",\"inheritMessages\":true,\"instruction\":\"Write a ~400 word short story, then save it to Notebook.\",\"timeout\":1800000}",
        "identifier": "lobe-agent"
      }
    ],
    "metadata": {
      "tps": 31.55,
      "cost": 0.024045,
      "ttft": 3163,
      "latency": 8774,
      "duration": 5611,
      "totalTokens": 12501,
      "totalInputTokens": 12324,
      "totalOutputTokens": 177
    }
  },
  {
    "id": "msg-tool-1",
    "role": "tool",
    "content": "πŸš€ Triggered async task for execution:\n- Write 400-word story and save to Notebook",
    "parentId": "msg-assistant-1",
    "tool_call_id": "call_exec_task_1",
    "createdAt": 1739032808194,
    "updatedAt": 1739032811207,
    "plugin": {
      "apiName": "callSubAgent",
      "arguments": "{\"description\":\"Write 400-word story and save to Notebook\",\"inheritMessages\":true,\"instruction\":\"Write a ~400 word short story, then save it to Notebook.\",\"timeout\":1800000}",
      "identifier": "lobe-agent",
      "type": "builtin"
    },
    "pluginState": {
      "task": {
        "timeout": 1800000,
        "description": "Write 400-word story and save to Notebook",
        "instruction": "Write a ~400 word short story, then save it to Notebook.",
        "inheritMessages": true
      },
      "type": "execSubAgent",
      "parentMessageId": "msg-tool-1"
    }
  },
  {
    "id": "msg-task-1",
    "role": "task",
    "content": "Once upon a time in a small village nestled between mountains, there lived an old watchmaker...",
    "parentId": "msg-tool-1",
    "createdAt": 1739032814033,
    "updatedAt": 1739032856164,
    "metadata": {
      "taskTitle": "Write 400-word story and save to Notebook",
      "instruction": "Write a ~400 word short story, then save it to Notebook."
    },
    "taskDetail": {
      "duration": 36125,
      "status": "completed",
      "threadId": "thd_story_task",
      "title": "Write 400-word story and save to Notebook",
      "totalCost": 0.014107,
      "totalMessages": 2,
      "totalTokens": 4743,
      "totalToolCalls": 0
    }
  },
  {
    "id": "msg-assistant-2",
    "role": "assistant",
    "content": "",
    "parentId": "msg-tool-1",
    "createdAt": 1739032858762,
    "updatedAt": 1739032876226,
    "model": "gpt-4",
    "provider": "openai",
    "tools": [
      {
        "id": "call_create_doc_1",
        "type": "builtin",
        "apiName": "createDocument",
        "arguments": "{\"content\":\"Once upon a time in a small village...\",\"description\":\"A short story about time and farewell.\",\"title\":\"Eleven Oh Seven\",\"type\":\"article\"}",
        "identifier": "lobe-notebook"
      }
    ],
    "metadata": {
      "tps": 71.96,
      "cost": 0.011641,
      "ttft": 3135,
      "latency": 11112,
      "duration": 7977,
      "totalTokens": 13578,
      "totalInputTokens": 13004,
      "totalOutputTokens": 574
    }
  },
  {
    "id": "msg-tool-2",
    "role": "tool",
    "content": "πŸ“ Document \"Eleven Oh Seven\" created successfully",
    "parentId": "msg-assistant-2",
    "tool_call_id": "call_create_doc_1",
    "createdAt": 1739032879049,
    "updatedAt": 1739032883458,
    "plugin": {
      "apiName": "createDocument",
      "arguments": "{\"content\":\"Once upon a time in a small village...\",\"description\":\"A short story about time and farewell.\",\"title\":\"Eleven Oh Seven\",\"type\":\"article\"}",
      "identifier": "lobe-notebook",
      "type": "builtin"
    },
    "pluginState": {
      "document": {
        "id": "docs_K9OeJoIj6UV82Ac7",
        "title": "Eleven Oh Seven",
        "content": "Once upon a time in a small village...",
        "description": "A short story about time and farewell."
      }
    }
  },
  {
    "id": "msg-assistant-summary",
    "role": "assistant",
    "content": "Async task completed. The story has been written and saved to Notebook as \"Eleven Oh Seven\".",
    "parentId": "msg-tool-2",
    "createdAt": 1739032886810,
    "updatedAt": 1739032898616,
    "model": "gpt-4",
    "provider": "openai",
    "metadata": {
      "tps": 30.55,
      "cost": 0.02389,
      "ttft": 2787,
      "latency": 5209,
      "duration": 2422,
      "totalTokens": 13133,
      "totalInputTokens": 13059,
      "totalOutputTokens": 74
    }
  }
]