Merge branch 'main' into main
This commit is contained in:
commit
cd4681351d
1 changed files with 49 additions and 6 deletions
|
|
@ -124,8 +124,8 @@ Notifications follow the JSON-RPC 2.0 specification and use these method names:
|
|||
|
||||
#### Transport Support
|
||||
|
||||
- **HTTP Transport**: Notifications are sent as Server-Sent Events (SSE) to all connected sessions
|
||||
- **Stdio Transport**: Notifications are sent as JSON-RPC 2.0 messages to stdout
|
||||
- **stdio**: Notifications are sent as JSON-RPC 2.0 messages to stdout
|
||||
- **Streamable HTTP**: Notifications are sent as JSON-RPC 2.0 messages over HTTP with streaming (chunked transfer or SSE)
|
||||
|
||||
#### Usage Example
|
||||
|
||||
|
|
@ -456,6 +456,9 @@ Tools can include annotations that provide additional metadata about their behav
|
|||
|
||||
Annotations can be set either through the class definition using the `annotations` class method or when defining a tool using the `define` method.
|
||||
|
||||
> [!NOTE]
|
||||
> This **Tool Annotations** feature is supported starting from `protocol_version: '2025-03-26'`.
|
||||
|
||||
### Tool Output Schemas
|
||||
|
||||
Tools can optionally define an `output_schema` to specify the expected structure of their results. This works similarly to how `input_schema` is defined and can be used in three ways:
|
||||
|
|
|
|||
Loading…
Reference in a new issue