File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 99 * - Sampling requests (mocked LLM response)
1010 *
1111 * Usage:
12- * 1. Start the server: php -S localhost :8000 examples/server/client-communication/server.php
12+ * 1. Start the server: php -S 127.0.0.1 :8000 examples/server/client-communication/server.php
1313 * 2. Run this script: php examples/client/http_client_communication.php
14+ *
15+ * Note: PHP's built-in server works for listing tools, calling tools, and receiving
16+ * progress/logging notifications. However, sampling requires a concurrent-capable server
17+ * (e.g., Symfony CLI, PHP-FPM) since the server must process the client's sampling
18+ * response while the original tool request is still pending.
19+ *
20+ * Eg. symfony serve --passthru=examples/server/client-communication/server.php --no-tls
1421 */
1522
1623declare (strict_types=1 );
You can’t perform that action at this time.
0 commit comments