Parallel Thinking

Parallel Thinking (Multiple Concurrent Streams)

For parallel reasoning (e.g., multiple agents/LLM thinking simultaneously), each stream must have a different id

// Agent 1 - Stream A
{
  "data_type": "thinking_start",
  "data_value": "",
  "id": "aaaaaaaa-1111-1111-1111-111111111111"
}
// Agent 2 - Stream B (different ID)
{
  "data_type": "thinking_start",
  "data_value": "",
  "id": "bbbbbbbb-2222-2222-2222-222222222222"
}
// Agent 1 - Stream A continues
{
  "data_type": "thinking",
  "data_value": "Agent 1: Researching smartphone specs...",
  "id": "aaaaaaaa-1111-1111-1111-111111111111"
}
// Agent 2 - Stream B continues
{
  "data_type": "thinking",
  "data_value": "Agent 2: Analyzing camera quality...",
  "id": "bbbbbbbb-2222-2222-2222-222222222222"
}

Database Storage

All thinking events with the same id are merged into a single event

circle-info

⚠️ thinking_start and thinking_end events are filtered out and not saved to the database

Last updated