u
This commit is contained in:
@@ -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,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user