@carlonicora/nestjs-neo4jsonapi 2.15.3 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,5 @@
1
- export declare const GRAPH_NODE_SYSTEM_PROMPT_BASE = "# Role\n\nYou help a user explore their company's ERP data. The data is stored as a graph \u2014 entities are nodes, and the connections between them are edges.\n\nYou answer the user's questions by traversing this graph: find the entities the question is about, read their fields, and walk the relationships between them to reach related entities, continuing until you have enough information to answer. Nearly every useful answer requires following at least one edge \u2014 a single search is rarely the whole story.\n\nEvery fact in your answer must come from a tool call that returned it. Do not invent field names, relationship names, entity types, or record contents.\n\n## Your data\n\n{GRAPH_MAP}\n\nThe list above is the complete inventory of entity types available to you \u2014 anything not listed does not exist. Each entry shows only the type and a one-line description; fields and relationships are not included here. To learn the fields and relationships of any type, call `describe_entity({ type })` \u2014 its response is the only authoritative source for that type's schema. Do not assume a field or relationship exists until `describe_entity` confirms it.\n\n**Every currency value in this system is stored as an integer number of cents \u2014 never as a decimal amount.** A stored value of `600` means 6.00, `500` means 5.00, and `1234567` means 12,345.67. Fields that carry money are marked `money` in the catalogue above (e.g. `total_amount (number, money [integer stored in minor units (2 decimals); divide by 10^2 to display], ...)`). For these fields, every record returned by `read_entity`, `search_entities`, or `traverse` also carries a sibling `<name>_formatted` string \u2014 quote that string when narrating the amount in your answer, and never quote the raw integer as if it were euros. Filters and sort still target the raw field (pass cents, e.g. `{ field: \"total_amount\", op: \"gt\", value: 10000 }` to mean \"over 100.00\").\n\n## Tools\n\nYou have five tools. Call them in sequence \u2014 a typical question needs two or three.\n\n**Never ask the user a clarifying question.** The user expects an answer, not a follow-up. After `resolve_entity` returns at least one usable candidate, immediately continue: `describe_entity` \u2192 `search_entities` / `traverse` / `read_entity` \u2192 answer. Do not stop the tool chain to confirm what to do next. If multiple candidates of different types could match (e.g. an Account and a Person both named \"Carlo\"), pick the one whose type and connected relationships best fit the user's question \u2014 for \"work orders for X\", an Account that has work orders is a better fit than a Person who happens to share a name. State the assumption you made in the `reason` clause of the entity you return; do not ask the user.\n\nBefore choosing a tool, check the \"Entities already in this conversation\" block that may be provided below. If the user's phrase refers to an entity listed there \u2014 by its exact name, by a partial name, or implicitly (\"them\", \"their\", \"other\", \"these\") \u2014 treat that entity as resolved. Use its `type` and `id` directly with `read_entity` or `traverse`. **A previous-turn record's nested relationships also carry their own `{ type, id }` \u2014 those ids are addressable, so call `read_entity` or `traverse` with them directly.** Do not call `resolve_entity` for a name that is already resolved in context, and do not call `resolve_entity` for a record whose id you already have.\n\nOtherwise, if the user names an entity \u2014 a customer, a person, a product, a project, anything that could correspond to a record in the graph \u2014 your first tool call is `resolve_entity` with the user's literal phrase. Do not guess a type. `resolve_entity` returns candidates across every entity type in one shot; you then pick a candidate and proceed with `describe_entity` + the typed tools.\n\nSome entities in the catalog are marked `(bridge \u2192 \u2026)` in the type index. A bridge is a junction record whose own fields are minimal \u2014 the actionable data lives on the relationships named in the bridge marker. When `traverse`, `read_entity`, or `search_entities` returns a record of a bridge type, the response already contains those relationships' targets inlined as nested objects, alongside a `__materialised: [...]` array listing which keys were filled. Do not call `traverse` on a relationship that already appears in `__materialised` \u2014 its content is already in front of you. If a relationship is in the bridge's `materialiseTo` per `describe_entity` but missing from `__materialised`, the target is gated by your module access; do not retry that traverse \u2014 narrate the gap to the user.\n\n- `resolve_entity(text)` \u2014 look up nodes by name across every entity type in one call. Pass the user's literal phrase verbatim, including words like \"and\", \"&\", or other punctuation that may be part of a name. The response carries a `matchMode`, `items` sorted by `score` descending, and an optional `recommendation`:\n - `exact` or `fuzzy` \u2192\n - **If the response carries `recommendation`, follow it.** It surfaces a deterministic rule already applied to the candidates and is more reliable than re-deriving the rule each turn.\n - Otherwise: if `items[0].summary` equals the user's literal phrase (case-insensitive), `items[0]` is the answer \u2014 pick it without further disambiguation. Words like \"and\", \"&\", or commas inside that phrase are part of the name; never split the phrase into multiple `resolve_entity` calls and never ask the user to clarify between `items[0]` and lower-ranked items just because the phrase looks plural.\n - Otherwise: if `items.length === 1` or `items[0].score - items[1].score \u2265 0.15`, pick `items[0]`.\n - Otherwise: pick the most plausible candidate by name match and continue traversing \u2014 the question still has to be answered. Do not refuse the user when at least one usable candidate exists.\n - `semantic` \u2192 same rules, margin \u2265 0.08. The match is approximate; reflect that in the `reason` clause.\n - `none` \u2192 no record exists; tell the user in your answer and suggest rephrasing.\n\n- `describe_entity(type)` \u2014 inspect one entity type in full: every field with its type, and every relationship with its target type and description. Call this for every type you intend to touch, before searching, reading, or traversing it. The next three tools will refuse to run on a type that has not been described in this turn.\n\n- `search_entities(type, filters?, sort?, limit?)` \u2014 find records of a known type by filter and sort. Use this when you already have the type (from `resolve_entity` or because the user referred to a kind of record without naming a specific one, e.g. \"all orders over 10,000\"). `search_entities` does not search by name \u2014 to find a record by name, call `resolve_entity` first.\n\n- `read_entity(type, id, include?)` \u2014 fetch the full fields of a single node by id. Tool outputs from other tools are summaries; call this to get the complete record before reporting on it.\n\n- `traverse(fromType, fromId, relationship, filters?, sort?, limit?)` \u2014 walk one edge from a known node to its connected nodes. The `relationship` must be one listed under the source type in the catalogue. `filters` and `sort` apply to the target node's fields. This is the only way to cross from one entity type to another.\n\nIf a tool returns `{ error: \"\u2026\" }`, read the message \u2014 it usually lists valid fields or relationships, or tells you to call `describe_entity` first. Pick one of those and call the tool again. Recover within the same turn; do not apologise to the user for a tool error. Never stop on the first error.\n\n## Output\n\nReturn these fields:\n\n- `answer` \u2014 a concise prose reply (2\u20134 sentences for a single record, a markdown bullet list when enumerating) built from the actual field values and traversal results. When you report on a record, use its real field values, not its type name. When you report a money value, quote the `<name>_formatted` string from the record. When you report a date, use the date as it appears in the record.\n\n- `entities` \u2014 every entity that contributes to the meaning of your `answer`, as `{ type, id, reason, fields? }`. An entity contributes when it is the subject the user asked about, or a record the answer reports a fact about. `reason` is one short clause explaining that role (for example \"the account the user asked about\", \"one of the orders listed in the answer\"). Populate `fields` with the values you quoted in `answer`. Do not include entities you retrieved, inspected, and discarded: a `resolve_entity` call that returned three candidates of which you only used one \u2014 the other two are not entities to return; a `traverse` that walked an edge whose target you did not mention \u2014 not an entity. These entities are persisted and re-loaded as context on the next turn, so polluting them with irrelevant records will cause the next turn to confuse them with the actual subject \u2014 be strict.\n\n- `stop` \u2014 set to `true` once `answer` is complete and `entities` is the matching set.\n";
2
- export declare function renderGraphNodeSystemPrompt(graphMap: string): string;
1
+ import { GraphNodeDomainPrompts } from "../../../config/interfaces/config.prompts.interface";
2
+ export declare const GRAPH_NODE_SYSTEM_PROMPT_BASE = "# Role\n\n{DOMAIN_ROLE}\n\nThe data is stored as a graph \u2014 entities are nodes, and the connections between them are edges.\n\nYou answer the user's questions by traversing this graph: find the entities the question is about, read their fields, and walk the relationships between them to reach related entities, continuing until you have enough information to answer. Nearly every useful answer requires following at least one edge \u2014 a single search is rarely the whole story.\n\nEvery fact in your answer must come from a tool call that returned it. Do not invent field names, relationship names, entity types, or record contents.\n\n## Your data\n\n{GRAPH_MAP}\n\nThe list above is the complete inventory of entity types available to you \u2014 anything not listed does not exist. Each entry shows only the type and a one-line description; fields and relationships are not included here. To learn the fields and relationships of any type, call `describe_entity({ type })` \u2014 its response is the only authoritative source for that type's schema. Do not assume a field or relationship exists until `describe_entity` confirms it.\n\nA field marked `money` in the catalogue above is stored as an integer in minor units; its marker states how many decimals (e.g. `total_amount (number, money [integer stored in minor units (2 decimals); divide by 10^2 to display], ...)`). For these fields, every record returned by `read_entity`, `search_entities`, or `traverse` also carries a sibling `<name>_formatted` string \u2014 quote that string when narrating the value in your answer, and never quote the raw integer as if it were the display amount. Filters and sort still target the raw field, in minor units.\n\n{DOMAIN_DATA_CONVENTIONS}\n\n## Tools\n\nYou have five tools.\n\n**Never ask the user a clarifying question.** The user expects an answer, not a follow-up. After `resolve_entity` returns at least one usable candidate, immediately continue: `describe_entity` \u2192 `search_entities` / `traverse` / `read_entity` \u2192 answer. Do not stop the tool chain to confirm what to do next. If multiple candidates of different types could match, pick the one whose type and connected relationships best fit the user's question. State the assumption you made in the `reason` clause of the entity you return; do not ask the user.\n\n{DOMAIN_DISAMBIGUATION}\n\nBefore choosing a tool, check the \"Entities already in this conversation\" block that may be provided below. If the user's phrase refers to an entity listed there \u2014 by its exact name, by a partial name, or implicitly (\"them\", \"their\", \"other\", \"these\") \u2014 treat that entity as resolved. Use its `type` and `id` directly with `read_entity` or `traverse`. **A previous-turn record's nested relationships also carry their own `{ type, id }` \u2014 those ids are addressable, so call `read_entity` or `traverse` with them directly.** Do not call `resolve_entity` for a name that is already resolved in context, and do not call `resolve_entity` for a record whose id you already have.\n\nOtherwise, if the user names an entity \u2014 a person, a place, an organisation, a project, anything that could correspond to a record in the graph \u2014 your first tool call is `resolve_entity` with the user's literal phrase. Do not guess a type. `resolve_entity` returns candidates across every entity type in one shot; you then pick a candidate and proceed with `describe_entity` + the typed tools.\n\nSome entities in the catalog are marked `(bridge \u2192 \u2026)` in the type index. A bridge is a junction record whose own fields are minimal \u2014 the actionable data lives on the relationships named in the bridge marker. When `traverse`, `read_entity`, or `search_entities` returns a record of a bridge type, the response already contains those relationships' targets inlined as nested objects, alongside a `__materialised: [...]` array listing which keys were filled. Do not call `traverse` on a relationship that already appears in `__materialised` \u2014 its content is already in front of you. If a relationship is in the bridge's `materialiseTo` per `describe_entity` but missing from `__materialised`, the target is gated by your module access; do not retry that traverse \u2014 narrate the gap to the user.\n\n- `resolve_entity(text)` \u2014 look up nodes by name across every entity type in one call. Pass the user's literal phrase verbatim, including words like \"and\", \"&\", or other punctuation that may be part of a name. The response carries a `matchMode`, `items` sorted by `score` descending, and an optional `recommendation`:\n - `exact` or `fuzzy` \u2192\n - **If the response carries `recommendation`, follow it.** It surfaces a deterministic rule already applied to the candidates and is more reliable than re-deriving the rule each turn.\n - Otherwise: if `items[0].summary` equals the user's literal phrase (case-insensitive), `items[0]` is the answer \u2014 pick it without further disambiguation. Words like \"and\", \"&\", or commas inside that phrase are part of the name; never split the phrase into multiple `resolve_entity` calls and never ask the user to clarify between `items[0]` and lower-ranked items just because the phrase looks plural.\n - Otherwise: if `items.length === 1` or `items[0].score - items[1].score \u2265 0.15`, pick `items[0]`.\n - Otherwise: pick the most plausible candidate by name match and continue traversing \u2014 the question still has to be answered. Do not refuse the user when at least one usable candidate exists.\n - `semantic` \u2192 same rules, margin \u2265 0.08. The match is approximate; reflect that in the `reason` clause.\n - `none` \u2192 no record exists; tell the user in your answer and suggest rephrasing.\n\n- `describe_entity(type)` \u2014 inspect one entity type in full: every field with its type, and every relationship with its target type and description. Call this for every type you intend to touch, before searching, reading, or traversing it. The next three tools will refuse to run on a type that has not been described in this turn.\n\n- `search_entities(type, filters?, sort?, limit?)` \u2014 find records of a known type by filter and sort. Use this when you already have the type (from `resolve_entity` or because the user referred to a kind of record without naming a specific one, e.g. \"all records of that type created after a given date\"). `search_entities` does not search by name \u2014 to find a record by name, call `resolve_entity` first.\n\n- `read_entity(type, id, include?)` \u2014 fetch the full fields of a single node by id. Tool outputs from other tools are summaries; call this to get the complete record before reporting on it.\n\n- `traverse(fromType, fromId, relationship, filters?, sort?, limit?)` \u2014 walk one edge from a known node to its connected nodes. The `relationship` must be one listed under the source type in the catalogue. `filters` and `sort` apply to the target node's fields. This is the only way to cross from one entity type to another.\n\n{DOMAIN_DEPTH}\n\nIf a tool returns `{ error: \"\u2026\" }`, read the message \u2014 it usually lists valid fields or relationships, or tells you to call `describe_entity` first. Pick one of those and call the tool again. Recover within the same turn; do not apologise to the user for a tool error. Never stop on the first error.\n\n## Output\n\nReturn these fields:\n\n- `answer` \u2014 a concise prose reply (2\u20134 sentences for a single record, a markdown bullet list when enumerating) built from the actual field values and traversal results. When you report on a record, use its real field values, not its type name. When you report a money value, quote the `<name>_formatted` string from the record. When you report a date, use the date as it appears in the record.\n\n{DOMAIN_OUTPUT_RULES}\n\n- `entities` \u2014 every entity that contributes to the meaning of your `answer`, as `{ type, id, reason, fields? }`. An entity contributes when it is the subject the user asked about, or a record the answer reports a fact about. `reason` is one short clause explaining that role (for example \"the account the user asked about\", \"one of the records listed in the answer\"). Populate `fields` with the values you quoted in `answer`. Do not include entities you retrieved, inspected, and discarded: a `resolve_entity` call that returned three candidates of which you only used one \u2014 the other two are not entities to return; a `traverse` that walked an edge whose target you did not mention \u2014 not an entity. These entities are persisted and re-loaded as context on the next turn, so polluting them with irrelevant records will cause the next turn to confuse them with the actual subject \u2014 be strict.\n\n- `stop` \u2014 set to `true` once `answer` is complete and `entities` is the matching set.\n";
3
+ export declare function describeDomainLayer(domain?: GraphNodeDomainPrompts): string;
4
+ export declare function renderGraphNodeSystemPrompt(graphMap: string, domain?: GraphNodeDomainPrompts): string;
3
5
  //# sourceMappingURL=graph.node.system.prompt.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"graph.node.system.prompt.d.ts","sourceRoot":"","sources":["../../../../src/agents/graph/prompts/graph.node.system.prompt.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,6BAA6B,siSAwDzC,CAAC;AAEF,wBAAgB,2BAA2B,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAMpE"}
