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