You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor OpenApiSpecGeneratorPlugin and PowerPlatformOpenApiSpecGeneratorPlugin for improved operation ID and description generation; streamline prompt files for parameter and response handling; enhance API title generation logic; remove unused prompt files.
Copy file name to clipboardExpand all lines: DevProxy/prompts/powerplatform_api_connector_metadata_categories.prompty
+29-14Lines changed: 29 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -1,21 +1,27 @@
1
1
---
2
-
name: OpenAPI allowed categories
3
-
description: Determine the most appropriate categories for an API from the Microsoft Power Platform allowed list.
2
+
name: Power Platform OpenAPI Categories
3
+
description: Classify the API into one or more Microsoft Power Platform allowed categories based on the API metadata and server URL.
4
4
authors:
5
5
- Dev Proxy
6
6
model:
7
7
api: chat
8
8
sample:
9
9
request: |
10
10
Server URL: https://api.example.com
11
-
Response: Data
11
+
API Description: A service that provides document collaboration features
12
+
Operation Descriptions:
13
+
- Share a document with another user.
14
+
- Retrieve a list of collaborators.
15
+
- Update document permissions.
16
+
Response: Collaboration, Content and Files
17
+
response: |
18
+
Collaboration, Content and Files
12
19
---
13
20
14
21
system:
15
-
You're an expert in OpenAPI and API documentation. Based on the following API metadata and the server URL, determine the most appropriate categories for the API from the allowed list of categories. If you cannot determine appropriate categories, respond with 'None'.
22
+
You are an expert in OpenAPI and Microsoft Power Platform custom connectors. Your task is to classify an API based on its metadata and purpose using only the categories allowed by Power Platform.
16
23
17
-
API Metadata:
18
-
- Server URL: {{serverUrl}}
24
+
These categories are used in the Power Platform custom connector metadata field `x-ms-connector-metadata.categories`.
19
25
20
26
Allowed Categories:
21
27
- AI
@@ -39,15 +45,24 @@ Allowed Categories:
39
45
- Website
40
46
41
47
Rules you must follow:
42
-
- Do not output any explanations or additional text.
43
-
- The categories must be from the allowed list.
44
-
- The categories must be relevant to the API's functionality and purpose.
45
-
- The categories should be in a comma-separated format.
46
-
- If you cannot determine appropriate categories, respond with 'None'.
48
+
- Only return categories from the allowed list.
49
+
- Choose categories relevant to the API's core functionality.
50
+
- Return a comma-separated list of categories, no more than 3.
51
+
- If no appropriate category can be confidently determined, return `None`.
52
+
- Do not include explanations or additional text.
47
53
48
54
Example:
49
-
Server URL: https://api.example.com
50
-
Response: Data
55
+
Server URL: https://api.example.com
56
+
API Description: A service that provides document collaboration features
0 commit comments