We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff2ecb0 commit 2437849Copy full SHA for 2437849
src/Schema/Result/CallToolResult.php
@@ -96,7 +96,7 @@ public static function fromArray(array $data): self
96
$structuredContent = $item['structured'];
97
continue;
98
}
99
- $contents[] = match ($item['type'] ?? null) {
+ $contents[] = match ($item->type ?? null) {
100
'text' => TextContent::fromArray($item),
101
'image' => ImageContent::fromArray($item),
102
'audio' => AudioContent::fromArray($item),
0 commit comments