Skip to content

fix: fix docstrings related to CallContextBuilder args in constructors and make ServerCallContext mandatory in compat folder#907

Merged
sokoliva merged 9 commits intoa2aproject:1.0-devfrom
sokoliva:fix-call-context
Mar 27, 2026
Merged

fix: fix docstrings related to CallContextBuilder args in constructors and make ServerCallContext mandatory in compat folder#907
sokoliva merged 9 commits intoa2aproject:1.0-devfrom
sokoliva:fix-call-context

Conversation

@sokoliva
Copy link
Copy Markdown
Member

@sokoliva sokoliva commented Mar 26, 2026

Changes

  • change docstrings related to CallContextBuilder args in constructors from innaccurate "If None, no ServerCallContext is passed." to accurate "If None the DefaultCallContextBuilder is used."
  • make ServerCallContext mandatory in ‎src/a2a/compat/v0_3/rest_adapter.py

@sokoliva sokoliva requested a review from a team as a code owner March 26, 2026 16:17
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates the documentation and initialization logic for context_builder in JSON-RPC and REST routes to explicitly use DefaultCallContextBuilder when no builder is provided. Feedback was provided regarding redundant logic, as the underlying constructors already handle the default assignment for context_builder, making the explicit coalescing in the route creation functions unnecessary.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 26, 2026

🧪 Code Coverage (vs 1.0-dev)

⬇️ Download Full Report

Base PR Delta
src/a2a/compat/v0_3/rest_adapter.py 50.70% 51.43% 🟢 +0.72%
src/a2a/server/routes/rest_routes.py 77.11% 78.05% 🟢 +0.94%
Total 91.55% 91.57% 🟢 +0.02%

Generated by coverage-comment.yml

@sokoliva sokoliva changed the title docs: fix docstrings related to CallContextBuilder args in constructors fix: fix docstrings related to CallContextBuilder args in constructors and make ServerCallContext mandatory in compat folder Mar 26, 2026
@sokoliva sokoliva merged commit 9cade9b into a2aproject:1.0-dev Mar 27, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants