You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Extracted the content external handler's external request ID formatting into a small unexported helper and added focused tests for the pending-request state key and request ID formats. This keeps the Go internals closer to the .NET handler shape, where request key and external ID construction are dedicated helper operations, without changing behavior.
.NET Reference
dotnet/src/Microsoft.Agents.AI.Workflows/Specialized/AIContentExternalHandler.cs - uses dedicated helpers for pending-request state keys and external request ID formatting.
Public API and Behavior
No public Go API changed. No intentional behavior change was made.
Tests
go test ./internal/contentexthandler
go test ./workflow/agentworkflow
Added preservation tests in internal/contentexthandler/contentexthandler_test.go.
Notes
Rejected sampled candidates:
dotnet/src/Microsoft.Agents.AI.A2A/A2AJsonUtilities.cs - Go's A2A provider shape centers on conversion helpers rather than equivalent serializer options, so no small safe cleanup was apparent.
dotnet/src/Microsoft.Agents.AI.Workflows/Observability/Tags.cs - the Go equivalent has similar constants, but key/name changes would be behavior-sensitive telemetry churn.
dotnet/src/Microsoft.Agents.AI/Skills/File/AgentFileSkillResource.cs - Go already reads file-backed resources through the skill filesystem with no useful narrow structural cleanup found.
This was originally intended as a pull request, but GitHub Actions is not permitted to create or approve pull requests in this repository.
The changes have been pushed to branch dotnet-code-contentext-id-helper-56f6e2b7c8dc06cc.
To fix the permissions issue, go to Settings → Actions → General and enable Allow GitHub Actions to create and approve pull requests. See also: gh-aw FAQ
Summary
Extracted the content external handler's external request ID formatting into a small unexported helper and added focused tests for the pending-request state key and request ID formats. This keeps the Go internals closer to the .NET handler shape, where request key and external ID construction are dedicated helper operations, without changing behavior.
.NET Reference
dotnet/src/Microsoft.Agents.AI.Workflows/Specialized/AIContentExternalHandler.cs- uses dedicated helpers for pending-request state keys and external request ID formatting.Public API and Behavior
No public Go API changed. No intentional behavior change was made.
Tests
go test ./internal/contentexthandlergo test ./workflow/agentworkflowinternal/contentexthandler/contentexthandler_test.go.Notes
Rejected sampled candidates:
dotnet/src/Microsoft.Agents.AI.A2A/A2AJsonUtilities.cs- Go's A2A provider shape centers on conversion helpers rather than equivalent serializer options, so no small safe cleanup was apparent.dotnet/src/Microsoft.Agents.AI.Workflows/Observability/Tags.cs- the Go equivalent has similar constants, but key/name changes would be behavior-sensitive telemetry churn.dotnet/src/Microsoft.Agents.AI/Skills/File/AgentFileSkillResource.cs- Go already reads file-backed resources through the skill filesystem with no useful narrow structural cleanup found.Note
This was originally intended as a pull request, but GitHub Actions is not permitted to create or approve pull requests in this repository.
The changes have been pushed to branch
dotnet-code-contentext-id-helper-56f6e2b7c8dc06cc.Click here to create the pull request
To fix the permissions issue, go to Settings → Actions → General and enable Allow GitHub Actions to create and approve pull requests. See also: gh-aw FAQ
Show patch preview (102 of 102 lines)