Skip to content

[symbolmap] Record Session.Count and skills caching mappings; add ChatHistoryMemoryProvider assessments - #1308

Merged
Quim Muntal (qmuntal) merged 2 commits into
mainfrom
symbolmap/weekly-maintenance-20261020-ba281b1defd89395
Oct 20, 2026
Merged

Quim Muntal (qmuntal) merged 2 commits into
mainfrom
symbolmap/weekly-maintenance-20261020-ba281b1defd89395

Conversation

@microsoft-agent-framework-for-go

Copy link
Copy Markdown
Contributor

Weekly symbol-mapping maintenance

Reviewed the API-change report (d246604..29b3a1a), the full assessed-mapping catalog, reconcile.json, and the recent-commits patch against the pinned .NET baseline (agent-framework@6a0773ba2180e8036d138dbb9794ae64ec2d978b).

Corrected stale assessments

  • Microsoft.Agents.AI.Abstractions.AgentSessionStateBag.Count — was unmapped ("Session's state map is private and exposes no public key-count accessor"). Go added agent.Session.Count() (agent/session.go:121, covered by TestSessionState_Count_TracksValues). Now mapped.
  • Microsoft.Agents.AI.Skills.Decorators.CachingAgentSkillsSourceOptions (type, CacheIsolationKeySelector, RefreshInterval, constructor) and AgentSkillsProviderBuilder.UseCachingOptions — were unreviewed/unmapped with a stale note claiming "no built-in refresh-interval or cache-isolation-key configuration." Go's agent/skills.ContextProviderOptions added matching CacheIsolationKeySelector and RefreshInterval fields (agent/skills/provider.go), exercised by TestProvider_*CacheIsolationKeySelector* and TestProvider_*RefreshInterval*. Assessed as adapted/mapped.

New assessments (previously unreviewed, now implemented in Go)

  • Microsoft.Agents.AI.Memory.ChatHistoryMemoryProvider (type, StateKeys, Dispose, constructor), its nested State type (and constructor), ChatHistoryMemoryProviderOptions (all properties + SearchBehavior enum), and ChatHistoryMemoryProviderScope (all properties + constructors) — newly inventoried but unassessed .NET declarations. Matched against the agent/memory package added in [dotnet-port-api] Add compaction-backed history provider #1092 (agent/memory/provider.go: HistoryProvider, NewHistoryProvider, State, Config, SearchBehavior, Scope). Verified against pinned .NET source (Memory/ChatHistoryMemoryProvider.cs, ChatHistoryMemoryProviderOptions.cs, ChatHistoryMemoryProviderScope.cs) at the baseline commit — confirmed close behavioral parity (vector-store-backed search/storage, scope-based filtering, on-demand vs. before-invoke search tool). Assessed as mapped/adapted per field, noting Go's *vectordata.Store/error-returning constructor, messagefilter.Filter pointers vs. delegate filters, and pointer-based Scope fields.

