Add experimental Session Store SDK adapters - #431
Draft
annzhang-db wants to merge 2 commits into
Draft
Conversation
annzhang-db
force-pushed
the
codex/conversations-base-url
branch
2 times, most recently
from
June 5, 2026 01:12
352be3d to
97120ff
Compare
aravind-segu
reviewed
Jun 5, 2026
| @property | ||
| def conversations(self) -> Conversations: | ||
| if not hasattr(self, "_databricks_conversations_client"): | ||
| self._databricks_conversations_client = OpenAI( |
Contributor
There was a problem hiding this comment.
we should use DatabricksOpenAI here right so workspace client authorization flows through?
annzhang-db
force-pushed
the
codex/conversations-base-url
branch
from
June 5, 2026 01:43
97120ff to
8e186a9
Compare
annzhang-db
marked this pull request as draft
August 6, 2026 01:40
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.
Summary
This draft prototypes how third-party agent SDKs can use the proposed Databricks Session Store REST API.
databricks_openai.agents.DatabricksSession, implementing the OpenAI Agents SDKSessionprotocolDatabricksClaudeSessionStore, implementing Claude Agent SDK transcript mirroring, listing, deletion, and subagent transcript discoveryWhy this is a draft
The REST resource names, endpoint prefix, and idempotency contract are still being finalized. The public classes are marked experimental so we can use this branch in Databricks Apps while continuing to make breaking prototype changes.
API design findings
(project_key, session_id, optional subpath); the adapter includes the project hash in the physical Databricks session ID to avoid cross-project collisions.subpathvalues map naturally to child Sessions.How do you know it works?
The new tests cover authenticated request construction, URL encoding, pagination, errors, all event mutations, OpenAI item mapping and protocol conformance, Claude UUID deduplication, project isolation, subagent child sessions, listing, and cascade deletion.