Merge pull request #370 from koic/fix_exception_reporter_server_context
[Doc] Fix `server_context` description for Exception Reporting
This commit is contained in:
commit
6929d52472
1 changed files with 3 additions and 3 deletions
|
|
@ -453,10 +453,10 @@ The exception reporter receives two arguments:
|
||||||
- `exception`: The Ruby exception object that was raised
|
- `exception`: The Ruby exception object that was raised
|
||||||
- `server_context`: A hash containing contextual information about where the error occurred
|
- `server_context`: A hash containing contextual information about where the error occurred
|
||||||
|
|
||||||
The server_context hash includes:
|
The `server_context` hash includes:
|
||||||
|
|
||||||
- For tool calls: `{ tool_name: "name", arguments: { ... } }`
|
- For request handling failures: `{ request: { ... } }` (the raw JSON-RPC request hash)
|
||||||
- For general request handling: `{ request: { ... } }`
|
- For notification delivery failures: `{ notification: "tools_list_changed" }` (or the relevant notification name)
|
||||||
|
|
||||||
When an exception occurs:
|
When an exception occurs:
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue