Skip to content
Discussion options

You must be logged in to vote

Setting the result field in a response indicates that the request was successful. I think the usual answer would be to respond to the request with an error instead.

For example, I've seen agents respond to a prompt request with something like:

{"jsonrpc": "2.0", "error": {"code": -32603, "message": "Internal error", "data": {"message": "Expired key"}}, "id": 3}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@axel7083
Comment options

Answer selected by axel7083
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants