fix: send JSONRPCError instead of bare exceptions in streamable HTTP client (#2005)
This commit is contained in:
parent
dda845aa12
commit
7c7c13b648
1 changed files with 148 additions and 130 deletions
|
|
@ -75,7 +75,7 @@ class JSONRPCError(BaseModel):
|
|||
"""A response to a request that indicates an error occurred."""
|
||||
|
||||
jsonrpc: Literal["2.0"]
|
||||
id: str | int
|
||||
id: RequestId
|
||||
error: ErrorData
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue