-
Notifications
You must be signed in to change notification settings - Fork 304
Closed
Labels
type:bugA broken experienceA broken experience
Description
What are you generating using Kiota, clients or plugins?
Kiota plugin
In what context or format are you using Kiota?
Nuget tool
Client library/SDK language
None
Describe the bug
When generating an API plugin, conversation starters and created and shouldn't.
It creates this:
{
"$schema": "https://developer.microsoft.com/json-schemas/copilot/plugin/v2.1/schema.json",
"schema_version": "v2.1",
"name_for_human": "Usage Insights",
"description_for_human": "Description for Usage Insights",
"description_for_model": "Provides a list of agents with identifiers, version, and status for disambiguation in analytics queries.",
"contact_email": "publisher-email@example.com",
"namespace": "insightsapi",
"capabilities": {
"conversation_starters": [
{
"text": "List all available agents for the current context."
},
{
"text": "Retrieve feedback entries for a specific agent. Op"
},
{
"text": "Retrieve usage metrics for a specific agent/applic"
}
]
},
"functions": [
{
"name": "getAgents",
"description": "List all available agents for the current context.",
"capabilities": {}
},
{
"name": "getFeedback",
"description": "Retrieve feedback entries for a specific agent. Optionally limit to last N days.\nDSAT rate is derived from the filtered subset.",
"capabilities": {}
},
{
"name": "getUsage",
"description": "Retrieve usage metrics for a specific agent/application identifier. If the ID is unavailable,\nuse the listAgents operation to enumerate valid IDs.",
"capabilities": {}
}
],
"runtimes": [
{
"type": "OpenApi",
"auth": {
"type": "None"
},
"spec": {
"url": "insightsapi-openapi.yml"
},
"run_for_functions": [
"getAgents",
"getFeedback",
"getUsage"
]
}
]
}
Expected behavior
{
"$schema": "https://developer.microsoft.com/json-schemas/copilot/plugin/v2.1/schema.json",
"schema_version": "v2.1",
"name_for_human": "Usage Insights",
"description_for_human": "Description for Usage Insights",
"description_for_model": "Provides a list of agents with identifiers, version, and status for disambiguation in analytics queries.",
"contact_email": "publisher-email@example.com",
"namespace": "insightsapi",
"functions": [
{
"name": "getAgents",
"description": "List all available agents for the current context.",
"capabilities": {}
},
{
"name": "getFeedback",
"description": "Retrieve feedback entries for a specific agent. Optionally limit to last N days.\nDSAT rate is derived from the filtered subset.",
"capabilities": {}
},
{
"name": "getUsage",
"description": "Retrieve usage metrics for a specific agent/application identifier. If the ID is unavailable,\nuse the listAgents operation to enumerate valid IDs.",
"capabilities": {}
}
],
"runtimes": [
{
"type": "OpenApi",
"auth": {
"type": "None"
},
"spec": {
"url": "insightsapi-openapi.yml"
},
"run_for_functions": [
"getAgents",
"getFeedback",
"getUsage"
]
}
]
}
How to reproduce
Use any action and generate using ATK.
Open API description file
No response
Kiota Version
1.28
Latest Kiota version known to work for scenario above?(Not required)
No response
Known Workarounds
No response
Configuration
No response
Debug output
Click to expand log
```</details>
### Other information
_No response_
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
type:bugA broken experienceA broken experience
Type
Projects
Status
Done ✔️