-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
133 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
{ | ||
"$schema": "https://developer.microsoft.com/json-schemas/copilot/plugin/v2.1/schema.json", | ||
"schema_version": "v2.1", | ||
"name_for_human": "Random User", | ||
"description_for_human": "A free, open-source API for generating random user data.", | ||
"namespace": "randomuser", | ||
"functions": [ | ||
{ | ||
"name": "get", | ||
"description": "Retrieve randomly generated user data. Required Values: gender (male, female), nat (e.g., us, gb). Optional Values: results (integer, default 1).", | ||
"capabilities": { | ||
"response_semantics": { | ||
"data_path": "$.results", | ||
"properties": { | ||
"title": "$.name.title", | ||
"subtitle": "$.gender" | ||
}, | ||
"static_template": { | ||
"type": "AdaptiveCard", | ||
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json", | ||
"version": "1.5", | ||
"body": [ | ||
{ | ||
"type": "Container", | ||
"$data": "${$root}", | ||
"items": [ | ||
{ | ||
"type": "TextBlock", | ||
"text": "gender: ${if(gender, gender, 'N/A')}", | ||
"wrap": true | ||
}, | ||
{ | ||
"type": "TextBlock", | ||
"text": "name.title: ${if(name.title, name.title, 'N/A')}", | ||
"wrap": true | ||
}, | ||
{ | ||
"type": "TextBlock", | ||
"text": "name.first: ${if(name.first, name.first, 'N/A')}", | ||
"wrap": true | ||
}, | ||
{ | ||
"type": "TextBlock", | ||
"text": "name.last: ${if(name.last, name.last, 'N/A')}", | ||
"wrap": true | ||
}, | ||
{ | ||
"type": "TextBlock", | ||
"text": "location.street.number: ${if(location.street.number, location.street.number, 'N/A')}", | ||
"wrap": true | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
], | ||
"runtimes": [ | ||
{ | ||
"type": "OpenApi", | ||
"auth": { | ||
"type": "None" | ||
}, | ||
"spec": { | ||
"url": "apiSpecificationFile/openapi.yaml" | ||
}, | ||
"run_for_functions": [ | ||
"get" | ||
] | ||
} | ||
], | ||
"capabilities": { | ||
"localization": {}, | ||
"conversation_starters": [ | ||
{ | ||
"text": "Get Random User Data" | ||
} | ||
] | ||
} | ||
} |
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"$schema": "https://developer.microsoft.com/json-schemas/copilot/declarative-agent/v1.0/schema.json", | ||
"version": "v1.0", | ||
"name": "Random User", | ||
"description": "Declarative agent created with Teams Toolkit", | ||
"instructions": "Before calling randomuser_get, make sure that you have the required values provided by the user. Required Values: gender (male, female), nat (e.g., us, gb). Optional Values: results (integer, default 1). If the user has not provided the require values, ask them to provide them. ", | ||
"actions": [ | ||
{ | ||
"id": "action_1", | ||
"file": "ai-plugin.json" | ||
} | ||
] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"$schema": "https://developer.microsoft.com/json-schemas/teams/v1.19/MicrosoftTeams.schema.json", | ||
"manifestVersion": "1.19", | ||
"version": "1.0.0", | ||
"id": "7b0ebc2a-25e8-4f09-8999-2260a9d90d55", | ||
"developer": { | ||
"name": "Teams App, Inc.", | ||
"websiteUrl": "https://www.example.com", | ||
"privacyUrl": "https://www.example.com/privacy", | ||
"termsOfUseUrl": "https://www.example.com/termofuse" | ||
}, | ||
"icons": { | ||
"color": "color.png", | ||
"outline": "outline.png" | ||
}, | ||
"name": { | ||
"short": "Random Userdev", | ||
"full": "Full name for Random User" | ||
}, | ||
"description": { | ||
"short": "Short description for Random User", | ||
"full": "Full description for Random User" | ||
}, | ||
"accentColor": "#FFFFFF", | ||
"copilotAgents": { | ||
"declarativeAgents": [ | ||
{ | ||
"id": "declarativeAgent", | ||
"file": "declarativeAgent.json" | ||
} | ||
] | ||
}, | ||
"permissions": [ | ||
"identity", | ||
"messageTeamMembers" | ||
], | ||
"validDomains": [] | ||
} |