Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
maisarissi opened this issue Nov 5, 2024 · 1 comment
Assignees
Labels
feature-request The issue is a feature request TA:PM PM investigation area
Milestone

Comments

@maisarissi
Copy link

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

  • Unblock folks that use same adaptive cards across multiples surfaces to easily reuse their existing things with Copilot.
  • Higher maintainability as one doesn't need to worry on updating in all different plugins/projects once they want to update an adaptive card.
  • External adaptive_card.json can take advantage of Adaptive Cards Previewer for building cards which decreases errors related to invalid adaptive cards.

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

@microsoft-github-policy-service microsoft-github-policy-service bot added the needs attention This issue needs the attention of a contributor. label Nov 5, 2024
@adashen adashen added feature-request The issue is a feature request TA:PM PM investigation area and removed needs attention This issue needs the attention of a contributor. labels Nov 7, 2024
@MuyangAmigo
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request The issue is a feature request TA:PM PM investigation area
Projects
None yet
Development

No branches or pull requests

3 participants