Skip to content

.Net Agents - CodeQL Fix #11944

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

Merged
merged 5 commits into from
May 7, 2025
Merged

.Net Agents - CodeQL Fix #11944

merged 5 commits into from
May 7, 2025

Conversation

crickman
Copy link
Contributor

@crickman crickman commented May 7, 2025

Motivation and Context

CodeQL failures:

https://github.com/microsoft/semantic-kernel/actions/runs/14886865134/job/41808680816#step:4:2319

Description

Method calls viewed as ambigious when invoked with empty collection expression "[]":

  1. Agent.InvokeAsync(string, AgentThread?, AgentInvokeOptions?, CancellationToken)'
  2. Agent.InvokeAsync(ICollection<ChatMessageContent>, AgentThread?, AgentInvokeOptions?, CancellationToken)

Passing workflow: https://github.com/microsoft/semantic-kernel/actions/runs/14890743858

Contribution Checklist

@crickman crickman self-assigned this May 7, 2025
@crickman crickman requested a review from a team as a code owner May 7, 2025 17:57
@crickman crickman added the .NET Issue or Pull requests regarding .NET code label May 7, 2025
@crickman crickman added the agents label May 7, 2025
@github-actions github-actions bot changed the title .NET Agents - CodeQL Fix .Net Agents - CodeQL Fix May 7, 2025
@crickman crickman enabled auto-merge May 7, 2025 19:14
@crickman crickman added this pull request to the merge queue May 7, 2025
Merged via the queue into main with commit 38caa2c May 7, 2025
22 checks passed
@crickman crickman deleted the fix-agent-codeql branch May 7, 2025 19:58
@github-project-automation github-project-automation bot moved this to Sprint: Done in Semantic Kernel May 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
agents .NET Issue or Pull requests regarding .NET code
Projects
Status: Sprint: Done
Development

Successfully merging this pull request may close these issues.

3 participants