@anvia/core 1.1.2 → 1.2.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/README.md +226 -0
- package/dist/agent/agent-stream.js +7 -0
- package/dist/agent/agent-stream.js.map +1 -0
- package/dist/agent/agent-tool.js +24 -0
- package/dist/agent/agent-tool.js.map +1 -0
- package/dist/agent/agent.js +89 -0
- package/dist/agent/agent.js.map +1 -0
- package/dist/agent/errors.js +17 -0
- package/dist/agent/errors.js.map +1 -0
- package/dist/agent/ids.js +7 -0
- package/dist/agent/ids.js.map +1 -0
- package/dist/agent/index.d.ts +127 -9
- package/dist/agent/index.js +103 -21
- package/dist/agent/interactions/index.js +2 -2
- package/dist/agent/interactions.js +22 -0
- package/dist/agent/interactions.js.map +1 -0
- package/dist/agent/lifecycle.js +9 -0
- package/dist/agent/lifecycle.js.map +1 -0
- package/dist/agent/output-schema.js +10 -0
- package/dist/agent/output-schema.js.map +1 -0
- package/dist/agent/resolve-options.js +46 -0
- package/dist/agent/resolve-options.js.map +1 -0
- package/dist/agent/resolved-agent.js +92 -0
- package/dist/agent/resolved-agent.js.map +1 -0
- package/dist/agent/run-types.js +1 -0
- package/dist/agent/run-types.js.map +1 -0
- package/dist/agent/snapshot.js +17 -0
- package/dist/agent/snapshot.js.map +1 -0
- package/dist/agent/team/agent-team.js +98 -0
- package/dist/agent/team/agent-team.js.map +1 -0
- package/dist/agent/team/errors.js +9 -0
- package/dist/agent/team/errors.js.map +1 -0
- package/dist/agent/team/index.js +104 -0
- package/dist/agent/team/index.js.map +1 -0
- package/dist/agent/team/types.js +1 -0
- package/dist/agent/team/types.js.map +1 -0
- package/dist/agent/tool-catalog.js +37 -0
- package/dist/agent/tool-catalog.js.map +1 -0
- package/dist/agent/tool-state.js +11 -0
- package/dist/agent/tool-state.js.map +1 -0
- package/dist/agent/types.js +1 -0
- package/dist/agent/types.js.map +1 -0
- package/dist/agent/vector-context.js +10 -0
- package/dist/agent/vector-context.js.map +1 -0
- package/dist/{agent-DTmzs1Qr.d.ts → agent-C9VhENdj.d.ts} +2 -3
- package/dist/{chunk-2QZJTG2E.js → chunk-23GEYG2X.js} +11 -71
- package/dist/chunk-23GEYG2X.js.map +1 -0
- package/dist/{chunk-I3Q7XSBB.js → chunk-23LRXKQX.js} +6 -4
- package/dist/{chunk-I3Q7XSBB.js.map → chunk-23LRXKQX.js.map} +1 -1
- package/dist/{chunk-YK4WAAS4.js → chunk-2NLINXRF.js} +1 -1
- package/dist/{chunk-SPD4XVR7.js → chunk-2XSMGVBG.js} +1 -1
- package/dist/chunk-3J2CSVPR.js +1 -0
- package/dist/chunk-3J2CSVPR.js.map +1 -0
- package/dist/chunk-3P3YVJ7V.js +1 -0
- package/dist/chunk-3P3YVJ7V.js.map +1 -0
- package/dist/chunk-3TAQXJBC.js +107 -0
- package/dist/chunk-3TAQXJBC.js.map +1 -0
- package/dist/chunk-47NTHIVB.js +76 -0
- package/dist/chunk-47NTHIVB.js.map +1 -0
- package/dist/chunk-4AW2633B.js +9 -0
- package/dist/chunk-4AW2633B.js.map +1 -0
- package/dist/{chunk-3XQGVDU5.js → chunk-4C7AXYOM.js} +1 -1
- package/dist/{chunk-IZNOP6JG.js → chunk-4FIVU53H.js} +1 -1
- package/dist/chunk-4ITAV7YA.js +1 -0
- package/dist/chunk-4ITAV7YA.js.map +1 -0
- package/dist/{chunk-7JLAIN6E.js → chunk-4ONUNWGC.js} +2 -2
- package/dist/chunk-4UUIGAIX.js +1 -0
- package/dist/chunk-4UUIGAIX.js.map +1 -0
- package/dist/chunk-53TPAXYR.js +1 -0
- package/dist/chunk-53TPAXYR.js.map +1 -0
- package/dist/chunk-5AETKC4L.js +107 -0
- package/dist/chunk-5AETKC4L.js.map +1 -0
- package/dist/chunk-5I2NVRHC.js +146 -0
- package/dist/chunk-5I2NVRHC.js.map +1 -0
- package/dist/chunk-5IURMWFN.js +53 -0
- package/dist/chunk-5IURMWFN.js.map +1 -0
- package/dist/chunk-5M6GTA3T.js +1 -0
- package/dist/chunk-5M6GTA3T.js.map +1 -0
- package/dist/chunk-5N5W7CX7.js +18 -0
- package/dist/chunk-5N5W7CX7.js.map +1 -0
- package/dist/chunk-5P2YOQSA.js +355 -0
- package/dist/chunk-5P2YOQSA.js.map +1 -0
- package/dist/chunk-5S7T2URX.js +1 -0
- package/dist/chunk-5S7T2URX.js.map +1 -0
- package/dist/chunk-5V533R7F.js +19 -0
- package/dist/chunk-5V533R7F.js.map +1 -0
- package/dist/chunk-5WLIHNNJ.js +56 -0
- package/dist/chunk-5WLIHNNJ.js.map +1 -0
- package/dist/chunk-6BTJC3ES.js +37 -0
- package/dist/chunk-6BTJC3ES.js.map +1 -0
- package/dist/chunk-6N4ENZO4.js +24 -0
- package/dist/chunk-6N4ENZO4.js.map +1 -0
- package/dist/{chunk-4UQALF5Y.js → chunk-6RQYWZI3.js} +2 -36
- package/dist/chunk-6RQYWZI3.js.map +1 -0
- package/dist/chunk-6TAWRKFK.js +86 -0
- package/dist/chunk-6TAWRKFK.js.map +1 -0
- package/dist/chunk-7F53DOML.js +53 -0
- package/dist/chunk-7F53DOML.js.map +1 -0
- package/dist/chunk-7KAGWJ5M.js +112 -0
- package/dist/chunk-7KAGWJ5M.js.map +1 -0
- package/dist/chunk-7LBPRXZP.js +1 -0
- package/dist/chunk-7LBPRXZP.js.map +1 -0
- package/dist/chunk-A7BXVZXZ.js +25 -0
- package/dist/chunk-A7BXVZXZ.js.map +1 -0
- package/dist/chunk-B47EXUHL.js +67 -0
- package/dist/chunk-B47EXUHL.js.map +1 -0
- package/dist/chunk-B5JQDR33.js +14 -0
- package/dist/chunk-B5JQDR33.js.map +1 -0
- package/dist/chunk-B5YTCKUJ.js +158 -0
- package/dist/chunk-B5YTCKUJ.js.map +1 -0
- package/dist/chunk-BDDC72GF.js +189 -0
- package/dist/chunk-BDDC72GF.js.map +1 -0
- package/dist/chunk-BDKFFFVX.js +342 -0
- package/dist/chunk-BDKFFFVX.js.map +1 -0
- package/dist/{chunk-QGX73TSQ.js → chunk-BONQTXRQ.js} +3 -12
- package/dist/chunk-BONQTXRQ.js.map +1 -0
- package/dist/chunk-BUPC72Y2.js +1007 -0
- package/dist/chunk-BUPC72Y2.js.map +1 -0
- package/dist/chunk-CKKNO4XB.js +70 -0
- package/dist/chunk-CKKNO4XB.js.map +1 -0
- package/dist/chunk-CX7ZVTO5.js +22 -0
- package/dist/chunk-CX7ZVTO5.js.map +1 -0
- package/dist/chunk-DU4WA6LQ.js +1 -0
- package/dist/chunk-DU4WA6LQ.js.map +1 -0
- package/dist/chunk-EJR6VVB3.js +63 -0
- package/dist/chunk-EJR6VVB3.js.map +1 -0
- package/dist/chunk-EKZRAWBP.js +110 -0
- package/dist/chunk-EKZRAWBP.js.map +1 -0
- package/dist/chunk-ENZ2XX27.js +26 -0
- package/dist/chunk-ENZ2XX27.js.map +1 -0
- package/dist/chunk-EOAJBBII.js +1 -0
- package/dist/chunk-EOAJBBII.js.map +1 -0
- package/dist/chunk-ERN7P6Q4.js +1 -0
- package/dist/chunk-ERN7P6Q4.js.map +1 -0
- package/dist/chunk-ESOFEAYK.js +57 -0
- package/dist/chunk-ESOFEAYK.js.map +1 -0
- package/dist/chunk-ETYB5JO6.js +175 -0
- package/dist/chunk-ETYB5JO6.js.map +1 -0
- package/dist/chunk-EZR5AV3J.js +74 -0
- package/dist/chunk-EZR5AV3J.js.map +1 -0
- package/dist/chunk-F2OKLHGB.js +9 -0
- package/dist/chunk-F2OKLHGB.js.map +1 -0
- package/dist/chunk-F3E2RLC7.js +342 -0
- package/dist/chunk-F3E2RLC7.js.map +1 -0
- package/dist/chunk-FAPIZJS2.js +54 -0
- package/dist/chunk-FAPIZJS2.js.map +1 -0
- package/dist/chunk-GDJNOZ47.js +1 -0
- package/dist/chunk-GDJNOZ47.js.map +1 -0
- package/dist/chunk-GDY2Z2SZ.js +83 -0
- package/dist/chunk-GDY2Z2SZ.js.map +1 -0
- package/dist/chunk-GLMYZ6OA.js +20 -0
- package/dist/chunk-GLMYZ6OA.js.map +1 -0
- package/dist/{chunk-XEVOC433.js → chunk-GPVXCY5I.js} +2 -73
- package/dist/chunk-GPVXCY5I.js.map +1 -0
- package/dist/{chunk-KSKST3KP.js → chunk-H3H74RWJ.js} +1 -1
- package/dist/chunk-HAAGSIZH.js +89 -0
- package/dist/chunk-HAAGSIZH.js.map +1 -0
- package/dist/{chunk-K5L7R7XM.js → chunk-HHMLE3TZ.js} +6 -54
- package/dist/chunk-HHMLE3TZ.js.map +1 -0
- package/dist/{chunk-JLJMVRRE.js → chunk-HP34GRQX.js} +10 -83
- package/dist/chunk-HP34GRQX.js.map +1 -0
- package/dist/chunk-HTI343NP.js +1 -0
- package/dist/chunk-HTI343NP.js.map +1 -0
- package/dist/{chunk-T2C3CGDQ.js → chunk-HTI7DZJM.js} +6 -4
- package/dist/{chunk-T2C3CGDQ.js.map → chunk-HTI7DZJM.js.map} +1 -1
- package/dist/chunk-IDNL6IH4.js +294 -0
- package/dist/chunk-IDNL6IH4.js.map +1 -0
- package/dist/chunk-IV6YQTY2.js +47 -0
- package/dist/chunk-IV6YQTY2.js.map +1 -0
- package/dist/chunk-J4SINPUA.js +939 -0
- package/dist/chunk-J4SINPUA.js.map +1 -0
- package/dist/chunk-J6S6MT7O.js +32 -0
- package/dist/chunk-J6S6MT7O.js.map +1 -0
- package/dist/chunk-JB3RFK6K.js +168 -0
- package/dist/chunk-JB3RFK6K.js.map +1 -0
- package/dist/chunk-JBQNCUXA.js +34 -0
- package/dist/chunk-JBQNCUXA.js.map +1 -0
- package/dist/chunk-JMJFK3A4.js +1 -0
- package/dist/chunk-JMJFK3A4.js.map +1 -0
- package/dist/chunk-JMMZICU7.js +74 -0
- package/dist/chunk-JMMZICU7.js.map +1 -0
- package/dist/chunk-JOQ2T3QP.js +663 -0
- package/dist/chunk-JOQ2T3QP.js.map +1 -0
- package/dist/chunk-K4IBS7VB.js +55 -0
- package/dist/chunk-K4IBS7VB.js.map +1 -0
- package/dist/chunk-KBBQSP4M.js +16 -0
- package/dist/chunk-KBBQSP4M.js.map +1 -0
- package/dist/chunk-KFAVEL5F.js +68 -0
- package/dist/chunk-KFAVEL5F.js.map +1 -0
- package/dist/chunk-KITX3HDN.js +17 -0
- package/dist/chunk-KITX3HDN.js.map +1 -0
- package/dist/chunk-KO5NMTAM.js +1 -0
- package/dist/chunk-KO5NMTAM.js.map +1 -0
- package/dist/chunk-KY4VXIN2.js +118 -0
- package/dist/chunk-KY4VXIN2.js.map +1 -0
- package/dist/chunk-KZGSXJKU.js +29 -0
- package/dist/chunk-KZGSXJKU.js.map +1 -0
- package/dist/chunk-LAIATEUB.js +24 -0
- package/dist/chunk-LAIATEUB.js.map +1 -0
- package/dist/{chunk-OJBFDBLG.js → chunk-LBYJPMHC.js} +2 -2
- package/dist/chunk-LKIABZNR.js +49 -0
- package/dist/chunk-LKIABZNR.js.map +1 -0
- package/dist/chunk-LQJ4KHMY.js +23 -0
- package/dist/chunk-LQJ4KHMY.js.map +1 -0
- package/dist/chunk-MEN4AFDZ.js +1 -0
- package/dist/chunk-MEN4AFDZ.js.map +1 -0
- package/dist/chunk-MHOJJYDK.js +93 -0
- package/dist/chunk-MHOJJYDK.js.map +1 -0
- package/dist/chunk-MJCMKZFP.js +30 -0
- package/dist/chunk-MJCMKZFP.js.map +1 -0
- package/dist/chunk-MT3BLVYN.js +31 -0
- package/dist/chunk-MT3BLVYN.js.map +1 -0
- package/dist/chunk-NF6WBPFG.js +37 -0
- package/dist/chunk-NF6WBPFG.js.map +1 -0
- package/dist/chunk-NNEKBZSM.js +66 -0
- package/dist/chunk-NNEKBZSM.js.map +1 -0
- package/dist/chunk-NPJ2T3L5.js +19 -0
- package/dist/chunk-NPJ2T3L5.js.map +1 -0
- package/dist/chunk-NVALGVQG.js +150 -0
- package/dist/chunk-NVALGVQG.js.map +1 -0
- package/dist/chunk-OJF67RNM.js +1 -0
- package/dist/chunk-OJF67RNM.js.map +1 -0
- package/dist/chunk-PHLGGRHC.js +89 -0
- package/dist/chunk-PHLGGRHC.js.map +1 -0
- package/dist/chunk-PIMD4DYG.js +104 -0
- package/dist/chunk-PIMD4DYG.js.map +1 -0
- package/dist/chunk-PJNE75WC.js +1 -0
- package/dist/chunk-PJNE75WC.js.map +1 -0
- package/dist/{chunk-J6LVLV6P.js → chunk-PLDJCCVL.js} +1 -1
- package/dist/{chunk-3RWESPUG.js → chunk-POXHJF3H.js} +6 -51
- package/dist/chunk-POXHJF3H.js.map +1 -0
- package/dist/chunk-PPJ7SYQL.js +81 -0
- package/dist/chunk-PPJ7SYQL.js.map +1 -0
- package/dist/chunk-PT777EQ3.js +48 -0
- package/dist/chunk-PT777EQ3.js.map +1 -0
- package/dist/chunk-PYLPLFJZ.js +318 -0
- package/dist/chunk-PYLPLFJZ.js.map +1 -0
- package/dist/chunk-QEPBHHAP.js +41 -0
- package/dist/chunk-QEPBHHAP.js.map +1 -0
- package/dist/chunk-QHGYCYV6.js +91 -0
- package/dist/chunk-QHGYCYV6.js.map +1 -0
- package/dist/chunk-R6722CIU.js +28 -0
- package/dist/chunk-R6722CIU.js.map +1 -0
- package/dist/chunk-RA4YVN43.js +1 -0
- package/dist/chunk-RA4YVN43.js.map +1 -0
- package/dist/chunk-RT5LUEO3.js +2339 -0
- package/dist/chunk-RT5LUEO3.js.map +1 -0
- package/dist/chunk-RXKUIJ77.js +236 -0
- package/dist/chunk-RXKUIJ77.js.map +1 -0
- package/dist/chunk-SC4SUIEY.js +1 -0
- package/dist/chunk-SC4SUIEY.js.map +1 -0
- package/dist/chunk-SQAAVYJG.js +12 -0
- package/dist/chunk-SQAAVYJG.js.map +1 -0
- package/dist/chunk-SXE4J43E.js +59 -0
- package/dist/chunk-SXE4J43E.js.map +1 -0
- package/dist/{chunk-EFLT7XZD.js → chunk-SYULMZGL.js} +6 -4
- package/dist/{chunk-EFLT7XZD.js.map → chunk-SYULMZGL.js.map} +1 -1
- package/dist/chunk-T4KS577P.js +58 -0
- package/dist/chunk-T4KS577P.js.map +1 -0
- package/dist/chunk-TFIOU6UR.js +78 -0
- package/dist/chunk-TFIOU6UR.js.map +1 -0
- package/dist/chunk-TIZGADU4.js +375 -0
- package/dist/chunk-TIZGADU4.js.map +1 -0
- package/dist/chunk-TP3MCUXS.js +1 -0
- package/dist/chunk-TP3MCUXS.js.map +1 -0
- package/dist/chunk-TSPQD5HW.js +613 -0
- package/dist/chunk-TSPQD5HW.js.map +1 -0
- package/dist/{chunk-JTJU56ZV.js → chunk-UOGM62JL.js} +11 -7
- package/dist/{chunk-JTJU56ZV.js.map → chunk-UOGM62JL.js.map} +1 -1
- package/dist/chunk-USRKPEQN.js +55 -0
- package/dist/chunk-USRKPEQN.js.map +1 -0
- package/dist/chunk-UTAB3XQI.js +667 -0
- package/dist/chunk-UTAB3XQI.js.map +1 -0
- package/dist/chunk-V3FFZWF3.js +182 -0
- package/dist/chunk-V3FFZWF3.js.map +1 -0
- package/dist/chunk-V4OZ7ISA.js +9 -0
- package/dist/chunk-V4OZ7ISA.js.map +1 -0
- package/dist/chunk-VZ5ZZBNX.js +139 -0
- package/dist/chunk-VZ5ZZBNX.js.map +1 -0
- package/dist/{chunk-AHLKV6KP.js → chunk-WN6AVBO4.js} +1 -1
- package/dist/chunk-WXR5CWSC.js +1 -0
- package/dist/chunk-WXR5CWSC.js.map +1 -0
- package/dist/chunk-X6WS3XWL.js +36 -0
- package/dist/chunk-X6WS3XWL.js.map +1 -0
- package/dist/{chunk-Q5BCNYED.js → chunk-XJRNBTIV.js} +7 -4
- package/dist/chunk-XQV3XNVT.js +225 -0
- package/dist/chunk-XQV3XNVT.js.map +1 -0
- package/dist/chunk-XV3DH5GC.js +58 -0
- package/dist/chunk-XV3DH5GC.js.map +1 -0
- package/dist/chunk-YWRXOPHC.js +43 -0
- package/dist/chunk-YWRXOPHC.js.map +1 -0
- package/dist/chunk-YZVFIW5D.js +27 -0
- package/dist/chunk-YZVFIW5D.js.map +1 -0
- package/dist/chunk-ZHC5CD6J.js +33 -0
- package/dist/chunk-ZHC5CD6J.js.map +1 -0
- package/dist/chunk-ZPJFXRQZ.js +23 -0
- package/dist/chunk-ZPJFXRQZ.js.map +1 -0
- package/dist/chunk-ZPXOBQDS.js +57 -0
- package/dist/chunk-ZPXOBQDS.js.map +1 -0
- package/dist/chunk-ZUFS6R7L.js +155 -0
- package/dist/chunk-ZUFS6R7L.js.map +1 -0
- package/dist/chunk-ZXLCTQUX.js +62 -0
- package/dist/chunk-ZXLCTQUX.js.map +1 -0
- package/dist/chunk-ZYXMWEL4.js +59 -0
- package/dist/chunk-ZYXMWEL4.js.map +1 -0
- package/dist/completion/controls.js +11 -0
- package/dist/completion/controls.js.map +1 -0
- package/dist/completion/documents.js +9 -0
- package/dist/completion/documents.js.map +1 -0
- package/dist/completion/generate-completion.js +23 -0
- package/dist/completion/generate-completion.js.map +1 -0
- package/dist/completion/index.js +23 -12
- package/dist/completion/json.js +7 -0
- package/dist/completion/json.js.map +1 -0
- package/dist/completion/message-schema.js +18 -0
- package/dist/completion/message-schema.js.map +1 -0
- package/dist/completion/provider-output-error.js +12 -0
- package/dist/completion/provider-output-error.js.map +1 -0
- package/dist/completion/stream-accumulator.js +10 -0
- package/dist/completion/stream-accumulator.js.map +1 -0
- package/dist/completion/types.js +28 -0
- package/dist/completion/types.js.map +1 -0
- package/dist/documents/chunk-text.js +7 -0
- package/dist/documents/chunk-text.js.map +1 -0
- package/dist/documents/index.js +5 -2
- package/dist/documents/text-document.js +8 -0
- package/dist/documents/text-document.js.map +1 -0
- package/dist/embeddings/distance.js +17 -0
- package/dist/embeddings/distance.js.map +1 -0
- package/dist/embeddings/embed.js +18 -0
- package/dist/embeddings/embed.js.map +1 -0
- package/dist/embeddings/index.js +11 -6
- package/dist/embeddings/types.js +2 -0
- package/dist/embeddings/types.js.map +1 -0
- package/dist/evals/advanced-metrics.js +46 -0
- package/dist/evals/advanced-metrics.js.map +1 -0
- package/dist/evals/agent-target.js +10 -0
- package/dist/evals/agent-target.js.map +1 -0
- package/dist/evals/cli.js +40 -0
- package/dist/evals/cli.js.map +1 -0
- package/dist/evals/execution.js +15 -0
- package/dist/evals/execution.js.map +1 -0
- package/dist/evals/format.js +13 -0
- package/dist/evals/format.js.map +1 -0
- package/dist/evals/index.d.ts +4 -4
- package/dist/evals/index.js +87 -2660
- package/dist/evals/index.js.map +1 -1
- package/dist/evals/judge.js +27 -0
- package/dist/evals/judge.js.map +1 -0
- package/dist/evals/metric.js +7 -0
- package/dist/evals/metric.js.map +1 -0
- package/dist/evals/metrics.js +53 -0
- package/dist/evals/metrics.js.map +1 -0
- package/dist/evals/outcome.js +7 -0
- package/dist/evals/outcome.js.map +1 -0
- package/dist/evals/reporting.js +11 -0
- package/dist/evals/reporting.js.map +1 -0
- package/dist/evals/runner.js +29 -0
- package/dist/evals/runner.js.map +1 -0
- package/dist/evals/selectors.js +18 -0
- package/dist/evals/selectors.js.map +1 -0
- package/dist/evals/suite.js +11 -0
- package/dist/evals/suite.js.map +1 -0
- package/dist/evals/types.js +1 -0
- package/dist/evals/types.js.map +1 -0
- package/dist/extractor/extractor.js +23 -0
- package/dist/extractor/extractor.js.map +1 -0
- package/dist/extractor/index.js +16 -7
- package/dist/guardrails/actions.js +13 -0
- package/dist/guardrails/actions.js.map +1 -0
- package/dist/guardrails/index.d.ts +3 -4
- package/dist/guardrails/index.js +15 -7
- package/dist/guardrails/message.js +9 -0
- package/dist/guardrails/message.js.map +1 -0
- package/dist/guardrails/policy.js +17 -0
- package/dist/guardrails/policy.js.map +1 -0
- package/dist/guardrails/runtime.js +11 -0
- package/dist/guardrails/runtime.js.map +1 -0
- package/dist/guardrails/text.js +9 -0
- package/dist/guardrails/text.js.map +1 -0
- package/dist/guardrails/types.js +1 -0
- package/dist/guardrails/types.js.map +1 -0
- package/dist/hooks/control.js +17 -0
- package/dist/hooks/control.js.map +1 -0
- package/dist/hooks/index.js +19 -0
- package/dist/hooks/index.js.map +1 -0
- package/dist/hooks/types.js +2 -0
- package/dist/hooks/types.js.map +1 -0
- package/dist/image-generation/generate-image.js +11 -0
- package/dist/image-generation/generate-image.js.map +1 -0
- package/dist/image-generation/index.js +7 -4
- package/dist/image-generation/types.js +2 -0
- package/dist/image-generation/types.js.map +1 -0
- package/dist/index.d.ts +5 -7
- package/dist/index.js +163 -57
- package/dist/internal/abort.js +13 -0
- package/dist/internal/abort.js.map +1 -0
- package/dist/internal/agent-runtime/agent-run.js +81 -0
- package/dist/internal/agent-runtime/agent-run.js.map +1 -0
- package/dist/internal/agent-runtime/approval-request.js +1 -0
- package/dist/internal/agent-runtime/approval-request.js.map +1 -0
- package/dist/internal/agent-runtime/approval-requirement.js +9 -0
- package/dist/internal/agent-runtime/approval-requirement.js.map +1 -0
- package/dist/internal/agent-runtime/continuation-state.js +26 -0
- package/dist/internal/agent-runtime/continuation-state.js.map +1 -0
- package/dist/internal/agent-runtime/interaction-suspension.js +25 -0
- package/dist/internal/agent-runtime/interaction-suspension.js.map +1 -0
- package/dist/internal/agent-runtime/memory-scope.js +8 -0
- package/dist/internal/agent-runtime/memory-scope.js.map +1 -0
- package/dist/internal/agent-runtime/memory.js +24 -0
- package/dist/internal/agent-runtime/memory.js.map +1 -0
- package/dist/internal/agent-runtime/prepared-tool-call.js +19 -0
- package/dist/internal/agent-runtime/prepared-tool-call.js.map +1 -0
- package/dist/internal/agent-runtime/retrieval.js +35 -0
- package/dist/internal/agent-runtime/retrieval.js.map +1 -0
- package/dist/internal/agent-runtime/run-options.js +9 -0
- package/dist/internal/agent-runtime/run-options.js.map +1 -0
- package/dist/internal/agent-runtime/run-validation.js +9 -0
- package/dist/internal/agent-runtime/run-validation.js.map +1 -0
- package/dist/internal/agent-runtime/stream-events.js +11 -0
- package/dist/internal/agent-runtime/stream-events.js.map +1 -0
- package/dist/internal/agent-runtime/structured-output.js +13 -0
- package/dist/internal/agent-runtime/structured-output.js.map +1 -0
- package/dist/internal/agent-runtime/tool-execution.js +55 -0
- package/dist/internal/agent-runtime/tool-execution.js.map +1 -0
- package/dist/internal/agent.d.ts +5 -5
- package/dist/internal/agent.js +93 -57
- package/dist/internal/agent.js.map +1 -1
- package/dist/internal/async-queue.js +7 -0
- package/dist/internal/async-queue.js.map +1 -0
- package/dist/internal/completion-request.js +11 -0
- package/dist/internal/completion-request.js.map +1 -0
- package/dist/internal/concurrency.js +7 -0
- package/dist/internal/concurrency.js.map +1 -0
- package/dist/internal/json-object.js +8 -0
- package/dist/internal/json-object.js.map +1 -0
- package/dist/internal/rag-text.js +7 -0
- package/dist/internal/rag-text.js.map +1 -0
- package/dist/internal/record.js +7 -0
- package/dist/internal/record.js.map +1 -0
- package/dist/internal/team-runtime/coordination.js +12 -0
- package/dist/internal/team-runtime/coordination.js.map +1 -0
- package/dist/internal/team-runtime/member.js +26 -0
- package/dist/internal/team-runtime/member.js.map +1 -0
- package/dist/internal/team-runtime/policy.js +7 -0
- package/dist/internal/team-runtime/policy.js.map +1 -0
- package/dist/internal/team-runtime/run.js +95 -0
- package/dist/internal/team-runtime/run.js.map +1 -0
- package/dist/internal/team-runtime/stream.js +9 -0
- package/dist/internal/team-runtime/stream.js.map +1 -0
- package/dist/internal/team-runtime/tools.js +17 -0
- package/dist/internal/team-runtime/tools.js.map +1 -0
- package/dist/internal/type-utils.js +1 -0
- package/dist/internal/type-utils.js.map +1 -0
- package/dist/internal/vector-search-options.js +9 -0
- package/dist/internal/vector-search-options.js.map +1 -0
- package/dist/mcp/index.js +3 -1
- package/dist/mcp/tool.js +7 -0
- package/dist/mcp/tool.js.map +1 -0
- package/dist/mcp/types.js +2 -0
- package/dist/mcp/types.js.map +1 -0
- package/dist/memory/assert.js +11 -0
- package/dist/memory/assert.js.map +1 -0
- package/dist/memory/compaction.js +26 -0
- package/dist/memory/compaction.js.map +1 -0
- package/dist/memory/errors.js +9 -0
- package/dist/memory/errors.js.map +1 -0
- package/dist/memory/index.js +23 -10
- package/dist/memory/options.js +10 -0
- package/dist/memory/options.js.map +1 -0
- package/dist/memory/scope-key.js +7 -0
- package/dist/memory/scope-key.js.map +1 -0
- package/dist/memory/types.js +2 -0
- package/dist/memory/types.js.map +1 -0
- package/dist/{types-CRda8x7p.d.ts → middleware-CWjnMbiH.d.ts} +64 -5
- package/dist/model-call-options.js +1 -0
- package/dist/model-call-options.js.map +1 -0
- package/dist/model-listing/errors.js +7 -0
- package/dist/model-listing/errors.js.map +1 -0
- package/dist/model-listing/index.js +4 -13
- package/dist/model-listing/index.js.map +1 -1
- package/dist/model-listing/types.js +2 -0
- package/dist/model-listing/types.js.map +1 -0
- package/dist/observability/group.js +30 -0
- package/dist/observability/group.js.map +1 -0
- package/dist/observability/index.d.ts +4 -6
- package/dist/observability/index.js +16 -8
- package/dist/observability/snapshot.js +7 -0
- package/dist/observability/snapshot.js.map +1 -0
- package/dist/observability/types.js +1 -0
- package/dist/observability/types.js.map +1 -0
- package/dist/pipeline/errors.js +9 -0
- package/dist/pipeline/errors.js.map +1 -0
- package/dist/pipeline/graph.js +21 -0
- package/dist/pipeline/graph.js.map +1 -0
- package/dist/pipeline/index.d.ts +4 -6
- package/dist/pipeline/index.js +27 -805
- package/dist/pipeline/index.js.map +1 -1
- package/dist/pipeline/observability.js +15 -0
- package/dist/pipeline/observability.js.map +1 -0
- package/dist/pipeline/pipeline.js +30 -0
- package/dist/pipeline/pipeline.js.map +1 -0
- package/dist/pipeline/runtime.js +17 -0
- package/dist/pipeline/runtime.js.map +1 -0
- package/dist/pipeline/types.js +1 -0
- package/dist/pipeline/types.js.map +1 -0
- package/dist/retry.js +20 -0
- package/dist/retry.js.map +1 -0
- package/dist/schema/index.js +1 -0
- package/dist/schema/index.js.map +1 -0
- package/dist/schema/zod-schema.js +7 -0
- package/dist/schema/zod-schema.js.map +1 -0
- package/dist/skills/index.js +41 -12
- package/dist/skills/instructions.js +7 -0
- package/dist/skills/instructions.js.map +1 -0
- package/dist/skills/load.js +39 -0
- package/dist/skills/load.js.map +1 -0
- package/dist/skills/local.js +9 -0
- package/dist/skills/local.js.map +1 -0
- package/dist/skills/tools.js +37 -0
- package/dist/skills/tools.js.map +1 -0
- package/dist/skills/types.js +7 -0
- package/dist/skills/types.js.map +1 -0
- package/dist/speech-generation/generate-speech.js +11 -0
- package/dist/speech-generation/generate-speech.js.map +1 -0
- package/dist/speech-generation/index.js +7 -4
- package/dist/speech-generation/types.js +2 -0
- package/dist/speech-generation/types.js.map +1 -0
- package/dist/streaming/index.js +3 -37
- package/dist/streaming/index.js.map +1 -1
- package/dist/streaming/readable-stream.js +7 -0
- package/dist/streaming/readable-stream.js.map +1 -0
- package/dist/{text-CmjXxakS.d.ts → text-GbW4WYMg.d.ts} +1 -1
- package/dist/tool/create-tool.js +14 -0
- package/dist/tool/create-tool.js.map +1 -0
- package/dist/tool/dynamic-tools.js +35 -0
- package/dist/tool/dynamic-tools.js.map +1 -0
- package/dist/tool/errors.js +11 -0
- package/dist/tool/errors.js.map +1 -0
- package/dist/tool/index.d.ts +3 -2
- package/dist/tool/index.js +41 -15
- package/dist/tool/middleware.js +7 -0
- package/dist/tool/middleware.js.map +1 -0
- package/dist/tool/question-tool.js +17 -0
- package/dist/tool/question-tool.js.map +1 -0
- package/dist/tool/skill-tool-marker.js +9 -0
- package/dist/tool/skill-tool-marker.js.map +1 -0
- package/dist/tool/think-tool.js +15 -0
- package/dist/tool/think-tool.js.map +1 -0
- package/dist/tool/tool.js +17 -0
- package/dist/tool/tool.js.map +1 -0
- package/dist/transcription/index.js +7 -4
- package/dist/transcription/transcribe.js +11 -0
- package/dist/transcription/transcribe.js.map +1 -0
- package/dist/transcription/types.js +2 -0
- package/dist/transcription/types.js.map +1 -0
- package/dist/{types-h0EL6Xn0.d.ts → types-Bqw0AuFl.d.ts} +6 -2
- package/dist/vector-store/filter.js +9 -0
- package/dist/vector-store/filter.js.map +1 -0
- package/dist/vector-store/index.js +31 -11
- package/dist/vector-store/ingest.js +19 -0
- package/dist/vector-store/ingest.js.map +1 -0
- package/dist/vector-store/lsh.js +7 -0
- package/dist/vector-store/lsh.js.map +1 -0
- package/dist/vector-store/retrieve.js +15 -0
- package/dist/vector-store/retrieve.js.map +1 -0
- package/dist/vector-store/types.js +1 -0
- package/dist/vector-store/types.js.map +1 -0
- package/package.json +2 -2
- package/dist/chunk-2QZJTG2E.js.map +0 -1
- package/dist/chunk-3RWESPUG.js.map +0 -1
- package/dist/chunk-4UQALF5Y.js.map +0 -1
- package/dist/chunk-AZB6N7P4.js +0 -320
- package/dist/chunk-AZB6N7P4.js.map +0 -1
- package/dist/chunk-JLJMVRRE.js.map +0 -1
- package/dist/chunk-K5L7R7XM.js.map +0 -1
- package/dist/chunk-OI3LSMJG.js +0 -1545
- package/dist/chunk-OI3LSMJG.js.map +0 -1
- package/dist/chunk-QGX73TSQ.js.map +0 -1
- package/dist/chunk-XC3LVC4K.js +0 -753
- package/dist/chunk-XC3LVC4K.js.map +0 -1
- package/dist/chunk-XEVOC433.js.map +0 -1
- package/dist/chunk-XSV5C4R5.js +0 -400
- package/dist/chunk-XSV5C4R5.js.map +0 -1
- package/dist/chunk-XU54PLSD.js +0 -4786
- package/dist/chunk-XU54PLSD.js.map +0 -1
- package/dist/middleware-mY_lpjDp.d.ts +0 -59
- package/dist/type-utils-CtHVDRn_.d.ts +0 -6
- /package/dist/{chunk-YK4WAAS4.js.map → chunk-2NLINXRF.js.map} +0 -0
- /package/dist/{chunk-SPD4XVR7.js.map → chunk-2XSMGVBG.js.map} +0 -0
- /package/dist/{chunk-3XQGVDU5.js.map → chunk-4C7AXYOM.js.map} +0 -0
- /package/dist/{chunk-IZNOP6JG.js.map → chunk-4FIVU53H.js.map} +0 -0
- /package/dist/{chunk-7JLAIN6E.js.map → chunk-4ONUNWGC.js.map} +0 -0
- /package/dist/{chunk-KSKST3KP.js.map → chunk-H3H74RWJ.js.map} +0 -0
- /package/dist/{chunk-OJBFDBLG.js.map → chunk-LBYJPMHC.js.map} +0 -0
- /package/dist/{chunk-J6LVLV6P.js.map → chunk-PLDJCCVL.js.map} +0 -0
- /package/dist/{chunk-AHLKV6KP.js.map → chunk-WN6AVBO4.js.map} +0 -0
- /package/dist/{chunk-Q5BCNYED.js.map → chunk-XJRNBTIV.js.map} +0 -0
package/README.md
CHANGED
|
@@ -73,6 +73,189 @@ const result = await agent.generate({ prompt: "What is happening with order A123
|
|
|
73
73
|
if (result.type === "response") console.log(result.output);
|
|
74
74
|
```
|
|
75
75
|
|
|
76
|
+
## Agent teams
|
|
77
|
+
|
|
78
|
+
`AgentTeam` coordinates ordinary `Agent` definitions and gives each spawned instance its own
|
|
79
|
+
conversation and inbox. The coordinator chooses when to spawn members and can create multiple
|
|
80
|
+
instances of the same definition. Tools keep the usual `tools: []` shape; members receive only their
|
|
81
|
+
own configured tools and the runtime's communication tools.
|
|
82
|
+
|
|
83
|
+
```ts
|
|
84
|
+
import { Agent, AgentTeam } from "@anvia/core/agent";
|
|
85
|
+
|
|
86
|
+
// model, readFileTool, and searchTool are application-owned objects.
|
|
87
|
+
const researcher = new Agent({
|
|
88
|
+
id: "researcher",
|
|
89
|
+
model,
|
|
90
|
+
description: "Research a specific question and report evidence.",
|
|
91
|
+
instructions: "Ask your parent for clarification when needed.",
|
|
92
|
+
tools: [readFileTool, searchTool],
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
const reviewer = new Agent({
|
|
96
|
+
id: "reviewer",
|
|
97
|
+
model,
|
|
98
|
+
description: "Review findings for errors and unsupported claims.",
|
|
99
|
+
tools: [readFileTool],
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
const team = new AgentTeam({
|
|
103
|
+
id: "research-team",
|
|
104
|
+
model,
|
|
105
|
+
instructions: [
|
|
106
|
+
"Delegate research to researcher instances.",
|
|
107
|
+
"Send their findings to a reviewer and incorporate its feedback.",
|
|
108
|
+
"Answer the user after the work is complete.",
|
|
109
|
+
].join("\n"),
|
|
110
|
+
members: [researcher, reviewer],
|
|
111
|
+
limits: {
|
|
112
|
+
maxDepth: 3,
|
|
113
|
+
maxConcurrentAgents: 4,
|
|
114
|
+
maxAgentInstances: 12,
|
|
115
|
+
maxTotalTurns: 100,
|
|
116
|
+
maxBufferedEvents: 1024,
|
|
117
|
+
},
|
|
118
|
+
});
|
|
119
|
+
|
|
120
|
+
const result = await team.generate({ prompt: "Investigate the proposed architecture." });
|
|
121
|
+
if (result.type === "response") console.log(result.output);
|
|
122
|
+
console.log(result.teamRunId, result.usage, result.members);
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
The coordinator supports normal Agent configuration, including `outputSchema`, context, tools,
|
|
126
|
+
guardrails, middleware, and lifecycle callbacks. Its schema determines the team's output type.
|
|
127
|
+
Each member preserves its own configuration. Run-level options apply to the coordinator; the
|
|
128
|
+
abort signal, interaction resolver, and team limits apply to the whole execution.
|
|
129
|
+
|
|
130
|
+
The runtime adds these model-callable tools:
|
|
131
|
+
|
|
132
|
+
| Tool | Available to | Input |
|
|
133
|
+
| ------------------- | --------------------------------- | ----------------------------- |
|
|
134
|
+
| `spawn_<member.id>` | Coordinator and permitted parents | `{ prompt, name? }` |
|
|
135
|
+
| `send_message` | All instances | `{ to, content, replyTo? }` |
|
|
136
|
+
| `wait_for_agent` | All instances | `{ instanceId?, timeoutMs? }` |
|
|
137
|
+
| `list_agents` | All instances | `{}` |
|
|
138
|
+
| `cancel_agent` | Instances with spawn permissions | `{ instanceId, reason? }` |
|
|
139
|
+
|
|
140
|
+
Spawning returns an `instanceId` immediately. A definition's `agentId` stays the same across its
|
|
141
|
+
instances; each assignment or resumed interaction has a distinct `runId`. Member IDs must contain
|
|
142
|
+
1–58 letters, digits, underscores, or hyphens so generated tool names are valid. Configured tools
|
|
143
|
+
must not use reserved coordination names.
|
|
144
|
+
|
|
145
|
+
Routing is between a parent and its children by default. A member can use `to: "parent"`;
|
|
146
|
+
parents address children by instance ID. Enable sibling communication and recursive spawning
|
|
147
|
+
with explicit permissions:
|
|
148
|
+
|
|
149
|
+
```ts
|
|
150
|
+
const team = new AgentTeam({
|
|
151
|
+
id: "research-team",
|
|
152
|
+
model,
|
|
153
|
+
members: [researcher, reviewer],
|
|
154
|
+
communication: { siblings: true },
|
|
155
|
+
spawning: [{ from: researcher, to: [researcher, reviewer] }],
|
|
156
|
+
limits: { maxDepth: 3, maxConcurrentAgents: 4, maxAgentInstances: 12, maxTotalTurns: 100 },
|
|
157
|
+
});
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
`members` is the definition catalog available to the coordinator. A spawn rule allows every
|
|
161
|
+
instance of `from` to create only the definitions in `to`, using their generated spawn tools.
|
|
162
|
+
Use the same Agent objects registered in `members`; duplicate rules or targets are rejected.
|
|
163
|
+
Rules and communication options are snapshotted at construction. Without rules, only the
|
|
164
|
+
coordinator can spawn. A self-reference enables recursion; each child has its own conversation
|
|
165
|
+
and its definition's tools, without inheriting the parent's tools.
|
|
166
|
+
|
|
167
|
+
With `communication.siblings: true`, instances sharing the same parent instance can discover,
|
|
168
|
+
message, and wait for one another. Cousins and other branches remain inaccessible. `list_agents`
|
|
169
|
+
includes self, parent, direct children, and enabled siblings, with `parentInstanceId` and `depth`.
|
|
170
|
+
Sibling access does not grant cancellation or approval authority. Only a parent can cancel its
|
|
171
|
+
direct child; cancellation also stops that child's entire subtree, including idle descendants.
|
|
172
|
+
|
|
173
|
+
`send_message` returns a queued receipt, not a reply. Messages arrive at safe turn/tool boundaries,
|
|
174
|
+
are explicitly attributed to their sender, and cannot satisfy a tool approval. Sending to an idle
|
|
175
|
+
member starts a follow-up run with its retained conversation. Failed or cancelled members cannot
|
|
176
|
+
receive follow-ups. Each inbox accepts at most 128 pending inputs.
|
|
177
|
+
|
|
178
|
+
`wait_for_agent` wakes on a relevant message, outcome, cancellation, or timeout (default 30 seconds,
|
|
179
|
+
maximum 5 minutes). Waiting agents and agents awaiting application input release their concurrency
|
|
180
|
+
slot. Every parent waits automatically for its own children before finalizing and receives their
|
|
181
|
+
outcomes as attributed messages. A member failure is reported to its immediate parent; failure or
|
|
182
|
+
blocking cancels its descendants. A coordinator error or team cancellation rejects the execution.
|
|
183
|
+
Guardrail blocking remains a `blocked` outcome. The final `members` array includes all descendants,
|
|
184
|
+
with `parentInstanceId` and `depth` to reconstruct the tree.
|
|
185
|
+
|
|
186
|
+
The limits in the first example are the defaults. `maxDepth` is a positive integer; the coordinator
|
|
187
|
+
is depth 0 and direct children are depth 1. Concurrent and total instance limits include the coordinator.
|
|
188
|
+
The instance limit counts all instances created during this execution, including completed or
|
|
189
|
+
cancelled ones. The turn budget covers all instances and follow-ups; provider retries remain
|
|
190
|
+
governed by normal retry settings. Reaching the turn budget fails the team. Reaching the instance
|
|
191
|
+
or depth limit rejects the spawn tool call so the parent can use existing members. All budgets are
|
|
192
|
+
shared across the whole tree; spawning does not reset them. Tools within one
|
|
193
|
+
instance execute sequentially; different instances can execute concurrently.
|
|
194
|
+
|
|
195
|
+
### Team streaming and steering
|
|
196
|
+
|
|
197
|
+
```ts
|
|
198
|
+
const stream = team.stream({ prompt: "Investigate the proposed architecture." });
|
|
199
|
+
|
|
200
|
+
// Call from the application's user-input handler while the team is running:
|
|
201
|
+
// stream.steer({ prompt: "Also consider deployment complexity." });
|
|
202
|
+
// stream.cancel("User cancelled.");
|
|
203
|
+
|
|
204
|
+
for await (const event of stream.events) {
|
|
205
|
+
if (event.type === "agent_event" && event.event.type === "text_delta") {
|
|
206
|
+
console.log(event.instanceId, event.event.delta);
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
const outcome = await stream.result;
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
`events` is an attributed union of agent events, member state changes, queued/delivered messages,
|
|
213
|
+
interactions, and the terminal team outcome. New members emit `agent_queued` before acquiring a
|
|
214
|
+
concurrency slot. `textStream` yields coordinator text only, including
|
|
215
|
+
provisional turns before its final answer. `text` resolves to the final text. Choose one event or text
|
|
216
|
+
consumer; final promises can be read alongside it. Reading only a final promise consumes the run
|
|
217
|
+
without buffering unused events. Non-streaming models also work and emit complete response text
|
|
218
|
+
instead of provider deltas. Closing the event iterator cancels unfinished work.
|
|
219
|
+
|
|
220
|
+
Streaming buffers at most `limits.maxBufferedEvents` unread events (default 1,024). If a consumer
|
|
221
|
+
falls behind and fills that buffer, the team cancels its running work, discards unread events, and
|
|
222
|
+
rejects both the iterator and final promises with `AgentTeamLimitError` whose `limit` is
|
|
223
|
+
`"maxBufferedEvents"`. This bounds queued event count, not the byte size of individual events.
|
|
224
|
+
Increase the limit when your application needs to tolerate longer pauses between reads.
|
|
225
|
+
Result-only consumption does not buffer events and is unaffected by this limit.
|
|
226
|
+
|
|
227
|
+
### Team approvals and questions
|
|
228
|
+
|
|
229
|
+
Only the application resolves interactions. A coordinator or reviewer cannot approve another
|
|
230
|
+
member's protected tool through a message. Existing tool `requiresApproval` and question tools use
|
|
231
|
+
the same interaction contracts as `Agent`:
|
|
232
|
+
|
|
233
|
+
```ts
|
|
234
|
+
import type { AgentTeamInteraction } from "@anvia/core/agent";
|
|
235
|
+
import type { AgentInteractionResponse } from "@anvia/core/agent/interactions";
|
|
236
|
+
|
|
237
|
+
// Implement this with your application's authenticated approval/question UI.
|
|
238
|
+
declare function askUser(request: AgentTeamInteraction): Promise<AgentInteractionResponse>;
|
|
239
|
+
|
|
240
|
+
const result = await team.generate({
|
|
241
|
+
prompt: "Investigate and propose changes.",
|
|
242
|
+
resolveInteraction: (request) => askUser(request),
|
|
243
|
+
});
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
The resolver receives `teamRunId`, `instanceId`, `runId`, the interaction request, and an abort
|
|
247
|
+
signal. A missing, throwing, or invalid resolver fails the team with `AgentTeamInteractionError`
|
|
248
|
+
before the protected action executes. Approval denial follows the ordinary Agent behavior: the
|
|
249
|
+
tool is skipped and its member can continue. Other members may continue while an interaction is
|
|
250
|
+
pending. The application must decide who may approve; agent-generated content is not authorization.
|
|
251
|
+
|
|
252
|
+
Teams currently live in one process for one execution. Each `generate` or `stream` call creates
|
|
253
|
+
fresh instances. Pass `messages` instead of `prompt` to supply coordinator history. Member
|
|
254
|
+
conversations are retained only within that execution; team session persistence and durable
|
|
255
|
+
checkpoint/resume are not provided. Cancellation signals reach running models, tools, and
|
|
256
|
+
resolvers; work owned by the application must honor its signal to stop external activity.
|
|
257
|
+
Studio provides a team playground with member activity, messages, and approval/question controls.
|
|
258
|
+
|
|
76
259
|
## Direct Completions
|
|
77
260
|
|
|
78
261
|
Use `generateCompletion` for one provider call without Agent turns, memory, or local tool
|
|
@@ -355,6 +538,39 @@ Pass `abortSignal` on a run to cancel the active provider call, tools, and neste
|
|
|
355
538
|
Run observers receive terminal errors with `status: "cancelled"` for cancellation and
|
|
356
539
|
`status: "failed"` for other failures.
|
|
357
540
|
|
|
541
|
+
### Prompt attribution
|
|
542
|
+
|
|
543
|
+
Set `trace.promptRef` on `generate()` or `stream()` to identify the prompt used by a run and
|
|
544
|
+
default its generation attribution. The core `AgentRunPromptRef` contract is
|
|
545
|
+
`{ readonly name: string; readonly version?: number }`; use the registry's resolved numeric version
|
|
546
|
+
when available, not the requested label. This identity does not contain templates or variables.
|
|
547
|
+
|
|
548
|
+
For runs that change prompts between turns, completion-request middleware is the explicit
|
|
549
|
+
generation override boundary:
|
|
550
|
+
|
|
551
|
+
```ts
|
|
552
|
+
await agent.generate({
|
|
553
|
+
prompt: "Summarize the ticket",
|
|
554
|
+
trace: { promptRef: { name: "support", version: 7 } },
|
|
555
|
+
middlewares: [
|
|
556
|
+
{
|
|
557
|
+
onCompletionRequest: ({ request, turn }) => {
|
|
558
|
+
if (turn === 0) {
|
|
559
|
+
return { request, promptRef: { name: "planner", version: 3 } };
|
|
560
|
+
}
|
|
561
|
+
return { request, promptRef: null };
|
|
562
|
+
},
|
|
563
|
+
},
|
|
564
|
+
],
|
|
565
|
+
});
|
|
566
|
+
```
|
|
567
|
+
|
|
568
|
+
The middleware receives the current `promptRef`. Returning a reference overrides that generation;
|
|
569
|
+
`null` clears it, while omission preserves it. Each turn starts again with the run default, and
|
|
570
|
+
later middleware sees earlier overrides. Set attribution alongside any request changes that select
|
|
571
|
+
another prompt: attribution itself does not change the model input. It is a runtime side channel,
|
|
572
|
+
not a provider request field or global current-prompt setting.
|
|
573
|
+
|
|
358
574
|
## Memory
|
|
359
575
|
|
|
360
576
|
Configure durable conversation memory on the Agent, then run through a session:
|
|
@@ -565,6 +781,11 @@ enabled.
|
|
|
565
781
|
`"throw"` and defaults to `"ignore"`. With `"throw"`, the run rejects with a
|
|
566
782
|
`PipelineObserverDispatchError` containing the failed phase and per-observer failures.
|
|
567
783
|
|
|
784
|
+
Pipeline run and batch options also accept `trace.promptRef`. This identifies the pipeline root;
|
|
785
|
+
it does not stamp every stage or Agent with that prompt. Select each Agent's relevant prompt with
|
|
786
|
+
`request: ({ input }) => ({ prompt: input, trace: { promptRef } })`, especially when a pipeline uses
|
|
787
|
+
multiple prompts. Trace parent propagation and prompt identity are independent.
|
|
788
|
+
|
|
568
789
|
## Documents
|
|
569
790
|
|
|
570
791
|
Applications own file discovery, file reads, document parsing, source metadata, and per-file error
|
|
@@ -693,6 +914,11 @@ Metrics that implicitly read `case.expected`, `case.context`, or `case.retrieval
|
|
|
693
914
|
those fields at compile time. Supplying an explicit metric value or selector removes the matching
|
|
694
915
|
case requirement.
|
|
695
916
|
|
|
917
|
+
Set `run: { promptRef: { name: "support", version: 7 } }` on `runEvalSuite()` to attribute the
|
|
918
|
+
evaluation run. The reference is preserved in `result.run` and the reporter's run-start, per-metric,
|
|
919
|
+
and run-end contexts. It does not automatically attribute the target Agent or judge generations;
|
|
920
|
+
configure those runs' `trace.promptRef` separately when relevant.
|
|
921
|
+
|
|
696
922
|
### Built-in metrics
|
|
697
923
|
|
|
698
924
|
Deterministic metrics do not call a model:
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createAgentTool
|
|
3
|
+
} from "../chunk-PPJ7SYQL.js";
|
|
4
|
+
import "../chunk-BDKFFFVX.js";
|
|
5
|
+
import "../chunk-CKKNO4XB.js";
|
|
6
|
+
import "../chunk-4ONUNWGC.js";
|
|
7
|
+
import "../chunk-UTAB3XQI.js";
|
|
8
|
+
import "../chunk-XQV3XNVT.js";
|
|
9
|
+
import "../chunk-XV3DH5GC.js";
|
|
10
|
+
import "../chunk-YZVFIW5D.js";
|
|
11
|
+
import "../chunk-MHOJJYDK.js";
|
|
12
|
+
import "../chunk-47NTHIVB.js";
|
|
13
|
+
import "../chunk-J6S6MT7O.js";
|
|
14
|
+
import "../chunk-IDNL6IH4.js";
|
|
15
|
+
import "../chunk-BONQTXRQ.js";
|
|
16
|
+
import "../chunk-4C7AXYOM.js";
|
|
17
|
+
import "../chunk-SQAAVYJG.js";
|
|
18
|
+
import "../chunk-POXHJF3H.js";
|
|
19
|
+
import "../chunk-USRKPEQN.js";
|
|
20
|
+
import "../chunk-WN6AVBO4.js";
|
|
21
|
+
export {
|
|
22
|
+
createAgentTool
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=agent-tool.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Agent
|
|
3
|
+
} from "../chunk-B5YTCKUJ.js";
|
|
4
|
+
import "../chunk-RT5LUEO3.js";
|
|
5
|
+
import "../chunk-GDY2Z2SZ.js";
|
|
6
|
+
import "../chunk-KITX3HDN.js";
|
|
7
|
+
import "../chunk-NPJ2T3L5.js";
|
|
8
|
+
import "../chunk-YWRXOPHC.js";
|
|
9
|
+
import "../chunk-SXE4J43E.js";
|
|
10
|
+
import "../chunk-J4SINPUA.js";
|
|
11
|
+
import "../chunk-5I2NVRHC.js";
|
|
12
|
+
import "../chunk-5IURMWFN.js";
|
|
13
|
+
import "../chunk-LAIATEUB.js";
|
|
14
|
+
import "../chunk-F3E2RLC7.js";
|
|
15
|
+
import "../chunk-JMJFK3A4.js";
|
|
16
|
+
import "../chunk-6N4ENZO4.js";
|
|
17
|
+
import "../chunk-4AW2633B.js";
|
|
18
|
+
import "../chunk-IV6YQTY2.js";
|
|
19
|
+
import "../chunk-2NLINXRF.js";
|
|
20
|
+
import "../chunk-XJRNBTIV.js";
|
|
21
|
+
import "../chunk-H3H74RWJ.js";
|
|
22
|
+
import "../chunk-HP34GRQX.js";
|
|
23
|
+
import "../chunk-LQJ4KHMY.js";
|
|
24
|
+
import "../chunk-MJCMKZFP.js";
|
|
25
|
+
import "../chunk-EZR5AV3J.js";
|
|
26
|
+
import "../chunk-OJF67RNM.js";
|
|
27
|
+
import "../chunk-FAPIZJS2.js";
|
|
28
|
+
import "../chunk-7LBPRXZP.js";
|
|
29
|
+
import "../chunk-JB3RFK6K.js";
|
|
30
|
+
import "../chunk-A7BXVZXZ.js";
|
|
31
|
+
import "../chunk-TP3MCUXS.js";
|
|
32
|
+
import "../chunk-6RQYWZI3.js";
|
|
33
|
+
import "../chunk-NF6WBPFG.js";
|
|
34
|
+
import "../chunk-LBYJPMHC.js";
|
|
35
|
+
import "../chunk-KFAVEL5F.js";
|
|
36
|
+
import "../chunk-GLMYZ6OA.js";
|
|
37
|
+
import "../chunk-7KAGWJ5M.js";
|
|
38
|
+
import "../chunk-K4IBS7VB.js";
|
|
39
|
+
import "../chunk-ZPJFXRQZ.js";
|
|
40
|
+
import "../chunk-MEN4AFDZ.js";
|
|
41
|
+
import "../chunk-VZ5ZZBNX.js";
|
|
42
|
+
import "../chunk-6TAWRKFK.js";
|
|
43
|
+
import "../chunk-6BTJC3ES.js";
|
|
44
|
+
import "../chunk-MT3BLVYN.js";
|
|
45
|
+
import "../chunk-ZXLCTQUX.js";
|
|
46
|
+
import "../chunk-23GEYG2X.js";
|
|
47
|
+
import "../chunk-RXKUIJ77.js";
|
|
48
|
+
import "../chunk-5WLIHNNJ.js";
|
|
49
|
+
import "../chunk-QHGYCYV6.js";
|
|
50
|
+
import "../chunk-ESOFEAYK.js";
|
|
51
|
+
import "../chunk-HAAGSIZH.js";
|
|
52
|
+
import "../chunk-PJNE75WC.js";
|
|
53
|
+
import "../chunk-PLDJCCVL.js";
|
|
54
|
+
import "../chunk-3J2CSVPR.js";
|
|
55
|
+
import "../chunk-ERN7P6Q4.js";
|
|
56
|
+
import "../chunk-7F53DOML.js";
|
|
57
|
+
import "../chunk-HHMLE3TZ.js";
|
|
58
|
+
import "../chunk-DU4WA6LQ.js";
|
|
59
|
+
import "../chunk-4FIVU53H.js";
|
|
60
|
+
import "../chunk-KO5NMTAM.js";
|
|
61
|
+
import "../chunk-TFIOU6UR.js";
|
|
62
|
+
import "../chunk-GPVXCY5I.js";
|
|
63
|
+
import "../chunk-NVALGVQG.js";
|
|
64
|
+
import "../chunk-ZHC5CD6J.js";
|
|
65
|
+
import "../chunk-5V533R7F.js";
|
|
66
|
+
import "../chunk-KY4VXIN2.js";
|
|
67
|
+
import "../chunk-PPJ7SYQL.js";
|
|
68
|
+
import "../chunk-BDKFFFVX.js";
|
|
69
|
+
import "../chunk-CKKNO4XB.js";
|
|
70
|
+
import "../chunk-4ONUNWGC.js";
|
|
71
|
+
import "../chunk-UTAB3XQI.js";
|
|
72
|
+
import "../chunk-XQV3XNVT.js";
|
|
73
|
+
import "../chunk-XV3DH5GC.js";
|
|
74
|
+
import "../chunk-YZVFIW5D.js";
|
|
75
|
+
import "../chunk-MHOJJYDK.js";
|
|
76
|
+
import "../chunk-47NTHIVB.js";
|
|
77
|
+
import "../chunk-J6S6MT7O.js";
|
|
78
|
+
import "../chunk-IDNL6IH4.js";
|
|
79
|
+
import "../chunk-BONQTXRQ.js";
|
|
80
|
+
import "../chunk-4C7AXYOM.js";
|
|
81
|
+
import "../chunk-SQAAVYJG.js";
|
|
82
|
+
import "../chunk-POXHJF3H.js";
|
|
83
|
+
import "../chunk-USRKPEQN.js";
|
|
84
|
+
import "../chunk-WN6AVBO4.js";
|
|
85
|
+
import "../chunk-KBBQSP4M.js";
|
|
86
|
+
export {
|
|
87
|
+
Agent
|
|
88
|
+
};
|
|
89
|
+
//# sourceMappingURL=agent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AgentRunBlockedError,
|
|
3
|
+
AgentRunCancelledError,
|
|
4
|
+
AgentStreamClosedError,
|
|
5
|
+
AgentStructuredOutputError,
|
|
6
|
+
AgentToolSuspensionError,
|
|
7
|
+
MaxTurnsError
|
|
8
|
+
} from "../chunk-WN6AVBO4.js";
|
|
9
|
+
export {
|
|
10
|
+
AgentRunBlockedError,
|
|
11
|
+
AgentRunCancelledError,
|
|
12
|
+
AgentStreamClosedError,
|
|
13
|
+
AgentStructuredOutputError,
|
|
14
|
+
AgentToolSuspensionError,
|
|
15
|
+
MaxTurnsError
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/agent/index.d.ts
CHANGED
|
@@ -1,23 +1,141 @@
|
|
|
1
1
|
export { M as ModelCallOptions } from '../model-call-options-CZkSw_xN.js';
|
|
2
2
|
export { R as RetryContext, a as RetryOptions, b as RetrySetting } from '../retry-CjvSlKGW.js';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import {
|
|
6
|
-
|
|
3
|
+
import { A as Agent, d as AgentOptions } from '../agent-C9VhENdj.js';
|
|
4
|
+
export { a as AgentContextInput, b as AgentMemory, c as AgentMemoryOptions, e as AgentToolInput, f as AgentToolOptions, C as CreateHybridVectorContextOptions, g as CreateVectorContextOptions, V as VectorContext, h as VectorContextBaseOptions, i as createVectorContext, j as isVectorContext } from '../agent-C9VhENdj.js';
|
|
5
|
+
import { d as CompletionModel, f as CompletionModelControlsOf, M as Message, U as Usage, c as CompletionFinishReason } from '../types-CiHjqE6J.js';
|
|
6
|
+
import { AgentInteractionRequest, AgentInteractionResponse } from './interactions/index.js';
|
|
7
|
+
import { p as AgentRunSettings, m as AgentPrompt, n as AgentResponse, A as AgentBlockedOutcome, v as AgentStreamEvent, r as AgentSteerInput, s as AgentSteerReceipt, g as AgentInteractionOutcome } from '../middleware-CWjnMbiH.js';
|
|
8
|
+
export { a as AgentChildStreamEvent, b as AgentDeltaEvent, c as AgentErrorEvent, d as AgentErrorStreamEvent, e as AgentFinishEvent, f as AgentInput, h as AgentLifecycle, i as AgentMemoryCompactionEvent, j as AgentMemoryCompactionOptions, l as AgentOutcome, o as AgentRunOptions, q as AgentStartEvent, t as AgentStepFinishEvent, u as AgentStream, w as AgentToolCallDeltaEvent, x as AgentToolFinishEvent, y as AgentToolStartEvent } from '../middleware-CWjnMbiH.js';
|
|
7
9
|
import '../zod-schema-C7F4clpm.js';
|
|
8
10
|
import 'zod';
|
|
9
|
-
import '../types-
|
|
10
|
-
import '../type-utils-CtHVDRn_.js';
|
|
11
|
+
import '../types-Bqw0AuFl.js';
|
|
11
12
|
import '../types-DfRPfehE.js';
|
|
12
13
|
import '../tool-DQMZpZSS.js';
|
|
13
14
|
import '../types-CafU6Ux5.js';
|
|
14
|
-
import '../middleware-mY_lpjDp.js';
|
|
15
|
-
import './interactions/index.js';
|
|
16
15
|
import '../types-C1xYKXF2.js';
|
|
17
16
|
import '../dynamic-tools-CNHSPXr1.js';
|
|
18
17
|
import '../types-Cr4uiYo5.js';
|
|
19
18
|
import '../types-CODGMHnp.js';
|
|
20
19
|
|
|
20
|
+
/** An Agent definition; individual members may have different output schemas. */
|
|
21
|
+
type AgentTeamMember = Agent<unknown>;
|
|
22
|
+
/** Allow instances of one registered definition to spawn the listed definitions. */
|
|
23
|
+
type AgentTeamSpawnRule = {
|
|
24
|
+
from: AgentTeamMember;
|
|
25
|
+
to: readonly AgentTeamMember[];
|
|
26
|
+
};
|
|
27
|
+
type RawResponseOf<Model> = Model extends CompletionModel<infer RawResponse> ? RawResponse : unknown;
|
|
28
|
+
type AgentTeamLimits = {
|
|
29
|
+
/** Maximum instance depth, with the coordinator at 0. Defaults to 3. */
|
|
30
|
+
maxDepth?: number;
|
|
31
|
+
maxConcurrentAgents?: number;
|
|
32
|
+
maxAgentInstances?: number;
|
|
33
|
+
maxTotalTurns?: number;
|
|
34
|
+
/** Maximum unread stream events. Overflow fails and cancels the team. Defaults to 1024. */
|
|
35
|
+
maxBufferedEvents?: number;
|
|
36
|
+
};
|
|
37
|
+
type AgentTeamOptions<Output = string, M extends CompletionModel = CompletionModel, ContextDocument = unknown> = AgentOptions<Output, M, ContextDocument> & {
|
|
38
|
+
members: readonly AgentTeamMember[];
|
|
39
|
+
/** Allow messaging and waiting between instances with the same parent. Defaults to false. */
|
|
40
|
+
communication?: {
|
|
41
|
+
siblings?: boolean;
|
|
42
|
+
};
|
|
43
|
+
/** Additional spawn permissions for members. The coordinator can spawn every member. */
|
|
44
|
+
spawning?: readonly AgentTeamSpawnRule[];
|
|
45
|
+
limits?: AgentTeamLimits;
|
|
46
|
+
};
|
|
47
|
+
type AgentTeamInteraction = {
|
|
48
|
+
teamRunId: string;
|
|
49
|
+
instanceId: string;
|
|
50
|
+
runId: string;
|
|
51
|
+
interaction: AgentInteractionRequest;
|
|
52
|
+
abortSignal: AbortSignal;
|
|
53
|
+
};
|
|
54
|
+
type AgentTeamRunOptions<Output = string, M extends CompletionModel = CompletionModel> = Omit<AgentRunSettings<Output, RawResponseOf<M>, CompletionModelControlsOf<M>>, "toolConcurrency"> & ({
|
|
55
|
+
prompt: AgentPrompt;
|
|
56
|
+
messages?: never;
|
|
57
|
+
} | {
|
|
58
|
+
messages: readonly Message[];
|
|
59
|
+
prompt?: never;
|
|
60
|
+
}) & {
|
|
61
|
+
resolveInteraction?: (request: AgentTeamInteraction) => AgentInteractionResponse | Promise<AgentInteractionResponse>;
|
|
62
|
+
};
|
|
63
|
+
type AgentTeamMemberStatus = "queued" | "running" | "waiting" | "awaiting_interaction" | "idle" | "failed" | "cancelled";
|
|
64
|
+
type AgentTeamMemberSummary = Readonly<{
|
|
65
|
+
instanceId: string;
|
|
66
|
+
agentId: string;
|
|
67
|
+
name: string;
|
|
68
|
+
parentInstanceId?: string;
|
|
69
|
+
depth: number;
|
|
70
|
+
status: AgentTeamMemberStatus;
|
|
71
|
+
usage: Usage;
|
|
72
|
+
outcome?: AgentResponse<unknown> | AgentBlockedOutcome;
|
|
73
|
+
error?: unknown;
|
|
74
|
+
}>;
|
|
75
|
+
type AgentTeamOutcome<Output = string> = (AgentResponse<Output> | AgentBlockedOutcome) & {
|
|
76
|
+
teamRunId: string;
|
|
77
|
+
/** Aggregate usage across every member run, including the coordinator. */
|
|
78
|
+
usage: Usage;
|
|
79
|
+
members: readonly AgentTeamMemberSummary[];
|
|
80
|
+
};
|
|
81
|
+
type AgentTeamMessage = Readonly<{
|
|
82
|
+
id: string;
|
|
83
|
+
teamRunId: string;
|
|
84
|
+
fromInstanceId: string;
|
|
85
|
+
toInstanceId: string;
|
|
86
|
+
content: string;
|
|
87
|
+
replyTo?: string;
|
|
88
|
+
createdAt: string;
|
|
89
|
+
}>;
|
|
90
|
+
type TeamEventIdentity = {
|
|
91
|
+
teamRunId: string;
|
|
92
|
+
instanceId: string;
|
|
93
|
+
runId?: string;
|
|
94
|
+
};
|
|
95
|
+
type AgentTeamEvent<Output = string> = (TeamEventIdentity & {
|
|
96
|
+
type: "agent_queued" | "agent_started" | "agent_waiting" | "agent_idle" | "agent_failed" | "agent_cancelled";
|
|
97
|
+
member: AgentTeamMemberSummary;
|
|
98
|
+
}) | (TeamEventIdentity & {
|
|
99
|
+
type: "message_queued" | "message_delivered";
|
|
100
|
+
message: AgentTeamMessage;
|
|
101
|
+
}) | (TeamEventIdentity & {
|
|
102
|
+
type: "interaction";
|
|
103
|
+
interaction: AgentInteractionRequest;
|
|
104
|
+
}) | (TeamEventIdentity & {
|
|
105
|
+
type: "agent_event";
|
|
106
|
+
coordinator: boolean;
|
|
107
|
+
event: AgentStreamEvent<unknown>;
|
|
108
|
+
}) | AgentTeamOutcome<Output>;
|
|
109
|
+
interface AgentTeamStream<Output = string> extends AsyncIterable<AgentTeamEvent<Output>> {
|
|
110
|
+
readonly events: AsyncIterable<AgentTeamEvent<Output>>;
|
|
111
|
+
readonly textStream: AsyncIterable<string>;
|
|
112
|
+
readonly text: Promise<string>;
|
|
113
|
+
readonly result: Promise<AgentTeamOutcome<Output>>;
|
|
114
|
+
steer(input: AgentSteerInput): AgentSteerReceipt;
|
|
115
|
+
cancel(reason?: string): void;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
declare class AgentTeam<Output = string, M extends CompletionModel = CompletionModel, ContextDocument = unknown> {
|
|
119
|
+
readonly id: string;
|
|
120
|
+
readonly members: readonly AgentTeamMember[];
|
|
121
|
+
readonly limits: Readonly<Required<AgentTeamLimits>>;
|
|
122
|
+
private readonly coordinator;
|
|
123
|
+
private readonly policy;
|
|
124
|
+
constructor(options: AgentTeamOptions<Output, M, ContextDocument>);
|
|
125
|
+
generate(options: AgentTeamRunOptions<Output, M>): Promise<AgentTeamOutcome<Output>>;
|
|
126
|
+
stream(options: AgentTeamRunOptions<Output, M>): AgentTeamStream<Output>;
|
|
127
|
+
private createStream;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
declare class AgentTeamLimitError extends Error {
|
|
131
|
+
readonly limit: string;
|
|
132
|
+
constructor(limit: string);
|
|
133
|
+
}
|
|
134
|
+
declare class AgentTeamInteractionError extends Error {
|
|
135
|
+
readonly instanceId: string;
|
|
136
|
+
constructor(instanceId: string, options?: ErrorOptions);
|
|
137
|
+
}
|
|
138
|
+
|
|
21
139
|
type AgentStructuredOutputPhase = "truncated" | "content-filter" | "parse" | "schema";
|
|
22
140
|
type AgentStructuredOutputFormat = "raw" | "json-fence" | "unlabeled-fence";
|
|
23
141
|
declare class AgentStructuredOutputError extends Error {
|
|
@@ -68,4 +186,4 @@ declare class AgentToolSuspensionError extends Error {
|
|
|
68
186
|
constructor(result: AgentInteractionOutcome);
|
|
69
187
|
}
|
|
70
188
|
|
|
71
|
-
export { AgentBlockedOutcome, AgentInteractionOutcome, AgentRunBlockedError, AgentRunCancelledError, AgentStreamClosedError, AgentStructuredOutputError, type AgentStructuredOutputFormat, type AgentStructuredOutputPhase, AgentToolSuspensionError, MaxTurnsError };
|
|
189
|
+
export { Agent, AgentBlockedOutcome, AgentInteractionOutcome, AgentOptions, AgentPrompt, AgentResponse, AgentRunBlockedError, AgentRunCancelledError, AgentRunSettings, AgentSteerInput, AgentSteerReceipt, AgentStreamClosedError, AgentStreamEvent, AgentStructuredOutputError, type AgentStructuredOutputFormat, type AgentStructuredOutputPhase, AgentTeam, type AgentTeamEvent, type AgentTeamInteraction, AgentTeamInteractionError, AgentTeamLimitError, type AgentTeamLimits, type AgentTeamMember, type AgentTeamMemberStatus, type AgentTeamMemberSummary, type AgentTeamMessage, type AgentTeamOptions, type AgentTeamOutcome, type AgentTeamRunOptions, type AgentTeamSpawnRule, type AgentTeamStream, AgentToolSuspensionError, MaxTurnsError };
|