refactor(examples): update export structure for audio, chat, default, image, and video components

This commit is contained in:
Fatih Kadir Akın
2025-12-28 18:47:02 +03:00
parent 9d700b015c
commit b643f0b47d
5 changed files with 25 additions and 6 deletions
+5 -1
View File
@@ -61,4 +61,8 @@ const prompt = audio()
.build();
prompt;
export default {
json: prompt.structure,
yaml: prompt.structure,
markdown: prompt.prompt,
};
+5 -1
View File
@@ -21,4 +21,8 @@ const prompt = chat()
.build();
prompt;
export default {
json: prompt.messages,
yaml: prompt.messages,
markdown: prompt.systemPrompt,
};
+5 -2
View File
@@ -17,5 +17,8 @@ const prompt = builder()
// Or use pre-built templates
const translatePrompt = templates.translation("English", "Spanish").build();
// Export the main prompt
prompt;
export default {
json: prompt,
yaml: prompt,
markdown: prompt.content,
};
+5 -1
View File
@@ -77,4 +77,8 @@ const prompt = image()
.build();
prompt;
export default {
json: prompt.structure,
yaml: prompt.structure,
markdown: prompt.prompt,
};
+5 -1
View File
@@ -69,4 +69,8 @@ const prompt = video()
.build();
prompt;
export default {
json: prompt.structure,
yaml: prompt.structure,
markdown: prompt.prompt,
};