CreateAiSessionProps
Interface for creating a chat session between a user and an AI participant. Requires Socket.IO connection to receive AI replies.
Kind: Interface
Package: @ovok/core
Import
import { CreateAiSessionProps } from '@ovok/core';
TypeScript shape
interface CreateAiSessionProps {
assistant: {
system: string;
participant: string;
history: number;
context: string[];
};
title: string;
participant?: string;
messages: {
sender: string;
content: string;
}[];
}
This is a type-level export; it has no call parameters.
Public members
| Member | Type | Details |
|---|---|---|
assistant | { system: string; participant: string; history: number; context: string[]; } | Configuration for the AI assistant |
title | string | Title of the chat session |
participant | string | Optional. The Patient resource reference that represents the user, if not provided, the current user will be used Format: "Patient/{id}" |
messages | { sender: string; content: string; }[] | Initial messages to start the conversation |
Learn the workflow
Continue with Client Configuration for the workflow context and examples.