04696eecd7
Here we map our AI actions to the prompt from the JSON file to be able to use them.
30 lines
610 B
JSON
30 lines
610 B
JSON
{
|
|
"prompts": [
|
|
{
|
|
"name": "test-prompt",
|
|
"messages": [
|
|
{
|
|
"role": "system",
|
|
"content": "You are a test assistant."
|
|
},
|
|
{
|
|
"role": "user",
|
|
"content": "INSTRUCTION:\nTest instruction.\n\nTEXT:\n{{input}}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "test-prompt-with-task",
|
|
"messages": [
|
|
{
|
|
"role": "system",
|
|
"content": "You are a test assistant with task."
|
|
},
|
|
{
|
|
"role": "user",
|
|
"content": "INSTRUCTION:\n{{task}}\n\nTEXT:\n{{input}}"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
} |