last bug fix in tonight

This commit is contained in:
Hesabix 2025-07-26 12:46:50 -07:00
parent 88bc35d85d
commit 195e6c0693

View file

@ -18,8 +18,11 @@ class TicketService
*/ */
public function getTools(): array public function getTools(): array
{ {
return [ $tools = [];
[
$tools[] = [
'type' => 'function',
'function' => [
'name' => 'get_user_tickets', 'name' => 'get_user_tickets',
'description' => 'Retrieve a list of tickets for the current user', 'description' => 'Retrieve a list of tickets for the current user',
'parameters' => [ 'parameters' => [
@ -32,8 +35,12 @@ class TicketService
], ],
'required' => ['user'] 'required' => ['user']
] ]
], ]
[ ];
$tools[] = [
'type' => 'function',
'function' => [
'name' => 'create_or_update_ticket', 'name' => 'create_or_update_ticket',
'description' => 'Create a new ticket or update an existing one', 'description' => 'Create a new ticket or update an existing one',
'parameters' => [ 'parameters' => [
@ -83,8 +90,12 @@ class TicketService
], ],
'required' => ['params', 'files', 'user'] 'required' => ['params', 'files', 'user']
] ]
], ]
[ ];
$tools[] = [
'type' => 'function',
'function' => [
'name' => 'get_ticket_details', 'name' => 'get_ticket_details',
'description' => 'Get detailed information about a specific ticket including its conversation history', 'description' => 'Get detailed information about a specific ticket including its conversation history',
'parameters' => [ 'parameters' => [
@ -103,6 +114,8 @@ class TicketService
] ]
] ]
]; ];
return $tools;
} }
/** /**