SubagentCardProps

Unpublished development API. This package is under development and is not available as a published release.

Borrowed child evidence, an optional card class and an optional app-owned text renderer.

import type { SubagentCardProps } from '@threadplane/react/chat';

Declaration

export interface SubagentCardProps  {
  readonly className?: string;
  readonly renderText?: (message: SubagentMessageInfo) => ReactNode;
  readonly sources?: ToolSourcePlacement;
  readonly subagent: SubagentInfo;
}

Members

className

readonly className?: string;

renderText

Replace literal child text, for example with app-owned Markdown. Keep stable.

readonly renderText?: (message: SubagentMessageInfo) => ReactNode;

sources

Where sources declared by the child's calls appear. Defaults to links under each call. panel shows none here, for a message whose Sources panel lists them; MessageList and Chat do this.

readonly sources?: ToolSourcePlacement;

subagent

readonly subagent: SubagentInfo;