1
+ {"version":3,"file":"graph.node.system.prompt.d.ts","sourceRoot":"","sources":["../../../../src/agents/graph/prompts/graph.node.system.prompt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AAE7F,eAAO,MAAM,6BAA6B,+rRAkEzC,CAAC;AAMF,wBAAgB,mBAAmB,CAAC,MAAM,CAAC,EAAE,sBAAsB,GAAG,MAAM,CAG3E;AAED,wBAAgB,2BAA2B,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,sBAAsB,GAAG,MAAM,CAerG"}
@@ -1,10 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GRAPH_NODE_SYSTEM_PROMPT_BASE = void 0;
4
+ exports.describeDomainLayer = describeDomainLayer;
4
5
  exports.renderGraphNodeSystemPrompt = renderGraphNodeSystemPrompt;
5
6
  exports.GRAPH_NODE_SYSTEM_PROMPT_BASE = `# Role
6
7
 
7
- You help a user explore their company's ERP data. The data is stored as a graph — entities are nodes, and the connections between them are edges.
8
+ {DOMAIN_ROLE}
9
+
10
+ The data is stored as a graph — entities are nodes, and the connections between them are edges.
8
11
 
9
12
  You answer the user's questions by traversing this graph: find the entities the question is about, read their fields, and walk the relationships between them to reach related entities, continuing until you have enough information to answer. Nearly every useful answer requires following at least one edge — a single search is rarely the whole story.
10
13
 
@@ -16,17 +19,21 @@ Every fact in your answer must come from a tool call that returned it. Do not in
16
19
 
17
20
  The list above is the complete inventory of entity types available to you — anything not listed does not exist. Each entry shows only the type and a one-line description; fields and relationships are not included here. To learn the fields and relationships of any type, call \`describe_entity({ type })\` — its response is the only authoritative source for that type's schema. Do not assume a field or relationship exists until \`describe_entity\` confirms it.
18
21
 
19
- **Every currency value in this system is stored as an integer number of cents never as a decimal amount.** A stored value of \`600\` means 6.00, \`500\` means 5.00, and \`1234567\` means 12,345.67. Fields that carry money are marked \`money\` in the catalogue above (e.g. \`total_amount (number, money [integer stored in minor units (2 decimals); divide by 10^2 to display], ...)\`). For these fields, every record returned by \`read_entity\`, \`search_entities\`, or \`traverse\` also carries a sibling \`<name>_formatted\` string — quote that string when narrating the amount in your answer, and never quote the raw integer as if it were euros. Filters and sort still target the raw field (pass cents, e.g. \`{ field: "total_amount", op: "gt", value: 10000 }\` to mean "over 100.00").
22
+ A field marked \`money\` in the catalogue above is stored as an integer in minor units; its marker states how many decimals (e.g. \`total_amount (number, money [integer stored in minor units (2 decimals); divide by 10^2 to display], ...)\`). For these fields, every record returned by \`read_entity\`, \`search_entities\`, or \`traverse\` also carries a sibling \`<name>_formatted\` string — quote that string when narrating the value in your answer, and never quote the raw integer as if it were the display amount. Filters and sort still target the raw field, in minor units.
23
+
24
+ {DOMAIN_DATA_CONVENTIONS}
20
25
 
21
26
  ## Tools
22
27
 
23
- You have five tools. Call them in sequence — a typical question needs two or three.
28
+ You have five tools.
29
+
30
+ **Never ask the user a clarifying question.** The user expects an answer, not a follow-up. After \`resolve_entity\` returns at least one usable candidate, immediately continue: \`describe_entity\` → \`search_entities\` / \`traverse\` / \`read_entity\` → answer. Do not stop the tool chain to confirm what to do next. If multiple candidates of different types could match, pick the one whose type and connected relationships best fit the user's question. State the assumption you made in the \`reason\` clause of the entity you return; do not ask the user.
24
31
 
25
- **Never ask the user a clarifying question.** The user expects an answer, not a follow-up. After \`resolve_entity\` returns at least one usable candidate, immediately continue: \`describe_entity\` → \`search_entities\` / \`traverse\` / \`read_entity\` → answer. Do not stop the tool chain to confirm what to do next. If multiple candidates of different types could match (e.g. an Account and a Person both named "Carlo"), pick the one whose type and connected relationships best fit the user's question — for "work orders for X", an Account that has work orders is a better fit than a Person who happens to share a name. State the assumption you made in the \`reason\` clause of the entity you return; do not ask the user.
32
+ {DOMAIN_DISAMBIGUATION}
26
33
 
27
34
  Before choosing a tool, check the "Entities already in this conversation" block that may be provided below. If the user's phrase refers to an entity listed there — by its exact name, by a partial name, or implicitly ("them", "their", "other", "these") — treat that entity as resolved. Use its \`type\` and \`id\` directly with \`read_entity\` or \`traverse\`. **A previous-turn record's nested relationships also carry their own \`{ type, id }\` — those ids are addressable, so call \`read_entity\` or \`traverse\` with them directly.** Do not call \`resolve_entity\` for a name that is already resolved in context, and do not call \`resolve_entity\` for a record whose id you already have.
28
35
 
29
- Otherwise, if the user names an entity — a customer, a person, a product, a project, anything that could correspond to a record in the graph — your first tool call is \`resolve_entity\` with the user's literal phrase. Do not guess a type. \`resolve_entity\` returns candidates across every entity type in one shot; you then pick a candidate and proceed with \`describe_entity\` + the typed tools.
36
+ Otherwise, if the user names an entity — a person, a place, an organisation, a project, anything that could correspond to a record in the graph — your first tool call is \`resolve_entity\` with the user's literal phrase. Do not guess a type. \`resolve_entity\` returns candidates across every entity type in one shot; you then pick a candidate and proceed with \`describe_entity\` + the typed tools.
30
37
 
31
38
  Some entities in the catalog are marked \`(bridge → …)\` in the type index. A bridge is a junction record whose own fields are minimal — the actionable data lives on the relationships named in the bridge marker. When \`traverse\`, \`read_entity\`, or \`search_entities\` returns a record of a bridge type, the response already contains those relationships' targets inlined as nested objects, alongside a \`__materialised: [...]\` array listing which keys were filled. Do not call \`traverse\` on a relationship that already appears in \`__materialised\` — its content is already in front of you. If a relationship is in the bridge's \`materialiseTo\` per \`describe_entity\` but missing from \`__materialised\`, the target is gated by your module access; do not retry that traverse — narrate the gap to the user.
32
39
 
@@ -41,12 +48,14 @@ Some entities in the catalog are marked \`(bridge → …)\` in the type index.
41
48
 
42
49
  - \`describe_entity(type)\` — inspect one entity type in full: every field with its type, and every relationship with its target type and description. Call this for every type you intend to touch, before searching, reading, or traversing it. The next three tools will refuse to run on a type that has not been described in this turn.
43
50
 
44
- - \`search_entities(type, filters?, sort?, limit?)\` — find records of a known type by filter and sort. Use this when you already have the type (from \`resolve_entity\` or because the user referred to a kind of record without naming a specific one, e.g. "all orders over 10,000"). \`search_entities\` does not search by name — to find a record by name, call \`resolve_entity\` first.
51
+ - \`search_entities(type, filters?, sort?, limit?)\` — find records of a known type by filter and sort. Use this when you already have the type (from \`resolve_entity\` or because the user referred to a kind of record without naming a specific one, e.g. "all records of that type created after a given date"). \`search_entities\` does not search by name — to find a record by name, call \`resolve_entity\` first.
45
52
 
46
53
  - \`read_entity(type, id, include?)\` — fetch the full fields of a single node by id. Tool outputs from other tools are summaries; call this to get the complete record before reporting on it.
47
54
 
48
55
  - \`traverse(fromType, fromId, relationship, filters?, sort?, limit?)\` — walk one edge from a known node to its connected nodes. The \`relationship\` must be one listed under the source type in the catalogue. \`filters\` and \`sort\` apply to the target node's fields. This is the only way to cross from one entity type to another.
49
56
 
57
+ {DOMAIN_DEPTH}
58
+
50
59
  If a tool returns \`{ error: "…" }\`, read the message — it usually lists valid fields or relationships, or tells you to call \`describe_entity\` first. Pick one of those and call the tool again. Recover within the same turn; do not apologise to the user for a tool error. Never stop on the first error.
51
60
 
52
61
  ## Output
@@ -55,12 +64,28 @@ Return these fields:
55
64
 
56
65
  - \`answer\` — a concise prose reply (2–4 sentences for a single record, a markdown bullet list when enumerating) built from the actual field values and traversal results. When you report on a record, use its real field values, not its type name. When you report a money value, quote the \`<name>_formatted\` string from the record. When you report a date, use the date as it appears in the record.
57
66
 
58
- - \`entities\` — every entity that contributes to the meaning of your \`answer\`, as \`{ type, id, reason, fields? }\`. An entity contributes when it is the subject the user asked about, or a record the answer reports a fact about. \`reason\` is one short clause explaining that role (for example "the account the user asked about", "one of the orders listed in the answer"). Populate \`fields\` with the values you quoted in \`answer\`. Do not include entities you retrieved, inspected, and discarded: a \`resolve_entity\` call that returned three candidates of which you only used one — the other two are not entities to return; a \`traverse\` that walked an edge whose target you did not mention — not an entity. These entities are persisted and re-loaded as context on the next turn, so polluting them with irrelevant records will cause the next turn to confuse them with the actual subject — be strict.
67
+ {DOMAIN_OUTPUT_RULES}
68
+
69
+ - \`entities\` — every entity that contributes to the meaning of your \`answer\`, as \`{ type, id, reason, fields? }\`. An entity contributes when it is the subject the user asked about, or a record the answer reports a fact about. \`reason\` is one short clause explaining that role (for example "the account the user asked about", "one of the records listed in the answer"). Populate \`fields\` with the values you quoted in \`answer\`. Do not include entities you retrieved, inspected, and discarded: a \`resolve_entity\` call that returned three candidates of which you only used one — the other two are not entities to return; a \`traverse\` that walked an edge whose target you did not mention — not an entity. These entities are persisted and re-loaded as context on the next turn, so polluting them with irrelevant records will cause the next turn to confuse them with the actual subject — be strict.
59
70
 
60
71
  - \`stop\` — set to \`true\` once \`answer\` is complete and \`entities\` is the matching set.
61
72
  `;
62
- function renderGraphNodeSystemPrompt(graphMap) {
63
- return exports.GRAPH_NODE_SYSTEM_PROMPT_BASE.replace("{GRAPH_MAP}", graphMap ||
64
- "(No accessible data — the user has no enabled modules with described entities. Do not attempt any tool calls. Respond politely explaining that you have no data to query.)");
73
+ const DEFAULT_ROLE = "You help a user explore their organisation's data.";
74
+ const DOMAIN_SLOTS = ["role", "depth", "disambiguation", "dataConventions", "outputRules"];
75
+ function describeDomainLayer(domain) {
76
+ const parts = DOMAIN_SLOTS.map((slot) => `${slot}=${domain?.[slot]?.trim() ? "supplied" : "kernel"}`);
77
+ return `graph node domain layer: ${parts.join(" ")}`;
78
+ }
79
+ function renderGraphNodeSystemPrompt(graphMap, domain) {
80
+ // Function replacements throughout: a string replacement would interpret
81
+ // $&, $`, $' and $n inside app-supplied text and silently mangle the prompt.
82
+ return exports.GRAPH_NODE_SYSTEM_PROMPT_BASE.replace("{GRAPH_MAP}", () => graphMap ||
83
+ "(No accessible data — the user has no enabled modules with described entities. Do not attempt any tool calls. Respond politely explaining that you have no data to query.)")
84
+ .replace("{DOMAIN_ROLE}", () => domain?.role?.trim() || DEFAULT_ROLE)
85
+ .replace("{DOMAIN_DATA_CONVENTIONS}", () => domain?.dataConventions?.trim() ?? "")
86
+ .replace("{DOMAIN_DISAMBIGUATION}", () => domain?.disambiguation?.trim() ?? "")
87
+ .replace("{DOMAIN_DEPTH}", () => domain?.depth?.trim() ?? "")
88
+ .replace("{DOMAIN_OUTPUT_RULES}", () => domain?.outputRules?.trim() ?? "")
89
+ .replace(/\n{3,}/g, "\n\n");
65
90
  }
66
91
  //# sourceMappingURL=graph.node.system.prompt.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"graph.node.system.prompt.js","sourceRoot":"","sources":["../../../../src/agents/graph/prompts/graph.node.system.prompt.ts"],"names":[],"mappings":";;;AA0DA,kEAMC;AAhEY,QAAA,6BAA6B,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwD5C,CAAC;AAEF,SAAgB,2BAA2B,CAAC,QAAgB;IAC1D,OAAO,qCAA6B,CAAC,OAAO,CAC1C,aAAa,EACb,QAAQ;QACN,4KAA4K,CAC/K,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"graph.node.system.prompt.js","sourceRoot":"","sources":["../../../../src/agents/graph/prompts/graph.node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C;SAC5D,OAAO,CAAC,uBAAuB,EAAE,GAAG,EAAE,CAAC,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;SACzE,OAAO,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;AAChC,CAAC"}
@@ -48,6 +48,7 @@ export type { OperatorRunResult } from "./operator/services/operator.service";
48
48
  export { OperatorContext } from "./operator/contexts/operator.context";
49
49
  export type { OperatorCitation, OperatorContextState, OperatorFinalAnswer } from "./operator/contexts/operator.context";
50
50
  export { defaultOperatorSystemPrompt } from "./operator/prompts/operator.system.prompt";
51
+ export { GRAPH_NODE_SYSTEM_PROMPT_BASE, renderGraphNodeSystemPrompt, describeDomainLayer, } from "./graph/prompts/graph.node.system.prompt";
51
52
  export { OperatorCheckpointerService, OPERATOR_DEFAULT_APPROVAL_TTL_DAYS, } from "./operator/services/operator.checkpointer.service";
52
53
  export { OPERATOR_TOOLS } from "./operator/interfaces/operator.tool.interface";
53
54
  export type { OperatorChunkCitation, OperatorRetrievalContext, OperatorToolCallRecord, OperatorToolContribution, OperatorToolDefinition, } from "./operator/interfaces/operator.tool.interface";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/agents/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAGhD,cAAc,WAAW,CAAC;AAK1B,YAAY,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAG3F,OAAO,EAAE,uBAAuB,EAAE,MAAM,gDAAgD,CAAC;AACzF,OAAO,EAAE,wBAAwB,EAAE,MAAM,0DAA0D,CAAC;AAGpG,OAAO,EAAE,yBAAyB,EAAE,MAAM,oDAAoD,CAAC;AAC/F,OAAO,EAAE,0BAA0B,EAAE,MAAM,8DAA8D,CAAC;AAG1G,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,i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E,MAAM,wCAAwC,CAAC;AAC7E,OAAO,EAAE,qBAAqB,EAAE,MAAM,0CAA0C,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AACpF,OAAO,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC"}
@@ -14,8 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.OperatorTestActionTool = exports.SearchCommunitiesTool = exports.SearchDocumentsTool = exports.OPERATOR_TOOLS = exports.OPERATOR_DEFAULT_APPROVAL_TTL_DAYS = exports.OperatorCheckpointerService = exports.defaultOperatorSystemPrompt = exports.OperatorContext = exports.OperatorService = exports.OperatorController = exports.operatorMeta = exports.OperatorModule = exports.TraverseTool = exports.ReadEntityTool = exports.SearchEntitiesTool = exports.DescribeEntityTool = exports.ResolveEntityTool = exports.UserModulesRepository = exports.buildScopePattern = exports.ScopePredicateService = exports.ScopeGuard = exports.GraphDescriptorRegistry = exports.GRAPH_SEMANTIC_MIN_SCORE = exports.GRAPH_SEMANTIC_MAX_RESULTS = exports.GRAPH_FUZZY_MAX_RESULTS = exports.GRAPH_EXACT_MAX_RESULTS = exports.GraphSearchService = exports.GraphModule = exports.SummariserService = exports.SummariserModule = exports.ResponderService = exports.ResponderModule = exports.isValidKeyConcept = exports.buildGraphCreatorOutputSchema = exports.graphCreatorOutputSchema = exports.GraphCreatorService = exports.GraphCreatorModule = exports.CONTEXTUALISER_TOOLS = exports.RETRIEVAL_SOURCES = exports.ContextualiserContextFactoryService = exports.ContextualiserService = exports.ContextualiserModule = exports.DriftMigrationService = exports.DriftSearchService = exports.DriftModule = exports.CommunitySummariserService = exports.CommunitySummariserModule = exports.CommunityDetectorService = exports.CommunityDetectorModule = exports.AgentsModule = void 0;
18
- exports.OperatorToolRegistry = void 0;
17
+ exports.OPERATOR_TOOLS = exports.OPERATOR_DEFAULT_APPROVAL_TTL_DAYS = exports.OperatorCheckpointerService = exports.describeDomainLayer = exports.renderGraphNodeSystemPrompt = exports.GRAPH_NODE_SYSTEM_PROMPT_BASE = exports.defaultOperatorSystemPrompt = exports.OperatorContext = exports.OperatorService = exports.OperatorController = exports.operatorMeta = exports.OperatorModule = exports.TraverseTool = exports.ReadEntityTool = exports.SearchEntitiesTool = exports.DescribeEntityTool = exports.ResolveEntityTool = exports.UserModulesRepository = exports.buildScopePattern = exports.ScopePredicateService = exports.ScopeGuard = exports.GraphDescriptorRegistry = exports.GRAPH_SEMANTIC_MIN_SCORE = exports.GRAPH_SEMANTIC_MAX_RESULTS = exports.GRAPH_FUZZY_MAX_RESULTS = exports.GRAPH_EXACT_MAX_RESULTS = exports.GraphSearchService = exports.GraphModule = exports.SummariserService = exports.SummariserModule = exports.ResponderService = exports.ResponderModule = exports.isValidKeyConcept = exports.buildGraphCreatorOutputSchema = exports.graphCreatorOutputSchema = exports.GraphCreatorService = exports.GraphCreatorModule = exports.CONTEXTUALISER_TOOLS = exports.RETRIEVAL_SOURCES = exports.ContextualiserContextFactoryService = exports.ContextualiserService = exports.ContextualiserModule = exports.DriftMigrationService = exports.DriftSearchService = exports.DriftModule = exports.CommunitySummariserService = exports.CommunitySummariserModule = exports.CommunityDetectorService = exports.CommunityDetectorModule = exports.AgentsModule = void 0;
18
+ exports.OperatorToolRegistry = exports.OperatorTestActionTool = exports.SearchCommunitiesTool = exports.SearchDocumentsTool = void 0;
19
19
  // Centralized AgentsModule - prompts configured via baseConfig.prompts
20
20
  var agents_modules_1 = require("./agents.modules");
21
21
  Object.defineProperty(exports, "AgentsModule", { enumerable: true, get: function () { return agents_modules_1.AgentsModule; } });
@@ -114,6 +114,10 @@ var operator_context_1 = require("./operator/contexts/operator.context");
114
114
  Object.defineProperty(exports, "OperatorContext", { enumerable: true, get: function () { return operator_context_1.OperatorContext; } });
115
115
  var operator_system_prompt_1 = require("./operator/prompts/operator.system.prompt");
116
116
  Object.defineProperty(exports, "defaultOperatorSystemPrompt", { enumerable: true, get: function () { return operator_system_prompt_1.defaultOperatorSystemPrompt; } });
117
+ var graph_node_system_prompt_1 = require("./graph/prompts/graph.node.system.prompt");
118
+ Object.defineProperty(exports, "GRAPH_NODE_SYSTEM_PROMPT_BASE", { enumerable: true, get: function () { return graph_node_system_prompt_1.GRAPH_NODE_SYSTEM_PROMPT_BASE; } });
119
+ Object.defineProperty(exports, "renderGraphNodeSystemPrompt", { enumerable: true, get: function () { return graph_node_system_prompt_1.renderGraphNodeSystemPrompt; } });
120
+ Object.defineProperty(exports, "describeDomainLayer", { enumerable: true, get: function () { return graph_node_system_prompt_1.describeDomainLayer; } });
117
121
  var operator_checkpointer_service_1 = require("./operator/services/operator.checkpointer.service");
118
122
  Object.defineProperty(exports, "OperatorCheckpointerService", { enumerable: true, get: function () { return operator_checkpointer_service_1.OperatorCheckpointerService; } });
119
123
  Object.defineProperty(exports, "OPERATOR_DEFAULT_APPROVAL_TTL_DAYS", { enumerable: true, get: function () { return operator_checkpointer_service_1.OPERATOR_DEFAULT_APPROVAL_TTL_DAYS; } });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/agents/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,uEAAuE;AACvE,mDAAgD;AAAvC,8GAAA,YAAY,OAAA;AAErB,gCAAgC;AAChC,4CAA0B;AAO1B,6BAA6B;AAC7B,4FAAyF;AAAhF,oIAAA,uBAAuB,OAAA;AAChC,uGAAoG;AAA3F,sIAAA,wBAAwB,OAAA;AAEjC,+BAA+B;AAC/B,kGAA+F;AAAtF,wIAAA,yBAAyB,OAAA;AAClC,6GAA0G;AAAjG,0IAAA,0BAA0B,OAAA;AAEnC,eAAe;AACf,qDAAmD;AAA1C,2GAAA,WAAW,OAAA;AACpB,8EAA2G;AAAlG,0HAAA,kBAAkB,OAAA;AAC3B,oFAA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A/D,0HAAA,kBAAkB,OAAA;AAC3B,mEAAgE;AAAvD,kHAAA,cAAc,OAAA;AACvB,6DAA2D;AAAlD,6GAAA,YAAY,OAAA;AAGrB,WAAW;AACX,8DAA4D;AAAnD,iHAAA,cAAc,OAAA;AACvB,mEAAiE;AAAxD,6GAAA,YAAY,OAAA;AACrB,kFAAgF;AAAvE,yHAAA,kBAAkB,OAAA;AAC3B,yEAAuE;AAA9D,mHAAA,eAAe,OAAA;AAExB,yEAAuE;AAA9D,mHAAA,eAAe,OAAA;AAExB,oFAAwF;AAA/E,qIAAA,2BAA2B,OAAA;AACpC,qFAIkD;AAHhD,yIAAA,6BAA6B,OAAA;AAC7B,uIAAA,2BAA2B,OAAA;AAC3B,+HAAA,mBAAmB,OAAA;AAErB,mGAG2D;AAFzD,4IAAA,2BAA2B,OAAA;AAC3B,mJAAA,kCAAkC,OAAA;AAGpC,wBAAwB;AACxB,yFAA+E;AAAtE,yHAAA,cAAc,OAAA;AAQvB,gFAA6E;AAApE,4HAAA,mBAAmB,OAAA;AAC5B,oFAAiF;AAAxE,gIAAA,qBAAqB,OAAA;AAC9B,wFAAoF;AAA3E,mIAAA,sBAAsB,OAAA;AAC/B,kFAA+E;AAAtE,8HAAA,oBAAoB,OAAA"}
@@ -1,3 +1,6 @@
1
+ import { OnModuleInit } from "@nestjs/common";
2
+ import { ConfigService } from "@nestjs/config";
3
+ import { BaseConfigInterface } from "../../../config/interfaces";
1
4
  import { WebSocketService } from "../../../core/websocket/services/websocket.service";
2
5
  import { LLMService } from "../../../core/llm/services/llm.service";
3
6
  import { GraphCatalogService } from "../../graph/services/graph.catalog.service";
@@ -10,7 +13,8 @@ import { TraverseTool } from "../../graph/tools/traverse.tool";
10
13
  import { ResponderContextState } from "../contexts/responder.context";
11
14
  export declare const MAX_TOOL_ITERATIONS = 15;
12
15
  export declare const GRAPH_NODE_WALL_CLOCK_MS = 60000;
13
- export declare class GraphNodeService {
16
+ export declare const RETRY_INSTRUCTION = "Your previous attempt did not call any tools. You cannot answer a question about this system's data without first looking it up.\n\nYou must call at least one tool BEFORE producing a final answer. For a question that names an entity (a person, a place, an organisation, a project \u2014 anything that could correspond to a record in the graph), the first tool call is always:\n\n resolve_entity({ text: \"<the user's literal phrase>\" })\n\nInspect the returned candidates, pick a type, then call describe_entity and proceed with the typed tools (read_entity, search_entities, traverse) until you have the data the answer needs. Do not respond with prose alone \u2014 call the tool now.";
17
+ export declare class GraphNodeService implements OnModuleInit {
14
18
  private readonly llm;
15
19
  private readonly graph;
16
20
  private readonly factory;
@@ -19,9 +23,12 @@ export declare class GraphNodeService {
19
23
  private readonly searchTool;
20
24
  private readonly readTool;
21
25
  private readonly traverseTool;
26
+ private readonly configService;
22
27
  private readonly ws?;
23
28
  private readonly logger;
24
- constructor(llm: LLMService, graph: GraphCatalogService, factory: ToolFactory, resolveTool: ResolveEntityTool, describeTool: DescribeEntityTool, searchTool: SearchEntitiesTool, readTool: ReadEntityTool, traverseTool: TraverseTool, ws?: WebSocketService);
29
+ private readonly domain?;
30
+ constructor(llm: LLMService, graph: GraphCatalogService, factory: ToolFactory, resolveTool: ResolveEntityTool, describeTool: DescribeEntityTool, searchTool: SearchEntitiesTool, readTool: ReadEntityTool, traverseTool: TraverseTool, configService: ConfigService<BaseConfigInterface>, ws?: WebSocketService);
31
+ onModuleInit(): void;
25
32
  execute(params: {
26
33
  state: ResponderContextState;
27
34
  }): Promise<Partial<ResponderContextState>>;
@@ -1 +1 @@
1
- {"version":3,"file":"graph.node.service.d.ts","sourceRoot":"","sources":["../../../../src/agents/responder/nodes/graph.node.service.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oDAAoD,CAAC;AACtF,OAAO,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;AAGpE,OAAO,EAAE,mBAAmB,EAAE,MAAM,4CAA4C,CAAC;AACjF,OAAO,EAAE,WAAW,EAAkB,MAAM,gCAAgC,CAAC;AAC7E,OAAO,EAAE,iBA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O,CAAC,QAAQ,CAAC,YAAY;IAC7B,OAAO,CAAC,QAAQ,CAAC,aAAa;IAClB,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC;IAhBlC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAqC;IAC5D,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAyB;gBAG9B,GAAG,EAAE,UAAU,EACf,KAAK,EAAE,mBAAmB,EAI1B,OAAO,EAAE,WAAW,EACpB,WAAW,EAAE,iBAAiB,EAC9B,YAAY,EAAE,kBAAkB,EAChC,UAAU,EAAE,kBAAkB,EAC9B,QAAQ,EAAE,cAAc,EACxB,YAAY,EAAE,YAAY,EAC1B,aAAa,EAAE,aAAa,CAAC,mBAAmB,CAAC,EACrC,EAAE,CAAC,EAAE,gBAAgB;IAMpD,YAAY,IAAI,IAAI;IAId,OAAO,CAAC,MAAM,EAAE;QAAE,KAAK,EAAE,qBAAqB,CAAA;KAAE,GAAG,OAAO,CAAC,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAgRhG,OAAO,CAAC,eAAe;IAuBvB;;;;OAIG;IACH,OAAO,CAAC,WAAW;IAUnB,OAAO,CAAC,aAAa;CAOtB"}
@@ -13,8 +13,9 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
13
13
  };
14
14
  var GraphNodeService_1;
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.GraphNodeService = exports.GRAPH_NODE_WALL_CLOCK_MS = exports.MAX_TOOL_ITERATIONS = void 0;
16
+ exports.GraphNodeService = exports.RETRY_INSTRUCTION = exports.GRAPH_NODE_WALL_CLOCK_MS = exports.MAX_TOOL_ITERATIONS = void 0;
17
17
  const common_1 = require("@nestjs/common");
18
+ const config_1 = require("@nestjs/config");
18
19
  const zod_1 = require("zod");
19
20
  const tools_1 = require("@langchain/core/tools");
20
21
  const websocket_service_1 = require("../../../core/websocket/services/websocket.service");
@@ -32,9 +33,9 @@ const graph_node_system_prompt_1 = require("../../graph/prompts/graph.node.syste
32
33
  const humanize_tool_1 = require("../../graph/services/humanize-tool");
33
34
  exports.MAX_TOOL_ITERATIONS = 15;
34
35
  exports.GRAPH_NODE_WALL_CLOCK_MS = 60_000;
35
- const RETRY_INSTRUCTION = `Your previous attempt did not call any tools. You cannot answer a question about the company's data without first looking it up.
36
+ exports.RETRY_INSTRUCTION = `Your previous attempt did not call any tools. You cannot answer a question about this system's data without first looking it up.
36
37
 
37
- You must call at least one tool BEFORE producing a final answer. For a question that names an entity (a customer, person, product, project, work order, anything that could correspond to a record in the graph), the first tool call is always:
38
+ You must call at least one tool BEFORE producing a final answer. For a question that names an entity (a person, a place, an organisation, a project anything that could correspond to a record in the graph), the first tool call is always:
38
39
 
39
40
  resolve_entity({ text: "<the user's literal phrase>" })
40
41
 
@@ -54,7 +55,7 @@ let GraphNodeService = GraphNodeService_1 = class GraphNodeService {
54
55
  constructor(llm, graph,
55
56
  // Preserved for DI shape compatibility with the (deleted) ChatbotService.
56
57
  // Task 9.2 will decide whether to keep it. Do not remove.
57
- factory, resolveTool, describeTool, searchTool, readTool, traverseTool, ws) {
58
+ factory, resolveTool, describeTool, searchTool, readTool, traverseTool, configService, ws) {
58
59
  this.llm = llm;
59
60
  this.graph = graph;
60
61
  this.factory = factory;
@@ -63,8 +64,14 @@ let GraphNodeService = GraphNodeService_1 = class GraphNodeService {
63
64
  this.searchTool = searchTool;
64
65
  this.readTool = readTool;
65
66
  this.traverseTool = traverseTool;
67
+ this.configService = configService;
66
68
  this.ws = ws;
67
69
  this.logger = new common_1.Logger(GraphNodeService_1.name);
70
+ const prompts = this.configService.get("prompts");
71
+ this.domain = prompts?.graphNodeDomain;
72
+ }
73
+ onModuleInit() {
74
+ this.logger.log((0, graph_node_system_prompt_1.describeDomainLayer)(this.domain));
68
75
  }
69
76
  async execute(params) {
70
77
  const state = params.state;
@@ -94,7 +101,7 @@ let GraphNodeService = GraphNodeService_1 = class GraphNodeService {
94
101
  }
95
102
  const recorder = [];
96
103
  const typeIndex = this.graph.getTypeIndexFor(ctx.userModuleIds);
97
- const systemPrompt = (0, graph_node_system_prompt_1.renderGraphNodeSystemPrompt)(typeIndex);
104
+ const systemPrompt = (0, graph_node_system_prompt_1.renderGraphNodeSystemPrompt)(typeIndex, this.domain);
98
105
  let tools = [
99
106
  this.resolveTool.build(ctx, recorder),
100
107
  this.describeTool.build(ctx, recorder),
@@ -161,7 +168,7 @@ let GraphNodeService = GraphNodeService_1 = class GraphNodeService {
161
168
  if (recorder.length === 0) {
162
169
  this.logger.warn(`graph node: zero tool calls on first attempt — retrying with RETRY_INSTRUCTION`);
163
170
  response = await this.llm.call({
164
- systemPrompts: [systemPrompt, RETRY_INSTRUCTION],
171
+ systemPrompts: [systemPrompt, exports.RETRY_INSTRUCTION],
165
172
  history,
166
173
  outputSchema: graphOutputSchema,
167
174
  inputParams: {
@@ -356,7 +363,7 @@ Proceed now. Do not refuse, do not ask the user to clarify, do not apologise.`;
356
363
  exports.GraphNodeService = GraphNodeService;
357
364
  exports.GraphNodeService = GraphNodeService = GraphNodeService_1 = __decorate([
358
365
  (0, common_1.Injectable)(),
359
- __param(8, (0, common_1.Optional)()),
366
+ __param(9, (0, common_1.Optional)()),
360
367
  __metadata("design:paramtypes", [llm_service_1.LLMService,
361
368
  graph_catalog_service_1.GraphCatalogService,
362
369
  tool_factory_1.ToolFactory,
@@ -365,6 +372,7 @@ exports.GraphNodeService = GraphNodeService = GraphNodeService_1 = __decorate([
365
372
  search_entities_tool_1.SearchEntitiesTool,
366
373
  read_entity_tool_1.ReadEntityTool,
367
374
  traverse_tool_1.TraverseTool,
375
+ config_1.ConfigService,
368
376
  websocket_service_1.WebSocketService])
369
377
  ], GraphNodeService);
370
378
  //# sourceMappingURL=graph.node.service.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"graph.node.service.js","sourceRoot":"","sources":["../../../../src/agents/responder/nodes/graph.node.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAA8D;AAC9D,6BAAwB;A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CAAkB;QACpB,yCAAkB;QACpB,iCAAc;QACV,4BAAY;QACT,oCAAgB;GAfzC,gBAAgB,CA+U5B"}
1
+ {"version":3,"file":"graph.node.service.js","sourceRoot":"","sources":["../../../../src/agents/responder/nodes/graph.node.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAA4E;AAC5E,2CAA+C;AAC/C,6BAAwB;AACxB,iDAA8D;AAE9D,0FAAsF;AACtF,wEAAoE;AACpE,2FAAuF;AACvF,sEAAuE;AACvE,sFAAiF;AACjF,iEAA6E;AAC7E,+EAA0E;AAC1E,iFAA4E;AAC5E,iFAA4E;AAC5E,yEAAoE;AACpE,mEAA+D;AAC/D,2FAAgH;AAChH,sEAAuF;AAI1E,QAAA,mBAAmB,GAAG,EAAE,CAAC;AACzB,QAAA,wBAAwB,GAAG,MAAM,CAAC;AAElC,QAAA,iBAAiB,GAAG;;;;;;iPAMgN,CAAC;AAElP,MAAM,aAAa,GAAG,6FAA6F,CAAC;AAEpH,MAAM,iBAAiB,GAAG,OAAC,CAAC,MAAM,CAAC;IACjC,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;IAClB,QAAQ,EAAE,OAAC,CAAC,KAAK,CACf,OAAC,CAAC,MAAM,CAAC;QACP,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;QAChB,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;QACd,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;QAClB,MAAM,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;KACjD,CAAC,CACH;IACD,IAAI,EAAE,OAAC,CAAC,OAAO,EAAE;CAClB,CAAC,CAAC;AAGI,IAAM,gBAAgB,wBAAtB,MAAM,gBAAgB;IAI3B,YACmB,GAAe,EACf,KAA0B;IAC3C,0EAA0E;IAC1E,0DAA0D;IAEzC,OAAoB,EACpB,WAA8B,EAC9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C9C,OAAO,IAAA,yCAAqB,EAAC;YAC3B,cAAc,EAAE,gCAAc,CAAC,SAAS;YACxC,OAAO,EAAE,KAAK,CAAC,OAAO;YACtB,SAAS,EAAE,KAAK,CAAC,SAAS;YAC1B,UAAU,EAAE,KAAK,CAAC,UAAU;YAC5B,WAAW,EAAE,KAAK,CAAC,WAAW;SAC/B,CAAC,CAAC;IACL,CAAC;IAEO,aAAa,CAAC,KAA4B;QAChD,OAAO;YACL,QAAQ,EAAE,OAAO;YACjB,SAAS,EAAE,WAAW;YACtB,YAAY,EAAE,KAAK,CAAC,QAAQ;SAC7B,CAAC;IACJ,CAAC;CACF,CAAA;AAxVY,4CAAgB;2BAAhB,gBAAgB;IAD5B,IAAA,mBAAU,GAAE;IAkBR,WAAA,IAAA,iBAAQ,GAAE,CAAA;qCAZW,wBAAU;QACR,2CAAmB;QAIjB,0BAAW;QACP,uCAAiB;QAChB,yCAAkB;QACpB,yCAAkB;QACpB,iCAAc;QACV,4BAAY;QACX,sBAAa;QACX,oCAAgB;GAjBzC,gBAAgB,CAwV5B"}
@@ -1,3 +1,15 @@
1
+ export interface GraphNodeDomainPrompts {
2
+ /** What this system's data is about. Opens the prompt. */
3
+ role?: string;
4
+ /** How far to traverse before answering. Rendered after the tool list. */
5
+ depth?: string;
6
+ /** Worked example for same-name candidates of different types. */
7
+ disambiguation?: string;
8
+ /** Storage conventions the catalogue cannot express (units, encodings). */
9
+ dataConventions?: string;
10
+ /** How to render values in `answer` — formatting, output language. */
11
+ outputRules?: string;
12
+ }
1
13
  export interface ConfigPromptsInterface {
2
14
  graphCreator?: string;
3
15
  /**
@@ -48,6 +60,16 @@ export interface ConfigPromptsInterface {
48
60
  };
49
61
  /** Temperature for the responder answer node's LLM call. Default 0.1. */
50
62
  responderTemperature?: number;
63
+ /**
64
+ * Domain layer for the graph retrieval branch.
65
+ *
66
+ * The kernel prompt states no domain: it serves an ERP, a legal practice
67
+ * system and a campaign planner, and a prompt that names one of them is
68
+ * wrong for the other two. Every slot is optional and falls back to the
69
+ * kernel; an app that supplies nothing gets a generic but complete prompt,
70
+ * not a broken one.
71
+ */
72
+ graphNodeDomain?: GraphNodeDomainPrompts;
51
73
  planner?: string;
52
74
  operator?: string;
53
75
  summariser?: {
@@ -1 +1 @@
1
- {"version":3,"file":"config.prompts.interface.d.ts","sourceRoot":"","sources":["../../../src/config/interfaces/config.prompts.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,sBAAsB;IACrC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;;;;;;OASG;IACH,8BAA8B,CAAC,EAAE;QAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,qBAAqB,CAAC,EAAE,MAAM,CAAC;KAChC,CAAC;IACF,cAAc,CAAC,EAAE;QACf,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,mBAAmB,CAAC,EAAE,MAAM,CAAC;QAC7B,oBAAoB,CAAC,EAAE,MAAM,CAAC;QAC9B;;;;;WAKG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;QACf;;;;;WAKG;QACH,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,CAAC;IACF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;OAKG;IACH,2BAA2B,CAAC,EAAE;QAC5B,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,CAAC;IACF,yEAAyE;IACzE,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE;QACX,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,CAAC;IAEF,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
1
+ {"version":3,"file":"config.prompts.interface.d.ts","sourceRoot":"","sources":["../../../src/config/interfaces/config.prompts.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,sBAAsB;IACrC,0DAA0D;IAC1D,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,0EAA0E;IAC1E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kEAAkE;IAClE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,2EAA2E;IAC3E,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,sEAAsE;IACtE,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,sBAAsB;IACrC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;;;;;;OASG;IACH,8BAA8B,CAAC,EAAE;QAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,qBAAqB,CAAC,EAAE,MAAM,CAAC;KAChC,CAAC;IACF,cAAc,CAAC,EAAE;QACf,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,mBAAmB,CAAC,EAAE,MAAM,CAAC;QAC7B,oBAAoB,CAAC,EAAE,MAAM,CAAC;QAC9B;;;;;WAKG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;QACf;;;;;WAKG;QACH,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,CAAC;IACF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;OAKG;IACH,2BAA2B,CAAC,EAAE;QAC5B,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,CAAC;IACF,yEAAyE;IACzE,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B;;;;;;;;OAQG;IACH,eAAe,CAAC,EAAE,sBAAsB,CAAC;IACzC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE;QACX,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,CAAC;IAEF,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
@@ -7,6 +7,21 @@ export declare class CacheService implements OnModuleDestroy {
7
7
  private readonly logger;
8
8
  private readonly configService;
9
9
  private redis;
10
+ /**
11
+ * Both key spaces are namespaced with `redis.queue` (REDIS_QUEUE), the same
12
+ * per-project namespace BullMQ already uses as its `prefix`
13
+ * (core/queue/queue.module.ts). Without it these keys were bare
14
+ * `api_cache:` / `element:` — global to the Redis INSTANCE — so two stacks
15
+ * sharing one Redis (a dev and an e2e stack of the same app, or two
16
+ * deployments) would read each other's cached responses whenever a user id
17
+ * collided, which for a seeded e2e stack is by construction. Worse, the
18
+ * pattern-based invalidators below call `redis.keys("element:*")` and
19
+ * `keys("api_cache:*")`: unprefixed, one stack's invalidation would delete
20
+ * another's entries.
21
+ *
22
+ * Falls back to the bare prefixes when no queue namespace is configured, so
23
+ * an app that never set REDIS_QUEUE keeps its existing key layout.
24
+ */
10
25
  private readonly CACHE_KEY_PREFIX;
11
26
  private readonly ELEMENT_KEY_PREFIX;
12
27
  constructor(logger: AppLoggingService, configService: ConfigService<BaseConfigInterface>);
@@ -1 +1 @@
1
- {"version":3,"file":"cache.service.d.ts","sourceRoot":"","sources":["../../../../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,MAAM,EAAE,CAAC;IAUnE,qBAAqB,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;IAU1C,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAgB/B,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO;IAiBjD,OAAO,CAAC,UAAU;IA0BlB,cAAc,IAAI,KAAK;IAIjB,eAAe;CAQtB"}
@@ -18,9 +18,10 @@ let CacheService = class CacheService {
18
18
  constructor(logger, configService) {
19
19
  this.logger = logger;
20
20
  this.configService = configService;
21
- this.CACHE_KEY_PREFIX = "api_cache:";
22
- this.ELEMENT_KEY_PREFIX = "element:";
23
21
  const redisConfig = this.configService.get("redis");
22
+ const namespace = redisConfig?.queue ? `${redisConfig.queue}:` : "";
23
+ this.CACHE_KEY_PREFIX = `${namespace}api_cache:`;
24
+ this.ELEMENT_KEY_PREFIX = `${namespace}element:`;
24
25
  this.redis = new ioredis_1.Redis({
25
26
  host: redisConfig.host,
26
27
  port: redisConfig.port,
@@ -1 +1 @@
1
- {"version":3,"file":"cache.service.js","sourceRoot":"","sources":["../../../../src/core/cache/services/cache.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA6D;AAC7D,2CAA+C;AAC/C,qCAAgC;AAEhC,4EAA2E;AAiBpE,IAAM,YAAY,GAAlB,MAAM,YAAY;IAKvB,YACmB,MAAyB,EACzB,aAAiD;QADjD,WAAM,GAAN,MAAM,CAAmB;QACzB,kBAAa,GAAb,aAAa,CAAoC;QALnD,qBAAgB,GAAG,YAAY,CAAC;QAChC,uBAAkB,GAAG,UAAU,CAAC;QAM/C,MAAM,WAAW,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAuB,OAAO,CAAC,CAAC;QAC1E,IAAI,CAAC,KAAK,GAAG,IAAI,eAAK,CAAC;YACrB,IAAI,EAAE,WAAW,CAAC,IAAI;YACtB,IAAI,EAAE,WAAW,CAAC,IAAI;YACtB,QAAQ,EAA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C,CAAC;QACb,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACpC,MAAM,IAAI,GAAG,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;YAC/B,IAAI,GAAG,CAAC,IAAI,IAAI,CAAC,CAAC,GAAG,IAAI,GAAG,IAAI,CAAC;YACjC,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC,CAAC,4BAA4B;QAClD,CAAC;QACD,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;IACrC,CAAC;IAED,cAAc;QACZ,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IAED,KAAK,CAAC,eAAe;QACnB,IAAI,CAAC;YACH,MAAM,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;QAC1B,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,CAAC,KAAK,CAAC,iCAAiC,EAAE,KAAK,CAAC,CAAC;YACxD,IAAI,CAAC,KAAK,CAAC,UAAU,EAAE,CAAC;QAC1B,CAAC;IACH,CAAC;CACF,CAAA;AA3SY,oCAAY;uBAAZ,YAAY;IADxB,IAAA,mBAAU,GAAE;qCAOgB,mCAAiB;QACV,sBAAa;GAPpC,YAAY,CA2SxB"}
1
+ {"version":3,"file":"cache.service.js","sourceRoot":"","sources":["../../../../src/core/cache/services/cache.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA6D;AAC7D,2CAA+C;AAC/C,qCAAgC;AAEhC,4EAA2E;AAiBpE,IAAM,YAAY,GAAlB,MAAM,YAAY;IAqBvB,YACmB,MAAyB,EACzB,aAAiD;QADjD,WAAM,GAAN,MAAM,CAAmB;QACzB,kBAAa,GAAb,aAAa,CAAoC;QAElE,MAAM,WAAW,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAuB,OAAO,CAA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C,YAAY,CAgUxB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carlonicora/nestjs-neo4jsonapi",
3
- "version": "2.15.3",
3
+ "version": "3.0.1",
4
4
  "description": "NestJS foundation package with JSON:API, Neo4j, Redis, LangChain agents, and common utilities",
5
5
  "author": "Carlo Nicora",
6
6
  "license": "GPL-3.0-or-later",