OfficeDev / teams-toolkit

Developer tools for building Teams apps
Other
469 stars 195 forks source link

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

Open maisarissi opened 3 weeks ago

maisarissi commented 3 weeks 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.

MuyangAmigo commented 2 weeks ago

Thanks for opening the issue, it has been tracked for next milestone.