Repository navigation
fix(checkpoint): address review on session TypedDict ownership (#8201) - #1
Merged
FOWEPJF255 merged 1 commit intoSep 11, 2026
Conversation
…wnership - Define AgentSessionDict on AgentSession (to_dict return) so the shape is not duplicated in AgentExecutor; keep AgentSessionCheckpointState as alias. - Include ServiceSessionId mapping in service_session_id. - Type on_checkpoint_restore as AgentExecutorCheckpointState only. - Sync root stub exports (__init__.pyi) with runtime __all__.
5 tasks done
Owner
|
Thanks for the follow-up on the TypedDict ownership review for microsoft#8284 / microsoft#8201. I will review this branch on the fork and fold the changes into the upstream PR so the session payload type lives on |
FOWEPJF255
merged commit Sep 11, 2026
a27cf51
into
FOWEPJF255:feat/agent-executor-checkpoint-typeddict-8201
FOWEPJF255
pushed a commit
that referenced
this pull request
Sep 14, 2026
…wnership (#1) - Define AgentSessionDict on AgentSession (to_dict return) so the shape is not duplicated in AgentExecutor; keep AgentSessionCheckpointState as alias. - Include ServiceSessionId mapping in service_session_id. - Type on_checkpoint_restore as AgentExecutorCheckpointState only. - Sync root stub exports (__init__.pyi) with runtime __all__.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation & Context
Follow-up for microsoft#8284 review threads from @eavanvalkenburg and Copilot.
Description & Review Guide
AgentSessionasAgentSessionDict(to_dict()return type) so AgentExecutor does not maintain a second copy; keepAgentSessionCheckpointStateas an alias for the existing public name.service_session_id: str | ServiceSessionId | None(structured mapping form).on_checkpoint_restore(state: AgentExecutorCheckpointState)without the| dict[str, Any]union.agent_framework/__init__.pyiwith the new root exports.Happy to adjust naming if you prefer exporting only
AgentSessionDict.