Skip to content

Commit 0fb876c

Browse files
committed
Update sampling.mdx
1 parent 958fadf commit 0fb876c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

docs/specification/draft/client/sampling.mdx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ Clients that support sampling **MUST** declare the `sampling` capability during
9494

9595
<Note>
9696
The `includeContext` parameter values `"thisServer"` and `"allServers"` are
97-
soft-deprecated. Servers **SHOULD** avoid using these values (e.g. can just omit
98-
`includeContext` since it defaults to `"none"`), and **SHOULD NOT** use them
99-
unless the client declares `sampling.context` capability. These values may be
100-
removed in future spec releases.
97+
soft-deprecated. Servers **SHOULD** avoid using these values (e.g. can just
98+
omit `includeContext` since it defaults to `"none"`), and **SHOULD NOT** use
99+
them unless the client declares `sampling.context` capability. These values
100+
may be removed in future spec releases.
101101
</Note>
102102

103103
## Protocol Messages
@@ -606,6 +606,7 @@ it might map the sonnet hint to `gemini-1.5-pro` based on similar capabilities.
606606
## Error Handling
607607

608608
Clients **SHOULD** return errors for common failure cases:
609+
609610
- User rejected sampling request: `-1`
610611
- Tool result missing in request: `-32602` (Invalid params)
611612
- Tool results mixed with other content: `-32602` (Invalid params)

0 commit comments

Comments
 (0)