OfficeDev / teams-toolkit

Developer tools for building Teams apps
Other
460 stars 189 forks source link

Support using `import` to add an adaptive card file in an API plugin manifest #12665

Open maisarissi opened 5 hours ago

maisarissi commented 5 hours ago

Today, the adaptive card information is part of the API Plugin manifest file, which allow us to provide to Copilot how we want to Copilot to render the information retrieved from the API. As of today, the adaptive card info needs to be in the API plugin manifest under capabilities>response_semantics.

Proposal

Similar to what we can do with instructions of a declarative agent, we should support using import for json files for adaptive cards in plugins.

"functions": [
    {
        "name": "search_issues_and_pull_requests",
        "description": "Find issues by state and keyword. This method returns up to 100 results [per page](https://docs.gith",
        "capabilities": {
            "response_semantics": {
                "data_path": "$.items",
                "properties": {
                    "title": "$.title",
                    "subtitle": "$.body",
                    "url": "$.url"
                },
                "static_template": "$[file('adaptive-card.json')]"
            }
        }
    }
]

Benefits

We have seen this same feedback coming from different partners and customers.

microsoft-github-policy-service[bot] commented 5 hours ago

Thank you for contacting us! Any issue or feedback from you is quite important to us. We will do our best to fully respond to your issue as soon as possible. Sometimes additional investigations may be needed, we will usually get back to you within 2 days by adding comments to this issue. Please stay tuned.