Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: a2aproject/a2a-python
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.2.7
Choose a base ref
...
head repository: a2aproject/a2a-python
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.2.8
Choose a head ref
  • 5 commits
  • 24 files changed
  • 4 contributors

Commits on Jun 11, 2025

  1. feat: Add HTTP Headers to ServerCallContext for Improved Handler Acce…

    …ss (#182)
    
    # Description
    
    This PR enhances our A2A framework by adding HTTP headers to the
    `ServerCallContext`, making them accessible via
    `context.state['headers']`. The call context is a key component of our
    request-handling system, designed to provide handlers with
    request-specific information—like user details and additional state—in a
    structured, modular way. This abstraction keeps our handlers clean and
    decoupled from the raw HTTP request.
    
    
    **Why Add Headers to the Context?**
    
    * **Essential Metadata:** HTTP headers carry critical information, such
    as authentication tokens, content types, and custom parameters, that
    handlers often need to process requests correctly. Including headers in
    the context ensures this data is easily accessible.
    * **Architectural Consistency:** We already use the call context to pass
    request-specific data (e.g., `state['auth']`). Adding headers follows
    this established pattern, keeping our design cohesive.
    * **Better Developer Experience:** Without this change, accessing
    headers in handlers requires extra effort, like refactoring or passing
    the full request object. With headers in `context.state['headers']`,
    developers can work more efficiently and with fewer errors.
    
    **Addressing Concerns:**
    
    * **Performance:** Headers are small, and their inclusion in the
    per-request context has a negligible performance impact.
    * **Security:** Headers may include sensitive data (e.g., tokens), but
    the call context already handles similar information securely. Handlers
    should follow existing best practices for data handling.
    
    This change makes our framework more intuitive and developer-friendly. I
    encourage the team to merge this PR to improve handler efficiency and
    maintain a consistent, modular architecture.
    
    - [ ] Follow the [`CONTRIBUTING`
    Guide](https://github.com/google-a2a/a2a-python/blob/main/CONTRIBUTING.md).
    - [ ] Make your Pull Request title in the
    <https://www.conventionalcommits.org/> specification.
    - Important Prefixes for
    [release-please](https://github.com/googleapis/release-please):
    - `fix:` which represents bug fixes, and correlates to a
    [SemVer](https://semver.org/) patch.
    - `feat:` represents a new feature, and correlates to a SemVer minor.
    - `feat!:`, or `fix!:`, `refactor!:`, etc., which represent a breaking
    change (indicated by the `!`) and will result in a SemVer major.
    - [ ] Ensure the tests and linter pass (Run `nox -s format` from the
    repository root to format)
    - [ ] Appropriate docs were updated (if necessary)
    PratikMahajan authored Jun 11, 2025
    Configuration menu
    Copy the full SHA
    d5e5f5f View commit details
    Browse the repository at this point in the history

Commits on Jun 12, 2025

  1. chore(test): Increase test coverage across multiple modules (#169)

    Used jules.google.com to increase Test Coverage.
    holtskinner authored Jun 12, 2025
    Configuration menu
    Copy the full SHA
    ea4559b View commit details
    Browse the repository at this point in the history
  2. fix: Add protobuf==6.31.1 to dependencies (#189)

    Fixes #187 🦕
    Fixes #185
    holtskinner authored Jun 12, 2025
    Configuration menu
    Copy the full SHA
    ae1c31c View commit details
    Browse the repository at this point in the history
  3. feat: Update A2A types from specification 🤖 (#191)

    This PR updates `src/a2a/types.py` based on the latest
    `specification/json/a2a.json` from
    [google-a2a/A2A](a2aproject/A2A@f506881).
    a2a-bot authored Jun 12, 2025
    Configuration menu
    Copy the full SHA
    174230b View commit details
    Browse the repository at this point in the history
  4. chore(main): release 0.2.8 (#183)

    🤖 I have created a release *beep* *boop*
    ---
    
    
    ##
    [0.2.8](v0.2.7...v0.2.8)
    (2025-06-12)
    
    
    ### Features
    
    * Add HTTP Headers to ServerCallContext for Improved Handler Access
    ([#182](#182))
    ([d5e5f5f](d5e5f5f))
    * Update A2A types from specification 🤖
    ([#191](#191))
    ([174230b](174230b))
    
    
    ### Bug Fixes
    
    * Add `protobuf==6.31.1` to dependencies
    ([#189](#189))
    ([ae1c31c](ae1c31c)),
    closes [#185](#185)
    
    ---
    This PR was generated with [Release
    Please](https://github.com/googleapis/release-please). See
    [documentation](https://github.com/googleapis/release-please#release-please).
    
    Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
    release-please[bot] authored Jun 12, 2025
    Configuration menu
    Copy the full SHA
    4767a95 View commit details
    Browse the repository at this point in the history
Loading