Skip to content

A modern and easy to use dashboard. 80+ integrations. 20K+ icons built in. Authentication out of the box. No YAML, drag and drop configuration.

458 B
Raw Blame
import { groupPartByType } from "@assistant-ui/react";

/**
 * Keep model reasoning and ordinary tool calls in one trace. Human tools and
 * other standalone tool UIs stay outside the trace so approvals and questions
 * retain the full conversation width.
 */
export const assistantMessageGroupBy = groupPartByType({
  reasoning: ["group-agent-trace", "group-reasoning"],
  "tool-call": ["group-agent-trace", "group-tool"],
  "standalone-tool-call": [],
});