|
| 1 | +/** |
| 2 | + * This file was auto-generated by Fern from our API Definition. |
| 3 | + */ |
| 4 | + |
| 5 | +import * as Vapi from "../index"; |
| 6 | + |
| 7 | +export interface Chat { |
| 8 | + /** This is the assistant that will be used for the chat. To use an existing assistant, use `assistantId` instead. */ |
| 9 | + assistantId?: string; |
| 10 | + /** This is the assistant that will be used for the chat. To use an existing assistant, use `assistantId` instead. */ |
| 11 | + assistant?: Vapi.CreateAssistantDto; |
| 12 | + /** This is the name of the chat. This is just for your own reference. */ |
| 13 | + name?: string; |
| 14 | + /** |
| 15 | + * This is the ID of the session that will be used for the chat. |
| 16 | + * Mutually exclusive with previousChatId. |
| 17 | + */ |
| 18 | + sessionId?: string; |
| 19 | + /** Chat input as a string or an array of messages. When using message array, each message requires a role and content. */ |
| 20 | + input?: Vapi.ChatInput; |
| 21 | + /** |
| 22 | + * This is a flag that determines whether the response should be streamed. |
| 23 | + * When true, the response will be sent as chunks of text. |
| 24 | + */ |
| 25 | + stream?: boolean; |
| 26 | + /** |
| 27 | + * This is the ID of the chat that will be used as context for the new chat. |
| 28 | + * The messages from the previous chat will be used as context. |
| 29 | + * Mutually exclusive with sessionId. |
| 30 | + */ |
| 31 | + previousChatId?: string; |
| 32 | + /** This is the unique identifier for the chat. */ |
| 33 | + id: string; |
| 34 | + /** This is the unique identifier for the org that this chat belongs to. */ |
| 35 | + orgId: string; |
| 36 | + /** Array of messages used as context for the chat */ |
| 37 | + messages?: Vapi.ChatMessagesItem[]; |
| 38 | + /** Output messages generated by the system in response to the input */ |
| 39 | + output?: Vapi.ChatOutputItem[]; |
| 40 | + /** This is the ISO 8601 date-time string of when the chat was created. */ |
| 41 | + createdAt: string; |
| 42 | + /** This is the ISO 8601 date-time string of when the chat was last updated. */ |
| 43 | + updatedAt: string; |
| 44 | +} |
0 commit comments