Skip to content

Commit 05d19ab

Browse files
committed
Delete sample tool calculate.
1 parent 685e03f commit 05d19ab

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

src/AiCommand.php

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -95,33 +95,6 @@ private function register_tools( $server, $client ) {
9595
new FileTools( $server );
9696
new URLTools( $server );
9797

98-
$server->register_tool(
99-
[
100-
'name' => 'calculate_total',
101-
'description' => 'Calculates the total price.',
102-
'inputSchema' => [
103-
'type' => 'object',
104-
'properties' => [
105-
'price' => [
106-
'type' => 'integer',
107-
'description' => 'The price of the item.',
108-
],
109-
'quantity' => [
110-
'type' => 'integer',
111-
'description' => 'The quantity of items.',
112-
],
113-
],
114-
'required' => [ 'price', 'quantity' ],
115-
],
116-
'callable' => function ( $params ) {
117-
$price = $params['price'] ?? 0;
118-
$quantity = $params['quantity'] ?? 1;
119-
120-
return $price * $quantity;
121-
},
122-
]
123-
);
124-
12598
$server->register_tool(
12699
[
127100
'name' => 'fetch_wp_community_events',

0 commit comments

Comments
 (0)