@newheap/platform-ai-chat 0.10.0 → 0.11.0

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.
@@ -220,10 +220,12 @@ var en = {
220
220
  "grant-source": {
221
221
  delegated: "On behalf of the initiator",
222
222
  agent: "Agent rights",
223
+ "delegated-read": "Read with a person's rights",
223
224
  "delegated-hint": "The agent used the rights of the person who started it.",
224
- "agent-hint": "The agent used a right it was granted itself, beyond the rights of the people involved."
225
+ "agent-hint": "The agent used a right it was granted itself, beyond the rights of the people involved.",
226
+ "delegated-read-hint": "The agent read this through the application's data gateway with the rights of the person who started it, or else of the person it works for. Only that person sees the result."
225
227
  },
226
- restricted: "Shielded: the agent obtained this with its own rights, which you do not have."
228
+ restricted: "Shielded: the agent obtained this with rights you do not have."
227
229
  },
228
230
  "tool-group": {
229
231
  running: "Calling {{name}}…",
@@ -394,6 +396,24 @@ var en = {
394
396
  "assistant-subject-access-denied": "Your role on this subject does not allow this.",
395
397
  "assistant-no-accountable-owner": "Nobody answers for this agent on this subject.",
396
398
  "assistant-agent-disabled": "This agent has been stopped.",
399
+ "assistant-agent-configured-off": "This agent is disabled in the application's configuration.",
400
+ "assistant-agent-paused": "This agent is paused; the request waits until it resumes.",
401
+ "assistant-agent-stopped": "This agent has been stopped.",
402
+ "assistant-run-token-limit": "This run stopped because it reached its token budget. What it did so far stays; an approver can resume it.",
403
+ "assistant-skill-stopped": "This skill of the agent has been stopped.",
404
+ "assistant-skill-paused": "This skill of the agent is paused; its events wait until it resumes.",
405
+ "assistant-skill-not-found": "The agent has no such skill.",
406
+ "assistant-skill-not-available": "That skill is not available now.",
407
+ "assistant-skill-switch-limit": "The run already switched skills as often as allowed.",
408
+ "assistant-handoff-unavailable": "Only an agent run can hand work to another agent.",
409
+ "assistant-handoff-not-accepted": "That agent does not accept this work from this agent.",
410
+ "assistant-handoff-subject-unavailable": "The subject does not exist or belongs to another organisation.",
411
+ "assistant-handoff-shadow-to-live": "An agent in shadow mode cannot hand work to an agent that works for real.",
412
+ "assistant-handoff-chain-limit": "The chain of hand-offs is as long as allowed or would return to an agent in it.",
413
+ "assistant-handoff-limit-reached": "This agent handed this subject to that agent as often as allowed today.",
414
+ "assistant-replay-not-shadow": "Only an agent in shadow mode can receive a replay, from another agent.",
415
+ "assistant-replay-active": "A replay into this variant is still running.",
416
+ "assistant-evaluation-not-variant": "That agent is not a shadow variant to compare with.",
397
417
  "assistant-agent-not-configured": "This agent cannot run on its own.",
398
418
  "assistant-run-not-found": "The run was not found.",
399
419
  "assistant-run-not-retryable": "This run cannot be retried.",
@@ -521,7 +541,7 @@ var en = {
521
541
  },
522
542
  agents: {
523
543
  title: "Agents",
524
- description: "Code agents come from the application; you can override, disable or reset them. Agents you create here can be deleted.",
544
+ description: "Code agents come from the application; you can override or reset them. Agents you create here can be deleted. Pause, stop and resume any agent; its definition stays as it is.",
525
545
  "new": "New agent",
526
546
  empty: "No agents yet.",
527
547
  "source-code": "Code",
@@ -529,6 +549,7 @@ var en = {
529
549
  overridden: "Overridden",
530
550
  reset: "Reset to code",
531
551
  "confirm-reset": "Confirm reset",
552
+ "reset-keeps-state": "Resetting restores the code definition; the agent stays active, paused or stopped as it is.",
532
553
  version: "Version {{version}}",
533
554
  "tool-count": "{{count}} tool selectors",
534
555
  "server-count": "{{count}} MCP servers",
@@ -539,7 +560,44 @@ var en = {
539
560
  simulate: "Simulate",
540
561
  execute: "Execute"
541
562
  },
542
- feedback: "Feedback"
563
+ feedback: "Feedback",
564
+ evaluation: "Evaluation",
565
+ state: {
566
+ active: "Active",
567
+ paused: "Paused",
568
+ stopped: "Stopped",
569
+ "configured-off": "Off in configuration",
570
+ "configured-off-hint": "Disabled in the application's code until the next deployment; it cannot be resumed here.",
571
+ changed: "Changed by {{user}} on {{date}}.",
572
+ reason: "Reason: {{reason}}",
573
+ waiting: "{{count}} events wait for the resume.",
574
+ "reason-label": "Reason (optional)",
575
+ action: {
576
+ active: "Resume",
577
+ paused: "Pause",
578
+ stopped: "Stop"
579
+ },
580
+ explain: {
581
+ active: "The agent works again. Every subject with waiting events gets one run.",
582
+ paused: "No new runs start. Events wait and run after the resume; running work finishes and approved proposals execute.",
583
+ stopped: "Active runs are cancelled, their open proposals withdrawn and waiting events dropped. Approved proposals wait until the agent works again."
584
+ },
585
+ confirm: {
586
+ active: "Confirm resume",
587
+ paused: "Confirm pause",
588
+ stopped: "Confirm stop"
589
+ }
590
+ },
591
+ skills: {
592
+ title: "Skills",
593
+ usage: "Today {{calls}} tool calls, {{tokens}} tokens",
594
+ budget: "Budget per day: {{calls}} tool calls, {{tokens}} tokens",
595
+ explain: {
596
+ active: "The skill {{skill}} works again. Every subject with events waiting for it gets one run.",
597
+ paused: "The skill {{skill}} starts no new runs: its events wait, triage no longer chooses it and running work finishes. The other skills keep working.",
598
+ stopped: "The runs of the skill {{skill}} are cancelled and its waiting events dropped; its triggers are refused. The other skills keep working."
599
+ }
600
+ }
543
601
  },
544
602
  "agent-editor": {
545
603
  "new-title": "New agent",
@@ -554,7 +612,7 @@ var en = {
554
612
  "autonomy-hint": "Only Execute allows changes, and every change still needs approval.",
555
613
  "required-policy": "Required policy",
556
614
  "required-policy-hint": "Optional. Only users who pass this policy see the agent.",
557
- enabled: "Agent is enabled",
615
+ "state-hint": "Pause, stop and resume the agent from the agent list. Saving never changes its state.",
558
616
  "tool-selectors": "Tool selectors",
559
617
  "tool-selectors-hint": "Choose tools from the catalog or add a pattern such as sample-api.project.*. MCP tools come from the assigned servers.",
560
618
  "add-selector": "Add pattern",
@@ -706,6 +764,77 @@ var en = {
706
764
  next: "Next",
707
765
  page: "Page {{page}} of {{pages}}",
708
766
  pages: "Pages"
767
+ },
768
+ evaluation: {
769
+ back: "Back to the agents",
770
+ title: "Evaluation of shadow variants",
771
+ description: "Compares a shadow variant with the live agent: the runs that handled the same events, the proposals both made or only one made, what people decided about the live ones, and what each cost.",
772
+ "export-hint": "The export holds identifiers, statuses, usage and proposal identities, no messages or arguments. It is audited.",
773
+ refresh: "Refresh",
774
+ "export": "Export JSON Lines",
775
+ exporting: "Exporting…",
776
+ variant: "Variant",
777
+ period: "Period",
778
+ "runs-title": "Runs",
779
+ runs: {
780
+ live: "Live agent",
781
+ variant: "Variant",
782
+ paired: "Same event",
783
+ replayed: "Replayed",
784
+ "live-unpaired": "Live only",
785
+ "variant-unpaired": "Variant only"
786
+ },
787
+ "small-numbers": "Small numbers mislead: read the counts next to every share.",
788
+ "replayed-hint": "Replayed runs saw today's state of each subject; a subject that changed since can explain a difference.",
789
+ truncated: "The period holds more runs than one evaluation reads; it covers the oldest ones.",
790
+ "tools-title": "Proposals per tool",
791
+ "tools-empty": "The paired runs made no proposals.",
792
+ columns: {
793
+ tool: "Tool",
794
+ agreed: "Agreed",
795
+ "live-only": "Live only",
796
+ "variant-only": "Variant only",
797
+ "rejected-not-proposed": "Rejected live, not proposed",
798
+ "rejected-also-proposed": "Rejected live, also proposed",
799
+ "approved-missed": "Approved live, missed",
800
+ "live-decisions": "Decisions on live proposals",
801
+ measure: "Measure",
802
+ live: "Live agent",
803
+ variant: "Variant",
804
+ "live-skill": "Live skill",
805
+ "variant-skill": "Variant skill",
806
+ runs: "Runs"
807
+ },
808
+ decisions: "{{pending}} pending, {{approved}} approved, {{executed}} executed, {{rejected}} rejected, {{stale}} stale",
809
+ "cost-title": "Cost",
810
+ cost: {
811
+ runs: "Runs",
812
+ "model-calls": "Model calls per run",
813
+ tokens: "Tokens per run",
814
+ "tool-calls": "Tool calls per run",
815
+ "average-p95": "{{average}} on average, p95 {{p95}} ({{total}} in total)"
816
+ },
817
+ "routing-title": "Routing",
818
+ "no-skill": "Own tools",
819
+ "differences-title": "Differences",
820
+ kind: {
821
+ "live-only": "Live only",
822
+ "variant-only": "Variant only"
823
+ },
824
+ "live-status": "Live: {{status}}",
825
+ replayed: "Replayed",
826
+ "open-live": "Open the live thread",
827
+ "open-variant": "Open the variant's thread",
828
+ "replay-title": "Replay",
829
+ "replay-hint": "Fires the live agent's recorded runs of the period into the variant, oldest first, against today's state of each subject; at most {{max}} runs. The variant's budget and limits apply.",
830
+ "replay-runs": "Runs to replay",
831
+ replay: "Replay the period",
832
+ "replay-status": {
833
+ running: "Running",
834
+ completed: "Completed",
835
+ stopped: "Stopped"
836
+ },
837
+ "replay-progress": "{{replayed}} of at most {{max}} runs replayed, {{skipped}} skipped"
709
838
  }
710
839
  },
711
840
  "page-context": {
@@ -870,6 +999,15 @@ var en = {
870
999
  "rule-then-model": "Rule, then the model"
871
1000
  },
872
1001
  trigger: "Trigger: {{trigger}}",
1002
+ skill: "Skill: {{skill}}",
1003
+ "handed-off-by": "Handed off by {{agent}}",
1004
+ "open-source-thread": "Open its thread",
1005
+ "skill-chosen-by": {
1006
+ trigger: "by its trigger",
1007
+ rules: "by the rules",
1008
+ triage: "by triage",
1009
+ model: "by the model"
1010
+ },
873
1011
  "tool-calls": "{{count}} tool calls",
874
1012
  tokens: "{{count}} tokens",
875
1013
  proposals: "{{count}} proposals",
@@ -1033,10 +1171,12 @@ var nl = {
1033
1171
  "grant-source": {
1034
1172
  delegated: "Namens de starter",
1035
1173
  agent: "Agentrechten",
1174
+ "delegated-read": "Gelezen met rechten van een persoon",
1036
1175
  "delegated-hint": "De agent gebruikte de rechten van de persoon die hem startte.",
1037
- "agent-hint": "De agent gebruikte een recht dat hij zelf heeft gekregen, boven de rechten van de betrokkenen uit."
1176
+ "agent-hint": "De agent gebruikte een recht dat hij zelf heeft gekregen, boven de rechten van de betrokkenen uit.",
1177
+ "delegated-read-hint": "De agent las dit via de datagateway van de applicatie met de rechten van wie hem startte, of anders van degene voor wie hij werkt. Alleen die persoon ziet het resultaat."
1038
1178
  },
1039
- restricted: "Afgeschermd: de agent kreeg dit met eigen rechten, die jij niet hebt."
1179
+ restricted: "Afgeschermd: de agent kreeg dit met rechten die jij niet hebt."
1040
1180
  },
1041
1181
  "tool-group": {
1042
1182
  running: "Roept {{name}} aan…",
@@ -1207,6 +1347,24 @@ var nl = {
1207
1347
  "assistant-subject-access-denied": "Je rol op dit onderwerp staat dit niet toe.",
1208
1348
  "assistant-no-accountable-owner": "Niemand staat voor deze agent op dit onderwerp in.",
1209
1349
  "assistant-agent-disabled": "Deze agent is stopgezet.",
1350
+ "assistant-agent-configured-off": "Deze agent is uitgeschakeld in de configuratie van de applicatie.",
1351
+ "assistant-agent-paused": "Deze agent is gepauzeerd; het verzoek wacht tot hij hervat wordt.",
1352
+ "assistant-agent-stopped": "Deze agent is gestopt.",
1353
+ "assistant-run-token-limit": "Deze run is gestopt omdat hij zijn tokenbudget heeft bereikt. Wat hij al deed blijft staan; een goedkeurder kan hem hervatten.",
1354
+ "assistant-skill-stopped": "Deze vaardigheid van de agent is gestopt.",
1355
+ "assistant-skill-paused": "Deze vaardigheid van de agent is gepauzeerd; haar gebeurtenissen wachten tot ze hervat wordt.",
1356
+ "assistant-skill-not-found": "De agent heeft deze vaardigheid niet.",
1357
+ "assistant-skill-not-available": "Die vaardigheid is nu niet beschikbaar.",
1358
+ "assistant-skill-switch-limit": "De run is al zo vaak van vaardigheid gewisseld als mag.",
1359
+ "assistant-handoff-unavailable": "Alleen een agentrun kan werk overdragen aan een andere agent.",
1360
+ "assistant-handoff-not-accepted": "Die agent neemt dit werk niet aan van deze agent.",
1361
+ "assistant-handoff-subject-unavailable": "Het onderwerp bestaat niet of hoort bij een andere organisatie.",
1362
+ "assistant-handoff-shadow-to-live": "Een agent in schaduwmodus kan geen werk overdragen aan een agent die echt werkt.",
1363
+ "assistant-handoff-chain-limit": "De keten van overdrachten is zo lang als toegestaan of zou terugkeren naar een agent erin.",
1364
+ "assistant-handoff-limit-reached": "Deze agent heeft dit onderwerp vandaag zo vaak als toegestaan aan die agent overgedragen.",
1365
+ "assistant-replay-not-shadow": "Alleen een agent in schaduwmodus kan een herhaling ontvangen, van een andere agent.",
1366
+ "assistant-replay-active": "Er loopt nog een herhaling naar deze variant.",
1367
+ "assistant-evaluation-not-variant": "Die agent is geen schaduwvariant om mee te vergelijken.",
1210
1368
  "assistant-agent-not-configured": "Deze agent kan niet zelfstandig werken.",
1211
1369
  "assistant-run-not-found": "De run is niet gevonden.",
1212
1370
  "assistant-run-not-retryable": "Deze run kan niet opnieuw worden gestart.",
@@ -1334,7 +1492,7 @@ var nl = {
1334
1492
  },
1335
1493
  agents: {
1336
1494
  title: "Agents",
1337
- description: "Code-agents komen uit de applicatie; je kunt ze overschrijven, uitzetten of terugzetten. Agents die je hier aanmaakt, kun je verwijderen.",
1495
+ description: "Code-agents komen uit de applicatie; je kunt ze overschrijven of terugzetten. Agents die je hier aanmaakt, kun je verwijderen. Elke agent kun je pauzeren, stoppen en hervatten; de definitie blijft dan zoals hij is.",
1338
1496
  "new": "Nieuwe agent",
1339
1497
  empty: "Nog geen agents.",
1340
1498
  "source-code": "Code",
@@ -1342,6 +1500,7 @@ var nl = {
1342
1500
  overridden: "Overschreven",
1343
1501
  reset: "Terugzetten naar code",
1344
1502
  "confirm-reset": "Terugzetten bevestigen",
1503
+ "reset-keeps-state": "Terugzetten herstelt de definitie uit de code; de agent blijft actief, gepauzeerd of gestopt zoals hij is.",
1345
1504
  version: "Versie {{version}}",
1346
1505
  "tool-count": "{{count}} toolselectors",
1347
1506
  "server-count": "{{count}} MCP-servers",
@@ -1352,7 +1511,44 @@ var nl = {
1352
1511
  simulate: "Simuleren",
1353
1512
  execute: "Uitvoeren"
1354
1513
  },
1355
- feedback: "Feedback"
1514
+ feedback: "Feedback",
1515
+ evaluation: "Evaluatie",
1516
+ state: {
1517
+ active: "Actief",
1518
+ paused: "Gepauzeerd",
1519
+ stopped: "Gestopt",
1520
+ "configured-off": "Uit in configuratie",
1521
+ "configured-off-hint": "Uitgeschakeld in de code van de applicatie tot de volgende deployment; hier kun je de agent niet hervatten.",
1522
+ changed: "Gewijzigd door {{user}} op {{date}}.",
1523
+ reason: "Reden: {{reason}}",
1524
+ waiting: "{{count}} gebeurtenissen wachten op het hervatten.",
1525
+ "reason-label": "Reden (optioneel)",
1526
+ action: {
1527
+ active: "Hervatten",
1528
+ paused: "Pauzeren",
1529
+ stopped: "Stoppen"
1530
+ },
1531
+ explain: {
1532
+ active: "De agent werkt weer. Elk onderwerp met wachtende gebeurtenissen krijgt één run.",
1533
+ paused: "Er starten geen nieuwe runs. Gebeurtenissen wachten en lopen na het hervatten; lopend werk wordt afgemaakt en goedgekeurde voorstellen worden uitgevoerd.",
1534
+ stopped: "Actieve runs worden geannuleerd, hun open voorstellen ingetrokken en wachtende gebeurtenissen vervallen. Goedgekeurde voorstellen wachten tot de agent weer werkt."
1535
+ },
1536
+ confirm: {
1537
+ active: "Hervatten bevestigen",
1538
+ paused: "Pauze bevestigen",
1539
+ stopped: "Stop bevestigen"
1540
+ }
1541
+ },
1542
+ skills: {
1543
+ title: "Vaardigheden",
1544
+ usage: "Vandaag {{calls}} toolaanroepen, {{tokens}} tokens",
1545
+ budget: "Budget per dag: {{calls}} toolaanroepen, {{tokens}} tokens",
1546
+ explain: {
1547
+ active: "De vaardigheid {{skill}} werkt weer. Elk onderwerp met gebeurtenissen die erop wachten krijgt één run.",
1548
+ paused: "De vaardigheid {{skill}} start geen nieuwe runs: haar gebeurtenissen wachten, triage kiest haar niet meer en lopend werk wordt afgemaakt. De andere vaardigheden werken door.",
1549
+ stopped: "De runs van de vaardigheid {{skill}} worden geannuleerd en haar wachtende gebeurtenissen vervallen; haar triggers worden geweigerd. De andere vaardigheden werken door."
1550
+ }
1551
+ }
1356
1552
  },
1357
1553
  "agent-editor": {
1358
1554
  "new-title": "Nieuwe agent",
@@ -1367,7 +1563,7 @@ var nl = {
1367
1563
  "autonomy-hint": "Alleen Uitvoeren staat wijzigingen toe, en elke wijziging vraagt nog steeds om goedkeuring.",
1368
1564
  "required-policy": "Vereiste policy",
1369
1565
  "required-policy-hint": "Optioneel. Alleen gebruikers die aan deze policy voldoen zien de agent.",
1370
- enabled: "Agent staat aan",
1566
+ "state-hint": "Pauzeer, stop en hervat de agent vanuit de lijst met agents. Opslaan verandert de stand nooit.",
1371
1567
  "tool-selectors": "Toolselectors",
1372
1568
  "tool-selectors-hint": "Kies tools uit de catalogus of voeg een patroon toe, zoals sample-api.project.*. MCP-tools komen van de toegewezen servers.",
1373
1569
  "add-selector": "Patroon toevoegen",
@@ -1519,6 +1715,77 @@ var nl = {
1519
1715
  next: "Volgende",
1520
1716
  page: "Pagina {{page}} van {{pages}}",
1521
1717
  pages: "Pagina's"
1718
+ },
1719
+ evaluation: {
1720
+ back: "Terug naar de agents",
1721
+ title: "Evaluatie van schaduwvarianten",
1722
+ description: "Vergelijkt een schaduwvariant met de live agent: de runs die dezelfde gebeurtenissen behandelden, de voorstellen die beide of maar één deed, wat mensen over de live voorstellen besloten, en wat elk kostte.",
1723
+ "export-hint": "De export bevat id's, statussen, gebruik en identiteiten van voorstellen, geen berichten of argumenten. De export wordt geaudit.",
1724
+ refresh: "Vernieuwen",
1725
+ "export": "Exporteren als JSON Lines",
1726
+ exporting: "Exporteren…",
1727
+ variant: "Variant",
1728
+ period: "Periode",
1729
+ "runs-title": "Runs",
1730
+ runs: {
1731
+ live: "Live agent",
1732
+ variant: "Variant",
1733
+ paired: "Zelfde gebeurtenis",
1734
+ replayed: "Herhaald",
1735
+ "live-unpaired": "Alleen live",
1736
+ "variant-unpaired": "Alleen variant"
1737
+ },
1738
+ "small-numbers": "Kleine aantallen misleiden: lees de aantallen naast elk percentage.",
1739
+ "replayed-hint": "Herhaalde runs zagen de huidige stand van elk onderwerp; een onderwerp dat sindsdien veranderde, kan een verschil verklaren.",
1740
+ truncated: "De periode bevat meer runs dan één evaluatie leest; ze dekt de oudste.",
1741
+ "tools-title": "Voorstellen per tool",
1742
+ "tools-empty": "De gekoppelde runs deden geen voorstellen.",
1743
+ columns: {
1744
+ tool: "Tool",
1745
+ agreed: "Gelijk",
1746
+ "live-only": "Alleen live",
1747
+ "variant-only": "Alleen variant",
1748
+ "rejected-not-proposed": "Live afgewezen, niet voorgesteld",
1749
+ "rejected-also-proposed": "Live afgewezen, ook voorgesteld",
1750
+ "approved-missed": "Live goedgekeurd, gemist",
1751
+ "live-decisions": "Besluiten over live voorstellen",
1752
+ measure: "Maat",
1753
+ live: "Live agent",
1754
+ variant: "Variant",
1755
+ "live-skill": "Vaardigheid live",
1756
+ "variant-skill": "Vaardigheid variant",
1757
+ runs: "Runs"
1758
+ },
1759
+ decisions: "{{pending}} open, {{approved}} goedgekeurd, {{executed}} uitgevoerd, {{rejected}} afgewezen, {{stale}} verouderd",
1760
+ "cost-title": "Kosten",
1761
+ cost: {
1762
+ runs: "Runs",
1763
+ "model-calls": "Modelaanroepen per run",
1764
+ tokens: "Tokens per run",
1765
+ "tool-calls": "Toolaanroepen per run",
1766
+ "average-p95": "gemiddeld {{average}}, p95 {{p95}} ({{total}} in totaal)"
1767
+ },
1768
+ "routing-title": "Routering",
1769
+ "no-skill": "Eigen tools",
1770
+ "differences-title": "Verschillen",
1771
+ kind: {
1772
+ "live-only": "Alleen live",
1773
+ "variant-only": "Alleen variant"
1774
+ },
1775
+ "live-status": "Live: {{status}}",
1776
+ replayed: "Herhaald",
1777
+ "open-live": "Open de live thread",
1778
+ "open-variant": "Open de thread van de variant",
1779
+ "replay-title": "Herhaling",
1780
+ "replay-hint": "Stuurt de vastgelegde runs van de live agent in de periode naar de variant, oudste eerst, tegen de huidige stand van elk onderwerp; hoogstens {{max}} runs. Het budget en de limieten van de variant gelden.",
1781
+ "replay-runs": "Te herhalen runs",
1782
+ replay: "Periode herhalen",
1783
+ "replay-status": {
1784
+ running: "Bezig",
1785
+ completed: "Voltooid",
1786
+ stopped: "Gestopt"
1787
+ },
1788
+ "replay-progress": "{{replayed}} van hoogstens {{max}} runs herhaald, {{skipped}} overgeslagen"
1522
1789
  }
1523
1790
  },
1524
1791
  "page-context": {
@@ -1683,6 +1950,15 @@ var nl = {
1683
1950
  "rule-then-model": "Regel, daarna het model"
1684
1951
  },
1685
1952
  trigger: "Aanleiding: {{trigger}}",
1953
+ skill: "Vaardigheid: {{skill}}",
1954
+ "handed-off-by": "Overgedragen door {{agent}}",
1955
+ "open-source-thread": "Open de thread",
1956
+ "skill-chosen-by": {
1957
+ trigger: "door de trigger",
1958
+ rules: "door de regels",
1959
+ triage: "door triage",
1960
+ model: "door het model"
1961
+ },
1686
1962
  "tool-calls": "{{count}} tool-aanroepen",
1687
1963
  tokens: "{{count}} tokens",
1688
1964
  proposals: "{{count}} voorstellen",
@@ -1987,11 +2263,27 @@ class NhAssistantAdminApiService {
1987
2263
  updateAgent(agentId, request) {
1988
2264
  return this.request('PUT', `admin/agents/${encodeURIComponent(agentId)}`, request);
1989
2265
  }
1990
- /** Restores a code agent to its definition in code. */
2266
+ /** Restores a code agent to its definition in code. The run state stays as it is. */
1991
2267
  resetAgent(agentId) {
1992
2268
  return this.request('POST', `admin/agents/${encodeURIComponent(agentId)}/reset`);
1993
2269
  }
1994
- /** Deletes an admin agent. Code agents cannot be deleted; disable them instead. */
2270
+ getAgentState(agentId) {
2271
+ return this.request('GET', `admin/agents/${encodeURIComponent(agentId)}/state`);
2272
+ }
2273
+ /**
2274
+ * Pauses, stops or resumes an agent without changing its definition. A code-disabled agent
2275
+ * cannot be resumed (`assistant-agent-configured-off`).
2276
+ */
2277
+ setAgentState(agentId, request) {
2278
+ return this.request('POST', `admin/agents/${encodeURIComponent(agentId)}/state`, request);
2279
+ }
2280
+ /**
2281
+ * Pauses, stops or resumes one skill of an agent; its other skills keep working.
2282
+ */
2283
+ setSkillState(agentId, skillId, request) {
2284
+ return this.request('POST', `admin/agents/${encodeURIComponent(agentId)}/skills/${encodeURIComponent(skillId)}/state`, request);
2285
+ }
2286
+ /** Deletes an admin agent. Code agents cannot be deleted; stop them instead. */
1995
2287
  deleteAgent(agentId) {
1996
2288
  return this.request('DELETE', `admin/agents/${encodeURIComponent(agentId)}`);
1997
2289
  }
@@ -2037,8 +2329,35 @@ class NhAssistantAdminApiService {
2037
2329
  * Downloads the feedback as JSON Lines with the tool input of each proposal. The file holds
2038
2330
  * subject data and the server audits the export. Rejects with `NhAssistantApiError`.
2039
2331
  */
2040
- async exportAgentFeedback(agentId, filter = {}) {
2041
- const path = withQuery(`${feedbackPath(agentId)}/export`, filter);
2332
+ exportAgentFeedback(agentId, filter = {}) {
2333
+ return this.download(withQuery(`${feedbackPath(agentId)}/export`, filter));
2334
+ }
2335
+ /**
2336
+ * Compares a shadow variant with its live agent over a period: the runs that handled the same
2337
+ * events, the proposals per tool with what people decided about the live ones, cost and routing.
2338
+ */
2339
+ getAgentEvaluation(agentId, filter) {
2340
+ return this.request('GET', withQuery(`${agentPath(agentId)}/evaluation`, filter));
2341
+ }
2342
+ /**
2343
+ * Downloads the paired runs of the comparison as JSON Lines: identifiers, statuses, usage and
2344
+ * proposal identities, no content. The server audits the export. Rejects with `NhAssistantApiError`.
2345
+ */
2346
+ exportAgentEvaluation(agentId, filter) {
2347
+ return this.download(withQuery(`${agentPath(agentId)}/evaluation/export`, filter));
2348
+ }
2349
+ /**
2350
+ * Replays the recorded runs of another agent in a period into a shadow variant, against today's
2351
+ * state of each subject. One replay runs per variant (`assistant-replay-active`).
2352
+ */
2353
+ startAgentReplay(variantId, request) {
2354
+ return this.request('POST', `${agentPath(variantId)}/replay`, request);
2355
+ }
2356
+ /** The latest replays into a shadow variant, newest first. */
2357
+ getAgentReplays(variantId) {
2358
+ return this.request('GET', `${agentPath(variantId)}/replays`);
2359
+ }
2360
+ async download(path) {
2042
2361
  let response;
2043
2362
  try {
2044
2363
  response = await this.transport.fetch('GET', path, 'application/x-ndjson', undefined, new AbortController().signal);
@@ -2063,7 +2382,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImpo
2063
2382
  type: Injectable
2064
2383
  }] });
2065
2384
  function feedbackPath(agentId) {
2066
- return `admin/agents/${encodeURIComponent(agentId)}/feedback`;
2385
+ return `${agentPath(agentId)}/feedback`;
2386
+ }
2387
+ function agentPath(agentId) {
2388
+ return `admin/agents/${encodeURIComponent(agentId)}`;
2067
2389
  }
2068
2390
  /** Appends the filter values that are set as query parameters. */
2069
2391
  function withQuery(path, filter) {