Skip to content

Commit 91c4e95

Browse files
committed
Added basic StructuredContent
1 parent c1ae4c9 commit 91c4e95

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
@@ -93,7 +93,7 @@ public static function fromArray(array $data): self
9393
throw new InvalidArgumentException('Provided array must be an array of Content objects.');
9494
}
9595
if ('structured' === $item->type) {
96-
$structuredContent = $item['structured'];
96+
$structuredContent = $item;
9797
continue;
9898
}
9999
$contents[] = match ($item->type ?? null) {

0 commit comments

Comments
 (0)