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 4fbcde6 commit f434586Copy full SHA for f434586
src/MCP/Client.php
@@ -205,6 +205,10 @@ static function () {
205
} elseif ( $part instanceof Function_Call_Part ) {
206
$function_result = $this->{$part->get_name()}( $part->get_args() );
207
208
+ // Capture the function name here
209
+ $function_name = $part->get_name();
210
+ echo "Output generated with the '$function_name' tool:\n"; // Log the function name
211
+
212
// Odd limitation of add_function_response_part().
213
if ( ! is_array( $function_result ) ) {
214
$function_result = [ $function_result ];
0 commit comments