ThingsboardClient methods:
com.fasterxml.jackson.databind.JsonNode createChat(@Nonnull Object body) // createChat
void deleteChat(@Nonnull UUID chatId) // deleteChat
com.fasterxml.jackson.databind.JsonNode getChatMessages(@Nonnull UUID chatId) // getChatMessages
com.fasterxml.jackson.databind.JsonNode listChats(@Nonnull ChatType chatType) // listChats
List<Object> sendChatMessage(@Nonnull UUID chatId, @Nonnull String xAuthorization, @Nonnull String body) // sendChatMessage
void updateChat(@Nonnull UUID chatId, @Nonnull Object body) // updateChat
com.fasterxml.jackson.databind.JsonNode createChat(@Nonnull Object body)
POST /api/ai/chats
createChat
| Name | Type | Description | Notes |
|---|---|---|---|
| body | Object |
com.fasterxml.jackson.databind.JsonNode
void deleteChat(@Nonnull UUID chatId)
DELETE /api/ai/chats/{chatId}
deleteChat
| Name | Type | Description | Notes |
|---|---|---|---|
| chatId | UUID |
null (empty response body)
com.fasterxml.jackson.databind.JsonNode getChatMessages(@Nonnull UUID chatId)
GET /api/ai/chats/{chatId}/messages
getChatMessages
| Name | Type | Description | Notes |
|---|---|---|---|
| chatId | UUID |
com.fasterxml.jackson.databind.JsonNode
com.fasterxml.jackson.databind.JsonNode listChats(@Nonnull ChatType chatType)
GET /api/ai/chats/{chatType}
listChats
| Name | Type | Description | Notes |
|---|---|---|---|
| chatType | ChatType | [enum: GENERIC, SOLUTION_BUILDER] |
com.fasterxml.jackson.databind.JsonNode
List<Object> sendChatMessage(@Nonnull UUID chatId, @Nonnull String xAuthorization, @Nonnull String body)
POST /api/ai/chats/{chatId}/messages
sendChatMessage
| Name | Type | Description | Notes |
|---|---|---|---|
| chatId | UUID | ||
| xAuthorization | String | ||
| body | String |
List
void updateChat(@Nonnull UUID chatId, @Nonnull Object body)
PATCH /api/ai/chats/{chatId}
updateChat
| Name | Type | Description | Notes |
|---|---|---|---|
| chatId | UUID | ||
| body | Object |
null (empty response body)