buildSidecarThreadMetadata (sidecar/thread.ts)

gitingest_bytedance_deer-flow · frontend/src/core/sidecar/thread.ts · typescript · MIT
chat

Module exposing: buildSidecarThreadMetadata, isSidecarThread, shouldShowInPrimaryThreadLists, SIDECAR_METADATA_KEY

// Source: https://github.com/bytedance/deer-flow | License: MIT | Copyright 2025 Bytedance Ltd. and/or its affiliates
// Provided via justclaw.it.com; keep this notice with the code.
import type { AgentThread } from "@/core/threads";

import { normalizeSidecarContexts, type SidecarContext } from "./context";

export const SIDECAR_METADATA_KEY = "deerflow_sidecar";

export type SidecarThreadMetadata = {
  [SIDECAR_METADATA_KEY]: true;
  parent_thread_id: string;
  sidecar_context_type: SidecarContext["type"];
  sidecar_context_label: string;
  sidecar_context_count: number;
  referenced_message_id?: string;
  referenced_message_ids: string[];
  referenced_message_role: SidecarContext["role"];
  referenced_message_roles: SidecarContext["role"][];
};

export function buildSidecarThreadMetada

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key