Get and build prompt from local JSON file

Here we map our AI actions to the prompt from the JSON file
to be able to use them.
This commit is contained in:
Théo Poizat
2026-01-29 16:27:37 +01:00
committed by Dat H. Pham
parent 11fd808080
commit 04696eecd7
9 changed files with 449 additions and 75 deletions
+30
View File
@@ -0,0 +1,30 @@
{
"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}}"
}
]
}
]
}