chat
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { UserList } from '../lists/lists.models';
|
||||
import { ListTemplate } from '../templates/templates.models';
|
||||
|
||||
export type AssistantMessageRole = 'user' | 'assistant';
|
||||
|
||||
@@ -22,8 +23,16 @@ export type AssistantAction =
|
||||
|
||||
export interface AssistantChatRequest {
|
||||
messages: AssistantChatMessage[];
|
||||
context?: AssistantPageContext;
|
||||
}
|
||||
|
||||
export type AssistantPageContext =
|
||||
| { page: 'lists_overview'; route: string }
|
||||
| { page: 'list_detail'; route: string; list: UserList }
|
||||
| { page: 'templates_overview'; route: string }
|
||||
| { page: 'template_detail'; route: string; template: ListTemplate }
|
||||
| { page: 'unknown'; route: string };
|
||||
|
||||
export interface AssistantChatResponse {
|
||||
message: AssistantChatMessage;
|
||||
actions: AssistantAction[];
|
||||
|
||||
Reference in New Issue
Block a user