more more bug fix in ticket tools

This commit is contained in:
Hesabix 2025-07-26 12:34:04 -07:00
parent 82623c0df8
commit 88bc35d85d

View file

@ -25,17 +25,12 @@ class TicketService
'parameters' => [
'type' => 'object',
'properties' => [
'user_id' => [
'type' => 'string',
'description' => 'The ID of the user whose tickets to retrieve'
],
'status' => [
'type' => 'string',
'description' => 'Filter tickets by status (optional)',
'enum' => ['open', 'closed', 'pending']
'user' => [
'type' => 'object',
'description' => 'The user object'
]
],
'required' => ['user_id']
'required' => ['user']
]
],
[
@ -44,10 +39,10 @@ class TicketService
'parameters' => [
'type' => 'object',
'properties' => [
'ticket_id' => [
'type' => 'string',
'description' => 'Ticket ID (required for updates, omit for new tickets)'
],
'params' => [
'type' => 'object',
'description' => 'The ticket parameters',
'properties' => [
'subject' => [
'type' => 'string',
'description' => 'The subject/title of the ticket'
@ -65,26 +60,28 @@ class TicketService
'type' => 'string',
'description' => 'The department this ticket belongs to',
'enum' => ['technical', 'financial', 'general']
]
],
'attachments' => [
'required' => ['subject', 'message']
],
'files' => [
'type' => 'array',
'description' => 'Array of file attachments',
'items' => [
'type' => 'object',
'properties' => [
'filename' => [
'type' => 'string',
'description' => 'Name of the attached file'
],
'content' => [
'type' => 'string',
'description' => 'Base64 encoded content of the file'
'description' => 'File object'
]
}
]
}
],
'required' => ['subject', 'message', 'priority', 'department']
'user' => [
'type' => 'object',
'description' => 'The user object'
],
'id' => [
'type' => 'string',
'description' => 'Ticket ID (required for updates, omit for new tickets)'
]
],
'required' => ['params', 'files', 'user']
]
],
[
@ -93,16 +90,16 @@ class TicketService
'parameters' => [
'type' => 'object',
'properties' => [
'ticket_id' => [
'id' => [
'type' => 'string',
'description' => 'The unique identifier of the ticket'
],
'include_messages' => [
'type' => 'boolean',
'description' => 'Whether to include the full conversation history'
'user' => [
'type' => 'object',
'description' => 'The user object'
]
],
'required' => ['ticket_id']
'required' => ['id', 'user']
]
]
];