u
This commit is contained in:
@@ -11,6 +11,7 @@ if the supplier entity does not exist, confirm with the user to create it.
|
|||||||
|
|
||||||
finally call draft_delivery_manifest
|
finally call draft_delivery_manifest
|
||||||
|
|
||||||
|
- attachment: VFS path to the original PDF attachment if any (e.g. from [ATTACHMENT path=...]), else null.
|
||||||
- manifestType: "rechnung" or "lieferschein". For "lieferschein", prices and taxes must be null.
|
- manifestType: "rechnung" or "lieferschein". For "lieferschein", prices and taxes must be null.
|
||||||
- Exclude non-product lines (shipping, handling, packacking, etc.).
|
- Exclude non-product lines (shipping, handling, packacking, etc.).
|
||||||
- Line items: Count, vpe (default: 1), liefArtNr, mwst (7 or 19), and eknetto per Item(euro cents).
|
- Line items: Count, vpe (default: 1), liefArtNr, mwst (7 or 19), and eknetto per Item(euro cents).
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import { TOOL_DESCRIPTIONS, TOOL_PARAMETER_DESCRIPTIONS } from './prompts.js';
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates the draft_delivery_manifest tool.
|
* Creates the draft_delivery_manifest tool.
|
||||||
* Stores extracted invoice/delivery-note data: header metadata (basedata), and product line items.
|
* Stores extracted invoice/delivery-note data: header metadata (basedata), product line items, and optional original PDF attachment link.
|
||||||
*/
|
*/
|
||||||
export function createDraftDeliveryManifestTool() {
|
export function createDraftDeliveryManifestTool() {
|
||||||
const P = TOOL_PARAMETER_DESCRIPTIONS.draft_delivery_manifest;
|
const P = TOOL_PARAMETER_DESCRIPTIONS.draft_delivery_manifest;
|
||||||
@@ -17,6 +17,10 @@ export function createDraftDeliveryManifestTool() {
|
|||||||
additionalProperties: false,
|
additionalProperties: false,
|
||||||
required: [],
|
required: [],
|
||||||
properties: {
|
properties: {
|
||||||
|
attachment: {
|
||||||
|
type: ['string', 'null'],
|
||||||
|
description: P.attachment,
|
||||||
|
},
|
||||||
basedata: {
|
basedata: {
|
||||||
anyOf: [
|
anyOf: [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ export const TOOL_DESCRIPTIONS = {
|
|||||||
'and provide these paths in the subagent instructions.',
|
'and provide these paths in the subagent instructions.',
|
||||||
|
|
||||||
draft_delivery_manifest:
|
draft_delivery_manifest:
|
||||||
'Stores extracted invoice/delivery-note data: header metadata (basedata), and product line items. Each component is strictly optional.',
|
'Stores extracted invoice/delivery-note data: header metadata (basedata), product line items, and optional original PDF attachment link. Each component is strictly optional.',
|
||||||
};
|
};
|
||||||
|
|
||||||
// #endregion
|
// #endregion
|
||||||
@@ -275,6 +275,7 @@ export const TOOL_PARAMETER_DESCRIPTIONS = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
draft_delivery_manifest: {
|
draft_delivery_manifest: {
|
||||||
|
attachment: 'VFS path/link to the original PDF attachment (e.g. "attachments/invoice.pdf"), or null if none.',
|
||||||
basedata: 'Header/metadata. Only include fields that are currently missing or changed.',
|
basedata: 'Header/metadata. Only include fields that are currently missing or changed.',
|
||||||
date: 'Document date (ISO 8601).',
|
date: 'Document date (ISO 8601).',
|
||||||
lieferant_id: 'Lieferant ID.',
|
lieferant_id: 'Lieferant ID.',
|
||||||
|
|||||||
Reference in New Issue
Block a user