@nhtio/adk 0.1.0-master-419ed244 → 0.1.0-master-9e8a853b
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/CHANGELOG.md +47 -0
- package/batteries/embeddings/openai/adapter.cjs +1 -1
- package/batteries/embeddings/openai/adapter.mjs +1 -1
- package/batteries/embeddings/transformers_js/adapter.cjs +1 -1
- package/batteries/embeddings/transformers_js/adapter.mjs +1 -1
- package/batteries/embeddings/transformers_js/validation.cjs +1 -1
- package/batteries/embeddings/transformers_js/validation.mjs +1 -1
- package/batteries/embeddings/webllm/adapter.cjs +1 -1
- package/batteries/embeddings/webllm/adapter.mjs +1 -1
- package/batteries/encoding.cjs +6 -6
- package/batteries/encoding.mjs +6 -6
- package/batteries/index.d.ts +1 -0
- package/batteries/llm/chat_common/lifecycle.d.ts +1 -1
- package/batteries/llm/litert_lm/adapter.cjs +6 -6
- package/batteries/llm/litert_lm/adapter.mjs +6 -6
- package/batteries/llm/litert_lm/helpers.cjs +3 -3
- package/batteries/llm/litert_lm/helpers.mjs +3 -3
- package/batteries/llm/litert_lm/validation.cjs +2 -2
- package/batteries/llm/litert_lm/validation.mjs +2 -2
- package/batteries/llm/litert_lm.cjs +1 -1
- package/batteries/llm/litert_lm.mjs +1 -1
- package/batteries/llm/ollama/adapter.cjs +6 -6
- package/batteries/llm/ollama/adapter.mjs +6 -6
- package/batteries/llm/ollama/helpers.cjs +2 -2
- package/batteries/llm/ollama/helpers.mjs +2 -2
- package/batteries/llm/ollama/validation.cjs +2 -2
- package/batteries/llm/ollama/validation.mjs +2 -2
- package/batteries/llm/openai_chat_completions/adapter.cjs +6 -6
- package/batteries/llm/openai_chat_completions/adapter.mjs +6 -6
- package/batteries/llm/openai_chat_completions/helpers.cjs +2 -2
- package/batteries/llm/openai_chat_completions/helpers.mjs +2 -2
- package/batteries/llm/openai_chat_completions/validation.cjs +2 -2
- package/batteries/llm/openai_chat_completions/validation.mjs +2 -2
- package/batteries/llm/transformers_js/adapter.cjs +6 -6
- package/batteries/llm/transformers_js/adapter.mjs +6 -6
- package/batteries/llm/transformers_js/helpers.cjs +4 -4
- package/batteries/llm/transformers_js/helpers.mjs +4 -4
- package/batteries/llm/transformers_js/model_source.cjs +1 -1
- package/batteries/llm/transformers_js/model_source.mjs +1 -1
- package/batteries/llm/transformers_js/validation.cjs +2 -2
- package/batteries/llm/transformers_js/validation.mjs +2 -2
- package/batteries/llm/transformers_js.cjs +1 -1
- package/batteries/llm/transformers_js.mjs +1 -1
- package/batteries/llm/webllm_chat_completions/adapter.cjs +6 -6
- package/batteries/llm/webllm_chat_completions/adapter.mjs +6 -6
- package/batteries/llm/webllm_chat_completions/validation.cjs +2 -2
- package/batteries/llm/webllm_chat_completions/validation.mjs +2 -2
- package/batteries/media/contracts.cjs +1 -1
- package/batteries/media/contracts.mjs +1 -1
- package/batteries/media/engines/audio_decode.cjs +3 -11
- package/batteries/media/engines/audio_decode.cjs.map +1 -1
- package/batteries/media/engines/audio_decode.mjs +3 -11
- package/batteries/media/engines/audio_decode.mjs.map +1 -1
- package/batteries/media/engines/data.cjs +1 -1
- package/batteries/media/engines/data.mjs +1 -1
- package/batteries/media/engines/exceljs.cjs +1 -1
- package/batteries/media/engines/exceljs.mjs +1 -1
- package/batteries/media/engines/execa_executor.cjs +1 -1
- package/batteries/media/engines/execa_executor.mjs +1 -1
- package/batteries/media/engines/fs_workspace.cjs +1 -1
- package/batteries/media/engines/fs_workspace.mjs +1 -1
- package/batteries/media/engines/jimp.cjs +1 -1
- package/batteries/media/engines/jimp.mjs +1 -1
- package/batteries/media/engines/sharp.cjs +1 -1
- package/batteries/media/engines/sharp.mjs +1 -1
- package/batteries/media/engines/sheetjs.cjs +1 -1
- package/batteries/media/engines/sheetjs.mjs +1 -1
- package/batteries/media/engines/tesseract_js.cjs +1 -1
- package/batteries/media/engines/tesseract_js.mjs +1 -1
- package/batteries/media/engines/transformers_asr.cjs +1 -1
- package/batteries/media/engines/transformers_asr.mjs +1 -1
- package/batteries/media/forge.cjs +6 -6
- package/batteries/media/forge.mjs +6 -6
- package/batteries/media/lint.cjs +1 -1
- package/batteries/media/lint.mjs +1 -1
- package/batteries/media/steps/image_audio.d.ts +2 -2
- package/batteries/media.cjs +4 -18
- package/batteries/media.cjs.map +1 -1
- package/batteries/media.mjs +3 -17
- package/batteries/media.mjs.map +1 -1
- package/batteries/specialists/_shared/index.d.ts +117 -0
- package/batteries/specialists/_shared.cjs +115 -0
- package/batteries/specialists/_shared.cjs.map +1 -0
- package/batteries/specialists/_shared.mjs +111 -0
- package/batteries/specialists/_shared.mjs.map +1 -0
- package/batteries/specialists/caption/index.d.ts +10 -0
- package/batteries/specialists/caption/transformers_js/adapter.cjs +185 -0
- package/batteries/specialists/caption/transformers_js/adapter.cjs.map +1 -0
- package/batteries/specialists/caption/transformers_js/adapter.d.ts +78 -0
- package/batteries/specialists/caption/transformers_js/adapter.mjs +183 -0
- package/batteries/specialists/caption/transformers_js/adapter.mjs.map +1 -0
- package/batteries/specialists/caption/transformers_js/exceptions.cjs +33 -0
- package/batteries/specialists/caption/transformers_js/exceptions.cjs.map +1 -0
- package/batteries/specialists/caption/transformers_js/exceptions.d.ts +27 -0
- package/batteries/specialists/caption/transformers_js/exceptions.mjs +30 -0
- package/batteries/specialists/caption/transformers_js/exceptions.mjs.map +1 -0
- package/batteries/specialists/caption/transformers_js/index.d.ts +14 -0
- package/batteries/specialists/caption/transformers_js/types.cjs +2 -0
- package/batteries/specialists/caption/transformers_js/types.d.ts +100 -0
- package/batteries/specialists/caption/transformers_js/types.mjs +0 -0
- package/batteries/specialists/caption/transformers_js/validation.cjs +57 -0
- package/batteries/specialists/caption/transformers_js/validation.cjs.map +1 -0
- package/batteries/specialists/caption/transformers_js/validation.d.ts +21 -0
- package/batteries/specialists/caption/transformers_js/validation.mjs +54 -0
- package/batteries/specialists/caption/transformers_js/validation.mjs.map +1 -0
- package/batteries/specialists/caption/transformers_js.cjs +10 -0
- package/batteries/specialists/caption/transformers_js.mjs +4 -0
- package/batteries/specialists/caption.cjs +11 -0
- package/batteries/specialists/caption.mjs +5 -0
- package/batteries/specialists/index.d.ts +42 -0
- package/batteries/specialists/ocr/index.d.ts +15 -0
- package/batteries/specialists/ocr/tesseract_js/adapter.cjs +182 -0
- package/batteries/specialists/ocr/tesseract_js/adapter.cjs.map +1 -0
- package/batteries/specialists/ocr/tesseract_js/adapter.d.ts +86 -0
- package/batteries/specialists/ocr/tesseract_js/adapter.mjs +180 -0
- package/batteries/specialists/ocr/tesseract_js/adapter.mjs.map +1 -0
- package/batteries/specialists/ocr/tesseract_js/exceptions.cjs +32 -0
- package/batteries/specialists/ocr/tesseract_js/exceptions.cjs.map +1 -0
- package/batteries/specialists/ocr/tesseract_js/exceptions.d.ts +26 -0
- package/batteries/specialists/ocr/tesseract_js/exceptions.mjs +29 -0
- package/batteries/specialists/ocr/tesseract_js/exceptions.mjs.map +1 -0
- package/batteries/specialists/ocr/tesseract_js/index.d.ts +15 -0
- package/batteries/specialists/ocr/tesseract_js/types.cjs +2 -0
- package/batteries/specialists/ocr/tesseract_js/types.d.ts +84 -0
- package/batteries/specialists/ocr/tesseract_js/types.mjs +0 -0
- package/batteries/specialists/ocr/tesseract_js/validation.cjs +57 -0
- package/batteries/specialists/ocr/tesseract_js/validation.cjs.map +1 -0
- package/batteries/specialists/ocr/tesseract_js/validation.d.ts +22 -0
- package/batteries/specialists/ocr/tesseract_js/validation.mjs +54 -0
- package/batteries/specialists/ocr/tesseract_js/validation.mjs.map +1 -0
- package/batteries/specialists/ocr/tesseract_js.cjs +10 -0
- package/batteries/specialists/ocr/tesseract_js.mjs +4 -0
- package/batteries/specialists/ocr.cjs +11 -0
- package/batteries/specialists/ocr.mjs +5 -0
- package/batteries/specialists/stt/index.d.ts +18 -0
- package/batteries/specialists/stt/transformers_js/adapter.d.ts +66 -0
- package/batteries/specialists/stt/transformers_js/exceptions.d.ts +24 -0
- package/batteries/specialists/stt/transformers_js/index.d.ts +15 -0
- package/batteries/specialists/stt/transformers_js/types.d.ts +110 -0
- package/batteries/specialists/stt/transformers_js/validation.d.ts +19 -0
- package/batteries/specialists/stt/transformers_js.cjs +8 -0
- package/batteries/specialists/stt/transformers_js.mjs +2 -0
- package/batteries/specialists/stt.cjs +8 -0
- package/batteries/specialists/stt.mjs +2 -0
- package/batteries/specialists.cjs +31 -0
- package/batteries/specialists.mjs +12 -0
- package/batteries/storage/flydrive.cjs +1 -1
- package/batteries/storage/flydrive.mjs +1 -1
- package/batteries/storage/in_memory.cjs +1 -1
- package/batteries/storage/in_memory.mjs +1 -1
- package/batteries/storage/opfs.cjs +1 -1
- package/batteries/storage/opfs.mjs +1 -1
- package/batteries/tools/_shared.cjs +2 -2
- package/batteries/tools/_shared.mjs +2 -2
- package/batteries/tools/color.cjs +2 -2
- package/batteries/tools/color.mjs +2 -2
- package/batteries/tools/comparison.cjs +3 -3
- package/batteries/tools/comparison.mjs +3 -3
- package/batteries/tools/data_structure.cjs +3 -3
- package/batteries/tools/data_structure.mjs +3 -3
- package/batteries/tools/datetime_extended.cjs +2 -2
- package/batteries/tools/datetime_extended.mjs +2 -2
- package/batteries/tools/datetime_math.cjs +2 -2
- package/batteries/tools/datetime_math.mjs +2 -2
- package/batteries/tools/encoding.cjs +3 -3
- package/batteries/tools/encoding.mjs +3 -3
- package/batteries/tools/formatting.cjs +3 -3
- package/batteries/tools/formatting.mjs +3 -3
- package/batteries/tools/geo_basics.cjs +2 -2
- package/batteries/tools/geo_basics.mjs +2 -2
- package/batteries/tools/math.cjs +3 -3
- package/batteries/tools/math.mjs +3 -3
- package/batteries/tools/memory.cjs +5 -5
- package/batteries/tools/memory.mjs +5 -5
- package/batteries/tools/parsing.cjs +4 -4
- package/batteries/tools/parsing.mjs +4 -4
- package/batteries/tools/retrievables.cjs +4 -4
- package/batteries/tools/retrievables.mjs +4 -4
- package/batteries/tools/scrapper.cjs +1 -1
- package/batteries/tools/scrapper.mjs +1 -1
- package/batteries/tools/searxng.cjs +1 -1
- package/batteries/tools/searxng.mjs +1 -1
- package/batteries/tools/standing_instructions.cjs +4 -4
- package/batteries/tools/standing_instructions.mjs +4 -4
- package/batteries/tools/statistics.cjs +4 -4
- package/batteries/tools/statistics.mjs +4 -4
- package/batteries/tools/string_processing.cjs +3 -3
- package/batteries/tools/string_processing.mjs +3 -3
- package/batteries/tools/structured_data.cjs +3 -3
- package/batteries/tools/structured_data.mjs +3 -3
- package/batteries/tools/text_analysis.cjs +3 -3
- package/batteries/tools/text_analysis.mjs +3 -3
- package/batteries/tools/text_comparison.cjs +2 -2
- package/batteries/tools/text_comparison.mjs +2 -2
- package/batteries/tools/time.cjs +2 -2
- package/batteries/tools/time.mjs +2 -2
- package/batteries/tools/unit_conversion.cjs +2 -2
- package/batteries/tools/unit_conversion.mjs +2 -2
- package/batteries/tools/web_retrieval.cjs +1 -1
- package/batteries/tools/web_retrieval.mjs +1 -1
- package/batteries/tools.cjs +2 -2
- package/batteries/tools.mjs +2 -2
- package/batteries/vector/arangodb.cjs +1 -1
- package/batteries/vector/arangodb.mjs +1 -1
- package/batteries/vector/clickhouse.cjs +1 -1
- package/batteries/vector/clickhouse.mjs +1 -1
- package/batteries/vector/cloudflare.cjs +1 -1
- package/batteries/vector/cloudflare.mjs +1 -1
- package/batteries/vector/couchbase.cjs +1 -1
- package/batteries/vector/couchbase.mjs +1 -1
- package/batteries/vector/duckdb.cjs +1 -1
- package/batteries/vector/duckdb.mjs +1 -1
- package/batteries/vector/elasticsearch.cjs +1 -1
- package/batteries/vector/elasticsearch.mjs +1 -1
- package/batteries/vector/filters.cjs +1 -1
- package/batteries/vector/filters.mjs +1 -1
- package/batteries/vector/hnswlib.cjs +1 -1
- package/batteries/vector/hnswlib.mjs +1 -1
- package/batteries/vector/lancedb.cjs +1 -1
- package/batteries/vector/lancedb.mjs +1 -1
- package/batteries/vector/mariadb.cjs +1 -1
- package/batteries/vector/mariadb.mjs +1 -1
- package/batteries/vector/meilisearch.cjs +1 -1
- package/batteries/vector/meilisearch.mjs +1 -1
- package/batteries/vector/migrate.cjs +1 -1
- package/batteries/vector/migrate.mjs +1 -1
- package/batteries/vector/mongodb.cjs +1 -1
- package/batteries/vector/mongodb.mjs +1 -1
- package/batteries/vector/neo4j.cjs +1 -1
- package/batteries/vector/neo4j.mjs +1 -1
- package/batteries/vector/opensearch.cjs +1 -1
- package/batteries/vector/opensearch.mjs +1 -1
- package/batteries/vector/oracle23ai.cjs +1 -1
- package/batteries/vector/oracle23ai.mjs +1 -1
- package/batteries/vector/pinecone.cjs +1 -1
- package/batteries/vector/pinecone.mjs +1 -1
- package/batteries/vector/redis.cjs +1 -1
- package/batteries/vector/redis.mjs +1 -1
- package/batteries/vector/retrievable.cjs +1 -1
- package/batteries/vector/retrievable.mjs +1 -1
- package/batteries/vector/s3vectors.cjs +1 -1
- package/batteries/vector/s3vectors.mjs +1 -1
- package/batteries/vector/solr.cjs +1 -1
- package/batteries/vector/solr.mjs +1 -1
- package/batteries/vector/surrealdb.cjs +1 -1
- package/batteries/vector/surrealdb.mjs +1 -1
- package/batteries/vector/typesense.cjs +1 -1
- package/batteries/vector/typesense.mjs +1 -1
- package/batteries/vector/vespa.cjs +1 -1
- package/batteries/vector/vespa.mjs +1 -1
- package/batteries/vector/weaviate.cjs +1 -1
- package/batteries/vector/weaviate.mjs +1 -1
- package/batteries.cjs +29 -2
- package/batteries.mjs +15 -6
- package/{common-Be-5hSVx.js → common-Bc8v-IUv.js} +6 -6
- package/{common-Be-5hSVx.js.map → common-Bc8v-IUv.js.map} +1 -1
- package/{common-BJznoglS.mjs → common-DKjX6RTc.mjs} +6 -6
- package/{common-BJznoglS.mjs.map → common-DKjX6RTc.mjs.map} +1 -1
- package/common.cjs +6 -6
- package/common.mjs +6 -6
- package/{dispatch_runner-Dm_fnJG3.js → dispatch_runner-DHt48lGY.js} +3 -3
- package/{dispatch_runner-Dm_fnJG3.js.map → dispatch_runner-DHt48lGY.js.map} +1 -1
- package/{dispatch_runner-B3s0ipDA.mjs → dispatch_runner-DR8bt-rV.mjs} +3 -3
- package/{dispatch_runner-B3s0ipDA.mjs.map → dispatch_runner-DR8bt-rV.mjs.map} +1 -1
- package/dispatch_runner.cjs +1 -1
- package/dispatch_runner.mjs +1 -1
- package/eslint/rules.cjs +1 -1
- package/eslint/rules.mjs +1 -1
- package/eslint.cjs +2 -2
- package/eslint.mjs +2 -2
- package/exceptions.cjs +1 -1
- package/exceptions.mjs +1 -1
- package/forge.cjs +2 -2
- package/forge.mjs +2 -2
- package/guards.cjs +7 -7
- package/guards.mjs +7 -7
- package/index.cjs +10 -10
- package/index.mjs +10 -10
- package/lib/exceptions/runtime.d.ts +1 -1
- package/lib/utils/audio.cjs +69 -0
- package/lib/utils/audio.cjs.map +1 -0
- package/lib/utils/audio.d.ts +42 -0
- package/lib/utils/audio.mjs +66 -0
- package/lib/utils/audio.mjs.map +1 -0
- package/lifecycle-C4kwYJ-N.mjs.map +1 -1
- package/lifecycle-vYQJ2rmf.js.map +1 -1
- package/mcp/adk-docs-corpus.json +1 -1
- package/package.json +384 -299
- package/{scrapper-DMXixzf_.js → scrapper-DfITX2Lc.js} +4 -4
- package/{scrapper-DMXixzf_.js.map → scrapper-DfITX2Lc.js.map} +1 -1
- package/{scrapper-Can2aJpj.mjs → scrapper-Dqn2VBtU.mjs} +4 -4
- package/{scrapper-Can2aJpj.mjs.map → scrapper-Dqn2VBtU.mjs.map} +1 -1
- package/{searxng-BFXFs-ad.js → searxng-DToKFL6a.js} +4 -4
- package/{searxng-BFXFs-ad.js.map → searxng-DToKFL6a.js.map} +1 -1
- package/{searxng-C9Xe8ofB.mjs → searxng-xOFTfm5s.mjs} +4 -4
- package/{searxng-C9Xe8ofB.mjs.map → searxng-xOFTfm5s.mjs.map} +1 -1
- package/server.json +2 -2
- package/skills/adk-assembly/SKILL.md +2 -2
- package/{spooled_artifact-DJujTbac.js → spooled_artifact-06tJeH56.js} +2 -2
- package/{spooled_artifact-DJujTbac.js.map → spooled_artifact-06tJeH56.js.map} +1 -1
- package/{spooled_artifact-DJAqZhpj.mjs → spooled_artifact-CEGyUVPm.mjs} +2 -2
- package/{spooled_artifact-DJAqZhpj.mjs.map → spooled_artifact-CEGyUVPm.mjs.map} +1 -1
- package/spooled_artifact.cjs +2 -2
- package/spooled_artifact.mjs +2 -2
- package/{spooled_markdown_artifact-CuHgx4fU.js → spooled_markdown_artifact-BMEgTHF_.js} +3 -3
- package/{spooled_markdown_artifact-CuHgx4fU.js.map → spooled_markdown_artifact-BMEgTHF_.js.map} +1 -1
- package/{spooled_markdown_artifact-DJyD3br3.mjs → spooled_markdown_artifact-oLHuYyA1.mjs} +3 -3
- package/{spooled_markdown_artifact-DJyD3br3.mjs.map → spooled_markdown_artifact-oLHuYyA1.mjs.map} +1 -1
- package/{thought-D11wtYkj.mjs → thought-FselMff7.mjs} +3 -3
- package/{thought-D11wtYkj.mjs.map → thought-FselMff7.mjs.map} +1 -1
- package/{thought-DM2h7ilq.js → thought-NCI5YocX.js} +3 -3
- package/{thought-DM2h7ilq.js.map → thought-NCI5YocX.js.map} +1 -1
- package/{tokenizable-BJPwaOUU.mjs → tokenizable-BwnLtCzr.mjs} +2 -2
- package/{tokenizable-BJPwaOUU.mjs.map → tokenizable-BwnLtCzr.mjs.map} +1 -1
- package/{tokenizable-BcYQ6MOM.js → tokenizable-dnf9b2Ix.js} +2 -2
- package/{tokenizable-BcYQ6MOM.js.map → tokenizable-dnf9b2Ix.js.map} +1 -1
- package/{tool_call-CLJK4D1P.js → tool_call-BMTKtLcS.js} +3 -3
- package/{tool_call-CLJK4D1P.js.map → tool_call-BMTKtLcS.js.map} +1 -1
- package/{tool_call-DNueRQcL.mjs → tool_call-Bc9nZQC-.mjs} +3 -3
- package/{tool_call-DNueRQcL.mjs.map → tool_call-Bc9nZQC-.mjs.map} +1 -1
- package/{tool_parsers-R7Vt8VHd.mjs → tool_parsers-BFiMJBy6.mjs} +2 -2
- package/{tool_parsers-R7Vt8VHd.mjs.map → tool_parsers-BFiMJBy6.mjs.map} +1 -1
- package/{tool_parsers-BISyyeFX.js → tool_parsers-DfZbeF0E.js} +2 -2
- package/{tool_parsers-BISyyeFX.js.map → tool_parsers-DfZbeF0E.js.map} +1 -1
- package/transformers_js-D5R2svkx.js +293 -0
- package/transformers_js-D5R2svkx.js.map +1 -0
- package/transformers_js-jlHDHPbE.mjs +264 -0
- package/transformers_js-jlHDHPbE.mjs.map +1 -0
- package/{turn_runner-Bwj5a270.js → turn_runner-B4qUzFYr.js} +4 -4
- package/{turn_runner-Bwj5a270.js.map → turn_runner-B4qUzFYr.js.map} +1 -1
- package/{turn_runner-C3jResMo.mjs → turn_runner-mMkMRQmN.mjs} +4 -4
- package/{turn_runner-C3jResMo.mjs.map → turn_runner-mMkMRQmN.mjs.map} +1 -1
- package/turn_runner.cjs +1 -1
- package/turn_runner.mjs +1 -1
- package/{validate-CWEWZP99.js → validate-BlJSHGum.js} +2 -2
- package/{validate-CWEWZP99.js.map → validate-BlJSHGum.js.map} +1 -1
- package/{validate-BmgehQjj.mjs → validate-DW2LXXBi.mjs} +2 -2
- package/{validate-BmgehQjj.mjs.map → validate-DW2LXXBi.mjs.map} +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -15,6 +15,53 @@ you *when* you got it, not *what changed*: a `^` range will float across battery
|
|
|
15
15
|
breaking changes, so pin an exact version if you need stability and read the entry before
|
|
16
16
|
upgrading.
|
|
17
17
|
|
|
18
|
+
## 2026-07-12
|
|
19
|
+
|
|
20
|
+
### Added
|
|
21
|
+
|
|
22
|
+
- **New battery domain: `specialists` — on-device speech-to-text, OCR, and image captioning, each a
|
|
23
|
+
narrow single-purpose model turning one modality into TEXT for any text-only LLM.** Three adapters:
|
|
24
|
+
{@link TransformersJsSttAdapter} (`@nhtio/adk/batteries/specialists/stt/transformers_js`, Whisper-family
|
|
25
|
+
ASR via `@huggingface/transformers`, `transcribe(input, opts?) → { text, segments? }`),
|
|
26
|
+
{@link TesseractJsOcrAdapter} (`@nhtio/adk/batteries/specialists/ocr/tesseract_js`, pure-WASM
|
|
27
|
+
`tesseract.js`, `recognize(input, opts?) → { text, confidence? }`), and
|
|
28
|
+
{@link TransformersJsCaptionAdapter} (`@nhtio/adk/batteries/specialists/caption/transformers_js`,
|
|
29
|
+
transformers.js's `image-to-text` pipeline, `describe(input, opts?) → { text }`). All three mirror the
|
|
30
|
+
embeddings adapters' construct-once/`preload`/`reset`/`dispose` shape and are ENVIRONMENT-NEUTRAL —
|
|
31
|
+
`isAvailable()` is always `true`, no WebGPU or platform gate — proven against real weights in both Node
|
|
32
|
+
and a headed, real-GPU Chromium session
|
|
33
|
+
(`tests/functional/batteries/specialists/specialists.webgpu.spec.ts`).
|
|
34
|
+
- **Zero-core-import at the structural-contract layer**, the same posture as the `thrift`/`compact`
|
|
35
|
+
context batteries: `SpecialistMediaLike`/`SpecialistAudioInput`/`SpecialistImageInput`
|
|
36
|
+
(`src/batteries/specialists/_shared`) are locally-declared duck types a real `@nhtio/adk` `Media`
|
|
37
|
+
satisfies without either side importing the other. STT resamples any input — pre-decoded PCM at any
|
|
38
|
+
sample rate, or an encoded container via an injectable `DecodeAudioFn` (default: lazy `audio-decode`
|
|
39
|
+
peer + downmix-to-mono) — to 16kHz mono before the pipeline call; the linear-interpolation resampler
|
|
40
|
+
and the mono-downmix helper were lifted into a shared `lib/utils/audio` module rather than duplicated
|
|
41
|
+
per adapter.
|
|
42
|
+
- **OCR's cached-worker posture is a deliberate divergence from the media battery's own `tesseract_js`
|
|
43
|
+
engine**: one `TesseractJsOcrAdapter` holds a single warm worker across every `recognize()` call
|
|
44
|
+
(construct-once, single-flight resolution) instead of booting a fresh worker per call. tesseract.js v7
|
|
45
|
+
has no safe way to re-language an already-booted worker, so a per-call `languages` override that
|
|
46
|
+
doesn't match the constructor's set throws `E_TESSERACT_JS_OCR_ENGINE_ERROR` rather than silently
|
|
47
|
+
switching; `reset()` and `dispose()` are aliases here (both terminate the worker — no lighter tier
|
|
48
|
+
exists for a live WASM worker).
|
|
49
|
+
- **Composition, proven**: `tests/functional/batteries/specialists/specialist_compose.node.spec.ts`
|
|
50
|
+
feeds Whisper's transcript of `speech.wav` ("The quick brown fox jumps over the lazy dog.") and
|
|
51
|
+
Tesseract's OCR of `sample_ocr.png` ("HELLO OCR\n123") to a separate text-only Llama-3.2-1B, which
|
|
52
|
+
grounds its answer ("Fox") on that text alone — the pattern this domain exists to enable, not just
|
|
53
|
+
each specialist's own accuracy.
|
|
54
|
+
- **Deliberately no agent integration and no cloud engines.** Same posture as the embeddings batteries:
|
|
55
|
+
the adapter is the whole product — no `Tool` class, no forged tool, no `TurnRunnerConfig` wiring. And
|
|
56
|
+
unlike the LLM/vector batteries (which abstract a real, converged wire contract), the cloud
|
|
57
|
+
STT/OCR/vision landscape has no such convergence — every vendor's API has its own auth model, request
|
|
58
|
+
shape, and SDK, with nothing worth abstracting — so this domain draws the line at on-device only, on
|
|
59
|
+
all three adapters, full stop. New docs section `docs/batteries/specialists/` (overview + one
|
|
60
|
+
reference page per adapter) covers the thesis and the three ways a consumer actually wires one in: a
|
|
61
|
+
BYO `Tool` over the adapter (byo-tools pattern), a direct call outside the tool-call loop, or a
|
|
62
|
+
courtesy write to `Media.stash` that an LLM battery's `fallback-stash` `UnsupportedMediaPolicy` reads
|
|
63
|
+
automatically.
|
|
64
|
+
|
|
18
65
|
## 2026-07-07
|
|
19
66
|
|
|
20
67
|
### Security
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../../chunk-Cek0wNdY.js");
|
|
3
|
-
const require_tokenizable = require("../../../tokenizable-
|
|
3
|
+
const require_tokenizable = require("../../../tokenizable-dnf9b2Ix.js");
|
|
4
4
|
require("../../../guards.cjs");
|
|
5
5
|
const require_lib_utils_retry = require("../../../lib/utils/retry.cjs");
|
|
6
6
|
const require_batteries_embeddings_openai_exceptions = require("./exceptions.cjs");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as isError } from "../../../tokenizable-
|
|
1
|
+
import { B as isError } from "../../../tokenizable-BwnLtCzr.mjs";
|
|
2
2
|
import "../../../guards.mjs";
|
|
3
3
|
import { computeBackoff, parseRetryAfter, sleepWithJitter } from "../../../lib/utils/retry.mjs";
|
|
4
4
|
import { E_OPENAI_EMBEDDINGS_HTTP_ERROR, E_OPENAI_EMBEDDINGS_MALFORMED_RESPONSE, E_OPENAI_EMBEDDINGS_REQUEST_TIMEOUT } from "./exceptions.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../../chunk-Cek0wNdY.js");
|
|
3
|
-
const require_tokenizable = require("../../../tokenizable-
|
|
3
|
+
const require_tokenizable = require("../../../tokenizable-dnf9b2Ix.js");
|
|
4
4
|
require("../../../guards.cjs");
|
|
5
5
|
const require_lifecycle = require("../../../lifecycle-vYQJ2rmf.js");
|
|
6
6
|
const require_batteries_llm_transformers_js_model_source = require("../../llm/transformers_js/model_source.cjs");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as isError } from "../../../tokenizable-
|
|
1
|
+
import { B as isError } from "../../../tokenizable-BwnLtCzr.mjs";
|
|
2
2
|
import "../../../guards.mjs";
|
|
3
3
|
import { n as emitLifecycle } from "../../../lifecycle-C4kwYJ-N.mjs";
|
|
4
4
|
import { withModelSource } from "../../llm/transformers_js/model_source.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../../chunk-Cek0wNdY.js");
|
|
3
|
-
const require_tokenizable = require("../../../tokenizable-
|
|
3
|
+
const require_tokenizable = require("../../../tokenizable-dnf9b2Ix.js");
|
|
4
4
|
require("../../../guards.cjs");
|
|
5
5
|
const require_batteries_embeddings_transformers_js_exceptions = require("./exceptions.cjs");
|
|
6
6
|
let _nhtio_validation = require("@nhtio/validation");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as isError } from "../../../tokenizable-
|
|
1
|
+
import { B as isError } from "../../../tokenizable-BwnLtCzr.mjs";
|
|
2
2
|
import "../../../guards.mjs";
|
|
3
3
|
import { E_INVALID_TRANSFORMERS_JS_EMBEDDINGS_OPTIONS } from "./exceptions.mjs";
|
|
4
4
|
import { validator } from "@nhtio/validation";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../../chunk-Cek0wNdY.js");
|
|
3
|
-
const require_tokenizable = require("../../../tokenizable-
|
|
3
|
+
const require_tokenizable = require("../../../tokenizable-dnf9b2Ix.js");
|
|
4
4
|
require("../../../guards.cjs");
|
|
5
5
|
const require_batteries_embeddings_openai_helpers = require("../openai/helpers.cjs");
|
|
6
6
|
const require_batteries_embeddings_webllm_exceptions = require("./exceptions.cjs");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as isError } from "../../../tokenizable-
|
|
1
|
+
import { B as isError } from "../../../tokenizable-BwnLtCzr.mjs";
|
|
2
2
|
import "../../../guards.mjs";
|
|
3
3
|
import { applyEmbeddingPrefix } from "../openai/helpers.mjs";
|
|
4
4
|
import { E_INVALID_WEBLLM_EMBEDDINGS_OPTIONS, E_WEBLLM_EMBEDDINGS_ENGINE_ERROR } from "./exceptions.mjs";
|
package/batteries/encoding.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../chunk-Cek0wNdY.js");
|
|
3
|
-
const require_tokenizable = require("../tokenizable-
|
|
4
|
-
const require_spooled_artifact = require("../spooled_artifact-
|
|
5
|
-
const require_thought = require("../thought-
|
|
6
|
-
const require_common = require("../common-
|
|
7
|
-
const require_tool_call = require("../tool_call-
|
|
8
|
-
const require_spooled_markdown_artifact = require("../spooled_markdown_artifact-
|
|
3
|
+
const require_tokenizable = require("../tokenizable-dnf9b2Ix.js");
|
|
4
|
+
const require_spooled_artifact = require("../spooled_artifact-06tJeH56.js");
|
|
5
|
+
const require_thought = require("../thought-NCI5YocX.js");
|
|
6
|
+
const require_common = require("../common-Bc8v-IUv.js");
|
|
7
|
+
const require_tool_call = require("../tool_call-BMTKtLcS.js");
|
|
8
|
+
const require_spooled_markdown_artifact = require("../spooled_markdown_artifact-BMEgTHF_.js");
|
|
9
9
|
require("../index.cjs");
|
|
10
10
|
const require_batteries_storage_in_memory = require("./storage/in_memory.cjs");
|
|
11
11
|
let _nhtio_encoder = require("@nhtio/encoder");
|
package/batteries/encoding.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { r as Tokenizable } from "../tokenizable-
|
|
2
|
-
import { a as resolveMediaReader, c as ArtifactTool, f as ToolRegistry, i as registerSpoolReaderResolver, l as Tool, o as resolveSpoolReader, r as registerMediaReaderResolver, t as SpooledArtifact, u as Registry } from "../spooled_artifact-
|
|
3
|
-
import { i as Identity, n as Message, r as Memory, t as Thought } from "../thought-
|
|
4
|
-
import { a as inMemoryMediaReader, c as Retrievable, n as MEDIA_READER_TAG_IN_MEMORY, r as fromFetch, t as MEDIA_READER_TAG_FETCH } from "../common-
|
|
5
|
-
import { n as Media, o as decodeBase64, t as ToolCall } from "../tool_call-
|
|
6
|
-
import { n as SpooledJsonArtifact, t as SpooledMarkdownArtifact } from "../spooled_markdown_artifact-
|
|
1
|
+
import { r as Tokenizable } from "../tokenizable-BwnLtCzr.mjs";
|
|
2
|
+
import { a as resolveMediaReader, c as ArtifactTool, f as ToolRegistry, i as registerSpoolReaderResolver, l as Tool, o as resolveSpoolReader, r as registerMediaReaderResolver, t as SpooledArtifact, u as Registry } from "../spooled_artifact-CEGyUVPm.mjs";
|
|
3
|
+
import { i as Identity, n as Message, r as Memory, t as Thought } from "../thought-FselMff7.mjs";
|
|
4
|
+
import { a as inMemoryMediaReader, c as Retrievable, n as MEDIA_READER_TAG_IN_MEMORY, r as fromFetch, t as MEDIA_READER_TAG_FETCH } from "../common-DKjX6RTc.mjs";
|
|
5
|
+
import { n as Media, o as decodeBase64, t as ToolCall } from "../tool_call-Bc9nZQC-.mjs";
|
|
6
|
+
import { n as SpooledJsonArtifact, t as SpooledMarkdownArtifact } from "../spooled_markdown_artifact-oLHuYyA1.mjs";
|
|
7
7
|
import "../index.mjs";
|
|
8
8
|
import { InMemorySpoolReader, SPOOL_READER_TAG_IN_MEMORY } from "./storage/in_memory.mjs";
|
|
9
9
|
import { registerClass } from "@nhtio/encoder";
|
package/batteries/index.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ import type { GpuBudget } from "./gpu_budget";
|
|
|
20
20
|
/** The coarse lifecycle phases a battery transitions through. */
|
|
21
21
|
export type BatteryLifecyclePhase = 'loading' | 'compiling' | 'ready' | 'generating' | 'complete' | 'error';
|
|
22
22
|
/** Which battery emitted a lifecycle report. */
|
|
23
|
-
export type BatteryLifecycleBattery = 'transformers_js' | 'litert_lm' | 'webllm' | 'transformers_js_embed';
|
|
23
|
+
export type BatteryLifecycleBattery = 'transformers_js' | 'litert_lm' | 'webllm' | 'transformers_js_embed' | 'transformers_js_stt' | 'transformers_js_caption' | 'tesseract_js_ocr';
|
|
24
24
|
/** A single normalized lifecycle report. */
|
|
25
25
|
export interface BatteryLifecycleReport {
|
|
26
26
|
/** The phase being entered. */
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../../chunk-Cek0wNdY.js");
|
|
3
|
-
const require_tokenizable = require("../../../tokenizable-
|
|
4
|
-
const require_spooled_artifact = require("../../../spooled_artifact-
|
|
5
|
-
const require_thought = require("../../../thought-
|
|
6
|
-
require("../../../common-
|
|
7
|
-
const require_tool_call = require("../../../tool_call-
|
|
3
|
+
const require_tokenizable = require("../../../tokenizable-dnf9b2Ix.js");
|
|
4
|
+
const require_spooled_artifact = require("../../../spooled_artifact-06tJeH56.js");
|
|
5
|
+
const require_thought = require("../../../thought-NCI5YocX.js");
|
|
6
|
+
require("../../../common-Bc8v-IUv.js");
|
|
7
|
+
const require_tool_call = require("../../../tool_call-BMTKtLcS.js");
|
|
8
8
|
require("../../../guards.cjs");
|
|
9
|
-
const require_tool_parsers = require("../../../tool_parsers-
|
|
9
|
+
const require_tool_parsers = require("../../../tool_parsers-DfZbeF0E.js");
|
|
10
10
|
const require_batteries_storage_in_memory = require("../../storage/in_memory.cjs");
|
|
11
11
|
const require_helpers = require("../../../helpers-CGSPsSAA.js");
|
|
12
12
|
const require_lifecycle = require("../../../lifecycle-vYQJ2rmf.js");
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { B as isError, H as isObject, V as isInstanceOf, r as Tokenizable } from "../../../tokenizable-
|
|
2
|
-
import { c as ArtifactTool, d as canonicalStringify, t as SpooledArtifact } from "../../../spooled_artifact-
|
|
3
|
-
import { n as Message, t as Thought } from "../../../thought-
|
|
4
|
-
import "../../../common-
|
|
5
|
-
import { n as Media, t as ToolCall } from "../../../tool_call-
|
|
1
|
+
import { B as isError, H as isObject, V as isInstanceOf, r as Tokenizable } from "../../../tokenizable-BwnLtCzr.mjs";
|
|
2
|
+
import { c as ArtifactTool, d as canonicalStringify, t as SpooledArtifact } from "../../../spooled_artifact-CEGyUVPm.mjs";
|
|
3
|
+
import { n as Message, t as Thought } from "../../../thought-FselMff7.mjs";
|
|
4
|
+
import "../../../common-DKjX6RTc.mjs";
|
|
5
|
+
import { n as Media, t as ToolCall } from "../../../tool_call-Bc9nZQC-.mjs";
|
|
6
6
|
import "../../../guards.mjs";
|
|
7
|
-
import { O as resolveToolCallParser } from "../../../tool_parsers-
|
|
7
|
+
import { O as resolveToolCallParser } from "../../../tool_parsers-BFiMJBy6.mjs";
|
|
8
8
|
import { InMemorySpoolStore } from "../../storage/in_memory.mjs";
|
|
9
9
|
import { a as defaultRenderFirstPartyRetrievables, c as defaultRenderRetrievables, d as defaultRenderThirdPartyPublicRetrievables, f as defaultRenderThought, i as defaultRenderChatCompletionsSystemPrompt, l as defaultRenderStandingInstructions, m as defaultRenderUntrustedContent, n as defaultFilterThoughts, o as defaultRenderMemories, p as defaultRenderTrustedContent, r as defaultRenderArtifactHandleBody, s as defaultRenderRetrievableSafetyDirective, t as defaultDescriptionToChatCompletionsJsonSchema, u as defaultRenderThirdPartyPrivateRetrievables, z as stripEnvelopeSpecialTokens } from "../../../helpers-N6Q1uO9p.mjs";
|
|
10
10
|
import { n as emitLifecycle } from "../../../lifecycle-C4kwYJ-N.mjs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../../chunk-Cek0wNdY.js");
|
|
3
|
-
const require_spooled_artifact = require("../../../spooled_artifact-
|
|
4
|
-
const require_tool_call = require("../../../tool_call-
|
|
3
|
+
const require_spooled_artifact = require("../../../spooled_artifact-06tJeH56.js");
|
|
4
|
+
const require_tool_call = require("../../../tool_call-BMTKtLcS.js");
|
|
5
5
|
require("../../../index.cjs");
|
|
6
|
-
const require_tool_parsers = require("../../../tool_parsers-
|
|
6
|
+
const require_tool_parsers = require("../../../tool_parsers-DfZbeF0E.js");
|
|
7
7
|
const require_helpers = require("../../../helpers-CGSPsSAA.js");
|
|
8
8
|
const require_batteries_llm_openai_chat_completions_helpers = require("../openai_chat_completions/helpers.cjs");
|
|
9
9
|
const require_lifecycle = require("../../../lifecycle-vYQJ2rmf.js");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as SpooledArtifact } from "../../../spooled_artifact-
|
|
2
|
-
import { n as Media } from "../../../tool_call-
|
|
1
|
+
import { t as SpooledArtifact } from "../../../spooled_artifact-CEGyUVPm.mjs";
|
|
2
|
+
import { n as Media } from "../../../tool_call-Bc9nZQC-.mjs";
|
|
3
3
|
import "../../../index.mjs";
|
|
4
|
-
import { C as mistralToolCallParser, D as qwen3CoderToolCallParser, E as pythonicToolCallParser, O as resolveToolCallParser, S as looseKeyedToolCallParser, T as phiToolCallParser, _ as defaultResolveToolCallParser, a as defaultBarePythonicToolCallParser, b as hermesToolCallParser, c as defaultGptOssToolCallParser, d as defaultLooseKeyedToolCallParser, f as defaultMistralToolCallParser, g as defaultQwen3CoderToolCallParser, h as defaultPythonicToolCallParser, i as createAutoToolCallParser, l as defaultHermesToolCallParser, m as defaultPhiToolCallParser, n as DEFAULT_TOOL_CALL_PARSER_ORDER, o as defaultCreateAutoToolCallParser, p as defaultNoneToolCallParser, r as barePythonicToolCallParser, s as defaultGemmaToolCallParser, t as BUNDLED_TOOL_CALL_PARSERS, u as defaultLlama3JsonToolCallParser, v as gemmaToolCallParser, w as noneToolCallParser, x as llama3JsonToolCallParser, y as gptOssToolCallParser } from "../../../tool_parsers-
|
|
4
|
+
import { C as mistralToolCallParser, D as qwen3CoderToolCallParser, E as pythonicToolCallParser, O as resolveToolCallParser, S as looseKeyedToolCallParser, T as phiToolCallParser, _ as defaultResolveToolCallParser, a as defaultBarePythonicToolCallParser, b as hermesToolCallParser, c as defaultGptOssToolCallParser, d as defaultLooseKeyedToolCallParser, f as defaultMistralToolCallParser, g as defaultQwen3CoderToolCallParser, h as defaultPythonicToolCallParser, i as createAutoToolCallParser, l as defaultHermesToolCallParser, m as defaultPhiToolCallParser, n as DEFAULT_TOOL_CALL_PARSER_ORDER, o as defaultCreateAutoToolCallParser, p as defaultNoneToolCallParser, r as barePythonicToolCallParser, s as defaultGemmaToolCallParser, t as BUNDLED_TOOL_CALL_PARSERS, u as defaultLlama3JsonToolCallParser, v as gemmaToolCallParser, w as noneToolCallParser, x as llama3JsonToolCallParser, y as gptOssToolCallParser } from "../../../tool_parsers-BFiMJBy6.mjs";
|
|
5
5
|
import { A as renderThirdPartyPrivateRetrievables, C as renderArtifactHandleBody, D as renderRetrievableSafetyDirective, E as renderMemories, L as sanitizeFilenameForDescription, M as renderThought, N as renderTrustedContent, O as renderRetrievables, P as renderUntrustedContent, R as sanitizeMimeType, S as neutraliseDeveloperRulesTag, T as renderFirstPartyRetrievables, a as defaultRenderFirstPartyRetrievables, b as looksLikeSpooledArtifact, c as defaultRenderRetrievables, d as defaultRenderThirdPartyPublicRetrievables, f as defaultRenderThought, g as descriptionToChatCompletionsJsonSchema, i as defaultRenderChatCompletionsSystemPrompt, j as renderThirdPartyPublicRetrievables, k as renderStandingInstructions, l as defaultRenderStandingInstructions, m as defaultRenderUntrustedContent, n as defaultFilterThoughts, o as defaultRenderMemories, p as defaultRenderTrustedContent, r as defaultRenderArtifactHandleBody, s as defaultRenderRetrievableSafetyDirective, t as defaultDescriptionToChatCompletionsJsonSchema, u as defaultRenderThirdPartyPrivateRetrievables, v as filterThoughts, w as renderChatCompletionsSystemPrompt } from "../../../helpers-N6Q1uO9p.mjs";
|
|
6
6
|
import { extractReasoningFields } from "../openai_chat_completions/helpers.mjs";
|
|
7
7
|
import { n as emitLifecycle, t as defaultEmitLifecycle } from "../../../lifecycle-C4kwYJ-N.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../../chunk-Cek0wNdY.js");
|
|
3
|
-
const require_tokenizable = require("../../../tokenizable-
|
|
4
|
-
const require_common = require("../../../common-
|
|
3
|
+
const require_tokenizable = require("../../../tokenizable-dnf9b2Ix.js");
|
|
4
|
+
const require_common = require("../../../common-Bc8v-IUv.js");
|
|
5
5
|
require("../../../guards.cjs");
|
|
6
6
|
const require_batteries_llm_litert_lm_exceptions = require("./exceptions.cjs");
|
|
7
7
|
let _nhtio_validation = require("@nhtio/validation");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as isError, n as TokenEncoding } from "../../../tokenizable-
|
|
2
|
-
import { o as byteStoreSchema } from "../../../common-
|
|
1
|
+
import { B as isError, n as TokenEncoding } from "../../../tokenizable-BwnLtCzr.mjs";
|
|
2
|
+
import { o as byteStoreSchema } from "../../../common-DKjX6RTc.mjs";
|
|
3
3
|
import "../../../guards.mjs";
|
|
4
4
|
import { E_INVALID_LITERT_LM_OPTIONS } from "./exceptions.mjs";
|
|
5
5
|
import { validator } from "@nhtio/validation";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../chunk-Cek0wNdY.js");
|
|
3
|
-
const require_tool_parsers = require("../../tool_parsers-
|
|
3
|
+
const require_tool_parsers = require("../../tool_parsers-DfZbeF0E.js");
|
|
4
4
|
const require_helpers = require("../../helpers-CGSPsSAA.js");
|
|
5
5
|
const require_batteries_llm_openai_chat_completions_helpers = require("./openai_chat_completions/helpers.cjs");
|
|
6
6
|
const require_lifecycle = require("../../lifecycle-vYQJ2rmf.js");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as mistralToolCallParser, D as qwen3CoderToolCallParser, E as pythonicToolCallParser, O as resolveToolCallParser, T as phiToolCallParser, b as hermesToolCallParser, i as createAutoToolCallParser, n as DEFAULT_TOOL_CALL_PARSER_ORDER, t as BUNDLED_TOOL_CALL_PARSERS, v as gemmaToolCallParser, w as noneToolCallParser, x as llama3JsonToolCallParser, y as gptOssToolCallParser } from "../../tool_parsers-
|
|
1
|
+
import { C as mistralToolCallParser, D as qwen3CoderToolCallParser, E as pythonicToolCallParser, O as resolveToolCallParser, T as phiToolCallParser, b as hermesToolCallParser, i as createAutoToolCallParser, n as DEFAULT_TOOL_CALL_PARSER_ORDER, t as BUNDLED_TOOL_CALL_PARSERS, v as gemmaToolCallParser, w as noneToolCallParser, x as llama3JsonToolCallParser, y as gptOssToolCallParser } from "../../tool_parsers-BFiMJBy6.mjs";
|
|
2
2
|
import { A as renderThirdPartyPrivateRetrievables, C as renderArtifactHandleBody, D as renderRetrievableSafetyDirective, E as renderMemories, M as renderThought, N as renderTrustedContent, O as renderRetrievables, P as renderUntrustedContent, T as renderFirstPartyRetrievables, a as defaultRenderFirstPartyRetrievables, b as looksLikeSpooledArtifact, c as defaultRenderRetrievables, d as defaultRenderThirdPartyPublicRetrievables, f as defaultRenderThought, g as descriptionToChatCompletionsJsonSchema, i as defaultRenderChatCompletionsSystemPrompt, j as renderThirdPartyPublicRetrievables, k as renderStandingInstructions, l as defaultRenderStandingInstructions, m as defaultRenderUntrustedContent, n as defaultFilterThoughts, o as defaultRenderMemories, p as defaultRenderTrustedContent, s as defaultRenderRetrievableSafetyDirective, t as defaultDescriptionToChatCompletionsJsonSchema, u as defaultRenderThirdPartyPrivateRetrievables, v as filterThoughts, w as renderChatCompletionsSystemPrompt } from "../../helpers-N6Q1uO9p.mjs";
|
|
3
3
|
import { extractReasoningFields } from "./openai_chat_completions/helpers.mjs";
|
|
4
4
|
import { n as emitLifecycle, t as defaultEmitLifecycle } from "../../lifecycle-C4kwYJ-N.mjs";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../../chunk-Cek0wNdY.js");
|
|
3
|
-
const require_tokenizable = require("../../../tokenizable-
|
|
4
|
-
const require_spooled_artifact = require("../../../spooled_artifact-
|
|
5
|
-
const require_thought = require("../../../thought-
|
|
6
|
-
require("../../../common-
|
|
7
|
-
const require_tool_call = require("../../../tool_call-
|
|
3
|
+
const require_tokenizable = require("../../../tokenizable-dnf9b2Ix.js");
|
|
4
|
+
const require_spooled_artifact = require("../../../spooled_artifact-06tJeH56.js");
|
|
5
|
+
const require_thought = require("../../../thought-NCI5YocX.js");
|
|
6
|
+
require("../../../common-Bc8v-IUv.js");
|
|
7
|
+
const require_tool_call = require("../../../tool_call-BMTKtLcS.js");
|
|
8
8
|
require("../../../guards.cjs");
|
|
9
9
|
const require_lib_utils_retry = require("../../../lib/utils/retry.cjs");
|
|
10
|
-
const require_tool_parsers = require("../../../tool_parsers-
|
|
10
|
+
const require_tool_parsers = require("../../../tool_parsers-DfZbeF0E.js");
|
|
11
11
|
const require_batteries_storage_in_memory = require("../../storage/in_memory.cjs");
|
|
12
12
|
const require_helpers = require("../../../helpers-CGSPsSAA.js");
|
|
13
13
|
const require_batteries_llm_ollama_exceptions = require("./exceptions.cjs");
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { B as isError, H as isObject, V as isInstanceOf, r as Tokenizable } from "../../../tokenizable-
|
|
2
|
-
import { c as ArtifactTool, d as canonicalStringify, t as SpooledArtifact } from "../../../spooled_artifact-
|
|
3
|
-
import { n as Message, t as Thought } from "../../../thought-
|
|
4
|
-
import "../../../common-
|
|
5
|
-
import { n as Media, t as ToolCall } from "../../../tool_call-
|
|
1
|
+
import { B as isError, H as isObject, V as isInstanceOf, r as Tokenizable } from "../../../tokenizable-BwnLtCzr.mjs";
|
|
2
|
+
import { c as ArtifactTool, d as canonicalStringify, t as SpooledArtifact } from "../../../spooled_artifact-CEGyUVPm.mjs";
|
|
3
|
+
import { n as Message, t as Thought } from "../../../thought-FselMff7.mjs";
|
|
4
|
+
import "../../../common-DKjX6RTc.mjs";
|
|
5
|
+
import { n as Media, t as ToolCall } from "../../../tool_call-Bc9nZQC-.mjs";
|
|
6
6
|
import "../../../guards.mjs";
|
|
7
7
|
import { computeBackoff, linkAbortSignals, parseRetryAfter, sleepWithJitter } from "../../../lib/utils/retry.mjs";
|
|
8
|
-
import { O as resolveToolCallParser } from "../../../tool_parsers-
|
|
8
|
+
import { O as resolveToolCallParser } from "../../../tool_parsers-BFiMJBy6.mjs";
|
|
9
9
|
import { InMemorySpoolStore } from "../../storage/in_memory.mjs";
|
|
10
10
|
import { a as defaultRenderFirstPartyRetrievables, c as defaultRenderRetrievables, d as defaultRenderThirdPartyPublicRetrievables, f as defaultRenderThought, h as defaultToolsToChatCompletionsTools, i as defaultRenderChatCompletionsSystemPrompt, l as defaultRenderStandingInstructions, m as defaultRenderUntrustedContent, n as defaultFilterThoughts, o as defaultRenderMemories, p as defaultRenderTrustedContent, s as defaultRenderRetrievableSafetyDirective, t as defaultDescriptionToChatCompletionsJsonSchema, u as defaultRenderThirdPartyPrivateRetrievables } from "../../../helpers-N6Q1uO9p.mjs";
|
|
11
11
|
import { E_INVALID_OLLAMA_OPTIONS, E_OLLAMA_CONTEXT_OVERFLOW, E_OLLAMA_HTTP_ERROR, E_OLLAMA_INVALID_TOOL_CALL_ARGS, E_OLLAMA_REQUEST_TIMEOUT, E_OLLAMA_STREAM_ERROR, E_OLLAMA_STREAM_STALLED } from "./exceptions.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../../chunk-Cek0wNdY.js");
|
|
3
|
-
require("../../../common-
|
|
4
|
-
const require_tool_call = require("../../../tool_call-
|
|
3
|
+
require("../../../common-Bc8v-IUv.js");
|
|
4
|
+
const require_tool_call = require("../../../tool_call-BMTKtLcS.js");
|
|
5
5
|
require("../../../guards.cjs");
|
|
6
6
|
const require_helpers = require("../../../helpers-CGSPsSAA.js");
|
|
7
7
|
const require_batteries_llm_ollama_exceptions = require("./exceptions.cjs");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../../../common-
|
|
2
|
-
import { n as Media } from "../../../tool_call-
|
|
1
|
+
import "../../../common-DKjX6RTc.mjs";
|
|
2
|
+
import { n as Media } from "../../../tool_call-Bc9nZQC-.mjs";
|
|
3
3
|
import "../../../guards.mjs";
|
|
4
4
|
import { A as renderThirdPartyPrivateRetrievables, B as toolsToChatCompletionsTools, D as renderRetrievableSafetyDirective, E as renderMemories, F as retrievableToAttrs, L as sanitizeFilenameForDescription, M as renderThought, N as renderTrustedContent, O as renderRetrievables, P as renderUntrustedContent, R as sanitizeMimeType, S as neutraliseDeveloperRulesTag, T as renderFirstPartyRetrievables, _ as escapeXmlAttribute, a as defaultRenderFirstPartyRetrievables, c as defaultRenderRetrievables, d as defaultRenderThirdPartyPublicRetrievables, f as defaultRenderThought, g as descriptionToChatCompletionsJsonSchema, h as defaultToolsToChatCompletionsTools, i as defaultRenderChatCompletionsSystemPrompt, j as renderThirdPartyPublicRetrievables, k as renderStandingInstructions, l as defaultRenderStandingInstructions, m as defaultRenderUntrustedContent, n as defaultFilterThoughts, o as defaultRenderMemories, p as defaultRenderTrustedContent, s as defaultRenderRetrievableSafetyDirective, t as defaultDescriptionToChatCompletionsJsonSchema, u as defaultRenderThirdPartyPrivateRetrievables, v as filterThoughts, w as renderChatCompletionsSystemPrompt, x as memoryToAttrs, y as floorTrustTier } from "../../../helpers-N6Q1uO9p.mjs";
|
|
5
5
|
import { E_OLLAMA_UNSUPPORTED_MEDIA_MODALITY } from "./exceptions.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../../chunk-Cek0wNdY.js");
|
|
3
|
-
const require_tokenizable = require("../../../tokenizable-
|
|
4
|
-
const require_common = require("../../../common-
|
|
3
|
+
const require_tokenizable = require("../../../tokenizable-dnf9b2Ix.js");
|
|
4
|
+
const require_common = require("../../../common-Bc8v-IUv.js");
|
|
5
5
|
require("../../../guards.cjs");
|
|
6
6
|
const require_batteries_llm_ollama_exceptions = require("./exceptions.cjs");
|
|
7
7
|
let _nhtio_validation = require("@nhtio/validation");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as TokenEncoding } from "../../../tokenizable-
|
|
2
|
-
import { o as byteStoreSchema } from "../../../common-
|
|
1
|
+
import { n as TokenEncoding } from "../../../tokenizable-BwnLtCzr.mjs";
|
|
2
|
+
import { o as byteStoreSchema } from "../../../common-DKjX6RTc.mjs";
|
|
3
3
|
import "../../../guards.mjs";
|
|
4
4
|
import { E_INVALID_OLLAMA_OPTIONS } from "./exceptions.mjs";
|
|
5
5
|
import { validator } from "@nhtio/validation";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../../chunk-Cek0wNdY.js");
|
|
3
|
-
const require_tokenizable = require("../../../tokenizable-
|
|
4
|
-
const require_spooled_artifact = require("../../../spooled_artifact-
|
|
5
|
-
const require_thought = require("../../../thought-
|
|
6
|
-
require("../../../common-
|
|
7
|
-
const require_tool_call = require("../../../tool_call-
|
|
3
|
+
const require_tokenizable = require("../../../tokenizable-dnf9b2Ix.js");
|
|
4
|
+
const require_spooled_artifact = require("../../../spooled_artifact-06tJeH56.js");
|
|
5
|
+
const require_thought = require("../../../thought-NCI5YocX.js");
|
|
6
|
+
require("../../../common-Bc8v-IUv.js");
|
|
7
|
+
const require_tool_call = require("../../../tool_call-BMTKtLcS.js");
|
|
8
8
|
require("../../../guards.cjs");
|
|
9
9
|
const require_lib_utils_retry = require("../../../lib/utils/retry.cjs");
|
|
10
10
|
const require_batteries_llm_openai_chat_completions_exceptions = require("./exceptions.cjs");
|
|
11
11
|
const require_batteries_llm_openai_chat_completions_validation = require("./validation.cjs");
|
|
12
|
-
const require_tool_parsers = require("../../../tool_parsers-
|
|
12
|
+
const require_tool_parsers = require("../../../tool_parsers-DfZbeF0E.js");
|
|
13
13
|
const require_batteries_storage_in_memory = require("../../storage/in_memory.cjs");
|
|
14
14
|
const require_helpers = require("../../../helpers-CGSPsSAA.js");
|
|
15
15
|
const require_batteries_llm_openai_chat_completions_helpers = require("./helpers.cjs");
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { B as isError, H as isObject, V as isInstanceOf, r as Tokenizable } from "../../../tokenizable-
|
|
2
|
-
import { c as ArtifactTool, d as canonicalStringify, t as SpooledArtifact } from "../../../spooled_artifact-
|
|
3
|
-
import { n as Message, t as Thought } from "../../../thought-
|
|
4
|
-
import "../../../common-
|
|
5
|
-
import { n as Media, t as ToolCall } from "../../../tool_call-
|
|
1
|
+
import { B as isError, H as isObject, V as isInstanceOf, r as Tokenizable } from "../../../tokenizable-BwnLtCzr.mjs";
|
|
2
|
+
import { c as ArtifactTool, d as canonicalStringify, t as SpooledArtifact } from "../../../spooled_artifact-CEGyUVPm.mjs";
|
|
3
|
+
import { n as Message, t as Thought } from "../../../thought-FselMff7.mjs";
|
|
4
|
+
import "../../../common-DKjX6RTc.mjs";
|
|
5
|
+
import { n as Media, t as ToolCall } from "../../../tool_call-Bc9nZQC-.mjs";
|
|
6
6
|
import "../../../guards.mjs";
|
|
7
7
|
import { computeBackoff, linkAbortSignals, parseRetryAfter, sleepWithJitter } from "../../../lib/utils/retry.mjs";
|
|
8
8
|
import { E_INVALID_OPENAI_CHAT_COMPLETIONS_OPTIONS, E_OPENAI_CHAT_COMPLETIONS_CONTEXT_OVERFLOW, E_OPENAI_CHAT_COMPLETIONS_HTTP_ERROR, E_OPENAI_CHAT_COMPLETIONS_INVALID_TOOL_CALL_ARGS, E_OPENAI_CHAT_COMPLETIONS_REQUEST_TIMEOUT, E_OPENAI_CHAT_COMPLETIONS_STREAM_ERROR, E_OPENAI_CHAT_COMPLETIONS_STREAM_STALLED } from "./exceptions.mjs";
|
|
9
9
|
import { validateOptions } from "./validation.mjs";
|
|
10
|
-
import { O as resolveToolCallParser } from "../../../tool_parsers-
|
|
10
|
+
import { O as resolveToolCallParser } from "../../../tool_parsers-BFiMJBy6.mjs";
|
|
11
11
|
import { InMemorySpoolStore } from "../../storage/in_memory.mjs";
|
|
12
12
|
import { a as defaultRenderFirstPartyRetrievables, c as defaultRenderRetrievables, d as defaultRenderThirdPartyPublicRetrievables, f as defaultRenderThought, h as defaultToolsToChatCompletionsTools, i as defaultRenderChatCompletionsSystemPrompt, l as defaultRenderStandingInstructions, m as defaultRenderUntrustedContent, n as defaultFilterThoughts, o as defaultRenderMemories, p as defaultRenderTrustedContent, s as defaultRenderRetrievableSafetyDirective, t as defaultDescriptionToChatCompletionsJsonSchema, u as defaultRenderThirdPartyPrivateRetrievables } from "../../../helpers-N6Q1uO9p.mjs";
|
|
13
13
|
import { defaultBuildChatCompletionsHistory, defaultCreateChatCompletionsToolCallDeltaAccumulator, defaultRenderChatCompletionsToolCallResult, defaultRenderTimelineMessage, extractReasoningFields } from "./helpers.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../../chunk-Cek0wNdY.js");
|
|
3
|
-
require("../../../common-
|
|
4
|
-
const require_tool_call = require("../../../tool_call-
|
|
3
|
+
require("../../../common-Bc8v-IUv.js");
|
|
4
|
+
const require_tool_call = require("../../../tool_call-BMTKtLcS.js");
|
|
5
5
|
require("../../../guards.cjs");
|
|
6
6
|
const require_batteries_llm_openai_chat_completions_exceptions = require("./exceptions.cjs");
|
|
7
7
|
const require_helpers = require("../../../helpers-CGSPsSAA.js");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../../../common-
|
|
2
|
-
import { n as Media } from "../../../tool_call-
|
|
1
|
+
import "../../../common-DKjX6RTc.mjs";
|
|
2
|
+
import { n as Media } from "../../../tool_call-Bc9nZQC-.mjs";
|
|
3
3
|
import "../../../guards.mjs";
|
|
4
4
|
import { E_UNSUPPORTED_MEDIA_MODALITY } from "./exceptions.mjs";
|
|
5
5
|
import { A as renderThirdPartyPrivateRetrievables, B as toolsToChatCompletionsTools, D as renderRetrievableSafetyDirective, E as renderMemories, F as retrievableToAttrs, I as sanitiseNameField, L as sanitizeFilenameForDescription, M as renderThought, N as renderTrustedContent, O as renderRetrievables, P as renderUntrustedContent, R as sanitizeMimeType, S as neutraliseDeveloperRulesTag, T as renderFirstPartyRetrievables, _ as escapeXmlAttribute, a as defaultRenderFirstPartyRetrievables, c as defaultRenderRetrievables, d as defaultRenderThirdPartyPublicRetrievables, f as defaultRenderThought, g as descriptionToChatCompletionsJsonSchema, h as defaultToolsToChatCompletionsTools, i as defaultRenderChatCompletionsSystemPrompt, j as renderThirdPartyPublicRetrievables, k as renderStandingInstructions, l as defaultRenderStandingInstructions, m as defaultRenderUntrustedContent, n as defaultFilterThoughts, o as defaultRenderMemories, p as defaultRenderTrustedContent, s as defaultRenderRetrievableSafetyDirective, t as defaultDescriptionToChatCompletionsJsonSchema, u as defaultRenderThirdPartyPrivateRetrievables, v as filterThoughts, w as renderChatCompletionsSystemPrompt, x as memoryToAttrs, y as floorTrustTier, z as stripEnvelopeSpecialTokens } from "../../../helpers-N6Q1uO9p.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../../chunk-Cek0wNdY.js");
|
|
3
|
-
const require_tokenizable = require("../../../tokenizable-
|
|
4
|
-
const require_common = require("../../../common-
|
|
3
|
+
const require_tokenizable = require("../../../tokenizable-dnf9b2Ix.js");
|
|
4
|
+
const require_common = require("../../../common-Bc8v-IUv.js");
|
|
5
5
|
require("../../../guards.cjs");
|
|
6
6
|
const require_batteries_llm_openai_chat_completions_exceptions = require("./exceptions.cjs");
|
|
7
7
|
let _nhtio_validation = require("@nhtio/validation");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as TokenEncoding } from "../../../tokenizable-
|
|
2
|
-
import { o as byteStoreSchema } from "../../../common-
|
|
1
|
+
import { n as TokenEncoding } from "../../../tokenizable-BwnLtCzr.mjs";
|
|
2
|
+
import { o as byteStoreSchema } from "../../../common-DKjX6RTc.mjs";
|
|
3
3
|
import "../../../guards.mjs";
|
|
4
4
|
import { E_INVALID_OPENAI_CHAT_COMPLETIONS_OPTIONS } from "./exceptions.mjs";
|
|
5
5
|
import { validator } from "@nhtio/validation";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../../chunk-Cek0wNdY.js");
|
|
3
|
-
const require_tokenizable = require("../../../tokenizable-
|
|
4
|
-
const require_spooled_artifact = require("../../../spooled_artifact-
|
|
5
|
-
const require_thought = require("../../../thought-
|
|
6
|
-
require("../../../common-
|
|
7
|
-
const require_tool_call = require("../../../tool_call-
|
|
3
|
+
const require_tokenizable = require("../../../tokenizable-dnf9b2Ix.js");
|
|
4
|
+
const require_spooled_artifact = require("../../../spooled_artifact-06tJeH56.js");
|
|
5
|
+
const require_thought = require("../../../thought-NCI5YocX.js");
|
|
6
|
+
require("../../../common-Bc8v-IUv.js");
|
|
7
|
+
const require_tool_call = require("../../../tool_call-BMTKtLcS.js");
|
|
8
8
|
require("../../../guards.cjs");
|
|
9
|
-
const require_tool_parsers = require("../../../tool_parsers-
|
|
9
|
+
const require_tool_parsers = require("../../../tool_parsers-DfZbeF0E.js");
|
|
10
10
|
const require_batteries_storage_in_memory = require("../../storage/in_memory.cjs");
|
|
11
11
|
const require_helpers = require("../../../helpers-CGSPsSAA.js");
|
|
12
12
|
const require_lifecycle = require("../../../lifecycle-vYQJ2rmf.js");
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { B as isError, H as isObject, V as isInstanceOf, r as Tokenizable } from "../../../tokenizable-
|
|
2
|
-
import { c as ArtifactTool, d as canonicalStringify, t as SpooledArtifact } from "../../../spooled_artifact-
|
|
3
|
-
import { n as Message, t as Thought } from "../../../thought-
|
|
4
|
-
import "../../../common-
|
|
5
|
-
import { n as Media, t as ToolCall } from "../../../tool_call-
|
|
1
|
+
import { B as isError, H as isObject, V as isInstanceOf, r as Tokenizable } from "../../../tokenizable-BwnLtCzr.mjs";
|
|
2
|
+
import { c as ArtifactTool, d as canonicalStringify, t as SpooledArtifact } from "../../../spooled_artifact-CEGyUVPm.mjs";
|
|
3
|
+
import { n as Message, t as Thought } from "../../../thought-FselMff7.mjs";
|
|
4
|
+
import "../../../common-DKjX6RTc.mjs";
|
|
5
|
+
import { n as Media, t as ToolCall } from "../../../tool_call-Bc9nZQC-.mjs";
|
|
6
6
|
import "../../../guards.mjs";
|
|
7
|
-
import { O as resolveToolCallParser } from "../../../tool_parsers-
|
|
7
|
+
import { O as resolveToolCallParser } from "../../../tool_parsers-BFiMJBy6.mjs";
|
|
8
8
|
import { InMemorySpoolStore } from "../../storage/in_memory.mjs";
|
|
9
9
|
import { a as defaultRenderFirstPartyRetrievables, c as defaultRenderRetrievables, d as defaultRenderThirdPartyPublicRetrievables, f as defaultRenderThought, i as defaultRenderChatCompletionsSystemPrompt, l as defaultRenderStandingInstructions, m as defaultRenderUntrustedContent, n as defaultFilterThoughts, o as defaultRenderMemories, p as defaultRenderTrustedContent, r as defaultRenderArtifactHandleBody, s as defaultRenderRetrievableSafetyDirective, t as defaultDescriptionToChatCompletionsJsonSchema, u as defaultRenderThirdPartyPrivateRetrievables, z as stripEnvelopeSpecialTokens } from "../../../helpers-N6Q1uO9p.mjs";
|
|
10
10
|
import { n as emitLifecycle } from "../../../lifecycle-C4kwYJ-N.mjs";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../../chunk-Cek0wNdY.js");
|
|
3
|
-
const require_tokenizable = require("../../../tokenizable-
|
|
4
|
-
const require_spooled_artifact = require("../../../spooled_artifact-
|
|
5
|
-
const require_tool_call = require("../../../tool_call-
|
|
3
|
+
const require_tokenizable = require("../../../tokenizable-dnf9b2Ix.js");
|
|
4
|
+
const require_spooled_artifact = require("../../../spooled_artifact-06tJeH56.js");
|
|
5
|
+
const require_tool_call = require("../../../tool_call-BMTKtLcS.js");
|
|
6
6
|
require("../../../guards.cjs");
|
|
7
7
|
require("../../../index.cjs");
|
|
8
|
-
const require_tool_parsers = require("../../../tool_parsers-
|
|
8
|
+
const require_tool_parsers = require("../../../tool_parsers-DfZbeF0E.js");
|
|
9
9
|
const require_helpers = require("../../../helpers-CGSPsSAA.js");
|
|
10
10
|
const require_batteries_llm_openai_chat_completions_helpers = require("../openai_chat_completions/helpers.cjs");
|
|
11
11
|
const require_lifecycle = require("../../../lifecycle-vYQJ2rmf.js");
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { B as isError } from "../../../tokenizable-
|
|
2
|
-
import { t as SpooledArtifact } from "../../../spooled_artifact-
|
|
3
|
-
import { n as Media } from "../../../tool_call-
|
|
1
|
+
import { B as isError } from "../../../tokenizable-BwnLtCzr.mjs";
|
|
2
|
+
import { t as SpooledArtifact } from "../../../spooled_artifact-CEGyUVPm.mjs";
|
|
3
|
+
import { n as Media } from "../../../tool_call-Bc9nZQC-.mjs";
|
|
4
4
|
import "../../../guards.mjs";
|
|
5
5
|
import "../../../index.mjs";
|
|
6
|
-
import { C as mistralToolCallParser, D as qwen3CoderToolCallParser, E as pythonicToolCallParser, O as resolveToolCallParser, S as looseKeyedToolCallParser, T as phiToolCallParser, _ as defaultResolveToolCallParser, a as defaultBarePythonicToolCallParser, b as hermesToolCallParser, c as defaultGptOssToolCallParser, d as defaultLooseKeyedToolCallParser, f as defaultMistralToolCallParser, g as defaultQwen3CoderToolCallParser, h as defaultPythonicToolCallParser, i as createAutoToolCallParser, l as defaultHermesToolCallParser, m as defaultPhiToolCallParser, n as DEFAULT_TOOL_CALL_PARSER_ORDER, o as defaultCreateAutoToolCallParser, p as defaultNoneToolCallParser, r as barePythonicToolCallParser, s as defaultGemmaToolCallParser, t as BUNDLED_TOOL_CALL_PARSERS, u as defaultLlama3JsonToolCallParser, v as gemmaToolCallParser, w as noneToolCallParser, x as llama3JsonToolCallParser, y as gptOssToolCallParser } from "../../../tool_parsers-
|
|
6
|
+
import { C as mistralToolCallParser, D as qwen3CoderToolCallParser, E as pythonicToolCallParser, O as resolveToolCallParser, S as looseKeyedToolCallParser, T as phiToolCallParser, _ as defaultResolveToolCallParser, a as defaultBarePythonicToolCallParser, b as hermesToolCallParser, c as defaultGptOssToolCallParser, d as defaultLooseKeyedToolCallParser, f as defaultMistralToolCallParser, g as defaultQwen3CoderToolCallParser, h as defaultPythonicToolCallParser, i as createAutoToolCallParser, l as defaultHermesToolCallParser, m as defaultPhiToolCallParser, n as DEFAULT_TOOL_CALL_PARSER_ORDER, o as defaultCreateAutoToolCallParser, p as defaultNoneToolCallParser, r as barePythonicToolCallParser, s as defaultGemmaToolCallParser, t as BUNDLED_TOOL_CALL_PARSERS, u as defaultLlama3JsonToolCallParser, v as gemmaToolCallParser, w as noneToolCallParser, x as llama3JsonToolCallParser, y as gptOssToolCallParser } from "../../../tool_parsers-BFiMJBy6.mjs";
|
|
7
7
|
import { A as renderThirdPartyPrivateRetrievables, C as renderArtifactHandleBody, D as renderRetrievableSafetyDirective, E as renderMemories, L as sanitizeFilenameForDescription, M as renderThought, N as renderTrustedContent, O as renderRetrievables, P as renderUntrustedContent, R as sanitizeMimeType, S as neutraliseDeveloperRulesTag, T as renderFirstPartyRetrievables, a as defaultRenderFirstPartyRetrievables, b as looksLikeSpooledArtifact, c as defaultRenderRetrievables, d as defaultRenderThirdPartyPublicRetrievables, f as defaultRenderThought, g as descriptionToChatCompletionsJsonSchema, i as defaultRenderChatCompletionsSystemPrompt, j as renderThirdPartyPublicRetrievables, k as renderStandingInstructions, l as defaultRenderStandingInstructions, m as defaultRenderUntrustedContent, n as defaultFilterThoughts, o as defaultRenderMemories, p as defaultRenderTrustedContent, r as defaultRenderArtifactHandleBody, s as defaultRenderRetrievableSafetyDirective, t as defaultDescriptionToChatCompletionsJsonSchema, u as defaultRenderThirdPartyPrivateRetrievables, v as filterThoughts, w as renderChatCompletionsSystemPrompt } from "../../../helpers-N6Q1uO9p.mjs";
|
|
8
8
|
import { extractReasoningFields } from "../openai_chat_completions/helpers.mjs";
|
|
9
9
|
import { n as emitLifecycle, t as defaultEmitLifecycle } from "../../../lifecycle-C4kwYJ-N.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../../chunk-Cek0wNdY.js");
|
|
3
|
-
const require_tokenizable = require("../../../tokenizable-
|
|
3
|
+
const require_tokenizable = require("../../../tokenizable-dnf9b2Ix.js");
|
|
4
4
|
require("../../../guards.cjs");
|
|
5
5
|
//#region src/batteries/llm/transformers_js/model_source.ts
|
|
6
6
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../../chunk-Cek0wNdY.js");
|
|
3
|
-
const require_tokenizable = require("../../../tokenizable-
|
|
4
|
-
const require_common = require("../../../common-
|
|
3
|
+
const require_tokenizable = require("../../../tokenizable-dnf9b2Ix.js");
|
|
4
|
+
const require_common = require("../../../common-Bc8v-IUv.js");
|
|
5
5
|
require("../../../guards.cjs");
|
|
6
6
|
const require_batteries_llm_transformers_js_exceptions = require("./exceptions.cjs");
|
|
7
7
|
let _nhtio_validation = require("@nhtio/validation");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as isError, n as TokenEncoding } from "../../../tokenizable-
|
|
2
|
-
import { o as byteStoreSchema } from "../../../common-
|
|
1
|
+
import { B as isError, n as TokenEncoding } from "../../../tokenizable-BwnLtCzr.mjs";
|
|
2
|
+
import { o as byteStoreSchema } from "../../../common-DKjX6RTc.mjs";
|
|
3
3
|
import "../../../guards.mjs";
|
|
4
4
|
import { E_INVALID_TRANSFORMERS_JS_OPTIONS } from "./exceptions.mjs";
|
|
5
5
|
import { validator } from "@nhtio/validation";
|