Skip to content

Commit 2437849

Browse files
committed
Added basic StructuredContent
1 parent ff2ecb0 commit 2437849

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Schema/Result/CallToolResult.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public static function fromArray(array $data): self
9696
$structuredContent = $item['structured'];
9797
continue;
9898
}
99-
$contents[] = match ($item['type'] ?? null) {
99+
$contents[] = match ($item->type ?? null) {
100100
'text' => TextContent::fromArray($item),
101101
'image' => ImageContent::fromArray($item),
102102
'audio' => AudioContent::fromArray($item),

0 commit comments

Comments
 (0)