This commit is contained in:
seb
2026-10-11 12:58:15 +02:00
parent 8262e35e53
commit 1149ffddcb
24 changed files with 575 additions and 261 deletions

View File

@@ -1,5 +1,6 @@
import { defineTool } from 'libllmorbiter';
import * as db from '../db/company.js';
import { TOOL_DESCRIPTIONS, TOOL_PARAMETER_DESCRIPTIONS } from './prompts.js';
/**
* Creates the apisuggestionsorissues tool allowing the agent to report
@@ -11,7 +12,7 @@ import * as db from '../db/company.js';
export function createApiSuggestionsOrIssuesTool({ googleAuthId, companyId }) {
return defineTool({
name: 'apisuggestionsorissues',
description: 'Report missing API endpoint, feature request, bug, or issue for triage.',
description: TOOL_DESCRIPTIONS.apisuggestionsorissues,
strict: false,
parameters: {
type: 'object',
@@ -20,16 +21,16 @@ export function createApiSuggestionsOrIssuesTool({ googleAuthId, companyId }) {
properties: {
text: {
type: 'string',
description: 'Issue or request details.',
description: TOOL_PARAMETER_DESCRIPTIONS.apisuggestionsorissues.text,
},
type: {
type: ['string', 'null'],
enum: ['missing_api', 'bug', 'suggestion', 'issue', 'other', null],
description: 'Report category or null.',
description: TOOL_PARAMETER_DESCRIPTIONS.apisuggestionsorissues.type,
},
title: {
type: ['string', 'null'],
description: 'Short summary or null.',
description: TOOL_PARAMETER_DESCRIPTIONS.apisuggestionsorissues.title,
},
},
},