Skip to content

Conversation

@melionel
Copy link

@melionel melionel commented Feb 6, 2026

Description

fix agentframework adapter to make sure the output in response complete event not null.

otherwise, it will cause agents service save response failed with exception:
System.ArgumentNullException: Value cannot be null. (Parameter 'source')
at System.Linq.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument)
at System.Linq.Enumerable.Select[TSource,TResult](IEnumerable1 source, Func2 selector)
at Azure.AI.Agents.Services.Storage.V2.Models.Extensions.ToStorageModel(Response apiModel, String projectId, IEnumerable1 inputItemRefs, Dictionary2 extensionData, IReadOnlyDictionary2 additionalMetadata) in /mnt/vss/_work/1/s/src/azureml-api/src/Agents/Services/Storage/V2/Models/Extensions.cs:line 62 at Azure.AI.Agents.Services.ContainerAgents.Core.Managers.ContainerResponseManager.SaveResponseAsync(Response response, AgentId agentId, List1 inputItems, ProjectConnectionString connectionString, String conversationId, CancellationToken cancellationToken, Boolean existing, IReadOnlyDictionary`2 telemetryMetadata) in /mnt/vss/_work/1/s/src/azureml-api/src/Agents/Services/ContainerAgents/Core/Managers/ContainerResponseManager.cs:line 154

All SDK Contribution checklist:

  • The pull request does not introduce [breaking changes]
  • CHANGELOG is updated for new features, bug fixes or other significant changes.
  • I have read the contribution guidelines.

General Guidelines and Best Practices

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

  • Pull request includes test coverage for the included changes.

@github-actions github-actions bot added Community Contribution Community members are working on the issue customer-reported Issues that are reported by GitHub users external to the Azure organization. Hosted Agents sdk/agentserver/* labels Feb 6, 2026
@github-actions
Copy link

github-actions bot commented Feb 6, 2026

Thank you for your contribution @melionel! We will review the pull request and get back to you soon.

@lusu-msft lusu-msft merged commit 6ff3669 into Azure:lusu/agentserver-1110 Feb 6, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Community Contribution Community members are working on the issue customer-reported Issues that are reported by GitHub users external to the Azure organization. Hosted Agents sdk/agentserver/*

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants