This commit is contained in:
seb
2026-10-06 03:30:31 +02:00
parent 0369b4e819
commit d5e58e76e1
15 changed files with 103 additions and 196 deletions

View File

@@ -11,10 +11,7 @@ import * as db from '../db/company.js';
export function createApiSuggestionsOrIssuesTool({ googleAuthId, companyId }) {
return defineTool({
name: 'apisuggestionsorissues',
description:
'Report a missing API endpoint, feature request, bug, or general issue. ' +
'The report is recorded in the company history table for review by the triage agent. ' +
'Provide a clear description of the missing functionality or issue.',
description: 'Report missing API endpoint, feature request, bug, or issue for triage.',
strict: false,
parameters: {
type: 'object',
@@ -23,16 +20,16 @@ export function createApiSuggestionsOrIssuesTool({ googleAuthId, companyId }) {
properties: {
text: {
type: 'string',
description: 'Detailed description of the missing API, bug, or issue.',
description: 'Issue or request details.',
},
type: {
type: 'string',
enum: ['missing_api', 'bug', 'suggestion', 'issue', 'other'],
description: 'Category/type of the report.',
description: 'Report category.',
},
title: {
type: 'string',
description: 'Optional short summary or title.',
description: 'Short summary.',
},
},
},