Chat With Chat App
POST/api/v1/apps/:id/chat
Chat with a chat app.
Request
Path Parameters
id uuidrequired
- application/json
Body
required
Array [
- MOD1
]
messages
object[]
id uuid
ID of the message, if any. a UUID.
role MessageRole (string)required
Message role.
Possible values: [system
, user
, assistant
, function
, tool
, chatbot
, model
]
content Content (string)required
data
object
Additional data to be stored with the message.
anyOf
object
class_name Class Name (string)
Default value:
base_component
Responses
- 200
- 422
Successful Response
- application/json
- Schema
Schema
any
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
msg Message (string)required
type Error Type (string)required
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}