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.

8.1 KB
Raw Blame
{
  "contextTree": [
    {
      "id": "msg-user-1",
      "type": "message"
    },
    {
      "id": "msg-assistant-1",
      "type": "assistantGroup",
      "children": [
        {
          "id": "msg-assistant-1",
          "type": "message",
          "tools": ["msg-tool-1"]
        }
      ]
    },
    {
      "id": "tasks-msg-tool-1-msg-task-llm-msg-task-agents-msg-task-rag",
      "type": "tasks",
      "children": [
        {
          "id": "msg-task-llm",
          "type": "message"
        },
        {
          "id": "msg-task-agents",
          "type": "message"
        },
        {
          "id": "msg-task-rag",
          "type": "message"
        }
      ],
      "messageId": "msg-tool-1"
    },
    {
      "id": "msg-assistant-summary",
      "type": "message"
    }
  ],
  "flatList": [
    {
      "id": "msg-user-1",
      "role": "user",
      "content": "Create three parallel tasks to research AI topics.",
      "parentId": null,
      "createdAt": 1735526559382,
      "updatedAt": 1735526559382
    },
    {
      "id": "msg-assistant-1",
      "role": "assistantGroup",
      "content": "",
      "parentId": "msg-user-1",
      "createdAt": 1735526560163,
      "updatedAt": 1735526585550,
      "model": "gpt-4",
      "provider": "openai",
      "children": [
        {
          "id": "msg-assistant-1",
          "content": "Creating three parallel research tasks.",
          "tools": [
            {
              "id": "call_exec_tasks_1",
              "type": "builtin",
              "apiName": "callSubAgents",
              "arguments": "{\"tasks\": [{\"description\": \"Research LLM architectures\"}, {\"description\": \"Research AI agents\"}, {\"description\": \"Research RAG systems\"}]}",
              "identifier": "lobe-agent",
              "result": {
                "id": "msg-tool-1",
                "content": "Triggered 3 async tasks",
                "state": {
                  "type": "execSubAgents",
                  "tasks": [
                    {
                      "description": "Research LLM architectures"
                    },
                    {
                      "description": "Research AI agents"
                    },
                    {
                      "description": "Research RAG systems"
                    }
                  ],
                  "parentMessageId": "msg-tool-1"
                }
              },
              "result_msg_id": "msg-tool-1"
            }
          ]
        }
      ]
    },
    {
      "id": "tasks-msg-tool-1-msg-task-llm-msg-task-agents-msg-task-rag",
      "role": "tasks",
      "content": "",
      "createdAt": 1735526594643,
      "updatedAt": 1735526800000,
      "extra": {
        "parentMessageId": "msg-tool-1"
      },
      "tasks": [
        {
          "id": "msg-task-llm",
          "role": "task",
          "content": "# LLM Architectures\n\nTransformer-based models dominate...",
          "parentId": "msg-tool-1",
          "createdAt": 1735526594643,
          "updatedAt": 1735526756262,
          "taskDetail": {
            "duration": 120000,
            "status": "completed",
            "threadId": "thd_llm",
            "title": "Research LLM architectures",
            "totalCost": 0.015,
            "totalMessages": 15,
            "totalTokens": 100000
          }
        },
        {
          "id": "msg-task-agents",
          "role": "task",
          "content": "# AI Agents\n\nAutonomous agents using LLMs...",
          "parentId": "msg-tool-1",
          "createdAt": 1735526595647,
          "updatedAt": 1735526792430,
          "taskDetail": {
            "duration": 150000,
            "status": "completed",
            "threadId": "thd_agents",
            "title": "Research AI agents",
            "totalCost": 0.018,
            "totalMessages": 20,
            "totalTokens": 120000
          }
        },
        {
          "id": "msg-task-rag",
          "role": "task",
          "content": "# RAG Systems\n\nRetrieval Augmented Generation combines...",
          "parentId": "msg-tool-1",
          "createdAt": 1735526596000,
          "updatedAt": 1735526800000,
          "taskDetail": {
            "duration": 130000,
            "status": "completed",
            "threadId": "thd_rag",
            "title": "Research RAG systems",
            "totalCost": 0.016,
            "totalMessages": 18,
            "totalTokens": 110000
          }
        }
      ]
    },
    {
      "id": "msg-assistant-summary",
      "role": "assistant",
      "content": "All three research tasks completed successfully. Here's a summary of the findings...",
      "parentId": "msg-tool-1",
      "createdAt": 1735526810000,
      "updatedAt": 1735526820000,
      "model": "gpt-4",
      "provider": "openai"
    }
  ],
  "messageMap": {
    "msg-user-1": {
      "id": "msg-user-1",
      "role": "user",
      "content": "Create three parallel tasks to research AI topics.",
      "parentId": null,
      "createdAt": 1735526559382,
      "updatedAt": 1735526559382
    },
    "msg-assistant-1": {
      "id": "msg-assistant-1",
      "role": "assistant",
      "content": "Creating three parallel research tasks.",
      "parentId": "msg-user-1",
      "createdAt": 1735526560163,
      "updatedAt": 1735526585550,
      "model": "gpt-4",
      "provider": "openai",
      "tools": [
        {
          "id": "call_exec_tasks_1",
          "type": "builtin",
          "apiName": "callSubAgents",
          "arguments": "{\"tasks\": [{\"description\": \"Research LLM architectures\"}, {\"description\": \"Research AI agents\"}, {\"description\": \"Research RAG systems\"}]}",
          "identifier": "lobe-agent"
        }
      ]
    },
    "msg-tool-1": {
      "id": "msg-tool-1",
      "role": "tool",
      "content": "Triggered 3 async tasks",
      "parentId": "msg-assistant-1",
      "tool_call_id": "call_exec_tasks_1",
      "createdAt": 1735526588116,
      "updatedAt": 1735526591337,
      "pluginState": {
        "type": "execSubAgents",
        "tasks": [
          {
            "description": "Research LLM architectures"
          },
          {
            "description": "Research AI agents"
          },
          {
            "description": "Research RAG systems"
          }
        ],
        "parentMessageId": "msg-tool-1"
      }
    },
    "msg-task-llm": {
      "id": "msg-task-llm",
      "role": "task",
      "content": "# LLM Architectures\n\nTransformer-based models dominate...",
      "parentId": "msg-tool-1",
      "createdAt": 1735526594643,
      "updatedAt": 1735526756262,
      "taskDetail": {
        "duration": 120000,
        "status": "completed",
        "threadId": "thd_llm",
        "title": "Research LLM architectures",
        "totalCost": 0.015,
        "totalMessages": 15,
        "totalTokens": 100000
      }
    },
    "msg-task-agents": {
      "id": "msg-task-agents",
      "role": "task",
      "content": "# AI Agents\n\nAutonomous agents using LLMs...",
      "parentId": "msg-tool-1",
      "createdAt": 1735526595647,
      "updatedAt": 1735526792430,
      "taskDetail": {
        "duration": 150000,
        "status": "completed",
        "threadId": "thd_agents",
        "title": "Research AI agents",
        "totalCost": 0.018,
        "totalMessages": 20,
        "totalTokens": 120000
      }
    },
    "msg-task-rag": {
      "id": "msg-task-rag",
      "role": "task",
      "content": "# RAG Systems\n\nRetrieval Augmented Generation combines...",
      "parentId": "msg-tool-1",
      "createdAt": 1735526596000,
      "updatedAt": 1735526800000,
      "taskDetail": {
        "duration": 130000,
        "status": "completed",
        "threadId": "thd_rag",
        "title": "Research RAG systems",
        "totalCost": 0.016,
        "totalMessages": 18,
        "totalTokens": 110000
      }
    },
    "msg-assistant-summary": {
      "id": "msg-assistant-summary",
      "role": "assistant",
      "content": "All three research tasks completed successfully. Here's a summary of the findings...",
      "parentId": "msg-tool-1",
      "createdAt": 1735526810000,
      "updatedAt": 1735526820000,
      "model": "gpt-4",
      "provider": "openai"
    }
  }
}