php-sdk/tests/Unit/Schema/Content
Repository files (latest commit first)
Filename Latest commit message Latest commit date
wWzZb 82aac972c1
[Schema][Server] feat: support sampling with tools (#409)
* feat: support sampling with tools

* address sampling tools review feedback

* tighten sampling tools spec compliance

* drop SamplingStopReason enum in favor of open string

The spec leaves stopReason open for provider-specific values, so upcasting
the four known ones to enum cases makes every future enum addition a silent
BC break for string comparisons.

---------

Co-authored-by: Christopher Hertel <mail@christopher-hertel.de>
2026-08-15 03:28:11 +02:00
..
ImageContentTest.php [Capability] Preserve optional content fields in PromptResultFormatter (#406) 2026-08-14 22:47:26 +02:00
PromptMessageTest.php [Schema] Add resource_link content block (#400) 2026-08-14 23:20:56 +02:00
ResourceLinkTest.php [Schema] Add resource_link content block (#400) 2026-08-14 23:20:56 +02:00
SamplingToolContentTest.php [Schema][Server] feat: support sampling with tools (#409) 2026-08-15 03:28:11 +02:00