You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1.`message`, which is **required** and accepts a string, an instance of `Content` or an array of `SampleMessage` instances.
68
+
2.`maxTokens`, which defaults to `1000`
69
+
3.`timeout` in seconds, which defaults to `120`
70
+
4.`options` which might include `system_prompt`, `preferences` for model choice, `includeContext`, `temperature`, `stopSequences` and `metadata`
71
+
72
+
[Find more details to sampling payload in the specification.](https://modelcontextprotocol.io/specification/2025-06-18/client/sampling#protocol-messages)
73
+
74
+
## Logging
75
+
76
+
The [Logging](https://modelcontextprotocol.io/specification/2025-06-18/server/utilities/logging) utility enables servers
77
+
to send structured log messages as notifcation to clients:
78
+
79
+
```php
80
+
use Mcp\Schema\Enum\LoggingLevel;
81
+
82
+
$clientGateway->log(LoggingLevel::Warning, 'The end is near.');
83
+
```
84
+
85
+
## Progress
86
+
87
+
With a [Progress](https://modelcontextprotocol.io/specification/2025-06-18/basic/utilities/progress#progress)
88
+
notification a server can update a client while an operation is ongoing:
0 commit comments