Skip to content

Commit 1f0086f

Browse files
committed
Wrap in array
1 parent 80ea175 commit 1f0086f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/MCP/Client.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ static function () {
181181
$function_result = [ $function_result ];
182182
}
183183

184+
$function_result = [ 'result' => $function_result ];
184185
$parts = new Parts();
185186
$parts->add_function_response_part( $part->get_id(),$part->get_name(), $function_result );
186187
$content = new Content( Content_Role::USER, $parts );

0 commit comments

Comments
 (0)