Skip to content

AIDK API Reference / aidk-ai-sdk / Assistant

Function: Assistant() ​

ts
function Assistant(props: {
  children?:   | string
     | Element;
  content?: AiSdkContent;
}): Element;

Defined in: packages/adapters/ai-sdk/src/components.tsx:286

AI SDK-style Assistant message component.

Convenience wrapper for assistant messages.

Parameters ​

ParameterType
props{ children?: | string | Element; content?: AiSdkContent; }
props.children?| string | Element
props.content?AiSdkContent

Returns ​

Element

Example ​

tsx
<Assistant>The weather is sunny and 72°F.</Assistant>

Released under the MIT License.