|
| 1 | +{ |
| 2 | + "$schema": "https://aka.ms/json-schemas/copilot/plugin/v2.1/schema.json", |
| 3 | + "schema_version": "v2.1", |
| 4 | + "namespace": "repairs", |
| 5 | + "name_for_human": "da-repairs-oauth${{APP_NAME_SUFFIX}}", |
| 6 | + "description_for_human": "Track your repair records", |
| 7 | + "description_for_model": "Plugin for searching a repair list, you can search by who's assigned to the repair.", |
| 8 | + "functions": [ |
| 9 | + { |
| 10 | + "name": "listRepairs", |
| 11 | + "description": "Returns a list of repairs with their details and images", |
| 12 | + "capabilities": { |
| 13 | + "response_semantics": { |
| 14 | + "data_path": "$.results", |
| 15 | + "properties": { |
| 16 | + "title": "$.title", |
| 17 | + "subtitle": "$.description", |
| 18 | + "url": "$.image" |
| 19 | + }, |
| 20 | + "static_template": { |
| 21 | + "type": "AdaptiveCard", |
| 22 | + "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", |
| 23 | + "version": "1.5", |
| 24 | + "body": [ |
| 25 | + { |
| 26 | + "type": "Container", |
| 27 | + "$data": "${$root}", |
| 28 | + "items": [ |
| 29 | + { |
| 30 | + "type": "TextBlock", |
| 31 | + "text": "id: ${if(id, id, 'N/A')}", |
| 32 | + "wrap": true |
| 33 | + }, |
| 34 | + { |
| 35 | + "type": "TextBlock", |
| 36 | + "text": "title: ${if(title, title, 'N/A')}", |
| 37 | + "wrap": true |
| 38 | + }, |
| 39 | + { |
| 40 | + "type": "TextBlock", |
| 41 | + "text": "description: ${if(description, description, 'N/A')}", |
| 42 | + "wrap": true |
| 43 | + }, |
| 44 | + { |
| 45 | + "type": "TextBlock", |
| 46 | + "text": "assignedTo: ${if(assignedTo, assignedTo, 'N/A')}", |
| 47 | + "wrap": true |
| 48 | + }, |
| 49 | + { |
| 50 | + "type": "TextBlock", |
| 51 | + "text": "date: ${if(date, date, 'N/A')}", |
| 52 | + "wrap": true |
| 53 | + }, |
| 54 | + { |
| 55 | + "type": "Image", |
| 56 | + "url": "${image}", |
| 57 | + "$when": "${image != null}" |
| 58 | + } |
| 59 | + ] |
| 60 | + } |
| 61 | + ] |
| 62 | + } |
| 63 | + } |
| 64 | + } |
| 65 | + } |
| 66 | + ], |
| 67 | + "runtimes": [ |
| 68 | + { |
| 69 | + "type": "OpenApi", |
| 70 | + "auth": { |
| 71 | + "type": "OAuthPluginVault", |
| 72 | + "reference_id": "${{OAUTH2AUTHCODE_CONFIGURATION_ID}}" |
| 73 | + }, |
| 74 | + "spec": { |
| 75 | + "url": "apiSpecificationFile/repair.yml", |
| 76 | + "progress_style": "ShowUsageWithInputAndOutput" |
| 77 | + }, |
| 78 | + "run_for_functions": ["listRepairs"] |
| 79 | + } |
| 80 | + ], |
| 81 | + "capabilities": { |
| 82 | + "localization": {}, |
| 83 | + "conversation_starters": [ |
| 84 | + { |
| 85 | + "text": "List all repairs" |
| 86 | + } |
| 87 | + ] |
| 88 | + } |
| 89 | +} |
0 commit comments