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