Checked, no changes needed

  • agent/harness, agent/harness/filememory, agent/textsearch, agent/skills/fsskills (AgentFileSkillsSourceOptions) packages: already thoroughly assessed in prior PRs ([dotnet-port-api] Add compaction-backed history provider #1092, feat(textsearch): port text search context provider #1286, Add FileMemory storage and editing foundation #1288, Add FileMemory context provider #1290).
  • provider/azureprovider CosmosDB vector-store additions: distinct from CosmosCheckpointStore/CosmosChatHistoryProvider (declared in Microsoft.Agents.AI.CosmosNoSql, outside the catalog's inventoried assemblies) — correctly outside-inventory-scope, left unchanged.
  • New embedding-generator exports (foundryprovider/openaiprovider/otelprovider NewEmbeddingGenerator, EmbeddingGeneratorConfig, NewOpenAIClient, WrapEmbeddingGenerator) have no .NET counterpart in the inventory — Microsoft.Extensions.AI.IEmbeddingGenerator and related types were never extracted (only Microsoft.Agents.AI, .Abstractions, .Workflows assemblies are in scope). No catalog edit is possible without an extraction refresh, which is out of scope for this audit.
  • provider/a2aprovider, provider/anthropicprovider, provider/geminiprovider, provider/openaiprovider (chat/responses), provider/otelprovider (otel.go), agent/harness/toolapproval diffs in the patch: internal bug fixes / instrumentation wiring only, no new or changed exported API surface.
  • internal/modelcall, internal/telemetry, internal/filestore, internal/storepaths: unexported internal packages, out of scope.

Validation

  • go -C _catalog run ./cmd/symbolmap reconcile -summary -check — passes.
  • git diff --check — passes.

Only _catalog/dotnet-go-sdk-symbol-mapping.json is modified. No extraction metadata, declaration keys, test pairs, or unrelated assessments were touched.

Generated by Weekly Symbol Mapping Maintenance · copilot · auto · 520.7 AIC · ⌖ 12 AIC · ⊞ 11.2K · ◷

…ryProvider assessments

Review API-report-driven changes and recent Go commits against the .NET baseline
(agent-framework@6a0773b) for the week's audit:

- Microsoft.Agents.AI.Abstractions.AgentSessionStateBag.Count: now mapped to the
  newly added agent.Session.Count() (agent/session.go).
- Microsoft.Agents.AI.Skills.Decorators.CachingAgentSkillsSourceOptions and its
  CacheIsolationKeySelector/RefreshInterval properties, plus
  AgentSkillsProviderBuilder.UseCachingOptions: assessed as adapted against the
  newly added agent/skills.ContextProviderOptions.CacheIsolationKeySelector and
  .RefreshInterval fields (agent/skills/provider.go), replacing the stale "no
  built-in" note.
- Microsoft.Agents.AI.Memory.ChatHistoryMemoryProvider, its nested State type,
  ChatHistoryMemoryProviderOptions (and SearchBehavior enum), and
  ChatHistoryMemoryProviderScope: newly assessed against the agent/memory
  package added by #1092 (agent/memory/provider.go), confirmed against pinned
  .NET source at the baseline commit.

Verified against agent-framework-go API report (d246604..29b3a1a), reconcile.json,
and pinned .NET source at commit 6a0773ba2180e8036d138dbb9794ae64ec2d978b. New
embedding-generator exports (foundryprovider/openaiprovider/otelprovider) and
CosmosDB vector-store additions remain outside the catalog's inventoried
.NET assemblies (Microsoft.Extensions.AI, Microsoft.Agents.AI.CosmosNoSql) and
are not addressed here. Internal-only changes (toolapproval, a2a, harness
bugfixes) carried no exported API changes.

Validation: go -C _catalog run ./cmd/symbolmap reconcile -summary -check; git diff --check.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions github-actions Bot added the size:large At most 300 changed lines across at most 10 files label Oct 20, 2026
@github-actions

This comment has been minimized.

@github-actions github-actions Bot added the kind:docs Changes documentation or comments label Oct 20, 2026
@qmuntal
Quim Muntal (qmuntal) marked this pull request as ready for review October 20, 2026 09:35
@qmuntal
Quim Muntal (qmuntal) requested a review from a team as a code owner October 20, 2026 09:35
Copilot AI balanced review requested due to automatic review settings October 20, 2026 09:35

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Invalid Go construction examples and an inaccurate constructor error-handling note need correction.

2 open issues
What changed in this PR

Updates the .NET-to-Go symbol catalog to reflect existing Go APIs without changing SDK behavior.

Changes:

  • Maps session state counting and skills caching options.
  • Adds chat-history memory provider, configuration, state, and scope assessments.
  • Documents Go-specific adaptations.
File Description
_catalog/​dotnet-go-sdk-symbol-mapping.json Refreshes API mappings, examples, and adaptation notes.

Review effort: Balanced

"go_symbols": [],
"status": "unmapped",
"unreviewed": true
"go": "agent/skills.ContextProviderOptions{}",
"go": "memory.NewHistoryProvider(store, \"history\", dims, stateInit, memory.Config{})",
"go_symbols": ["agent/memory.HistoryProvider", "agent/memory.NewHistoryProvider"],
"status": "adapted",
"note": "Go returns the provider and an error instead of throwing; it stores through the shared vectordata.Store/Collection abstractions rather than VectorStore/VectorStoreCollection."
@qmuntal
Quim Muntal (qmuntal) added this pull request to the merge queue Oct 20, 2026
@qmuntal
Quim Muntal (qmuntal) removed this pull request from the merge queue due to a manual request Oct 20, 2026
@qmuntal

Copy link
Copy Markdown
Member

Copilot fix PR review comments

Co-authored-by: qmuntal <3747816+qmuntal@users.noreply.github.com>

Copilot AI commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Copilot fix PR review comments

Fixed both review findings in commit 1cc6e1d.

@github-actions

Copy link
Copy Markdown
Contributor

API consistency review

Result Scope
out of scope internal-only

This PR only modifies _catalog/dotnet-go-sdk-symbol-mapping.json, a bookkeeping/documentation artifact used for symbol-mapping tracking between the .NET and Go SDKs. It contains no changes to exported Go APIs, runtime behavior, or examples, so no parity review is needed.

Generated by Go API Consistency Review Agent for #1308 · copilot · auto · 19.4 AIC · ⌖ 7.45 AIC · ⊞ 14K · ◷

@qmuntal
Quim Muntal (qmuntal) added this pull request to the merge queue Oct 20, 2026
Merged via the queue into main with commit 7315daf Oct 20, 2026
28 checks passed
@qmuntal
Quim Muntal (qmuntal) deleted the symbolmap/weekly-maintenance-20261020-ba281b1defd89395 branch October 20, 2026 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind:docs Changes documentation or comments size:large At most 300 changed lines across at most 10 files symbol-mapping

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants