-
Notifications
You must be signed in to change notification settings - Fork 210
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
Copilot declarative Agent Plugin : copilot only takes the first 10 elements #13314
Comments
👋 Hi @moudhafersalhi, Thank you for reporting this issue! We want to let you know that: ⏱️ Our team will personally review your issue ✨ This is an AI-generated initial response It appears that you are encountering an issue where the Copilot declarative agent is only considering the first 10 elements of your JSON response, despite your API returning more results. This is a known issue with how the Copilot declarative agent processes data. Here are some steps and workarounds you can try to resolve this issue: Steps and Workarounds:
Example of Adjusting OpenAPI Specification:If the issue is related to the OpenAPI specification, you might need to adjust it to ensure it supports handling larger datasets: paths:
/consultants:
get:
summary: Get all consultants
responses:
'200':
description: A list of consultants
content:
application/json:
schema:
type: array
items:
type: object
properties:
displayName:
type: string Example of Agent Configuration Adjustment:If the agent configuration is the issue, you might need to dive into the settings to adjust the element processing limit: {
"agent": {
"settings": {
"maxElements": 50 // Adjust this to handle more elements
}
}
} Contact Support:If the above steps do not resolve the issue, it might be best to contact Microsoft support or raise an issue on the Teams Toolkit GitHub repository with detailed information about your setup and the problem. Additional Resources:If you have any specific error codes or additional details, please provide them, and I can further assist you with more targeted solutions.
|
Hi @moudhafersalhi, thanks for raising your issue. We will check this and will get back to you shortly. |
Hi, @moudhafersalhi , |
Hi @SLdragon , thank you but i tried this as well. I tried even asking how many items the copilot received and copilot always answer based on 10 and says it received only 10. |
Thank you @moudhafersalhi for your input. |
Describe the bug
I build 2 different declarative copilot Agent. Both of them use 2 different APIs for 2 different purposes.
When asked about something, copilot makes the correct API call and gets the correct informations(all rows), but when analysing and checking, it takes in consideration only the first 10elements of my JSON Response!
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I expect that Copilot takes in consideration the whole dataset returend by my API
Screenshots
First screenshot. Copilot says we have 10 consutlants in the datavase
Second Screenshot. The API returns 18 consutlants and not only 10
VS Code Extension Information (please complete the following information):
CLI Information (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: