List Promptmixin Prompts
GET/api/v1/projects/:project_id/prompts
List PromptMixin prompt sets for a project.
Request
Path Parameters
Query Parameters
Cookie Parameters
Responses
- 200
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
Array [
- MOD1
Array [
- MOD1
- MOD1
Array [
Array [
]
- MOD1
]
]
]
The ID of the project.
id
object
The ID of the prompt set.
anyOf
string
The name of the prompt set.
prompts
object[]
required
The prompts.
The key of the prompt in the PromptMixin.
The class of the prompt (PromptTemplate or ChatPromptTemplate).
The type of prompt.
template
object
The template of the prompt.
anyOf
string
message_templates
object
The chat message templates of the prompt.
anyOf
The index of the message in the chat.
annotations
object[]
Retrieval annotations for the message.
base_component
Message role.
Possible values: [system
, user
, assistant
, function
, tool
, chatbot
, model
]
content
object
Text content of the generation
anyOf
string
additional_kwargs
object
Additional arguments passed to the model
base_component
[
{
"project_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"prompts": [
{
"prompt_key": "string",
"prompt_class": "string",
"prompt_type": "string",
"template": "string",
"message_templates": [
null
]
}
]
}
]
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}