last bug fix in tonight
This commit is contained in:
parent
88bc35d85d
commit
195e6c0693
|
@ -18,8 +18,11 @@ class TicketService
|
|||
*/
|
||||
public function getTools(): array
|
||||
{
|
||||
return [
|
||||
[
|
||||
$tools = [];
|
||||
|
||||
$tools[] = [
|
||||
'type' => 'function',
|
||||
'function' => [
|
||||
'name' => 'get_user_tickets',
|
||||
'description' => 'Retrieve a list of tickets for the current user',
|
||||
'parameters' => [
|
||||
|
@ -32,8 +35,12 @@ class TicketService
|
|||
],
|
||||
'required' => ['user']
|
||||
]
|
||||
],
|
||||
[
|
||||
]
|
||||
];
|
||||
|
||||
$tools[] = [
|
||||
'type' => 'function',
|
||||
'function' => [
|
||||
'name' => 'create_or_update_ticket',
|
||||
'description' => 'Create a new ticket or update an existing one',
|
||||
'parameters' => [
|
||||
|
@ -83,8 +90,12 @@ class TicketService
|
|||
],
|
||||
'required' => ['params', 'files', 'user']
|
||||
]
|
||||
],
|
||||
[
|
||||
]
|
||||
];
|
||||
|
||||
$tools[] = [
|
||||
'type' => 'function',
|
||||
'function' => [
|
||||
'name' => 'get_ticket_details',
|
||||
'description' => 'Get detailed information about a specific ticket including its conversation history',
|
||||
'parameters' => [
|
||||
|
@ -103,6 +114,8 @@ class TicketService
|
|||
]
|
||||
]
|
||||
];
|
||||
|
||||
return $tools;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue