Packages@robojs/ai
ChatOptions
Interface: ChatOptions
Options controlling a chat invocation.
Examples
const options: ChatOptions = {
model: 'gpt-4o-mini',
showTyping: true
}const options: ChatOptions = {
userId: '123',
voice: {
sessionId: 'abc',
strategy: 'server-vad'
}
}Properties
| Property | Type | Description |
|---|---|---|
conversation? | ConversationInput | Existing conversation context to continue. |
functions? | ChatFunction[] | List of available functions the engine may call. |
model? | string | Preferred model identifier. |
showTyping? | boolean | Toggle for Discord typing indicator. |
temperature? | number | Temperature applied to sampling, when supported. |
threadId? | null | string | Discord thread identifier for context. |
userId? | null | string | Discord user identifier for analytics attribution. |
voice? | VoiceChatOptions | Voice chat configuration enabling hybrid sessions. |
