Skip to content

[Feat]: add JSON-RPC method to ServerCallContext.state #352

@ehsavoie

Description

@ehsavoie

Is your feature request related to a problem? Please describe.

Improvement

SDK users sometimes need to know which JSON-RPC method is being
processed to adjust their implementation, e.g.:

  • If the method is message/send, they may want to use
    invoke()/run() when calling their LLM API, and
    stream()/run_streamed() for message/stream.

Describe the solution you'd like

Added a method field to ServerCallContext.state, similar to
headers.

Describe alternatives you've considered

No response

Additional context

Added in the python SDK by
a2aproject/a2a-python@d62df7a

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions