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,4 +1,5 @@
import { defineTool } from 'libllmorbiter';
import { TOOL_DESCRIPTIONS, TOOL_PARAMETER_DESCRIPTIONS } from './prompts.js';
/**
* Creates the set-user-route tool.
@@ -10,8 +11,7 @@ import { defineTool } from 'libllmorbiter';
export function createSetUserRouteTool({ onRoute } = {}) {
return defineTool({
name: 'set-user-route',
description:
'Navigate the user to a frontend route. Use this when the user says "show me the article" or asks to see, open, or view a specific page or entity (e.g. an article detail page, orders, quotes, deliveries, or customer). Refer to the User Perspective Route Construction Matrix for valid route patterns.',
description: TOOL_DESCRIPTIONS.set_user_route,
strict: false,
parameters: {
type: 'object',
@@ -20,7 +20,7 @@ export function createSetUserRouteTool({ onRoute } = {}) {
properties: {
route: {
type: 'string',
description: 'Target frontend route path according to the Route Construction Matrix (e.g. "/artikel/ART-10042", "/kategorien/elektronik/kabel", "/auftrag/1001").',
description: TOOL_PARAMETER_DESCRIPTIONS.set_user_route.route,
},
},
},