UNPKG

@assistant-ui/react

Version:

Open-source TypeScript/React library for building production-grade AI chat experiences

12 lines • 510 B
import { type McpAppMetadata, type ToolCallMessagePart } from "@assistant-ui/core"; type ToolPartLike = Pick<ToolCallMessagePart, "mcp">; /** * Returns MCP app metadata for a tool-call part that points at a `ui://` * resource. * * Returns `undefined` when the part has no MCP app metadata or the metadata * does not reference an assistant-ui MCP app resource. */ export declare function getMcpAppFromToolPart(part: ToolPartLike): McpAppMetadata | undefined; export {}; //# sourceMappingURL=utils.d.ts.map