Skip to content

Commit

Permalink
Avoid repetition in JSDoc comment
Browse files Browse the repository at this point in the history
  • Loading branch information
unstubbable committed Mar 23, 2024
1 parent bf0e388 commit a92f435
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core/rsc/streamable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ export function render<
/**
* Control how text, function calls, and tool calls are composed into a single UI.
*
* Per default, text, function and tool nodes are wrapped in a React Fragment.
* Per default, the nodes of all three kinds are wrapped in a React Fragment.
*/
compose?: Renderer<{
text: React.ReactNode | undefined;
Expand Down Expand Up @@ -373,6 +373,7 @@ export function render<
// The default text renderer just returns the content as string.
const text = options.text ?? (({ content }: { content: string }) => content);

// The default compose renderer wraps the nodes of all three kinds in a React Fragment.
const compose =
options.compose ??
(({ text, functionCall, toolCalls }) => (
Expand Down

0 comments on commit a92f435

Please sign in to comment.