Last active
February 2, 2025 06:21
-
-
Save vman/49a2a4308d2c10b0b7e488b90ea4c938 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://developer.microsoft.com/json-schemas/copilot/plugin/v2.2/schema.json", | |
"schema_version": "v2.2", | |
"namespace": "repairs", | |
"name_for_human": "MyFirstAgent${{APP_NAME_SUFFIX}}", | |
"description_for_human": "Track your repair records", | |
"description_for_model": "Plugin for searching a repair list, you can search by who's assigned to the repair.", | |
"functions": [ | |
{ | |
"name": "listRepairs", | |
"description": "Returns a list of repairs with their details and images", | |
"capabilities": { | |
"response_semantics": { | |
"data_path": "$.results", | |
"properties": { | |
"title": "$.title", | |
"subtitle": "$.description" | |
}, | |
"static_template": { | |
"type": "AdaptiveCard", | |
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json", | |
"version": "1.5", | |
"body": [ | |
{ | |
"type": "Container", | |
"$data": "${$root}", | |
"items": [ | |
{ | |
"type": "TextBlock", | |
"text": "id: ${if(id, id, 'N/A')}", | |
"wrap": true | |
}, | |
{ | |
"type": "TextBlock", | |
"text": "title: ${if(title, title, 'N/A')}", | |
"wrap": true | |
}, | |
{ | |
"type": "TextBlock", | |
"text": "description: ${if(description, description, 'N/A')}", | |
"wrap": true | |
}, | |
{ | |
"type": "TextBlock", | |
"text": "assignedTo: ${if(assignedTo, assignedTo, 'N/A')}", | |
"wrap": true | |
}, | |
{ | |
"type": "TextBlock", | |
"text": "date: ${if(date, date, 'N/A')}", | |
"wrap": true | |
}, | |
{ | |
"type": "Image", | |
"url": "${image}", | |
"$when": "${image != null}" | |
} | |
] | |
} | |
] | |
} | |
} | |
}, | |
"states": { | |
"reasoning": { | |
"description": "`listRepairs` returns a list of repairs with their details and images", | |
"instructions": [ | |
"When generating an answer based on the list of repairs, do not show any direct links or `Read More` links in the text." | |
] | |
}, | |
"responding": { | |
"description": "`listRepairs` will return 200 Success and the list of repair items. It will return an error otherwise.", | |
"instructions": [ | |
"If no error is returned, show a message to the user that the repairs could not be fetched." | |
] | |
} | |
} | |
} | |
], | |
"runtimes": [ | |
{ | |
"type": "OpenApi", | |
"auth": { | |
"type": "None" | |
}, | |
"spec": { | |
"url": "apiSpecificationFile/repair.yml", | |
"progress_style": "ShowUsageWithInputAndOutput" | |
}, | |
"run_for_functions": ["listRepairs"] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment