Skip to content

docs: clarify Dapr consistency import in sessions docs#3631

Closed
mshsheikh wants to merge 2 commits into
openai:mainfrom
mshsheikh:patch-64
Closed

docs: clarify Dapr consistency import in sessions docs#3631
mshsheikh wants to merge 2 commits into
openai:mainfrom
mshsheikh:patch-64

Conversation

@mshsheikh

Copy link
Copy Markdown
Contributor
  • Clarify that DAPR_CONSISTENCY_STRONG comes from the Dapr SDK in the Dapr session example notes.

  • This removes ambiguity for readers copying the snippet and makes the example easier to run without guesswork.

- Clarify that `DAPR_CONSISTENCY_STRONG` comes from the Dapr SDK in the Dapr session example notes.

- This removes ambiguity for readers copying the snippet and makes the example easier to run without guesswork.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2346e6f38c

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread docs/sessions/index.md Outdated
- `from_address(...)` creates and owns the Dapr client for you. If your app already manages one, construct `DaprSession(...)` directly with `dapr_client=...`.
- Pass `ttl=...` to let the backing state store expire old session data automatically when the store supports TTL.
- Pass `consistency=DAPR_CONSISTENCY_STRONG` when you need stronger read-after-write guarantees.
- Pass `consistency=DAPR_CONSISTENCY_STRONG` (imported from the Dapr SDK) when you need stronger read-after-write guarantees.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Point readers to the Agents SDK constant

This parenthetical sends users to the wrong package: DAPR_CONSISTENCY_STRONG is defined by the Agents SDK in src/agents/extensions/memory/dapr_session.py and re-exported from agents.extensions.memory, while the nearby snippet imports only DaprSession. When someone adds this option and follows “imported from the Dapr SDK,” they will either leave the name undefined or try an import from dapr that does not provide this Agents-specific constant; please document from agents.extensions.memory import DAPR_CONSISTENCY_STRONG instead.

Useful? React with 👍 / 👎.

- Update the Dapr session notes to point readers to the Agents SDK constant for `DAPR_CONSISTENCY_STRONG`.

- This avoids sending users toward the wrong package and makes the snippet clearer for anyone copying the example into their own code.
@seratch seratch added the wontfix This will not be worked on label Jun 15, 2026
@seratch seratch closed this Jun 15, 2026
@mshsheikh mshsheikh deleted the patch-64 branch June 16, 2026 00:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

wontfix This will not be worked on

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants