File tree Expand file tree Collapse file tree 3 files changed +52
-0
lines changed
java/com/sap/ai/sdk/app/controllers Expand file tree Collapse file tree 3 files changed +52
-0
lines changed Original file line number Diff line number Diff line change 5757 <groupId >com.sap.ai.sdk</groupId >
5858 <artifactId >orchestration</artifactId >
5959 </dependency >
60+ <dependency >
61+ <groupId >com.sap.ai.sdk</groupId >
62+ <artifactId >prompt-registry</artifactId >
63+ </dependency >
6064 <dependency >
6165 <groupId >com.sap.cloud.sdk.cloudplatform</groupId >
6266 <artifactId >cloudplatform-core</artifactId >
Original file line number Diff line number Diff line change 1+ package com .sap .ai .sdk .app .controllers ;
2+
3+ import com .sap .ai .sdk .prompt .registry .client .DefaultApi ;
4+ import com .sap .ai .sdk .prompt .registry .model .PromptTemplateListResponse ;
5+ import org .springframework .web .bind .annotation .GetMapping ;
6+ import org .springframework .web .bind .annotation .RequestMapping ;
7+ import org .springframework .web .bind .annotation .RestController ;
8+
9+ /** Endpoint for Prompt Registry operations */
10+ @ SuppressWarnings ("unused" ) // debug class that doesn't need to be tested
11+ @ RestController
12+ @ RequestMapping ("/prompt-registry" )
13+ class PromptRegistryController {
14+ private static final DefaultApi client = new DefaultApi ();
15+
16+ @ GetMapping ("/listTemplates" )
17+ public PromptTemplateListResponse listTemplates () {
18+ return client .listPromptTemplates ();
19+ }
20+ }
Original file line number Diff line number Diff line change @@ -568,6 +568,34 @@ <h5 class="mb-1">Orchestration Integration</h5>
568568 </ div >
569569 </ div >
570570 </ div >
571+
572+ < div class ="col-xl-4 max-width-container ">
573+ < div class ="card endpoint-card ">
574+ < div class ="card-header ">
575+ < h2 > 📚 Prompt Registry</ h2 >
576+ Manage the life cycle of your prompts, from design to runtime.
577+ Can be used in combination with Orchestration.
578+ For more information, check the < a
579+ href ="https://help.sap.com/docs/sap-ai-core/sap-ai-core-service-guide/prompt-registry "
580+ target ="_blank "> Prompt Registry documentation</ a > .
581+ </ div >
582+ < div class ="card-body ">
583+ < ul class ="list-group ">
584+ < li class ="list-group-item ">
585+ < div class ="info-tooltip ">
586+ < button type ="submit " formaction ="/prompt-registry/listTemplates "
587+ class ="link-offset-2-hover link-underline link-underline-opacity-0 link-underline-opacity-75-hover endpoint ">
588+ < code > /prompt-registry/listTemplates</ code >
589+ </ button >
590+ < div class ="tooltip-content ">
591+ List of all templates
592+ </ div >
593+ </ div >
594+ </ li >
595+ </ ul >
596+ </ div >
597+ </ div >
598+ </ div >
571599 </ div >
572600 </ div >
573601
You can’t perform that action at this time.
0 commit comments