import { EnrichedPartState, MessagePartRuntime, MessagePartState, PartState } from "@/generated/typeDocs";
{/* AUTO-GENERATED PAGE by scripts/generate-api-reference.mts /}
{/ Do not edit manually. */}
{/* api-reference /}
{/ AUTO-GENERATED by scripts/generate-api-reference.mts /}
{/ Do not edit this block manually. */}
API Reference#
EnrichedPartState#
Enriched part state passed to children render functions.
For tool-call parts, adds toolUI, addResult, and resume.
For data parts, adds dataRendererUI.
The render function is also invoked once with a synthetic empty text part
({ type: "text", text: "", status: { type: "running" } }) when the
assistant message has no parts yet but is in the running state, so a
loading indicator can render. Differentiate this from a real empty text
via part.status?.type === "running" && part.text === "".
<ParametersTable {...EnrichedPartState} />
MessagePartRuntime#
<ParametersTable {...MessagePartRuntime} />
MessagePartState#
<ParametersTable {...MessagePartState} />
PartState#
<ParametersTable {...PartState} />
{/* api-reference */}