Skip to content

Skills list function throwing an error #38324

Description

@aneta-kjeldsen

When following code example (JavaScript): https://learn.microsoft.com/en-us/azure/foundry/agents/how-to/tools/skills?pivots=javascript#list-skills, and using NPM package: @azure/ai-projects@2.1.0, I get following error:

Error: result.map is not a function

Seems like the error is coming from this line:

return result.map((item) => {

Seems like, the function should instead return:

return result.data.map((item) => { 
    return skillObjectDeserializer(item);
});

Metadata

Metadata

Labels

AI ProjectsClientThis issue points to a problem in the data-plane of the library.Service AttentionWorkflow: This issue is responsible by Azure service team.customer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions