@nhtio/adk 1.20260604.0 → 1.20260607.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/CHANGELOG.md +261 -0
- package/adk-mcp.mjs +1 -1
- package/batteries/embeddings/openai/adapter.cjs +1 -1
- package/batteries/embeddings/openai/adapter.mjs +1 -1
- package/batteries/embeddings/webllm/adapter.cjs +1 -1
- package/batteries/embeddings/webllm/adapter.mjs +1 -1
- package/batteries/index.d.ts +1 -0
- package/batteries/llm/openai_chat_completions/adapter.cjs +6 -6
- package/batteries/llm/openai_chat_completions/adapter.cjs.map +1 -1
- package/batteries/llm/openai_chat_completions/adapter.mjs +6 -6
- package/batteries/llm/openai_chat_completions/adapter.mjs.map +1 -1
- 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.cjs.map +1 -1
- package/batteries/llm/openai_chat_completions/validation.mjs +2 -2
- package/batteries/llm/openai_chat_completions/validation.mjs.map +1 -1
- package/batteries/llm/webllm_chat_completions/adapter.cjs +6 -6
- package/batteries/llm/webllm_chat_completions/adapter.cjs.map +1 -1
- package/batteries/llm/webllm_chat_completions/adapter.mjs +6 -6
- package/batteries/llm/webllm_chat_completions/adapter.mjs.map +1 -1
- package/batteries/llm/webllm_chat_completions/validation.cjs +2 -2
- package/batteries/llm/webllm_chat_completions/validation.cjs.map +1 -1
- package/batteries/llm/webllm_chat_completions/validation.mjs +2 -2
- package/batteries/llm/webllm_chat_completions/validation.mjs.map +1 -1
- package/batteries/storage/flydrive.cjs +1 -1
- package/batteries/storage/flydrive.mjs +2 -2
- 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/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/index.d.ts +16 -5
- package/batteries/tools/math.cjs +340 -22
- package/batteries/tools/math.cjs.map +1 -1
- package/batteries/tools/math.mjs +338 -21
- package/batteries/tools/math.mjs.map +1 -1
- 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/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/vector/arangodb/index.d.ts +38 -0
- package/batteries/vector/arangodb.cjs +257 -0
- package/batteries/vector/arangodb.cjs.map +1 -0
- package/batteries/vector/arangodb.mjs +255 -0
- package/batteries/vector/arangodb.mjs.map +1 -0
- package/batteries/vector/builder.cjs +297 -0
- package/batteries/vector/builder.cjs.map +1 -0
- package/batteries/vector/builder.d.ts +87 -0
- package/batteries/vector/builder.mjs +294 -0
- package/batteries/vector/builder.mjs.map +1 -0
- package/batteries/vector/chroma/index.d.ts +32 -0
- package/batteries/vector/chroma.cjs +305 -0
- package/batteries/vector/chroma.cjs.map +1 -0
- package/batteries/vector/chroma.mjs +302 -0
- package/batteries/vector/chroma.mjs.map +1 -0
- package/batteries/vector/clickhouse/index.d.ts +39 -0
- package/batteries/vector/clickhouse.cjs +246 -0
- package/batteries/vector/clickhouse.cjs.map +1 -0
- package/batteries/vector/clickhouse.mjs +244 -0
- package/batteries/vector/clickhouse.mjs.map +1 -0
- package/batteries/vector/cloudflare/index.d.ts +43 -0
- package/batteries/vector/cloudflare.cjs +397 -0
- package/batteries/vector/cloudflare.cjs.map +1 -0
- package/batteries/vector/cloudflare.mjs +395 -0
- package/batteries/vector/cloudflare.mjs.map +1 -0
- package/batteries/vector/conformance/index.d.ts +15 -0
- package/batteries/vector/conformance.cjs +209 -0
- package/batteries/vector/conformance.cjs.map +1 -0
- package/batteries/vector/conformance.mjs +205 -0
- package/batteries/vector/conformance.mjs.map +1 -0
- package/batteries/vector/contract.cjs +42 -0
- package/batteries/vector/contract.cjs.map +1 -0
- package/batteries/vector/contract.d.ts +39 -0
- package/batteries/vector/contract.mjs +40 -0
- package/batteries/vector/contract.mjs.map +1 -0
- package/batteries/vector/couchbase/index.d.ts +49 -0
- package/batteries/vector/couchbase.cjs +401 -0
- package/batteries/vector/couchbase.cjs.map +1 -0
- package/batteries/vector/couchbase.mjs +399 -0
- package/batteries/vector/couchbase.mjs.map +1 -0
- package/batteries/vector/duckdb/index.d.ts +33 -0
- package/batteries/vector/duckdb.cjs +218 -0
- package/batteries/vector/duckdb.cjs.map +1 -0
- package/batteries/vector/duckdb.mjs +216 -0
- package/batteries/vector/duckdb.mjs.map +1 -0
- package/batteries/vector/elasticsearch/index.d.ts +43 -0
- package/batteries/vector/elasticsearch.cjs +306 -0
- package/batteries/vector/elasticsearch.cjs.map +1 -0
- package/batteries/vector/elasticsearch.mjs +303 -0
- package/batteries/vector/elasticsearch.mjs.map +1 -0
- package/batteries/vector/exceptions.cjs +126 -0
- package/batteries/vector/exceptions.cjs.map +1 -0
- package/batteries/vector/exceptions.d.ts +142 -0
- package/batteries/vector/exceptions.mjs +107 -0
- package/batteries/vector/exceptions.mjs.map +1 -0
- package/batteries/vector/factory.cjs +28 -0
- package/batteries/vector/factory.cjs.map +1 -0
- package/batteries/vector/factory.d.ts +38 -0
- package/batteries/vector/factory.mjs +25 -0
- package/batteries/vector/factory.mjs.map +1 -0
- package/batteries/vector/filters.cjs +107 -0
- package/batteries/vector/filters.cjs.map +1 -0
- package/batteries/vector/filters.d.ts +34 -0
- package/batteries/vector/filters.mjs +99 -0
- package/batteries/vector/filters.mjs.map +1 -0
- package/batteries/vector/helpers.cjs +23 -0
- package/batteries/vector/helpers.cjs.map +1 -0
- package/batteries/vector/helpers.d.ts +12 -0
- package/batteries/vector/helpers.mjs +17 -0
- package/batteries/vector/helpers.mjs.map +1 -0
- package/batteries/vector/hnswlib/index.d.ts +35 -0
- package/batteries/vector/hnswlib.cjs +237 -0
- package/batteries/vector/hnswlib.cjs.map +1 -0
- package/batteries/vector/hnswlib.mjs +235 -0
- package/batteries/vector/hnswlib.mjs.map +1 -0
- package/batteries/vector/in_memory/index.d.ts +23 -0
- package/batteries/vector/in_memory.cjs +178 -0
- package/batteries/vector/in_memory.cjs.map +1 -0
- package/batteries/vector/in_memory.mjs +176 -0
- package/batteries/vector/in_memory.mjs.map +1 -0
- package/batteries/vector/index.d.ts +18 -0
- package/batteries/vector/lancedb/index.d.ts +34 -0
- package/batteries/vector/lancedb.cjs +224 -0
- package/batteries/vector/lancedb.cjs.map +1 -0
- package/batteries/vector/lancedb.mjs +222 -0
- package/batteries/vector/lancedb.mjs.map +1 -0
- package/batteries/vector/mariadb/index.d.ts +39 -0
- package/batteries/vector/mariadb.cjs +228 -0
- package/batteries/vector/mariadb.cjs.map +1 -0
- package/batteries/vector/mariadb.mjs +226 -0
- package/batteries/vector/mariadb.mjs.map +1 -0
- package/batteries/vector/meilisearch/index.d.ts +36 -0
- package/batteries/vector/meilisearch.cjs +242 -0
- package/batteries/vector/meilisearch.cjs.map +1 -0
- package/batteries/vector/meilisearch.mjs +240 -0
- package/batteries/vector/meilisearch.mjs.map +1 -0
- package/batteries/vector/migrate.cjs +54 -0
- package/batteries/vector/migrate.cjs.map +1 -0
- package/batteries/vector/migrate.d.ts +30 -0
- package/batteries/vector/migrate.mjs +52 -0
- package/batteries/vector/migrate.mjs.map +1 -0
- package/batteries/vector/milvus/index.d.ts +35 -0
- package/batteries/vector/milvus.cjs +357 -0
- package/batteries/vector/milvus.cjs.map +1 -0
- package/batteries/vector/milvus.mjs +354 -0
- package/batteries/vector/milvus.mjs.map +1 -0
- package/batteries/vector/mongodb/index.d.ts +46 -0
- package/batteries/vector/mongodb.cjs +270 -0
- package/batteries/vector/mongodb.cjs.map +1 -0
- package/batteries/vector/mongodb.mjs +268 -0
- package/batteries/vector/mongodb.mjs.map +1 -0
- package/batteries/vector/neo4j/index.d.ts +38 -0
- package/batteries/vector/neo4j.cjs +231 -0
- package/batteries/vector/neo4j.cjs.map +1 -0
- package/batteries/vector/neo4j.mjs +229 -0
- package/batteries/vector/neo4j.mjs.map +1 -0
- package/batteries/vector/opensearch/index.d.ts +46 -0
- package/batteries/vector/opensearch.cjs +316 -0
- package/batteries/vector/opensearch.cjs.map +1 -0
- package/batteries/vector/opensearch.mjs +313 -0
- package/batteries/vector/opensearch.mjs.map +1 -0
- package/batteries/vector/oracle23ai/index.d.ts +45 -0
- package/batteries/vector/oracle23ai.cjs +340 -0
- package/batteries/vector/oracle23ai.cjs.map +1 -0
- package/batteries/vector/oracle23ai.mjs +338 -0
- package/batteries/vector/oracle23ai.mjs.map +1 -0
- package/batteries/vector/orama/index.d.ts +23 -0
- package/batteries/vector/orama.cjs +272 -0
- package/batteries/vector/orama.cjs.map +1 -0
- package/batteries/vector/orama.mjs +270 -0
- package/batteries/vector/orama.mjs.map +1 -0
- package/batteries/vector/pgvector/index.d.ts +43 -0
- package/batteries/vector/pgvector.cjs +411 -0
- package/batteries/vector/pgvector.cjs.map +1 -0
- package/batteries/vector/pgvector.mjs +408 -0
- package/batteries/vector/pgvector.mjs.map +1 -0
- package/batteries/vector/pinecone/index.d.ts +38 -0
- package/batteries/vector/pinecone.cjs +415 -0
- package/batteries/vector/pinecone.cjs.map +1 -0
- package/batteries/vector/pinecone.mjs +412 -0
- package/batteries/vector/pinecone.mjs.map +1 -0
- package/batteries/vector/plan.cjs +2 -0
- package/batteries/vector/plan.d.ts +65 -0
- package/batteries/vector/plan.mjs +0 -0
- package/batteries/vector/qdrant/index.d.ts +34 -0
- package/batteries/vector/qdrant.cjs +286 -0
- package/batteries/vector/qdrant.cjs.map +1 -0
- package/batteries/vector/qdrant.mjs +284 -0
- package/batteries/vector/qdrant.mjs.map +1 -0
- package/batteries/vector/redis/index.d.ts +44 -0
- package/batteries/vector/redis.cjs +391 -0
- package/batteries/vector/redis.cjs.map +1 -0
- package/batteries/vector/redis.mjs +388 -0
- package/batteries/vector/redis.mjs.map +1 -0
- package/batteries/vector/retrievable.cjs +69 -0
- package/batteries/vector/retrievable.cjs.map +1 -0
- package/batteries/vector/retrievable.mjs +67 -0
- package/batteries/vector/retrievable.mjs.map +1 -0
- package/batteries/vector/retrievable_glue.d.ts +24 -0
- package/batteries/vector/s3vectors/index.d.ts +52 -0
- package/batteries/vector/s3vectors.cjs +438 -0
- package/batteries/vector/s3vectors.cjs.map +1 -0
- package/batteries/vector/s3vectors.mjs +436 -0
- package/batteries/vector/s3vectors.mjs.map +1 -0
- package/batteries/vector/schema.cjs +96 -0
- package/batteries/vector/schema.cjs.map +1 -0
- package/batteries/vector/schema.d.ts +40 -0
- package/batteries/vector/schema.mjs +93 -0
- package/batteries/vector/schema.mjs.map +1 -0
- package/batteries/vector/solr/index.d.ts +36 -0
- package/batteries/vector/solr.cjs +230 -0
- package/batteries/vector/solr.cjs.map +1 -0
- package/batteries/vector/solr.mjs +228 -0
- package/batteries/vector/solr.mjs.map +1 -0
- package/batteries/vector/sqlite_vec/index.d.ts +30 -0
- package/batteries/vector/sqlite_vec.cjs +318 -0
- package/batteries/vector/sqlite_vec.cjs.map +1 -0
- package/batteries/vector/sqlite_vec.mjs +316 -0
- package/batteries/vector/sqlite_vec.mjs.map +1 -0
- package/batteries/vector/surrealdb/index.d.ts +37 -0
- package/batteries/vector/surrealdb.cjs +230 -0
- package/batteries/vector/surrealdb.cjs.map +1 -0
- package/batteries/vector/surrealdb.mjs +228 -0
- package/batteries/vector/surrealdb.mjs.map +1 -0
- package/batteries/vector/types.cjs +2 -0
- package/batteries/vector/types.d.ts +100 -0
- package/batteries/vector/types.mjs +0 -0
- package/batteries/vector/typesense/index.d.ts +38 -0
- package/batteries/vector/typesense.cjs +272 -0
- package/batteries/vector/typesense.cjs.map +1 -0
- package/batteries/vector/typesense.mjs +270 -0
- package/batteries/vector/typesense.mjs.map +1 -0
- package/batteries/vector/validation.cjs +90 -0
- package/batteries/vector/validation.cjs.map +1 -0
- package/batteries/vector/validation.d.ts +18 -0
- package/batteries/vector/validation.mjs +83 -0
- package/batteries/vector/validation.mjs.map +1 -0
- package/batteries/vector/vector_store_constructor.cjs +56 -0
- package/batteries/vector/vector_store_constructor.cjs.map +1 -0
- package/batteries/vector/vector_store_constructor.d.ts +30 -0
- package/batteries/vector/vector_store_constructor.mjs +53 -0
- package/batteries/vector/vector_store_constructor.mjs.map +1 -0
- package/batteries/vector/vespa/index.d.ts +39 -0
- package/batteries/vector/vespa.cjs +423 -0
- package/batteries/vector/vespa.cjs.map +1 -0
- package/batteries/vector/vespa.mjs +421 -0
- package/batteries/vector/vespa.mjs.map +1 -0
- package/batteries/vector/weaviate/index.d.ts +57 -0
- package/batteries/vector/weaviate.cjs +325 -0
- package/batteries/vector/weaviate.cjs.map +1 -0
- package/batteries/vector/weaviate.mjs +322 -0
- package/batteries/vector/weaviate.mjs.map +1 -0
- package/batteries/vector.cjs +63 -0
- package/batteries/vector.mjs +14 -0
- package/batteries.cjs +62 -0
- package/batteries.mjs +15 -1
- package/{chunk-kRvK8_k2.mjs → chunk-Bpcn9VDT.mjs} +5 -1
- package/{common-lMrnzoyn.mjs → common-BT0nfCi9.mjs} +8 -8
- package/{common-lMrnzoyn.mjs.map → common-BT0nfCi9.mjs.map} +1 -1
- package/{common-D_e5zYsG.js → common-Cj8TaQ9U.js} +8 -8
- package/{common-D_e5zYsG.js.map → common-Cj8TaQ9U.js.map} +1 -1
- package/common.cjs +7 -7
- package/common.mjs +7 -7
- package/{dispatch_runner-CpuyATj1.js → dispatch_runner-BHBNupqp.js} +2 -2
- package/dispatch_runner-BHBNupqp.js.map +1 -0
- package/{dispatch_runner-CDF3X0nv.mjs → dispatch_runner-DPcS7Y_M.mjs} +2 -2
- package/dispatch_runner-DPcS7Y_M.mjs.map +1 -0
- package/dispatch_runner.cjs +1 -1
- package/dispatch_runner.mjs +1 -1
- package/forge.cjs +4 -4
- package/forge.mjs +4 -4
- package/guards.cjs +8 -8
- package/guards.mjs +8 -8
- package/index.cjs +12 -12
- package/index.mjs +12 -12
- package/lib/classes/tool_registry.d.ts +70 -4
- package/mcp/adk-docs-corpus.json +1 -1
- package/package.json +424 -88
- package/skills/adk-assembly/SKILL.md +2 -2
- package/{spooled_artifact-B8gIIn9h.js → spooled_artifact-BTq6Nzfy.js} +4 -4
- package/spooled_artifact-BTq6Nzfy.js.map +1 -0
- package/{spooled_artifact-CWoKUDEm.mjs → spooled_artifact-CHoZgWwI.mjs} +4 -4
- package/spooled_artifact-CHoZgWwI.mjs.map +1 -0
- package/spooled_artifact.cjs +2 -2
- package/spooled_artifact.mjs +2 -2
- package/{spooled_markdown_artifact-DQX0RCdI.js → spooled_markdown_artifact-CALSDxIx.js} +3 -3
- package/{spooled_markdown_artifact-DQX0RCdI.js.map → spooled_markdown_artifact-CALSDxIx.js.map} +1 -1
- package/{spooled_markdown_artifact-CNle4jXN.mjs → spooled_markdown_artifact-Ci5UL7l4.mjs} +3 -3
- package/{spooled_markdown_artifact-CNle4jXN.mjs.map → spooled_markdown_artifact-Ci5UL7l4.mjs.map} +1 -1
- package/src/types/evaluatex.d.ts +31 -0
- package/{thought-BD6AkkOr.js → thought-BbwhJ1wb.js} +4 -4
- package/thought-BbwhJ1wb.js.map +1 -0
- package/{thought-B_P8LiB6.mjs → thought-D34QQZZ9.mjs} +4 -4
- package/thought-D34QQZZ9.mjs.map +1 -0
- package/{tool-CRZSUcdP.mjs → tool-CMhaDRNd.mjs} +3 -3
- package/tool-CMhaDRNd.mjs.map +1 -0
- package/{tool-CX9vNHAw.js → tool-CVyZkFC7.js} +3 -3
- package/tool-CVyZkFC7.js.map +1 -0
- package/{tool_call-BUeMuCc6.mjs → tool_call-CV5qVNlb.mjs} +3 -3
- package/{tool_call-BUeMuCc6.mjs.map → tool_call-CV5qVNlb.mjs.map} +1 -1
- package/{tool_call--7ti-frB.js → tool_call-Db68hB7y.js} +3 -3
- package/{tool_call--7ti-frB.js.map → tool_call-Db68hB7y.js.map} +1 -1
- package/{tool_registry-BGHg6KTq.mjs → tool_registry-D1pSSlsd.mjs} +109 -22
- package/tool_registry-D1pSSlsd.mjs.map +1 -0
- package/{tool_registry-CtCQ4Xoz.js → tool_registry-DYUYqXvo.js} +109 -22
- package/tool_registry-DYUYqXvo.js.map +1 -0
- package/{turn_runner-BJTtAORU.js → turn_runner-DqWHNP80.js} +5 -5
- package/turn_runner-DqWHNP80.js.map +1 -0
- package/{turn_runner-C02LZHjt.mjs → turn_runner-fg1Wc3dK.mjs} +5 -5
- package/turn_runner-fg1Wc3dK.mjs.map +1 -0
- package/turn_runner.cjs +1 -1
- package/turn_runner.mjs +1 -1
- package/dispatch_runner-CDF3X0nv.mjs.map +0 -1
- package/dispatch_runner-CpuyATj1.js.map +0 -1
- package/spooled_artifact-B8gIIn9h.js.map +0 -1
- package/spooled_artifact-CWoKUDEm.mjs.map +0 -1
- package/thought-BD6AkkOr.js.map +0 -1
- package/thought-B_P8LiB6.mjs.map +0 -1
- package/tool-CRZSUcdP.mjs.map +0 -1
- package/tool-CX9vNHAw.js.map +0 -1
- package/tool_registry-BGHg6KTq.mjs.map +0 -1
- package/tool_registry-CtCQ4Xoz.js.map +0 -1
- package/turn_runner-BJTtAORU.js.map +0 -1
- package/turn_runner-C02LZHjt.mjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,267 @@ All notable changes to `@nhtio/adk` are documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## 2026-06-07
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- **Vector conformance harness is now public (`@nhtio/adk/batteries/vector/conformance`).** The
|
|
13
|
+
`runVectorStoreConformance` suite (plus `stubEncoder` / `paddedStubEncoder`) that the 29 shipped
|
|
14
|
+
adapters test against is now an exported, deep-import-only subpath, so anyone writing their own
|
|
15
|
+
adapter can prove it against the exact same contract. The subpath imports `vitest`, declared as an
|
|
16
|
+
**optional peer** (`peerDependenciesMeta`) — install it to run the suite; it is never pulled in by
|
|
17
|
+
the `@nhtio/adk/batteries/vector` barrel, so a `createVectorStore` consumer takes on no test-runner
|
|
18
|
+
dependency. See `docs/batteries/vector/custom-adapter.md`.
|
|
19
|
+
|
|
20
|
+
- **Query-builder grouping callbacks — mix AND and OR.** The `VectorQueryBuilder` filter methods
|
|
21
|
+
(`.where` / `.andWhere` / `.orWhere` / `.whereNot` / new `.orWhereNot`) now accept a callback that
|
|
22
|
+
receives a filter-only `FilterBuilder`, so you can express `A AND (B OR C)` and negated groups
|
|
23
|
+
(`{ not: <group> }`) at any nesting depth — previously the builder could only emit flat DNF. The
|
|
24
|
+
scalar forms are unchanged (`.whereNot('f', v)` is still `→ ne`). Groups compile to the neutral
|
|
25
|
+
`FilterGroup` tree; the 6 native filter translators recurse over it and the over-fetch adapters
|
|
26
|
+
JS-evaluate it. **Chroma** rejects a `not` group with `E_VECTOR_STORE_UNSUPPORTED_FILTER_OPERATOR`
|
|
27
|
+
(consistent with its existing `exists`/`contains` limits); nested AND/OR works on all 29. See
|
|
28
|
+
`docs/batteries/vector/query-builder.md`.
|
|
29
|
+
|
|
30
|
+
### Fixed
|
|
31
|
+
|
|
32
|
+
- **`.orWhere()` no longer silently drops its branch.** `where(A).where(B).orWhere(C)` previously
|
|
33
|
+
compiled to `(A AND B) OR (A AND B AND C)`, which collapses to just `(A AND B)` — the `.orWhere(C)`
|
|
34
|
+
was a no-op. It now correctly yields `(A AND B) OR C`, matching the documented knex semantics.
|
|
35
|
+
|
|
36
|
+
- **Chroma multi-row filter-scan.** A filter-scan (no `.near*()`) that matched more than one record
|
|
37
|
+
returned only the first row: the adapter unwrapped `query()`'s nested result arrays on the `get()`
|
|
38
|
+
path too. Fixed to unwrap only on the similarity path.
|
|
39
|
+
|
|
40
|
+
## 2026-06-06
|
|
41
|
+
|
|
42
|
+
### Added
|
|
43
|
+
|
|
44
|
+
- **Cloudflare Vectorize adapter (`@nhtio/adk/batteries/vector/cloudflare`).** Managed, serverless
|
|
45
|
+
vector store over the Vectorize **V2 REST API** — pure `fetch`, no driver/peer dependency. A
|
|
46
|
+
logical collection maps to a Vectorize index (`indexNamePrefix` isolates per use). Upserts use
|
|
47
|
+
the NDJSON multipart endpoint (field `vectors`); query/get/delete use JSON. Dimensions must be
|
|
48
|
+
**32–1536**. KNN `score` is recomputed locally from the returned values to the `[0,1]` contract;
|
|
49
|
+
the document rides in a reserved `__document` metadata key. Native metadata filtering needs
|
|
50
|
+
pre-created metadata indexes and lacks `$and`/`$or`, so the adapter **over-fetches (topK 50, the
|
|
51
|
+
service cap when returning values/metadata) and JS-filters** via the neutral `evaluateFilter`
|
|
52
|
+
for full cross-adapter parity. Cloudflare Vectorize is **aggressively eventually-consistent** —
|
|
53
|
+
a fresh index takes ~8–34s before its first write is queryable and the query index flaps for
|
|
54
|
+
seconds after writes/deletes; the adapter settle-polls the query index for stability, and the
|
|
55
|
+
integration spec additionally uses **vitest `retry`** to ride out the flap deterministically
|
|
56
|
+
(slow, ~8 min, but green). Managed, so no docker/CI matrix entry (like Pinecone / S3 Vectors).
|
|
57
|
+
Verified 7/7 conformance against live Cloudflare Vectorize. This also adds an optional
|
|
58
|
+
`retry`/`timeout` parameter to the shared `runVectorStoreConformance` harness (defaults preserve
|
|
59
|
+
existing behavior).
|
|
60
|
+
|
|
61
|
+
- **Oracle 23ai AI Vector Search adapter (`@nhtio/adk/batteries/vector/oracle23ai`).** Each
|
|
62
|
+
collection is a table with a native `VECTOR(dims, FLOAT32)` column; vectors are bound/read as
|
|
63
|
+
`Float32Array` via the `oracledb` driver in **thin mode** (no Instant Client). KNN uses
|
|
64
|
+
`VECTOR_DISTANCE(vec, :q, COSINE|EUCLIDEAN|DOT) ORDER BY … FETCH APPROX FIRST k ROWS ONLY`; the
|
|
65
|
+
raw distance only orders candidates — the `[0,1]` score is recomputed locally from the stored
|
|
66
|
+
vector. Metadata is a JSON-string CLOB (read via `fetchInfo` STRING) filtered with the neutral
|
|
67
|
+
`evaluateFilter`; identifiers are double-quoted and `tablePrefix` isolates collections. Strongly
|
|
68
|
+
consistent (commit per write). NB: VECTOR columns are rejected in the SYSTEM tablespace — the
|
|
69
|
+
connecting user must default to a normal tablespace (e.g. USERS) and have CREATE TABLE; the
|
|
70
|
+
docker `oracle` profile provisions such a user via `APP_USER`. Verified 7/7 conformance ×3
|
|
71
|
+
against a live Oracle Free 23ai. Closes the Oracle 23ai gap in the Open WebUI minimum-support set.
|
|
72
|
+
|
|
73
|
+
- **AWS S3 Vectors adapter (`@nhtio/adk/batteries/vector/s3vectors`).** Managed, serverless vector
|
|
74
|
+
store (no container, like Pinecone). The vector bucket is provisioned out-of-band; a logical
|
|
75
|
+
collection maps to an **index** inside the bucket (`indexPrefix` isolates per use — index names
|
|
76
|
+
must be 3–63 chars). KNN via `QueryVectors` (the returned `distance` is converted to the
|
|
77
|
+
battery's normalized `[0,1]` score — cosine `sim = 1 - distance`); `PutVectors`/`GetVectors`/
|
|
78
|
+
`DeleteVectors` for upsert/fetch/delete by key; metadata is native JSON with the document under a
|
|
79
|
+
reserved `__document` key. `topK` is capped at the service max of **100**, so filtered/scan reads
|
|
80
|
+
over-fetch to that ceiling and JS-filter via the neutral `evaluateFilter` for cross-adapter
|
|
81
|
+
parity; eventual-consistency settle-polling makes read-after-write deterministic. Metrics:
|
|
82
|
+
`cosine`/`euclidean` (S3 Vectors has no dot-product — `dot` throws at createCollection). Driver:
|
|
83
|
+
`@aws-sdk/client-s3vectors` (lazy; credentials from the ambient AWS chain). Verified 7/7
|
|
84
|
+
conformance ×3 against a live bucket in eu-west-1. Closes the S3 Vector Bucket gap in the Open
|
|
85
|
+
WebUI minimum-support set.
|
|
86
|
+
|
|
87
|
+
- **Elasticsearch 8 vector adapter (`@nhtio/adk/batteries/vector/elasticsearch`).** A dedicated
|
|
88
|
+
adapter for the Elasticsearch 8 dialect — each collection is an index with a `dense_vector`
|
|
89
|
+
field, and KNN uses ES8's **top-level `knn` search clause** with an optional `filter`. This is
|
|
90
|
+
distinct from the existing `opensearch` adapter, which speaks OpenSearch's `knn_vector` /
|
|
91
|
+
`query.knn` dialect (an ES client cannot drive it). The neutral filter tree compiles to ES
|
|
92
|
+
bool/term/range over `metadata.*` (`.keyword` for strings) via the exported
|
|
93
|
+
`translateElasticsearchFilter`; writes use `bulk({ refresh: true })` for strong consistency;
|
|
94
|
+
cosine `_score` (already `(sim+1)/2 ∈ [0,1]`) is normalized defensively. Driver:
|
|
95
|
+
`@elastic/elasticsearch` (lazy; use the **v8** client against an 8.x server — a v9 client sends a
|
|
96
|
+
compatibility header an 8.x server rejects). BYO client supported via
|
|
97
|
+
`connection.client`. Verified 7/7 conformance ×3 against a live Elasticsearch 8.18.
|
|
98
|
+
|
|
99
|
+
- **Vespa vector adapter (`@nhtio/adk/batteries/vector/vespa`).** Vespa has no runtime
|
|
100
|
+
collection creation — a collection is a *document type* declared in a deployed **application
|
|
101
|
+
package**. The adapter holds the package state in memory and rebuilds + redeploys it (via a
|
|
102
|
+
dependency-free, store-only ZIP writer — no zip lib needed) to the config server's
|
|
103
|
+
`prepareandactivate` endpoint on each `createCollection`/`dropCollection`, generating
|
|
104
|
+
`services.xml`, `hosts.xml`, a `validation-overrides.xml` (≤30-day window, for schema-removal /
|
|
105
|
+
type-change), and a `schemas/<collection>.sd` per collection with an HNSW tensor field. KNN uses
|
|
106
|
+
a YQL `nearestNeighbor` query with a `closeness` rank profile; filter-scan/delete use YQL +
|
|
107
|
+
document-API; scores are re-computed locally from the stored vector via `normalizeScore` for the
|
|
108
|
+
[0,1] contract guarantee (metric maps cosine→angular, dot→dotproduct, euclidean→euclidean). No
|
|
109
|
+
npm driver — pure HTTP/`fetch`. Metadata is a JSON string field filtered with the neutral
|
|
110
|
+
evaluator. Verified 7/7 conformance ×3 against a live Vespa.
|
|
111
|
+
|
|
112
|
+
- **Couchbase vector adapter (`@nhtio/adk/batteries/vector/couchbase`).** Enterprise Edition only —
|
|
113
|
+
vector search is an EE feature; Community throws "vector typed fields not supported". A logical
|
|
114
|
+
collection maps to a Couchbase scope.collection. KV operations (upsert/get/remove) are strongly
|
|
115
|
+
consistent and serve point reads; the scoped FTS vector index is async, so it is settle-polled
|
|
116
|
+
after writes and used **only** to retrieve the KNN candidate id set — scores are then
|
|
117
|
+
re-computed locally from the stored vector via `normalizeScore`, guaranteeing the [0,1] contract
|
|
118
|
+
regardless of the backend metric (cosine/dot_product/l2_norm). Filter-scan, enumerate and
|
|
119
|
+
delete-by-filter use N1QL with `RequestPlus` for strong reads. `collectionPrefix` isolates
|
|
120
|
+
collections (avoids per-test FTS-index rebuild churn). Metadata is a JSON string field filtered
|
|
121
|
+
with the neutral evaluator. Driver: `couchbase`. Cluster/bucket are provisioned non-interactively
|
|
122
|
+
(REST `clusterInit` + bucket create — see the docker-compose `couchbase` profile's init sidecar);
|
|
123
|
+
the adapter manages scopes/collections + the FTS vector index. Omitted from the CI matrix (its
|
|
124
|
+
two-step init can't be expressed as a single service alias); verified 7/7 conformance ×3 against
|
|
125
|
+
a live Couchbase EE 8.0.
|
|
126
|
+
|
|
127
|
+
## 2026-06-05
|
|
128
|
+
|
|
129
|
+
### Added
|
|
130
|
+
|
|
131
|
+
- **MongoDB Atlas Vector Search adapter (`@nhtio/adk/batteries/vector/mongodb`).** Each collection
|
|
132
|
+
is a MongoDB collection with an Atlas `vectorSearch` index on `vec`; KNN uses the `$vectorSearch`
|
|
133
|
+
aggregation stage (cosine `vectorSearchScore`, [0,1]). Because the Atlas vector *index* updates
|
|
134
|
+
asynchronously (~1s) while the document store is strongly consistent, filter-scans / fetch-by-id
|
|
135
|
+
/ delete read-back use a plain `find()` (immediate) and only KNN goes through `$vectorSearch` —
|
|
136
|
+
with a post-write settle polling until the inserted ids are index-visible. `collectionPrefix`
|
|
137
|
+
isolates collections (avoids per-test index rebuild churn). Metadata is a JSON string field
|
|
138
|
+
filtered with the neutral evaluator. Driver: `mongodb`; works against `mongodb/mongodb-atlas-local`
|
|
139
|
+
or a real Atlas cluster. Verified 7/7 conformance against a live atlas-local.
|
|
140
|
+
|
|
141
|
+
- **Apache Solr vector adapter (`@nhtio/adk/batteries/vector/solr`).** Dense-vector / kNN query
|
|
142
|
+
parser (Solr 9+): a collection maps to a Solr core, the adapter ensures a `DenseVectorField`
|
|
143
|
+
(`vec`) + `document`/`metadata` fields in the core schema, and searches with
|
|
144
|
+
`{!knn f=vec topK=N}[…]` (cosine score already [0,1]). Metadata is a JSON string field filtered
|
|
145
|
+
with the neutral filter tree's JS reference evaluator. No driver dependency — plain HTTP/JSON via
|
|
146
|
+
`fetch`. The target core must already exist (`solr-precreate <core>`); the adapter manages its
|
|
147
|
+
schema, not the core. Verified 7/7 conformance against a live Solr 9.
|
|
148
|
+
|
|
149
|
+
- **HNSWLib vector adapter (`@nhtio/adk/batteries/vector/hnswlib`).** Embedded, in-process (no
|
|
150
|
+
server). Wraps the `hnswlib-node` native ANN index for KNN, paired with a JS sidecar that owns
|
|
151
|
+
id↔label mapping and the document/metadata records (hnswlib stores vectors only); metadata
|
|
152
|
+
filtering, filter-scans, projection, and delete are served from the sidecar via the neutral
|
|
153
|
+
filter tree's JS reference evaluator. Native build must be approved (pnpm-workspace.yaml
|
|
154
|
+
`allowBuilds`). Verified 7/7 conformance in-process.
|
|
155
|
+
|
|
156
|
+
- **ArangoDB vector adapter (`@nhtio/adk/batteries/vector/arangodb`).** Each collection is an
|
|
157
|
+
ArangoDB document collection keyed by `_key`; KNN uses the exact AQL `COSINE_SIMILARITY` /
|
|
158
|
+
`L2_DISTANCE` functions (no index required, always correct), with the experimental IVF
|
|
159
|
+
`vector` index created lazily on first upsert for production-scale ANN. Metadata in a JSON
|
|
160
|
+
string attribute filtered with the neutral filter tree's JS reference evaluator. Driver:
|
|
161
|
+
`arangojs`. Verified 7/7 conformance against a live ArangoDB 3.12 backend.
|
|
162
|
+
|
|
163
|
+
- **Neo4j vector adapter (`@nhtio/adk/batteries/vector/neo4j`).** Native vector index (5.13+):
|
|
164
|
+
each collection is a node label with a `VECTOR INDEX` on `vec`; KNN via
|
|
165
|
+
`db.index.vector.queryNodes` (cosine score already [0,1]). Metadata is a JSON string property
|
|
166
|
+
filtered with the neutral filter tree's JS reference evaluator. Upsert via `MERGE`; integer
|
|
167
|
+
params wrapped with `neo4j.int()`. Driver: `neo4j-driver`. Verified 7/7 conformance against a
|
|
168
|
+
live Neo4j 5 backend.
|
|
169
|
+
|
|
170
|
+
- **SurrealDB vector adapter (`@nhtio/adk/batteries/vector/surrealdb`).** Multi-model; each
|
|
171
|
+
collection is a SurrealDB table storing the vector as an array field, KNN via
|
|
172
|
+
`vector::similarity::cosine` / `vector::distance::euclidean` ordered appropriately. Metadata in
|
|
173
|
+
a JSON string field filtered with the neutral filter tree's JS reference evaluator. All queries
|
|
174
|
+
parameterized (`type::thing`, `$bindings`). Upsert via `UPSERT`. Driver: `surrealdb`. Verified
|
|
175
|
+
7/7 conformance against a live SurrealDB v2 backend.
|
|
176
|
+
|
|
177
|
+
- **LanceDB vector adapter (`@nhtio/adk/batteries/vector/lancedb`).** Embedded, no server
|
|
178
|
+
(file-based, like sqlite-vec/duckdb). Each collection is a Lance table with an explicit Arrow
|
|
179
|
+
schema (`vec` as `FixedSizeList<Float32>`); KNN via `table.search(vector).distanceType(...)`,
|
|
180
|
+
metadata in a JSON string column filtered with the neutral filter tree's JS reference evaluator.
|
|
181
|
+
Upsert via merge-insert on `id`. Drivers: `@lancedb/lancedb` + `apache-arrow` (prebuilt binary,
|
|
182
|
+
no native compile). Verified 7/7 conformance in-process (temp dir).
|
|
183
|
+
|
|
184
|
+
- **MariaDB vector adapter (`@nhtio/adk/batteries/vector/mariadb`).** Native `VECTOR(N)` columns
|
|
185
|
+
(MariaDB 11.7+): vectors written with `VEC_FromText` / read with `VEC_ToText`, KNN via
|
|
186
|
+
`VEC_DISTANCE_COSINE` / `VEC_DISTANCE_EUCLIDEAN`; metadata in a `JSON` column filtered with the
|
|
187
|
+
neutral filter tree's JS reference evaluator. SQL backend → transactions + rawSql. Upsert via
|
|
188
|
+
`ON DUPLICATE KEY UPDATE`. Driver: `mariadb`. Verified 7/7 conformance against a live MariaDB 11.7.
|
|
189
|
+
|
|
190
|
+
- **Meilisearch vector adapter (`@nhtio/adk/batteries/vector/meilisearch`).** Each collection is a
|
|
191
|
+
Meilisearch index with a `userProvided` embedder (BYO vectors under `_vectors.default`); KNN via
|
|
192
|
+
semantic search (`vector` + `hybrid.semanticRatio = 1`), `_rankingScore` maps directly to the
|
|
193
|
+
[0,1] score contract. Metadata is a JSON string field filtered with the neutral filter tree's JS
|
|
194
|
+
reference evaluator. Writes await task completion (strongly consistent). Enables the `vectorStore`
|
|
195
|
+
experimental feature on connect. Driver: `meilisearch`. Verified 7/7 conformance against a live
|
|
196
|
+
Meilisearch backend.
|
|
197
|
+
|
|
198
|
+
- **Typesense vector adapter (`@nhtio/adk/batteries/vector/typesense`).** Each collection is a
|
|
199
|
+
Typesense collection with a native `float[]` vector field (KNN via `vector_query`); metadata is
|
|
200
|
+
a JSON string field filtered with the neutral filter tree's JS reference evaluator. Native upsert
|
|
201
|
+
by id; strongly consistent (writes searchable on resolve). Driver: `typesense`. Verified 7/7
|
|
202
|
+
conformance against a live Typesense backend.
|
|
203
|
+
|
|
204
|
+
- **Elasticsearch / OpenSearch vector adapter (`@nhtio/adk/batteries/vector/opensearch`).** One
|
|
205
|
+
adapter for the whole family — they share the kNN `_search` data model. Each collection is an
|
|
206
|
+
index with a `knn_vector` (HNSW/Lucene) field; the neutral filter tree compiles to a bool-query
|
|
207
|
+
over `metadata.*` keyword/numeric sub-fields. Writes use `refresh: true` for read-after-write
|
|
208
|
+
consistency. Driver: `@opensearch-project/opensearch` by default; pass an `@elastic/elasticsearch`
|
|
209
|
+
client via `connection.client` to target Elasticsearch. Verified 7/7 conformance against a live
|
|
210
|
+
OpenSearch backend.
|
|
211
|
+
|
|
212
|
+
- **ClickHouse vector adapter (`@nhtio/adk/batteries/vector/clickhouse`).** Vectors in an
|
|
213
|
+
`Array(Float32)` column, KNN via `cosineDistance` / `L2Distance` / negative-inner-product
|
|
214
|
+
ordered ascending; metadata in a JSON `String` column. MergeTree allows duplicate keys, so
|
|
215
|
+
upsert is delete-then-insert, and writes are made read-after-write consistent with
|
|
216
|
+
`mutations_sync = 2`. Driver: `@clickhouse/client`. Verified 7/7 conformance against a live
|
|
217
|
+
ClickHouse backend.
|
|
218
|
+
|
|
219
|
+
- **DuckDB vector adapter (`@nhtio/adk/batteries/vector/duckdb`).** In-process, no server
|
|
220
|
+
(like sqlite-vec) — uses the `vss` community extension's `array_*_distance` functions over a
|
|
221
|
+
`FLOAT[N]` column for KNN, with metadata in a `JSON` column. Driver: `@duckdb/node-api`.
|
|
222
|
+
Verified 7/7 conformance in-process (`:memory:`).
|
|
223
|
+
|
|
224
|
+
- **Redis / Valkey vector adapter (`@nhtio/adk/batteries/vector/redis`).** One adapter for the
|
|
225
|
+
whole Redis family via the RediSearch module (`redis/redis-stack-server`, or any Redis/Valkey
|
|
226
|
+
with RediSearch loaded). Vectors are stored as FLOAT32 blobs on Redis hashes and searched with
|
|
227
|
+
`FT.SEARCH ... KNN`; the neutral filter tree compiles to RediSearch query syntax (TAG/NUMERIC).
|
|
228
|
+
Verified 7/7 conformance against a live RediSearch backend.
|
|
229
|
+
|
|
230
|
+
- **The `evaluate_katex` math tool now evaluates calculus numerically.** It previously mangled any
|
|
231
|
+
calculus input — `\int_{0}^{1} x dx` had its bounds stripped by the LaTeX flattener and produced a
|
|
232
|
+
cryptic `Syntax error in part "\int^(1) x dx"`. The tool now detects calculus on the raw LaTeX
|
|
233
|
+
before flattening and computes it numerically with the bundled mathjs (no new dependency):
|
|
234
|
+
definite integrals (`\int_{a}^{b} f \,dx`) via Simpson quadrature, derivatives at a point
|
|
235
|
+
(`\frac{d}{dx} f \big|_{x=a}`) via central finite difference, and limits (`\lim_{x \to a} f`,
|
|
236
|
+
including `a = \pm\infty`) via a two-sided approach. Results are rounded and labelled
|
|
237
|
+
`Result (numeric):` to flag the approximation. Genuinely uncomputable inputs (indefinite integrals,
|
|
238
|
+
derivatives without a point, infinite integration bounds, singular integrands, divergent limits)
|
|
239
|
+
return a specific, guiding error instead of a garbled one. mathjs has no symbolic integration and
|
|
240
|
+
its symbolic `derivative` is intentionally blocklisted here, so these are numeric methods.
|
|
241
|
+
|
|
242
|
+
### Fixed
|
|
243
|
+
|
|
244
|
+
- **`evaluate_katex` now maps inverse trig to the correct mathjs names.** `\arcsin`, `\arccos`, and
|
|
245
|
+
`\arctan` were passed through as `arcsin`/`arccos`/`arctan`, which mathjs does not define, so every
|
|
246
|
+
inverse-trig expression errored with `Undefined function`. They now translate to `asin`/`acos`/`atan`.
|
|
247
|
+
|
|
248
|
+
### Changed
|
|
249
|
+
|
|
250
|
+
- **Replaced the hand-rolled LaTeX regex parser with evaluatex.** The `evaluate_katex` tool's
|
|
251
|
+
LaTeX-to-mathjs translator (`latexToMathjs`) used brittle regex substitutions that could not handle
|
|
252
|
+
nested braces, causing expressions like `\frac{\sqrt{100}}{2}` to produce a Syntax Error.
|
|
253
|
+
It is replaced by the evaluatex library (v2.2.0, zero deps, ~56KB, works in Node.js and all browsers),
|
|
254
|
+
which parses LaTeX with a proper recursive parser. The scalar evaluation path now uses evaluatex
|
|
255
|
+
directly; the numeric calculus path (integrals, derivatives, limits) still uses mathjs for
|
|
256
|
+
per-point evaluation via a shared lightweight LaTeX-to-string translator. evaluatex is an optional
|
|
257
|
+
peer dependency, following the existing battery pattern.
|
|
258
|
+
|
|
259
|
+
- **`ToolRegistry` now supports hidden tools.** A tool can be registered and callable without being
|
|
260
|
+
immediately visible to the model — hidden state lives on the registry, not the tool. New methods:
|
|
261
|
+
`hide(...names)`, `unhide(...names)`, `setHidden(...names)`, `clearHidden()`, `visible()`, and
|
|
262
|
+
`hidden()`. The LLM batteries now read `visible()` instead of `all()` when building the tool
|
|
263
|
+
definition list, so hidden tools are excluded from the rendered tool list but still resolve when
|
|
264
|
+
called by name. Hidden state propagates through `ToolRegistry.merge`, and unregistering a tool
|
|
265
|
+
automatically cleans up its hidden state. This enables discovery patterns where an agent has a
|
|
266
|
+
tool that enumerates available tools, and the model picks one to call in a subsequent iteration
|
|
267
|
+
without listing everything upfront.
|
|
268
|
+
|
|
8
269
|
## 2026-06-04
|
|
9
270
|
|
|
10
271
|
### Fixed
|
package/adk-mcp.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { a as
|
|
2
|
+
import { a as __toCommonJS, n as __esmMin, o as __toESM, r as __exportAll, t as __commonJSMin } from "./chunk-Bpcn9VDT.mjs";
|
|
3
3
|
import process$1 from "node:process";
|
|
4
4
|
import { readFileSync } from "node:fs";
|
|
5
5
|
import { fileURLToPath } from "node:url";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../../chunk-Ble4zEEl.js");
|
|
3
|
-
const require_tool_registry = require("../../../tool_registry-
|
|
3
|
+
const require_tool_registry = require("../../../tool_registry-DYUYqXvo.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 { o as isError } from "../../../tool_registry-
|
|
1
|
+
import { o as isError } from "../../../tool_registry-D1pSSlsd.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-Ble4zEEl.js");
|
|
3
|
-
const require_tool_registry = require("../../../tool_registry-
|
|
3
|
+
const require_tool_registry = require("../../../tool_registry-DYUYqXvo.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 { o as isError } from "../../../tool_registry-
|
|
1
|
+
import { o as isError } from "../../../tool_registry-D1pSSlsd.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/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../../chunk-Ble4zEEl.js");
|
|
3
|
-
const require_tool_registry = require("../../../tool_registry-
|
|
4
|
-
const require_thought = require("../../../thought-
|
|
5
|
-
const require_spooled_artifact = require("../../../spooled_artifact-
|
|
6
|
-
require("../../../common-
|
|
7
|
-
const require_tool_call = require("../../../tool_call
|
|
3
|
+
const require_tool_registry = require("../../../tool_registry-DYUYqXvo.js");
|
|
4
|
+
const require_thought = require("../../../thought-BbwhJ1wb.js");
|
|
5
|
+
const require_spooled_artifact = require("../../../spooled_artifact-BTq6Nzfy.js");
|
|
6
|
+
require("../../../common-Cj8TaQ9U.js");
|
|
7
|
+
const require_tool_call = require("../../../tool_call-Db68hB7y.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");
|
|
@@ -368,7 +368,7 @@ var OpenAIChatCompletionsAdapter = class OpenAIChatCompletionsAdapter {
|
|
|
368
368
|
if (v === void 0) continue;
|
|
369
369
|
body[k] = v;
|
|
370
370
|
}
|
|
371
|
-
const toolsArr = mergedRegistry.
|
|
371
|
+
const toolsArr = mergedRegistry.visible();
|
|
372
372
|
if (toolsArr.length > 0) body.tools = resolvedHelpers.toolsToChatCompletionsTools(toolsArr, { descriptionToChatCompletionsJsonSchema: resolvedHelpers.descriptionToChatCompletionsJsonSchema });
|
|
373
373
|
if (reasoningPayloads.length > 0) body._adk_reasoning_payloads = reasoningPayloads;
|
|
374
374
|
const rawBase = merged.baseURL ?? "https://api.openai.com/v1";
|