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, ToolError } from 'libllmorbiter';
import { TOOL_DESCRIPTIONS } from './prompts.js';
const DEFAULT_TAX_RATE = 19;
const DEFAULT_PRECISION = 6;
@@ -109,9 +110,7 @@ export function calculatePrice({ net, gross, amount, from, taxRate = DEFAULT_TAX
export function createNetGrossCalcTool() {
return defineTool({
name: 'net_gross_calc',
description:
'Convert between net and gross prices (net to gross, gross to net) with VAT/tax rate (default 19%). ' +
'Computes 2-decimal rounded display values and 6-decimal high-precision net values for API article creation.',
description: TOOL_DESCRIPTIONS.net_gross_calc,
strict: false,
parameters: {
type: 'object',