@graphrefly/graphrefly 0.31.0 → 0.33.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.
- package/dist/{cascading-D3sapjue.d.ts → cascading-Bg0a4VSf.d.ts} +2 -2
- package/dist/{cascading-BfQmSmjU.d.cts → cascading-DKIb6Pk8.d.cts} +2 -2
- package/dist/chunk-2JO6LXFT.js +7 -0
- package/dist/{chunk-FTA5TB2A.js → chunk-2LZ6DL45.js} +1 -1
- package/dist/{chunk-WQ7I7JVU.js → chunk-4F564IPP.js} +1 -1
- package/dist/{chunk-YQJPYEAL.js → chunk-4NYSEUKV.js} +1 -1
- package/dist/{chunk-N2KKISCE.js → chunk-533RQFF6.js} +1 -1
- package/dist/{chunk-ZM7C2FUM.js → chunk-55T3K37W.js} +1 -1
- package/dist/chunk-6HQ6HVTF.js +1 -0
- package/dist/{chunk-4VXL3UZK.js → chunk-7Q2WPFQ7.js} +1 -1
- package/dist/{chunk-3Q2WXM6X.js → chunk-BY4WKPKM.js} +1 -1
- package/dist/{chunk-4ZPO2EL5.js → chunk-C5DINHNP.js} +1 -1
- package/dist/{chunk-I4U3TPK2.js → chunk-CJMFZXIZ.js} +1 -1
- package/dist/{chunk-W6FQIFVE.js → chunk-CLD3F4R5.js} +1 -1
- package/dist/chunk-DUK7LTJO.js +43 -0
- package/dist/{chunk-RWGJQQLT.js → chunk-FKRPIRE6.js} +1 -1
- package/dist/{chunk-PZP4MEXK.js → chunk-GAOX6OPT.js} +1 -1
- package/dist/{chunk-OKQUPJRY.js → chunk-GCUYSIM4.js} +1 -1
- package/dist/chunk-HIJ2RKVP.js +1 -0
- package/dist/{chunk-XRSHMHEG.js → chunk-HTBOCKVD.js} +1 -1
- package/dist/{chunk-JXRZXP3N.js → chunk-IB64M7VP.js} +1 -1
- package/dist/{chunk-Q2SY7M7K.js → chunk-IJFSR4NU.js} +1 -1
- package/dist/{chunk-YZKGGMPT.js → chunk-INXDSJRC.js} +1 -1
- package/dist/{chunk-WLPVGXQ6.js → chunk-IPNJDNE7.js} +1 -1
- package/dist/{chunk-4UUDNFYG.js → chunk-KGKJCHEK.js} +1 -1
- package/dist/{chunk-A4JT4SAD.js → chunk-KRH66M4O.js} +1 -1
- package/dist/{chunk-K54OKWNY.js → chunk-L3KUKDZC.js} +1 -1
- package/dist/{chunk-Y26UN6J5.js → chunk-LOF5HSD3.js} +1 -1
- package/dist/chunk-LYCLF26R.js +1 -0
- package/dist/{chunk-CZVYLXFK.js → chunk-M27MVZCP.js} +1 -1
- package/dist/{chunk-DWIAG62L.js → chunk-NNKJUORL.js} +1 -1
- package/dist/{chunk-PNTBXOQ6.js → chunk-O2WY22L7.js} +1 -1
- package/dist/{chunk-JMGGCSIC.js → chunk-PBN426RU.js} +1 -1
- package/dist/{chunk-7EQPXQ7H.js → chunk-Q46YJCQH.js} +1 -1
- package/dist/{chunk-4KAUNEKV.js → chunk-SFIM774L.js} +1 -1
- package/dist/{chunk-EBQ6FXKW.js → chunk-T2TB37TW.js} +1 -1
- package/dist/{chunk-UMH3HSP7.js → chunk-T7EQPKOP.js} +1 -1
- package/dist/{chunk-3JRKP4BH.js → chunk-TONEKQM3.js} +1 -1
- package/dist/{chunk-GF5T7PGC.js → chunk-TZLEMGAK.js} +1 -1
- package/dist/{chunk-LWGLBCMU.js → chunk-TZQPPQEQ.js} +1 -1
- package/dist/chunk-U2T2XWDA.js +80 -0
- package/dist/{chunk-7EJTWGKW.js → chunk-UF746BQ4.js} +1 -1
- package/dist/{chunk-7QMVU3IX.js → chunk-WBWBY6LI.js} +1 -1
- package/dist/{chunk-WYJTXYWX.js → chunk-Y63GWRHO.js} +1 -1
- package/dist/{chunk-YZ6VYLFD.js → chunk-YDWTVO4E.js} +1 -1
- package/dist/{chunk-Z3UWIJ3A.js → chunk-YUBV7EEE.js} +1 -1
- package/dist/chunk-Z4GXBOWO.js +61 -0
- package/dist/compat/index.cjs +5 -5
- package/dist/compat/index.d.cts +14 -14
- package/dist/compat/index.d.ts +14 -14
- package/dist/compat/index.js +1 -1
- package/dist/compat/jotai/index.cjs +1 -1
- package/dist/compat/jotai/index.d.cts +2 -2
- package/dist/compat/jotai/index.d.ts +2 -2
- package/dist/compat/jotai/index.js +1 -1
- package/dist/compat/nanostores/index.cjs +1 -1
- package/dist/compat/nanostores/index.d.cts +2 -2
- package/dist/compat/nanostores/index.d.ts +2 -2
- package/dist/compat/nanostores/index.js +1 -1
- package/dist/compat/nestjs/index.cjs +5 -5
- package/dist/compat/nestjs/index.d.cts +6 -6
- package/dist/compat/nestjs/index.d.ts +6 -6
- package/dist/compat/nestjs/index.js +1 -1
- package/dist/compat/react/index.d.cts +2 -2
- package/dist/compat/react/index.d.ts +2 -2
- package/dist/compat/solid/index.d.cts +2 -2
- package/dist/compat/solid/index.d.ts +2 -2
- package/dist/compat/svelte/index.d.cts +2 -2
- package/dist/compat/svelte/index.d.ts +2 -2
- package/dist/compat/vue/index.d.cts +2 -2
- package/dist/compat/vue/index.d.ts +2 -2
- package/dist/compat/zustand/index.cjs +3 -3
- package/dist/compat/zustand/index.d.cts +4 -4
- package/dist/compat/zustand/index.d.ts +4 -4
- package/dist/compat/zustand/index.js +1 -1
- package/dist/{composite-BY9hMxN7.d.ts → composite-BPDU_XV1.d.ts} +2 -2
- package/dist/{composite-CH0S8DFn.d.cts → composite-CmvdhTJe.d.cts} +2 -2
- package/dist/core/index.cjs +1 -1
- package/dist/core/index.d.cts +4 -4
- package/dist/core/index.d.ts +4 -4
- package/dist/core/index.js +1 -1
- package/dist/extra/browser.cjs +1 -1
- package/dist/extra/browser.d.cts +1 -1
- package/dist/extra/browser.d.ts +1 -1
- package/dist/extra/browser.js +1 -1
- package/dist/extra/index.cjs +16 -16
- package/dist/extra/index.d.cts +9 -9
- package/dist/extra/index.d.ts +9 -9
- package/dist/extra/index.js +1 -1
- package/dist/extra/node.cjs +1 -1
- package/dist/extra/node.d.cts +1 -1
- package/dist/extra/node.d.ts +1 -1
- package/dist/extra/node.js +1 -1
- package/dist/extra/operators.cjs +1 -1
- package/dist/extra/operators.d.cts +1 -1
- package/dist/extra/operators.d.ts +1 -1
- package/dist/extra/operators.js +1 -1
- package/dist/extra/reactive.cjs +1 -1
- package/dist/extra/reactive.d.cts +3 -3
- package/dist/extra/reactive.d.ts +3 -3
- package/dist/extra/reactive.js +1 -1
- package/dist/extra/sources.cjs +1 -1
- package/dist/extra/sources.d.cts +1 -1
- package/dist/extra/sources.d.ts +1 -1
- package/dist/extra/sources.js +1 -1
- package/dist/extra/storage-browser.cjs +1 -1
- package/dist/extra/storage-browser.d.cts +1 -1
- package/dist/extra/storage-browser.d.ts +1 -1
- package/dist/extra/storage-browser.js +1 -1
- package/dist/{fallback-Cb3GH1O7.d.cts → fallback-9YznPvPP.d.cts} +1 -1
- package/dist/{fallback-DRjJ_ZM8.d.ts → fallback-mYSd8vQo.d.ts} +1 -1
- package/dist/graph/index.cjs +4 -4
- package/dist/graph/index.d.cts +5 -5
- package/dist/graph/index.d.ts +5 -5
- package/dist/graph/index.js +1 -1
- package/dist/{graph-CWeI0aHd.d.ts → graph-BROUZPG9.d.ts} +12 -2
- package/dist/{graph-C4Uxwv0T.d.cts → graph-DaoydJ_u.d.cts} +12 -2
- package/dist/{index-BXzl1NDD.d.ts → index--BTb6HUO.d.ts} +332 -108
- package/dist/{index-Dm3_D5Ta.d.cts → index-B-KCkW4M.d.cts} +4 -4
- package/dist/{index-CDK5RsV5.d.cts → index-B1hFhK1K.d.cts} +1 -1
- package/dist/{index-CJymKyzT.d.ts → index-B5eS17Bz.d.ts} +7 -7
- package/dist/{index-UZO988ox.d.cts → index-BDEhWLF4.d.cts} +3 -3
- package/dist/{index-DGb1awva.d.ts → index-BFHpNSsV.d.ts} +4 -4
- package/dist/{index-DDo-eqQ4.d.cts → index-BO6t0HjV.d.cts} +1 -1
- package/dist/{index-CrC7urhX.d.ts → index-BRisOxlx.d.ts} +1 -1
- package/dist/{index-CfFYyLR8.d.ts → index-BUtCR0k6.d.ts} +13 -4
- package/dist/{index-BydMDMf7.d.cts → index-BVTjuKeP.d.cts} +1 -1
- package/dist/{index-BX22kvjh.d.ts → index-BWiX5foT.d.ts} +1 -1
- package/dist/{index-DxMS0cHM.d.ts → index-Bd2AjMQY.d.ts} +2 -2
- package/dist/{index-CvS9IuTG.d.ts → index-Bi4ZP6Hc.d.ts} +2 -2
- package/dist/{index-D-kHVedZ.d.cts → index-BkfL5MXh.d.cts} +24 -3
- package/dist/{index-9iguV3bF.d.cts → index-BpjQanLs.d.cts} +2 -2
- package/dist/{index-D9HrBx2J.d.ts → index-BsxqmV6u.d.ts} +2 -2
- package/dist/{index-DVNLe3pS.d.cts → index-C2Dey3L-.d.cts} +12 -3
- package/dist/{index-CwhcFzTA.d.ts → index-C5uMGVJw.d.ts} +4 -4
- package/dist/{index-D9Y_u6BG.d.cts → index-C8_bnDBZ.d.cts} +3 -3
- package/dist/{index-C5Ghnp5B.d.ts → index-CD7qmvSf.d.ts} +3 -3
- package/dist/{index-wIx1Jisk.d.ts → index-CI5fULSz.d.ts} +1 -1
- package/dist/{index-BBINVimG.d.ts → index-CNxdDb2e.d.ts} +3 -3
- package/dist/{index-FBqTfL_S.d.cts → index-CQ1gt4rn.d.cts} +1 -1
- package/dist/{index-DD7RhHNJ.d.cts → index-C_cXlbu0.d.cts} +332 -108
- package/dist/{index-B-z8WaSd.d.cts → index-Ccv_61jG.d.cts} +2 -2
- package/dist/{index-RQg6lTrN.d.ts → index-Ced0dphF.d.ts} +9 -9
- package/dist/{index-DylQCKEL.d.cts → index-ChZvMC4M.d.cts} +13 -4
- package/dist/{index-CcS0t-l2.d.ts → index-Chi9IiHJ.d.ts} +24 -3
- package/dist/{index-CcpEvuPl.d.cts → index-ClJUZAOr.d.cts} +18 -3
- package/dist/{index-D7XxY1Ff.d.cts → index-ClKm7CFB.d.cts} +1 -1
- package/dist/{index-C98oJsEs.d.cts → index-Cn3taOmp.d.cts} +2 -2
- package/dist/{index-yIdWFo2b.d.cts → index-CoR-tOZA.d.cts} +4 -4
- package/dist/{index-BpFWP7Bq.d.cts → index-Cp91Sxbo.d.cts} +5 -4
- package/dist/{index-IZ3l_vQ9.d.ts → index-Cq7Uqgu4.d.ts} +2 -2
- package/dist/{index-DBQUKh59.d.cts → index-D23g00HE.d.cts} +4 -4
- package/dist/{index-Docdiu9a.d.ts → index-D80nGRb9.d.ts} +3 -3
- package/dist/{index-Bd6oFZqO.d.ts → index-DDf8PoPO.d.ts} +439 -67
- package/dist/{index-CRAkoq-y.d.cts → index-DR3XqZlV.d.cts} +1 -1
- package/dist/{index-BANwzwBV.d.ts → index-Db21wuaD.d.ts} +5 -4
- package/dist/{index-CZChc85Q.d.cts → index-Dgcd59CJ.d.cts} +439 -67
- package/dist/{index-CIXaiYDE.d.cts → index-DhWrMTI6.d.cts} +1 -1
- package/dist/{index-CotRMjtJ.d.ts → index-DheNs40A.d.ts} +2 -2
- package/dist/{index-C6NBfXj-.d.ts → index-Dia4yc2y.d.ts} +3 -3
- package/dist/{index-Bs3-LC83.d.cts → index-Ds3Rz9m9.d.cts} +3 -3
- package/dist/{index-FrYrV-Vf.d.ts → index-Dtpr2FIB.d.ts} +18 -3
- package/dist/{index-ByPnK85n.d.ts → index-DupIl9wI.d.ts} +1 -1
- package/dist/{index-B5iVOD7w.d.ts → index-DuvQAU02.d.ts} +2 -2
- package/dist/{index-D0C_USMR.d.ts → index-DxEcY7Om.d.ts} +1 -1
- package/dist/{index-CFW32Dy1.d.ts → index-HvJ90_tX.d.ts} +12 -3
- package/dist/{index-DR3gf_DG.d.cts → index-Jgl7ev9I.d.cts} +9 -9
- package/dist/{index-BMe3pCom.d.cts → index-RJX4snyi.d.cts} +2 -2
- package/dist/{index-gJQqJTKx.d.cts → index-ZIQaKIdY.d.cts} +7 -7
- package/dist/{index-BEpRsvhg.d.ts → index-b4a6Sg0R.d.ts} +4 -4
- package/dist/{index-lKuLYmHO.d.cts → index-iKsmdnq6.d.cts} +2 -2
- package/dist/{index-Bvi5uJxX.d.ts → index-nP13Qe6T.d.ts} +1 -1
- package/dist/{index-iBp74eGU.d.cts → index-p0bkNfby.d.cts} +3 -3
- package/dist/{index-SSGqF8mI.d.cts → index-wcfc7W-f.d.cts} +2 -2
- package/dist/{index-Cy7eFeIX.d.cts → index-yJY9thRY.d.cts} +2 -2
- package/dist/{index-DnrZghBB.d.ts → index-ygRFoyrN.d.ts} +2 -2
- package/dist/{index-Ip3q9T9x.d.ts → index-zA1uVtk0.d.ts} +1 -1
- package/dist/index.cjs +53 -50
- package/dist/index.d.cts +44 -44
- package/dist/index.d.ts +44 -44
- package/dist/index.js +1 -1
- package/dist/{meta-COtmHLwT.d.cts → meta-BdjSt8ky.d.cts} +1 -1
- package/dist/{meta-BMwx3ExI.d.ts → meta-CtDjj7cU.d.ts} +1 -1
- package/dist/{node-BVV7G1bq.d.cts → node-8qx0kgYt.d.cts} +49 -1
- package/dist/{node-BVV7G1bq.d.ts → node-8qx0kgYt.d.ts} +49 -1
- package/dist/{observable-BrUAPeH_.d.cts → observable-B6Ba-TTI.d.cts} +1 -1
- package/dist/{observable-ITikPXz3.d.ts → observable-DOniYM2B.d.ts} +1 -1
- package/dist/patterns/ai/browser.cjs +4 -4
- package/dist/patterns/ai/browser.d.cts +4 -4
- package/dist/patterns/ai/browser.d.ts +4 -4
- package/dist/patterns/ai/browser.js +1 -1
- package/dist/patterns/ai/index.cjs +21 -18
- package/dist/patterns/ai/index.d.cts +16 -16
- package/dist/patterns/ai/index.d.ts +16 -16
- package/dist/patterns/ai/index.js +1 -1
- package/dist/patterns/ai/node.cjs +2 -2
- package/dist/patterns/ai/node.d.cts +4 -4
- package/dist/patterns/ai/node.d.ts +4 -4
- package/dist/patterns/ai/node.js +1 -1
- package/dist/patterns/audit/index.cjs +7 -7
- package/dist/patterns/audit/index.d.cts +5 -5
- package/dist/patterns/audit/index.d.ts +5 -5
- package/dist/patterns/audit/index.js +1 -1
- package/dist/patterns/cqrs/index.cjs +3 -3
- package/dist/patterns/cqrs/index.d.cts +4 -4
- package/dist/patterns/cqrs/index.d.ts +4 -4
- package/dist/patterns/cqrs/index.js +1 -1
- package/dist/patterns/demo-shell/index.cjs +6 -6
- package/dist/patterns/demo-shell/index.d.cts +5 -5
- package/dist/patterns/demo-shell/index.d.ts +5 -5
- package/dist/patterns/demo-shell/index.js +1 -1
- package/dist/patterns/domain-templates/index.cjs +5 -5
- package/dist/patterns/domain-templates/index.d.cts +4 -4
- package/dist/patterns/domain-templates/index.d.ts +4 -4
- package/dist/patterns/domain-templates/index.js +1 -1
- package/dist/patterns/graphspec/index.cjs +27 -25
- package/dist/patterns/graphspec/index.d.cts +5 -5
- package/dist/patterns/graphspec/index.d.ts +5 -5
- package/dist/patterns/graphspec/index.js +1 -1
- package/dist/patterns/guarded-execution/index.cjs +7 -7
- package/dist/patterns/guarded-execution/index.d.cts +6 -6
- package/dist/patterns/guarded-execution/index.d.ts +6 -6
- package/dist/patterns/guarded-execution/index.js +1 -1
- package/dist/patterns/harness/index.cjs +12 -11
- package/dist/patterns/harness/index.d.cts +10 -9
- package/dist/patterns/harness/index.d.ts +10 -9
- package/dist/patterns/harness/index.js +1 -1
- package/dist/patterns/job-queue/index.cjs +7 -7
- package/dist/patterns/job-queue/index.d.cts +4 -4
- package/dist/patterns/job-queue/index.d.ts +4 -4
- package/dist/patterns/job-queue/index.js +1 -1
- package/dist/patterns/lens/index.cjs +5 -5
- package/dist/patterns/lens/index.d.cts +6 -6
- package/dist/patterns/lens/index.d.ts +6 -6
- package/dist/patterns/lens/index.js +1 -1
- package/dist/patterns/memory/index.cjs +4 -4
- package/dist/patterns/memory/index.d.cts +4 -4
- package/dist/patterns/memory/index.d.ts +4 -4
- package/dist/patterns/memory/index.js +1 -1
- package/dist/patterns/messaging/index.cjs +4 -4
- package/dist/patterns/messaging/index.d.cts +4 -4
- package/dist/patterns/messaging/index.d.ts +4 -4
- package/dist/patterns/messaging/index.js +1 -1
- package/dist/patterns/orchestration/index.cjs +7 -7
- package/dist/patterns/orchestration/index.d.cts +5 -5
- package/dist/patterns/orchestration/index.d.ts +5 -5
- package/dist/patterns/orchestration/index.js +1 -1
- package/dist/patterns/reactive-layout/index.cjs +2 -2
- package/dist/patterns/reactive-layout/index.d.cts +5 -5
- package/dist/patterns/reactive-layout/index.d.ts +5 -5
- package/dist/patterns/reactive-layout/index.js +1 -1
- package/dist/patterns/reduction/index.cjs +2 -2
- package/dist/patterns/reduction/index.d.cts +4 -4
- package/dist/patterns/reduction/index.d.ts +4 -4
- package/dist/patterns/reduction/index.js +1 -1
- package/dist/patterns/refine-loop/index.cjs +7 -7
- package/dist/patterns/refine-loop/index.d.cts +5 -5
- package/dist/patterns/refine-loop/index.d.ts +5 -5
- package/dist/patterns/refine-loop/index.js +1 -1
- package/dist/patterns/resilient-pipeline/index.cjs +1 -1
- package/dist/patterns/resilient-pipeline/index.d.cts +6 -6
- package/dist/patterns/resilient-pipeline/index.d.ts +6 -6
- package/dist/patterns/resilient-pipeline/index.js +1 -1
- package/dist/patterns/surface/index.cjs +15 -13
- package/dist/patterns/surface/index.d.cts +6 -6
- package/dist/patterns/surface/index.d.ts +6 -6
- package/dist/patterns/surface/index.js +1 -1
- package/dist/{reactive-layout-BAr6-_o5.d.ts → reactive-layout-DBJ3Vz-m.d.ts} +2 -2
- package/dist/{reactive-layout-5oEn8lHM.d.cts → reactive-layout-Dk9AOQb_.d.cts} +2 -2
- package/dist/{reactive-log-5jFeNRmd.d.cts → reactive-log-CWC7jO4J.d.cts} +1 -1
- package/dist/{reactive-log-BOJDCI5x.d.ts → reactive-log-CqaBg8nf.d.ts} +1 -1
- package/dist/{reactive-map-IJIfZxoh.d.cts → reactive-map-Cm89Hk0c.d.cts} +1 -1
- package/dist/{reactive-map-CtRaCddO.d.ts → reactive-map-LjwjcFaW.d.ts} +1 -1
- package/dist/{resilience-IVNDYORD.js → resilience-7UZHSSGC.js} +1 -1
- package/dist/{resilience-Q6Bt_7y0.d.cts → resilience-N_VtLf7W.d.cts} +1 -1
- package/dist/{resilience-CludlzcP.d.ts → resilience-RjDIHZNZ.d.ts} +1 -1
- package/dist/{sugar-BHbAACDG.d.ts → sugar-CQkn_rxB.d.ts} +1 -1
- package/dist/{sugar-CqR6DJ7v.d.cts → sugar-DVEYhR7a.d.cts} +1 -1
- package/dist/{topology-tree-CVREibAc.d.cts → topology-tree-BB6oJxMz.d.cts} +1 -1
- package/dist/{topology-tree-CkjojcB6.d.ts → topology-tree-CAFOG5S5.d.ts} +1 -1
- package/dist/{types-CdfO2QTt.d.ts → types-B2LfBvNc.d.ts} +16 -2
- package/dist/{types-BgMqbc7N.d.cts → types-Cp_4coR_.d.cts} +16 -2
- package/package.json +1 -1
- package/dist/chunk-5LJAQTSS.js +0 -1
- package/dist/chunk-7AJKUA36.js +0 -1
- package/dist/chunk-ASDKRNOJ.js +0 -60
- package/dist/chunk-KN4Q5MQO.js +0 -1
- package/dist/chunk-PSQNYY72.js +0 -7
- package/dist/chunk-X2VHDT26.js +0 -43
- package/dist/chunk-XEFAMCEA.js +0 -78
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { T as TokenUsage, L as LLMAdapter, P as PricingFn, C as ChatMessage, a as LLMInvokeOptions, d as ToolDefinition, b as LLMResponse, S as StreamDelta, c as ToolCall, e as CapabilitiesRegistry, M as ModelCapabilities, f as ModelFeatures, g as ModelLimits, h as ModelPricing, i as PriceBreakdown, j as PricingRegistry, R as Rate, k as TieredRate, l as composePricing, m as computePrice, n as createCapabilitiesRegistry, o as createPricingRegistry, p as pricingFor, r as registryPricing, z as zeroPrice } from './types-
|
|
2
|
-
import { a as CascadeExhaustionReport, A as AdapterProvider, b as AdapterTier, d as AllTiersExhaustedError, C as CascadingLlmAdapterOptions, e as CreateAdapterOptions, O as OpenAICompatAdapterOptions, f as OpenAICompatPreset, g as OpenAISdkLike, h as cascadingLlmAdapter, c as createAdapter, o as openAICompatAdapter, t as tier } from './cascading-
|
|
3
|
-
import { a as Node, A as Actor } from './node-
|
|
4
|
-
import { R as ReactiveLogBundle } from './reactive-log-
|
|
5
|
-
import { a as CircuitBreakerOptions, e as CircuitBreaker, f as CircuitOpenError } from './resilience-
|
|
1
|
+
import { T as TokenUsage, L as LLMAdapter, P as PricingFn, C as ChatMessage, a as LLMInvokeOptions, d as ToolDefinition, b as LLMResponse, S as StreamDelta, c as ToolCall, e as CapabilitiesRegistry, M as ModelCapabilities, f as ModelFeatures, g as ModelLimits, h as ModelPricing, i as PriceBreakdown, j as PricingRegistry, R as Rate, k as TieredRate, l as composePricing, m as computePrice, n as createCapabilitiesRegistry, o as createPricingRegistry, p as pricingFor, r as registryPricing, z as zeroPrice } from './types-B2LfBvNc.js';
|
|
2
|
+
import { a as CascadeExhaustionReport, A as AdapterProvider, b as AdapterTier, d as AllTiersExhaustedError, C as CascadingLlmAdapterOptions, e as CreateAdapterOptions, O as OpenAICompatAdapterOptions, f as OpenAICompatPreset, g as OpenAISdkLike, h as cascadingLlmAdapter, c as createAdapter, o as openAICompatAdapter, t as tier } from './cascading-Bg0a4VSf.js';
|
|
3
|
+
import { a as Node, A as Actor } from './node-8qx0kgYt.js';
|
|
4
|
+
import { R as ReactiveLogBundle } from './reactive-log-CqaBg8nf.js';
|
|
5
|
+
import { a as CircuitBreakerOptions, e as CircuitBreaker, f as CircuitOpenError } from './resilience-RjDIHZNZ.js';
|
|
6
6
|
import { NodeInput } from './extra/sources.js';
|
|
7
|
-
import { W as WithReplayCacheOptions, F as FallbackAdapterOptions, a as FallbackFixture, b as FallbackMissError, c as FallbackMissPolicy, R as ReplayCacheKeyContext, d as ReplayCacheMissError, e as ReplayCacheMode, f as canonicalJson, g as fallbackAdapter, w as withReplayCache } from './fallback-
|
|
8
|
-
import { G as Graph, a as GraphOptions, h as GraphAttachStorageOptions } from './graph-
|
|
9
|
-
import { T as TopicGraph } from './index-
|
|
10
|
-
import { G as GateController, a as GateOptions } from './index-
|
|
11
|
-
import { D as DistillBundle, E as Extraction } from './composite-
|
|
12
|
-
import { V as VectorSearchResult, L as LightCollectionBundle, a as VectorIndexBundle, K as KnowledgeGraphGraph } from './index-
|
|
7
|
+
import { W as WithReplayCacheOptions, F as FallbackAdapterOptions, a as FallbackFixture, b as FallbackMissError, c as FallbackMissPolicy, R as ReplayCacheKeyContext, d as ReplayCacheMissError, e as ReplayCacheMode, f as canonicalJson, g as fallbackAdapter, w as withReplayCache } from './fallback-mYSd8vQo.js';
|
|
8
|
+
import { G as Graph, a as GraphOptions, h as GraphAttachStorageOptions } from './graph-BROUZPG9.js';
|
|
9
|
+
import { T as TopicGraph } from './index-Bi4ZP6Hc.js';
|
|
10
|
+
import { G as GateController, a as GateOptions } from './index-HvJ90_tX.js';
|
|
11
|
+
import { D as DistillBundle, E as Extraction } from './composite-BPDU_XV1.js';
|
|
12
|
+
import { V as VectorSearchResult, L as LightCollectionBundle, a as VectorIndexBundle, K as KnowledgeGraphGraph } from './index-ygRFoyrN.js';
|
|
13
13
|
import { StorageHandle, StorageTier } from './extra/storage-core.js';
|
|
14
|
-
import { c as GraphSpecCatalog } from './index-
|
|
14
|
+
import { c as GraphSpecCatalog } from './index-Chi9IiHJ.js';
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* Observable adapter wrapper — the "inverted statistics" surface.
|
|
@@ -824,8 +824,12 @@ type FrozenContextOptions = {
|
|
|
824
824
|
* increments via `setState(n + 1)`.
|
|
825
825
|
*
|
|
826
826
|
* When omitted, the frozen value is materialized exactly once (on first
|
|
827
|
-
* subscribe) and never refreshes
|
|
828
|
-
*
|
|
827
|
+
* subscribe) and never refreshes for the lifetime of the activation —
|
|
828
|
+
* use this for session-start snapshots that must stay stable. The
|
|
829
|
+
* single-shot latch IS reset on `INVALIDATE` (graph-wide flush via
|
|
830
|
+
* `graph.signal([[INVALIDATE]])`), so callers who need an "evict and
|
|
831
|
+
* re-materialize" escape hatch get one through the standard graph
|
|
832
|
+
* lifecycle without having to wire a `refreshTrigger`.
|
|
829
833
|
*/
|
|
830
834
|
refreshTrigger?: NodeInput<unknown>;
|
|
831
835
|
name?: string;
|
|
@@ -862,6 +866,22 @@ declare function frozenContext<T>(source: NodeInput<T>, opts?: FrozenContextOpti
|
|
|
862
866
|
/**
|
|
863
867
|
* `promptNode` — universal LLM transform as a reactive derived node.
|
|
864
868
|
*
|
|
869
|
+
* The shape: `deps → messagesNode (derived) → switchMap → call (producer) → output`.
|
|
870
|
+
* Each upstream wave is one LLM call; superseding waves cancel the in-flight
|
|
871
|
+
* call via the abort signal threaded through `nodeSignal(opts.abort)`.
|
|
872
|
+
*
|
|
873
|
+
* The producer-shape on the inner is load-bearing: it emits exactly one DATA
|
|
874
|
+
* + COMPLETE per wave, so the outer switchMap sees one DATA per wave (matches
|
|
875
|
+
* the `HarnessExecutor` contract). A `derived([call], parse)` would have its
|
|
876
|
+
* own first-run / push-on-subscribe semantics that can leak a transient null
|
|
877
|
+
* before the real response arrives — observed and reverted in an earlier
|
|
878
|
+
* attempt; see SESSION-ai-harness-module-review.md line 3654 for context.
|
|
879
|
+
*
|
|
880
|
+
* For retry / replay-cache semantics, wrap the adapter with `withRetry` /
|
|
881
|
+
* `withReplayCache` middleware (see `patterns/ai/adapters/middleware/`). The
|
|
882
|
+
* removed `retries` / `cache` options on `promptNode` duplicated middleware
|
|
883
|
+
* that already exists at the adapter layer.
|
|
884
|
+
*
|
|
865
885
|
* @module
|
|
866
886
|
*/
|
|
867
887
|
|
|
@@ -872,18 +892,51 @@ type PromptNodeOptions = {
|
|
|
872
892
|
maxTokens?: number;
|
|
873
893
|
/** Output format — `"json"` attempts JSON.parse on the response. Default: `"text"`. */
|
|
874
894
|
format?: "text" | "json";
|
|
875
|
-
/**
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
895
|
+
/**
|
|
896
|
+
* Optional system prompt. Forwarded via `opts.systemPrompt` to the adapter
|
|
897
|
+
* only — never pushed as a `{role:"system"}` message (avoiding the
|
|
898
|
+
* double-send class of bug where adapters that normalize both shapes end
|
|
899
|
+
* up with two system entries).
|
|
900
|
+
*/
|
|
879
901
|
systemPrompt?: string;
|
|
902
|
+
/**
|
|
903
|
+
* Optional reactive abort signal. When the node emits `true`, the in-flight
|
|
904
|
+
* `adapter.invoke()` call is cancelled via `AbortController.abort()`.
|
|
905
|
+
* Threaded through `nodeSignal(abort)` — a one-shot bridge. Useful inside
|
|
906
|
+
* agent state machines where a separate `aborted` state should cancel the
|
|
907
|
+
* current LLM call without superseding via switchMap.
|
|
908
|
+
*/
|
|
909
|
+
abort?: Node<boolean>;
|
|
880
910
|
meta?: Record<string, unknown>;
|
|
881
911
|
};
|
|
882
912
|
/**
|
|
883
913
|
* Universal LLM transform: wraps a prompt template + model adapter into a reactive derived node.
|
|
884
914
|
* Re-invokes the LLM whenever any dep changes. Suitable for triage, QA, hypothesis, parity, etc.
|
|
885
915
|
*
|
|
886
|
-
*
|
|
916
|
+
* **Topology** (visible in `describe()`):
|
|
917
|
+
* ```
|
|
918
|
+
* <deps...> → <name>::messages (derived, meta.ai = prompt_node)
|
|
919
|
+
* <name>::messages → <name>::output (switchMap product, meta.ai = prompt_node::output)
|
|
920
|
+
* per-wave inner: <name>::call (producer, meta.ai = prompt_node::call)
|
|
921
|
+
* ```
|
|
922
|
+
*
|
|
923
|
+
* **No-input semantics** (matches the codebase-wide SENTINEL convention):
|
|
924
|
+
* - **Initial no-input** (no real input has ever arrived) — emits nothing.
|
|
925
|
+
* Outer cache stays `undefined`; `subscribe` consumers see no DATA event.
|
|
926
|
+
* Use this to keep downstream gating clean: a `withLatestFrom`-paired
|
|
927
|
+
* trigger won't fire until the LLM has actually produced something.
|
|
928
|
+
* - **Mid-flow no-input** (input dropped to nullish after at least one
|
|
929
|
+
* real LLM call) — emits `null` as a domain "input went away" signal.
|
|
930
|
+
* Downstream consumers can distinguish "haven't started" from "input
|
|
931
|
+
* gone."
|
|
932
|
+
*
|
|
933
|
+
* **Retries / caching:** stack `withRetry` / `withReplayCache` middleware on the
|
|
934
|
+
* `adapter` argument — `promptNode` no longer ships its own duplicated retry /
|
|
935
|
+
* cache loops (pre-1.0 cleanup, see review session 1).
|
|
936
|
+
*
|
|
937
|
+
* @param adapter - LLM adapter (provider-agnostic). Wrap with `withRetry` /
|
|
938
|
+
* `withReplayCache` middleware for transient-error tolerance
|
|
939
|
+
* or replay caching.
|
|
887
940
|
* @param deps - Input nodes whose values feed the prompt.
|
|
888
941
|
* @param prompt - Static string or template function receiving dep values.
|
|
889
942
|
* @param opts - Optional configuration.
|
|
@@ -987,8 +1040,15 @@ type GatedStreamHandle<T> = {
|
|
|
987
1040
|
deltaTopic: TopicGraph<StampedDelta>;
|
|
988
1041
|
/** Reactive accumulated-text view. */
|
|
989
1042
|
accumulatedText: Node<string>;
|
|
990
|
-
/**
|
|
991
|
-
|
|
1043
|
+
/**
|
|
1044
|
+
* Gate controller — approve, reject (aborts in-flight stream), modify.
|
|
1045
|
+
* The gate's DATA domain is `T` (not `T | null`): the pre-gate `filter`
|
|
1046
|
+
* drops nulls, so the pending queue never holds a null. The controller's
|
|
1047
|
+
* `node` output type stays `T | null` only because `gate.approve()` on an
|
|
1048
|
+
* empty queue would surface `null` — callers should treat `null` as "no
|
|
1049
|
+
* value" rather than as a modeled null signal.
|
|
1050
|
+
*/
|
|
1051
|
+
gate: GateController<T>;
|
|
992
1052
|
/** Tear down the delta topic + gate keepalive. */
|
|
993
1053
|
dispose: () => void;
|
|
994
1054
|
};
|
|
@@ -1264,13 +1324,22 @@ type ToolRegistryOptions = {
|
|
|
1264
1324
|
/**
|
|
1265
1325
|
* `ToolRegistryGraph` — name-keyed registry of {@link ToolDefinition}s.
|
|
1266
1326
|
*
|
|
1327
|
+
* **Reactive-only execution.** The only execution path is
|
|
1328
|
+
* {@link executeReactive}, which returns a `Node<unknown>` for the handler
|
|
1329
|
+
* result. Composing factories (`toolExecution`, `agentLoop`) consume it
|
|
1330
|
+
* directly inside `retrySource` / `switchMap` chains. There is intentionally
|
|
1331
|
+
* no imperative `execute()` Promise method — the registry was originally a
|
|
1332
|
+
* dual-boundary class (imperative + reactive) and the imperative path was
|
|
1333
|
+
* the only thing in the codebase bridging through `Promise.resolve().then()`
|
|
1334
|
+
* to feed `fromAny`. Removing it left every consumer on a single
|
|
1335
|
+
* reactive-all-the-way path with real abort propagation.
|
|
1336
|
+
*
|
|
1337
|
+
* For non-reactive callers (debug scripts, one-shot tests), bridge with
|
|
1338
|
+
* `awaitSettled(toolRegistry.executeReactive(name, args))`.
|
|
1339
|
+
*
|
|
1267
1340
|
* **Wave A Unit 6 refactor:** internal storage migrated from `state<Map>`
|
|
1268
1341
|
* (O(N) Map-copy per mutation) to `ReactiveMapBundle<string, ToolDefinition>`
|
|
1269
|
-
* (O(1) mutations + version counter).
|
|
1270
|
-
* consumers. Adds a new reactive `executeReactive(name, args): Node<unknown>`
|
|
1271
|
-
* alongside the imperative `execute(name, args): Promise<unknown>` so
|
|
1272
|
-
* composing factories (`toolExecution`, `agentLoop`) can consume the tool
|
|
1273
|
-
* handler as a reactive source without bridging through `firstDataFromNode`.
|
|
1342
|
+
* (O(1) mutations + version counter).
|
|
1274
1343
|
*/
|
|
1275
1344
|
declare class ToolRegistryGraph extends Graph {
|
|
1276
1345
|
readonly definitions: Node<ReadonlyMap<string, ToolDefinition>>;
|
|
@@ -1279,23 +1348,25 @@ declare class ToolRegistryGraph extends Graph {
|
|
|
1279
1348
|
constructor(name: string, opts?: ToolRegistryOptions);
|
|
1280
1349
|
register(tool: ToolDefinition): void;
|
|
1281
1350
|
unregister(name: string): void;
|
|
1282
|
-
/**
|
|
1283
|
-
* Imperative boundary: await the handler result as a Promise. Safe for
|
|
1284
|
-
* non-reactive callers; reactive consumers prefer {@link executeReactive}.
|
|
1285
|
-
*/
|
|
1286
|
-
execute(name: string, args: Record<string, unknown>): Promise<unknown>;
|
|
1287
1351
|
/**
|
|
1288
1352
|
* Reactive execution — returns a `Node<unknown>` that emits the handler
|
|
1289
|
-
* result.
|
|
1290
|
-
*
|
|
1291
|
-
* `
|
|
1292
|
-
*
|
|
1353
|
+
* result. The returned node is a `producer` that:
|
|
1354
|
+
*
|
|
1355
|
+
* 1. Mints a per-call `AbortController` whose `signal` is threaded into
|
|
1356
|
+
* the handler call AND into `fromAny` (so a `fromPromise` /
|
|
1357
|
+
* `fromAsyncIter` inner abandons cleanly when the consumer
|
|
1358
|
+
* unsubscribes).
|
|
1359
|
+
* 2. Runs `tool.handler(args, {signal})` inside a try/catch — a
|
|
1360
|
+
* synchronous throw surfaces as `[[ERROR, err]]` downstream instead
|
|
1361
|
+
* of escaping the producer.
|
|
1362
|
+
* 3. Forwards every message from the inner `fromAny` chain to the
|
|
1363
|
+
* producer's outputs.
|
|
1364
|
+
* 4. On teardown (subscriber count drops to zero, e.g. `switchMap`
|
|
1365
|
+
* supersede) calls `ac.abort()` and unsubscribes the inner.
|
|
1366
|
+
* Signal-aware handlers (e.g. `fetch(url, {signal})`) actually stop.
|
|
1293
1367
|
*
|
|
1294
|
-
*
|
|
1295
|
-
*
|
|
1296
|
-
* caller's switchMap / subscription chain for teardown. For repeated
|
|
1297
|
-
* invocations, call `executeReactive` again — each call mints a fresh
|
|
1298
|
-
* node tied to a fresh `handler(args)` invocation.
|
|
1368
|
+
* Each call mints a fresh node tied to a fresh `handler(args, ...)`
|
|
1369
|
+
* invocation — call `executeReactive` again for repeated invocations.
|
|
1299
1370
|
*
|
|
1300
1371
|
* @throws `Error` synchronously when `name` is not registered (no node is
|
|
1301
1372
|
* constructed — the caller gets a pre-wiring failure rather than a
|
|
@@ -1306,6 +1377,83 @@ declare class ToolRegistryGraph extends Graph {
|
|
|
1306
1377
|
}
|
|
1307
1378
|
declare function toolRegistry(name: string, opts?: ToolRegistryOptions): ToolRegistryGraph;
|
|
1308
1379
|
|
|
1380
|
+
/**
|
|
1381
|
+
* `toolExecution` — reactive per-tool-call executor with retry + rescue.
|
|
1382
|
+
*
|
|
1383
|
+
* Lifted from the inlined `executeToolReactively` helper inside `agent-loop.ts`
|
|
1384
|
+
* so it can be consumed standalone by any caller with a reactive `toolCalls`
|
|
1385
|
+
* batch — not just `agentLoop`. The shape is: one input `Node<readonly
|
|
1386
|
+
* ToolCall[]>` + a `ToolRegistryGraph` → one output `Node<readonly
|
|
1387
|
+
* ToolResult[]>`. Each call maps to a per-call `retrySource(executeReactive)`
|
|
1388
|
+
* → optional `rescue` chain that emits the handler result on success, or a
|
|
1389
|
+
* JSON-wrapped `{ error }` payload on terminal failure so the LLM can see the
|
|
1390
|
+
* error as tool output and decide whether to try again via another tool call.
|
|
1391
|
+
*
|
|
1392
|
+
* **Cancellation.** `executeReactive` mints a per-call `AbortController` and
|
|
1393
|
+
* threads its signal into the handler call. When `switchMap` supersedes the
|
|
1394
|
+
* inner (a fresh `toolCalls` batch arrives) or the outer graph tears down,
|
|
1395
|
+
* the per-call node unsubscribes and `ac.abort()` fires. Signal-aware
|
|
1396
|
+
* handlers (`fetch(url, {signal})`, child-process kill, DB cancel) actually
|
|
1397
|
+
* stop in-flight work; handlers that ignore the signal still complete to
|
|
1398
|
+
* their original termination, but their result is discarded.
|
|
1399
|
+
*
|
|
1400
|
+
* @module
|
|
1401
|
+
*/
|
|
1402
|
+
|
|
1403
|
+
/** A single tool execution outcome: `{id, content}` where content is a JSON string. */
|
|
1404
|
+
interface ToolResult {
|
|
1405
|
+
readonly id: string;
|
|
1406
|
+
readonly content: string;
|
|
1407
|
+
}
|
|
1408
|
+
type ToolExecutionOptions = {
|
|
1409
|
+
/**
|
|
1410
|
+
* Reactive tool-call batch. Each non-empty emission triggers a fresh
|
|
1411
|
+
* per-call execution fan-out; superseding emissions cancel the prior fan.
|
|
1412
|
+
*/
|
|
1413
|
+
toolCalls: Node<readonly ToolCall[]>;
|
|
1414
|
+
/** Registry that resolves tool name → handler. */
|
|
1415
|
+
tools: ToolRegistryGraph;
|
|
1416
|
+
/**
|
|
1417
|
+
* Retry count per individual tool call. `retrySource({count: N})` retries
|
|
1418
|
+
* up to N times on error (N retries = N+1 total attempts). Default: 1.
|
|
1419
|
+
*/
|
|
1420
|
+
retryCount?: number;
|
|
1421
|
+
/**
|
|
1422
|
+
* How to surface a terminal error after retries are exhausted.
|
|
1423
|
+
* - `"rescue"` (default): emit `{id, content: JSON.stringify({error})}`
|
|
1424
|
+
* so the LLM sees the failure as structured tool output and can decide
|
|
1425
|
+
* how to react. Sibling calls in the same batch continue to their own
|
|
1426
|
+
* completion; one call's failure does not affect the others.
|
|
1427
|
+
* - `"propagate"`: let the ERROR propagate downstream. **Blast radius:**
|
|
1428
|
+
* the per-batch `derived` join auto-errors when any per-call node
|
|
1429
|
+
* terminates with ERROR, so one call's failure discards every sibling's
|
|
1430
|
+
* DATA (even ones that already settled with a valid ToolResult). Use
|
|
1431
|
+
* `"propagate"` only when a single tool failure should be fatal for the
|
|
1432
|
+
* whole batch; prefer `"rescue"` when you want the LLM to see partial
|
|
1433
|
+
* results plus per-call error markers.
|
|
1434
|
+
*/
|
|
1435
|
+
onError?: "rescue" | "propagate";
|
|
1436
|
+
};
|
|
1437
|
+
/**
|
|
1438
|
+
* Reactive executor for a batch of LLM tool calls.
|
|
1439
|
+
*
|
|
1440
|
+
* Each DATA emission on `toolCalls` dispatches a fresh per-call fan-out: for
|
|
1441
|
+
* every call in the batch, construct a `retrySource(fromAny(tools.execute(
|
|
1442
|
+
* name, args)))` node, optionally `rescue` it into a JSON error shape, and
|
|
1443
|
+
* join the results via a `derived` whose first-run gate waits for every call
|
|
1444
|
+
* to settle before emitting the batch. Empty batches (`calls.length === 0`)
|
|
1445
|
+
* are a caller-side invariant violation (the upstream gate should emit
|
|
1446
|
+
* RESOLVED for empty batches, not DATA) and trigger a loud error — callers
|
|
1447
|
+
* that want to accept empty batches should upstream-filter them first.
|
|
1448
|
+
*
|
|
1449
|
+
* Reference-equality + content-equality dedup is applied to the output batch
|
|
1450
|
+
* so duplicate re-emissions from a completing retrySource don't propagate.
|
|
1451
|
+
*
|
|
1452
|
+
* @param opts - `{ toolCalls, tools, retryCount?, onError? }`.
|
|
1453
|
+
* @returns `Node<readonly ToolResult[]>` — one ToolResult per input ToolCall.
|
|
1454
|
+
*/
|
|
1455
|
+
declare function toolExecution(opts: ToolExecutionOptions): Node<readonly ToolResult[]>;
|
|
1456
|
+
|
|
1309
1457
|
/**
|
|
1310
1458
|
* Reactive agent loop — autonomous multi-turn LLM agent with tool execution.
|
|
1311
1459
|
*/
|
|
@@ -1344,11 +1492,6 @@ type AgentLoopOptions = {
|
|
|
1344
1492
|
*/
|
|
1345
1493
|
interceptToolCalls?: (calls: Node<readonly ToolCall[]>) => Node<readonly ToolCall[]>;
|
|
1346
1494
|
};
|
|
1347
|
-
/** A single tool execution outcome: `{id, content}` where content is a JSON string. */
|
|
1348
|
-
interface ToolResult {
|
|
1349
|
-
readonly id: string;
|
|
1350
|
-
readonly content: string;
|
|
1351
|
-
}
|
|
1352
1495
|
/**
|
|
1353
1496
|
* Reactive agent loop.
|
|
1354
1497
|
*
|
|
@@ -1367,11 +1510,22 @@ interface ToolResult {
|
|
|
1367
1510
|
* the loop if they want a Promise.
|
|
1368
1511
|
*
|
|
1369
1512
|
* Public surface:
|
|
1370
|
-
* - `chat` / `tools` — subgraphs (imperative `append`
|
|
1513
|
+
* - `chat` / `tools` — subgraphs (imperative `append` at boundary, reactive `executeReactive` for tool invocation)
|
|
1371
1514
|
* - `status` / `turn` / `aborted` — state nodes with explicit initials
|
|
1372
1515
|
* - `lastResponse` / `toolCalls` / `toolResults` — reactive outputs (SENTINEL until first emission; callers use `awaitSettled` / `subscribe`)
|
|
1373
1516
|
* - `run(userMessage?, signal?)` — optional user append + Promise bridge
|
|
1374
1517
|
* - `abort()` — imperative abort shim; flips `aborted` state
|
|
1518
|
+
*
|
|
1519
|
+
* **Lifecycle: single-mount.** `AgentLoopGraph` instances expect to be
|
|
1520
|
+
* constructed once and used until `destroy()`. The internal closure mirrors
|
|
1521
|
+
* (`latestTurn` / `latestAborted` / `latestStatus` / `latestMessages` /
|
|
1522
|
+
* `latestSchemas`) are wired by subscribe-and-capture at construction time;
|
|
1523
|
+
* their corresponding `addDisposer`-registered subscriptions are torn down
|
|
1524
|
+
* on subgraph unmount or `destroy()`. After teardown the mirrors freeze at
|
|
1525
|
+
* their last value, so re-using a destroyed instance — calling `run()`
|
|
1526
|
+
* again, or remounting under a new parent — would silently feed stale
|
|
1527
|
+
* mirror data into `promptInput`. If you need to "reset" an agent, build a
|
|
1528
|
+
* fresh `AgentLoopGraph` instance instead of recycling.
|
|
1375
1529
|
*/
|
|
1376
1530
|
declare class AgentLoopGraph extends Graph {
|
|
1377
1531
|
readonly chat: ChatStreamGraph;
|
|
@@ -1393,17 +1547,8 @@ declare class AgentLoopGraph extends Graph {
|
|
|
1393
1547
|
readonly toolCalls: Node<readonly ToolCall[]>;
|
|
1394
1548
|
/** Tool-result batch (one entry per call) after reactive execution. SENTINEL. */
|
|
1395
1549
|
readonly toolResults: Node<readonly ToolResult[]>;
|
|
1396
|
-
/** @deprecated Use `turn` instead. Pre-1.0 rename — this alias will be removed. */
|
|
1397
|
-
readonly turnCount: Node<number>;
|
|
1398
1550
|
private readonly _terminalResult;
|
|
1399
1551
|
private readonly _disposeRunWiring;
|
|
1400
|
-
/**
|
|
1401
|
-
* Per-agent monotonic run counter. Incremented at the start of every
|
|
1402
|
-
* `run()` call; stamped onto `_terminalResult`'s DATA emissions so a
|
|
1403
|
-
* caller's `awaitSettled` predicate resolves only on the matching run
|
|
1404
|
-
* (prevents stale-resolution under re-entrant-ish composition).
|
|
1405
|
-
*/
|
|
1406
|
-
private _runVersion;
|
|
1407
1552
|
/** Guards against overlapping `run()` calls. */
|
|
1408
1553
|
private _running;
|
|
1409
1554
|
/**
|
|
@@ -1430,10 +1575,11 @@ declare class AgentLoopGraph extends Graph {
|
|
|
1430
1575
|
* Rejects with the stage error when `status === "error"`.
|
|
1431
1576
|
*
|
|
1432
1577
|
* **Concurrency:** `run()` refuses to overlap with a pending call on the
|
|
1433
|
-
* same agent. Attempting to call `run()` while a previous `run()` is
|
|
1434
|
-
* in-flight throws a `RangeError` immediately.
|
|
1435
|
-
*
|
|
1436
|
-
*
|
|
1578
|
+
* same agent. Attempting to call `run()` while a previous `run()` is
|
|
1579
|
+
* still in-flight throws a `RangeError` immediately. Stale-resolution
|
|
1580
|
+
* safety is provided by `awaitSettled({skipCurrent: true})`, which
|
|
1581
|
+
* ignores the cached initial DATA from any previous run and resolves
|
|
1582
|
+
* only on a fresh post-subscribe emission of `_terminalResult`.
|
|
1437
1583
|
*/
|
|
1438
1584
|
run(userMessage?: string, signal?: AbortSignal): Promise<LLMResponse | null>;
|
|
1439
1585
|
/**
|
|
@@ -1553,6 +1699,29 @@ interface ToolSelectorOptions {
|
|
|
1553
1699
|
*/
|
|
1554
1700
|
declare function toolSelector(allTools: NodeInput<readonly ToolDefinition[]>, constraints: readonly NodeInput<(tool: ToolDefinition) => boolean>[], opts?: ToolSelectorOptions): Node<readonly ToolDefinition[]>;
|
|
1555
1701
|
|
|
1702
|
+
/** Generic per-dimension thresholds. Any dim below its threshold → reject. */
|
|
1703
|
+
type AdmissionThresholds<Dims extends string> = Partial<Record<Dims, number>>;
|
|
1704
|
+
type AdmissionScoredOptions<Dims extends string, TRaw = unknown> = {
|
|
1705
|
+
/** Score function — must return a finite number for every dimension named in `thresholds`. */
|
|
1706
|
+
scoreFn: (raw: TRaw) => Readonly<Record<Dims, number>>;
|
|
1707
|
+
/** Per-dim minimums. Dims absent here are scored but not gated. */
|
|
1708
|
+
thresholds?: AdmissionThresholds<Dims>;
|
|
1709
|
+
};
|
|
1710
|
+
/**
|
|
1711
|
+
* Generic N-dimension admission filter. Rejects any input where one of the
|
|
1712
|
+
* configured threshold dimensions scores below its minimum. Missing scores
|
|
1713
|
+
* (`undefined` / `null`) AND non-finite values (`NaN`, `±Infinity`) are
|
|
1714
|
+
* treated as below all thresholds — reject by default rather than admit.
|
|
1715
|
+
*
|
|
1716
|
+
* @example
|
|
1717
|
+
* ```ts
|
|
1718
|
+
* const filter = admissionScored({
|
|
1719
|
+
* scoreFn: (raw: Note) => ({ relevance: scoreRelevance(raw), age: ageScore(raw) }),
|
|
1720
|
+
* thresholds: { relevance: 0.4 }, // age scored but ungated
|
|
1721
|
+
* });
|
|
1722
|
+
* ```
|
|
1723
|
+
*/
|
|
1724
|
+
declare function admissionScored<Dims extends string, TRaw = unknown>(opts: AdmissionScoredOptions<Dims, TRaw>): (raw: TRaw) => boolean;
|
|
1556
1725
|
/** Scores for the three admission dimensions. Each 0–1. */
|
|
1557
1726
|
type AdmissionScores = {
|
|
1558
1727
|
readonly persistence: number;
|
|
@@ -1560,8 +1729,8 @@ type AdmissionScores = {
|
|
|
1560
1729
|
readonly personalValue: number;
|
|
1561
1730
|
};
|
|
1562
1731
|
type AdmissionScore3DOptions = {
|
|
1563
|
-
/** Custom scoring function.
|
|
1564
|
-
scoreFn
|
|
1732
|
+
/** Custom scoring function. Required — the previous always-0.5 default was misleading. */
|
|
1733
|
+
scoreFn: (raw: unknown) => AdmissionScores;
|
|
1565
1734
|
/** Minimum persistence score to admit (default 0.3). */
|
|
1566
1735
|
persistenceThreshold?: number;
|
|
1567
1736
|
/** Minimum personalValue score to admit (default 0.3). */
|
|
@@ -1570,11 +1739,19 @@ type AdmissionScore3DOptions = {
|
|
|
1570
1739
|
requireStructured?: boolean;
|
|
1571
1740
|
};
|
|
1572
1741
|
/**
|
|
1573
|
-
*
|
|
1574
|
-
*
|
|
1575
|
-
*
|
|
1742
|
+
* 3D admission sugar — the persistence / structure / personalValue triple
|
|
1743
|
+
* commonly used in agent-memory literature. Composes `admissionScored`
|
|
1744
|
+
* with thresholds derived from the option fields. Use directly when those
|
|
1745
|
+
* three named dimensions match your domain, or use `admissionScored` with
|
|
1746
|
+
* an arbitrary dimension set instead.
|
|
1747
|
+
*
|
|
1748
|
+
* `requireStructured: true` rejects entries where `structure <= 0` (matches
|
|
1749
|
+
* the pre-Unit-8 `requireStructured && scores.structure <= 0` check).
|
|
1750
|
+
* Implemented as a final-step predicate around `admissionScored` rather
|
|
1751
|
+
* than a `Number.MIN_VALUE` threshold, which would have been a footgun for
|
|
1752
|
+
* future readers.
|
|
1576
1753
|
*/
|
|
1577
|
-
declare function admissionFilter3D(opts
|
|
1754
|
+
declare function admissionFilter3D(opts: AdmissionScore3DOptions): (raw: unknown) => boolean;
|
|
1578
1755
|
|
|
1579
1756
|
type RetrievalQuery = {
|
|
1580
1757
|
readonly text?: string;
|
|
@@ -1793,6 +1970,20 @@ type LLMExtractorOptions = {
|
|
|
1793
1970
|
model?: string;
|
|
1794
1971
|
temperature?: number;
|
|
1795
1972
|
maxTokens?: number;
|
|
1973
|
+
/**
|
|
1974
|
+
* Cap the dedup-hint slice of `existingKeys` passed to the LLM. Larger
|
|
1975
|
+
* stores ship more keys (better dedup recall) at the cost of prompt size.
|
|
1976
|
+
* Default 100. Set to `Infinity` to forward every key.
|
|
1977
|
+
*/
|
|
1978
|
+
maxExistingKeys?: number;
|
|
1979
|
+
/**
|
|
1980
|
+
* Optional name forwarded to the underlying `promptNode` (used as the
|
|
1981
|
+
* `<name>::messages` / `<name>::call` / `<name>::output` path prefix).
|
|
1982
|
+
* Defaults differ per call site (`llmExtractor` / `llmConsolidator`) so
|
|
1983
|
+
* extractor + consolidator wired into the same graph don't collide on
|
|
1984
|
+
* `prompt_node::output`.
|
|
1985
|
+
*/
|
|
1986
|
+
name?: string;
|
|
1796
1987
|
};
|
|
1797
1988
|
/**
|
|
1798
1989
|
* Returns an `extractFn` callback for `distill()` that invokes an LLM to
|
|
@@ -1800,6 +1991,10 @@ type LLMExtractorOptions = {
|
|
|
1800
1991
|
*
|
|
1801
1992
|
* The system prompt should instruct the LLM to return JSON matching
|
|
1802
1993
|
* `Extraction<TMem>` shape: `{ upsert: [{ key, value }], remove?: [key] }`.
|
|
1994
|
+
*
|
|
1995
|
+
* Built on `promptNode({format: "json"})` — inherits markdown-fence stripping
|
|
1996
|
+
* and content-preview parse errors. Stack `withRetry` on the adapter for
|
|
1997
|
+
* transient-error tolerance (see `patterns/ai/adapters/middleware/retry.ts`).
|
|
1803
1998
|
*/
|
|
1804
1999
|
declare function llmExtractor<TRaw, TMem>(systemPrompt: string, opts: LLMExtractorOptions): (raw: TRaw, existing: ReadonlyMap<string, TMem>) => NodeInput<Extraction<TMem>>;
|
|
1805
2000
|
type LLMConsolidatorOptions = LLMExtractorOptions;
|
|
@@ -1809,6 +2004,111 @@ type LLMConsolidatorOptions = LLMExtractorOptions;
|
|
|
1809
2004
|
*/
|
|
1810
2005
|
declare function llmConsolidator<TMem>(systemPrompt: string, opts: LLMConsolidatorOptions): (entries: ReadonlyMap<string, TMem>) => NodeInput<Extraction<TMem>>;
|
|
1811
2006
|
|
|
2007
|
+
type MemoryWithVectorsOptions<TMem> = {
|
|
2008
|
+
/** Embedding dimension. Must match the `embedFn` output length. */
|
|
2009
|
+
dimension: number;
|
|
2010
|
+
/** Extract an embedding vector for a memory entry. */
|
|
2011
|
+
embedFn: (mem: TMem) => readonly number[] | undefined;
|
|
2012
|
+
};
|
|
2013
|
+
/**
|
|
2014
|
+
* Attach a vector index to a `DistillBundle`. Indexes every entry in the
|
|
2015
|
+
* store as it changes. Returns the `VectorIndexBundle` so retrieval can read
|
|
2016
|
+
* its `entries` and call `search()`.
|
|
2017
|
+
*
|
|
2018
|
+
* The indexer's keepalive is registered with `graph.addDisposer` so it tears
|
|
2019
|
+
* down on `graph.destroy()`. The returned `dispose()` is also available for
|
|
2020
|
+
* early release without destroying the parent graph.
|
|
2021
|
+
*/
|
|
2022
|
+
declare function memoryWithVectors<TMem>(graph: Graph, store: DistillBundle<TMem>, opts: MemoryWithVectorsOptions<TMem>): {
|
|
2023
|
+
vectors: VectorIndexBundle<TMem>;
|
|
2024
|
+
dispose: () => void;
|
|
2025
|
+
};
|
|
2026
|
+
type MemoryWithKGOptions<TMem> = {
|
|
2027
|
+
/** Extract entities + relations for a memory entry. */
|
|
2028
|
+
entityFn: (key: string, mem: TMem) => {
|
|
2029
|
+
entities?: Array<{
|
|
2030
|
+
id: string;
|
|
2031
|
+
value: unknown;
|
|
2032
|
+
}>;
|
|
2033
|
+
relations?: Array<{
|
|
2034
|
+
from: string;
|
|
2035
|
+
to: string;
|
|
2036
|
+
relation: string;
|
|
2037
|
+
weight?: number;
|
|
2038
|
+
}>;
|
|
2039
|
+
} | undefined;
|
|
2040
|
+
};
|
|
2041
|
+
/**
|
|
2042
|
+
* Attach a knowledge graph alongside a `DistillBundle`. Mount path defaults
|
|
2043
|
+
* to the `name` arg so multiple `memoryWithKG` calls on the same graph don't
|
|
2044
|
+
* collide on a hardcoded `"kg"` mount.
|
|
2045
|
+
*
|
|
2046
|
+
* Indexer keepalive is registered with `graph.addDisposer`; explicit
|
|
2047
|
+
* `dispose()` is also available.
|
|
2048
|
+
*/
|
|
2049
|
+
declare function memoryWithKG<TMem>(graph: Graph, store: DistillBundle<TMem>, name: string, opts: MemoryWithKGOptions<TMem>): {
|
|
2050
|
+
kg: KnowledgeGraphGraph<unknown, string>;
|
|
2051
|
+
dispose: () => void;
|
|
2052
|
+
};
|
|
2053
|
+
type MemoryWithTiersOptions<TMem> = MemoryTiersOptions<TMem> & {
|
|
2054
|
+
/** Score function — same signature as `agentMemory.score`. */
|
|
2055
|
+
score: (mem: TMem, context: unknown) => number;
|
|
2056
|
+
/** Optional reactive context node (passed to `score`). */
|
|
2057
|
+
context?: NodeInput<unknown>;
|
|
2058
|
+
};
|
|
2059
|
+
/**
|
|
2060
|
+
* Attach 3-tier storage (active / archived / permanent) to a `DistillBundle`.
|
|
2061
|
+
* Wires a `tierClassifier` effect that:
|
|
2062
|
+
* - Promotes entries matching `permanentFilter` into the permanent tier.
|
|
2063
|
+
* - Archives entries whose decayed score falls below `archiveThreshold`.
|
|
2064
|
+
* - Caps the active tier at `maxActive`, evicting lowest-scored on overflow.
|
|
2065
|
+
*
|
|
2066
|
+
* **Closure state caveat (Unit 7 Q3 deferred):** `permanentKeys` +
|
|
2067
|
+
* `entryCreatedAtNs` are still closure-held for now; promotion to reactive
|
|
2068
|
+
* nodes is tracked in `docs/optimizations.md`.
|
|
2069
|
+
*/
|
|
2070
|
+
declare function memoryWithTiers<TMem>(graph: Graph, store: DistillBundle<TMem>, opts: MemoryWithTiersOptions<TMem>): {
|
|
2071
|
+
tiers: MemoryTiersBundle<TMem>;
|
|
2072
|
+
dispose: () => void;
|
|
2073
|
+
};
|
|
2074
|
+
type MemoryRetrievalOptions<TMem> = {
|
|
2075
|
+
/** Score function (same shape as `agentMemory.score`). */
|
|
2076
|
+
score: (mem: TMem, context: unknown) => number;
|
|
2077
|
+
/** Cost function for budget packing. */
|
|
2078
|
+
cost: (mem: TMem) => number;
|
|
2079
|
+
/** Token / cost budget. Default 2000. */
|
|
2080
|
+
budget?: number;
|
|
2081
|
+
/** Top-K vector candidates. Default 20. */
|
|
2082
|
+
topK?: number;
|
|
2083
|
+
/** KG expansion depth in hops. Default 1. */
|
|
2084
|
+
graphDepth?: number;
|
|
2085
|
+
/** Hierarchical-context boost weight. Default 0. */
|
|
2086
|
+
contextWeight?: number;
|
|
2087
|
+
/** Hierarchical-context accessor for entries. */
|
|
2088
|
+
contextOf?: (mem: TMem) => readonly string[] | undefined;
|
|
2089
|
+
/** Optional reactive context node (passed to `score`). */
|
|
2090
|
+
context?: NodeInput<unknown>;
|
|
2091
|
+
};
|
|
2092
|
+
type MemoryRetrievalBundle<TMem> = {
|
|
2093
|
+
/** State node mirroring the latest packed retrieval result. */
|
|
2094
|
+
readonly retrieval: Node<ReadonlyArray<RetrievalEntry<TMem>>>;
|
|
2095
|
+
/** State node mirroring the latest retrieval trace. */
|
|
2096
|
+
readonly retrievalTrace: Node<RetrievalTrace<TMem> | null>;
|
|
2097
|
+
/** Imperative consumer API — synchronous; reads cache at call time. */
|
|
2098
|
+
readonly retrieve: (query: RetrievalQuery) => ReadonlyArray<RetrievalEntry<TMem>>;
|
|
2099
|
+
/** Reactive sibling — chain into the graph. Mirrors observability state. */
|
|
2100
|
+
readonly retrieveReactive: (queryInput: NodeInput<RetrievalQuery | null>) => Node<ReadonlyArray<RetrievalEntry<TMem>>>;
|
|
2101
|
+
};
|
|
2102
|
+
/**
|
|
2103
|
+
* Build the retrieval pipeline (vector + KG + budget packing) over a
|
|
2104
|
+
* `DistillBundle` and optional `vectors` / `kg` bundles.
|
|
2105
|
+
*
|
|
2106
|
+
* Both consumer surfaces (`retrieve`, `retrieveReactive`) write to the same
|
|
2107
|
+
* `retrieval` + `retrievalTrace` state nodes — observers subscribed to those
|
|
2108
|
+
* see ALL queries regardless of which API issued them.
|
|
2109
|
+
*/
|
|
2110
|
+
declare function memoryRetrieval<TMem>(graph: Graph, store: DistillBundle<TMem>, vectors: VectorIndexBundle<TMem> | null, kg: KnowledgeGraphGraph<unknown, string> | null, opts: MemoryRetrievalOptions<TMem>): MemoryRetrievalBundle<TMem>;
|
|
2111
|
+
|
|
1812
2112
|
type GaugesAsContextOptions = {
|
|
1813
2113
|
/** Group gauges by `meta.tags` (default true). */
|
|
1814
2114
|
groupByTags?: boolean;
|
|
@@ -1849,6 +2149,13 @@ type GraphFromSpecOptions = {
|
|
|
1849
2149
|
catalog?: GraphSpecCatalog;
|
|
1850
2150
|
/** Extra instructions appended to the system prompt. */
|
|
1851
2151
|
systemPromptExtra?: string;
|
|
2152
|
+
/**
|
|
2153
|
+
* Optional AbortSignal forwarded to `adapter.invoke({ signal })`. Lets
|
|
2154
|
+
* callers cancel the in-flight LLM call (e.g. when the reactive variant
|
|
2155
|
+
* supersedes mid-flight). When the signal aborts, the underlying call
|
|
2156
|
+
* propagates the abort and `graphFromSpec` rejects with the abort reason.
|
|
2157
|
+
*/
|
|
2158
|
+
signal?: AbortSignal;
|
|
1852
2159
|
};
|
|
1853
2160
|
/**
|
|
1854
2161
|
* Ask an LLM to compose a Graph from a natural-language description.
|
|
@@ -1864,6 +2171,32 @@ type GraphFromSpecOptions = {
|
|
|
1864
2171
|
* @throws On invalid LLM output, validation failure, or unresolvable deps.
|
|
1865
2172
|
*/
|
|
1866
2173
|
declare function graphFromSpec(naturalLanguage: string, adapter: LLMAdapter, opts?: GraphFromSpecOptions): Promise<Graph>;
|
|
2174
|
+
/**
|
|
2175
|
+
* Reactive variant of {@link graphFromSpec}: re-invokes the LLM and
|
|
2176
|
+
* recompiles the graph whenever `input` emits a new natural-language
|
|
2177
|
+
* description. Useful inside the harness or refine loop when the spec text
|
|
2178
|
+
* itself is a reactive value (e.g. fed by a `state(...)` knob, a memory
|
|
2179
|
+
* snapshot, or an upstream `promptNode` output).
|
|
2180
|
+
*
|
|
2181
|
+
* **Supersede:** when the input changes mid-flight, switchMap tears the
|
|
2182
|
+
* inner producer down. The producer's cleanup aborts the in-flight LLM
|
|
2183
|
+
* call via an internal `AbortController` (threaded into `graphFromSpec`'s
|
|
2184
|
+
* new `signal` option) AND destroys any Graph that lands after cancel —
|
|
2185
|
+
* no token leak, no unreferenced compiled graphs. If the user's input
|
|
2186
|
+
* already changed by the time the LLM responds, the about-to-be-discarded
|
|
2187
|
+
* Graph is freed instead of orphaned.
|
|
2188
|
+
*
|
|
2189
|
+
* **Lifetime of the latest emitted Graph:** the caller owns each Graph
|
|
2190
|
+
* that actually reaches them. If you keep multiple historical values, call
|
|
2191
|
+
* `prev?.destroy()` before storing the new one.
|
|
2192
|
+
*
|
|
2193
|
+
* @param input - Reactive source of natural-language descriptions.
|
|
2194
|
+
* @param adapter - LLM adapter for the generation call.
|
|
2195
|
+
* @param opts - Model options and optional catalog for named node factories.
|
|
2196
|
+
* @returns `Node<Graph | null>` — emits the latest compiled graph, or `null`
|
|
2197
|
+
* while the input is empty / unsettled.
|
|
2198
|
+
*/
|
|
2199
|
+
declare function graphFromSpecReactive(input: NodeInput<string>, adapter: LLMAdapter, opts?: GraphFromSpecOptions): Node<Graph | null>;
|
|
1867
2200
|
|
|
1868
2201
|
/** OpenAI function-calling tool schema. */
|
|
1869
2202
|
type OpenAIToolSchema = {
|
|
@@ -1943,6 +2276,13 @@ type SuggestStrategyOptions = {
|
|
|
1943
2276
|
temperature?: number;
|
|
1944
2277
|
maxTokens?: number;
|
|
1945
2278
|
actor?: Actor;
|
|
2279
|
+
/**
|
|
2280
|
+
* Optional AbortSignal forwarded to `adapter.invoke({ signal })`. Lets
|
|
2281
|
+
* callers cancel the in-flight LLM call (e.g. when the reactive variant
|
|
2282
|
+
* supersedes mid-flight). When the signal aborts, the underlying call
|
|
2283
|
+
* propagates the abort and `suggestStrategy` rejects with the abort reason.
|
|
2284
|
+
*/
|
|
2285
|
+
signal?: AbortSignal;
|
|
1946
2286
|
};
|
|
1947
2287
|
/**
|
|
1948
2288
|
* Ask an LLM to analyze a graph and suggest topology/parameter changes
|
|
@@ -1959,6 +2299,22 @@ type SuggestStrategyOptions = {
|
|
|
1959
2299
|
* @throws On invalid LLM output.
|
|
1960
2300
|
*/
|
|
1961
2301
|
declare function suggestStrategy(graph: Graph, problem: string, adapter: LLMAdapter, opts?: SuggestStrategyOptions): Promise<StrategyPlan>;
|
|
2302
|
+
/**
|
|
2303
|
+
* Reactive variant of {@link suggestStrategy}: re-invokes the LLM whenever
|
|
2304
|
+
* the `problem` source emits, sampling the latest `graph` value (via
|
|
2305
|
+
* `withLatestFrom`) to describe. The graph is the *secondary* dep — only
|
|
2306
|
+
* problem changes re-trigger analysis. This breaks the feedback cycle that
|
|
2307
|
+
* would otherwise arise if downstream consumers wired `apply(plan)` back
|
|
2308
|
+
* into the same graph node (graph mutation must not auto-fire a re-analysis).
|
|
2309
|
+
*
|
|
2310
|
+
* @param graph - Reactive source of graphs to analyze.
|
|
2311
|
+
* @param problem - Reactive source of natural-language problem statements.
|
|
2312
|
+
* @param adapter - LLM adapter for the analysis call.
|
|
2313
|
+
* @param opts - Model and actor options.
|
|
2314
|
+
* @returns `Node<StrategyPlan | null>` — emits the latest plan, or `null`
|
|
2315
|
+
* while inputs are unsettled.
|
|
2316
|
+
*/
|
|
2317
|
+
declare function suggestStrategyReactive(graph: Node<Graph | null>, problem: NodeInput<string>, adapter: LLMAdapter, opts?: SuggestStrategyOptions): Node<StrategyPlan | null>;
|
|
1962
2318
|
|
|
1963
2319
|
/** Validation result from {@link validateGraphDef}. */
|
|
1964
2320
|
type GraphDefValidation = {
|
|
@@ -1998,7 +2354,9 @@ declare const index_AdapterProvider: typeof AdapterProvider;
|
|
|
1998
2354
|
type index_AdapterStats = AdapterStats;
|
|
1999
2355
|
declare const index_AdapterTier: typeof AdapterTier;
|
|
2000
2356
|
type index_AdmissionScore3DOptions = AdmissionScore3DOptions;
|
|
2357
|
+
type index_AdmissionScoredOptions<Dims extends string, TRaw = unknown> = AdmissionScoredOptions<Dims, TRaw>;
|
|
2001
2358
|
type index_AdmissionScores = AdmissionScores;
|
|
2359
|
+
type index_AdmissionThresholds<Dims extends string> = AdmissionThresholds<Dims>;
|
|
2002
2360
|
type index_AgentLoopGraph = AgentLoopGraph;
|
|
2003
2361
|
declare const index_AgentLoopGraph: typeof AgentLoopGraph;
|
|
2004
2362
|
type index_AgentLoopOptions = AgentLoopOptions;
|
|
@@ -2056,9 +2414,14 @@ declare const index_LLMResponse: typeof LLMResponse;
|
|
|
2056
2414
|
type index_LLMTimeoutError = LLMTimeoutError;
|
|
2057
2415
|
declare const index_LLMTimeoutError: typeof LLMTimeoutError;
|
|
2058
2416
|
type index_McpToolSchema = McpToolSchema;
|
|
2417
|
+
type index_MemoryRetrievalBundle<TMem> = MemoryRetrievalBundle<TMem>;
|
|
2418
|
+
type index_MemoryRetrievalOptions<TMem> = MemoryRetrievalOptions<TMem>;
|
|
2059
2419
|
type index_MemoryTier = MemoryTier;
|
|
2060
2420
|
type index_MemoryTiersBundle<TMem> = MemoryTiersBundle<TMem>;
|
|
2061
2421
|
type index_MemoryTiersOptions<TMem> = MemoryTiersOptions<TMem>;
|
|
2422
|
+
type index_MemoryWithKGOptions<TMem> = MemoryWithKGOptions<TMem>;
|
|
2423
|
+
type index_MemoryWithTiersOptions<TMem> = MemoryWithTiersOptions<TMem>;
|
|
2424
|
+
type index_MemoryWithVectorsOptions<TMem> = MemoryWithVectorsOptions<TMem>;
|
|
2062
2425
|
declare const index_ModelCapabilities: typeof ModelCapabilities;
|
|
2063
2426
|
declare const index_ModelFeatures: typeof ModelFeatures;
|
|
2064
2427
|
declare const index_ModelLimits: typeof ModelLimits;
|
|
@@ -2094,6 +2457,7 @@ declare const index_TieredRate: typeof TieredRate;
|
|
|
2094
2457
|
declare const index_TokenUsage: typeof TokenUsage;
|
|
2095
2458
|
declare const index_ToolCall: typeof ToolCall;
|
|
2096
2459
|
declare const index_ToolDefinition: typeof ToolDefinition;
|
|
2460
|
+
type index_ToolExecutionOptions = ToolExecutionOptions;
|
|
2097
2461
|
type index_ToolRegistryGraph = ToolRegistryGraph;
|
|
2098
2462
|
declare const index_ToolRegistryGraph: typeof ToolRegistryGraph;
|
|
2099
2463
|
type index_ToolRegistryOptions = ToolRegistryOptions;
|
|
@@ -2107,6 +2471,7 @@ type index_WithRateLimiterOptions = WithRateLimiterOptions;
|
|
|
2107
2471
|
declare const index_WithReplayCacheOptions: typeof WithReplayCacheOptions;
|
|
2108
2472
|
type index_WithRetryOptions = WithRetryOptions;
|
|
2109
2473
|
declare const index_admissionFilter3D: typeof admissionFilter3D;
|
|
2474
|
+
declare const index_admissionScored: typeof admissionScored;
|
|
2110
2475
|
declare const index_agentLoop: typeof agentLoop;
|
|
2111
2476
|
declare const index_agentMemory: typeof agentMemory;
|
|
2112
2477
|
declare const index_anthropicAdapter: typeof anthropicAdapter;
|
|
@@ -2128,11 +2493,16 @@ declare const index_gatedStream: typeof gatedStream;
|
|
|
2128
2493
|
declare const index_gaugesAsContext: typeof gaugesAsContext;
|
|
2129
2494
|
declare const index_googleAdapter: typeof googleAdapter;
|
|
2130
2495
|
declare const index_graphFromSpec: typeof graphFromSpec;
|
|
2496
|
+
declare const index_graphFromSpecReactive: typeof graphFromSpecReactive;
|
|
2131
2497
|
declare const index_handoff: typeof handoff;
|
|
2132
2498
|
declare const index_keywordFlagExtractor: typeof keywordFlagExtractor;
|
|
2133
2499
|
declare const index_knobsAsTools: typeof knobsAsTools;
|
|
2134
2500
|
declare const index_llmConsolidator: typeof llmConsolidator;
|
|
2135
2501
|
declare const index_llmExtractor: typeof llmExtractor;
|
|
2502
|
+
declare const index_memoryRetrieval: typeof memoryRetrieval;
|
|
2503
|
+
declare const index_memoryWithKG: typeof memoryWithKG;
|
|
2504
|
+
declare const index_memoryWithTiers: typeof memoryWithTiers;
|
|
2505
|
+
declare const index_memoryWithVectors: typeof memoryWithVectors;
|
|
2136
2506
|
declare const index_observableAdapter: typeof observableAdapter;
|
|
2137
2507
|
declare const index_openAICompatAdapter: typeof openAICompatAdapter;
|
|
2138
2508
|
declare const index_parseRateLimitFromError: typeof parseRateLimitFromError;
|
|
@@ -2144,9 +2514,11 @@ declare const index_resilientAdapter: typeof resilientAdapter;
|
|
|
2144
2514
|
declare const index_streamExtractor: typeof streamExtractor;
|
|
2145
2515
|
declare const index_streamingPromptNode: typeof streamingPromptNode;
|
|
2146
2516
|
declare const index_suggestStrategy: typeof suggestStrategy;
|
|
2517
|
+
declare const index_suggestStrategyReactive: typeof suggestStrategyReactive;
|
|
2147
2518
|
declare const index_systemPromptBuilder: typeof systemPromptBuilder;
|
|
2148
2519
|
declare const index_tier: typeof tier;
|
|
2149
2520
|
declare const index_toolCallExtractor: typeof toolCallExtractor;
|
|
2521
|
+
declare const index_toolExecution: typeof toolExecution;
|
|
2150
2522
|
declare const index_toolRegistry: typeof toolRegistry;
|
|
2151
2523
|
declare const index_toolSelector: typeof toolSelector;
|
|
2152
2524
|
declare const index_validateGraphDef: typeof validateGraphDef;
|
|
@@ -2159,7 +2531,7 @@ declare const index_withRetry: typeof withRetry;
|
|
|
2159
2531
|
declare const index_withTimeout: typeof withTimeout;
|
|
2160
2532
|
declare const index_zeroPrice: typeof zeroPrice;
|
|
2161
2533
|
declare namespace index {
|
|
2162
|
-
export { index_AdapterProvider as AdapterProvider, type index_AdapterStats as AdapterStats, index_AdapterTier as AdapterTier, type index_AdmissionScore3DOptions as AdmissionScore3DOptions, type index_AdmissionScores as AdmissionScores, index_AgentLoopGraph as AgentLoopGraph, type index_AgentLoopOptions as AgentLoopOptions, type index_AgentLoopStatus as AgentLoopStatus, type index_AgentMemoryGraph as AgentMemoryGraph, type index_AgentMemoryOptions as AgentMemoryOptions, index_AllTiersExhaustedError as AllTiersExhaustedError, type index_AnthropicAdapterOptions as AnthropicAdapterOptions, type index_AnthropicSdkLike as AnthropicSdkLike, type index_BudgetCaps as BudgetCaps, index_BudgetExhaustedError as BudgetExhaustedError, type index_BudgetGateBundle as BudgetGateBundle, type index_BudgetTotals as BudgetTotals, type index_CallStatsEvent as CallStatsEvent, index_CapabilitiesRegistry as CapabilitiesRegistry, index_CascadeExhaustionReport as CascadeExhaustionReport, index_CascadingLlmAdapterOptions as CascadingLlmAdapterOptions, index_ChatMessage as ChatMessage, index_ChatStreamGraph as ChatStreamGraph, type index_ChatStreamOptions as ChatStreamOptions, index_CircuitOpenError as CircuitOpenError, type index_ContentDecision as ContentDecision, type index_ContentGateOptions as ContentGateOptions, type index_CostMeterOptions as CostMeterOptions, type index_CostMeterReading as CostMeterReading, index_CreateAdapterOptions as CreateAdapterOptions, index_DEFAULT_DECAY_RATE as DEFAULT_DECAY_RATE, type index_DryRunAdapterOptions as DryRunAdapterOptions, type index_ExtractedToolCall as ExtractedToolCall, index_FallbackAdapterOptions as FallbackAdapterOptions, index_FallbackFixture as FallbackFixture, index_FallbackMissError as FallbackMissError, index_FallbackMissPolicy as FallbackMissPolicy, type index_FromLLMOptions as FromLLMOptions, type index_FrozenContextOptions as FrozenContextOptions, type index_GatedStreamHandle as GatedStreamHandle, type index_GatedStreamOptions as GatedStreamOptions, type index_GaugesAsContextOptions as GaugesAsContextOptions, type index_GoogleAdapterOptions as GoogleAdapterOptions, type index_GoogleSdkLike as GoogleSdkLike, type index_GraphDefValidation as GraphDefValidation, type index_GraphFromSpecOptions as GraphFromSpecOptions, type index_HandoffOptions as HandoffOptions, type index_HttpErrorLike as HttpErrorLike, type index_KeywordFlag as KeywordFlag, type index_KeywordFlagExtractorOptions as KeywordFlagExtractorOptions, type index_KnobsAsToolsResult as KnobsAsToolsResult, index_LLMAdapter as LLMAdapter, type index_LLMConsolidatorOptions as LLMConsolidatorOptions, type index_LLMExtractorOptions as LLMExtractorOptions, index_LLMInvokeOptions as LLMInvokeOptions, index_LLMResponse as LLMResponse, index_LLMTimeoutError as LLMTimeoutError, type index_McpToolSchema as McpToolSchema, type index_MemoryTier as MemoryTier, type index_MemoryTiersBundle as MemoryTiersBundle, type index_MemoryTiersOptions as MemoryTiersOptions, index_ModelCapabilities as ModelCapabilities, index_ModelFeatures as ModelFeatures, index_ModelLimits as ModelLimits, index_ModelPricing as ModelPricing, index_OpenAICompatAdapterOptions as OpenAICompatAdapterOptions, index_OpenAICompatPreset as OpenAICompatPreset, index_OpenAISdkLike as OpenAISdkLike, type index_OpenAIToolSchema as OpenAIToolSchema, index_PriceBreakdown as PriceBreakdown, index_PricingFn as PricingFn, index_PricingRegistry as PricingRegistry, type index_PromptNodeOptions as PromptNodeOptions, index_Rate as Rate, type index_RedactorOptions as RedactorOptions, index_ReplayCacheKeyContext as ReplayCacheKeyContext, index_ReplayCacheMissError as ReplayCacheMissError, index_ReplayCacheMode as ReplayCacheMode, type index_ResilientAdapterBundle as ResilientAdapterBundle, type index_ResilientAdapterOptions as ResilientAdapterOptions, type index_RetrievalEntry as RetrievalEntry, type index_RetrievalPipelineOptions as RetrievalPipelineOptions, type index_RetrievalQuery as RetrievalQuery, type index_RetrievalTrace as RetrievalTrace, type index_StampedDelta as StampedDelta, type index_StrategyOperation as StrategyOperation, type index_StrategyPlan as StrategyPlan, index_StreamDelta as StreamDelta, type index_StreamingPromptNodeHandle as StreamingPromptNodeHandle, type index_StreamingPromptNodeOptions as StreamingPromptNodeOptions, type index_SuggestStrategyOptions as SuggestStrategyOptions, type index_SystemPromptHandle as SystemPromptHandle, index_TieredRate as TieredRate, index_TokenUsage as TokenUsage, index_ToolCall as ToolCall, index_ToolDefinition as ToolDefinition, index_ToolRegistryGraph as ToolRegistryGraph, type index_ToolRegistryOptions as ToolRegistryOptions, type index_ToolResult as ToolResult, type index_ToolSelectorOptions as ToolSelectorOptions, type index_WithBreakerOptions as WithBreakerOptions, type index_WithBudgetGateOptions as WithBudgetGateOptions, type index_WithDryRunBundle as WithDryRunBundle, type index_WithDryRunOptions as WithDryRunOptions, type index_WithRateLimiterOptions as WithRateLimiterOptions, index_WithReplayCacheOptions as WithReplayCacheOptions, type index_WithRetryOptions as WithRetryOptions, index_admissionFilter3D as admissionFilter3D, index_agentLoop as agentLoop, index_agentMemory as agentMemory, index_anthropicAdapter as anthropicAdapter, index_canonicalJson as canonicalJson, index_cascadingLlmAdapter as cascadingLlmAdapter, index_chatStream as chatStream, index_composePricing as composePricing, index_computePrice as computePrice, index_contentGate as contentGate, index_costMeterExtractor as costMeterExtractor, index_createAdapter as createAdapter, index_createCapabilitiesRegistry as createCapabilitiesRegistry, index_createPricingRegistry as createPricingRegistry, index_dryRunAdapter as dryRunAdapter, index_fallbackAdapter as fallbackAdapter, index_fromLLM as fromLLM, index_frozenContext as frozenContext, index_gatedStream as gatedStream, index_gaugesAsContext as gaugesAsContext, index_googleAdapter as googleAdapter, index_graphFromSpec as graphFromSpec, index_handoff as handoff, index_keywordFlagExtractor as keywordFlagExtractor, index_knobsAsTools as knobsAsTools, index_llmConsolidator as llmConsolidator, index_llmExtractor as llmExtractor, index_observableAdapter as observableAdapter, index_openAICompatAdapter as openAICompatAdapter, index_parseRateLimitFromError as parseRateLimitFromError, index_pricingFor as pricingFor, index_promptNode as promptNode, index_redactor as redactor, index_registryPricing as registryPricing, index_resilientAdapter as resilientAdapter, index_streamExtractor as streamExtractor, index_streamingPromptNode as streamingPromptNode, index_suggestStrategy as suggestStrategy, index_systemPromptBuilder as systemPromptBuilder, index_tier as tier, index_toolCallExtractor as toolCallExtractor, index_toolRegistry as toolRegistry, index_toolSelector as toolSelector, index_validateGraphDef as validateGraphDef, index_withBreaker as withBreaker, index_withBudgetGate as withBudgetGate, index_withDryRun as withDryRun, index_withRateLimiter as withRateLimiter, index_withReplayCache as withReplayCache, index_withRetry as withRetry, index_withTimeout as withTimeout, index_zeroPrice as zeroPrice };
|
|
2534
|
+
export { index_AdapterProvider as AdapterProvider, type index_AdapterStats as AdapterStats, index_AdapterTier as AdapterTier, type index_AdmissionScore3DOptions as AdmissionScore3DOptions, type index_AdmissionScoredOptions as AdmissionScoredOptions, type index_AdmissionScores as AdmissionScores, type index_AdmissionThresholds as AdmissionThresholds, index_AgentLoopGraph as AgentLoopGraph, type index_AgentLoopOptions as AgentLoopOptions, type index_AgentLoopStatus as AgentLoopStatus, type index_AgentMemoryGraph as AgentMemoryGraph, type index_AgentMemoryOptions as AgentMemoryOptions, index_AllTiersExhaustedError as AllTiersExhaustedError, type index_AnthropicAdapterOptions as AnthropicAdapterOptions, type index_AnthropicSdkLike as AnthropicSdkLike, type index_BudgetCaps as BudgetCaps, index_BudgetExhaustedError as BudgetExhaustedError, type index_BudgetGateBundle as BudgetGateBundle, type index_BudgetTotals as BudgetTotals, type index_CallStatsEvent as CallStatsEvent, index_CapabilitiesRegistry as CapabilitiesRegistry, index_CascadeExhaustionReport as CascadeExhaustionReport, index_CascadingLlmAdapterOptions as CascadingLlmAdapterOptions, index_ChatMessage as ChatMessage, index_ChatStreamGraph as ChatStreamGraph, type index_ChatStreamOptions as ChatStreamOptions, index_CircuitOpenError as CircuitOpenError, type index_ContentDecision as ContentDecision, type index_ContentGateOptions as ContentGateOptions, type index_CostMeterOptions as CostMeterOptions, type index_CostMeterReading as CostMeterReading, index_CreateAdapterOptions as CreateAdapterOptions, index_DEFAULT_DECAY_RATE as DEFAULT_DECAY_RATE, type index_DryRunAdapterOptions as DryRunAdapterOptions, type index_ExtractedToolCall as ExtractedToolCall, index_FallbackAdapterOptions as FallbackAdapterOptions, index_FallbackFixture as FallbackFixture, index_FallbackMissError as FallbackMissError, index_FallbackMissPolicy as FallbackMissPolicy, type index_FromLLMOptions as FromLLMOptions, type index_FrozenContextOptions as FrozenContextOptions, type index_GatedStreamHandle as GatedStreamHandle, type index_GatedStreamOptions as GatedStreamOptions, type index_GaugesAsContextOptions as GaugesAsContextOptions, type index_GoogleAdapterOptions as GoogleAdapterOptions, type index_GoogleSdkLike as GoogleSdkLike, type index_GraphDefValidation as GraphDefValidation, type index_GraphFromSpecOptions as GraphFromSpecOptions, type index_HandoffOptions as HandoffOptions, type index_HttpErrorLike as HttpErrorLike, type index_KeywordFlag as KeywordFlag, type index_KeywordFlagExtractorOptions as KeywordFlagExtractorOptions, type index_KnobsAsToolsResult as KnobsAsToolsResult, index_LLMAdapter as LLMAdapter, type index_LLMConsolidatorOptions as LLMConsolidatorOptions, type index_LLMExtractorOptions as LLMExtractorOptions, index_LLMInvokeOptions as LLMInvokeOptions, index_LLMResponse as LLMResponse, index_LLMTimeoutError as LLMTimeoutError, type index_McpToolSchema as McpToolSchema, type index_MemoryRetrievalBundle as MemoryRetrievalBundle, type index_MemoryRetrievalOptions as MemoryRetrievalOptions, type index_MemoryTier as MemoryTier, type index_MemoryTiersBundle as MemoryTiersBundle, type index_MemoryTiersOptions as MemoryTiersOptions, type index_MemoryWithKGOptions as MemoryWithKGOptions, type index_MemoryWithTiersOptions as MemoryWithTiersOptions, type index_MemoryWithVectorsOptions as MemoryWithVectorsOptions, index_ModelCapabilities as ModelCapabilities, index_ModelFeatures as ModelFeatures, index_ModelLimits as ModelLimits, index_ModelPricing as ModelPricing, index_OpenAICompatAdapterOptions as OpenAICompatAdapterOptions, index_OpenAICompatPreset as OpenAICompatPreset, index_OpenAISdkLike as OpenAISdkLike, type index_OpenAIToolSchema as OpenAIToolSchema, index_PriceBreakdown as PriceBreakdown, index_PricingFn as PricingFn, index_PricingRegistry as PricingRegistry, type index_PromptNodeOptions as PromptNodeOptions, index_Rate as Rate, type index_RedactorOptions as RedactorOptions, index_ReplayCacheKeyContext as ReplayCacheKeyContext, index_ReplayCacheMissError as ReplayCacheMissError, index_ReplayCacheMode as ReplayCacheMode, type index_ResilientAdapterBundle as ResilientAdapterBundle, type index_ResilientAdapterOptions as ResilientAdapterOptions, type index_RetrievalEntry as RetrievalEntry, type index_RetrievalPipelineOptions as RetrievalPipelineOptions, type index_RetrievalQuery as RetrievalQuery, type index_RetrievalTrace as RetrievalTrace, type index_StampedDelta as StampedDelta, type index_StrategyOperation as StrategyOperation, type index_StrategyPlan as StrategyPlan, index_StreamDelta as StreamDelta, type index_StreamingPromptNodeHandle as StreamingPromptNodeHandle, type index_StreamingPromptNodeOptions as StreamingPromptNodeOptions, type index_SuggestStrategyOptions as SuggestStrategyOptions, type index_SystemPromptHandle as SystemPromptHandle, index_TieredRate as TieredRate, index_TokenUsage as TokenUsage, index_ToolCall as ToolCall, index_ToolDefinition as ToolDefinition, type index_ToolExecutionOptions as ToolExecutionOptions, index_ToolRegistryGraph as ToolRegistryGraph, type index_ToolRegistryOptions as ToolRegistryOptions, type index_ToolResult as ToolResult, type index_ToolSelectorOptions as ToolSelectorOptions, type index_WithBreakerOptions as WithBreakerOptions, type index_WithBudgetGateOptions as WithBudgetGateOptions, type index_WithDryRunBundle as WithDryRunBundle, type index_WithDryRunOptions as WithDryRunOptions, type index_WithRateLimiterOptions as WithRateLimiterOptions, index_WithReplayCacheOptions as WithReplayCacheOptions, type index_WithRetryOptions as WithRetryOptions, index_admissionFilter3D as admissionFilter3D, index_admissionScored as admissionScored, index_agentLoop as agentLoop, index_agentMemory as agentMemory, index_anthropicAdapter as anthropicAdapter, index_canonicalJson as canonicalJson, index_cascadingLlmAdapter as cascadingLlmAdapter, index_chatStream as chatStream, index_composePricing as composePricing, index_computePrice as computePrice, index_contentGate as contentGate, index_costMeterExtractor as costMeterExtractor, index_createAdapter as createAdapter, index_createCapabilitiesRegistry as createCapabilitiesRegistry, index_createPricingRegistry as createPricingRegistry, index_dryRunAdapter as dryRunAdapter, index_fallbackAdapter as fallbackAdapter, index_fromLLM as fromLLM, index_frozenContext as frozenContext, index_gatedStream as gatedStream, index_gaugesAsContext as gaugesAsContext, index_googleAdapter as googleAdapter, index_graphFromSpec as graphFromSpec, index_graphFromSpecReactive as graphFromSpecReactive, index_handoff as handoff, index_keywordFlagExtractor as keywordFlagExtractor, index_knobsAsTools as knobsAsTools, index_llmConsolidator as llmConsolidator, index_llmExtractor as llmExtractor, index_memoryRetrieval as memoryRetrieval, index_memoryWithKG as memoryWithKG, index_memoryWithTiers as memoryWithTiers, index_memoryWithVectors as memoryWithVectors, index_observableAdapter as observableAdapter, index_openAICompatAdapter as openAICompatAdapter, index_parseRateLimitFromError as parseRateLimitFromError, index_pricingFor as pricingFor, index_promptNode as promptNode, index_redactor as redactor, index_registryPricing as registryPricing, index_resilientAdapter as resilientAdapter, index_streamExtractor as streamExtractor, index_streamingPromptNode as streamingPromptNode, index_suggestStrategy as suggestStrategy, index_suggestStrategyReactive as suggestStrategyReactive, index_systemPromptBuilder as systemPromptBuilder, index_tier as tier, index_toolCallExtractor as toolCallExtractor, index_toolExecution as toolExecution, index_toolRegistry as toolRegistry, index_toolSelector as toolSelector, index_validateGraphDef as validateGraphDef, index_withBreaker as withBreaker, index_withBudgetGate as withBudgetGate, index_withDryRun as withDryRun, index_withRateLimiter as withRateLimiter, index_withReplayCache as withReplayCache, index_withRetry as withRetry, index_withTimeout as withTimeout, index_zeroPrice as zeroPrice };
|
|
2163
2535
|
}
|
|
2164
2536
|
|
|
2165
|
-
export { type
|
|
2537
|
+
export { type OpenAIToolSchema as $, type AdapterStats as A, type BudgetCaps as B, type CallStatsEvent as C, DEFAULT_DECAY_RATE as D, type ExtractedToolCall as E, type FromLLMOptions as F, type GatedStreamHandle as G, type GoogleSdkLike as H, type GraphDefValidation as I, type GraphFromSpecOptions as J, type HandoffOptions as K, type HttpErrorLike as L, type KeywordFlag as M, type KeywordFlagExtractorOptions as N, type KnobsAsToolsResult as O, type LLMConsolidatorOptions as P, type LLMExtractorOptions as Q, LLMTimeoutError as R, type McpToolSchema as S, type MemoryRetrievalBundle as T, type MemoryRetrievalOptions as U, type MemoryTier as V, type MemoryTiersBundle as W, type MemoryTiersOptions as X, type MemoryWithKGOptions as Y, type MemoryWithTiersOptions as Z, type MemoryWithVectorsOptions as _, type AdmissionScore3DOptions as a, toolRegistry as a$, type PromptNodeOptions as a0, type RedactorOptions as a1, type ResilientAdapterBundle as a2, type ResilientAdapterOptions as a3, type RetrievalEntry as a4, type RetrievalPipelineOptions as a5, type RetrievalQuery as a6, type RetrievalTrace as a7, type StampedDelta as a8, type StrategyOperation as a9, frozenContext as aA, gatedStream as aB, gaugesAsContext as aC, googleAdapter as aD, graphFromSpec as aE, graphFromSpecReactive as aF, handoff as aG, keywordFlagExtractor as aH, knobsAsTools as aI, llmConsolidator as aJ, llmExtractor as aK, memoryRetrieval as aL, memoryWithKG as aM, memoryWithTiers as aN, memoryWithVectors as aO, observableAdapter as aP, parseRateLimitFromError as aQ, promptNode as aR, redactor as aS, resilientAdapter as aT, streamExtractor as aU, streamingPromptNode as aV, suggestStrategy as aW, suggestStrategyReactive as aX, systemPromptBuilder as aY, toolCallExtractor as aZ, toolExecution as a_, type StrategyPlan as aa, type StreamingPromptNodeHandle as ab, type StreamingPromptNodeOptions as ac, type SuggestStrategyOptions as ad, type SystemPromptHandle as ae, type ToolExecutionOptions as af, ToolRegistryGraph as ag, type ToolRegistryOptions as ah, type ToolResult as ai, type ToolSelectorOptions as aj, type WithBreakerOptions as ak, type WithBudgetGateOptions as al, type WithDryRunBundle as am, type WithDryRunOptions as an, type WithRateLimiterOptions as ao, type WithRetryOptions as ap, admissionFilter3D as aq, admissionScored as ar, agentLoop as as, agentMemory as at, anthropicAdapter as au, chatStream as av, contentGate as aw, costMeterExtractor as ax, dryRunAdapter as ay, fromLLM as az, type AdmissionScoredOptions as b, toolSelector as b0, validateGraphDef as b1, withBreaker as b2, withBudgetGate as b3, withDryRun as b4, withRateLimiter as b5, withRetry as b6, withTimeout as b7, type AdmissionScores as c, type AdmissionThresholds as d, AgentLoopGraph as e, type AgentLoopOptions as f, type AgentLoopStatus as g, type AgentMemoryGraph as h, index as i, type AgentMemoryOptions as j, type AnthropicAdapterOptions as k, type AnthropicSdkLike as l, BudgetExhaustedError as m, type BudgetGateBundle as n, type BudgetTotals as o, ChatStreamGraph as p, type ChatStreamOptions as q, type ContentDecision as r, type ContentGateOptions as s, type CostMeterOptions as t, type CostMeterReading as u, type DryRunAdapterOptions as v, type FrozenContextOptions as w, type GatedStreamOptions as x, type GaugesAsContextOptions as y, type GoogleAdapterOptions as z };
|