A high-performance inference engine for AI models
Bindings migration 1/n (#351)
Aleksei Savinf7e541854b2d
diff --git a/.env.sample b/.env.samplenew file mode 100644index 000000000..9f46e2b71--- /dev/null+++ b/.env.sample@@ -0,0 +1,3 @@+MIRAI_API_KEY=+HF_TOKEN=+OPENAI_API_KEY=\ No newline at end of filediff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.ymlindex 24e889723..eed074b2f 100644--- a/.github/actions/setup/action.yml+++ b/.github/actions/setup/action.yml@@ -10,8 +10,8 @@ inputs:description: "Install metal toolchain"required: falsedefault: 'false'- test_model:- description: "Download test model"+ test_data:+ description: "Download test data"required: falsedefault: 'false'nextest:@@ -51,14 +51,22 @@ runs:- if: inputs.nextest == 'true'uses: taiki-e/install-action@nextest- - if: inputs.test_model == 'true'+ - if: inputs.test_data == 'true'uses: astral-sh/setup-uv@v7with:enable-cache: true- - if: inputs.test_model == 'true'+ - if: inputs.test_data == 'true'run: |mkdir -p ~/.cache/ci-uzu/models- ln -sf ~/.cache/ci-uzu/models models+ ln -sf ~/.cache/ci-uzu/models workspace/models./scripts/download_test_model.sh++ mkdir -p ~/.cache/ci-uzu/data/configs+ mkdir -p ~/.cache/ci-uzu/data/tokenizers+ ln -sf ~/.cache/ci-uzu/data/configs workspace/data/configs+ ln -sf ~/.cache/ci-uzu/data/tokenizers workspace/data/tokenizers+ cd ./tools/+ uv run export configs+ uv run export tokenizersshell: bashdiff --git a/.github/workflows/tests.yml b/.github/workflows/tests.ymlindex e0e839213..8e69a692f 100644--- a/.github/workflows/tests.yml+++ b/.github/workflows/tests.yml@@ -73,6 +73,7 @@ jobs:env:CARGO_ENCODED_RUSTFLAGS: "-Dwarnings"+ HF_TOKEN: ${{ secrets.HF_TOKEN }}FEATURE_FLAGS: >-${{ matrix.target != '' && format('--target {0}', matrix.target) || '' }}${{ matrix.backend != 'cpu' && format('--features {0}', matrix.backend) || '' }}@@ -84,7 +85,7 @@ jobs:- uses: ./.github/actions/setupwith:metal: ${{ matrix.backend == 'metal' }}- test_model: true+ test_data: truenextest: truetarget: ${{ matrix.target }}@@ -99,7 +100,7 @@ jobs:if: ${{ matrix.backend != 'cpu' && matrix.tracing && matrix.grammar || matrix.backend == 'cpu' && !matrix.tracing && !matrix.grammar && matrix.target == 'wasm32-wasip1-threads' }}run: |cargo +stable nextest run --profile=ci --no-default-features $FEATURE_FLAGS \- ${{ matrix.target == 'wasm32-wasip1-threads' && '-p uzu --lib --test kernel' || '' }}+ ${{ matrix.target == 'wasm32-wasip1-threads' && '-p backend-uzu --lib --test kernel' || '' }}completed:name: completeddiff --git a/.gitignore b/.gitignoreindex 178d23cf6..8f588479b 100644--- a/.gitignore+++ b/.gitignore@@ -24,7 +24,8 @@/models/# Local-only dev tools-/crates/uzu/examples/quick_chat.rs-/external+.env+.DS_Store+.claude/settings.local.jsontools/gpu_trace/*.jsondiff --git a/.vscode/settings.json b/.vscode/settings.jsonindex 41042b8e8..25f57d46d 100644--- a/.vscode/settings.json+++ b/.vscode/settings.json@@ -1,4 +1,28 @@{+ "editor.formatOnSave": true,+ "editor.codeActionsOnSave": {+ "source.organizeImports": "explicit",+ },+ "files.associations": {+ "*.h": "metal",+ },+ "rust-analyzer.rustfmt.extraArgs": [+ "+nightly"+ ],+ "[rust]": {+ "editor.formatOnSave": true,+ "editor.defaultFormatter": "rust-lang.rust-analyzer",+ },+ "rust-analyzer.check.workspace": false,+ "rust-analyzer.cargo.allTargets": false,+ "rust-analyzer.check.noDefaultFeatures": true,+ "rust-analyzer.testExplorer": true,+ "rust-analyzer.cargo.buildScripts.enable": true,+ "rust-analyzer.procMacro.enable": true,+ "[metal]": {+ "editor.formatOnSave": true,+ "editor.defaultFormatter": "eugenebokhan.metal-analyzer",+ },"metal-analyzer.diagnostics.onType": true,"metal-analyzer.diagnostics.onSave": true,"metal-analyzer.diagnostics.debounceMs": 300,@@ -9,36 +33,34 @@"metal-analyzer.formatting.command": "clang-format","metal-analyzer.formatting.args": [],"metal-analyzer.diagnostics.scope": "workspace",- "metal-analyzer.indexing.excludePaths": [- "external/uzu-plus"- ],"metal-analyzer.compiler.includePaths": [],"metal-analyzer.compiler.extraFlags": [],- "editor.formatOnSave": true,- "editor.codeActionsOnSave": {- "source.organizeImports": "explicit",+ "[python]": {+ "editor.formatOnSave": true,+ "editor.defaultFormatter": "charliermarsh.ruff",+ "editor.codeActionsOnSave": {+ "source.fixAll.ruff": "explicit",+ "source.organizeImports.ruff": "explicit"+ }},- "rust-analyzer.rustfmt.extraArgs": [- "+nightly"+ "python.defaultInterpreterPath": "tools/.venv/bin/python",+ "python.testing.pytestArgs": [+ "tests"+ ],+ "python.testing.unittestEnabled": false,+ "python.testing.pytestEnabled": false,+ "ruff.path": [+ "tools/.venv/bin/ruff"],- "rust-analyzer.check.workspace": false,- "rust-analyzer.cargo.allTargets": false,- "rust-analyzer.check.noDefaultFeatures": true,- "rust-analyzer.testExplorer": true,- "[rust]": {- "editor.defaultFormatter": "rust-lang.rust-analyzer",- },"[swift]": {"editor.formatOnSave": true,},"[toml]": {+ "editor.formatOnSave": true,"editor.defaultFormatter": "tamasfe.even-better-toml",},- "[metal]": {- "editor.defaultFormatter": "eugenebokhan.metal-analyzer",+ "[json]": {"editor.formatOnSave": true,+ "editor.defaultFormatter": "vscode.json-language-features"},- "files.associations": {- "*.h": "metal",- },-}+}\ No newline at end of filediff --git a/.vscode/tasks.json b/.vscode/tasks.jsonindex e670b5581..f88b7f796 100644--- a/.vscode/tasks.json+++ b/.vscode/tasks.json@@ -8,4 +8,4 @@"problemMatcher": []}]-}+}\ No newline at end of filediff --git a/.zed/settings.json b/.zed/settings.jsonindex 186919311..d3bfc8185 100644--- a/.zed/settings.json+++ b/.zed/settings.json@@ -1,6 +1,9 @@{"file_types": {- "Metal": ["h", "H"]+ "Metal": [+ "h",+ "H"+ ]},"languages": {"Metal": {@@ -21,10 +24,7 @@"indexing": {"enabled": true,"concurrency": 8,- "maxFileSizeKb": 1024,- "excludePaths": [- "external/uzu-plus"- ]+ "maxFileSizeKb": 1024},"formatting": {"enabled": true,@@ -39,4 +39,4 @@}}}-}+}\ No newline at end of filediff --git a/.zed/tasks.json b/.zed/tasks.jsonindex 00dd3d250..3fb2769ac 100644--- a/.zed/tasks.json+++ b/.zed/tasks.json@@ -8,4 +8,4 @@"reveal": "always","hide": "never"}-]+]\ No newline at end of filediff --git a/CODEOWNERS b/CODEOWNERSindex 3a21cab36..48dc0be0f 100644--- a/CODEOWNERS+++ b/CODEOWNERS@@ -13,5 +13,10 @@/crates/uzu/src/parameters @uuuvn/crates/uzu/src/speculators @uuuvn/crates/uzu/src/tracer @alexxale+/crates/json-transform @alexxale+/crates/token-stream-parser @alexxale+/crates/hanashi @alexxale+/crates/nagare @alexxale+/crates/download-manager @alexxale @eugenebokhan/scripts @alexxale/tools @alexxalediff --git a/Cargo.lock b/Cargo.lockindex 230d61722..be08b8465 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -14,7 +14,7 @@ version = "0.8.12"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "5a15f179cd60c4584b8a8c596927aadc462e27f2ca70c04e0071964a73ba7a75"dependencies = [- "cfg-if",+ "cfg-if 1.0.4","const-random","getrandom 0.3.4","once_cell",@@ -32,6 +32,24 @@ dependencies = ["memchr",]+[[package]]+name = "aligned"+version = "0.4.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ee4508988c62edf04abd8d92897fca0c2995d907ce1dfeaf369dac3716a40685"+dependencies = [+ "as-slice",+]++[[package]]+name = "aligned-vec"+version = "0.6.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "dc890384c8602f339876ded803c97ad529f3842aba97f6392b3dba0dd171769b"+dependencies = [+ "equator",+]+[[package]]name = "alloca"version = "0.4.0"@@ -41,6 +59,21 @@ dependencies = ["cc",]+[[package]]+name = "allocator-api2"+version = "0.2.21"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "683d7910e743518b0e34f1186f92494becacb047c7b6bf616c96772180fef923"++[[package]]+name = "android_system_properties"+version = "0.1.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311"+dependencies = [+ "libc",+]+[[package]]name = "anes"version = "0.1.6"@@ -116,6 +149,23 @@ dependencies = ["syn 1.0.109",]+[[package]]+name = "arbitrary"+version = "1.4.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c3d036a3c4ab069c7b410a2ce876bd74808d2d0888a82667669f8e783a898bf1"++[[package]]+name = "arg_enum_proc_macro"+version = "0.3.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0ae92a5119aa49cdbcf6b9f893fe4e1d98b04ccbf82ee0584ad948a44a734dea"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.117",+]+[[package]]name = "arrayref"version = "0.3.9"@@ -128,6 +178,90 @@ version = "0.7.6"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "7c02d123df017efcdfbd739ef81735b36c5ba83ec3c59c80a9d7ecc718f92e50"+[[package]]+name = "as-slice"+version = "0.2.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "516b6b4f0e40d50dcda9365d53964ec74560ad4284da2e7fc97122cd83174516"+dependencies = [+ "stable_deref_trait",+]++[[package]]+name = "askama"+version = "0.14.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f75363874b771be265f4ffe307ca705ef6f3baa19011c149da8674a87f1b75c4"+dependencies = [+ "askama_derive",+ "itoa",+ "percent-encoding",+ "serde",+ "serde_json",+]++[[package]]+name = "askama_derive"+version = "0.14.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "129397200fe83088e8a68407a8e2b1f826cf0086b21ccdb866a722c8bcd3a94f"+dependencies = [+ "askama_parser",+ "basic-toml",+ "memchr",+ "proc-macro2",+ "quote",+ "rustc-hash 2.1.2",+ "serde",+ "serde_derive",+ "syn 2.0.117",+]++[[package]]+name = "askama_parser"+version = "0.14.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d6ab5630b3d5eaf232620167977f95eb51f3432fc76852328774afbd242d4358"+dependencies = [+ "memchr",+ "serde",+ "serde_derive",+ "winnow 0.7.15",+]++[[package]]+name = "async-fetcher"+version = "0.12.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9dff46cd7c152ba8bf85fc372af427c9d8d7b793f5d2809395f4a3c80013ca23"+dependencies = [+ "async-shutdown",+ "derive-new",+ "derive_setters",+ "digest",+ "filetime",+ "futures",+ "hex",+ "http 1.4.0",+ "httpdate",+ "ifaces",+ "log",+ "md-5",+ "numtoa",+ "poolshark",+ "reqwest 0.12.28",+ "serde",+ "sha2",+ "thiserror 2.0.18",+ "tokio",+]++[[package]]+name = "async-shutdown"+version = "0.2.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f13fa00d3d9ba01f4c6ee77a73d784281cfa3340a9e1d43948e439921d24e934"+[[package]]name = "async-stream"version = "0.3.6"@@ -217,7 +351,7 @@ version = "0.73.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "ecaaf84d9cf1a772409c0abdac7d2477a31fd890dbdf606d8f684dc60129aa94"dependencies = [- "bitflags",+ "bitflags 2.11.1","cexpr","clang-sys","itertools 0.13.0",@@ -225,7 +359,7 @@ dependencies = ["proc-macro2","quote","regex",- "rustc-hash",+ "rustc-hash 2.1.2","shlex","syn 2.0.117",]@@ -303,6 +437,129 @@ dependencies = ["thiserror 1.0.69",]+[[package]]+name = "av-scenechange"+version = "0.14.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0f321d77c20e19b92c39e7471cf986812cbb46659d2af674adc4331ef3f18394"+dependencies = [+ "aligned",+ "anyhow",+ "arg_enum_proc_macro",+ "arrayvec",+ "log",+ "num-rational",+ "num-traits",+ "pastey",+ "rayon",+ "thiserror 2.0.18",+ "v_frame",+ "y4m",+]++[[package]]+name = "av1-grain"+version = "0.2.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8cfddb07216410377231960af4fcab838eaa12e013417781b78bd95ee22077f8"+dependencies = [+ "anyhow",+ "arrayvec",+ "log",+ "nom 8.0.0",+ "num-rational",+ "v_frame",+]++[[package]]+name = "avif-serialize"+version = "0.8.8"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "375082f007bd67184fb9c0374614b29f9aaa604ec301635f72338bb65386a53d"+dependencies = [+ "arrayvec",+]++[[package]]+name = "aws-lc-rs"+version = "1.16.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0ec6fb3fe69024a75fa7e1bfb48aa6cf59706a101658ea01bfd33b2b248a038f"+dependencies = [+ "aws-lc-sys",+ "zeroize",+]++[[package]]+name = "aws-lc-sys"+version = "0.40.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f50037ee5e1e41e7b8f9d161680a725bd1626cb6f8c7e901f91f942850852fe7"+dependencies = [+ "cc",+ "cmake",+ "dunce",+ "fs_extra",+]++[[package]]+name = "backend-uzu"+version = "0.1.9"+dependencies = [+ "anyhow",+ "async-trait",+ "bindgen",+ "blake3",+ "bytemuck",+ "bytesize",+ "cbindgen",+ "clang-ast",+ "comfy-table",+ "criterion",+ "criterion-macro",+ "depfile",+ "dsl",+ "futures",+ "half",+ "indicatif",+ "is_close",+ "itertools 0.14.0",+ "libc",+ "memmap2",+ "minijinja",+ "minijinja-contrib",+ "mtl-rs",+ "ndarray",+ "num-traits",+ "objc2",+ "objc2-foundation",+ "prettyplease",+ "proc-macro2",+ "proptest",+ "quote",+ "rand 0.10.1",+ "rand_distr",+ "rangemap",+ "regex",+ "rhai",+ "rustix",+ "schemars 1.2.1",+ "serde",+ "serde_json",+ "serde_json5",+ "syn 2.0.117",+ "sysinfo",+ "tempfile",+ "test-tag",+ "thiserror 2.0.18",+ "tokenizers",+ "tokio",+ "walkdir",+ "xgrammar-rs",+ "xxhash-rust",+ "zerocopy",+]+[[package]]name = "base64"version = "0.13.1"@@ -321,6 +578,15 @@ version = "1.8.3"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "2af50177e190e07a26ab74f8b1efbfe2ef87da2116221318cb1c2e82baf7de06"+[[package]]+name = "basic-toml"+version = "0.1.10"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ba62675e8242a4c4e806d12f11d136e626e6c8361d6b829310732241652a178a"+dependencies = [+ "serde",+]+[[package]]name = "beef"version = "0.5.2"@@ -349,7 +615,7 @@ version = "0.72.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "993776b509cfb49c750f11b8f07a46fa23e0a1386ffc01fb1e7d343efc387895"dependencies = [- "bitflags",+ "bitflags 2.11.1","cexpr","clang-sys","itertools 0.13.0",@@ -358,32 +624,77 @@ dependencies = ["proc-macro2","quote","regex",- "rustc-hash",+ "rustc-hash 2.1.2","shlex","syn 2.0.117",]+[[package]]+name = "bindings"+version = "0.1.9"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.117",+]++[[package]]+name = "bit-set"+version = "0.5.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0700ddab506f33b20a03b13996eccd309a48e5ff77d0d95926aa0210fb4e95f1"+dependencies = [+ "bit-vec 0.6.3",+]+[[package]]name = "bit-set"version = "0.8.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "08807e080ed7f9d5433fa9b275196cfc35414f66a0c79d864dc51a0d825231a3"dependencies = [- "bit-vec",+ "bit-vec 0.8.0",]+[[package]]+name = "bit-vec"+version = "0.6.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "349f9b6a179ed607305526ca489b34ad0a41aed5f7980fa90eb03160b69598fb"+[[package]]name = "bit-vec"version = "0.8.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "5e764a1d40d510daf35e07be9eb06e75770908c27d411ee6c92109c9840eaaf7"+[[package]]+name = "bit_field"+version = "0.10.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1e4b40c7323adcfc0a41c4b88143ed58346ff65a288fc144329c5c45e05d70c6"++[[package]]+name = "bitflags"+version = "0.7.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "aad18937a628ec6abcd26d1489012cc0e18c21798210f491af69ded9b881106d"+[[package]]name = "bitflags"version = "2.11.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "c4512299f36f043ab09a583e57bceb5a5aab7a73db1805848e8fef3c9e8c78b3"+[[package]]+name = "bitstream-io"+version = "4.10.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7eff00be299a18769011411c9def0d827e8f2d7bf0c3dbf53633147a8867fd1f"+dependencies = [+ "no_std_io2",+]+[[package]]name = "blake3"version = "1.8.4"@@ -393,7 +704,7 @@ dependencies = ["arrayref","arrayvec","cc",- "cfg-if",+ "cfg-if 1.0.4","constant_time_eq","cpufeatures 0.3.0",]@@ -416,12 +727,41 @@ dependencies = ["objc2",]+[[package]]+name = "borrow-or-share"+version = "0.2.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "dc0b364ead1874514c8c2855ab558056ebfeb775653e7ae45ff72f28f8f3166c"++[[package]]+name = "bstr"+version = "1.12.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "63044e1ae8e69f3b5a92c736ca6269b8d12fa7efe39bf34ddb06d102cf0e2cab"+dependencies = [+ "memchr",+ "regex-automata",+ "serde",+]++[[package]]+name = "built"+version = "0.8.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f4ad8f11f288f48ca24471bbd51ac257aaeaaa07adae295591266b792902ae64"+[[package]]name = "bumpalo"version = "3.20.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "5d20789868f4b01b2f2caec9f5c4e0213b41e3e5702a50157d699ae31ced2fcb"+[[package]]+name = "bytecount"+version = "0.6.9"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "175812e0be2bccb6abe50bb8d566126198344f707e304f45c648fd8f2cc0365e"+[[package]]name = "bytemuck"version = "1.25.0"@@ -448,6 +788,12 @@ version = "1.5.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b"+[[package]]+name = "byteorder-lite"+version = "0.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8f1fe948ff07f4bd06c30984e69f5b4899c516a3ef74f34df92a2df2ab535495"+[[package]]name = "bytes"version = "1.11.1"@@ -460,6 +806,38 @@ version = "2.3.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "6bd91ee7b2422bcb158d90ef4d14f75ef67f340943fc4149891dcce8f8b972a3"+[[package]]+name = "camino"+version = "1.2.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e629a66d692cb9ff1a1c664e41771b3dcaf961985a9774c0eb0bd1b51cf60a48"+dependencies = [+ "serde_core",+]++[[package]]+name = "cargo-platform"+version = "0.1.9"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e35af189006b9c0f00a064685c727031e3ed2d8020f7ba284d78cc2671bd36ea"+dependencies = [+ "serde",+]++[[package]]+name = "cargo_metadata"+version = "0.19.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "dd5eb614ed4c27c5d706420e4320fbe3216ab31fa1c33cd8246ac36dae4479ba"+dependencies = [+ "camino",+ "cargo-platform",+ "semver",+ "serde",+ "serde_json",+ "thiserror 2.0.18",+]+[[package]]name = "cast"version = "0.3.0"@@ -501,18 +879,32 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "43c5703da9466b66a946814e1adf53ea2c90f10063b86290cc9eb67ce3478a20"dependencies = ["find-msvc-tools",+ "jobserver",+ "libc","shlex",]+[[package]]+name = "cesu8"+version = "1.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6d43a04d8753f35258c91f8ec639f792891f748a1edbd759cf1dcea3382ad83c"+[[package]]name = "cexpr"version = "0.6.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "6fac387a98bb7c37292057cffc56d62ecb629900026402633ae9160df93a8766"dependencies = [- "nom",+ "nom 7.1.3",]+[[package]]+name = "cfg-if"+version = "0.1.10"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822"+[[package]]name = "cfg-if"version = "1.0.4"@@ -531,11 +923,25 @@ version = "0.10.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "6f8d983286843e49675a4b7a2d174efe136dc93a18d69130dd18198a6c167601"dependencies = [- "cfg-if",+ "cfg-if 1.0.4","cpufeatures 0.3.0","rand_core 0.10.1",]+[[package]]+name = "chrono"+version = "0.4.44"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c673075a2e0e5f4a1dde27ce9dee1ea4558c7ffe648f576438a20ca1d2acc4b0"+dependencies = [+ "iana-time-zone",+ "js-sys",+ "num-traits",+ "serde",+ "wasm-bindgen",+ "windows-link",+]+[[package]]name = "ciborium"version = "0.2.2"@@ -581,7 +987,7 @@ checksum = "0b023947811758c97c59bf9d1c188fd619ad4718dcaa767947df1cadb14f39f4"dependencies = ["glob","libc",- "libloading",+ "libloading 0.8.9",][[package]]@@ -663,12 +1069,28 @@ dependencies = ["unicode-width 0.2.2",]+[[package]]+name = "color_quant"+version = "1.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3d7b894f5411737b7867f4827955924d7c254fc9f4d91a6aad6b097804b1018b"+[[package]]name = "colorchoice"version = "1.0.5"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "1d07550c9036bf2ae0c684c4297d503f838287c83c53686d05370d0e139ae570"+[[package]]+name = "combine"+version = "4.6.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ba5a308b75df32fe02788e748662718f03fde005016435c444eea572398219fd"+dependencies = [+ "bytes",+ "memchr",+]+[[package]]name = "comfy-table"version = "7.2.2"@@ -686,7 +1108,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "3fdb1325a1cece981e8a296ab8f0f9b63ae357bd0784a9faaf548cc7b480707a"dependencies = ["castaway",- "cfg-if",+ "cfg-if 1.0.4","itoa","rustversion","ryu",@@ -741,6 +1163,15 @@ dependencies = ["unicode-segmentation",]+[[package]]+name = "convert_case"+version = "0.11.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "affbf0190ed2caf063e3def54ff444b449371d55c58e513a95ab98eca50adb49"+dependencies = [+ "unicode-segmentation",+]+[[package]]name = "cookie"version = "0.18.1"@@ -814,13 +1245,22 @@ dependencies = ["libc",]+[[package]]+name = "crc32c"+version = "0.6.8"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3a47af21622d091a8f0fb295b88bc886ac74efcc613efc19f5d0b21de5c89e47"+dependencies = [+ "rustc_version",+]+[[package]]name = "crc32fast"version = "1.5.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "9481c1c90cbf2ac953f07c8d4a58aa3945c425b7185c9154d67a65e4230da511"dependencies = [- "cfg-if",+ "cfg-if 1.0.4",][[package]]@@ -868,6 +1308,15 @@ dependencies = ["itertools 0.13.0",]+[[package]]+name = "crossbeam-channel"+version = "0.5.15"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "82b8f8f868b36967f9606790d1903570de9ceaf870a7bf9fbbd3016d636a2cb2"+dependencies = [+ "crossbeam-utils",+]+[[package]]name = "crossbeam-deque"version = "0.8.6"@@ -887,6 +1336,15 @@ dependencies = ["crossbeam-utils",]+[[package]]+name = "crossbeam-queue"+version = "0.3.12"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0f58bbc28f91df819d0aa2a2c00cd19754769c2fad90579b3592b1c9ba7a3115"+dependencies = [+ "crossbeam-utils",+]+[[package]]name = "crossbeam-utils"version = "0.8.21"@@ -899,7 +1357,7 @@ version = "0.29.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "d8b9f2e4c67f833b660cdb0a3523065869fb35570177239812ed4c905aeff87b"dependencies = [- "bitflags",+ "bitflags 2.11.1","crossterm_winapi","derive_more","document-features",@@ -936,6 +1394,22 @@ dependencies = ["typenum",]+[[package]]+name = "ctor"+version = "0.10.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "95d0d11eb38e7642efca359c3cf6eb7b2e528182d09110165de70192b0352775"+dependencies = [+ "ctor-proc-macro",+ "dtor",+]++[[package]]+name = "ctor-proc-macro"+version = "0.0.12"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a7ab264ea985f1bd27887d7b21ea2bb046728e05d11909ca138d700c494730db"+[[package]]name = "ctrlc"version = "3.5.2"@@ -943,7 +1417,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "e0b1fab2ae45819af2d0731d60f2afe17227ebb1a1538a236da84c93e9a60162"dependencies = ["dispatch2",- "nix",+ "nix 0.31.2","windows-sys 0.61.2",]@@ -1026,33 +1500,102 @@ dependencies = [name = "darling"version = "0.20.11"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "fc7f46116c46ff9ab3eb1597a45688b6715c6e628b5c133e288e709a29bcb4ee"+checksum = "fc7f46116c46ff9ab3eb1597a45688b6715c6e628b5c133e288e709a29bcb4ee"+dependencies = [+ "darling_core 0.20.11",+ "darling_macro 0.20.11",+]++[[package]]+name = "darling"+version = "0.21.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9cdf337090841a411e2a7f3deb9187445851f91b309c0c0a29e05f74a00a48c0"+dependencies = [+ "darling_core 0.21.3",+ "darling_macro 0.21.3",+]++[[package]]+name = "darling"+version = "0.23.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "25ae13da2f202d56bd7f91c25fba009e7717a1e4a1cc98a76d844b65ae912e9d"+dependencies = [+ "darling_core 0.23.0",+ "darling_macro 0.23.0",+]++[[package]]+name = "darling_core"+version = "0.20.11"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0d00b9596d185e565c2207a0b01f8bd1a135483d02d9b7b0a54b11da8d53412e"+dependencies = [+ "fnv",+ "ident_case",+ "proc-macro2",+ "quote",+ "strsim",+ "syn 2.0.117",+]++[[package]]+name = "darling_core"+version = "0.21.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1247195ecd7e3c85f83c8d2a366e4210d588e802133e1e355180a9870b517ea4"+dependencies = [+ "fnv",+ "ident_case",+ "proc-macro2",+ "quote",+ "strsim",+ "syn 2.0.117",+]++[[package]]+name = "darling_core"+version = "0.23.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9865a50f7c335f53564bb694ef660825eb8610e0a53d3e11bf1b0d3df31e03b0"+dependencies = [+ "ident_case",+ "proc-macro2",+ "quote",+ "strsim",+ "syn 2.0.117",+]++[[package]]+name = "darling_macro"+version = "0.20.11"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "fc34b93ccb385b40dc71c6fceac4b2ad23662c7eeb248cf10d529b7e055b6ead"dependencies = [- "darling_core",- "darling_macro",+ "darling_core 0.20.11",+ "quote",+ "syn 2.0.117",][[package]]-name = "darling_core"-version = "0.20.11"+name = "darling_macro"+version = "0.21.3"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "0d00b9596d185e565c2207a0b01f8bd1a135483d02d9b7b0a54b11da8d53412e"+checksum = "d38308df82d1080de0afee5d069fa14b0326a88c14f15c5ccda35b4a6c414c81"dependencies = [- "fnv",- "ident_case",- "proc-macro2",+ "darling_core 0.21.3","quote",- "strsim","syn 2.0.117",][[package]]name = "darling_macro"-version = "0.20.11"+version = "0.23.0"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "fc34b93ccb385b40dc71c6fceac4b2ad23662c7eeb248cf10d529b7e055b6ead"+checksum = "ac3984ec7bd6cfa798e62b4a642426a5be0e68f9401cfc2a01e3fa9ea2fcdb8d"dependencies = [- "darling_core",+ "darling_core 0.23.0","quote","syn 2.0.117",]@@ -1066,6 +1609,12 @@ dependencies = ["serde",]+[[package]]+name = "data-encoding"+version = "2.10.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d7a1e2f27636f116493b8b860f5546edb47c8d8f8ea73e1d2a20be88e28d1fea"+[[package]]name = "depfile"version = "0.1.1"@@ -1092,6 +1641,18 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "7cd812cc2bc1d69d4764bd80df88b4317eaef9e773c75226407d9bc0876b211c"dependencies = ["powerfmt",+ "serde_core",+]++[[package]]+name = "derive-new"+version = "0.7.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2cdc8d50f426189eef89dac62fabfa0abb27d5cc008f25bf4156a0203325becc"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.117",][[package]]@@ -1109,7 +1670,7 @@ version = "0.20.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "2d5bcf7b024d6835cfb3d473887cd966994907effbe9227e8c8219824d06c4e8"dependencies = [- "darling",+ "darling 0.20.11","proc-macro2","quote","syn 2.0.117",@@ -1140,13 +1701,25 @@ version = "2.1.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "799a97264921d8623a957f6c3b9011f3b5492f557bbb7a5a19b7fa6d06ba8dcb"dependencies = [- "convert_case",+ "convert_case 0.10.0","proc-macro2","quote","rustc_version","syn 2.0.117",]+[[package]]+name = "derive_setters"+version = "0.1.9"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b7e6f6fa1f03c14ae082120b84b3c7fbd7b8588d924cf2d7c3daf9afd49df8b9"+dependencies = [+ "darling 0.21.3",+ "proc-macro2",+ "quote",+ "syn 2.0.117",+]+[[package]]name = "devise"version = "0.4.2"@@ -1173,7 +1746,7 @@ version = "0.4.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "b035a542cf7abf01f2e3c4d5a7acbaebfefe120ae4efc7bde3df98186e4b8af7"dependencies = [- "bitflags",+ "bitflags 2.11.1","proc-macro2","proc-macro2-diagnostics","quote",@@ -1217,7 +1790,7 @@ version = "0.3.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "1e0e367e4e7da84520dedcac1901e4da967309406d1e51017ae1abfb97adbd38"dependencies = [- "bitflags",+ "bitflags 2.11.1","block2","libc","objc2",@@ -1243,6 +1816,44 @@ dependencies = ["litrs",]+[[package]]+name = "dotenvy"+version = "0.15.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1aaf95b3e5c8f23aa320147307562d361db0ae0d51242340f558153b4eb2439b"++[[package]]+name = "download-manager"+version = "0.1.9"+dependencies = [+ "anyhow",+ "async-fetcher",+ "async-shutdown",+ "async-trait",+ "base64 0.22.1",+ "block2",+ "chrono",+ "crc32c",+ "futures-util",+ "indicatif",+ "libc",+ "objc-sys",+ "objc2",+ "objc2-foundation",+ "reqwest 0.13.2",+ "serde",+ "serde_json",+ "tempfile",+ "thiserror 2.0.18",+ "tokio",+ "tokio-stream",+ "tokio-util",+ "tracing",+ "tracing-appender",+ "tracing-subscriber",+ "uuid",+]+[[package]]name = "dsl"version = "0.1.9"@@ -1252,6 +1863,27 @@ dependencies = ["syn 2.0.117",]+[[package]]+name = "dtor"+version = "0.7.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "17f72721db8027a4e96dd6fb50d2a1d32259c9d3da1b63dee612ccd981e14293"+dependencies = [+ "dtor-proc-macro",+]++[[package]]+name = "dtor-proc-macro"+version = "0.0.12"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8c98b077c7463d01d22dde8a24378ddf1ca7263dc687cffbed38819ea6c21131"++[[package]]+name = "dunce"+version = "1.0.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "92773504d58c093f6de2459af4af33faa518c13451eb8f2b5698ed3d36e7c813"+[[package]]name = "dyn-clone"version = "1.0.20"@@ -1264,6 +1896,15 @@ version = "1.15.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719"+[[package]]+name = "email_address"+version = "0.2.9"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e079f19b08ca6239f47f8ba8509c11cf3ea30095831f7fed61441475edd8c449"+dependencies = [+ "serde",+]+[[package]]name = "encode_unicode"version = "1.0.0"@@ -1276,7 +1917,7 @@ version = "0.8.35"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "75030f3c4f45dafd7586dd6780965a8c7e8e285a5ecb86713e63a79c5b2766f3"dependencies = [- "cfg-if",+ "cfg-if 1.0.4",][[package]]@@ -1292,6 +1933,26 @@ dependencies = ["termcolor",]+[[package]]+name = "equator"+version = "0.4.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "4711b213838dfee0117e3be6ac926007d7f433d7bbe33595975d4190cb07e6fc"+dependencies = [+ "equator-macro",+]++[[package]]+name = "equator-macro"+version = "0.4.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "44f23cf4b44bfce11a86ace86f8a73ffdec849c9fd00a386a53d278bd9e81fb3"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.117",+]+[[package]]name = "equivalent"version = "1.0.2"@@ -1317,13 +1978,50 @@ dependencies = ["cc",]+[[package]]+name = "exr"+version = "1.74.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "4300e043a56aa2cb633c01af81ca8f699a321879a7854d3896a0ba89056363be"+dependencies = [+ "bit_field",+ "half",+ "lebe",+ "miniz_oxide",+ "rayon-core",+ "smallvec",+ "zune-inflate",+]++[[package]]+name = "fancy-regex"+version = "0.13.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "531e46835a22af56d1e3b66f04844bed63158bc094a628bec1d321d9b4c44bf2"+dependencies = [+ "bit-set 0.5.3",+ "regex-automata",+ "regex-syntax 0.8.10",+]+[[package]]name = "fancy-regex"version = "0.14.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "6e24cb5a94bcae1e5408b0effca5cd7172ea3c5755049c5f3af4cd283a165298"dependencies = [- "bit-set",+ "bit-set 0.8.0",+ "regex-automata",+ "regex-syntax 0.8.10",+]++[[package]]+name = "fancy-regex"+version = "0.17.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "72cf461f865c862bb7dc573f643dd6a2b6842f7c30b07882b56bd148cc2761b8"+dependencies = [+ "bit-set 0.8.0","regex-automata","regex-syntax 0.8.10",]@@ -1334,6 +2032,35 @@ version = "2.4.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "9f1f227452a390804cdb637b74a86990f2a7d7ba4b7d5693aac9b4dd6defd8d6"+[[package]]+name = "fax"+version = "0.2.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f05de7d48f37cd6730705cbca900770cab77a89f413d23e100ad7fad7795a0ab"+dependencies = [+ "fax_derive",+]++[[package]]+name = "fax_derive"+version = "0.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a0aca10fb742cb43f9e7bb8467c91aa9bcb8e3ffbc6a6f7389bb93ffc920577d"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.117",+]++[[package]]+name = "fdeflate"+version = "0.3.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1e6853b52649d4ac5c0bd02320cddc5ba956bdb407c4b75a2c6b75bf51500f8c"+dependencies = [+ "simd-adler32",+]+[[package]]name = "figment"version = "0.10.19"@@ -1348,6 +2075,17 @@ dependencies = ["version_check",]+[[package]]+name = "filetime"+version = "0.2.27"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f98844151eee8917efc50bd9e8318cb963ae8b297431495d3f758616ea5c57db"+dependencies = [+ "cfg-if 1.0.4",+ "libc",+ "libredox",+]+[[package]]name = "find-msvc-tools"version = "0.1.9"@@ -1364,6 +2102,17 @@ dependencies = ["miniz_oxide",]+[[package]]+name = "fluent-uri"+version = "0.4.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "bc74ac4d8359ae70623506d512209619e5cf8f347124910440dbc221714b328e"+dependencies = [+ "borrow-or-share",+ "ref-cast",+ "serde",+]+[[package]]name = "fnv"version = "1.0.7"@@ -1406,6 +2155,31 @@ dependencies = ["percent-encoding",]+[[package]]+name = "fraction"+version = "0.15.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0f158e3ff0a1b334408dc9fb811cd99b446986f4d8b741bb08f9df1604085ae7"+dependencies = [+ "lazy_static",+ "num",+]++[[package]]+name = "fs-err"+version = "2.11.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "88a41f105fe1d5b6b34b2055e3dc59bb79b46b48b2040b9e6c7b4b5de097aa41"+dependencies = [+ "autocfg",+]++[[package]]+name = "fs_extra"+version = "1.3.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "42703706b716c37f96a77aea830392ad231f44c9e9a67872fa5548707e11b11c"+[[package]]name = "futures"version = "0.3.32"@@ -1503,6 +2277,15 @@ dependencies = ["thread_local",]+[[package]]+name = "fxhash"+version = "0.2.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c31b6d751ae2c7f11320402d34e41349dd1016f8d5d45e48c4312bc8625af50c"+dependencies = [+ "byteorder",+]+[[package]]name = "generator"version = "0.7.5"@@ -1532,9 +2315,11 @@ version = "0.2.17"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0"dependencies = [- "cfg-if",+ "cfg-if 1.0.4",+ "js-sys","libc","wasi",+ "wasm-bindgen",][[package]]@@ -1543,10 +2328,12 @@ version = "0.3.4"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd"dependencies = [- "cfg-if",+ "cfg-if 1.0.4",+ "js-sys","libc","r-efi 5.3.0","wasip2",+ "wasm-bindgen",][[package]]@@ -1555,7 +2342,7 @@ version = "0.4.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "0de51e6874e94e7bf76d726fc5d13ba782deca734ff60d5bb2fb2607c7406555"dependencies = [- "cfg-if",+ "cfg-if 1.0.4","libc","r-efi 6.0.0","rand_core 0.10.1",@@ -1563,12 +2350,46 @@ dependencies = ["wasip3",]+[[package]]+name = "gif"+version = "0.14.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ee8cfcc411d9adbbaba82fb72661cc1bcca13e8bba98b364e62b2dba8f960159"+dependencies = [+ "color_quant",+ "weezl",+]+[[package]]name = "glob"version = "0.3.3"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "0cc23270f6e1808e30a928bdc84dea0b9b4136a8bc82338574f23baf47bbd280"+[[package]]+name = "gloo-utils"+version = "0.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0b5555354113b18c547c1d3a98fbf7fb32a9ff4f6fa112ce823a21641a0ba3aa"+dependencies = [+ "js-sys",+ "serde",+ "serde_json",+ "wasm-bindgen",+ "web-sys",+]++[[package]]+name = "goblin"+version = "0.8.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1b363a30c165f666402fe6a3024d3bec7ebc898f96a4a23bd1c99f8dbf3f4f47"+dependencies = [+ "log",+ "plain",+ "scroll",+]+[[package]]name = "h2"version = "0.3.27"@@ -1614,12 +2435,41 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "6ea2d84b969582b4b1864a92dc5d27cd2b77b622a8d79306834f1be5ba20d84b"dependencies = ["bytemuck",- "cfg-if",+ "cfg-if 1.0.4","crunchy","num-traits","zerocopy",]+[[package]]+name = "hanashi"+version = "0.1.9"+dependencies = [+ "bindings",+ "fancy-regex 0.17.0",+ "indexmap 2.14.0",+ "libc",+ "llm_json",+ "minijinja",+ "minijinja-contrib",+ "napi",+ "napi-build",+ "napi-derive",+ "openai-harmony",+ "pyo3",+ "regex",+ "serde",+ "serde-wasm-bindgen",+ "serde_json",+ "thiserror 2.0.18",+ "token-stream-parser",+ "tokenizers",+ "tsify",+ "uniffi",+ "wasm-bindgen",+ "wasm-bindgen-futures",+]+[[package]]name = "hashbrown"version = "0.12.3"@@ -1635,6 +2485,17 @@ dependencies = ["foldhash 0.1.5",]+[[package]]+name = "hashbrown"+version = "0.16.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100"+dependencies = [+ "allocator-api2",+ "equivalent",+ "foldhash 0.2.0",+]+[[package]]name = "hashbrown"version = "0.17.0"@@ -1662,6 +2523,12 @@ version = "0.5.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "fc0fef456e4baa96da950455cd02c081ca953b141298e41db3fc7e36b1da849c"+[[package]]+name = "hex"+version = "0.4.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"+[[package]]name = "hf-hub"version = "0.5.0"@@ -1677,7 +2544,7 @@ dependencies = ["native-tls","num_cpus","rand 0.9.4",- "reqwest",+ "reqwest 0.12.28","serde","serde_json","thiserror 2.0.18",@@ -1817,6 +2684,7 @@ dependencies = ["tokio","tokio-rustls","tower-service",+ "webpki-roots",][[package]]@@ -1860,6 +2728,30 @@ dependencies = ["windows-registry",]+[[package]]+name = "iana-time-zone"+version = "0.1.65"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e31bc9ad994ba00e440a8aa5c9ef0ec67d5cb5e5cb0cc7f8b744a35b389cc470"+dependencies = [+ "android_system_properties",+ "core-foundation-sys",+ "iana-time-zone-haiku",+ "js-sys",+ "log",+ "wasm-bindgen",+ "windows-core",+]++[[package]]+name = "iana-time-zone-haiku"+version = "0.1.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f"+dependencies = [+ "cc",+]+[[package]]name = "icu_collections"version = "2.2.0"@@ -1975,6 +2867,56 @@ dependencies = ["icu_properties",]+[[package]]+name = "ifaces"+version = "0.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "fa5cce6b4cae6792378aefb34152be19600949dde0041e7910430022f94b81f1"+dependencies = [+ "libc",+ "nix 0.8.1",+]++[[package]]+name = "image"+version = "0.25.10"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "85ab80394333c02fe689eaf900ab500fbd0c2213da414687ebf995a65d5a6104"+dependencies = [+ "bytemuck",+ "byteorder-lite",+ "color_quant",+ "exr",+ "gif",+ "image-webp",+ "moxcms",+ "num-traits",+ "png",+ "qoi",+ "ravif",+ "rayon",+ "rgb",+ "tiff",+ "zune-core",+ "zune-jpeg",+]++[[package]]+name = "image-webp"+version = "0.2.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "525e9ff3e1a4be2fbea1fdf0e98686a6d98b4d8f937e1bf7402245af1909e8c3"+dependencies = [+ "byteorder-lite",+ "quick-error 2.0.1",+]++[[package]]+name = "imgref"+version = "1.12.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e7c5cedc30da3a610cac6b4ba17597bdf7152cf974e8aab3afb3d54455e371c8"+[[package]]name = "indexmap"version = "1.9.3"@@ -2029,7 +2971,7 @@ version = "0.9.4"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "6654738b8024300cf062d04a1c13c10c8e2cea598ec1c47dc9b6641159429756"dependencies = [- "bitflags",+ "bitflags 2.11.1","crossterm","dyn-clone","fuzzy-matcher",@@ -2037,6 +2979,17 @@ dependencies = ["unicode-width 0.2.2",]+[[package]]+name = "interpolate_name"+version = "0.2.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c34819042dc3d3971c46c2190835914dfbe0c3c13f61449b2997f4e9722dfa60"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.117",+]+[[package]]name = "ipnet"version = "2.12.0"@@ -2121,18 +3074,117 @@ version = "1.0.18"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"+[[package]]+name = "jni"+version = "0.21.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1a87aa2bb7d2af34197c04845522473242e1aa17c12f4935d5856491a7fb8c97"+dependencies = [+ "cesu8",+ "cfg-if 1.0.4",+ "combine",+ "jni-sys 0.3.1",+ "log",+ "thiserror 1.0.69",+ "walkdir",+ "windows-sys 0.45.0",+]++[[package]]+name = "jni-sys"+version = "0.3.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "41a652e1f9b6e0275df1f15b32661cf0d4b78d4d87ddec5e0c3c20f097433258"+dependencies = [+ "jni-sys 0.4.1",+]++[[package]]+name = "jni-sys"+version = "0.4.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c6377a88cb3910bee9b0fa88d4f42e1d2da8e79915598f65fb0c7ee14c878af2"+dependencies = [+ "jni-sys-macros",+]++[[package]]+name = "jni-sys-macros"+version = "0.4.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "38c0b942f458fe50cdac086d2f946512305e5631e720728f2a61aabcd47a6264"+dependencies = [+ "quote",+ "syn 2.0.117",+]++[[package]]+name = "jobserver"+version = "0.1.34"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9afb3de4395d6b3e67a780b6de64b51c978ecf11cb9a462c66be7d4ca9039d33"+dependencies = [+ "getrandom 0.3.4",+ "libc",+]+[[package]]name = "js-sys"version = "0.3.95"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "2964e92d1d9dc3364cae4d718d93f227e3abb088e747d92e0395bfdedf1c12ca"dependencies = [- "cfg-if",+ "cfg-if 1.0.4","futures-util","once_cell","wasm-bindgen",]+[[package]]+name = "json-transform"+version = "0.1.9"+dependencies = [+ "fancy-regex 0.17.0",+ "indexmap 2.14.0",+ "llm_json",+ "regex",+ "serde",+ "serde_json",+ "thiserror 2.0.18",+ "tracing",+ "tracing-subscriber",+ "tracing-tree",+]++[[package]]+name = "jsonschema"+version = "0.46.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "84695c6689b01384700a3d93acecbd07231ee6fff1bf22ae980b4c307e6ddfd5"+dependencies = [+ "ahash",+ "bytecount",+ "data-encoding",+ "email_address",+ "fancy-regex 0.17.0",+ "fraction",+ "getrandom 0.3.4",+ "idna",+ "itoa",+ "num-cmp",+ "num-traits",+ "percent-encoding",+ "referencing",+ "regex",+ "regex-syntax 0.8.10",+ "reqwest 0.13.2",+ "rustls",+ "serde",+ "serde_json",+ "unicode-general-category",+ "uuid-simd",+]+[[package]]name = "lazy_static"version = "1.5.0"@@ -2145,19 +3197,45 @@ version = "0.1.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "09edd9e8b54e49e587e4f6295a7d29c3ea94d469cb40ab8ca70b288248a81db2"+[[package]]+name = "lebe"+version = "0.5.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7a79a3332a6609480d7d0c9eab957bca6b455b91bb84e66d19f5ff66294b85b8"+[[package]]name = "libc"version = "0.2.185"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "52ff2c0fe9bc6cb6b14a0592c2ff4fa9ceb83eea9db979b0487cd054946a2b8f"+[[package]]+name = "libfuzzer-sys"+version = "0.4.12"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f12a681b7dd8ce12bff52488013ba614b869148d54dd79836ab85aafdd53f08d"+dependencies = [+ "arbitrary",+ "cc",+]+[[package]]name = "libloading"version = "0.8.9"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "d7c4b02199fee7c5d21a5ae7d8cfa79a6ef5bb2fc834d6e9058e89c825efdc55"dependencies = [- "cfg-if",+ "cfg-if 1.0.4",+ "windows-link",+]++[[package]]+name = "libloading"+version = "0.9.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "754ca22de805bb5744484a5b151a9e1a8e837d5dc232c2d7d8c2e3492edc8b60"+dependencies = [+ "cfg-if 1.0.4","windows-link",]@@ -2173,7 +3251,10 @@ version = "0.1.16"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "e02f3bb43d335493c96bf3fd3a321600bf6bd07ed34bc64118e9293bdffea46c"dependencies = [+ "bitflags 2.11.1","libc",+ "plain",+ "redox_syscall 0.7.4",][[package]]@@ -2203,6 +3284,17 @@ version = "1.0.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "11d3d7f243d5c5a8b9bb5d6dd2b1602c0cb0b9db1621bafc7ed66e35ff9fe092"+[[package]]+name = "llm_json"+version = "1.0.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8e3a81b4dfc9cbadf5adde6e601f1b8ec0806d2b41da589e40cdc082e8e223b2"+dependencies = [+ "clap",+ "serde_json",+ "thiserror 1.0.69",+]+[[package]]name = "lock_api"version = "0.4.14"@@ -2258,7 +3350,7 @@ version = "0.5.6"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "ff50ecb28bb86013e935fb6683ab1f6d3a20016f123c76fd4c27470076ac30f5"dependencies = [- "cfg-if",+ "cfg-if 1.0.4","generator","scoped-tls","serde",@@ -2267,6 +3359,21 @@ dependencies = ["tracing-subscriber",]+[[package]]+name = "loop9"+version = "0.1.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0fae87c125b03c1d2c0150c90365d7d6bcc53fb73a9acaef207d2d065860f062"+dependencies = [+ "imgref",+]++[[package]]+name = "lru-slab"+version = "0.1.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "112b39cec0b298b6c1999fee3e31427f74f676e4cb9879ed1a121b43661a4154"+[[package]]name = "mach2"version = "0.6.0"@@ -2308,6 +3415,26 @@ dependencies = ["rawpointer",]+[[package]]+name = "maybe-rayon"+version = "0.1.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8ea1f30cedd69f0a2954655f7188c6a834246d2bcf1e315e2ac40c4b24dc9519"+dependencies = [+ "cfg-if 1.0.4",+ "rayon",+]++[[package]]+name = "md-5"+version = "0.10.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d89e7ee0cfbedfc4da3340218492196241d89eefb6dab27de5df917a6d2e78cf"+dependencies = [+ "cfg-if 1.0.4",+ "digest",+]+[[package]]name = "memchr"version = "2.8.0"@@ -2329,6 +3456,12 @@ version = "0.3.3"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "38d1115007560874e373613744c6fba374c17688327a71c1476d1a5954cc857b"+[[package]]+name = "micromap"+version = "0.3.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c2a86d3146ed3995b5913c414f6664344b9617457320782e64f0bb44afd49d74"+[[package]]name = "miette"version = "5.10.0"@@ -2358,14 +3491,26 @@ version = "0.3.17"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a"+[[package]]+name = "mime_guess"+version = "2.0.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f7c44f8e672c00fe5308fa235f821cb4198414e1c77935c1ab6948d3fd78550e"+dependencies = [+ "mime",+ "unicase",+]+[[package]]name = "minijinja"version = "2.19.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "805bfd7352166bae857ee569628b52bcd85a1cecf7810861ebceb1686b72b75d"dependencies = [+ "indexmap 2.14.0","memo-map","serde",+ "serde_json",][[package]]@@ -2437,13 +3582,23 @@ dependencies = ["cxx",]+[[package]]+name = "moxcms"+version = "0.8.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "bb85c154ba489f01b25c0d36ae69a87e4a1c73a72631fc6c0eb6dde34a73e44b"+dependencies = [+ "num-traits",+ "pxfm",+]+[[package]]name = "mtl-rs"version = "0.1.9"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "e851d258c741f92ea3e92824afcfa888bbe814ac23d2825a9352baa5ce4f8ce0"dependencies = [- "bitflags",+ "bitflags 2.11.1","block2","dispatch2","objc2",@@ -2471,6 +3626,92 @@ dependencies = ["version_check",]+[[package]]+name = "nagare"+version = "0.1.9"+dependencies = [+ "chrono",+ "dirs",+ "download-manager",+ "futures",+ "futures-util",+ "indexmap 2.14.0",+ "indicatif",+ "objc2",+ "objc2-foundation",+ "objc2-security",+ "reqwest 0.13.2",+ "serde",+ "serde_json",+ "sysinfo",+ "tempfile",+ "thiserror 2.0.18",+ "tokio",+ "tokio-stream",+ "tracing",+ "tracing-appender",+ "tracing-subscriber",+ "uuid",+]++[[package]]+name = "napi"+version = "3.8.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "fa73b028610e2b26e9e40bd2c8ff8a98e6d7ed5d67d89ebf4bfd2f992616b024"+dependencies = [+ "bitflags 2.11.1",+ "ctor",+ "futures",+ "indexmap 2.14.0",+ "napi-build",+ "napi-sys",+ "nohash-hasher",+ "rustc-hash 2.1.2",+]++[[package]]+name = "napi-build"+version = "2.3.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d376940fd5b723c6893cd1ee3f33abbfd86acb1cd1ec079f3ab04a2a3bc4d3b1"++[[package]]+name = "napi-derive"+version = "3.5.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7430702d3cc05cf55f0a2c9e41d991c3b7a53f91e6146a8f282b1bfc7f3fd133"+dependencies = [+ "convert_case 0.11.0",+ "ctor",+ "napi-derive-backend",+ "proc-macro2",+ "quote",+ "syn 2.0.117",+]++[[package]]+name = "napi-derive-backend"+version = "5.0.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1ca5a083f2c9b49a0c7d33ec75c083498849c6fcc46f5497317faa39ea77f5d5"+dependencies = [+ "convert_case 0.11.0",+ "proc-macro2",+ "quote",+ "semver",+ "syn 2.0.117",+]++[[package]]+name = "napi-sys"+version = "3.2.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8eb602b84d7c1edae45e50bbf1374696548f36ae179dfa667f577e384bb90c2b"+dependencies = [+ "libloading 0.9.0",+]+[[package]]name = "native-tls"version = "0.2.18"@@ -2503,28 +3744,76 @@ dependencies = ["rawpointer",]+[[package]]+name = "new_debug_unreachable"+version = "1.0.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "650eef8c711430f1a879fdd01d4745a7deea475becfb90269c06775983bbf086"++[[package]]+name = "nix"+version = "0.8.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "47e49f6982987135c5e9620ab317623e723bd06738fd85377e8d55f57c8b6487"+dependencies = [+ "bitflags 0.7.0",+ "cfg-if 0.1.10",+ "libc",+ "void",+]+[[package]]name = "nix"version = "0.31.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "5d6d0705320c1e6ba1d912b5e37cf18071b6c2e9b7fa8215a1e8a7651966f5d3"dependencies = [- "bitflags",- "cfg-if",+ "bitflags 2.11.1",+ "cfg-if 1.0.4","cfg_aliases","libc",]+[[package]]+name = "no_std_io2"+version = "0.9.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b51ed7824b6e07d354605f4abb3d9d300350701299da96642ee084f5ce631550"+dependencies = [+ "memchr",+]++[[package]]+name = "nohash-hasher"+version = "0.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2bf50223579dc7cdcfb3bfcacf7069ff68243f8c363f62ffa99cf000a6b9c451"++[[package]]+name = "nom"+version = "7.1.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a"+dependencies = [+ "memchr",+ "minimal-lexical",+]+[[package]]name = "nom"-version = "7.1.3"+version = "8.0.0"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a"+checksum = "df9761775871bdef83bee530e60050f7e54b1105350d6884eb0fb4f46c2f9405"dependencies = ["memchr",- "minimal-lexical",]+[[package]]+name = "noop_proc_macro"+version = "0.3.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0676bb32a98c1a483ce53e500a81ad9c3d5b3f7c920c28c24e9cb0980d0b5bc8"+[[package]]name = "ntapi"version = "0.4.3"@@ -2543,6 +3832,36 @@ dependencies = ["windows-sys 0.61.2",]+[[package]]+name = "num"+version = "0.4.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "35bd024e8b2ff75562e5f34e7f4905839deb4b22955ef5e73d2fea1b9813cb23"+dependencies = [+ "num-bigint",+ "num-complex",+ "num-integer",+ "num-iter",+ "num-rational",+ "num-traits",+]++[[package]]+name = "num-bigint"+version = "0.4.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a5e44f723f1133c9deac646763579fdb3ac745e418f2a7af9cd0c431da1f20b9"+dependencies = [+ "num-integer",+ "num-traits",+]++[[package]]+name = "num-cmp"+version = "0.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "63335b2e2c34fae2fb0aa2cecfd9f0832a1e24b3b32ecec612c3426d46dc8aaa"+[[package]]name = "num-complex"version = "0.4.6"@@ -2558,6 +3877,17 @@ version = "0.2.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "c6673768db2d862beb9b39a78fdcb1a69439615d5794a1be50caa9bc92c81967"+[[package]]+name = "num-derive"+version = "0.4.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ed3955f1a9c7c0c15e092f9c887db08b1fc683305fdf6eb6684f22555355e202"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.117",+]+[[package]]name = "num-integer"version = "0.1.46"@@ -2567,6 +3897,28 @@ dependencies = ["num-traits",]+[[package]]+name = "num-iter"+version = "0.1.45"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1429034a0490724d0075ebb2bc9e875d6503c3cf69e235a8941aa757d83ef5bf"+dependencies = [+ "autocfg",+ "num-integer",+ "num-traits",+]++[[package]]+name = "num-rational"+version = "0.4.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f83d14da390562dca69fc84082e73e548e1ad308d24accdedd2720017cb37824"+dependencies = [+ "num-bigint",+ "num-integer",+ "num-traits",+]+[[package]]name = "num-traits"version = "0.2.19"@@ -2587,6 +3939,18 @@ dependencies = ["libc",]+[[package]]+name = "numtoa"+version = "0.3.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9a6da8d50bd4f4b2e9788c44714a3fa4e465d33fd6a6ad70991db6eb30807dca"++[[package]]+name = "objc-sys"+version = "0.3.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "cdb91bdd390c7ce1a8607f35f3ca7151b65afc0ff5ff3b34fa350f7d7c7e4310"+[[package]]name = "objc2"version = "0.6.4"@@ -2602,7 +3966,7 @@ version = "0.3.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "2a180dd8642fa45cdb7dd721cd4c11b1cadd4929ce112ebd8b9f5803cc79d536"dependencies = [- "bitflags",+ "bitflags 2.11.1","block2","dispatch2","libc",@@ -2621,7 +3985,7 @@ version = "0.3.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "e3e0adef53c21f888deb4fa59fc59f7eb17404926ee8a6f59f5df0fd7f9f3272"dependencies = [- "bitflags",+ "bitflags 2.11.1","block2","libc","objc2",@@ -2644,13 +4008,26 @@ version = "0.3.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "180788110936d59bab6bd83b6060ffdfffb3b922ba1396b312ae795e1de9d81d"dependencies = [- "bitflags",+ "bitflags 2.11.1","libc","objc2","objc2-core-foundation","objc2-foundation",]+[[package]]+name = "objc2-security"+version = "0.3.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "709fe137109bd1e8b5a99390f77a7d8b2961dafc1a1c5db8f2e60329ad6d895a"+dependencies = [+ "bitflags 2.11.1",+ "block2",+ "libc",+ "objc2",+ "objc2-core-foundation",+]+[[package]]name = "once_cell"version = "1.21.4"@@ -2672,7 +4049,7 @@ version = "6.5.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "336b9c63443aceef14bea841b899035ae3abe89b7c486aaf4c5bd8aafedac3f0"dependencies = [- "bitflags",+ "bitflags 2.11.1","libc","once_cell","onig_sys",@@ -2694,14 +4071,38 @@ version = "11.1.5"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "d6790f58c7ff633d8771f42965289203411a5e5c68388703c06e14f24770b41e"+[[package]]+name = "openai-harmony"+version = "0.0.8"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e77e82af451fc95deeb728a40b84db8ee82d341e136c268de415123a560b9b72"+dependencies = [+ "anyhow",+ "base64 0.22.1",+ "bstr",+ "clap",+ "fancy-regex 0.13.0",+ "futures",+ "image",+ "regex",+ "reqwest 0.12.28",+ "rustc-hash 1.1.0",+ "serde",+ "serde_json",+ "serde_with",+ "sha1",+ "sha2",+ "thiserror 2.0.18",+]+[[package]]name = "openssl"version = "0.10.77"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "bfe4646e360ec77dff7dde40ed3d6c5fee52d156ef4a62f53973d38294dad87f"dependencies = [- "bitflags",- "cfg-if",+ "bitflags 2.11.1",+ "cfg-if 1.0.4","foreign-types","libc","once_cell",@@ -2744,6 +4145,12 @@ version = "0.2.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d"+[[package]]+name = "outref"+version = "0.5.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1a80800c0488c3a21695ea981a54918fbb37abf04f4d0720c453632255e2ff0e"+[[package]]name = "page_size"version = "0.6.0"@@ -2770,9 +4177,9 @@ version = "0.9.12"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1"dependencies = [- "cfg-if",+ "cfg-if 1.0.4","libc",- "redox_syscall",+ "redox_syscall 0.5.18","smallvec","windows-link",]@@ -2783,6 +4190,12 @@ version = "1.0.15"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a"+[[package]]+name = "pastey"+version = "0.1.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "35fb2e5f958ec131621fdd531e9fc186ed768cbe395337403ae56c17a74c68ec"+[[package]]name = "pear"version = "0.2.9"@@ -2876,6 +4289,12 @@ version = "0.3.33"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "19f132c84eca552bf34cab8ec81f1c1dcc229b811638f9d283dceabe58c5569e"+[[package]]+name = "plain"+version = "0.2.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b4596b6d070b27117e987119b4dac604f3c58cfb0b191112e24771b2faeac1a6"+[[package]]name = "plotters"version = "0.3.7"@@ -2904,6 +4323,44 @@ dependencies = ["plotters-backend",]+[[package]]+name = "png"+version = "0.18.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "60769b8b31b2a9f263dae2776c37b1b28ae246943cf719eb6946a1db05128a61"+dependencies = [+ "bitflags 2.11.1",+ "crc32fast",+ "fdeflate",+ "flate2",+ "miniz_oxide",+]++[[package]]+name = "poolshark"+version = "0.2.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b456f253445cabecd2b64634e59865b1f531c3a6375878d4e94bc0c513cc89e8"+dependencies = [+ "crossbeam-queue",+ "fxhash",+ "indexmap 2.14.0",+ "poolshark_derive",+ "serde",+ "serde_derive",+ "triomphe",+]++[[package]]+name = "poolshark_derive"+version = "0.1.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2e4b0a2610b718322d012c67426a17a7c21734cec3693ebc8e68f3e28119dba3"+dependencies = [+ "quote",+ "syn 2.0.117",+]+[[package]]name = "portable-atomic"version = "1.13.1"@@ -2999,15 +4456,34 @@ dependencies = ["yansi",]+[[package]]+name = "profiling"+version = "1.0.17"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3eb8486b569e12e2c32ad3e204dbaba5e4b5b216e9367044f25f1dba42341773"+dependencies = [+ "profiling-procmacros",+]++[[package]]+name = "profiling-procmacros"+version = "1.0.17"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "52717f9a02b6965224f95ca2a81e2e0c5c43baacd28ca057577988930b6c3d5b"+dependencies = [+ "quote",+ "syn 2.0.117",+]+[[package]]name = "proptest"version = "1.11.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "4b45fcc2344c680f5025fe57779faef368840d0bd1f42f216291f0dc4ace4744"dependencies = [- "bit-set",- "bit-vec",- "bitflags",+ "bit-set 0.8.0",+ "bit-vec 0.8.0",+ "bitflags 2.11.1","num-traits","rand 0.9.4","rand_chacha 0.9.0",@@ -3018,12 +4494,147 @@ dependencies = ["unarray",]+[[package]]+name = "pxfm"+version = "0.1.29"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e0c5ccf5294c6ccd63a74f1565028353830a9c2f5eb0c682c355c471726a6e3f"++[[package]]+name = "pyo3"+version = "0.28.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "91fd8e38a3b50ed1167fb981cd6fd60147e091784c427b8f7183a7ee32c31c12"+dependencies = [+ "libc",+ "once_cell",+ "portable-atomic",+ "pyo3-build-config",+ "pyo3-ffi",+ "pyo3-macros",+]++[[package]]+name = "pyo3-build-config"+version = "0.28.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e368e7ddfdeb98c9bca7f8383be1648fd84ab466bf2bc015e94008db6d35611e"+dependencies = [+ "target-lexicon",+]++[[package]]+name = "pyo3-ffi"+version = "0.28.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7f29e10af80b1f7ccaf7f69eace800a03ecd13e883acfacc1e5d0988605f651e"+dependencies = [+ "libc",+ "pyo3-build-config",+]++[[package]]+name = "pyo3-macros"+version = "0.28.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "df6e520eff47c45997d2fc7dd8214b25dd1310918bbb2642156ef66a67f29813"+dependencies = [+ "proc-macro2",+ "pyo3-macros-backend",+ "quote",+ "syn 2.0.117",+]++[[package]]+name = "pyo3-macros-backend"+version = "0.28.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c4cdc218d835738f81c2338f822078af45b4afdf8b2e33cbb5916f108b813acb"+dependencies = [+ "heck",+ "proc-macro2",+ "pyo3-build-config",+ "quote",+ "syn 2.0.117",+]++[[package]]+name = "qoi"+version = "0.4.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7f6d64c71eb498fe9eae14ce4ec935c555749aef511cca85b5568910d6e48001"+dependencies = [+ "bytemuck",+]+[[package]]name = "quick-error"version = "1.2.3"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "a1d01941d82fa2ab50be1e79e6714289dd7cde78eba4c074bc5a4374f650dfe0"+[[package]]+name = "quick-error"+version = "2.0.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a993555f31e5a609f617c12db6250dedcac1b0a85076912c436e6fc9b2c8e6a3"++[[package]]+name = "quinn"+version = "0.11.9"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b9e20a958963c291dc322d98411f541009df2ced7b5a4f2bd52337638cfccf20"+dependencies = [+ "bytes",+ "cfg_aliases",+ "pin-project-lite",+ "quinn-proto",+ "quinn-udp",+ "rustc-hash 2.1.2",+ "rustls",+ "socket2 0.6.3",+ "thiserror 2.0.18",+ "tokio",+ "tracing",+ "web-time",+]++[[package]]+name = "quinn-proto"+version = "0.11.14"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "434b42fec591c96ef50e21e886936e66d3cc3f737104fdb9b737c40ffb94c098"+dependencies = [+ "aws-lc-rs",+ "bytes",+ "getrandom 0.3.4",+ "lru-slab",+ "rand 0.9.4",+ "ring",+ "rustc-hash 2.1.2",+ "rustls",+ "rustls-pki-types",+ "slab",+ "thiserror 2.0.18",+ "tinyvec",+ "tracing",+ "web-time",+]++[[package]]+name = "quinn-udp"+version = "0.5.14"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "addec6a0dcad8a8d96a771f815f0eaf55f9d1805756410b39f5fa81332574cbd"+dependencies = [+ "cfg_aliases",+ "libc",+ "once_cell",+ "socket2 0.6.3",+ "tracing",+ "windows-sys 0.52.0",+]+[[package]]name = "quote"version = "1.0.45"@@ -3132,20 +4743,70 @@ dependencies = [][[package]]-name = "rand_xorshift"-version = "0.4.0"+name = "rand_xorshift"+version = "0.4.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "513962919efc330f829edb2535844d1b912b0fbe2ca165d613e4e8788bb05a5a"+dependencies = [+ "rand_core 0.9.5",+]++[[package]]+name = "rangemap"+version = "1.7.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "973443cf09a9c8656b574a866ab68dfa19f0867d0340648c7d2f6a71b8a8ea68"++[[package]]+name = "rav1e"+version = "0.8.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "43b6dd56e85d9483277cde964fd1bdb0428de4fec5ebba7540995639a21cb32b"+dependencies = [+ "aligned-vec",+ "arbitrary",+ "arg_enum_proc_macro",+ "arrayvec",+ "av-scenechange",+ "av1-grain",+ "bitstream-io",+ "built",+ "cfg-if 1.0.4",+ "interpolate_name",+ "itertools 0.14.0",+ "libc",+ "libfuzzer-sys",+ "log",+ "maybe-rayon",+ "new_debug_unreachable",+ "noop_proc_macro",+ "num-derive",+ "num-traits",+ "paste",+ "profiling",+ "rand 0.9.4",+ "rand_chacha 0.9.0",+ "simd_helpers",+ "thiserror 2.0.18",+ "v_frame",+ "wasm-bindgen",+]++[[package]]+name = "ravif"+version = "0.13.0"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "513962919efc330f829edb2535844d1b912b0fbe2ca165d613e4e8788bb05a5a"+checksum = "e52310197d971b0f5be7fe6b57530dcd27beb35c1b013f29d66c1ad73fbbcc45"dependencies = [- "rand_core 0.9.5",+ "avif-serialize",+ "imgref",+ "loop9",+ "quick-error 2.0.1",+ "rav1e",+ "rayon",+ "rgb",]-[[package]]-name = "rangemap"-version = "1.7.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "973443cf09a9c8656b574a866ab68dfa19f0867d0340648c7d2f6a71b8a8ea68"-[[package]]name = "rawpointer"version = "0.2.1"@@ -3189,7 +4850,16 @@ version = "0.5.18"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d"dependencies = [- "bitflags",+ "bitflags 2.11.1",+]++[[package]]+name = "redox_syscall"+version = "0.7.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f450ad9c3b1da563fb6948a8e0fb0fb9269711c9c73d9ea1de5058c79c8d643a"+dependencies = [+ "bitflags 2.11.1",][[package]]@@ -3223,6 +4893,23 @@ dependencies = ["syn 2.0.117",]+[[package]]+name = "referencing"+version = "0.46.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a2d5554bf79f4acf770dc3193b44b2d63b348f5f7b7448a0ea1191b37b620728"+dependencies = [+ "ahash",+ "fluent-uri",+ "getrandom 0.3.4",+ "hashbrown 0.16.1",+ "itoa",+ "micromap",+ "parking_lot",+ "percent-encoding",+ "serde_json",+]+[[package]]name = "regex"version = "1.12.3"@@ -3301,6 +4988,7 @@ dependencies = ["base64 0.22.1","bytes","encoding_rs",+ "futures-channel","futures-core","futures-util","h2 0.4.13",@@ -3314,9 +5002,12 @@ dependencies = ["js-sys","log","mime",+ "mime_guess","native-tls","percent-encoding","pin-project-lite",+ "quinn",+ "rustls","rustls-pki-types","serde","serde_json",@@ -3324,6 +5015,53 @@ dependencies = ["sync_wrapper","tokio","tokio-native-tls",+ "tokio-rustls",+ "tokio-util",+ "tower",+ "tower-http",+ "tower-service",+ "url",+ "wasm-bindgen",+ "wasm-bindgen-futures",+ "wasm-streams 0.4.2",+ "web-sys",+ "webpki-roots",+]++[[package]]+name = "reqwest"+version = "0.13.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ab3f43e3283ab1488b624b44b0e988d0acea0b3214e694730a055cb6b2efa801"+dependencies = [+ "base64 0.22.1",+ "bytes",+ "encoding_rs",+ "futures-channel",+ "futures-core",+ "futures-util",+ "h2 0.4.13",+ "http 1.4.0",+ "http-body 1.0.1",+ "http-body-util",+ "hyper 1.9.0",+ "hyper-rustls",+ "hyper-util",+ "js-sys",+ "log",+ "mime",+ "percent-encoding",+ "pin-project-lite",+ "quinn",+ "rustls",+ "rustls-pki-types",+ "rustls-platform-verifier",+ "serde",+ "serde_json",+ "serde_urlencoded",+ "sync_wrapper",+ "tokio",+ "tokio-rustls","tokio-util","tower","tower-http",@@ -3331,10 +5069,16 @@ dependencies = ["url","wasm-bindgen","wasm-bindgen-futures",- "wasm-streams",+ "wasm-streams 0.5.0","web-sys",]+[[package]]+name = "rgb"+version = "0.8.53"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "47b34b781b31e5d73e9fbc8689c70551fd1ade9a19e3e28cfec8580a79290cc4"+[[package]]name = "rhai"version = "1.24.0"@@ -3342,7 +5086,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "1f9ef5dabe4c0b43d8f1187dc6beb67b53fe607fff7e30c5eb7f71b814b8c2c1"dependencies = ["ahash",- "bitflags",+ "bitflags 2.11.1","num-traits","once_cell","rhai_codegen",@@ -3370,7 +5114,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "a4689e6c2294d81e88dc6261c768b63bc4fcdb852be6d1352498b114f61383b7"dependencies = ["cc",- "cfg-if",+ "cfg-if 1.0.4","getrandom 0.2.17","libc","untrusted",@@ -3459,6 +5203,12 @@ dependencies = ["uncased",]+[[package]]+name = "rustc-hash"+version = "1.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2"+[[package]]name = "rustc-hash"version = "2.1.2"@@ -3480,7 +5230,7 @@ version = "1.1.4"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "b6fe4565b9518b83ef4f91bb47ce29620ca828bd32cb7e408f0062e9930ba190"dependencies = [- "bitflags",+ "bitflags 2.11.1","errno","libc","linux-raw-sys",@@ -3493,6 +5243,7 @@ version = "0.23.38"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "69f9466fb2c14ea04357e91413efb882e2a6d4a406e625449bc0a5d360d53a21"dependencies = [+ "aws-lc-rs","log","once_cell","ring",@@ -3502,21 +5253,62 @@ dependencies = ["zeroize",]+[[package]]+name = "rustls-native-certs"+version = "0.8.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "612460d5f7bea540c490b2b6395d8e34a953e52b491accd6c86c8164c5932a63"+dependencies = [+ "openssl-probe",+ "rustls-pki-types",+ "schannel",+ "security-framework",+]+[[package]]name = "rustls-pki-types"version = "1.14.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "be040f8b0a225e40375822a563fa9524378b9d63112f53e19ffff34df5d33fdd"dependencies = [+ "web-time","zeroize",]+[[package]]+name = "rustls-platform-verifier"+version = "0.6.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1d99feebc72bae7ab76ba994bb5e121b8d83d910ca40b36e0921f53becc41784"+dependencies = [+ "core-foundation 0.10.1",+ "core-foundation-sys",+ "jni",+ "log",+ "once_cell",+ "rustls",+ "rustls-native-certs",+ "rustls-platform-verifier-android",+ "rustls-webpki",+ "security-framework",+ "security-framework-sys",+ "webpki-root-certs",+ "windows-sys 0.61.2",+]++[[package]]+name = "rustls-platform-verifier-android"+version = "0.1.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f87165f0995f63a9fbeea62b64d10b4d9d8e78ec6d7d51fb2125fda7bb36788f"+[[package]]name = "rustls-webpki"version = "0.103.12"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "8279bb85272c9f10811ae6a6c547ff594d6a7f3c6c6b02ee9726d1d0dcfcdd06"dependencies = [+ "aws-lc-rs","ring","rustls-pki-types","untrusted",@@ -3535,7 +5327,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "cc6bf79ff24e648f6da1f8d1f011e9cac26491b619e6b9280f2b47f1774e6ee2"dependencies = ["fnv",- "quick-error",+ "quick-error 1.2.3","tempfile","wait-timeout",]@@ -3564,6 +5356,18 @@ dependencies = ["windows-sys 0.61.2",]+[[package]]+name = "schemars"+version = "0.9.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "4cd191f9397d57d581cddd31014772520aa448f65ef991055d7f61582c65165f"+dependencies = [+ "dyn-clone",+ "ref-cast",+ "serde",+ "serde_json",+]+[[package]]name = "schemars"version = "1.2.1"@@ -3607,13 +5411,33 @@ version = "1.0.9"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "d68f2ec51b097e4c1a75b681a8bec621909b5e91f15bb7b840c4f2f7b01148b2"+[[package]]+name = "scroll"+version = "0.12.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6ab8598aa408498679922eff7fa985c25d58a90771bd6be794434c5277eab1a6"+dependencies = [+ "scroll_derive",+]++[[package]]+name = "scroll_derive"+version = "0.12.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1783eabc414609e28a5ba76aee5ddd52199f7107a0b24c2e9746a1ecc34a683d"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.117",+]+[[package]]name = "security-framework"version = "3.7.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "b7f4bc775c73d9a02cde8bf7b2ec4c9d12743edf609006c7facc23998404cd1d"dependencies = [- "bitflags",+ "bitflags 2.11.1","core-foundation 0.10.1","core-foundation-sys","libc",@@ -3635,6 +5459,10 @@ name = "semver"version = "1.0.28"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd"+dependencies = [+ "serde",+ "serde_core",+][[package]]name = "serde"@@ -3646,6 +5474,17 @@ dependencies = ["serde_derive",]+[[package]]+name = "serde-wasm-bindgen"+version = "0.6.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8302e169f0eddcc139c70f139d19d6467353af16f9fce27e8c30158036a1e16b"+dependencies = [+ "js-sys",+ "serde",+ "wasm-bindgen",+]+[[package]]name = "serde_core"version = "1.0.228"@@ -3683,6 +5522,7 @@ version = "1.0.149"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "83fc039473c5595ace860d8c4fafa220ff474b3fc6bfdb4293327f1a37e94d86"dependencies = [+ "indexmap 2.14.0","itoa","memchr","serde",@@ -3731,13 +5571,61 @@ dependencies = ["serde",]+[[package]]+name = "serde_with"+version = "3.18.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "dd5414fad8e6907dbdd5bc441a50ae8d6e26151a03b1de04d89a5576de61d01f"+dependencies = [+ "base64 0.22.1",+ "chrono",+ "hex",+ "indexmap 1.9.3",+ "indexmap 2.14.0",+ "schemars 0.9.0",+ "schemars 1.2.1",+ "serde_core",+ "serde_json",+ "serde_with_macros",+ "time",+]++[[package]]+name = "serde_with_macros"+version = "3.18.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d3db8978e608f1fe7357e211969fd9abdcae80bac1ba7a3369bb7eb6b404eb65"+dependencies = [+ "darling 0.23.0",+ "proc-macro2",+ "quote",+ "syn 2.0.117",+]++[[package]]+name = "sha1"+version = "0.10.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e3bf829a2d51ab4a5ddf1352d8470c140cadc8301b2ae1789db023f01cedd6ba"+dependencies = [+ "cfg-if 1.0.4",+ "cpufeatures 0.2.17",+ "digest",+]++[[package]]+name = "sha1_smol"+version = "1.0.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "bbfa15b3dddfee50a0fff136974b3e1bde555604ba463834a7eb7deb6417705d"+[[package]]name = "sha2"version = "0.10.9"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283"dependencies = [- "cfg-if",+ "cfg-if 1.0.4","cpufeatures 0.2.17","digest",]@@ -3794,6 +5682,21 @@ version = "0.3.9"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "703d5c7ef118737c72f1af64ad2f6f8c5e1921f818cdcb97b8fe6fc69bf66214"+[[package]]+name = "simd_helpers"+version = "0.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "95890f873bec569a0362c235787f3aca6e1e887302ba4840839bcc6459c42da6"+dependencies = [+ "quote",+]++[[package]]+name = "siphasher"+version = "1.0.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b2aa850e253778c88a04c3d7323b043aeda9d3e30d5971937c1855769763678e"+[[package]]name = "slab"version = "0.4.12"@@ -3817,6 +5720,12 @@ dependencies = ["version_check",]+[[package]]+name = "smawk"+version = "0.3.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b7c388c1b5e93756d0c740965c41e8822f866621d41acbdf6336a6a168f8840c"+[[package]]name = "socket2"version = "0.5.10"@@ -3861,7 +5770,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "5851699c4033c63636f7ea4cf7b7c1f1bf06d0cc03cfb42e711de5a5c46cf326"dependencies = ["base64 0.13.1",- "nom",+ "nom 7.1.3","serde","unicode-segmentation",]@@ -3970,7 +5879,7 @@ version = "0.7.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "a13f3d0daba03132c0aa9767f98351b3488edc2c100cda2d2ec2b04f3d8d3c8b"dependencies = [- "bitflags",+ "bitflags 2.11.1","core-foundation 0.9.4","system-configuration-sys",]@@ -3985,6 +5894,12 @@ dependencies = ["libc",]+[[package]]+name = "target-lexicon"+version = "0.13.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "adb6935a6f5c20170eeceb1a3835a49e12e19d792f6dd344ccc76a985ca5a6ca"+[[package]]name = "tempfile"version = "3.27.0"@@ -4018,6 +5933,15 @@ dependencies = ["syn 2.0.117",]+[[package]]+name = "textwrap"+version = "0.16.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c13547615a44dc9c452a8a534638acdf07120d4b6847c8178705da06306a3057"+dependencies = [+ "smawk",+]+[[package]]name = "thin-vec"version = "0.2.16"@@ -4070,7 +5994,21 @@ version = "1.1.9"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "f60246a4944f24f6e018aa17cdeffb7818b76356965d03b07d6a9886e8962185"dependencies = [- "cfg-if",+ "cfg-if 1.0.4",+]++[[package]]+name = "tiff"+version = "0.11.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b63feaf3343d35b6ca4d50483f94843803b0f51634937cc2ec519fc32232bc52"+dependencies = [+ "fax",+ "flate2",+ "half",+ "quick-error 2.0.1",+ "weezl",+ "zune-jpeg",][[package]]@@ -4133,6 +6071,37 @@ dependencies = ["serde_json",]+[[package]]+name = "tinyvec"+version = "1.11.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3e61e67053d25a4e82c844e8424039d9745781b3fc4f32b8d55ed50f5f667ef3"+dependencies = [+ "tinyvec_macros",+]++[[package]]+name = "tinyvec_macros"+version = "0.1.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20"++[[package]]+name = "token-stream-parser"+version = "0.1.9"+dependencies = [+ "indexmap 2.14.0",+ "json-transform",+ "jsonschema",+ "serde",+ "serde_json",+ "thiserror 2.0.18",+ "tokenizers",+ "tracing",+ "tracing-subscriber",+ "tracing-tree",+]+[[package]]name = "tokenizers"version = "0.22.2"@@ -4145,7 +6114,7 @@ dependencies = ["dary_heap","derive_builder","esaxx-rs",- "fancy-regex",+ "fancy-regex 0.14.0","getrandom 0.3.4","indicatif","itertools 0.14.0",@@ -4225,6 +6194,7 @@ dependencies = ["futures-core","pin-project-lite","tokio",+ "tokio-util",][[package]]@@ -4341,7 +6311,7 @@ version = "0.6.8"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "d4e6559d53cc268e5031cd8429d05415bc4cb4aefc4aa5d6cc35fbf5b924a1f8"dependencies = [- "bitflags",+ "bitflags 2.11.1","bytes","futures-util","http 1.4.0",@@ -4376,6 +6346,18 @@ dependencies = ["tracing-core",]+[[package]]+name = "tracing-appender"+version = "0.2.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "786d480bce6247ab75f005b14ae1624ad978d3029d9113f0a22fa1ac773faeaf"+dependencies = [+ "crossbeam-channel",+ "thiserror 2.0.18",+ "time",+ "tracing-subscriber",+]+[[package]]name = "tracing-attributes"version = "0.1.31"@@ -4426,12 +6408,60 @@ dependencies = ["tracing-log",]+[[package]]+name = "tracing-tree"+version = "0.4.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ac87aa03b6a4d5a7e4810d1a80c19601dbe0f8a837e9177f23af721c7ba7beec"+dependencies = [+ "nu-ansi-term",+ "tracing-core",+ "tracing-log",+ "tracing-subscriber",+]++[[package]]+name = "triomphe"+version = "0.1.15"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "dd69c5aa8f924c7519d6372789a74eac5b94fb0f8fcf0d4a97eb0bfc3e785f39"+dependencies = [+ "serde",+ "stable_deref_trait",+]+[[package]]name = "try-lock"version = "0.2.5"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b"+[[package]]+name = "tsify"+version = "0.5.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8ec5505497c87f1c050b4392d3f11b49a04537fcb9dc0da57bc0af168a6331f2"+dependencies = [+ "gloo-utils",+ "serde",+ "serde-wasm-bindgen",+ "serde_json",+ "tsify-macros",+ "wasm-bindgen",+]++[[package]]+name = "tsify-macros"+version = "0.5.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9fc2c44dc9fe4baf55b88e032621b7a11b215a1f0a7de8d0aa04367207d915bc"+dependencies = [+ "proc-macro2",+ "quote",+ "serde_derive_internals",+ "syn 2.0.117",+]+[[package]]name = "typenum"version = "1.19.0"@@ -4469,6 +6499,18 @@ dependencies = ["version_check",]+[[package]]+name = "unicase"+version = "2.9.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "dbc4bc3a9f746d862c45cb89d705aa10f187bb96c76001afab07a0d35ce60142"++[[package]]+name = "unicode-general-category"+version = "1.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0b993bddc193ae5bd0d623b49ec06ac3e9312875fdae725a975c51db1cc1677f"+[[package]]name = "unicode-ident"version = "1.0.24"@@ -4514,6 +6556,125 @@ version = "0.1.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "39ec24b3121d976906ece63c9daad25b85969647682eee313cb5779fdd69e14e"+[[package]]+name = "uniffi"+version = "0.31.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "dc5f2297ee5b893405bed1a6929faec4713a061df158ecf5198089f23910d470"+dependencies = [+ "anyhow",+ "cargo_metadata",+ "uniffi_bindgen",+ "uniffi_core",+ "uniffi_macros",+ "uniffi_pipeline",+]++[[package]]+name = "uniffi_bindgen"+version = "0.31.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8bc0c60a9607e7ab77a2ad47ec5530178015014839db25af7512447d2238016c"+dependencies = [+ "anyhow",+ "askama",+ "camino",+ "cargo_metadata",+ "fs-err",+ "glob",+ "goblin",+ "heck",+ "indexmap 2.14.0",+ "once_cell",+ "serde",+ "tempfile",+ "textwrap",+ "toml 0.9.12+spec-1.1.0",+ "uniffi_internal_macros",+ "uniffi_meta",+ "uniffi_pipeline",+ "uniffi_udl",+]++[[package]]+name = "uniffi_core"+version = "0.31.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "77baf5d539fe2e1ad6805e942dbc5dbdeb2b83eb5f2b3a6535d422ca4b02a12f"+dependencies = [+ "anyhow",+ "bytes",+ "once_cell",+ "static_assertions",+]++[[package]]+name = "uniffi_internal_macros"+version = "0.31.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b4b42137524f4be6400fcaca9d02c1d4ecb6ad917e4013c0b93235526d8396e5"+dependencies = [+ "anyhow",+ "indexmap 2.14.0",+ "proc-macro2",+ "quote",+ "syn 2.0.117",+]++[[package]]+name = "uniffi_macros"+version = "0.31.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d9273ec45330d8fe9a3701b7b983cea7a4e218503359831967cb95d26b873561"+dependencies = [+ "camino",+ "fs-err",+ "once_cell",+ "proc-macro2",+ "quote",+ "serde",+ "syn 2.0.117",+ "toml 0.9.12+spec-1.1.0",+ "uniffi_meta",+]++[[package]]+name = "uniffi_meta"+version = "0.31.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "431d2f443e7828a6c29d188de98b6771a6491ee98bba2d4372643bf93f988a18"+dependencies = [+ "anyhow",+ "siphasher",+ "uniffi_internal_macros",+ "uniffi_pipeline",+]++[[package]]+name = "uniffi_pipeline"+version = "0.31.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "761ef74f6175e15603d0424cc5f98854c5baccfe7bf4ccb08e5816f9ab8af689"+dependencies = [+ "anyhow",+ "heck",+ "indexmap 2.14.0",+ "tempfile",+ "uniffi_internal_macros",+]++[[package]]+name = "uniffi_udl"+version = "0.31.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "68773ec0e1c067b6505a73bbf6a5782f31a7f9209333a0df97b87565c46bf370"+dependencies = [+ "anyhow",+ "textwrap",+ "uniffi_meta",+ "weedle2",+]+[[package]]name = "unit-prefix"version = "0.5.2"@@ -4600,65 +6761,42 @@ checksum = "5ac8b6f42ead25368cf5b098aeb3dc8a1a2c05a3eee8a9a1a68c640edbfc79d9"dependencies = ["getrandom 0.4.2","js-sys",+ "sha1_smol","wasm-bindgen",]+[[package]]+name = "uuid-simd"+version = "0.8.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "23b082222b4f6619906941c17eb2297fff4c2fb96cb60164170522942a200bd8"+dependencies = [+ "outref",+ "vsimd",+]+[[package]]name = "uzu"version = "0.1.9"dependencies = [- "anyhow",- "async-trait",- "bindgen",- "blake3",- "bytemuck",- "bytesize",- "cbindgen",- "clang-ast",- "comfy-table",- "criterion",- "criterion-macro",- "depfile",- "dsl",- "futures",- "half",- "indicatif",- "is_close",- "itertools 0.14.0",- "libc",- "memmap2",- "minijinja",- "minijinja-contrib",- "mtl-rs",- "ndarray",- "num-traits",- "objc2",- "objc2-foundation",- "prettyplease",- "proc-macro2",- "proptest",- "quote",- "rand 0.10.1",- "rand_distr",- "rangemap",- "regex",- "rhai",- "rustix",- "schemars",+ "backend-uzu",+ "dotenvy",+ "nagare","serde",- "serde_json",- "serde_json5",- "syn 2.0.117",- "sysinfo",- "tempfile",- "test-tag","thiserror 2.0.18",- "tokenizers","tokio",- "walkdir",- "xgrammar-rs",- "xxhash-rust",- "zerocopy",+ "tokio-stream",+]++[[package]]+name = "v_frame"+version = "0.3.9"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "666b7727c8875d6ab5db9533418d7c764233ac9c0cff1d469aec8fa127597be2"+dependencies = [+ "aligned-vec",+ "num-traits",+ "wasm-bindgen",][[package]]@@ -4679,6 +6817,18 @@ version = "0.9.5"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a"+[[package]]+name = "void"+version = "1.0.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6a02e4885ed3bc0f2de90ea6dd45ebcbb66dacffe03547fadbb0eeae2770887d"++[[package]]+name = "vsimd"+version = "0.8.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5c3082ca00d5a5ef149bb8b555a72ae84c9c59f7250f013ac822ac2e49b19c64"+[[package]]name = "wait-timeout"version = "0.2.1"@@ -4737,9 +6887,11 @@ version = "0.2.118"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "0bf938a0bacb0469e83c1e148908bd7d5a6010354cf4fb73279b7447422e3a89"dependencies = [- "cfg-if",+ "cfg-if 1.0.4","once_cell","rustversion",+ "serde",+ "serde_json","wasm-bindgen-macro","wasm-bindgen-shared",]@@ -4821,13 +6973,26 @@ dependencies = ["web-sys",]+[[package]]+name = "wasm-streams"+version = "0.5.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9d1ec4f6517c9e11ae630e200b2b65d193279042e28edd4a2cda233e46670bbb"+dependencies = [+ "futures-util",+ "js-sys",+ "wasm-bindgen",+ "wasm-bindgen-futures",+ "web-sys",+]+[[package]]name = "wasmparser"version = "0.244.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "47b807c72e1bac69382b3a6fb3dbe8ea4c0ed87ff5629b8685ae6b9a611028fe"dependencies = [- "bitflags",+ "bitflags 2.11.1","hashbrown 0.15.5","indexmap 2.14.0","semver",@@ -4871,6 +7036,21 @@ dependencies = ["rustls-pki-types",]+[[package]]+name = "weedle2"+version = "5.0.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "998d2c24ec099a87daf9467808859f9d82b61f1d9c9701251aea037f514eae0e"+dependencies = [+ "nom 7.1.3",+]++[[package]]+name = "weezl"+version = "0.1.12"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a28ac98ddc8b9274cb41bb4d9d4d5c425b6020c50c46f25559911905610b4a88"+[[package]]name = "winapi"version = "0.3.9"@@ -5023,6 +7203,15 @@ dependencies = ["windows-link",]+[[package]]+name = "windows-sys"+version = "0.45.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "75283be5efb2831d37ea142365f009c02ec203cd29a3ebecbc093d52315b66d0"+dependencies = [+ "windows-targets 0.42.2",+]+[[package]]name = "windows-sys"version = "0.52.0"@@ -5041,6 +7230,21 @@ dependencies = ["windows-link",]+[[package]]+name = "windows-targets"+version = "0.42.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8e5180c00cd44c9b1c88adb3693291f1cd93605ded80c250a75d472756b4d071"+dependencies = [+ "windows_aarch64_gnullvm 0.42.2",+ "windows_aarch64_msvc 0.42.2",+ "windows_i686_gnu 0.42.2",+ "windows_i686_msvc 0.42.2",+ "windows_x86_64_gnu 0.42.2",+ "windows_x86_64_gnullvm 0.42.2",+ "windows_x86_64_msvc 0.42.2",+]+[[package]]name = "windows-targets"version = "0.48.5"@@ -5081,6 +7285,12 @@ dependencies = ["windows-link",]+[[package]]+name = "windows_aarch64_gnullvm"+version = "0.42.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "597a5118570b68bc08d8d59125332c54f1ba9d9adeedeef5b99b02ba2b0698f8"+[[package]]name = "windows_aarch64_gnullvm"version = "0.48.5"@@ -5093,6 +7303,12 @@ version = "0.52.6"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"+[[package]]+name = "windows_aarch64_msvc"+version = "0.42.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e08e8864a60f06ef0d0ff4ba04124db8b0fb3be5776a5cd47641e942e58c4d43"+[[package]]name = "windows_aarch64_msvc"version = "0.48.5"@@ -5105,6 +7321,12 @@ version = "0.52.6"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"+[[package]]+name = "windows_i686_gnu"+version = "0.42.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c61d927d8da41da96a81f029489353e68739737d3beca43145c8afec9a31a84f"+[[package]]name = "windows_i686_gnu"version = "0.48.5"@@ -5123,6 +7345,12 @@ version = "0.52.6"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"+[[package]]+name = "windows_i686_msvc"+version = "0.42.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "44d840b6ec649f480a41c8d80f9c65108b92d89345dd94027bfe06ac444d1060"+[[package]]name = "windows_i686_msvc"version = "0.48.5"@@ -5135,6 +7363,12 @@ version = "0.52.6"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"+[[package]]+name = "windows_x86_64_gnu"+version = "0.42.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8de912b8b8feb55c064867cf047dda097f92d51efad5b491dfb98f6bbb70cb36"+[[package]]name = "windows_x86_64_gnu"version = "0.48.5"@@ -5147,6 +7381,12 @@ version = "0.52.6"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"+[[package]]+name = "windows_x86_64_gnullvm"+version = "0.42.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "26d41b46a36d453748aedef1486d5c7a85db22e56aff34643984ea85514e94a3"+[[package]]name = "windows_x86_64_gnullvm"version = "0.48.5"@@ -5159,6 +7399,12 @@ version = "0.52.6"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"+[[package]]+name = "windows_x86_64_msvc"+version = "0.42.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9aec5da331524158c6d1a4ac0ab1541149c0b9505fde06423b02f5ef0106b9f0"+[[package]]name = "windows_x86_64_msvc"version = "0.48.5"@@ -5244,7 +7490,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "9d66ea20e9553b30172b5e831994e35fbde2d165325bec84fc43dbf6f4eb9cb2"dependencies = ["anyhow",- "bitflags",+ "bitflags 2.11.1","indexmap 2.14.0","log","serde",@@ -5302,6 +7548,12 @@ version = "0.8.15"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "fdd20c5420375476fbd4394763288da7eb0cc0b8c11deed431a91562af7335d3"+[[package]]+name = "y4m"+version = "0.8.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7a5a4b21e1a62b67a2970e6831bc091d7b87e119e7f9791aef9702e3bef04448"+[[package]]name = "yansi"version = "1.0.1"@@ -5419,3 +7671,27 @@ name = "zmij"version = "1.0.21"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "b8848ee67ecc8aedbaf3e4122217aff892639231befc6a1b58d29fff4c2cabaa"++[[package]]+name = "zune-core"+version = "0.5.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "cb8a0807f7c01457d0379ba880ba6322660448ddebc890ce29bb64da71fb40f9"++[[package]]+name = "zune-inflate"+version = "0.2.54"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "73ab332fe2f6680068f3582b16a24f90ad7096d5d39b974d1c0aff0125116f02"+dependencies = [+ "simd-adler32",+]++[[package]]+name = "zune-jpeg"+version = "0.5.15"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "27bc9d5b815bc103f142aa054f561d9187d191692ec7c2d1e2b4737f8dbd7296"+dependencies = [+ "zune-core",+]diff --git a/Cargo.toml b/Cargo.tomlindex 8270ef506..a1a578ed2 100644--- a/Cargo.toml+++ b/Cargo.toml@@ -1,5 +1,17 @@[workspace]-members = ["crates/cli", "crates/uzu", "crates/benchmarks", "crates/dsl"]+members = [+ "crates/dsl",+ "crates/bindings",+ "crates/json-transform",+ "crates/token-stream-parser",+ "crates/hanashi",+ "crates/nagare",+ "crates/download-manager",+ "crates/backend-uzu",+ "crates/uzu",+ "crates/benchmarks",+ "crates/cli",+]resolver = "3"[workspace.package]@@ -11,8 +23,15 @@ authors = ["Mirai Tech <https://trymirai.com>"]repository = "https://github.com/trymirai/uzu"[workspace.dependencies]-benchmarks = { path = "crates/benchmarks", default-features = false }dsl = { path = "crates/dsl" }+bindings = { path = "crates/bindings", default-features = false }+json-transform = { path = "crates/json-transform", default-features = false }+token-stream-parser = { path = "crates/token-stream-parser", default-features = false }+hanashi = { path = "crates/hanashi", default-features = false }+nagare = { path = "crates/nagare", default-features = false }+download-manager = { path = "crates/download-manager", default-features = false }+benchmarks = { path = "crates/benchmarks", default-features = false }+backend-uzu = { path = "crates/backend-uzu", default-features = false }uzu = { path = "crates/uzu", default-features = false }xgrammar = { package = "xgrammar-rs", version = "0.1", features = ["hf"] }half = { version = "2.7", features = ["bytemuck", "num-traits"] }@@ -20,9 +39,12 @@ ndarray = "0.17"serde = { version = "1.0", features = ["derive"] }serde_json = "1.0"thiserror = "2.0"-tokenizers = { version = "0.22", features = ["fancy-regex"], default-features = false }-objc2 = "0.6"-objc2-foundation = "0.3"+tokenizers = { version = "0.22", features = [+ "fancy-regex",+], default-features = false }+objc2 = "0.6.4"+objc2-foundation = "0.3.2"+objc2-security = "0.3.2"metal = { package = "mtl-rs", version = "0.1" }block2 = "0.6"bytemuck = "1.23"@@ -32,9 +54,10 @@ xxhash-rust = "0.8.15"memmap2 = "0.9.8"num-traits = "0.2"regex = "1.12"+fancy-regex = "0.17.0"libc = "0.2"-minijinja = "2.17"-minijinja-contrib = { version = "2.17", features = ["pycompat"] }+minijinja = { version = "2.17.0", features = ["json", "preserve_order"] }+minijinja-contrib = { version = "2.17.0", features = ["pycompat"] }clap = { version = "4.6", features = ["derive"] }rand = "0.10"rand_distr = "0.6.0"@@ -66,7 +89,7 @@ indicatif = "0.18"inquire = "0.9"console = "0.16"rocket = { version = "0.5", features = ["json"] }-uuid = { version = "1.20", features = ["v4"] }+uuid = { version = "1.20", features = ["v4", "v5"] }comfy-table = { version = "7.2", default-features = false }autocxx = "0.30"cxx = "1.0"@@ -77,14 +100,46 @@ proptest = { version = "1.10", default-features = false, features = ["std"] }criterion = { version = "0.8.2", default-features = false }criterion-macro = "0.4.0"rustix = "1.1.4"+indexmap = { version = "2.13.0", features = ["serde"] }+tracing = "0.1.44"+tracing-subscriber = { version = "0.3.22", features = ["env-filter"] }+tracing-tree = "0.4.1"+tracing-appender = "0.2.4"+llm_json = "1.0.2"+tokio-stream = { version = "0.1.18", features = ["sync"] }+futures-util = "0.3.31"+async-fetcher = "0.12"+reqwest = { version = "0.13.2", features = [+ "json",+ "stream",+ "blocking",+ "query",+] }+tokio-util = "0.7.17"+async-shutdown = "0.2.2"+objc-sys = "0.3.5"+crc32c = "0.6.8"+base64 = "0.22.1"+chrono = { version = "0.4.42", features = ["serde"] }+jsonschema = "0.46.0"+uniffi = "0.31.0"+napi = { version = "3.8.3", features = ["napi10", "object_indexmap"] }+napi-derive = "3.5.2"+napi-build = "2.3.1"+pyo3 = { version = "0.28.2", features = ["extension-module", "abi3-py38"] }+wasm-bindgen = { version = "0.2.114", features = ["serde-serialize"] }+serde-wasm-bindgen = "0.6.5"+wasm-bindgen-futures = "0.4.64"+tsify = { version = "0.5.6", features = ["js"] }+openai-harmony = "0.0.8"+dirs = "6.0.0"+dotenvy = "0.15.7"-# optimize the build script in debug builds[profile.dev.build-override]opt-level = 3[profile.release]lto = "thin"-# optimize tests[profile.test]opt-level = 2diff --git a/README.md b/README.mdindex 6af39ab3e..53f221b85 100644--- a/README.md+++ b/README.md@@ -33,12 +33,12 @@ For a detailed explanation of the architecture, please refer to the [documentatiOr you can download any supported model that has already been converted using:```bash-cd ./tools/helpers/-uv run main.py list-models # show the list of supported models-uv run main.py download-model {REPO_ID} # download a specific model using repo_id+cd ./tools/+uv run downloader list # show the list of supported models+uv run downloader download {REPO_ID} # download a specific model using repo_id```-After that, you can find the downloaded model at `./models/{VERSION}/`.+After that, you can find the downloaded model at `./workspace/models/{VERSION}/`.Alternatively, you can export a specific model yourself with [lalamo](https://github.com/trymirai/lalamo):@@ -133,7 +133,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {To run benchmarks, you can use the following command:```bash-cargo run --release -p cli -- bench ./models/{ENGINE_VERSION}/{MODEL_NAME} ./models/{ENGINE_VERSION}/{MODEL_NAME}/benchmark_task.json ./models/{ENGINE_VERSION}/{MODEL_NAME}/benchmark_result.json+cargo run --release -p cli -- bench ./workspace/models/{ENGINE_VERSION}/{MODEL_NAME} ./workspace/models/{ENGINE_VERSION}/{MODEL_NAME}/benchmark_task.json ./workspace/models/{ENGINE_VERSION}/{MODEL_NAME}/benchmark_result.json````benchmark_task.json` will be automatically generated after the model is downloaded via `./tools/helpers/`, as described earlier.diff --git a/agents/AGENTS.md b/agents/AGENTS.mdindex de13df6ac..672c2160d 100644--- a/agents/AGENTS.md+++ b/agents/AGENTS.md@@ -17,6 +17,7 @@ The rules below are CRITICAL. Each rule should be respected. Rules can only be o- Before using any function from an external library, agent thoroughly inspects the code or documentation for the function to ensure that it uses it correctly.- When encountering an error, agent never rushes to quickly fix it. Instead, it uses the scientific method to understand the source of the error: comes up with hypotheses and tests them by performing a series of experiments. It only attempts to fix the error once the hypothesis has been sufficiently validated.- Agent avoids creating .md files with explanations unless explicitly requested by the user.+- When receiving general recommendations from the user, immediately add them to agents/AGENTS.md under the appropriate section.## General coding guidelines@@ -47,6 +48,21 @@ The rules below are CRITICAL. Each rule should be respected. Rules can only be o- Prefer `Box<[T]>` to `Vec<T>` if the contents of the container are not going to change.- Avoid mutable variables as much as possible. Use iterator expressions to collect data into containers.- For calling API that was never used before, read the sources of the installed dependencies, otherwise, search in docs.rs.+- Avoid inline imports in trait bounds or function signatures; always import with `use` at the top of the file+- In sub-modules use `mod ...;` declarations with explicit `pub use module::{Item1, Item2}` — never global `pub use module::*`+- Format with `cargo +nightly fmt` to enable unstable rustfmt features+- Use full names, never abbreviate (e.g. `GroupDefinition` not `GroupDef`, `definition` not `def`)+- Avoid excessive comments; code should be self-explanatory+- Always use descriptive variable names; never single-letter names like `a`, `b`, `i`, `s`+- Do not extract helper methods that are only called from one place; inline the logic instead+- Avoid `super::` imports; always use `crate::` level imports+- Derive `Serialize`, `Deserialize`, `Clone`, `Debug`, `PartialEq`, `Eq`, `Hash` on all data types where applicable; all configs must be `Serialize`/`Deserialize`+- In recursive structures, prefer the base type name for child collections (e.g., `groups: Vec<Group>` not `children: Vec<Group>`)+- Never panic or force unwrap in library code; use typed errors with `thiserror`; panics/unwraps are only acceptable in tests+- All tests in `tests/` folder, named `test_<module>.rs`; test functions named `test_<module>_<behavior>`+- Shared test helpers in `tests/helpers/`; avoid duplicating helpers between test files+- Move dependencies to `[dev-dependencies]` when only used in tests+- Always check for unused dependencies and imports## Python coding rulesdiff --git a/crates/backend-uzu/Cargo.toml b/crates/backend-uzu/Cargo.tomlnew file mode 100644index 000000000..a008b2b2b--- /dev/null+++ b/crates/backend-uzu/Cargo.toml@@ -0,0 +1,113 @@+[package]+name = "backend-uzu"+version.workspace = true+edition.workspace = true+rust-version.workspace = true+license.workspace = true+authors.workspace = true+repository.workspace = true+build = "build/main.rs"++[dependencies]+dsl.workspace = true+half.workspace = true+ndarray.workspace = true+serde.workspace = true+serde_json.workspace = true+thiserror.workspace = true+tokenizers.workspace = true+rangemap.workspace = true+bytemuck.workspace = true+zerocopy = { workspace = true, features = ["derive"] }+xxhash-rust = { workspace = true, features = ["xxh3"] }+memmap2.workspace = true+num-traits.workspace = true+regex.workspace = true+libc.workspace = true+minijinja.workspace = true+minijinja-contrib.workspace = true+rand.workspace = true+sysinfo.workspace = true+itertools.workspace = true+schemars.workspace = true+rustix.workspace = true++# metal on macos requires objc2, bytesize, metal+[target.'cfg(any(target_os = "macos", target_os = "ios", target_os = "tvos", target_os = "visionos"))'.dependencies]+objc2 = { workspace = true, optional = true }+objc2-foundation = { workspace = true, optional = true }+bytesize = { workspace = true, optional = true }+metal = { workspace = true, optional = true }++# grammar on non-wasm requires xgrammar+[target.'cfg(not(target_arch = "wasm32"))'.dependencies]+xgrammar = { workspace = true, optional = true }++[dev-dependencies]+test-tag.workspace = true+proptest.workspace = true+criterion.workspace = true+criterion-macro.workspace = true+rand_distr.workspace = true+is_close.workspace = true+serde_json5.workspace = true+schemars.workspace = true+comfy-table.workspace = true+indicatif.workspace = true++[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]+criterion = { workspace = true, default-features = true }+proptest = { workspace = true, default-features = true }++[build-dependencies]+anyhow.workspace = true+async-trait.workspace = true+bindgen.workspace = true+walkdir.workspace = true+depfile.workspace = true+tempfile.workspace = true+serde.workspace = true+serde_json = { workspace = true, features = ["unbounded_depth"] }+futures.workspace = true+tokio.workspace = true+blake3.workspace = true+quote.workspace = true+proc-macro2.workspace = true+syn.workspace = true+prettyplease.workspace = true+itertools.workspace = true+cbindgen.workspace = true+rhai.workspace = true++# metal on macos requires clang-ast for dsl build+[target.'cfg(any(target_os = "macos", target_os = "ios", target_os = "tvos", target_os = "visionos"))'.build-dependencies]+clang-ast = { workspace = true, optional = true }++[features]+default = ["metal", "grammar"]++metal = [+ "dep:clang-ast",+ "dep:objc2",+ "dep:objc2-foundation",+ "dep:bytesize",+ "dep:metal",+]+grammar = ["dep:xgrammar"]+tracing = []++[[test]]+name = "integration"+path = "tests/integration/mod.rs"++[[test]]+name = "kernel"+path = "tests/unit/kernel/test_entry.rs"++[[bench]]+name = "kernel"+path = "tests/unit/kernel/bench_entry.rs"++[[test]]+name = "performance"+path = "tests/performance/mod.rs"diff --git a/crates/uzu/build/common/caching.rs b/crates/backend-uzu/build/common/caching.rssimilarity index 100%rename from crates/uzu/build/common/caching.rsrename to crates/backend-uzu/build/common/caching.rsdiff --git a/crates/uzu/build/common/codegen.rs b/crates/backend-uzu/build/common/codegen.rssimilarity index 100%rename from crates/uzu/build/common/codegen.rsrename to crates/backend-uzu/build/common/codegen.rsdiff --git a/crates/uzu/build/common/compiler.rs b/crates/backend-uzu/build/common/compiler.rssimilarity index 100%rename from crates/uzu/build/common/compiler.rsrename to crates/backend-uzu/build/common/compiler.rsdiff --git a/crates/uzu/build/common/constraints.rs b/crates/backend-uzu/build/common/constraints.rssimilarity index 100%rename from crates/uzu/build/common/constraints.rsrename to crates/backend-uzu/build/common/constraints.rsdiff --git a/crates/uzu/build/common/envs.rs b/crates/backend-uzu/build/common/envs.rssimilarity index 100%rename from crates/uzu/build/common/envs.rsrename to crates/backend-uzu/build/common/envs.rsdiff --git a/crates/uzu/build/common/gpu_types/item_enum.rs b/crates/backend-uzu/build/common/gpu_types/item_enum.rssimilarity index 100%rename from crates/uzu/build/common/gpu_types/item_enum.rsrename to crates/backend-uzu/build/common/gpu_types/item_enum.rsdiff --git a/crates/uzu/build/common/gpu_types/item_struct.rs b/crates/backend-uzu/build/common/gpu_types/item_struct.rssimilarity index 100%rename from crates/uzu/build/common/gpu_types/item_struct.rsrename to crates/backend-uzu/build/common/gpu_types/item_struct.rsdiff --git a/crates/uzu/build/common/gpu_types/mod.rs b/crates/backend-uzu/build/common/gpu_types/mod.rssimilarity index 100%rename from crates/uzu/build/common/gpu_types/mod.rsrename to crates/backend-uzu/build/common/gpu_types/mod.rsdiff --git a/crates/uzu/build/common/kernel.rs b/crates/backend-uzu/build/common/kernel.rssimilarity index 100%rename from crates/uzu/build/common/kernel.rsrename to crates/backend-uzu/build/common/kernel.rsdiff --git a/crates/uzu/build/common/logging.rs b/crates/backend-uzu/build/common/logging.rssimilarity index 100%rename from crates/uzu/build/common/logging.rsrename to crates/backend-uzu/build/common/logging.rsdiff --git a/crates/uzu/build/common/mangling.rs b/crates/backend-uzu/build/common/mangling.rssimilarity index 100%rename from crates/uzu/build/common/mangling.rsrename to crates/backend-uzu/build/common/mangling.rsdiff --git a/crates/uzu/build/common/mod.rs b/crates/backend-uzu/build/common/mod.rssimilarity index 100%rename from crates/uzu/build/common/mod.rsrename to crates/backend-uzu/build/common/mod.rsdiff --git a/crates/uzu/build/common/traitgen.rs b/crates/backend-uzu/build/common/traitgen.rssimilarity index 100%rename from crates/uzu/build/common/traitgen.rsrename to crates/backend-uzu/build/common/traitgen.rsdiff --git a/crates/uzu/build/cpu/compiler.rs b/crates/backend-uzu/build/cpu/compiler.rssimilarity index 100%rename from crates/uzu/build/cpu/compiler.rsrename to crates/backend-uzu/build/cpu/compiler.rsdiff --git a/crates/uzu/build/cpu/mod.rs b/crates/backend-uzu/build/cpu/mod.rssimilarity index 100%rename from crates/uzu/build/cpu/mod.rsrename to crates/backend-uzu/build/cpu/mod.rsdiff --git a/crates/uzu/build/main.rs b/crates/backend-uzu/build/main.rssimilarity index 100%rename from crates/uzu/build/main.rsrename to crates/backend-uzu/build/main.rsdiff --git a/crates/uzu/build/metal/ast.rs b/crates/backend-uzu/build/metal/ast.rssimilarity index 100%rename from crates/uzu/build/metal/ast.rsrename to crates/backend-uzu/build/metal/ast.rsdiff --git a/crates/uzu/build/metal/bindgen.rs b/crates/backend-uzu/build/metal/bindgen.rssimilarity index 100%rename from crates/uzu/build/metal/bindgen.rsrename to crates/backend-uzu/build/metal/bindgen.rsdiff --git a/crates/uzu/build/metal/compiler.rs b/crates/backend-uzu/build/metal/compiler.rssimilarity index 100%rename from crates/uzu/build/metal/compiler.rsrename to crates/backend-uzu/build/metal/compiler.rsdiff --git a/crates/uzu/build/metal/gpu_types/gpu_type_enum.rs b/crates/backend-uzu/build/metal/gpu_types/gpu_type_enum.rssimilarity index 100%rename from crates/uzu/build/metal/gpu_types/gpu_type_enum.rsrename to crates/backend-uzu/build/metal/gpu_types/gpu_type_enum.rsdiff --git a/crates/uzu/build/metal/gpu_types/gpu_type_struct.rs b/crates/backend-uzu/build/metal/gpu_types/gpu_type_struct.rssimilarity index 100%rename from crates/uzu/build/metal/gpu_types/gpu_type_struct.rsrename to crates/backend-uzu/build/metal/gpu_types/gpu_type_struct.rsdiff --git a/crates/uzu/build/metal/gpu_types/mod.rs b/crates/backend-uzu/build/metal/gpu_types/mod.rssimilarity index 100%rename from crates/uzu/build/metal/gpu_types/mod.rsrename to crates/backend-uzu/build/metal/gpu_types/mod.rsdiff --git a/crates/uzu/build/metal/gpu_types/template.ht b/crates/backend-uzu/build/metal/gpu_types/template.htsimilarity index 100%rename from crates/uzu/build/metal/gpu_types/template.htrename to crates/backend-uzu/build/metal/gpu_types/template.htdiff --git a/crates/uzu/build/metal/mod.rs b/crates/backend-uzu/build/metal/mod.rssimilarity index 100%rename from crates/uzu/build/metal/mod.rsrename to crates/backend-uzu/build/metal/mod.rsdiff --git a/crates/uzu/build/metal/toolchain.rs b/crates/backend-uzu/build/metal/toolchain.rssimilarity index 100%rename from crates/uzu/build/metal/toolchain.rsrename to crates/backend-uzu/build/metal/toolchain.rsdiff --git a/crates/uzu/build/metal/wrapper.rs b/crates/backend-uzu/build/metal/wrapper.rssimilarity index 100%rename from crates/uzu/build/metal/wrapper.rsrename to crates/backend-uzu/build/metal/wrapper.rsdiff --git a/crates/uzu/src/array.rs b/crates/backend-uzu/src/array.rssimilarity index 100%rename from crates/uzu/src/array.rsrename to crates/backend-uzu/src/array.rsdiff --git a/crates/uzu/src/audio/codec.rs b/crates/backend-uzu/src/audio/codec.rssimilarity index 100%rename from crates/uzu/src/audio/codec.rsrename to crates/backend-uzu/src/audio/codec.rsdiff --git a/crates/uzu/src/audio/context.rs b/crates/backend-uzu/src/audio/context.rssimilarity index 100%rename from crates/uzu/src/audio/context.rsrename to crates/backend-uzu/src/audio/context.rsdiff --git a/crates/uzu/src/audio/mod.rs b/crates/backend-uzu/src/audio/mod.rssimilarity index 100%rename from crates/uzu/src/audio/mod.rsrename to crates/backend-uzu/src/audio/mod.rsdiff --git a/crates/uzu/src/audio/nanocodec/mod.rs b/crates/backend-uzu/src/audio/nanocodec/mod.rssimilarity index 100%rename from crates/uzu/src/audio/nanocodec/mod.rsrename to crates/backend-uzu/src/audio/nanocodec/mod.rsdiff --git a/crates/uzu/src/audio/nanocodec/runtime.rs b/crates/backend-uzu/src/audio/nanocodec/runtime.rssimilarity index 100%rename from crates/uzu/src/audio/nanocodec/runtime.rsrename to crates/backend-uzu/src/audio/nanocodec/runtime.rsdiff --git a/crates/uzu/src/audio/nanocodec/runtime/loaders.rs b/crates/backend-uzu/src/audio/nanocodec/runtime/loaders.rssimilarity index 100%rename from crates/uzu/src/audio/nanocodec/runtime/loaders.rsrename to crates/backend-uzu/src/audio/nanocodec/runtime/loaders.rsdiff --git a/crates/uzu/src/audio/nanocodec/runtime/profile.rs b/crates/backend-uzu/src/audio/nanocodec/runtime/profile.rssimilarity index 100%rename from crates/uzu/src/audio/nanocodec/runtime/profile.rsrename to crates/backend-uzu/src/audio/nanocodec/runtime/profile.rsdiff --git a/crates/uzu/src/audio/nanocodec/runtime/stream.rs b/crates/backend-uzu/src/audio/nanocodec/runtime/stream.rssimilarity index 100%rename from crates/uzu/src/audio/nanocodec/runtime/stream.rsrename to crates/backend-uzu/src/audio/nanocodec/runtime/stream.rsdiff --git a/crates/uzu/src/audio/nanocodec/runtime/structured/build.rs b/crates/backend-uzu/src/audio/nanocodec/runtime/structured/build.rssimilarity index 100%rename from crates/uzu/src/audio/nanocodec/runtime/structured/build.rsrename to crates/backend-uzu/src/audio/nanocodec/runtime/structured/build.rsdiff --git a/crates/uzu/src/audio/nanocodec/runtime/structured/context.rs b/crates/backend-uzu/src/audio/nanocodec/runtime/structured/context.rssimilarity index 100%rename from crates/uzu/src/audio/nanocodec/runtime/structured/context.rsrename to crates/backend-uzu/src/audio/nanocodec/runtime/structured/context.rsdiff --git a/crates/uzu/src/audio/nanocodec/runtime/structured/decode.rs b/crates/backend-uzu/src/audio/nanocodec/runtime/structured/decode.rssimilarity index 100%rename from crates/uzu/src/audio/nanocodec/runtime/structured/decode.rsrename to crates/backend-uzu/src/audio/nanocodec/runtime/structured/decode.rsdiff --git a/crates/uzu/src/audio/nanocodec/runtime/structured/enqueue.rs b/crates/backend-uzu/src/audio/nanocodec/runtime/structured/enqueue.rssimilarity index 100%rename from crates/uzu/src/audio/nanocodec/runtime/structured/enqueue.rsrename to crates/backend-uzu/src/audio/nanocodec/runtime/structured/enqueue.rsdiff --git a/crates/uzu/src/audio/nanocodec/runtime/structured/fishaudio.rs b/crates/backend-uzu/src/audio/nanocodec/runtime/structured/fishaudio.rssimilarity index 100%rename from crates/uzu/src/audio/nanocodec/runtime/structured/fishaudio.rsrename to crates/backend-uzu/src/audio/nanocodec/runtime/structured/fishaudio.rsdiff --git a/crates/uzu/src/audio/nanocodec/runtime/structured/mod.rs b/crates/backend-uzu/src/audio/nanocodec/runtime/structured/mod.rssimilarity index 100%rename from crates/uzu/src/audio/nanocodec/runtime/structured/mod.rsrename to crates/backend-uzu/src/audio/nanocodec/runtime/structured/mod.rsdiff --git a/crates/uzu/src/audio/nanocodec/runtime/structured/post_module.rs b/crates/backend-uzu/src/audio/nanocodec/runtime/structured/post_module.rssimilarity index 100%rename from crates/uzu/src/audio/nanocodec/runtime/structured/post_module.rsrename to crates/backend-uzu/src/audio/nanocodec/runtime/structured/post_module.rsdiff --git a/crates/uzu/src/audio/nanocodec/runtime/structured/shared.rs b/crates/backend-uzu/src/audio/nanocodec/runtime/structured/shared.rssimilarity index 100%rename from crates/uzu/src/audio/nanocodec/runtime/structured/shared.rsrename to crates/backend-uzu/src/audio/nanocodec/runtime/structured/shared.rsdiff --git a/crates/uzu/src/audio/nanocodec/runtime/support.rs b/crates/backend-uzu/src/audio/nanocodec/runtime/support.rssimilarity index 100%rename from crates/uzu/src/audio/nanocodec/runtime/support.rsrename to crates/backend-uzu/src/audio/nanocodec/runtime/support.rsdiff --git a/crates/uzu/src/audio/types.rs b/crates/backend-uzu/src/audio/types.rssimilarity index 100%rename from crates/uzu/src/audio/types.rsrename to crates/backend-uzu/src/audio/types.rsdiff --git a/crates/uzu/src/backends/common/activation_config.rs b/crates/backend-uzu/src/backends/common/activation_config.rssimilarity index 100%rename from crates/uzu/src/backends/common/activation_config.rsrename to crates/backend-uzu/src/backends/common/activation_config.rsdiff --git a/crates/uzu/src/backends/common/allocator/allocator.rs b/crates/backend-uzu/src/backends/common/allocator/allocator.rssimilarity index 100%rename from crates/uzu/src/backends/common/allocator/allocator.rsrename to crates/backend-uzu/src/backends/common/allocator/allocator.rsdiff --git a/crates/uzu/src/backends/common/allocator/mod.rs b/crates/backend-uzu/src/backends/common/allocator/mod.rssimilarity index 100%rename from crates/uzu/src/backends/common/allocator/mod.rsrename to crates/backend-uzu/src/backends/common/allocator/mod.rsdiff --git a/crates/uzu/src/backends/common/allocator/range_allocator.rs b/crates/backend-uzu/src/backends/common/allocator/range_allocator.rssimilarity index 100%rename from crates/uzu/src/backends/common/allocator/range_allocator.rsrename to crates/backend-uzu/src/backends/common/allocator/range_allocator.rsdiff --git a/crates/uzu/src/backends/common/backend.rs b/crates/backend-uzu/src/backends/common/backend.rssimilarity index 100%rename from crates/uzu/src/backends/common/backend.rsrename to crates/backend-uzu/src/backends/common/backend.rsdiff --git a/crates/uzu/src/backends/common/buffer.rs b/crates/backend-uzu/src/backends/common/buffer.rssimilarity index 100%rename from crates/uzu/src/backends/common/buffer.rsrename to crates/backend-uzu/src/backends/common/buffer.rsdiff --git a/crates/uzu/src/backends/common/command_buffer.rs b/crates/backend-uzu/src/backends/common/command_buffer.rssimilarity index 100%rename from crates/uzu/src/backends/common/command_buffer.rsrename to crates/backend-uzu/src/backends/common/command_buffer.rsdiff --git a/crates/uzu/src/backends/common/context.rs b/crates/backend-uzu/src/backends/common/context.rssimilarity index 100%rename from crates/uzu/src/backends/common/context.rsrename to crates/backend-uzu/src/backends/common/context.rsdiff --git a/crates/uzu/src/backends/common/encoder.rs b/crates/backend-uzu/src/backends/common/encoder.rssimilarity index 100%rename from crates/uzu/src/backends/common/encoder.rsrename to crates/backend-uzu/src/backends/common/encoder.rsdiff --git a/crates/uzu/src/backends/common/event.rs b/crates/backend-uzu/src/backends/common/event.rssimilarity index 100%rename from crates/uzu/src/backends/common/event.rsrename to crates/backend-uzu/src/backends/common/event.rsdiff --git a/crates/uzu/src/backends/common/gpu_types/activation_type.rs b/crates/backend-uzu/src/backends/common/gpu_types/activation_type.rssimilarity index 100%rename from crates/uzu/src/backends/common/gpu_types/activation_type.rsrename to crates/backend-uzu/src/backends/common/gpu_types/activation_type.rsdiff --git a/crates/uzu/src/backends/common/gpu_types/argmax.rs b/crates/backend-uzu/src/backends/common/gpu_types/argmax.rssimilarity index 100%rename from crates/uzu/src/backends/common/gpu_types/argmax.rsrename to crates/backend-uzu/src/backends/common/gpu_types/argmax.rsdiff --git a/crates/uzu/src/backends/common/gpu_types/attention.rs b/crates/backend-uzu/src/backends/common/gpu_types/attention.rssimilarity index 100%rename from crates/uzu/src/backends/common/gpu_types/attention.rsrename to crates/backend-uzu/src/backends/common/gpu_types/attention.rsdiff --git a/crates/uzu/src/backends/common/gpu_types/kv_cache_update.rs b/crates/backend-uzu/src/backends/common/gpu_types/kv_cache_update.rssimilarity index 100%rename from crates/uzu/src/backends/common/gpu_types/kv_cache_update.rsrename to crates/backend-uzu/src/backends/common/gpu_types/kv_cache_update.rsdiff --git a/crates/uzu/src/backends/common/gpu_types/matmul.rs b/crates/backend-uzu/src/backends/common/gpu_types/matmul.rssimilarity index 100%rename from crates/uzu/src/backends/common/gpu_types/matmul.rsrename to crates/backend-uzu/src/backends/common/gpu_types/matmul.rsdiff --git a/crates/uzu/src/backends/common/gpu_types/mod.rs b/crates/backend-uzu/src/backends/common/gpu_types/mod.rssimilarity index 100%rename from crates/uzu/src/backends/common/gpu_types/mod.rsrename to crates/backend-uzu/src/backends/common/gpu_types/mod.rsdiff --git a/crates/uzu/src/backends/common/gpu_types/quantization.rs b/crates/backend-uzu/src/backends/common/gpu_types/quantization.rssimilarity index 100%rename from crates/uzu/src/backends/common/gpu_types/quantization.rsrename to crates/backend-uzu/src/backends/common/gpu_types/quantization.rsdiff --git a/crates/uzu/src/backends/common/gpu_types/ring.rs b/crates/backend-uzu/src/backends/common/gpu_types/ring.rssimilarity index 100%rename from crates/uzu/src/backends/common/gpu_types/ring.rsrename to crates/backend-uzu/src/backends/common/gpu_types/ring.rsdiff --git a/crates/uzu/src/backends/common/gpu_types/trie.rs b/crates/backend-uzu/src/backends/common/gpu_types/trie.rssimilarity index 100%rename from crates/uzu/src/backends/common/gpu_types/trie.rsrename to crates/backend-uzu/src/backends/common/gpu_types/trie.rsdiff --git a/crates/uzu/src/backends/common/hazard_tracker.rs b/crates/backend-uzu/src/backends/common/hazard_tracker.rssimilarity index 100%rename from crates/uzu/src/backends/common/hazard_tracker.rsrename to crates/backend-uzu/src/backends/common/hazard_tracker.rsdiff --git a/crates/uzu/src/backends/common/kernel/attention.rs b/crates/backend-uzu/src/backends/common/kernel/attention.rssimilarity index 100%rename from crates/uzu/src/backends/common/kernel/attention.rsrename to crates/backend-uzu/src/backends/common/kernel/attention.rsdiff --git a/crates/uzu/src/backends/common/kernel/audio.rs b/crates/backend-uzu/src/backends/common/kernel/audio.rssimilarity index 100%rename from crates/uzu/src/backends/common/kernel/audio.rsrename to crates/backend-uzu/src/backends/common/kernel/audio.rsdiff --git a/crates/uzu/src/backends/common/kernel/kv_cache_update.rs b/crates/backend-uzu/src/backends/common/kernel/kv_cache_update.rssimilarity index 100%rename from crates/uzu/src/backends/common/kernel/kv_cache_update.rsrename to crates/backend-uzu/src/backends/common/kernel/kv_cache_update.rsdiff --git a/crates/uzu/src/backends/common/kernel/matmul.rs b/crates/backend-uzu/src/backends/common/kernel/matmul.rssimilarity index 100%rename from crates/uzu/src/backends/common/kernel/matmul.rsrename to crates/backend-uzu/src/backends/common/kernel/matmul.rsdiff --git a/crates/uzu/src/backends/common/kernel/mlp_gate_act_mul.rs b/crates/backend-uzu/src/backends/common/kernel/mlp_gate_act_mul.rssimilarity index 100%rename from crates/uzu/src/backends/common/kernel/mlp_gate_act_mul.rsrename to crates/backend-uzu/src/backends/common/kernel/mlp_gate_act_mul.rsdiff --git a/crates/uzu/src/backends/common/kernel/mod.rs b/crates/backend-uzu/src/backends/common/kernel/mod.rssimilarity index 100%rename from crates/uzu/src/backends/common/kernel/mod.rsrename to crates/backend-uzu/src/backends/common/kernel/mod.rsdiff --git a/crates/uzu/src/backends/common/kernel/moe/experts_single.rs b/crates/backend-uzu/src/backends/common/kernel/moe/experts_single.rssimilarity index 100%rename from crates/uzu/src/backends/common/kernel/moe/experts_single.rsrename to crates/backend-uzu/src/backends/common/kernel/moe/experts_single.rsdiff --git a/crates/uzu/src/backends/common/kernel/moe/experts_two_pass_decode.rs b/crates/backend-uzu/src/backends/common/kernel/moe/experts_two_pass_decode.rssimilarity index 100%rename from crates/uzu/src/backends/common/kernel/moe/experts_two_pass_decode.rsrename to crates/backend-uzu/src/backends/common/kernel/moe/experts_two_pass_decode.rsdiff --git a/crates/uzu/src/backends/common/kernel/moe/experts_two_pass_prefill.rs b/crates/backend-uzu/src/backends/common/kernel/moe/experts_two_pass_prefill.rssimilarity index 100%rename from crates/uzu/src/backends/common/kernel/moe/experts_two_pass_prefill.rsrename to crates/backend-uzu/src/backends/common/kernel/moe/experts_two_pass_prefill.rsdiff --git a/crates/uzu/src/backends/common/kernel/moe/gather.rs b/crates/backend-uzu/src/backends/common/kernel/moe/gather.rssimilarity index 100%rename from crates/uzu/src/backends/common/kernel/moe/gather.rsrename to crates/backend-uzu/src/backends/common/kernel/moe/gather.rsdiff --git a/crates/uzu/src/backends/common/kernel/moe/mod.rs b/crates/backend-uzu/src/backends/common/kernel/moe/mod.rssimilarity index 100%rename from crates/uzu/src/backends/common/kernel/moe/mod.rsrename to crates/backend-uzu/src/backends/common/kernel/moe/mod.rsdiff --git a/crates/uzu/src/backends/common/kernel/moe/tiles_map.rs b/crates/backend-uzu/src/backends/common/kernel/moe/tiles_map.rssimilarity index 100%rename from crates/uzu/src/backends/common/kernel/moe/tiles_map.rsrename to crates/backend-uzu/src/backends/common/kernel/moe/tiles_map.rsdiff --git a/crates/uzu/src/backends/common/kernel/moe/tiles_pass_a.rs b/crates/backend-uzu/src/backends/common/kernel/moe/tiles_pass_a.rssimilarity index 100%rename from crates/uzu/src/backends/common/kernel/moe/tiles_pass_a.rsrename to crates/backend-uzu/src/backends/common/kernel/moe/tiles_pass_a.rsdiff --git a/crates/uzu/src/backends/common/kernel/quant_matmul.rs b/crates/backend-uzu/src/backends/common/kernel/quant_matmul.rssimilarity index 100%rename from crates/uzu/src/backends/common/kernel/quant_matmul.rsrename to crates/backend-uzu/src/backends/common/kernel/quant_matmul.rsdiff --git a/crates/uzu/src/backends/common/kernel/sampling.rs b/crates/backend-uzu/src/backends/common/kernel/sampling.rssimilarity index 100%rename from crates/uzu/src/backends/common/kernel/sampling.rsrename to crates/backend-uzu/src/backends/common/kernel/sampling.rsdiff --git a/crates/uzu/src/backends/common/kernel/ssd_prefill.rs b/crates/backend-uzu/src/backends/common/kernel/ssd_prefill.rssimilarity index 100%rename from crates/uzu/src/backends/common/kernel/ssd_prefill.rsrename to crates/backend-uzu/src/backends/common/kernel/ssd_prefill.rsdiff --git a/crates/uzu/src/backends/common/mod.rs b/crates/backend-uzu/src/backends/common/mod.rssimilarity index 100%rename from crates/uzu/src/backends/common/mod.rsrename to crates/backend-uzu/src/backends/common/mod.rsdiff --git a/crates/uzu/src/backends/cpu/argmax.rs b/crates/backend-uzu/src/backends/cpu/argmax.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/argmax.rsrename to crates/backend-uzu/src/backends/cpu/argmax.rsdiff --git a/crates/uzu/src/backends/cpu/backend.rs b/crates/backend-uzu/src/backends/cpu/backend.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/backend.rsrename to crates/backend-uzu/src/backends/cpu/backend.rsdiff --git a/crates/uzu/src/backends/cpu/buffer.rs b/crates/backend-uzu/src/backends/cpu/buffer.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/buffer.rsrename to crates/backend-uzu/src/backends/cpu/buffer.rsdiff --git a/crates/uzu/src/backends/cpu/command_buffer.rs b/crates/backend-uzu/src/backends/cpu/command_buffer.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/command_buffer.rsrename to crates/backend-uzu/src/backends/cpu/command_buffer.rsdiff --git a/crates/uzu/src/backends/cpu/context.rs b/crates/backend-uzu/src/backends/cpu/context.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/context.rsrename to crates/backend-uzu/src/backends/cpu/context.rsdiff --git a/crates/uzu/src/backends/cpu/error.rs b/crates/backend-uzu/src/backends/cpu/error.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/error.rsrename to crates/backend-uzu/src/backends/cpu/error.rsdiff --git a/crates/uzu/src/backends/cpu/event.rs b/crates/backend-uzu/src/backends/cpu/event.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/event.rsrename to crates/backend-uzu/src/backends/cpu/event.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/activation/activation.rs b/crates/backend-uzu/src/backends/cpu/kernel/activation/activation.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/activation/activation.rsrename to crates/backend-uzu/src/backends/cpu/kernel/activation/activation.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/activation/mod.rs b/crates/backend-uzu/src/backends/cpu/kernel/activation/mod.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/activation/mod.rsrename to crates/backend-uzu/src/backends/cpu/kernel/activation/mod.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/attention/attention_gemm.rs b/crates/backend-uzu/src/backends/cpu/kernel/attention/attention_gemm.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/attention/attention_gemm.rsrename to crates/backend-uzu/src/backends/cpu/kernel/attention/attention_gemm.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/attention/attention_single_pass.rs b/crates/backend-uzu/src/backends/cpu/kernel/attention/attention_single_pass.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/attention/attention_single_pass.rsrename to crates/backend-uzu/src/backends/cpu/kernel/attention/attention_single_pass.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/attention/attention_two_pass.rs b/crates/backend-uzu/src/backends/cpu/kernel/attention/attention_two_pass.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/attention/attention_two_pass.rsrename to crates/backend-uzu/src/backends/cpu/kernel/attention/attention_two_pass.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/attention/attention_update_kv_cache.rs b/crates/backend-uzu/src/backends/cpu/kernel/attention/attention_update_kv_cache.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/attention/attention_update_kv_cache.rsrename to crates/backend-uzu/src/backends/cpu/kernel/attention/attention_update_kv_cache.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/attention/mask.rs b/crates/backend-uzu/src/backends/cpu/kernel/attention/mask.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/attention/mask.rsrename to crates/backend-uzu/src/backends/cpu/kernel/attention/mask.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/attention/mod.rs b/crates/backend-uzu/src/backends/cpu/kernel/attention/mod.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/attention/mod.rsrename to crates/backend-uzu/src/backends/cpu/kernel/attention/mod.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/attention/sigmoid_gate.rs b/crates/backend-uzu/src/backends/cpu/kernel/attention/sigmoid_gate.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/attention/sigmoid_gate.rsrename to crates/backend-uzu/src/backends/cpu/kernel/attention/sigmoid_gate.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/audio/add.rs b/crates/backend-uzu/src/backends/cpu/kernel/audio/add.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/audio/add.rsrename to crates/backend-uzu/src/backends/cpu/kernel/audio/add.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/audio/causal_conv1d.rs b/crates/backend-uzu/src/backends/cpu/kernel/audio/causal_conv1d.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/audio/causal_conv1d.rsrename to crates/backend-uzu/src/backends/cpu/kernel/audio/causal_conv1d.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/audio/causal_conv1d_grouped.rs b/crates/backend-uzu/src/backends/cpu/kernel/audio/causal_conv1d_grouped.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/audio/causal_conv1d_grouped.rsrename to crates/backend-uzu/src/backends/cpu/kernel/audio/causal_conv1d_grouped.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/audio/causal_conv1d_grouped_residual.rs b/crates/backend-uzu/src/backends/cpu/kernel/audio/causal_conv1d_grouped_residual.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/audio/causal_conv1d_grouped_residual.rsrename to crates/backend-uzu/src/backends/cpu/kernel/audio/causal_conv1d_grouped_residual.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/audio/causal_conv_transpose1d.rs b/crates/backend-uzu/src/backends/cpu/kernel/audio/causal_conv_transpose1d.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/audio/causal_conv_transpose1d.rsrename to crates/backend-uzu/src/backends/cpu/kernel/audio/causal_conv_transpose1d.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/audio/causal_conv_transpose1d_causal_pad.rs b/crates/backend-uzu/src/backends/cpu/kernel/audio/causal_conv_transpose1d_causal_pad.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/audio/causal_conv_transpose1d_causal_pad.rsrename to crates/backend-uzu/src/backends/cpu/kernel/audio/causal_conv_transpose1d_causal_pad.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/audio/conv1d.rs b/crates/backend-uzu/src/backends/cpu/kernel/audio/conv1d.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/audio/conv1d.rsrename to crates/backend-uzu/src/backends/cpu/kernel/audio/conv1d.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/audio/fsq_decode.rs b/crates/backend-uzu/src/backends/cpu/kernel/audio/fsq_decode.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/audio/fsq_decode.rsrename to crates/backend-uzu/src/backends/cpu/kernel/audio/fsq_decode.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/audio/fsq_encode.rs b/crates/backend-uzu/src/backends/cpu/kernel/audio/fsq_encode.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/audio/fsq_encode.rsrename to crates/backend-uzu/src/backends/cpu/kernel/audio/fsq_encode.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/audio/half_snake.rs b/crates/backend-uzu/src/backends/cpu/kernel/audio/half_snake.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/audio/half_snake.rsrename to crates/backend-uzu/src/backends/cpu/kernel/audio/half_snake.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/audio/mod.rs b/crates/backend-uzu/src/backends/cpu/kernel/audio/mod.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/audio/mod.rsrename to crates/backend-uzu/src/backends/cpu/kernel/audio/mod.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/audio/norm_ncs.rs b/crates/backend-uzu/src/backends/cpu/kernel/audio/norm_ncs.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/audio/norm_ncs.rsrename to crates/backend-uzu/src/backends/cpu/kernel/audio/norm_ncs.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/audio/quantizer_decode.rs b/crates/backend-uzu/src/backends/cpu/kernel/audio/quantizer_decode.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/audio/quantizer_decode.rsrename to crates/backend-uzu/src/backends/cpu/kernel/audio/quantizer_decode.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/delta_net/conv_scan.rs b/crates/backend-uzu/src/backends/cpu/kernel/delta_net/conv_scan.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/delta_net/conv_scan.rsrename to crates/backend-uzu/src/backends/cpu/kernel/delta_net/conv_scan.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/delta_net/conv_update.rs b/crates/backend-uzu/src/backends/cpu/kernel/delta_net/conv_update.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/delta_net/conv_update.rsrename to crates/backend-uzu/src/backends/cpu/kernel/delta_net/conv_update.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/delta_net/mod.rs b/crates/backend-uzu/src/backends/cpu/kernel/delta_net/mod.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/delta_net/mod.rsrename to crates/backend-uzu/src/backends/cpu/kernel/delta_net/mod.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/delta_net/norm_gate.rs b/crates/backend-uzu/src/backends/cpu/kernel/delta_net/norm_gate.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/delta_net/norm_gate.rsrename to crates/backend-uzu/src/backends/cpu/kernel/delta_net/norm_gate.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/delta_net/prefill.rs b/crates/backend-uzu/src/backends/cpu/kernel/delta_net/prefill.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/delta_net/prefill.rsrename to crates/backend-uzu/src/backends/cpu/kernel/delta_net/prefill.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/delta_net/prefill_prep.rs b/crates/backend-uzu/src/backends/cpu/kernel/delta_net/prefill_prep.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/delta_net/prefill_prep.rsrename to crates/backend-uzu/src/backends/cpu/kernel/delta_net/prefill_prep.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/delta_net/update.rs b/crates/backend-uzu/src/backends/cpu/kernel/delta_net/update.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/delta_net/update.rsrename to crates/backend-uzu/src/backends/cpu/kernel/delta_net/update.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/embedding/embedding_rows_sum.rs b/crates/backend-uzu/src/backends/cpu/kernel/embedding/embedding_rows_sum.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/embedding/embedding_rows_sum.rsrename to crates/backend-uzu/src/backends/cpu/kernel/embedding/embedding_rows_sum.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/embedding/full_precision_embedding.rs b/crates/backend-uzu/src/backends/cpu/kernel/embedding/full_precision_embedding.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/embedding/full_precision_embedding.rsrename to crates/backend-uzu/src/backends/cpu/kernel/embedding/full_precision_embedding.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/embedding/mod.rs b/crates/backend-uzu/src/backends/cpu/kernel/embedding/mod.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/embedding/mod.rsrename to crates/backend-uzu/src/backends/cpu/kernel/embedding/mod.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/embedding/quant_embedding.rs b/crates/backend-uzu/src/backends/cpu/kernel/embedding/quant_embedding.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/embedding/quant_embedding.rsrename to crates/backend-uzu/src/backends/cpu/kernel/embedding/quant_embedding.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/hadamard_transform/hadamard_transform.rs b/crates/backend-uzu/src/backends/cpu/kernel/hadamard_transform/hadamard_transform.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/hadamard_transform/hadamard_transform.rsrename to crates/backend-uzu/src/backends/cpu/kernel/hadamard_transform/hadamard_transform.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/hadamard_transform/mod.rs b/crates/backend-uzu/src/backends/cpu/kernel/hadamard_transform/mod.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/hadamard_transform/mod.rsrename to crates/backend-uzu/src/backends/cpu/kernel/hadamard_transform/mod.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/kv_cache_update/kv_cache_update.rs b/crates/backend-uzu/src/backends/cpu/kernel/kv_cache_update/kv_cache_update.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/kv_cache_update/kv_cache_update.rsrename to crates/backend-uzu/src/backends/cpu/kernel/kv_cache_update/kv_cache_update.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/kv_cache_update/mod.rs b/crates/backend-uzu/src/backends/cpu/kernel/kv_cache_update/mod.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/kv_cache_update/mod.rsrename to crates/backend-uzu/src/backends/cpu/kernel/kv_cache_update/mod.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/layer_norm/layer_norm.rs b/crates/backend-uzu/src/backends/cpu/kernel/layer_norm/layer_norm.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/layer_norm/layer_norm.rsrename to crates/backend-uzu/src/backends/cpu/kernel/layer_norm/layer_norm.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/layer_norm/mod.rs b/crates/backend-uzu/src/backends/cpu/kernel/layer_norm/mod.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/layer_norm/mod.rsrename to crates/backend-uzu/src/backends/cpu/kernel/layer_norm/mod.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/matmul/gemm/mod.rs b/crates/backend-uzu/src/backends/cpu/kernel/matmul/gemm/mod.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/matmul/gemm/mod.rsrename to crates/backend-uzu/src/backends/cpu/kernel/matmul/gemm/mod.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/matmul/gemm/shaders/mod.rs b/crates/backend-uzu/src/backends/cpu/kernel/matmul/gemm/shaders/mod.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/matmul/gemm/shaders/mod.rsrename to crates/backend-uzu/src/backends/cpu/kernel/matmul/gemm/shaders/mod.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/matmul/gemm/shaders/steel_gemm.rs b/crates/backend-uzu/src/backends/cpu/kernel/matmul/gemm/shaders/steel_gemm.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/matmul/gemm/shaders/steel_gemm.rsrename to crates/backend-uzu/src/backends/cpu/kernel/matmul/gemm/shaders/steel_gemm.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/matmul/gemv/mod.rs b/crates/backend-uzu/src/backends/cpu/kernel/matmul/gemv/mod.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/matmul/gemv/mod.rsrename to crates/backend-uzu/src/backends/cpu/kernel/matmul/gemv/mod.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/matmul/gemv/shaders/gemv.rs b/crates/backend-uzu/src/backends/cpu/kernel/matmul/gemv/shaders/gemv.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/matmul/gemv/shaders/gemv.rsrename to crates/backend-uzu/src/backends/cpu/kernel/matmul/gemv/shaders/gemv.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/matmul/gemv/shaders/mod.rs b/crates/backend-uzu/src/backends/cpu/kernel/matmul/gemv/shaders/mod.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/matmul/gemv/shaders/mod.rsrename to crates/backend-uzu/src/backends/cpu/kernel/matmul/gemv/shaders/mod.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/matmul/matmul.rs b/crates/backend-uzu/src/backends/cpu/kernel/matmul/matmul.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/matmul/matmul.rsrename to crates/backend-uzu/src/backends/cpu/kernel/matmul/matmul.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/matmul/mod.rs b/crates/backend-uzu/src/backends/cpu/kernel/matmul/mod.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/matmul/mod.rsrename to crates/backend-uzu/src/backends/cpu/kernel/matmul/mod.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/mlp/activation_mul.rs b/crates/backend-uzu/src/backends/cpu/kernel/mlp/activation_mul.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/mlp/activation_mul.rsrename to crates/backend-uzu/src/backends/cpu/kernel/mlp/activation_mul.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/mlp/mod.rs b/crates/backend-uzu/src/backends/cpu/kernel/mlp/mod.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/mlp/mod.rsrename to crates/backend-uzu/src/backends/cpu/kernel/mlp/mod.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/mod.rs b/crates/backend-uzu/src/backends/cpu/kernel/mod.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/mod.rsrename to crates/backend-uzu/src/backends/cpu/kernel/mod.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/moe/counts_offsets_fused.rs b/crates/backend-uzu/src/backends/cpu/kernel/moe/counts_offsets_fused.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/moe/counts_offsets_fused.rsrename to crates/backend-uzu/src/backends/cpu/kernel/moe/counts_offsets_fused.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/moe/experts_single.rs b/crates/backend-uzu/src/backends/cpu/kernel/moe/experts_single.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/moe/experts_single.rsrename to crates/backend-uzu/src/backends/cpu/kernel/moe/experts_single.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/moe/experts_two_pass_decode.rs b/crates/backend-uzu/src/backends/cpu/kernel/moe/experts_two_pass_decode.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/moe/experts_two_pass_decode.rsrename to crates/backend-uzu/src/backends/cpu/kernel/moe/experts_two_pass_decode.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/moe/experts_two_pass_prefill.rs b/crates/backend-uzu/src/backends/cpu/kernel/moe/experts_two_pass_prefill.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/moe/experts_two_pass_prefill.rsrename to crates/backend-uzu/src/backends/cpu/kernel/moe/experts_two_pass_prefill.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/moe/finalize.rs b/crates/backend-uzu/src/backends/cpu/kernel/moe/finalize.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/moe/finalize.rsrename to crates/backend-uzu/src/backends/cpu/kernel/moe/finalize.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/moe/gather.rs b/crates/backend-uzu/src/backends/cpu/kernel/moe/gather.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/moe/gather.rsrename to crates/backend-uzu/src/backends/cpu/kernel/moe/gather.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/moe/mod.rs b/crates/backend-uzu/src/backends/cpu/kernel/moe/mod.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/moe/mod.rsrename to crates/backend-uzu/src/backends/cpu/kernel/moe/mod.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/moe/router_topk.rs b/crates/backend-uzu/src/backends/cpu/kernel/moe/router_topk.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/moe/router_topk.rsrename to crates/backend-uzu/src/backends/cpu/kernel/moe/router_topk.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/moe/scatter_buckets.rs b/crates/backend-uzu/src/backends/cpu/kernel/moe/scatter_buckets.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/moe/scatter_buckets.rsrename to crates/backend-uzu/src/backends/cpu/kernel/moe/scatter_buckets.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/moe/tiles_map.rs b/crates/backend-uzu/src/backends/cpu/kernel/moe/tiles_map.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/moe/tiles_map.rsrename to crates/backend-uzu/src/backends/cpu/kernel/moe/tiles_map.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/moe/tiles_pass_a.rs b/crates/backend-uzu/src/backends/cpu/kernel/moe/tiles_pass_a.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/moe/tiles_pass_a.rsrename to crates/backend-uzu/src/backends/cpu/kernel/moe/tiles_pass_a.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/pooling/mod.rs b/crates/backend-uzu/src/backends/cpu/kernel/pooling/mod.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/pooling/mod.rsrename to crates/backend-uzu/src/backends/cpu/kernel/pooling/mod.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/pooling/pooling.rs b/crates/backend-uzu/src/backends/cpu/kernel/pooling/pooling.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/pooling/pooling.rsrename to crates/backend-uzu/src/backends/cpu/kernel/pooling/pooling.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/quant_matmul/mod.rs b/crates/backend-uzu/src/backends/cpu/kernel/quant_matmul/mod.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/quant_matmul/mod.rsrename to crates/backend-uzu/src/backends/cpu/kernel/quant_matmul/mod.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/quant_matmul/qmm_transposed.rs b/crates/backend-uzu/src/backends/cpu/kernel/quant_matmul/qmm_transposed.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/quant_matmul/qmm_transposed.rsrename to crates/backend-uzu/src/backends/cpu/kernel/quant_matmul/qmm_transposed.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/quant_matmul/qmv.rs b/crates/backend-uzu/src/backends/cpu/kernel/quant_matmul/qmv.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/quant_matmul/qmv.rsrename to crates/backend-uzu/src/backends/cpu/kernel/quant_matmul/qmv.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/quant_matmul/qmv_fast.rs b/crates/backend-uzu/src/backends/cpu/kernel/quant_matmul/qmv_fast.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/quant_matmul/qmv_fast.rsrename to crates/backend-uzu/src/backends/cpu/kernel/quant_matmul/qmv_fast.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/rms_norm/mod.rs b/crates/backend-uzu/src/backends/cpu/kernel/rms_norm/mod.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/rms_norm/mod.rsrename to crates/backend-uzu/src/backends/cpu/kernel/rms_norm/mod.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/rms_norm/qk_norm.rs b/crates/backend-uzu/src/backends/cpu/kernel/rms_norm/qk_norm.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/rms_norm/qk_norm.rsrename to crates/backend-uzu/src/backends/cpu/kernel/rms_norm/qk_norm.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/rms_norm/rms_norm.rs b/crates/backend-uzu/src/backends/cpu/kernel/rms_norm/rms_norm.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/rms_norm/rms_norm.rsrename to crates/backend-uzu/src/backends/cpu/kernel/rms_norm/rms_norm.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/rope/mod.rs b/crates/backend-uzu/src/backends/cpu/kernel/rope/mod.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/rope/mod.rsrename to crates/backend-uzu/src/backends/cpu/kernel/rope/mod.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/rope/rope.rs b/crates/backend-uzu/src/backends/cpu/kernel/rope/rope.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/rope/rope.rsrename to crates/backend-uzu/src/backends/cpu/kernel/rope/rope.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/sampling/argmax.rs b/crates/backend-uzu/src/backends/cpu/kernel/sampling/argmax.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/sampling/argmax.rsrename to crates/backend-uzu/src/backends/cpu/kernel/sampling/argmax.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/sampling/bitmask.rs b/crates/backend-uzu/src/backends/cpu/kernel/sampling/bitmask.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/sampling/bitmask.rsrename to crates/backend-uzu/src/backends/cpu/kernel/sampling/bitmask.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/sampling/gumbel.rs b/crates/backend-uzu/src/backends/cpu/kernel/sampling/gumbel.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/sampling/gumbel.rsrename to crates/backend-uzu/src/backends/cpu/kernel/sampling/gumbel.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/sampling/min_p.rs b/crates/backend-uzu/src/backends/cpu/kernel/sampling/min_p.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/sampling/min_p.rsrename to crates/backend-uzu/src/backends/cpu/kernel/sampling/min_p.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/sampling/mod.rs b/crates/backend-uzu/src/backends/cpu/kernel/sampling/mod.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/sampling/mod.rsrename to crates/backend-uzu/src/backends/cpu/kernel/sampling/mod.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/sampling/temperature.rs b/crates/backend-uzu/src/backends/cpu/kernel/sampling/temperature.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/sampling/temperature.rsrename to crates/backend-uzu/src/backends/cpu/kernel/sampling/temperature.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/sampling/top_k.rs b/crates/backend-uzu/src/backends/cpu/kernel/sampling/top_k.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/sampling/top_k.rsrename to crates/backend-uzu/src/backends/cpu/kernel/sampling/top_k.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/sampling/top_p.rs b/crates/backend-uzu/src/backends/cpu/kernel/sampling/top_p.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/sampling/top_p.rsrename to crates/backend-uzu/src/backends/cpu/kernel/sampling/top_p.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/short_conv/mod.rs b/crates/backend-uzu/src/backends/cpu/kernel/short_conv/mod.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/short_conv/mod.rsrename to crates/backend-uzu/src/backends/cpu/kernel/short_conv/mod.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/short_conv/short_conv.rs b/crates/backend-uzu/src/backends/cpu/kernel/short_conv/short_conv.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/short_conv/short_conv.rsrename to crates/backend-uzu/src/backends/cpu/kernel/short_conv/short_conv.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/ssm/conv1d.rs b/crates/backend-uzu/src/backends/cpu/kernel/ssm/conv1d.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/ssm/conv1d.rsrename to crates/backend-uzu/src/backends/cpu/kernel/ssm/conv1d.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/ssm/mod.rs b/crates/backend-uzu/src/backends/cpu/kernel/ssm/mod.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/ssm/mod.rsrename to crates/backend-uzu/src/backends/cpu/kernel/ssm/mod.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/ssm/split_inproj.rs b/crates/backend-uzu/src/backends/cpu/kernel/ssm/split_inproj.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/ssm/split_inproj.rsrename to crates/backend-uzu/src/backends/cpu/kernel/ssm/split_inproj.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/ssm/ssd_prefill.rs b/crates/backend-uzu/src/backends/cpu/kernel/ssm/ssd_prefill.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/ssm/ssd_prefill.rsrename to crates/backend-uzu/src/backends/cpu/kernel/ssm/ssd_prefill.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/ssm/ssd_update.rs b/crates/backend-uzu/src/backends/cpu/kernel/ssm/ssd_update.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/ssm/ssd_update.rsrename to crates/backend-uzu/src/backends/cpu/kernel/ssm/ssd_update.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/tensor_add_bias/mod.rs b/crates/backend-uzu/src/backends/cpu/kernel/tensor_add_bias/mod.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/tensor_add_bias/mod.rsrename to crates/backend-uzu/src/backends/cpu/kernel/tensor_add_bias/mod.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/tensor_add_bias/tensor_add_bias.rs b/crates/backend-uzu/src/backends/cpu/kernel/tensor_add_bias/tensor_add_bias.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/tensor_add_bias/tensor_add_bias.rsrename to crates/backend-uzu/src/backends/cpu/kernel/tensor_add_bias/tensor_add_bias.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/tensor_add_scale/mod.rs b/crates/backend-uzu/src/backends/cpu/kernel/tensor_add_scale/mod.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/tensor_add_scale/mod.rsrename to crates/backend-uzu/src/backends/cpu/kernel/tensor_add_scale/mod.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/tensor_add_scale/tensor_add_scale.rs b/crates/backend-uzu/src/backends/cpu/kernel/tensor_add_scale/tensor_add_scale.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/tensor_add_scale/tensor_add_scale.rsrename to crates/backend-uzu/src/backends/cpu/kernel/tensor_add_scale/tensor_add_scale.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/tensor_add_swap/mod.rs b/crates/backend-uzu/src/backends/cpu/kernel/tensor_add_swap/mod.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/tensor_add_swap/mod.rsrename to crates/backend-uzu/src/backends/cpu/kernel/tensor_add_swap/mod.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/tensor_add_swap/tensor_add_swap.rs b/crates/backend-uzu/src/backends/cpu/kernel/tensor_add_swap/tensor_add_swap.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/tensor_add_swap/tensor_add_swap.rsrename to crates/backend-uzu/src/backends/cpu/kernel/tensor_add_swap/tensor_add_swap.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/tensor_copy/mod.rs b/crates/backend-uzu/src/backends/cpu/kernel/tensor_copy/mod.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/tensor_copy/mod.rsrename to crates/backend-uzu/src/backends/cpu/kernel/tensor_copy/mod.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/tensor_copy/tensor_copy.rs b/crates/backend-uzu/src/backends/cpu/kernel/tensor_copy/tensor_copy.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/tensor_copy/tensor_copy.rsrename to crates/backend-uzu/src/backends/cpu/kernel/tensor_copy/tensor_copy.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/token_copy/mod.rs b/crates/backend-uzu/src/backends/cpu/kernel/token_copy/mod.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/token_copy/mod.rsrename to crates/backend-uzu/src/backends/cpu/kernel/token_copy/mod.rsdiff --git a/crates/uzu/src/backends/cpu/kernel/token_copy/token_copy.rs b/crates/backend-uzu/src/backends/cpu/kernel/token_copy/token_copy.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/kernel/token_copy/token_copy.rsrename to crates/backend-uzu/src/backends/cpu/kernel/token_copy/token_copy.rsdiff --git a/crates/uzu/src/backends/cpu/mod.rs b/crates/backend-uzu/src/backends/cpu/mod.rssimilarity index 100%rename from crates/uzu/src/backends/cpu/mod.rsrename to crates/backend-uzu/src/backends/cpu/mod.rsdiff --git a/crates/uzu/src/backends/metal/backend.rs b/crates/backend-uzu/src/backends/metal/backend.rssimilarity index 100%rename from crates/uzu/src/backends/metal/backend.rsrename to crates/backend-uzu/src/backends/metal/backend.rsdiff --git a/crates/uzu/src/backends/metal/buffer.rs b/crates/backend-uzu/src/backends/metal/buffer.rssimilarity index 100%rename from crates/uzu/src/backends/metal/buffer.rsrename to crates/backend-uzu/src/backends/metal/buffer.rsdiff --git a/crates/uzu/src/backends/metal/command_buffer.rs b/crates/backend-uzu/src/backends/metal/command_buffer.rssimilarity index 100%rename from crates/uzu/src/backends/metal/command_buffer.rsrename to crates/backend-uzu/src/backends/metal/command_buffer.rsdiff --git a/crates/uzu/src/backends/metal/context.rs b/crates/backend-uzu/src/backends/metal/context.rssimilarity index 100%rename from crates/uzu/src/backends/metal/context.rsrename to crates/backend-uzu/src/backends/metal/context.rsdiff --git a/crates/uzu/src/backends/metal/device_capabilities.rs b/crates/backend-uzu/src/backends/metal/device_capabilities.rssimilarity index 100%rename from crates/uzu/src/backends/metal/device_capabilities.rsrename to crates/backend-uzu/src/backends/metal/device_capabilities.rsdiff --git a/crates/uzu/src/backends/metal/error.rs b/crates/backend-uzu/src/backends/metal/error.rssimilarity index 100%rename from crates/uzu/src/backends/metal/error.rsrename to crates/backend-uzu/src/backends/metal/error.rsdiff --git a/crates/uzu/src/backends/metal/event.rs b/crates/backend-uzu/src/backends/metal/event.rssimilarity index 100%rename from crates/uzu/src/backends/metal/event.rsrename to crates/backend-uzu/src/backends/metal/event.rsdiff --git a/crates/uzu/src/backends/metal/kernel/activation/activation.metal b/crates/backend-uzu/src/backends/metal/kernel/activation/activation.metalsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/activation/activation.metalrename to crates/backend-uzu/src/backends/metal/kernel/activation/activation.metaldiff --git a/crates/uzu/src/backends/metal/kernel/activation/activations.h b/crates/backend-uzu/src/backends/metal/kernel/activation/activations.hsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/activation/activations.hrename to crates/backend-uzu/src/backends/metal/kernel/activation/activations.hdiff --git a/crates/uzu/src/backends/metal/kernel/attention/attention_gemm.metal b/crates/backend-uzu/src/backends/metal/kernel/attention/attention_gemm.metalsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/attention/attention_gemm.metalrename to crates/backend-uzu/src/backends/metal/kernel/attention/attention_gemm.metaldiff --git a/crates/uzu/src/backends/metal/kernel/attention/attention_single_pass.metal b/crates/backend-uzu/src/backends/metal/kernel/attention/attention_single_pass.metalsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/attention/attention_single_pass.metalrename to crates/backend-uzu/src/backends/metal/kernel/attention/attention_single_pass.metaldiff --git a/crates/uzu/src/backends/metal/kernel/attention/attention_two_pass.metal b/crates/backend-uzu/src/backends/metal/kernel/attention/attention_two_pass.metalsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/attention/attention_two_pass.metalrename to crates/backend-uzu/src/backends/metal/kernel/attention/attention_two_pass.metaldiff --git a/crates/uzu/src/backends/metal/kernel/attention/attention_update_kv_cache.metal b/crates/backend-uzu/src/backends/metal/kernel/attention/attention_update_kv_cache.metalsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/attention/attention_update_kv_cache.metalrename to crates/backend-uzu/src/backends/metal/kernel/attention/attention_update_kv_cache.metaldiff --git a/crates/uzu/src/backends/metal/kernel/attention/mask.h b/crates/backend-uzu/src/backends/metal/kernel/attention/mask.hsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/attention/mask.hrename to crates/backend-uzu/src/backends/metal/kernel/attention/mask.hdiff --git a/crates/uzu/src/backends/metal/kernel/attention/sigmoid_gate.metal b/crates/backend-uzu/src/backends/metal/kernel/attention/sigmoid_gate.metalsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/attention/sigmoid_gate.metalrename to crates/backend-uzu/src/backends/metal/kernel/attention/sigmoid_gate.metaldiff --git a/crates/uzu/src/backends/metal/kernel/audio/add.metal b/crates/backend-uzu/src/backends/metal/kernel/audio/add.metalsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/audio/add.metalrename to crates/backend-uzu/src/backends/metal/kernel/audio/add.metaldiff --git a/crates/uzu/src/backends/metal/kernel/audio/causal_conv1d.metal b/crates/backend-uzu/src/backends/metal/kernel/audio/causal_conv1d.metalsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/audio/causal_conv1d.metalrename to crates/backend-uzu/src/backends/metal/kernel/audio/causal_conv1d.metaldiff --git a/crates/uzu/src/backends/metal/kernel/audio/causal_conv1d_grouped.metal b/crates/backend-uzu/src/backends/metal/kernel/audio/causal_conv1d_grouped.metalsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/audio/causal_conv1d_grouped.metalrename to crates/backend-uzu/src/backends/metal/kernel/audio/causal_conv1d_grouped.metaldiff --git a/crates/uzu/src/backends/metal/kernel/audio/causal_conv1d_grouped_residual.metal b/crates/backend-uzu/src/backends/metal/kernel/audio/causal_conv1d_grouped_residual.metalsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/audio/causal_conv1d_grouped_residual.metalrename to crates/backend-uzu/src/backends/metal/kernel/audio/causal_conv1d_grouped_residual.metaldiff --git a/crates/uzu/src/backends/metal/kernel/audio/causal_conv_transpose1d.metal b/crates/backend-uzu/src/backends/metal/kernel/audio/causal_conv_transpose1d.metalsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/audio/causal_conv_transpose1d.metalrename to crates/backend-uzu/src/backends/metal/kernel/audio/causal_conv_transpose1d.metaldiff --git a/crates/uzu/src/backends/metal/kernel/audio/causal_conv_transpose1d_causal_pad.metal b/crates/backend-uzu/src/backends/metal/kernel/audio/causal_conv_transpose1d_causal_pad.metalsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/audio/causal_conv_transpose1d_causal_pad.metalrename to crates/backend-uzu/src/backends/metal/kernel/audio/causal_conv_transpose1d_causal_pad.metaldiff --git a/crates/uzu/src/backends/metal/kernel/audio/conv1d.metal b/crates/backend-uzu/src/backends/metal/kernel/audio/conv1d.metalsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/audio/conv1d.metalrename to crates/backend-uzu/src/backends/metal/kernel/audio/conv1d.metaldiff --git a/crates/uzu/src/backends/metal/kernel/audio/fsq_decode.metal b/crates/backend-uzu/src/backends/metal/kernel/audio/fsq_decode.metalsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/audio/fsq_decode.metalrename to crates/backend-uzu/src/backends/metal/kernel/audio/fsq_decode.metaldiff --git a/crates/uzu/src/backends/metal/kernel/audio/fsq_encode.metal b/crates/backend-uzu/src/backends/metal/kernel/audio/fsq_encode.metalsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/audio/fsq_encode.metalrename to crates/backend-uzu/src/backends/metal/kernel/audio/fsq_encode.metaldiff --git a/crates/uzu/src/backends/metal/kernel/audio/half_snake.metal b/crates/backend-uzu/src/backends/metal/kernel/audio/half_snake.metalsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/audio/half_snake.metalrename to crates/backend-uzu/src/backends/metal/kernel/audio/half_snake.metaldiff --git a/crates/uzu/src/backends/metal/kernel/audio/norm_ncs.metal b/crates/backend-uzu/src/backends/metal/kernel/audio/norm_ncs.metalsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/audio/norm_ncs.metalrename to crates/backend-uzu/src/backends/metal/kernel/audio/norm_ncs.metaldiff --git a/crates/uzu/src/backends/metal/kernel/audio/quantizer_decode.metal b/crates/backend-uzu/src/backends/metal/kernel/audio/quantizer_decode.metalsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/audio/quantizer_decode.metalrename to crates/backend-uzu/src/backends/metal/kernel/audio/quantizer_decode.metaldiff --git a/crates/uzu/src/backends/metal/kernel/common/defines.h b/crates/backend-uzu/src/backends/metal/kernel/common/defines.hsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/common/defines.hrename to crates/backend-uzu/src/backends/metal/kernel/common/defines.hdiff --git a/crates/uzu/src/backends/metal/kernel/common/dsl.h b/crates/backend-uzu/src/backends/metal/kernel/common/dsl.hsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/common/dsl.hrename to crates/backend-uzu/src/backends/metal/kernel/common/dsl.hdiff --git a/crates/uzu/src/backends/metal/kernel/common/tensor_view.h b/crates/backend-uzu/src/backends/metal/kernel/common/tensor_view.hsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/common/tensor_view.hrename to crates/backend-uzu/src/backends/metal/kernel/common/tensor_view.hdiff --git a/crates/uzu/src/backends/metal/kernel/common/thread_context.h b/crates/backend-uzu/src/backends/metal/kernel/common/thread_context.hsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/common/thread_context.hrename to crates/backend-uzu/src/backends/metal/kernel/common/thread_context.hdiff --git a/crates/uzu/src/backends/metal/kernel/common/threadgroup_reduce.h b/crates/backend-uzu/src/backends/metal/kernel/common/threadgroup_reduce.hsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/common/threadgroup_reduce.hrename to crates/backend-uzu/src/backends/metal/kernel/common/threadgroup_reduce.hdiff --git a/crates/uzu/src/backends/metal/kernel/delta_net/conv_scan.metal b/crates/backend-uzu/src/backends/metal/kernel/delta_net/conv_scan.metalsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/delta_net/conv_scan.metalrename to crates/backend-uzu/src/backends/metal/kernel/delta_net/conv_scan.metaldiff --git a/crates/uzu/src/backends/metal/kernel/delta_net/conv_update.metal b/crates/backend-uzu/src/backends/metal/kernel/delta_net/conv_update.metalsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/delta_net/conv_update.metalrename to crates/backend-uzu/src/backends/metal/kernel/delta_net/conv_update.metaldiff --git a/crates/uzu/src/backends/metal/kernel/delta_net/norm_gate.metal b/crates/backend-uzu/src/backends/metal/kernel/delta_net/norm_gate.metalsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/delta_net/norm_gate.metalrename to crates/backend-uzu/src/backends/metal/kernel/delta_net/norm_gate.metaldiff --git a/crates/uzu/src/backends/metal/kernel/delta_net/prefill.metal b/crates/backend-uzu/src/backends/metal/kernel/delta_net/prefill.metalsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/delta_net/prefill.metalrename to crates/backend-uzu/src/backends/metal/kernel/delta_net/prefill.metaldiff --git a/crates/uzu/src/backends/metal/kernel/delta_net/prefill_prep.metal b/crates/backend-uzu/src/backends/metal/kernel/delta_net/prefill_prep.metalsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/delta_net/prefill_prep.metalrename to crates/backend-uzu/src/backends/metal/kernel/delta_net/prefill_prep.metaldiff --git a/crates/uzu/src/backends/metal/kernel/delta_net/update.metal b/crates/backend-uzu/src/backends/metal/kernel/delta_net/update.metalsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/delta_net/update.metalrename to crates/backend-uzu/src/backends/metal/kernel/delta_net/update.metaldiff --git a/crates/uzu/src/backends/metal/kernel/embedding/embedding_rows_sum.metal b/crates/backend-uzu/src/backends/metal/kernel/embedding/embedding_rows_sum.metalsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/embedding/embedding_rows_sum.metalrename to crates/backend-uzu/src/backends/metal/kernel/embedding/embedding_rows_sum.metaldiff --git a/crates/uzu/src/backends/metal/kernel/embedding/full_precision_embedding.metal b/crates/backend-uzu/src/backends/metal/kernel/embedding/full_precision_embedding.metalsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/embedding/full_precision_embedding.metalrename to crates/backend-uzu/src/backends/metal/kernel/embedding/full_precision_embedding.metaldiff --git a/crates/uzu/src/backends/metal/kernel/embedding/quant_embedding.metal b/crates/backend-uzu/src/backends/metal/kernel/embedding/quant_embedding.metalsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/embedding/quant_embedding.metalrename to crates/backend-uzu/src/backends/metal/kernel/embedding/quant_embedding.metaldiff --git a/crates/uzu/src/backends/metal/kernel/generated/activation_type.h b/crates/backend-uzu/src/backends/metal/kernel/generated/activation_type.hsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/generated/activation_type.hrename to crates/backend-uzu/src/backends/metal/kernel/generated/activation_type.hdiff --git a/crates/uzu/src/backends/metal/kernel/generated/argmax.h b/crates/backend-uzu/src/backends/metal/kernel/generated/argmax.hsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/generated/argmax.hrename to crates/backend-uzu/src/backends/metal/kernel/generated/argmax.hdiff --git a/crates/uzu/src/backends/metal/kernel/generated/attention.h b/crates/backend-uzu/src/backends/metal/kernel/generated/attention.hsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/generated/attention.hrename to crates/backend-uzu/src/backends/metal/kernel/generated/attention.hdiff --git a/crates/uzu/src/backends/metal/kernel/generated/kv_cache_update.h b/crates/backend-uzu/src/backends/metal/kernel/generated/kv_cache_update.hsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/generated/kv_cache_update.hrename to crates/backend-uzu/src/backends/metal/kernel/generated/kv_cache_update.hdiff --git a/crates/uzu/src/backends/metal/kernel/generated/matmul.h b/crates/backend-uzu/src/backends/metal/kernel/generated/matmul.hsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/generated/matmul.hrename to crates/backend-uzu/src/backends/metal/kernel/generated/matmul.hdiff --git a/crates/uzu/src/backends/metal/kernel/generated/quantization.h b/crates/backend-uzu/src/backends/metal/kernel/generated/quantization.hsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/generated/quantization.hrename to crates/backend-uzu/src/backends/metal/kernel/generated/quantization.hdiff --git a/crates/uzu/src/backends/metal/kernel/generated/ring.h b/crates/backend-uzu/src/backends/metal/kernel/generated/ring.hsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/generated/ring.hrename to crates/backend-uzu/src/backends/metal/kernel/generated/ring.hdiff --git a/crates/uzu/src/backends/metal/kernel/generated/trie.h b/crates/backend-uzu/src/backends/metal/kernel/generated/trie.hsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/generated/trie.hrename to crates/backend-uzu/src/backends/metal/kernel/generated/trie.hdiff --git a/crates/uzu/src/backends/metal/kernel/hadamard_transform/hadamard_transform.h b/crates/backend-uzu/src/backends/metal/kernel/hadamard_transform/hadamard_transform.hsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/hadamard_transform/hadamard_transform.hrename to crates/backend-uzu/src/backends/metal/kernel/hadamard_transform/hadamard_transform.hdiff --git a/crates/uzu/src/backends/metal/kernel/hadamard_transform/hadamard_transform.metal b/crates/backend-uzu/src/backends/metal/kernel/hadamard_transform/hadamard_transform.metalsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/hadamard_transform/hadamard_transform.metalrename to crates/backend-uzu/src/backends/metal/kernel/hadamard_transform/hadamard_transform.metaldiff --git a/crates/uzu/src/backends/metal/kernel/kv_cache_update/kv_cache_update.metal b/crates/backend-uzu/src/backends/metal/kernel/kv_cache_update/kv_cache_update.metalsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/kv_cache_update/kv_cache_update.metalrename to crates/backend-uzu/src/backends/metal/kernel/kv_cache_update/kv_cache_update.metaldiff --git a/crates/uzu/src/backends/metal/kernel/layer_norm/layer_norm.metal b/crates/backend-uzu/src/backends/metal/kernel/layer_norm/layer_norm.metalsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/layer_norm/layer_norm.metalrename to crates/backend-uzu/src/backends/metal/kernel/layer_norm/layer_norm.metaldiff --git a/crates/uzu/src/backends/metal/kernel/matmul/common/defines.h b/crates/backend-uzu/src/backends/metal/kernel/matmul/common/defines.hsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/matmul/common/defines.hrename to crates/backend-uzu/src/backends/metal/kernel/matmul/common/defines.hdiff --git a/crates/uzu/src/backends/metal/kernel/matmul/common/gemm.h b/crates/backend-uzu/src/backends/metal/kernel/matmul/common/gemm.hsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/matmul/common/gemm.hrename to crates/backend-uzu/src/backends/metal/kernel/matmul/common/gemm.hdiff --git a/crates/uzu/src/backends/metal/kernel/matmul/common/gemm_mpp_core.h b/crates/backend-uzu/src/backends/metal/kernel/matmul/common/gemm_mpp_core.hsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/matmul/common/gemm_mpp_core.hrename to crates/backend-uzu/src/backends/metal/kernel/matmul/common/gemm_mpp_core.hdiff --git a/crates/uzu/src/backends/metal/kernel/matmul/common/loader.h b/crates/backend-uzu/src/backends/metal/kernel/matmul/common/loader.hsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/matmul/common/loader.hrename to crates/backend-uzu/src/backends/metal/kernel/matmul/common/loader.hdiff --git a/crates/uzu/src/backends/metal/kernel/matmul/common/simdgroup_fragment.h b/crates/backend-uzu/src/backends/metal/kernel/matmul/common/simdgroup_fragment.hsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/matmul/common/simdgroup_fragment.hrename to crates/backend-uzu/src/backends/metal/kernel/matmul/common/simdgroup_fragment.hdiff --git a/crates/uzu/src/backends/metal/kernel/matmul/common/simdgroup_multiply_accumulate.h b/crates/backend-uzu/src/backends/metal/kernel/matmul/common/simdgroup_multiply_accumulate.hsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/matmul/common/simdgroup_multiply_accumulate.hrename to crates/backend-uzu/src/backends/metal/kernel/matmul/common/simdgroup_multiply_accumulate.hdiff --git a/crates/uzu/src/backends/metal/kernel/matmul/common/threadgroup_tile.h b/crates/backend-uzu/src/backends/metal/kernel/matmul/common/threadgroup_tile.hsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/matmul/common/threadgroup_tile.hrename to crates/backend-uzu/src/backends/metal/kernel/matmul/common/threadgroup_tile.hdiff --git a/crates/uzu/src/backends/metal/kernel/matmul/gemm.metal b/crates/backend-uzu/src/backends/metal/kernel/matmul/gemm.metalsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/matmul/gemm.metalrename to crates/backend-uzu/src/backends/metal/kernel/matmul/gemm.metaldiff --git a/crates/uzu/src/backends/metal/kernel/matmul/gemm.rs b/crates/backend-uzu/src/backends/metal/kernel/matmul/gemm.rssimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/matmul/gemm.rsrename to crates/backend-uzu/src/backends/metal/kernel/matmul/gemm.rsdiff --git a/crates/uzu/src/backends/metal/kernel/matmul/gemm_mpp.metal b/crates/backend-uzu/src/backends/metal/kernel/matmul/gemm_mpp.metalsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/matmul/gemm_mpp.metalrename to crates/backend-uzu/src/backends/metal/kernel/matmul/gemm_mpp.metaldiff --git a/crates/uzu/src/backends/metal/kernel/matmul/gemm_mpp.rs b/crates/backend-uzu/src/backends/metal/kernel/matmul/gemm_mpp.rssimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/matmul/gemm_mpp.rsrename to crates/backend-uzu/src/backends/metal/kernel/matmul/gemm_mpp.rsdiff --git a/crates/uzu/src/backends/metal/kernel/matmul/gemv.metal b/crates/backend-uzu/src/backends/metal/kernel/matmul/gemv.metalsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/matmul/gemv.metalrename to crates/backend-uzu/src/backends/metal/kernel/matmul/gemv.metaldiff --git a/crates/uzu/src/backends/metal/kernel/matmul/gemv.rs b/crates/backend-uzu/src/backends/metal/kernel/matmul/gemv.rssimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/matmul/gemv.rsrename to crates/backend-uzu/src/backends/metal/kernel/matmul/gemv.rsdiff --git a/crates/uzu/src/backends/metal/kernel/matmul/mod.rs b/crates/backend-uzu/src/backends/metal/kernel/matmul/mod.rssimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/matmul/mod.rsrename to crates/backend-uzu/src/backends/metal/kernel/matmul/mod.rsdiff --git a/crates/uzu/src/backends/metal/kernel/mlp/activation_mul.metal b/crates/backend-uzu/src/backends/metal/kernel/mlp/activation_mul.metalsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/mlp/activation_mul.metalrename to crates/backend-uzu/src/backends/metal/kernel/mlp/activation_mul.metaldiff --git a/crates/uzu/src/backends/metal/kernel/mod.rs b/crates/backend-uzu/src/backends/metal/kernel/mod.rssimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/mod.rsrename to crates/backend-uzu/src/backends/metal/kernel/mod.rsdiff --git a/crates/uzu/src/backends/metal/kernel/moe/counts_offsets_fused.metal b/crates/backend-uzu/src/backends/metal/kernel/moe/counts_offsets_fused.metalsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/moe/counts_offsets_fused.metalrename to crates/backend-uzu/src/backends/metal/kernel/moe/counts_offsets_fused.metaldiff --git a/crates/uzu/src/backends/metal/kernel/moe/experts_single.metal b/crates/backend-uzu/src/backends/metal/kernel/moe/experts_single.metalsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/moe/experts_single.metalrename to crates/backend-uzu/src/backends/metal/kernel/moe/experts_single.metaldiff --git a/crates/uzu/src/backends/metal/kernel/moe/experts_two_pass_decode.metal b/crates/backend-uzu/src/backends/metal/kernel/moe/experts_two_pass_decode.metalsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/moe/experts_two_pass_decode.metalrename to crates/backend-uzu/src/backends/metal/kernel/moe/experts_two_pass_decode.metaldiff --git a/crates/uzu/src/backends/metal/kernel/moe/experts_two_pass_prefill.metal b/crates/backend-uzu/src/backends/metal/kernel/moe/experts_two_pass_prefill.metalsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/moe/experts_two_pass_prefill.metalrename to crates/backend-uzu/src/backends/metal/kernel/moe/experts_two_pass_prefill.metaldiff --git a/crates/uzu/src/backends/metal/kernel/moe/finalize.metal b/crates/backend-uzu/src/backends/metal/kernel/moe/finalize.metalsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/moe/finalize.metalrename to crates/backend-uzu/src/backends/metal/kernel/moe/finalize.metaldiff --git a/crates/uzu/src/backends/metal/kernel/moe/gather.metal b/crates/backend-uzu/src/backends/metal/kernel/moe/gather.metalsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/moe/gather.metalrename to crates/backend-uzu/src/backends/metal/kernel/moe/gather.metaldiff --git a/crates/uzu/src/backends/metal/kernel/moe/router_topk.metal b/crates/backend-uzu/src/backends/metal/kernel/moe/router_topk.metalsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/moe/router_topk.metalrename to crates/backend-uzu/src/backends/metal/kernel/moe/router_topk.metaldiff --git a/crates/uzu/src/backends/metal/kernel/moe/scatter_buckets.metal b/crates/backend-uzu/src/backends/metal/kernel/moe/scatter_buckets.metalsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/moe/scatter_buckets.metalrename to crates/backend-uzu/src/backends/metal/kernel/moe/scatter_buckets.metaldiff --git a/crates/uzu/src/backends/metal/kernel/moe/tiles_map.metal b/crates/backend-uzu/src/backends/metal/kernel/moe/tiles_map.metalsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/moe/tiles_map.metalrename to crates/backend-uzu/src/backends/metal/kernel/moe/tiles_map.metaldiff --git a/crates/uzu/src/backends/metal/kernel/moe/tiles_pass_a.metal b/crates/backend-uzu/src/backends/metal/kernel/moe/tiles_pass_a.metalsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/moe/tiles_pass_a.metalrename to crates/backend-uzu/src/backends/metal/kernel/moe/tiles_pass_a.metaldiff --git a/crates/uzu/src/backends/metal/kernel/pooling/pooling.metal b/crates/backend-uzu/src/backends/metal/kernel/pooling/pooling.metalsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/pooling/pooling.metalrename to crates/backend-uzu/src/backends/metal/kernel/pooling/pooling.metaldiff --git a/crates/uzu/src/backends/metal/kernel/quant_matmul/mma.h b/crates/backend-uzu/src/backends/metal/kernel/quant_matmul/mma.hsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/quant_matmul/mma.hrename to crates/backend-uzu/src/backends/metal/kernel/quant_matmul/mma.hdiff --git a/crates/uzu/src/backends/metal/kernel/quant_matmul/qmm_transposed.metal b/crates/backend-uzu/src/backends/metal/kernel/quant_matmul/qmm_transposed.metalsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/quant_matmul/qmm_transposed.metalrename to crates/backend-uzu/src/backends/metal/kernel/quant_matmul/qmm_transposed.metaldiff --git a/crates/uzu/src/backends/metal/kernel/quant_matmul/qmv.metal b/crates/backend-uzu/src/backends/metal/kernel/quant_matmul/qmv.metalsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/quant_matmul/qmv.metalrename to crates/backend-uzu/src/backends/metal/kernel/quant_matmul/qmv.metaldiff --git a/crates/uzu/src/backends/metal/kernel/quant_matmul/qmv_fast.metal b/crates/backend-uzu/src/backends/metal/kernel/quant_matmul/qmv_fast.metalsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/quant_matmul/qmv_fast.metalrename to crates/backend-uzu/src/backends/metal/kernel/quant_matmul/qmv_fast.metaldiff --git a/crates/uzu/src/backends/metal/kernel/quant_matmul/quant_matmul.h b/crates/backend-uzu/src/backends/metal/kernel/quant_matmul/quant_matmul.hsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/quant_matmul/quant_matmul.hrename to crates/backend-uzu/src/backends/metal/kernel/quant_matmul/quant_matmul.hdiff --git a/crates/uzu/src/backends/metal/kernel/rms_norm/qk_norm.metal b/crates/backend-uzu/src/backends/metal/kernel/rms_norm/qk_norm.metalsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/rms_norm/qk_norm.metalrename to crates/backend-uzu/src/backends/metal/kernel/rms_norm/qk_norm.metaldiff --git a/crates/uzu/src/backends/metal/kernel/rms_norm/rms_norm.metal b/crates/backend-uzu/src/backends/metal/kernel/rms_norm/rms_norm.metalsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/rms_norm/rms_norm.metalrename to crates/backend-uzu/src/backends/metal/kernel/rms_norm/rms_norm.metaldiff --git a/crates/uzu/src/backends/metal/kernel/rng.h b/crates/backend-uzu/src/backends/metal/kernel/rng.hsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/rng.hrename to crates/backend-uzu/src/backends/metal/kernel/rng.hdiff --git a/crates/uzu/src/backends/metal/kernel/rope/rope.metal b/crates/backend-uzu/src/backends/metal/kernel/rope/rope.metalsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/rope/rope.metalrename to crates/backend-uzu/src/backends/metal/kernel/rope/rope.metaldiff --git a/crates/uzu/src/backends/metal/kernel/sampling/argmax.metal b/crates/backend-uzu/src/backends/metal/kernel/sampling/argmax.metalsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/sampling/argmax.metalrename to crates/backend-uzu/src/backends/metal/kernel/sampling/argmax.metaldiff --git a/crates/uzu/src/backends/metal/kernel/sampling/bitmask.metal b/crates/backend-uzu/src/backends/metal/kernel/sampling/bitmask.metalsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/sampling/bitmask.metalrename to crates/backend-uzu/src/backends/metal/kernel/sampling/bitmask.metaldiff --git a/crates/uzu/src/backends/metal/kernel/sampling/gumbel.metal b/crates/backend-uzu/src/backends/metal/kernel/sampling/gumbel.metalsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/sampling/gumbel.metalrename to crates/backend-uzu/src/backends/metal/kernel/sampling/gumbel.metaldiff --git a/crates/uzu/src/backends/metal/kernel/sampling/min_p.metal b/crates/backend-uzu/src/backends/metal/kernel/sampling/min_p.metalsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/sampling/min_p.metalrename to crates/backend-uzu/src/backends/metal/kernel/sampling/min_p.metaldiff --git a/crates/uzu/src/backends/metal/kernel/sampling/temperature.metal b/crates/backend-uzu/src/backends/metal/kernel/sampling/temperature.metalsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/sampling/temperature.metalrename to crates/backend-uzu/src/backends/metal/kernel/sampling/temperature.metaldiff --git a/crates/uzu/src/backends/metal/kernel/sampling/top_k.metal b/crates/backend-uzu/src/backends/metal/kernel/sampling/top_k.metalsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/sampling/top_k.metalrename to crates/backend-uzu/src/backends/metal/kernel/sampling/top_k.metaldiff --git a/crates/uzu/src/backends/metal/kernel/sampling/top_p.metal b/crates/backend-uzu/src/backends/metal/kernel/sampling/top_p.metalsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/sampling/top_p.metalrename to crates/backend-uzu/src/backends/metal/kernel/sampling/top_p.metaldiff --git a/crates/uzu/src/backends/metal/kernel/short_conv/short_conv.metal b/crates/backend-uzu/src/backends/metal/kernel/short_conv/short_conv.metalsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/short_conv/short_conv.metalrename to crates/backend-uzu/src/backends/metal/kernel/short_conv/short_conv.metaldiff --git a/crates/uzu/src/backends/metal/kernel/ssm/conv1d.metal b/crates/backend-uzu/src/backends/metal/kernel/ssm/conv1d.metalsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/ssm/conv1d.metalrename to crates/backend-uzu/src/backends/metal/kernel/ssm/conv1d.metaldiff --git a/crates/uzu/src/backends/metal/kernel/ssm/split_inproj.metal b/crates/backend-uzu/src/backends/metal/kernel/ssm/split_inproj.metalsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/ssm/split_inproj.metalrename to crates/backend-uzu/src/backends/metal/kernel/ssm/split_inproj.metaldiff --git a/crates/uzu/src/backends/metal/kernel/ssm/ssd_prefill.metal b/crates/backend-uzu/src/backends/metal/kernel/ssm/ssd_prefill.metalsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/ssm/ssd_prefill.metalrename to crates/backend-uzu/src/backends/metal/kernel/ssm/ssd_prefill.metaldiff --git a/crates/uzu/src/backends/metal/kernel/ssm/ssd_update.metal b/crates/backend-uzu/src/backends/metal/kernel/ssm/ssd_update.metalsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/ssm/ssd_update.metalrename to crates/backend-uzu/src/backends/metal/kernel/ssm/ssd_update.metaldiff --git a/crates/uzu/src/backends/metal/kernel/tensor_add_bias/tensor_add_bias.metal b/crates/backend-uzu/src/backends/metal/kernel/tensor_add_bias/tensor_add_bias.metalsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/tensor_add_bias/tensor_add_bias.metalrename to crates/backend-uzu/src/backends/metal/kernel/tensor_add_bias/tensor_add_bias.metaldiff --git a/crates/uzu/src/backends/metal/kernel/tensor_add_scale/tensor_add_scale.metal b/crates/backend-uzu/src/backends/metal/kernel/tensor_add_scale/tensor_add_scale.metalsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/tensor_add_scale/tensor_add_scale.metalrename to crates/backend-uzu/src/backends/metal/kernel/tensor_add_scale/tensor_add_scale.metaldiff --git a/crates/uzu/src/backends/metal/kernel/tensor_add_swap/tensor_add_swap.metal b/crates/backend-uzu/src/backends/metal/kernel/tensor_add_swap/tensor_add_swap.metalsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/tensor_add_swap/tensor_add_swap.metalrename to crates/backend-uzu/src/backends/metal/kernel/tensor_add_swap/tensor_add_swap.metaldiff --git a/crates/uzu/src/backends/metal/kernel/tensor_copy/tensor_copy.metal b/crates/backend-uzu/src/backends/metal/kernel/tensor_copy/tensor_copy.metalsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/tensor_copy/tensor_copy.metalrename to crates/backend-uzu/src/backends/metal/kernel/tensor_copy/tensor_copy.metaldiff --git a/crates/uzu/src/backends/metal/kernel/token_copy/token_copy.metal b/crates/backend-uzu/src/backends/metal/kernel/token_copy/token_copy.metalsimilarity index 100%rename from crates/uzu/src/backends/metal/kernel/token_copy/token_copy.metalrename to crates/backend-uzu/src/backends/metal/kernel/token_copy/token_copy.metaldiff --git a/crates/uzu/src/backends/metal/metal_extensions/compute_command_encoder_extensions_set_value.rs b/crates/backend-uzu/src/backends/metal/metal_extensions/compute_command_encoder_extensions_set_value.rssimilarity index 100%rename from crates/uzu/src/backends/metal/metal_extensions/compute_command_encoder_extensions_set_value.rsrename to crates/backend-uzu/src/backends/metal/metal_extensions/compute_command_encoder_extensions_set_value.rsdiff --git a/crates/uzu/src/backends/metal/metal_extensions/data_type.rs b/crates/backend-uzu/src/backends/metal/metal_extensions/data_type.rssimilarity index 100%rename from crates/uzu/src/backends/metal/metal_extensions/data_type.rsrename to crates/backend-uzu/src/backends/metal/metal_extensions/data_type.rsdiff --git a/crates/uzu/src/backends/metal/metal_extensions/device_extensions.rs b/crates/backend-uzu/src/backends/metal/metal_extensions/device_extensions.rssimilarity index 100%rename from crates/uzu/src/backends/metal/metal_extensions/device_extensions.rsrename to crates/backend-uzu/src/backends/metal/metal_extensions/device_extensions.rsdiff --git a/crates/uzu/src/backends/metal/metal_extensions/function_constant_values_extensions_set_value.rs b/crates/backend-uzu/src/backends/metal/metal_extensions/function_constant_values_extensions_set_value.rssimilarity index 100%rename from crates/uzu/src/backends/metal/metal_extensions/function_constant_values_extensions_set_value.rsrename to crates/backend-uzu/src/backends/metal/metal_extensions/function_constant_values_extensions_set_value.rsdiff --git a/crates/uzu/src/backends/metal/metal_extensions/library_extensions_pipeline.rs b/crates/backend-uzu/src/backends/metal/metal_extensions/library_extensions_pipeline.rssimilarity index 100%rename from crates/uzu/src/backends/metal/metal_extensions/library_extensions_pipeline.rsrename to crates/backend-uzu/src/backends/metal/metal_extensions/library_extensions_pipeline.rsdiff --git a/crates/uzu/src/backends/metal/metal_extensions/mod.rs b/crates/backend-uzu/src/backends/metal/metal_extensions/mod.rssimilarity index 100%rename from crates/uzu/src/backends/metal/metal_extensions/mod.rsrename to crates/backend-uzu/src/backends/metal/metal_extensions/mod.rsdiff --git a/crates/uzu/src/backends/metal/mod.rs b/crates/backend-uzu/src/backends/metal/mod.rssimilarity index 100%rename from crates/uzu/src/backends/metal/mod.rsrename to crates/backend-uzu/src/backends/metal/mod.rsdiff --git a/crates/uzu/src/backends/mod.rs b/crates/backend-uzu/src/backends/mod.rssimilarity index 100%rename from crates/uzu/src/backends/mod.rsrename to crates/backend-uzu/src/backends/mod.rsdiff --git a/crates/uzu/src/classifier/classifier.rs b/crates/backend-uzu/src/classifier/classifier.rssimilarity index 100%rename from crates/uzu/src/classifier/classifier.rsrename to crates/backend-uzu/src/classifier/classifier.rsdiff --git a/crates/uzu/src/classifier/classifier_context.rs b/crates/backend-uzu/src/classifier/classifier_context.rssimilarity index 100%rename from crates/uzu/src/classifier/classifier_context.rsrename to crates/backend-uzu/src/classifier/classifier_context.rsdiff --git a/crates/uzu/src/classifier/error.rs b/crates/backend-uzu/src/classifier/error.rssimilarity index 100%rename from crates/uzu/src/classifier/error.rsrename to crates/backend-uzu/src/classifier/error.rsdiff --git a/crates/uzu/src/classifier/mod.rs b/crates/backend-uzu/src/classifier/mod.rssimilarity index 100%rename from crates/uzu/src/classifier/mod.rsrename to crates/backend-uzu/src/classifier/mod.rsdiff --git a/crates/uzu/src/classifier/result.rs b/crates/backend-uzu/src/classifier/result.rssimilarity index 100%rename from crates/uzu/src/classifier/result.rsrename to crates/backend-uzu/src/classifier/result.rsdiff --git a/crates/uzu/src/config/attention.rs b/crates/backend-uzu/src/config/attention.rssimilarity index 100%rename from crates/uzu/src/config/attention.rsrename to crates/backend-uzu/src/config/attention.rsdiff --git a/crates/uzu/src/config/classifier/classifier_config.rs b/crates/backend-uzu/src/config/classifier/classifier_config.rssimilarity index 100%rename from crates/uzu/src/config/classifier/classifier_config.rsrename to crates/backend-uzu/src/config/classifier/classifier_config.rsdiff --git a/crates/uzu/src/config/classifier/mod.rs b/crates/backend-uzu/src/config/classifier/mod.rssimilarity index 100%rename from crates/uzu/src/config/classifier/mod.rsrename to crates/backend-uzu/src/config/classifier/mod.rsdiff --git a/crates/uzu/src/config/classifier/pooling_type.rs b/crates/backend-uzu/src/config/classifier/pooling_type.rssimilarity index 100%rename from crates/uzu/src/config/classifier/pooling_type.rsrename to crates/backend-uzu/src/config/classifier/pooling_type.rsdiff --git a/crates/uzu/src/config/classifier/prediction_head_config.rs b/crates/backend-uzu/src/config/classifier/prediction_head_config.rssimilarity index 100%rename from crates/uzu/src/config/classifier/prediction_head_config.rsrename to crates/backend-uzu/src/config/classifier/prediction_head_config.rsdiff --git a/crates/uzu/src/config/classifier_model.rs b/crates/backend-uzu/src/config/classifier_model.rssimilarity index 100%rename from crates/uzu/src/config/classifier_model.rsrename to crates/backend-uzu/src/config/classifier_model.rsdiff --git a/crates/uzu/src/config/common.rs b/crates/backend-uzu/src/config/common.rssimilarity index 100%rename from crates/uzu/src/config/common.rsrename to crates/backend-uzu/src/config/common.rsdiff --git a/crates/uzu/src/config/decoder.rs b/crates/backend-uzu/src/config/decoder.rssimilarity index 100%rename from crates/uzu/src/config/decoder.rsrename to crates/backend-uzu/src/config/decoder.rsdiff --git a/crates/uzu/src/config/decoder_layer.rs b/crates/backend-uzu/src/config/decoder_layer.rssimilarity index 100%rename from crates/uzu/src/config/decoder_layer.rsrename to crates/backend-uzu/src/config/decoder_layer.rsdiff --git a/crates/uzu/src/config/delta_net.rs b/crates/backend-uzu/src/config/delta_net.rssimilarity index 100%rename from crates/uzu/src/config/delta_net.rsrename to crates/backend-uzu/src/config/delta_net.rsdiff --git a/crates/uzu/src/config/embedding.rs b/crates/backend-uzu/src/config/embedding.rssimilarity index 100%rename from crates/uzu/src/config/embedding.rsrename to crates/backend-uzu/src/config/embedding.rsdiff --git a/crates/uzu/src/config/error.rs b/crates/backend-uzu/src/config/error.rssimilarity index 100%rename from crates/uzu/src/config/error.rsrename to crates/backend-uzu/src/config/error.rsdiff --git a/crates/uzu/src/config/generation.rs b/crates/backend-uzu/src/config/generation.rssimilarity index 100%rename from crates/uzu/src/config/generation.rsrename to crates/backend-uzu/src/config/generation.rsdiff --git a/crates/uzu/src/config/language_model.rs b/crates/backend-uzu/src/config/language_model.rssimilarity index 100%rename from crates/uzu/src/config/language_model.rsrename to crates/backend-uzu/src/config/language_model.rsdiff --git a/crates/uzu/src/config/linear.rs b/crates/backend-uzu/src/config/linear.rssimilarity index 100%rename from crates/uzu/src/config/linear.rsrename to crates/backend-uzu/src/config/linear.rsdiff --git a/crates/uzu/src/config/mamba.rs b/crates/backend-uzu/src/config/mamba.rssimilarity index 100%rename from crates/uzu/src/config/mamba.rsrename to crates/backend-uzu/src/config/mamba.rsdiff --git a/crates/uzu/src/config/message_processor.rs b/crates/backend-uzu/src/config/message_processor.rssimilarity index 100%rename from crates/uzu/src/config/message_processor.rsrename to crates/backend-uzu/src/config/message_processor.rsdiff --git a/crates/uzu/src/config/metadata.rs b/crates/backend-uzu/src/config/metadata.rssimilarity index 100%rename from crates/uzu/src/config/metadata.rsrename to crates/backend-uzu/src/config/metadata.rsdiff --git a/crates/uzu/src/config/mlp.rs b/crates/backend-uzu/src/config/mlp.rssimilarity index 100%rename from crates/uzu/src/config/mlp.rsrename to crates/backend-uzu/src/config/mlp.rsdiff --git a/crates/uzu/src/config/mod.rs b/crates/backend-uzu/src/config/mod.rssimilarity index 100%rename from crates/uzu/src/config/mod.rsrename to crates/backend-uzu/src/config/mod.rsdiff --git a/crates/uzu/src/config/model_config.rs b/crates/backend-uzu/src/config/model_config.rssimilarity index 100%rename from crates/uzu/src/config/model_config.rsrename to crates/backend-uzu/src/config/model_config.rsdiff --git a/crates/uzu/src/config/model_type.rs b/crates/backend-uzu/src/config/model_type.rssimilarity index 100%rename from crates/uzu/src/config/model_type.rsrename to crates/backend-uzu/src/config/model_type.rsdiff --git a/crates/uzu/src/config/normalization/mod.rs b/crates/backend-uzu/src/config/normalization/mod.rssimilarity index 100%rename from crates/uzu/src/config/normalization/mod.rsrename to crates/backend-uzu/src/config/normalization/mod.rsdiff --git a/crates/uzu/src/config/normalization/normalization_config.rs b/crates/backend-uzu/src/config/normalization/normalization_config.rssimilarity index 100%rename from crates/uzu/src/config/normalization/normalization_config.rsrename to crates/backend-uzu/src/config/normalization/normalization_config.rsdiff --git a/crates/uzu/src/config/normalization/upcast_mode.rs b/crates/backend-uzu/src/config/normalization/upcast_mode.rssimilarity index 100%rename from crates/uzu/src/config/normalization/upcast_mode.rsrename to crates/backend-uzu/src/config/normalization/upcast_mode.rsdiff --git a/crates/uzu/src/config/rope.rs b/crates/backend-uzu/src/config/rope.rssimilarity index 100%rename from crates/uzu/src/config/rope.rsrename to crates/backend-uzu/src/config/rope.rsdiff --git a/crates/uzu/src/config/short_conv.rs b/crates/backend-uzu/src/config/short_conv.rssimilarity index 100%rename from crates/uzu/src/config/short_conv.rsrename to crates/backend-uzu/src/config/short_conv.rsdiff --git a/crates/uzu/src/config/transformer.rs b/crates/backend-uzu/src/config/transformer.rssimilarity index 100%rename from crates/uzu/src/config/transformer.rsrename to crates/backend-uzu/src/config/transformer.rsdiff --git a/crates/uzu/src/config/transformer_layer.rs b/crates/backend-uzu/src/config/transformer_layer.rssimilarity index 100%rename from crates/uzu/src/config/transformer_layer.rsrename to crates/backend-uzu/src/config/transformer_layer.rsdiff --git a/crates/uzu/src/config/tts_model.rs b/crates/backend-uzu/src/config/tts_model.rssimilarity index 100%rename from crates/uzu/src/config/tts_model.rsrename to crates/backend-uzu/src/config/tts_model.rsdiff --git a/crates/uzu/src/data_type.rs b/crates/backend-uzu/src/data_type.rssimilarity index 100%rename from crates/uzu/src/data_type.rsrename to crates/backend-uzu/src/data_type.rsdiff --git a/crates/uzu/src/encodable_block/activation.rs b/crates/backend-uzu/src/encodable_block/activation.rssimilarity index 100%rename from crates/uzu/src/encodable_block/activation.rsrename to crates/backend-uzu/src/encodable_block/activation.rsdiff --git a/crates/uzu/src/encodable_block/attention.rs b/crates/backend-uzu/src/encodable_block/attention.rssimilarity index 100%rename from crates/uzu/src/encodable_block/attention.rsrename to crates/backend-uzu/src/encodable_block/attention.rsdiff --git a/crates/uzu/src/encodable_block/classifier_layer.rs b/crates/backend-uzu/src/encodable_block/classifier_layer.rssimilarity index 100%rename from crates/uzu/src/encodable_block/classifier_layer.rsrename to crates/backend-uzu/src/encodable_block/classifier_layer.rsdiff --git a/crates/uzu/src/encodable_block/decoder.rs b/crates/backend-uzu/src/encodable_block/decoder.rssimilarity index 100%rename from crates/uzu/src/encodable_block/decoder.rsrename to crates/backend-uzu/src/encodable_block/decoder.rsdiff --git a/crates/uzu/src/encodable_block/delta_net_mixer.rs b/crates/backend-uzu/src/encodable_block/delta_net_mixer.rssimilarity index 100%rename from crates/uzu/src/encodable_block/delta_net_mixer.rsrename to crates/backend-uzu/src/encodable_block/delta_net_mixer.rsdiff --git a/crates/uzu/src/encodable_block/embedding.rs b/crates/backend-uzu/src/encodable_block/embedding.rssimilarity index 100%rename from crates/uzu/src/encodable_block/embedding.rsrename to crates/backend-uzu/src/encodable_block/embedding.rsdiff --git a/crates/uzu/src/encodable_block/layer/executables.rs b/crates/backend-uzu/src/encodable_block/layer/executables.rssimilarity index 100%rename from crates/uzu/src/encodable_block/layer/executables.rsrename to crates/backend-uzu/src/encodable_block/layer/executables.rsdiff --git a/crates/uzu/src/encodable_block/layer/mixer.rs b/crates/backend-uzu/src/encodable_block/layer/mixer.rssimilarity index 100%rename from crates/uzu/src/encodable_block/layer/mixer.rsrename to crates/backend-uzu/src/encodable_block/layer/mixer.rsdiff --git a/crates/uzu/src/encodable_block/layer/mod.rs b/crates/backend-uzu/src/encodable_block/layer/mod.rssimilarity index 100%rename from crates/uzu/src/encodable_block/layer/mod.rsrename to crates/backend-uzu/src/encodable_block/layer/mod.rsdiff --git a/crates/uzu/src/encodable_block/layer_norm.rs b/crates/backend-uzu/src/encodable_block/layer_norm.rssimilarity index 100%rename from crates/uzu/src/encodable_block/layer_norm.rsrename to crates/backend-uzu/src/encodable_block/layer_norm.rsdiff --git a/crates/uzu/src/encodable_block/linear/full_precision.rs b/crates/backend-uzu/src/encodable_block/linear/full_precision.rssimilarity index 100%rename from crates/uzu/src/encodable_block/linear/full_precision.rsrename to crates/backend-uzu/src/encodable_block/linear/full_precision.rsdiff --git a/crates/uzu/src/encodable_block/linear/mod.rs b/crates/backend-uzu/src/encodable_block/linear/mod.rssimilarity index 100%rename from crates/uzu/src/encodable_block/linear/mod.rsrename to crates/backend-uzu/src/encodable_block/linear/mod.rsdiff --git a/crates/uzu/src/encodable_block/linear/qlora_wrapper.rs b/crates/backend-uzu/src/encodable_block/linear/qlora_wrapper.rssimilarity index 100%rename from crates/uzu/src/encodable_block/linear/qlora_wrapper.rsrename to crates/backend-uzu/src/encodable_block/linear/qlora_wrapper.rsdiff --git a/crates/uzu/src/encodable_block/linear/quantized.rs b/crates/backend-uzu/src/encodable_block/linear/quantized.rssimilarity index 100%rename from crates/uzu/src/encodable_block/linear/quantized.rsrename to crates/backend-uzu/src/encodable_block/linear/quantized.rsdiff --git a/crates/uzu/src/encodable_block/linear/rht_wrapper.rs b/crates/backend-uzu/src/encodable_block/linear/rht_wrapper.rssimilarity index 100%rename from crates/uzu/src/encodable_block/linear/rht_wrapper.rsrename to crates/backend-uzu/src/encodable_block/linear/rht_wrapper.rsdiff --git a/crates/uzu/src/encodable_block/mamba_mixer.rs b/crates/backend-uzu/src/encodable_block/mamba_mixer.rssimilarity index 100%rename from crates/uzu/src/encodable_block/mamba_mixer.rsrename to crates/backend-uzu/src/encodable_block/mamba_mixer.rsdiff --git a/crates/uzu/src/encodable_block/mlp/dense.rs b/crates/backend-uzu/src/encodable_block/mlp/dense.rssimilarity index 100%rename from crates/uzu/src/encodable_block/mlp/dense.rsrename to crates/backend-uzu/src/encodable_block/mlp/dense.rsdiff --git a/crates/uzu/src/encodable_block/mlp/mod.rs b/crates/backend-uzu/src/encodable_block/mlp/mod.rssimilarity index 100%rename from crates/uzu/src/encodable_block/mlp/mod.rsrename to crates/backend-uzu/src/encodable_block/mlp/mod.rsdiff --git a/crates/uzu/src/encodable_block/mlp/moe.rs b/crates/backend-uzu/src/encodable_block/mlp/moe.rssimilarity index 100%rename from crates/uzu/src/encodable_block/mlp/moe.rsrename to crates/backend-uzu/src/encodable_block/mlp/moe.rsdiff --git a/crates/uzu/src/encodable_block/mod.rs b/crates/backend-uzu/src/encodable_block/mod.rssimilarity index 100%rename from crates/uzu/src/encodable_block/mod.rsrename to crates/backend-uzu/src/encodable_block/mod.rsdiff --git a/crates/uzu/src/encodable_block/normalization.rs b/crates/backend-uzu/src/encodable_block/normalization.rssimilarity index 100%rename from crates/uzu/src/encodable_block/normalization.rsrename to crates/backend-uzu/src/encodable_block/normalization.rsdiff --git a/crates/uzu/src/encodable_block/pooling.rs b/crates/backend-uzu/src/encodable_block/pooling.rssimilarity index 100%rename from crates/uzu/src/encodable_block/pooling.rsrename to crates/backend-uzu/src/encodable_block/pooling.rsdiff --git a/crates/uzu/src/encodable_block/prediction_head.rs b/crates/backend-uzu/src/encodable_block/prediction_head.rssimilarity index 100%rename from crates/uzu/src/encodable_block/prediction_head.rsrename to crates/backend-uzu/src/encodable_block/prediction_head.rsdiff --git a/crates/uzu/src/encodable_block/qk_norm.rs b/crates/backend-uzu/src/encodable_block/qk_norm.rssimilarity index 100%rename from crates/uzu/src/encodable_block/qk_norm.rsrename to crates/backend-uzu/src/encodable_block/qk_norm.rsdiff --git a/crates/uzu/src/encodable_block/rms_norm.rs b/crates/backend-uzu/src/encodable_block/rms_norm.rssimilarity index 100%rename from crates/uzu/src/encodable_block/rms_norm.rsrename to crates/backend-uzu/src/encodable_block/rms_norm.rsdiff --git a/crates/uzu/src/encodable_block/rope.rs b/crates/backend-uzu/src/encodable_block/rope.rssimilarity index 100%rename from crates/uzu/src/encodable_block/rope.rsrename to crates/backend-uzu/src/encodable_block/rope.rsdiff --git a/crates/uzu/src/encodable_block/sampling.rs b/crates/backend-uzu/src/encodable_block/sampling.rssimilarity index 100%rename from crates/uzu/src/encodable_block/sampling.rsrename to crates/backend-uzu/src/encodable_block/sampling.rsdiff --git a/crates/uzu/src/encodable_block/short_conv_mixer.rs b/crates/backend-uzu/src/encodable_block/short_conv_mixer.rssimilarity index 100%rename from crates/uzu/src/encodable_block/short_conv_mixer.rsrename to crates/backend-uzu/src/encodable_block/short_conv_mixer.rsdiff --git a/crates/uzu/src/encodable_block/tensor_add_swap.rs b/crates/backend-uzu/src/encodable_block/tensor_add_swap.rssimilarity index 100%rename from crates/uzu/src/encodable_block/tensor_add_swap.rsrename to crates/backend-uzu/src/encodable_block/tensor_add_swap.rsdiff --git a/crates/uzu/src/encodable_block/tensor_copy.rs b/crates/backend-uzu/src/encodable_block/tensor_copy.rssimilarity index 100%rename from crates/uzu/src/encodable_block/tensor_copy.rsrename to crates/backend-uzu/src/encodable_block/tensor_copy.rsdiff --git a/crates/uzu/src/forward_pass/cache_layers.rs b/crates/backend-uzu/src/forward_pass/cache_layers.rssimilarity index 100%rename from crates/uzu/src/forward_pass/cache_layers.rsrename to crates/backend-uzu/src/forward_pass/cache_layers.rsdiff --git a/crates/uzu/src/forward_pass/delta_net_layer.rs b/crates/backend-uzu/src/forward_pass/delta_net_layer.rssimilarity index 100%rename from crates/uzu/src/forward_pass/delta_net_layer.rsrename to crates/backend-uzu/src/forward_pass/delta_net_layer.rsdiff --git a/crates/uzu/src/forward_pass/kv_cache_layer.rs b/crates/backend-uzu/src/forward_pass/kv_cache_layer.rssimilarity index 100%rename from crates/uzu/src/forward_pass/kv_cache_layer.rsrename to crates/backend-uzu/src/forward_pass/kv_cache_layer.rsdiff --git a/crates/uzu/src/forward_pass/mod.rs b/crates/backend-uzu/src/forward_pass/mod.rssimilarity index 100%rename from crates/uzu/src/forward_pass/mod.rsrename to crates/backend-uzu/src/forward_pass/mod.rsdiff --git a/crates/uzu/src/forward_pass/model_shape.rs b/crates/backend-uzu/src/forward_pass/model_shape.rssimilarity index 100%rename from crates/uzu/src/forward_pass/model_shape.rsrename to crates/backend-uzu/src/forward_pass/model_shape.rsdiff --git a/crates/uzu/src/forward_pass/scratch_buffers.rs b/crates/backend-uzu/src/forward_pass/scratch_buffers.rssimilarity index 100%rename from crates/uzu/src/forward_pass/scratch_buffers.rsrename to crates/backend-uzu/src/forward_pass/scratch_buffers.rsdiff --git a/crates/uzu/src/forward_pass/short_conv_layer.rs b/crates/backend-uzu/src/forward_pass/short_conv_layer.rssimilarity index 100%rename from crates/uzu/src/forward_pass/short_conv_layer.rsrename to crates/backend-uzu/src/forward_pass/short_conv_layer.rsdiff --git a/crates/uzu/src/forward_pass/ssm_layer.rs b/crates/backend-uzu/src/forward_pass/ssm_layer.rssimilarity index 100%rename from crates/uzu/src/forward_pass/ssm_layer.rsrename to crates/backend-uzu/src/forward_pass/ssm_layer.rsdiff --git a/crates/uzu/src/forward_pass/state/array_id.rs b/crates/backend-uzu/src/forward_pass/state/array_id.rssimilarity index 100%rename from crates/uzu/src/forward_pass/state/array_id.rsrename to crates/backend-uzu/src/forward_pass/state/array_id.rsdiff --git a/crates/uzu/src/forward_pass/state/common_aux_buffers.rs b/crates/backend-uzu/src/forward_pass/state/common_aux_buffers.rssimilarity index 100%rename from crates/uzu/src/forward_pass/state/common_aux_buffers.rsrename to crates/backend-uzu/src/forward_pass/state/common_aux_buffers.rsdiff --git a/crates/uzu/src/forward_pass/state/language_model_generator_aux_buffers.rs b/crates/backend-uzu/src/forward_pass/state/language_model_generator_aux_buffers.rssimilarity index 100%rename from crates/uzu/src/forward_pass/state/language_model_generator_aux_buffers.rsrename to crates/backend-uzu/src/forward_pass/state/language_model_generator_aux_buffers.rsdiff --git a/crates/uzu/src/forward_pass/state/mod.rs b/crates/backend-uzu/src/forward_pass/state/mod.rssimilarity index 100%rename from crates/uzu/src/forward_pass/state/mod.rsrename to crates/backend-uzu/src/forward_pass/state/mod.rsdiff --git a/crates/uzu/src/forward_pass/state/rope_buffers.rs b/crates/backend-uzu/src/forward_pass/state/rope_buffers.rssimilarity index 100%rename from crates/uzu/src/forward_pass/state/rope_buffers.rsrename to crates/backend-uzu/src/forward_pass/state/rope_buffers.rsdiff --git a/crates/uzu/src/forward_pass/state/rope_type.rs b/crates/backend-uzu/src/forward_pass/state/rope_type.rssimilarity index 100%rename from crates/uzu/src/forward_pass/state/rope_type.rsrename to crates/backend-uzu/src/forward_pass/state/rope_type.rsdiff --git a/crates/uzu/src/forward_pass/state/shared_buffers.rs b/crates/backend-uzu/src/forward_pass/state/shared_buffers.rssimilarity index 100%rename from crates/uzu/src/forward_pass/state/shared_buffers.rsrename to crates/backend-uzu/src/forward_pass/state/shared_buffers.rsdiff --git a/crates/uzu/src/forward_pass/state/state.rs b/crates/backend-uzu/src/forward_pass/state/state.rssimilarity index 100%rename from crates/uzu/src/forward_pass/state/state.rsrename to crates/backend-uzu/src/forward_pass/state/state.rsdiff --git a/crates/uzu/src/forward_pass/traces.rs b/crates/backend-uzu/src/forward_pass/traces.rssimilarity index 100%rename from crates/uzu/src/forward_pass/traces.rsrename to crates/backend-uzu/src/forward_pass/traces.rsdiff --git a/crates/uzu/src/language_model/gpu_capture.rs b/crates/backend-uzu/src/language_model/gpu_capture.rssimilarity index 100%rename from crates/uzu/src/language_model/gpu_capture.rsrename to crates/backend-uzu/src/language_model/gpu_capture.rsdiff --git a/crates/uzu/src/language_model/grammar/mod.rs b/crates/backend-uzu/src/language_model/grammar/mod.rssimilarity index 100%rename from crates/uzu/src/language_model/grammar/mod.rsrename to crates/backend-uzu/src/language_model/grammar/mod.rsdiff --git a/crates/uzu/src/language_model/grammar/xgram.rs b/crates/backend-uzu/src/language_model/grammar/xgram.rssimilarity index 100%rename from crates/uzu/src/language_model/grammar/xgram.rsrename to crates/backend-uzu/src/language_model/grammar/xgram.rsdiff --git a/crates/uzu/src/language_model/gumbel.rs b/crates/backend-uzu/src/language_model/gumbel.rssimilarity index 100%rename from crates/uzu/src/language_model/gumbel.rsrename to crates/backend-uzu/src/language_model/gumbel.rsdiff --git a/crates/uzu/src/language_model/language_model_generator.rs b/crates/backend-uzu/src/language_model/language_model_generator.rssimilarity index 100%rename from crates/uzu/src/language_model/language_model_generator.rsrename to crates/backend-uzu/src/language_model/language_model_generator.rsdiff --git a/crates/uzu/src/language_model/language_model_generator_context.rs b/crates/backend-uzu/src/language_model/language_model_generator_context.rssimilarity index 100%rename from crates/uzu/src/language_model/language_model_generator_context.rsrename to crates/backend-uzu/src/language_model/language_model_generator_context.rsdiff --git a/crates/uzu/src/language_model/mod.rs b/crates/backend-uzu/src/language_model/mod.rssimilarity index 100%rename from crates/uzu/src/language_model/mod.rsrename to crates/backend-uzu/src/language_model/mod.rsdiff --git a/crates/uzu/src/language_model/result.rs b/crates/backend-uzu/src/language_model/result.rssimilarity index 100%rename from crates/uzu/src/language_model/result.rsrename to crates/backend-uzu/src/language_model/result.rsdiff --git a/crates/uzu/src/language_model/rng.rs b/crates/backend-uzu/src/language_model/rng.rssimilarity index 100%rename from crates/uzu/src/language_model/rng.rsrename to crates/backend-uzu/src/language_model/rng.rsdiff --git a/crates/uzu/src/language_model/sampler.rs b/crates/backend-uzu/src/language_model/sampler.rssimilarity index 100%rename from crates/uzu/src/language_model/sampler.rsrename to crates/backend-uzu/src/language_model/sampler.rsdiff --git a/crates/backend-uzu/src/lib.rs b/crates/backend-uzu/src/lib.rsnew file mode 100644index 000000000..759e25b93--- /dev/null+++ b/crates/backend-uzu/src/lib.rs@@ -0,0 +1,32 @@+// needed for tests to resolve `backend_uzu::` imports+extern crate self as backend_uzu;++mod array;+mod audio;+mod classifier;+mod config;+mod data_type;+mod encodable_block;+mod forward_pass;+mod language_model;+mod parameters;+mod speculators;+#[cfg(feature = "tracing")]+mod tracer;+mod trie;+mod utils;++pub mod backends;+pub mod prelude;+pub mod session;++pub use array::{Array, ArrayContextExt};+#[cfg(metal_backend)]+pub use audio::{NanoCodecFsqRuntime, NanoCodecFsqRuntimeConfig};+pub use config::ConfigDataType;+pub use data_type::{ArrayElement, DataType};+pub use language_model::gumbel::{gumbel_float, revidx};+pub use parameters::{ParameterLoader, read_safetensors_metadata};+#[cfg(feature = "tracing")]+pub use tracer::TraceValidator;+pub use utils::VERSION;diff --git a/crates/uzu/src/parameters/loader.rs b/crates/backend-uzu/src/parameters/loader.rssimilarity index 100%rename from crates/uzu/src/parameters/loader.rsrename to crates/backend-uzu/src/parameters/loader.rsdiff --git a/crates/uzu/src/parameters/mod.rs b/crates/backend-uzu/src/parameters/mod.rssimilarity index 100%rename from crates/uzu/src/parameters/mod.rsrename to crates/backend-uzu/src/parameters/mod.rsdiff --git a/crates/uzu/src/parameters/safetensors_metadata.rs b/crates/backend-uzu/src/parameters/safetensors_metadata.rssimilarity index 100%rename from crates/uzu/src/parameters/safetensors_metadata.rsrename to crates/backend-uzu/src/parameters/safetensors_metadata.rsdiff --git a/crates/uzu/src/prelude.rs b/crates/backend-uzu/src/prelude.rssimilarity index 92%rename from crates/uzu/src/prelude.rsrename to crates/backend-uzu/src/prelude.rsindex d174c73a3..7b44d42c4 100644--- a/crates/uzu/src/prelude.rs+++ b/crates/backend-uzu/src/prelude.rs@@ -1,6 +1,6 @@//! Prelude module containing commonly used types from the uzu crate.//!-//! This module can be imported with `use uzu::prelude::*;` to bring the most+//! This module can be imported with `use backend_uzu::prelude::*;` to bring the most//! frequently used types into scope.// Constants & Utilitiesdiff --git a/crates/uzu/src/session/chat_session.rs b/crates/backend-uzu/src/session/chat_session.rssimilarity index 100%rename from crates/uzu/src/session/chat_session.rsrename to crates/backend-uzu/src/session/chat_session.rsdiff --git a/crates/uzu/src/session/classification_session.rs b/crates/backend-uzu/src/session/classification_session.rssimilarity index 100%rename from crates/uzu/src/session/classification_session.rsrename to crates/backend-uzu/src/session/classification_session.rsdiff --git a/crates/uzu/src/session/config/decoding_config.rs b/crates/backend-uzu/src/session/config/decoding_config.rssimilarity index 100%rename from crates/uzu/src/session/config/decoding_config.rsrename to crates/backend-uzu/src/session/config/decoding_config.rsdiff --git a/crates/uzu/src/session/config/grammar_config.rs b/crates/backend-uzu/src/session/config/grammar_config.rssimilarity index 100%rename from crates/uzu/src/session/config/grammar_config.rsrename to crates/backend-uzu/src/session/config/grammar_config.rsdiff --git a/crates/uzu/src/session/config/mod.rs b/crates/backend-uzu/src/session/config/mod.rssimilarity index 100%rename from crates/uzu/src/session/config/mod.rsrename to crates/backend-uzu/src/session/config/mod.rsdiff --git a/crates/uzu/src/session/config/run_config.rs b/crates/backend-uzu/src/session/config/run_config.rssimilarity index 100%rename from crates/uzu/src/session/config/run_config.rsrename to crates/backend-uzu/src/session/config/run_config.rsdiff --git a/crates/uzu/src/session/config/speculator_config.rs b/crates/backend-uzu/src/session/config/speculator_config.rssimilarity index 100%rename from crates/uzu/src/session/config/speculator_config.rsrename to crates/backend-uzu/src/session/config/speculator_config.rsdiff --git a/crates/uzu/src/session/config/tts_run_config.rs b/crates/backend-uzu/src/session/config/tts_run_config.rssimilarity index 100%rename from crates/uzu/src/session/config/tts_run_config.rsrename to crates/backend-uzu/src/session/config/tts_run_config.rsdiff --git a/crates/uzu/src/session/config/tts_session_options.rs b/crates/backend-uzu/src/session/config/tts_session_options.rssimilarity index 100%rename from crates/uzu/src/session/config/tts_session_options.rsrename to crates/backend-uzu/src/session/config/tts_session_options.rsdiff --git a/crates/uzu/src/session/helpers/context.rs b/crates/backend-uzu/src/session/helpers/context.rssimilarity index 100%rename from crates/uzu/src/session/helpers/context.rsrename to crates/backend-uzu/src/session/helpers/context.rsdiff --git a/crates/uzu/src/session/helpers/input_processor.rs b/crates/backend-uzu/src/session/helpers/input_processor.rssimilarity index 100%rename from crates/uzu/src/session/helpers/input_processor.rsrename to crates/backend-uzu/src/session/helpers/input_processor.rsdiff --git a/crates/uzu/src/session/helpers/memory_checker.rs b/crates/backend-uzu/src/session/helpers/memory_checker.rssimilarity index 100%rename from crates/uzu/src/session/helpers/memory_checker.rsrename to crates/backend-uzu/src/session/helpers/memory_checker.rsdiff --git a/crates/uzu/src/session/helpers/mod.rs b/crates/backend-uzu/src/session/helpers/mod.rssimilarity index 100%rename from crates/uzu/src/session/helpers/mod.rsrename to crates/backend-uzu/src/session/helpers/mod.rsdiff --git a/crates/uzu/src/session/helpers/output_parser.rs b/crates/backend-uzu/src/session/helpers/output_parser.rssimilarity index 100%rename from crates/uzu/src/session/helpers/output_parser.rsrename to crates/backend-uzu/src/session/helpers/output_parser.rsdiff --git a/crates/uzu/src/session/mod.rs b/crates/backend-uzu/src/session/mod.rssimilarity index 100%rename from crates/uzu/src/session/mod.rsrename to crates/backend-uzu/src/session/mod.rsdiff --git a/crates/uzu/src/session/parameter/async_batch_size.rs b/crates/backend-uzu/src/session/parameter/async_batch_size.rssimilarity index 100%rename from crates/uzu/src/session/parameter/async_batch_size.rsrename to crates/backend-uzu/src/session/parameter/async_batch_size.rsdiff --git a/crates/uzu/src/session/parameter/context_length.rs b/crates/backend-uzu/src/session/parameter/context_length.rssimilarity index 100%rename from crates/uzu/src/session/parameter/context_length.rsrename to crates/backend-uzu/src/session/parameter/context_length.rsdiff --git a/crates/uzu/src/session/parameter/context_mode.rs b/crates/backend-uzu/src/session/parameter/context_mode.rssimilarity index 100%rename from crates/uzu/src/session/parameter/context_mode.rsrename to crates/backend-uzu/src/session/parameter/context_mode.rsdiff --git a/crates/uzu/src/session/parameter/mod.rs b/crates/backend-uzu/src/session/parameter/mod.rssimilarity index 100%rename from crates/uzu/src/session/parameter/mod.rsrename to crates/backend-uzu/src/session/parameter/mod.rsdiff --git a/crates/uzu/src/session/parameter/prefill_step_size.rs b/crates/backend-uzu/src/session/parameter/prefill_step_size.rssimilarity index 100%rename from crates/uzu/src/session/parameter/prefill_step_size.rsrename to crates/backend-uzu/src/session/parameter/prefill_step_size.rsdiff --git a/crates/uzu/src/session/parameter/resolvable_value.rs b/crates/backend-uzu/src/session/parameter/resolvable_value.rssimilarity index 100%rename from crates/uzu/src/session/parameter/resolvable_value.rsrename to crates/backend-uzu/src/session/parameter/resolvable_value.rsdiff --git a/crates/uzu/src/session/parameter/sampling_policy.rs b/crates/backend-uzu/src/session/parameter/sampling_policy.rssimilarity index 100%rename from crates/uzu/src/session/parameter/sampling_policy.rsrename to crates/backend-uzu/src/session/parameter/sampling_policy.rsdiff --git a/crates/uzu/src/session/parameter/sampling_seed.rs b/crates/backend-uzu/src/session/parameter/sampling_seed.rssimilarity index 100%rename from crates/uzu/src/session/parameter/sampling_seed.rsrename to crates/backend-uzu/src/session/parameter/sampling_seed.rsdiff --git a/crates/uzu/src/session/tts_session.rs b/crates/backend-uzu/src/session/tts_session.rssimilarity index 100%rename from crates/uzu/src/session/tts_session.rsrename to crates/backend-uzu/src/session/tts_session.rsdiff --git a/crates/uzu/src/session/tts_session/audio_backend.rs b/crates/backend-uzu/src/session/tts_session/audio_backend.rssimilarity index 100%rename from crates/uzu/src/session/tts_session/audio_backend.rsrename to crates/backend-uzu/src/session/tts_session/audio_backend.rsdiff --git a/crates/uzu/src/session/tts_session/backend_factory.rs b/crates/backend-uzu/src/session/tts_session/backend_factory.rssimilarity index 100%rename from crates/uzu/src/session/tts_session/backend_factory.rsrename to crates/backend-uzu/src/session/tts_session/backend_factory.rsdiff --git a/crates/uzu/src/session/tts_session/decoder_runtime.rs b/crates/backend-uzu/src/session/tts_session/decoder_runtime.rssimilarity index 100%rename from crates/uzu/src/session/tts_session/decoder_runtime.rsrename to crates/backend-uzu/src/session/tts_session/decoder_runtime.rsdiff --git a/crates/uzu/src/session/tts_session/decoder_support.rs b/crates/backend-uzu/src/session/tts_session/decoder_support.rssimilarity index 100%rename from crates/uzu/src/session/tts_session/decoder_support.rsrename to crates/backend-uzu/src/session/tts_session/decoder_support.rsdiff --git a/crates/uzu/src/session/tts_session/fishaudio.rs b/crates/backend-uzu/src/session/tts_session/fishaudio.rssimilarity index 100%rename from crates/uzu/src/session/tts_session/fishaudio.rsrename to crates/backend-uzu/src/session/tts_session/fishaudio.rsdiff --git a/crates/uzu/src/session/tts_session/generator.rs b/crates/backend-uzu/src/session/tts_session/generator.rssimilarity index 100%rename from crates/uzu/src/session/tts_session/generator.rsrename to crates/backend-uzu/src/session/tts_session/generator.rsdiff --git a/crates/uzu/src/session/types/error.rs b/crates/backend-uzu/src/session/types/error.rssimilarity index 100%rename from crates/uzu/src/session/types/error.rsrename to crates/backend-uzu/src/session/types/error.rsdiff --git a/crates/uzu/src/session/types/input.rs b/crates/backend-uzu/src/session/types/input.rssimilarity index 100%rename from crates/uzu/src/session/types/input.rsrename to crates/backend-uzu/src/session/types/input.rsdiff --git a/crates/uzu/src/session/types/message.rs b/crates/backend-uzu/src/session/types/message.rssimilarity index 100%rename from crates/uzu/src/session/types/message.rsrename to crates/backend-uzu/src/session/types/message.rsdiff --git a/crates/uzu/src/session/types/mod.rs b/crates/backend-uzu/src/session/types/mod.rssimilarity index 100%rename from crates/uzu/src/session/types/mod.rsrename to crates/backend-uzu/src/session/types/mod.rsdiff --git a/crates/uzu/src/session/types/output.rs b/crates/backend-uzu/src/session/types/output.rssimilarity index 100%rename from crates/uzu/src/session/types/output.rsrename to crates/backend-uzu/src/session/types/output.rsdiff --git a/crates/uzu/src/session/types/role.rs b/crates/backend-uzu/src/session/types/role.rssimilarity index 100%rename from crates/uzu/src/session/types/role.rsrename to crates/backend-uzu/src/session/types/role.rsdiff --git a/crates/uzu/src/session/types/stats.rs b/crates/backend-uzu/src/session/types/stats.rssimilarity index 100%rename from crates/uzu/src/session/types/stats.rsrename to crates/backend-uzu/src/session/types/stats.rsdiff --git a/crates/uzu/src/session/types/text.rs b/crates/backend-uzu/src/session/types/text.rssimilarity index 100%rename from crates/uzu/src/session/types/text.rsrename to crates/backend-uzu/src/session/types/text.rsdiff --git a/crates/uzu/src/speculators/empty_speculator.rs b/crates/backend-uzu/src/speculators/empty_speculator.rssimilarity index 100%rename from crates/uzu/src/speculators/empty_speculator.rsrename to crates/backend-uzu/src/speculators/empty_speculator.rsdiff --git a/crates/uzu/src/speculators/mod.rs b/crates/backend-uzu/src/speculators/mod.rssimilarity index 100%rename from crates/uzu/src/speculators/mod.rsrename to crates/backend-uzu/src/speculators/mod.rsdiff --git a/crates/uzu/src/speculators/ngram_speculator.rs b/crates/backend-uzu/src/speculators/ngram_speculator.rssimilarity index 100%rename from crates/uzu/src/speculators/ngram_speculator.rsrename to crates/backend-uzu/src/speculators/ngram_speculator.rsdiff --git a/crates/uzu/src/speculators/speculator.rs b/crates/backend-uzu/src/speculators/speculator.rssimilarity index 100%rename from crates/uzu/src/speculators/speculator.rsrename to crates/backend-uzu/src/speculators/speculator.rsdiff --git a/crates/uzu/src/tracer/mod.rs b/crates/backend-uzu/src/tracer/mod.rssimilarity index 100%rename from crates/uzu/src/tracer/mod.rsrename to crates/backend-uzu/src/tracer/mod.rsdiff --git a/crates/uzu/src/tracer/trace_validator.rs b/crates/backend-uzu/src/tracer/trace_validator.rssimilarity index 100%rename from crates/uzu/src/tracer/trace_validator.rsrename to crates/backend-uzu/src/tracer/trace_validator.rsdiff --git a/crates/uzu/src/trie.rs b/crates/backend-uzu/src/trie.rssimilarity index 100%rename from crates/uzu/src/trie.rsrename to crates/backend-uzu/src/trie.rsdiff --git a/crates/uzu/src/utils/env_utils.rs b/crates/backend-uzu/src/utils/env_utils.rssimilarity index 100%rename from crates/uzu/src/utils/env_utils.rsrename to crates/backend-uzu/src/utils/env_utils.rsdiff --git a/crates/uzu/src/utils/fs.rs b/crates/backend-uzu/src/utils/fs.rssimilarity index 100%rename from crates/uzu/src/utils/fs.rsrename to crates/backend-uzu/src/utils/fs.rsdiff --git a/crates/uzu/src/utils/memory.rs b/crates/backend-uzu/src/utils/memory.rssimilarity index 100%rename from crates/uzu/src/utils/memory.rsrename to crates/backend-uzu/src/utils/memory.rsdiff --git a/crates/uzu/src/utils/mod.rs b/crates/backend-uzu/src/utils/mod.rssimilarity index 100%rename from crates/uzu/src/utils/mod.rsrename to crates/backend-uzu/src/utils/mod.rsdiff --git a/crates/uzu/src/utils/model_size.rs b/crates/backend-uzu/src/utils/model_size.rssimilarity index 100%rename from crates/uzu/src/utils/model_size.rsrename to crates/backend-uzu/src/utils/model_size.rsdiff --git a/crates/uzu/src/utils/pointers.rs b/crates/backend-uzu/src/utils/pointers.rssimilarity index 100%rename from crates/uzu/src/utils/pointers.rsrename to crates/backend-uzu/src/utils/pointers.rsdiff --git a/crates/uzu/src/utils/version.rs b/crates/backend-uzu/src/utils/version.rssimilarity index 100%rename from crates/uzu/src/utils/version.rsrename to crates/backend-uzu/src/utils/version.rsdiff --git a/crates/uzu/tests/BENCHMARKS.md b/crates/backend-uzu/tests/BENCHMARKS.mdsimilarity index 100%rename from crates/uzu/tests/BENCHMARKS.mdrename to crates/backend-uzu/tests/BENCHMARKS.mddiff --git a/crates/uzu/tests/common/assert.rs b/crates/backend-uzu/tests/common/assert.rssimilarity index 96%rename from crates/uzu/tests/common/assert.rsrename to crates/backend-uzu/tests/common/assert.rsindex ec9711815..4572ad7f5 100644--- a/crates/uzu/tests/common/assert.rs+++ b/crates/backend-uzu/tests/common/assert.rs@@ -1,7 +1,7 @@use std::fmt::Display;+use backend_uzu::ArrayElement;use num_traits::Float;-use uzu::ArrayElement;pub fn assert_eq_float<T: ArrayElement + Float + Display>(expected: &[T],diff --git a/crates/uzu/tests/common/audio/fsq_reference.rs b/crates/backend-uzu/tests/common/audio/fsq_reference.rssimilarity index 99%rename from crates/uzu/tests/common/audio/fsq_reference.rsrename to crates/backend-uzu/tests/common/audio/fsq_reference.rsindex 433a6aa52..b756b4bd2 100644--- a/crates/uzu/tests/common/audio/fsq_reference.rs+++ b/crates/backend-uzu/tests/common/audio/fsq_reference.rs@@ -1,4 +1,4 @@-use uzu::prelude::{AudioError, AudioResult};+use backend_uzu::prelude::{AudioError, AudioResult};fn checked_product(values: &[usize]) -> AudioResult<usize> {valuesdiff --git a/crates/uzu/tests/common/audio/mod.rs b/crates/backend-uzu/tests/common/audio/mod.rssimilarity index 100%rename from crates/uzu/tests/common/audio/mod.rsrename to crates/backend-uzu/tests/common/audio/mod.rsdiff --git a/crates/uzu/tests/common/audio/ops_reference.rs b/crates/backend-uzu/tests/common/audio/ops_reference.rssimilarity index 99%rename from crates/uzu/tests/common/audio/ops_reference.rsrename to crates/backend-uzu/tests/common/audio/ops_reference.rsindex 6b642dc47..aa9f55a7f 100644--- a/crates/uzu/tests/common/audio/ops_reference.rs+++ b/crates/backend-uzu/tests/common/audio/ops_reference.rs@@ -1,4 +1,4 @@-use uzu::prelude::{AudioError, AudioResult};+use backend_uzu::prelude::{AudioError, AudioResult};#[derive(Debug, Clone, Copy, PartialEq, Eq)]pub enum PadMode {diff --git a/crates/uzu/tests/common/helpers.rs b/crates/backend-uzu/tests/common/helpers.rssimilarity index 94%rename from crates/uzu/tests/common/helpers.rsrename to crates/backend-uzu/tests/common/helpers.rsindex 03efa27aa..18f6c9347 100644--- a/crates/uzu/tests/common/helpers.rs+++ b/crates/backend-uzu/tests/common/helpers.rs@@ -1,6 +1,6 @@use std::rc::Rc;-use uzu::backends::common::{Backend, Buffer, Context};+use backend_uzu::backends::common::{Backend, Buffer, Context};#[allow(dead_code)]pub fn alloc_buffer<B: Backend, T>(diff --git a/crates/uzu/tests/common/mod.rs b/crates/backend-uzu/tests/common/mod.rssimilarity index 83%rename from crates/uzu/tests/common/mod.rsrename to crates/backend-uzu/tests/common/mod.rsindex ea1593e22..1d1e67811 100644--- a/crates/uzu/tests/common/mod.rs+++ b/crates/backend-uzu/tests/common/mod.rs@@ -17,12 +17,12 @@ pub fn type_short_name<T>() -> &'static str {macro_rules! for_each_backend {(|$B:ident| $body:expr) => {{{- type $B = uzu::backends::cpu::Cpu;+ type $B = backend_uzu::backends::cpu::Cpu;$body}#[cfg(metal_backend)]{- type $B = uzu::backends::metal::Metal;+ type $B = backend_uzu::backends::metal::Metal;$body}}};@@ -33,12 +33,12 @@ macro_rules! for_each_non_cpu_backend {(|$B:ident| $body:expr) => {{#[cfg(metal_backend)]{- type $B = uzu::backends::metal::Metal;+ type $B = backend_uzu::backends::metal::Metal;$body}{if false {- type $B = uzu::backends::cpu::Cpu;+ type $B = backend_uzu::backends::cpu::Cpu;$body}}diff --git a/crates/uzu/tests/common/path.rs b/crates/backend-uzu/tests/common/path.rssimilarity index 97%rename from crates/uzu/tests/common/path.rsrename to crates/backend-uzu/tests/common/path.rsindex 7b6bc38aa..de2fb8564 100644--- a/crates/uzu/tests/common/path.rs+++ b/crates/backend-uzu/tests/common/path.rs@@ -14,6 +14,7 @@ pub fn get_test_model_path() -> PathBuf {let path = PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("..").join("..")+ .join("workspace").join("models").join(get_version()).join(model_dir);diff --git a/crates/uzu/tests/common/perf.rs b/crates/backend-uzu/tests/common/perf.rssimilarity index 100%rename from crates/uzu/tests/common/perf.rsrename to crates/backend-uzu/tests/common/perf.rsdiff --git a/crates/uzu/tests/common/proptest.rs b/crates/backend-uzu/tests/common/proptest.rssimilarity index 76%rename from crates/uzu/tests/common/proptest.rsrename to crates/backend-uzu/tests/common/proptest.rsindex 5cc5804bc..c30ce6138 100644--- a/crates/uzu/tests/common/proptest.rs+++ b/crates/backend-uzu/tests/common/proptest.rs@@ -1,15 +1,15 @@use std::rc::Rc;-use proptest::prelude::*;#[cfg(metal_backend)]-use uzu::backends::metal::Metal;-use uzu::{+use backend_uzu::backends::metal::Metal;+use backend_uzu::{DataType,backends::{common::{Backend, Context},cpu::Cpu,},};+use proptest::prelude::*;pub fn kernel_data_type() -> impl Strategy<Value = DataType> {prop_oneof![Just(DataType::F16), Just(DataType::BF16), Just(DataType::F32)]@@ -41,13 +41,15 @@ macro_rules! for_each_context {($CONTEXTES:ident, |$CONTEXT_NAME:ident: $CONTEXT_TYPE:ident| $body:expr) => {crate::common::proptest::TestResults {cpu: ({- type $CONTEXT_TYPE = <uzu::backends::cpu::Cpu as uzu::backends::common::Backend>::Context;+ type $CONTEXT_TYPE =+ <backend_uzu::backends::cpu::Cpu as backend_uzu::backends::common::Backend>::Context;let $CONTEXT_NAME = $CONTEXTES.cpu.as_ref();$body})?,#[cfg(metal_backend)]metal: ({- type $CONTEXT_TYPE = <uzu::backends::metal::Metal as uzu::backends::common::Backend>::Context;+ type $CONTEXT_TYPE =+ <backend_uzu::backends::metal::Metal as backend_uzu::backends::common::Backend>::Context;let $CONTEXT_NAME = $CONTEXTES.metal.as_ref();$body})?,@@ -77,9 +79,9 @@ macro_rules! dispatch_dtype {(|()| $body:expr) => { $body };(|($T:ident : $dt:expr $(, $rest_T:ident : $rest_dt:expr)*)| $body:expr) => {match $dt {- uzu::DataType::F16 => { type $T = half::f16; dispatch_dtype!(|($($rest_T : $rest_dt),*)| $body) }- uzu::DataType::BF16 => { type $T = half::bf16; dispatch_dtype!(|($($rest_T : $rest_dt),*)| $body) }- uzu::DataType::F32 => { type $T = f32; dispatch_dtype!(|($($rest_T : $rest_dt),*)| $body) }+ backend_uzu::DataType::F16 => { type $T = half::f16; dispatch_dtype!(|($($rest_T : $rest_dt),*)| $body) }+ backend_uzu::DataType::BF16 => { type $T = half::bf16; dispatch_dtype!(|($($rest_T : $rest_dt),*)| $body) }+ backend_uzu::DataType::F32 => { type $T = f32; dispatch_dtype!(|($($rest_T : $rest_dt),*)| $body) }other => panic!("unsupported dtype in test: {:?}", other),}};diff --git a/crates/uzu/tests/integration/mod.rs b/crates/backend-uzu/tests/integration/mod.rssimilarity index 100%rename from crates/uzu/tests/integration/mod.rsrename to crates/backend-uzu/tests/integration/mod.rsdiff --git a/crates/uzu/tests/integration/parameters/loader_test.rs b/crates/backend-uzu/tests/integration/parameters/loader_test.rssimilarity index 98%rename from crates/uzu/tests/integration/parameters/loader_test.rsrename to crates/backend-uzu/tests/integration/parameters/loader_test.rsindex a2988ba36..43de028b7 100644--- a/crates/uzu/tests/integration/parameters/loader_test.rs+++ b/crates/backend-uzu/tests/integration/parameters/loader_test.rs@@ -1,16 +1,16 @@#![cfg(metal_backend)]// New integration test for ParameterLoader-use half::bf16;-use is_close::is_close;-use test_tag::tag;-use uzu::{+use backend_uzu::{ParameterLoader,backends::{common::{Backend, Context},metal::Metal,},};+use half::bf16;+use is_close::is_close;+use test_tag::tag;use crate::common::path::get_test_weights_path;diff --git a/crates/uzu/tests/integration/parameters/mod.rs b/crates/backend-uzu/tests/integration/parameters/mod.rssimilarity index 100%rename from crates/uzu/tests/integration/parameters/mod.rsrename to crates/backend-uzu/tests/integration/parameters/mod.rsdiff --git a/crates/uzu/tests/integration/parameters/safetensors_metadata_test.rs b/crates/backend-uzu/tests/integration/parameters/safetensors_metadata_test.rssimilarity index 88%rename from crates/uzu/tests/integration/parameters/safetensors_metadata_test.rsrename to crates/backend-uzu/tests/integration/parameters/safetensors_metadata_test.rsindex b7b85bf48..4988e6ceb 100644--- a/crates/uzu/tests/integration/parameters/safetensors_metadata_test.rs+++ b/crates/backend-uzu/tests/integration/parameters/safetensors_metadata_test.rs@@ -1,6 +1,6 @@use std::fs::File;-use uzu::read_safetensors_metadata;+use backend_uzu::read_safetensors_metadata;use crate::common::path::get_test_weights_path;diff --git a/crates/uzu/tests/integration/person_schema_metal_bitmask_test.rs b/crates/backend-uzu/tests/integration/person_schema_metal_bitmask_test.rssimilarity index 98%rename from crates/uzu/tests/integration/person_schema_metal_bitmask_test.rsrename to crates/backend-uzu/tests/integration/person_schema_metal_bitmask_test.rsindex fbd0593be..75b90c04d 100644--- a/crates/uzu/tests/integration/person_schema_metal_bitmask_test.rs+++ b/crates/backend-uzu/tests/integration/person_schema_metal_bitmask_test.rs@@ -2,11 +2,11 @@use std::{cell::RefCell, path::PathBuf, rc::Rc};+use backend_uzu::{Array, DataType, backends::metal::Metal};use metal::{MTLDevice, MTLDeviceExt, MTLResourceOptions};use schemars::JsonSchema;use serde::{Deserialize, Serialize};use tokenizers::Tokenizer;-use uzu::{Array, DataType, backends::metal::Metal};use xgrammar::{DLDevice, DLDeviceType, DLTensor, Grammar, GrammarCompiler, GrammarMatcher, TokenizerInfo};#[derive(Debug, Serialize, Deserialize, JsonSchema)]diff --git a/crates/uzu/tests/integration/session/chat_session/context_mode_test.rs b/crates/backend-uzu/tests/integration/session/chat_session/context_mode_test.rssimilarity index 99%rename from crates/uzu/tests/integration/session/chat_session/context_mode_test.rsrename to crates/backend-uzu/tests/integration/session/chat_session/context_mode_test.rsindex 5ae387c0e..8f5fcc270 100644--- a/crates/uzu/tests/integration/session/chat_session/context_mode_test.rs+++ b/crates/backend-uzu/tests/integration/session/chat_session/context_mode_test.rs@@ -2,8 +2,7 @@use std::path::PathBuf;-use test_tag::tag;-use uzu::session::{+use backend_uzu::session::{Session,config::{DecodingConfig, RunConfig, SpeculatorConfig},parameter::{@@ -11,6 +10,7 @@ use uzu::session::{},types::{Input, Message, Output},};+use test_tag::tag;use crate::common::path::get_test_model_path;diff --git a/crates/uzu/tests/integration/session/chat_session/mod.rs b/crates/backend-uzu/tests/integration/session/chat_session/mod.rssimilarity index 100%rename from crates/uzu/tests/integration/session/chat_session/mod.rsrename to crates/backend-uzu/tests/integration/session/chat_session/mod.rsdiff --git a/crates/uzu/tests/integration/session/chat_session/text_session_test.rs b/crates/backend-uzu/tests/integration/session/chat_session/text_session_test.rssimilarity index 99%rename from crates/uzu/tests/integration/session/chat_session/text_session_test.rsrename to crates/backend-uzu/tests/integration/session/chat_session/text_session_test.rsindex 180706a65..dd9550144 100644--- a/crates/uzu/tests/integration/session/chat_session/text_session_test.rs+++ b/crates/backend-uzu/tests/integration/session/chat_session/text_session_test.rs@@ -1,12 +1,12 @@#![cfg(metal_backend)]-use test_tag::tag;-use uzu::session::{+use backend_uzu::session::{Session,config::{DecodingConfig, RunConfig},parameter::SamplingSeed,types::{Input, Message, Output},};+use test_tag::tag;use crate::common::path::get_test_model_path;diff --git a/crates/uzu/tests/integration/session/config/grammar_json_schema_test.rs b/crates/backend-uzu/tests/integration/session/config/grammar_json_schema_test.rssimilarity index 92%rename from crates/uzu/tests/integration/session/config/grammar_json_schema_test.rsrename to crates/backend-uzu/tests/integration/session/config/grammar_json_schema_test.rsindex b9f247224..91b7196f4 100644--- a/crates/uzu/tests/integration/session/config/grammar_json_schema_test.rs+++ b/crates/backend-uzu/tests/integration/session/config/grammar_json_schema_test.rs@@ -2,15 +2,15 @@use std::sync::Arc;-use schemars::JsonSchema;-use serde::{Deserialize, Serialize};-use test_tag::tag;-use uzu::session::{+use backend_uzu::session::{Session,config::{DecodingConfig, GrammarConfig, RunConfig, SpeculatorConfig},parameter::SamplingPolicy,types::Input,};+use schemars::JsonSchema;+use serde::{Deserialize, Serialize};+use test_tag::tag;use crate::{common::path::get_test_model_path, util::speculator::RepeatSpeculator};@@ -43,7 +43,7 @@ fn test_grammar(speculator_config: SpeculatorConfig) {}let decoding_config = DecodingConfig::default()- .with_sampling_seed(uzu::prelude::SamplingSeed::Custom(42))+ .with_sampling_seed(backend_uzu::prelude::SamplingSeed::Custom(42)).with_speculator_config(speculator_config);let mut session = Session::new(model_dir, decoding_config).expect("Failed to create session");@@ -54,8 +54,9 @@ fn test_grammar(speculator_config: SpeculatorConfig) {let run_config =RunConfig::default().tokens_limit(1024).sampling_policy(SamplingPolicy::Default).grammar_config(grammar_config);- let output =- session.run(input, run_config, None::<fn(uzu::session::types::Output) -> bool>).expect("Failed to run session");+ let output = session+ .run(input, run_config, None::<fn(backend_uzu::session::types::Output) -> bool>)+ .expect("Failed to run session");let stats = output.stats;let total_tokens = stats.total_stats.tokens_count_input + stats.total_stats.tokens_count_output;diff --git a/crates/uzu/tests/integration/session/config/mod.rs b/crates/backend-uzu/tests/integration/session/config/mod.rssimilarity index 100%rename from crates/uzu/tests/integration/session/config/mod.rsrename to crates/backend-uzu/tests/integration/session/config/mod.rsdiff --git a/crates/uzu/tests/integration/session/mod.rs b/crates/backend-uzu/tests/integration/session/mod.rssimilarity index 100%rename from crates/uzu/tests/integration/session/mod.rsrename to crates/backend-uzu/tests/integration/session/mod.rsdiff --git a/crates/uzu/tests/integration/session/tts_session/audio_nanocodec_fsq_test.rs b/crates/backend-uzu/tests/integration/session/tts_session/audio_nanocodec_fsq_test.rssimilarity index 100%rename from crates/uzu/tests/integration/session/tts_session/audio_nanocodec_fsq_test.rsrename to crates/backend-uzu/tests/integration/session/tts_session/audio_nanocodec_fsq_test.rsdiff --git a/crates/uzu/tests/integration/session/tts_session/audio_nanocodec_runtime_test.rs b/crates/backend-uzu/tests/integration/session/tts_session/audio_nanocodec_runtime_test.rssimilarity index 99%rename from crates/uzu/tests/integration/session/tts_session/audio_nanocodec_runtime_test.rsrename to crates/backend-uzu/tests/integration/session/tts_session/audio_nanocodec_runtime_test.rsindex f42625168..4bf72498a 100644--- a/crates/uzu/tests/integration/session/tts_session/audio_nanocodec_runtime_test.rs+++ b/crates/backend-uzu/tests/integration/session/tts_session/audio_nanocodec_runtime_test.rs@@ -1,6 +1,6 @@#![cfg(metal_backend)]-use uzu::{+use backend_uzu::{NanoCodecFsqRuntime, NanoCodecFsqRuntimeConfig,backends::metal::Metal,prelude::{AudioCodecRuntime, AudioError, AudioPcmBatch, AudioTokenGrid},diff --git a/crates/uzu/tests/integration/session/tts_session/mod.rs b/crates/backend-uzu/tests/integration/session/tts_session/mod.rssimilarity index 100%rename from crates/uzu/tests/integration/session/tts_session/mod.rsrename to crates/backend-uzu/tests/integration/session/tts_session/mod.rsdiff --git a/crates/uzu/tests/integration/tracer/mod.rs b/crates/backend-uzu/tests/integration/tracer/mod.rssimilarity index 100%rename from crates/uzu/tests/integration/tracer/mod.rsrename to crates/backend-uzu/tests/integration/tracer/mod.rsdiff --git a/crates/uzu/tests/integration/tracer/trace_validator_test.rs b/crates/backend-uzu/tests/integration/tracer/trace_validator_test.rssimilarity index 96%rename from crates/uzu/tests/integration/tracer/trace_validator_test.rsrename to crates/backend-uzu/tests/integration/tracer/trace_validator_test.rsindex 844c6ae96..d1555d3ca 100644--- a/crates/uzu/tests/integration/tracer/trace_validator_test.rs+++ b/crates/backend-uzu/tests/integration/tracer/trace_validator_test.rs@@ -1,6 +1,6 @@#![cfg(all(feature = "tracing"))]-use uzu::{TraceValidator, backends::common::Backend};+use backend_uzu::{TraceValidator, backends::common::Backend};use crate::common::{for_each_non_cpu_backend,diff --git a/crates/uzu/tests/integration/util/mod.rs b/crates/backend-uzu/tests/integration/util/mod.rssimilarity index 100%rename from crates/uzu/tests/integration/util/mod.rsrename to crates/backend-uzu/tests/integration/util/mod.rsdiff --git a/crates/uzu/tests/integration/util/speculator.rs b/crates/backend-uzu/tests/integration/util/speculator.rssimilarity index 93%rename from crates/uzu/tests/integration/util/speculator.rsrename to crates/backend-uzu/tests/integration/util/speculator.rsindex d3359a710..50de1804d 100644--- a/crates/uzu/tests/integration/util/speculator.rs+++ b/crates/backend-uzu/tests/integration/util/speculator.rs@@ -1,6 +1,6 @@use std::collections::HashMap;-use uzu::prelude::Speculator;+use backend_uzu::prelude::Speculator;pub struct RepeatSpeculator;diff --git a/crates/uzu/tests/performance/audio_kernel_perf_test.rs b/crates/backend-uzu/tests/performance/audio_kernel_perf_test.rssimilarity index 99%rename from crates/uzu/tests/performance/audio_kernel_perf_test.rsrename to crates/backend-uzu/tests/performance/audio_kernel_perf_test.rsindex 79d959184..526a55681 100644--- a/crates/uzu/tests/performance/audio_kernel_perf_test.rs+++ b/crates/backend-uzu/tests/performance/audio_kernel_perf_test.rs@@ -2,7 +2,7 @@use std::time::Instant;-use uzu::{+use backend_uzu::{Array, ArrayContextExt, DataType,backends::{common::{diff --git a/crates/uzu/tests/performance/encodable_block/mod.rs b/crates/backend-uzu/tests/performance/encodable_block/mod.rssimilarity index 100%rename from crates/uzu/tests/performance/encodable_block/mod.rsrename to crates/backend-uzu/tests/performance/encodable_block/mod.rsdiff --git a/crates/uzu/tests/performance/encodable_block/moe/mod.rs b/crates/backend-uzu/tests/performance/encodable_block/moe/mod.rssimilarity index 100%rename from crates/uzu/tests/performance/encodable_block/moe/mod.rsrename to crates/backend-uzu/tests/performance/encodable_block/moe/mod.rsdiff --git a/crates/uzu/tests/performance/encodable_block/moe/moe_experts_perf_test.rs b/crates/backend-uzu/tests/performance/encodable_block/moe/moe_experts_perf_test.rssimilarity index 99%rename from crates/uzu/tests/performance/encodable_block/moe/moe_experts_perf_test.rsrename to crates/backend-uzu/tests/performance/encodable_block/moe/moe_experts_perf_test.rsindex 6dc3c1985..052b6e371 100644--- a/crates/uzu/tests/performance/encodable_block/moe/moe_experts_perf_test.rs+++ b/crates/backend-uzu/tests/performance/encodable_block/moe/moe_experts_perf_test.rs@@ -1,8 +1,6 @@use std::time::Instant;-use half::bf16;-use rand::{RngExt, SeedableRng, rngs::StdRng};-use uzu::{+use backend_uzu::{DataType,backends::common::{Backend, Encoder,@@ -12,6 +10,8 @@ use uzu::{},},};+use half::bf16;+use rand::{RngExt, SeedableRng, rngs::StdRng};use crate::common::helpers::{alloc_buffer, alloc_buffer_with_data, create_context};diff --git a/crates/uzu/tests/performance/encodable_block/moe/moe_perf_test.rs b/crates/backend-uzu/tests/performance/encodable_block/moe/moe_perf_test.rssimilarity index 99%rename from crates/uzu/tests/performance/encodable_block/moe/moe_perf_test.rsrename to crates/backend-uzu/tests/performance/encodable_block/moe/moe_perf_test.rsindex f4b75f857..af7db6b20 100644--- a/crates/uzu/tests/performance/encodable_block/moe/moe_perf_test.rs+++ b/crates/backend-uzu/tests/performance/encodable_block/moe/moe_perf_test.rs@@ -1,6 +1,4 @@-use half::bf16;-use rand::{RngExt, SeedableRng, rngs::StdRng};-use uzu::{+use backend_uzu::{DataType,backends::common::{Backend, Encoder, Kernels,@@ -11,6 +9,8 @@ use uzu::{},},};+use half::bf16;+use rand::{RngExt, SeedableRng, rngs::StdRng};use crate::common::{helpers::{alloc_buffer, alloc_buffer_with_data, create_context},diff --git a/crates/uzu/tests/performance/matmul/bench.rs b/crates/backend-uzu/tests/performance/matmul/bench.rssimilarity index 99%rename from crates/uzu/tests/performance/matmul/bench.rsrename to crates/backend-uzu/tests/performance/matmul/bench.rsindex 23c7c2b4e..c350907dc 100644--- a/crates/uzu/tests/performance/matmul/bench.rs+++ b/crates/backend-uzu/tests/performance/matmul/bench.rs@@ -1,8 +1,6 @@#![cfg(metal_backend)]-use metal::{MTLBuffer, MTLDeviceExt, MTLResourceOptions};-use objc2::{rc::Retained, runtime::ProtocolObject};-use uzu::{+use backend_uzu::{DataType,backends::{common::{@@ -15,6 +13,8 @@ use uzu::{metal::Metal,},};+use metal::{MTLBuffer, MTLDeviceExt, MTLResourceOptions};+use objc2::{rc::Retained, runtime::ProtocolObject};use super::{error::BenchError, output::PerfResult, shapes::TestShape};diff --git a/crates/uzu/tests/performance/matmul/error.rs b/crates/backend-uzu/tests/performance/matmul/error.rssimilarity index 100%rename from crates/uzu/tests/performance/matmul/error.rsrename to crates/backend-uzu/tests/performance/matmul/error.rsdiff --git a/crates/uzu/tests/performance/matmul/main.rs b/crates/backend-uzu/tests/performance/matmul/main.rssimilarity index 99%rename from crates/uzu/tests/performance/matmul/main.rsrename to crates/backend-uzu/tests/performance/matmul/main.rsindex dca73f475..22db6b189 100644--- a/crates/uzu/tests/performance/matmul/main.rs+++ b/crates/backend-uzu/tests/performance/matmul/main.rs@@ -1,14 +1,14 @@#![cfg(metal_backend)]-use indicatif::{ProgressBar, ProgressStyle};-use metal::MTLDeviceExt;-use uzu::{+use backend_uzu::{DataType,backends::{common::{Backend, Context},metal::Metal,},};+use indicatif::{ProgressBar, ProgressStyle};+use metal::MTLDeviceExt;use crate::matmul::{bench, output::print_results_table, shapes::test_shapes};diff --git a/crates/uzu/tests/performance/matmul/mod.rs b/crates/backend-uzu/tests/performance/matmul/mod.rssimilarity index 100%rename from crates/uzu/tests/performance/matmul/mod.rsrename to crates/backend-uzu/tests/performance/matmul/mod.rsdiff --git a/crates/uzu/tests/performance/matmul/output.rs b/crates/backend-uzu/tests/performance/matmul/output.rssimilarity index 100%rename from crates/uzu/tests/performance/matmul/output.rsrename to crates/backend-uzu/tests/performance/matmul/output.rsdiff --git a/crates/uzu/tests/performance/matmul/shapes.rs b/crates/backend-uzu/tests/performance/matmul/shapes.rssimilarity index 100%rename from crates/uzu/tests/performance/matmul/shapes.rsrename to crates/backend-uzu/tests/performance/matmul/shapes.rsdiff --git a/crates/uzu/tests/performance/mod.rs b/crates/backend-uzu/tests/performance/mod.rssimilarity index 100%rename from crates/uzu/tests/performance/mod.rsrename to crates/backend-uzu/tests/performance/mod.rsdiff --git a/crates/uzu/tests/performance/model_loading_perf_test.rs b/crates/backend-uzu/tests/performance/model_loading_perf_test.rssimilarity index 85%rename from crates/uzu/tests/performance/model_loading_perf_test.rsrename to crates/backend-uzu/tests/performance/model_loading_perf_test.rsindex fc1645955..39209a1fb 100644--- a/crates/uzu/tests/performance/model_loading_perf_test.rs+++ b/crates/backend-uzu/tests/performance/model_loading_perf_test.rs@@ -1,4 +1,4 @@-use uzu::prelude::{ChatSession, DecodingConfig};+use backend_uzu::prelude::{ChatSession, DecodingConfig};use crate::common::{path::get_test_model_path, perf::run_perf};diff --git a/crates/uzu/tests/unit/audio/types_test.rs b/crates/backend-uzu/tests/unit/audio/types_test.rssimilarity index 100%rename from crates/uzu/tests/unit/audio/types_test.rsrename to crates/backend-uzu/tests/unit/audio/types_test.rsdiff --git a/crates/uzu/tests/unit/backends/common/hazard_tracker_test.rs b/crates/backend-uzu/tests/unit/backends/common/hazard_tracker_test.rssimilarity index 100%rename from crates/uzu/tests/unit/backends/common/hazard_tracker_test.rsrename to crates/backend-uzu/tests/unit/backends/common/hazard_tracker_test.rsdiff --git a/crates/uzu/tests/unit/backends/common/kernel/kv_cache_update_test.rs b/crates/backend-uzu/tests/unit/backends/common/kernel/kv_cache_update_test.rssimilarity index 100%rename from crates/uzu/tests/unit/backends/common/kernel/kv_cache_update_test.rsrename to crates/backend-uzu/tests/unit/backends/common/kernel/kv_cache_update_test.rsdiff --git a/crates/uzu/tests/unit/backends/common/kernel/quant_matmul_test.rs b/crates/backend-uzu/tests/unit/backends/common/kernel/quant_matmul_test.rssimilarity index 100%rename from crates/uzu/tests/unit/backends/common/kernel/quant_matmul_test.rsrename to crates/backend-uzu/tests/unit/backends/common/kernel/quant_matmul_test.rsdiff --git a/crates/uzu/tests/unit/backends/common/kernel/ssd_prefill_test.rs b/crates/backend-uzu/tests/unit/backends/common/kernel/ssd_prefill_test.rssimilarity index 99%rename from crates/uzu/tests/unit/backends/common/kernel/ssd_prefill_test.rsrename to crates/backend-uzu/tests/unit/backends/common/kernel/ssd_prefill_test.rsindex 5c2bd7799..b96d23801 100644--- a/crates/uzu/tests/unit/backends/common/kernel/ssd_prefill_test.rs+++ b/crates/backend-uzu/tests/unit/backends/common/kernel/ssd_prefill_test.rs@@ -3,7 +3,7 @@ use std::{ops::{Deref, DerefMut},};-use uzu::backends::common::Buffer;+use backend_uzu::backends::common::Buffer;use crate::{ArrayContextExt, DataType,diff --git a/crates/uzu/tests/unit/backends/cpu/argmax_test.rs b/crates/backend-uzu/tests/unit/backends/cpu/argmax_test.rssimilarity index 100%rename from crates/uzu/tests/unit/backends/cpu/argmax_test.rsrename to crates/backend-uzu/tests/unit/backends/cpu/argmax_test.rsdiff --git a/crates/uzu/tests/unit/config/attention_test.rs b/crates/backend-uzu/tests/unit/config/attention_test.rssimilarity index 100%rename from crates/uzu/tests/unit/config/attention_test.rsrename to crates/backend-uzu/tests/unit/config/attention_test.rsdiff --git a/crates/uzu/tests/unit/config/decoder_layer_test.rs b/crates/backend-uzu/tests/unit/config/decoder_layer_test.rssimilarity index 100%rename from crates/uzu/tests/unit/config/decoder_layer_test.rsrename to crates/backend-uzu/tests/unit/config/decoder_layer_test.rsdiff --git a/crates/uzu/tests/unit/config/decoder_test.rs b/crates/backend-uzu/tests/unit/config/decoder_test.rssimilarity index 100%rename from crates/uzu/tests/unit/config/decoder_test.rsrename to crates/backend-uzu/tests/unit/config/decoder_test.rsdiff --git a/crates/uzu/tests/unit/config/embedding_test.rs b/crates/backend-uzu/tests/unit/config/embedding_test.rssimilarity index 100%rename from crates/uzu/tests/unit/config/embedding_test.rsrename to crates/backend-uzu/tests/unit/config/embedding_test.rsdiff --git a/crates/uzu/tests/unit/config/linear_test.rs b/crates/backend-uzu/tests/unit/config/linear_test.rssimilarity index 100%rename from crates/uzu/tests/unit/config/linear_test.rsrename to crates/backend-uzu/tests/unit/config/linear_test.rsdiff --git a/crates/uzu/tests/unit/config/mlp_test.rs b/crates/backend-uzu/tests/unit/config/mlp_test.rssimilarity index 100%rename from crates/uzu/tests/unit/config/mlp_test.rsrename to crates/backend-uzu/tests/unit/config/mlp_test.rsdiff --git a/crates/uzu/tests/unit/config/normalization/normalization_config_test.rs b/crates/backend-uzu/tests/unit/config/normalization/normalization_config_test.rssimilarity index 100%rename from crates/uzu/tests/unit/config/normalization/normalization_config_test.rsrename to crates/backend-uzu/tests/unit/config/normalization/normalization_config_test.rsdiff --git a/crates/uzu/tests/unit/config/rope_test.rs b/crates/backend-uzu/tests/unit/config/rope_test.rssimilarity index 100%rename from crates/uzu/tests/unit/config/rope_test.rsrename to crates/backend-uzu/tests/unit/config/rope_test.rsdiff --git a/crates/uzu/tests/unit/config/transformer_layer_test.rs b/crates/backend-uzu/tests/unit/config/transformer_layer_test.rssimilarity index 100%rename from crates/uzu/tests/unit/config/transformer_layer_test.rsrename to crates/backend-uzu/tests/unit/config/transformer_layer_test.rsdiff --git a/crates/uzu/tests/unit/encodable_block/attention_test.rs b/crates/backend-uzu/tests/unit/encodable_block/attention_test.rssimilarity index 100%rename from crates/uzu/tests/unit/encodable_block/attention_test.rsrename to crates/backend-uzu/tests/unit/encodable_block/attention_test.rsdiff --git a/crates/uzu/tests/unit/encodable_block/moe/mod.rs b/crates/backend-uzu/tests/unit/encodable_block/moe/mod.rssimilarity index 100%rename from crates/uzu/tests/unit/encodable_block/moe/mod.rsrename to crates/backend-uzu/tests/unit/encodable_block/moe/mod.rsdiff --git a/crates/uzu/tests/unit/encodable_block/moe/moe_block_e2e_test.rs b/crates/backend-uzu/tests/unit/encodable_block/moe/moe_block_e2e_test.rssimilarity index 99%rename from crates/uzu/tests/unit/encodable_block/moe/moe_block_e2e_test.rsrename to crates/backend-uzu/tests/unit/encodable_block/moe/moe_block_e2e_test.rsindex 8a4c93683..318fc20c7 100644--- a/crates/uzu/tests/unit/encodable_block/moe/moe_block_e2e_test.rs+++ b/crates/backend-uzu/tests/unit/encodable_block/moe/moe_block_e2e_test.rs@@ -1,6 +1,4 @@-use half::bf16;-use rand::{RngExt, SeedableRng, rngs::StdRng};-use uzu::{+use backend_uzu::{DataType,backends::common::{Backend, Buffer, Encoder, Kernels,@@ -12,6 +10,8 @@ use uzu::{},},};+use half::bf16;+use rand::{RngExt, SeedableRng, rngs::StdRng};use crate::encodable_block::mlp::moe::tests::common::helpers::{alloc_buffer, alloc_buffer_with_data, create_context};diff --git a/crates/uzu/tests/unit/encodable_block/moe/moe_experts_test.rs b/crates/backend-uzu/tests/unit/encodable_block/moe/moe_experts_test.rssimilarity index 99%rename from crates/uzu/tests/unit/encodable_block/moe/moe_experts_test.rsrename to crates/backend-uzu/tests/unit/encodable_block/moe/moe_experts_test.rsindex 7a65a88a2..1a0b3bd6b 100644--- a/crates/uzu/tests/unit/encodable_block/moe/moe_experts_test.rs+++ b/crates/backend-uzu/tests/unit/encodable_block/moe/moe_experts_test.rs@@ -6,9 +6,7 @@//! - Intermediate buffer correctness (row maps, tiles, dispatch args)//! - Numerical correctness against CPU reference-use half::bf16;-use rand::{RngExt, SeedableRng, rngs::StdRng};-use uzu::{+use backend_uzu::{DataType,backends::common::{Buffer, Encoder,@@ -19,6 +17,8 @@ use uzu::{},},};+use half::bf16;+use rand::{RngExt, SeedableRng, rngs::StdRng};use crate::encodable_block::mlp::moe::tests::{common::{diff --git a/crates/uzu/tests/unit/encodable_block/moe/moe_tiles_test.rs b/crates/backend-uzu/tests/unit/encodable_block/moe/moe_tiles_test.rssimilarity index 99%rename from crates/uzu/tests/unit/encodable_block/moe/moe_tiles_test.rsrename to crates/backend-uzu/tests/unit/encodable_block/moe/moe_tiles_test.rsindex 5eda4921b..48451acc6 100644--- a/crates/uzu/tests/unit/encodable_block/moe/moe_tiles_test.rs+++ b/crates/backend-uzu/tests/unit/encodable_block/moe/moe_tiles_test.rs@@ -1,8 +1,8 @@-use rand::{RngExt, SeedableRng, rngs::StdRng};-use uzu::backends::common::{+use backend_uzu::backends::common::{Buffer, Encoder,kernel::moe::{MoeTileCountsArguments, MoeTileMapKernels, MoeTileScanArguments},};+use rand::{RngExt, SeedableRng, rngs::StdRng};use crate::encodable_block::mlp::moe::tests::{common::helpers::{alloc_buffer, alloc_buffer_with_data, create_context},diff --git a/crates/uzu/tests/unit/encodable_block/sampling_test.rs b/crates/backend-uzu/tests/unit/encodable_block/sampling_test.rssimilarity index 100%rename from crates/uzu/tests/unit/encodable_block/sampling_test.rsrename to crates/backend-uzu/tests/unit/encodable_block/sampling_test.rsdiff --git a/crates/uzu/tests/unit/forward_pass/kv_cache_state_test.rs b/crates/backend-uzu/tests/unit/forward_pass/kv_cache_state_test.rssimilarity index 100%rename from crates/uzu/tests/unit/forward_pass/kv_cache_state_test.rsrename to crates/backend-uzu/tests/unit/forward_pass/kv_cache_state_test.rsdiff --git a/crates/uzu/tests/unit/kernel/activation_mul_test.rs b/crates/backend-uzu/tests/unit/kernel/activation_mul_test.rssimilarity index 99%rename from crates/uzu/tests/unit/kernel/activation_mul_test.rsrename to crates/backend-uzu/tests/unit/kernel/activation_mul_test.rsindex 5fdfbd68a..60cf0693b 100644--- a/crates/uzu/tests/unit/kernel/activation_mul_test.rs+++ b/crates/backend-uzu/tests/unit/kernel/activation_mul_test.rs@@ -3,15 +3,15 @@ use std::{ops::{Deref, DerefMut},};-use half::{bf16, f16};-use num_traits::Float;-use uzu::{+use backend_uzu::{ArrayContextExt, ArrayElement, DataType,backends::{common::{Backend, Context, Encoder, Kernels, gpu_types::ActivationType, kernel::MlpGateActMulKernel},cpu::Cpu,},};+use half::{bf16, f16};+use num_traits::Float;use crate::{common::assert::assert_eq_float, uzu_test};diff --git a/crates/uzu/tests/unit/kernel/activation_test.rs b/crates/backend-uzu/tests/unit/kernel/activation_test.rssimilarity index 99%rename from crates/uzu/tests/unit/kernel/activation_test.rsrename to crates/backend-uzu/tests/unit/kernel/activation_test.rsindex 317a7708b..b52d3c87c 100644--- a/crates/uzu/tests/unit/kernel/activation_test.rs+++ b/crates/backend-uzu/tests/unit/kernel/activation_test.rs@@ -3,15 +3,15 @@ use std::{ops::{Deref, DerefMut},};-use half::{bf16, f16};-use num_traits::Float;-use uzu::{+use backend_uzu::{ArrayContextExt, ArrayElement, DataType,backends::{common::{Backend, Context, Encoder, Kernels, gpu_types::ActivationType, kernel::ActivationKernel},cpu::Cpu,},};+use half::{bf16, f16};+use num_traits::Float;use crate::{common::assert::assert_eq_float, uzu_test};diff --git a/crates/uzu/tests/unit/kernel/attention/attention_gemm_test.rs b/crates/backend-uzu/tests/unit/kernel/attention/attention_gemm_test.rssimilarity index 98%rename from crates/uzu/tests/unit/kernel/attention/attention_gemm_test.rsrename to crates/backend-uzu/tests/unit/kernel/attention/attention_gemm_test.rsindex 16b3207c1..77287b0f3 100644--- a/crates/uzu/tests/unit/kernel/attention/attention_gemm_test.rs+++ b/crates/backend-uzu/tests/unit/kernel/attention/attention_gemm_test.rs@@ -3,15 +3,15 @@ use std::{ops::{Deref, DerefMut},};-use half::{bf16, f16};-use num_traits::Float;-use uzu::{+use backend_uzu::{ArrayContextExt, ArrayElement, DataType,backends::{common::{Backend, Context, Encoder, kernel::attention::AttentionGemmArguments},cpu::Cpu,},};+use half::{bf16, f16};+use num_traits::Float;use crate::{common::assert::assert_eq_float, uzu_test};@@ -79,7 +79,7 @@ fn get_test_data<T: ArrayElement + Float>(fn get_output<T: ArrayElement + Float, B: Backend>(input: &Input<T>) -> Vec<T> {let context = B::Context::new().expect("Failed to create Context");- let block = uzu::backends::common::kernel::attention::AttentionGemmBlock::<B>::new(T::data_type());+ let block = backend_uzu::backends::common::kernel::attention::AttentionGemmBlock::<B>::new(T::data_type());let queries_array = context.create_array_from(&[input.queries.len()], &input.queries, "");let keys_array = context.create_array_from(&[input.keys.len()], &input.keys, "");diff --git a/crates/uzu/tests/unit/kernel/attention/attention_single_pass_test.rs b/crates/backend-uzu/tests/unit/kernel/attention/attention_single_pass_test.rssimilarity index 99%rename from crates/uzu/tests/unit/kernel/attention/attention_single_pass_test.rsrename to crates/backend-uzu/tests/unit/kernel/attention/attention_single_pass_test.rsindex 41a553e90..5eefad1cb 100644--- a/crates/uzu/tests/unit/kernel/attention/attention_single_pass_test.rs+++ b/crates/backend-uzu/tests/unit/kernel/attention/attention_single_pass_test.rs@@ -3,15 +3,15 @@ use std::{ops::{Deref, DerefMut},};-use half::{bf16, f16};-use num_traits::Float;-use uzu::{+use backend_uzu::{ArrayContextExt, ArrayElement, DataType,backends::{common::{Backend, Context, Encoder, Kernels, kernel::AttentionSinglePassKernel},cpu::Cpu,},};+use half::{bf16, f16};+use num_traits::Float;use crate::{common::assert::assert_eq_float, uzu_test};diff --git a/crates/uzu/tests/unit/kernel/attention/attention_two_pass_test.rs b/crates/backend-uzu/tests/unit/kernel/attention/attention_two_pass_test.rssimilarity index 99%rename from crates/uzu/tests/unit/kernel/attention/attention_two_pass_test.rsrename to crates/backend-uzu/tests/unit/kernel/attention/attention_two_pass_test.rsindex 3f4ffa49a..ed57e6adf 100644--- a/crates/uzu/tests/unit/kernel/attention/attention_two_pass_test.rs+++ b/crates/backend-uzu/tests/unit/kernel/attention/attention_two_pass_test.rs@@ -3,9 +3,7 @@ use std::{ops::{Deref, DerefMut},};-use half::{bf16, f16};-use num_traits::Float;-use uzu::{+use backend_uzu::{ArrayContextExt, ArrayElement, DataType,backends::{common::{@@ -15,6 +13,8 @@ use uzu::{cpu::Cpu,},};+use half::{bf16, f16};+use num_traits::Float;use crate::{common::assert::assert_eq_float, uzu_test};diff --git a/crates/uzu/tests/unit/kernel/attention/attention_update_kv_cache_test.rs b/crates/backend-uzu/tests/unit/kernel/attention/attention_update_kv_cache_test.rssimilarity index 99%rename from crates/uzu/tests/unit/kernel/attention/attention_update_kv_cache_test.rsrename to crates/backend-uzu/tests/unit/kernel/attention/attention_update_kv_cache_test.rsindex 2f5fff81d..67ab791ed 100644--- a/crates/uzu/tests/unit/kernel/attention/attention_update_kv_cache_test.rs+++ b/crates/backend-uzu/tests/unit/kernel/attention/attention_update_kv_cache_test.rs@@ -3,15 +3,15 @@ use std::{ops::{Deref, DerefMut},};-use half::{bf16, f16};-use num_traits::Float;-use uzu::{+use backend_uzu::{ArrayContextExt, ArrayElement, DataType,backends::{common::{Backend, Context, Encoder, Kernels, kernel::AttentionUpdateKVCacheKernel},cpu::Cpu,},};+use half::{bf16, f16};+use num_traits::Float;use crate::{common::assert::assert_eq_float, uzu_test};diff --git a/crates/uzu/tests/unit/kernel/attention/mod.rs b/crates/backend-uzu/tests/unit/kernel/attention/mod.rssimilarity index 100%rename from crates/uzu/tests/unit/kernel/attention/mod.rsrename to crates/backend-uzu/tests/unit/kernel/attention/mod.rsdiff --git a/crates/uzu/tests/unit/kernel/attention/sigmoid_gate_test.rs b/crates/backend-uzu/tests/unit/kernel/attention/sigmoid_gate_test.rssimilarity index 99%rename from crates/uzu/tests/unit/kernel/attention/sigmoid_gate_test.rsrename to crates/backend-uzu/tests/unit/kernel/attention/sigmoid_gate_test.rsindex e04741bd0..bcd3df4c9 100644--- a/crates/uzu/tests/unit/kernel/attention/sigmoid_gate_test.rs+++ b/crates/backend-uzu/tests/unit/kernel/attention/sigmoid_gate_test.rs@@ -1,14 +1,14 @@use std::{fmt::Debug, ops::DerefMut};-use half::{bf16, f16};-use num_traits::Float;-use uzu::{+use backend_uzu::{ArrayContextExt, ArrayElement,backends::{common::{Backend, Context, Encoder, Kernels, kernel::SigmoidGateKernel},cpu::Cpu,},};+use half::{bf16, f16};+use num_traits::Float;use crate::uzu_test;diff --git a/crates/uzu/tests/unit/kernel/audio/audio_test.rs b/crates/backend-uzu/tests/unit/kernel/audio/audio_test.rssimilarity index 99%rename from crates/uzu/tests/unit/kernel/audio/audio_test.rsrename to crates/backend-uzu/tests/unit/kernel/audio/audio_test.rsindex fd9168c91..78a863dba 100644--- a/crates/uzu/tests/unit/kernel/audio/audio_test.rs+++ b/crates/backend-uzu/tests/unit/kernel/audio/audio_test.rs@@ -1,6 +1,6 @@#![cfg(metal_backend)]-use uzu::{+use backend_uzu::{ArrayContextExt, DataType,backends::{common::{diff --git a/crates/uzu/tests/unit/kernel/audio/mod.rs b/crates/backend-uzu/tests/unit/kernel/audio/mod.rssimilarity index 100%rename from crates/uzu/tests/unit/kernel/audio/mod.rsrename to crates/backend-uzu/tests/unit/kernel/audio/mod.rsdiff --git a/crates/uzu/tests/unit/kernel/bench_entry.rs b/crates/backend-uzu/tests/unit/kernel/bench_entry.rssimilarity index 100%rename from crates/uzu/tests/unit/kernel/bench_entry.rsrename to crates/backend-uzu/tests/unit/kernel/bench_entry.rsdiff --git a/crates/uzu/tests/unit/kernel/delta_net_test.rs b/crates/backend-uzu/tests/unit/kernel/delta_net_test.rssimilarity index 99%rename from crates/uzu/tests/unit/kernel/delta_net_test.rsrename to crates/backend-uzu/tests/unit/kernel/delta_net_test.rsindex 9dfbafec9..88d3007ca 100644--- a/crates/uzu/tests/unit/kernel/delta_net_test.rs+++ b/crates/backend-uzu/tests/unit/kernel/delta_net_test.rs@@ -2,7 +2,7 @@use std::ops::{Deref, DerefMut};-use uzu::{+use backend_uzu::{ArrayContextExt, DataType,backends::{common::{diff --git a/crates/uzu/tests/unit/kernel/embedding/embedding_rows_sum_test.rs b/crates/backend-uzu/tests/unit/kernel/embedding/embedding_rows_sum_test.rssimilarity index 99%rename from crates/uzu/tests/unit/kernel/embedding/embedding_rows_sum_test.rsrename to crates/backend-uzu/tests/unit/kernel/embedding/embedding_rows_sum_test.rsindex 9065a96d4..8d67f4c70 100644--- a/crates/uzu/tests/unit/kernel/embedding/embedding_rows_sum_test.rs+++ b/crates/backend-uzu/tests/unit/kernel/embedding/embedding_rows_sum_test.rs@@ -3,15 +3,15 @@ use std::{ops::{Deref, DerefMut},};-use half::{bf16, f16};-use num_traits::Float;-use uzu::{+use backend_uzu::{ArrayContextExt, ArrayElement, DataType,backends::{common::{Backend, Context, Encoder, Kernels, kernel::EmbeddingRowsSumKernel},cpu::Cpu,},};+use half::{bf16, f16};+use num_traits::Float;use crate::{common::assert::assert_eq_float, uzu_test};diff --git a/crates/uzu/tests/unit/kernel/embedding/full_precision_embedding_test.rs b/crates/backend-uzu/tests/unit/kernel/embedding/full_precision_embedding_test.rssimilarity index 99%rename from crates/uzu/tests/unit/kernel/embedding/full_precision_embedding_test.rsrename to crates/backend-uzu/tests/unit/kernel/embedding/full_precision_embedding_test.rsindex 3b6fdc76d..0ac84188a 100644--- a/crates/uzu/tests/unit/kernel/embedding/full_precision_embedding_test.rs+++ b/crates/backend-uzu/tests/unit/kernel/embedding/full_precision_embedding_test.rs@@ -3,12 +3,12 @@ use std::{ops::{Deref, DerefMut},};-use half::{bf16, f16};-use num_traits::Float;-use uzu::{+use backend_uzu::{ArrayContextExt, ArrayElement,backends::common::{Backend, Context, Encoder, Kernels, kernel::FullPrecisionEmbeddingLookupKernel},};+use half::{bf16, f16};+use num_traits::Float;use crate::uzu_test;diff --git a/crates/uzu/tests/unit/kernel/embedding/mod.rs b/crates/backend-uzu/tests/unit/kernel/embedding/mod.rssimilarity index 100%rename from crates/uzu/tests/unit/kernel/embedding/mod.rsrename to crates/backend-uzu/tests/unit/kernel/embedding/mod.rsdiff --git a/crates/uzu/tests/unit/kernel/embedding/quant_embedding_test.rs b/crates/backend-uzu/tests/unit/kernel/embedding/quant_embedding_test.rssimilarity index 99%rename from crates/uzu/tests/unit/kernel/embedding/quant_embedding_test.rsrename to crates/backend-uzu/tests/unit/kernel/embedding/quant_embedding_test.rsindex d1b31c51e..ffeaf4649 100644--- a/crates/uzu/tests/unit/kernel/embedding/quant_embedding_test.rs+++ b/crates/backend-uzu/tests/unit/kernel/embedding/quant_embedding_test.rs@@ -3,9 +3,7 @@ use std::{ops::{Deref, DerefMut},};-use half::{bf16, f16};-use num_traits::Float;-use uzu::{+use backend_uzu::{ArrayContextExt, ArrayElement, DataType,backends::{common::{@@ -14,6 +12,8 @@ use uzu::{cpu::Cpu,},};+use half::{bf16, f16};+use num_traits::Float;use crate::{common::assert::assert_eq_float, uzu_test};diff --git a/crates/uzu/tests/unit/kernel/hadamard_transform_test.rs b/crates/backend-uzu/tests/unit/kernel/hadamard_transform_test.rssimilarity index 99%rename from crates/uzu/tests/unit/kernel/hadamard_transform_test.rsrename to crates/backend-uzu/tests/unit/kernel/hadamard_transform_test.rsindex be60407c1..a37515b97 100644--- a/crates/uzu/tests/unit/kernel/hadamard_transform_test.rs+++ b/crates/backend-uzu/tests/unit/kernel/hadamard_transform_test.rs@@ -3,12 +3,12 @@ use std::{ops::{Deref, DerefMut},};-use half::{bf16, f16};-use num_traits::Float;-use uzu::{+use backend_uzu::{ArrayContextExt, ArrayElement,backends::common::{Backend, Context, Encoder, Kernels, kernel::HadamardTransformKernel},};+use half::{bf16, f16};+use num_traits::Float;use crate::uzu_test;diff --git a/crates/uzu/tests/unit/kernel/kv_cache_update_test.rs b/crates/backend-uzu/tests/unit/kernel/kv_cache_update_test.rssimilarity index 99%rename from crates/uzu/tests/unit/kernel/kv_cache_update_test.rsrename to crates/backend-uzu/tests/unit/kernel/kv_cache_update_test.rsindex 87b5a2c6c..c4af55c8a 100644--- a/crates/uzu/tests/unit/kernel/kv_cache_update_test.rs+++ b/crates/backend-uzu/tests/unit/kernel/kv_cache_update_test.rs@@ -3,15 +3,15 @@ use std::{ops::DerefMut,};-use half::{bf16, f16};-use num_traits::Float;-use uzu::{+use backend_uzu::{ArrayContextExt, ArrayElement,backends::{common::{Backend, Context, Encoder, Kernels, gpu_types::Swap, kernel::KVCacheUpdateKernel},cpu::Cpu,},};+use half::{bf16, f16};+use num_traits::Float;use crate::{common::assert::assert_eq_float, uzu_test};diff --git a/crates/uzu/tests/unit/kernel/layer_norm_test.rs b/crates/backend-uzu/tests/unit/kernel/layer_norm_test.rssimilarity index 99%rename from crates/uzu/tests/unit/kernel/layer_norm_test.rsrename to crates/backend-uzu/tests/unit/kernel/layer_norm_test.rsindex 570793061..a6675dca2 100644--- a/crates/uzu/tests/unit/kernel/layer_norm_test.rs+++ b/crates/backend-uzu/tests/unit/kernel/layer_norm_test.rs@@ -3,15 +3,15 @@ use std::{ops::{Deref, DerefMut},};-use half::{bf16, f16};-use num_traits::Float;-use uzu::{+use backend_uzu::{ArrayContextExt, ArrayElement, DataType,backends::{common::{Backend, Context, Encoder, Kernels, kernel::LayerNormKernel},cpu::Cpu,},};+use half::{bf16, f16};+use num_traits::Float;use crate::{common::assert::assert_eq_float, uzu_test};diff --git a/crates/uzu/tests/unit/kernel/matmul/gemm_mpp_test.rs b/crates/backend-uzu/tests/unit/kernel/matmul/gemm_mpp_test.rssimilarity index 99%rename from crates/uzu/tests/unit/kernel/matmul/gemm_mpp_test.rsrename to crates/backend-uzu/tests/unit/kernel/matmul/gemm_mpp_test.rsindex 30f89f124..d17da07be 100644--- a/crates/uzu/tests/unit/kernel/matmul/gemm_mpp_test.rs+++ b/crates/backend-uzu/tests/unit/kernel/matmul/gemm_mpp_test.rs@@ -5,9 +5,7 @@ use std::{rc::Rc,};-use criterion::{BenchmarkId, Criterion, Throughput};-use half::bf16;-use uzu::{+use backend_uzu::{ArrayContextExt, ArrayElement,backends::{common::{@@ -21,6 +19,8 @@ use uzu::{metal::{DeviceExt, MatmulDispatchPath, Metal, MetalContext},},};+use criterion::{BenchmarkId, Criterion, Throughput};+use half::bf16;use crate::{common::{assert::assert_eq_float, type_short_name},diff --git a/crates/uzu/tests/unit/kernel/matmul/gemm_test.rs b/crates/backend-uzu/tests/unit/kernel/matmul/gemm_test.rssimilarity index 92%rename from crates/uzu/tests/unit/kernel/matmul/gemm_test.rsrename to crates/backend-uzu/tests/unit/kernel/matmul/gemm_test.rsindex c29779868..4daadaf4b 100644--- a/crates/uzu/tests/unit/kernel/matmul/gemm_test.rs+++ b/crates/backend-uzu/tests/unit/kernel/matmul/gemm_test.rs@@ -3,9 +3,7 @@ use std::{ops::{Deref, DerefMut},};-use half::{bf16, f16};-use num_traits::Float;-use uzu::{+use backend_uzu::{ArrayContextExt, ArrayElement,backends::{common::{@@ -18,6 +16,8 @@ use uzu::{cpu::Cpu,},};+use half::{bf16, f16};+use num_traits::Float;use crate::{common::assert::assert_eq_float, uzu_test};@@ -49,7 +49,10 @@ fn get_test_data<T: ArrayElement + Float>((input, expected)}-fn get_output<T: ArrayElement + Float, B: Backend>(input: &Input<T>, ab_scale: f32) -> Vec<T> {+fn get_output<T: ArrayElement + Float, B: Backend>(+ input: &Input<T>,+ ab_scale: f32,+) -> Vec<T> {let context = B::Context::new().expect("Failed to create Context");let m = input.m as u32;@@ -116,7 +119,12 @@ fn test_with_scale<T: ArrayElement + Float + Debug + Display>(let expected = get_output::<T, Cpu>(&input, ab_scale);for_each_non_cpu_backend!(|B| {let output = get_output::<T, B>(&input, ab_scale);- assert_eq_float(&expected, &output, eps, &format!("backend {} ab_scale={ab_scale}", std::any::type_name::<B>()));+ assert_eq_float(+ &expected,+ &output,+ eps,+ &format!("backend {} ab_scale={ab_scale}", std::any::type_name::<B>()),+ );});}diff --git a/crates/uzu/tests/unit/kernel/matmul/gemv_test.rs b/crates/backend-uzu/tests/unit/kernel/matmul/gemv_test.rssimilarity index 99%rename from crates/uzu/tests/unit/kernel/matmul/gemv_test.rsrename to crates/backend-uzu/tests/unit/kernel/matmul/gemv_test.rsindex ac1c8d42f..8ffaa9b97 100644--- a/crates/uzu/tests/unit/kernel/matmul/gemv_test.rs+++ b/crates/backend-uzu/tests/unit/kernel/matmul/gemv_test.rs@@ -3,9 +3,7 @@ use std::{ops::{Deref, DerefMut},};-use half::{bf16, f16};-use num_traits::Float;-use uzu::{+use backend_uzu::{ArrayContextExt, ArrayElement,backends::{common::{@@ -18,6 +16,8 @@ use uzu::{cpu::Cpu,},};+use half::{bf16, f16};+use num_traits::Float;use crate::{common::assert::assert_eq_float, uzu_test};diff --git a/crates/uzu/tests/unit/kernel/matmul/mod.rs b/crates/backend-uzu/tests/unit/kernel/matmul/mod.rssimilarity index 100%rename from crates/uzu/tests/unit/kernel/matmul/mod.rsrename to crates/backend-uzu/tests/unit/kernel/matmul/mod.rsdiff --git a/crates/uzu/tests/unit/kernel/mod.rs b/crates/backend-uzu/tests/unit/kernel/mod.rssimilarity index 100%rename from crates/uzu/tests/unit/kernel/mod.rsrename to crates/backend-uzu/tests/unit/kernel/mod.rsdiff --git a/crates/uzu/tests/unit/kernel/moe/mod.rs b/crates/backend-uzu/tests/unit/kernel/moe/mod.rssimilarity index 100%rename from crates/uzu/tests/unit/kernel/moe/mod.rsrename to crates/backend-uzu/tests/unit/kernel/moe/mod.rsdiff --git a/crates/uzu/tests/unit/kernel/moe/moe_counts_offsets_fused_test.rs b/crates/backend-uzu/tests/unit/kernel/moe/moe_counts_offsets_fused_test.rssimilarity index 99%rename from crates/uzu/tests/unit/kernel/moe/moe_counts_offsets_fused_test.rsrename to crates/backend-uzu/tests/unit/kernel/moe/moe_counts_offsets_fused_test.rsindex d41c2d1b7..f650b2f70 100644--- a/crates/uzu/tests/unit/kernel/moe/moe_counts_offsets_fused_test.rs+++ b/crates/backend-uzu/tests/unit/kernel/moe/moe_counts_offsets_fused_test.rs@@ -1,13 +1,13 @@use std::ops::{Deref, DerefMut};-use rand::{RngExt, SeedableRng, rngs::StdRng};-use uzu::{+use backend_uzu::{ArrayContextExt, ArrayElement,backends::{common::{Backend, Context, Encoder, Kernels, kernel::MoeCountsOffsetsFusedKernel},cpu::Cpu,},};+use rand::{RngExt, SeedableRng, rngs::StdRng};use crate::uzu_test;diff --git a/crates/uzu/tests/unit/kernel/moe/moe_finalize_test.rs b/crates/backend-uzu/tests/unit/kernel/moe/moe_finalize_test.rssimilarity index 99%rename from crates/uzu/tests/unit/kernel/moe/moe_finalize_test.rsrename to crates/backend-uzu/tests/unit/kernel/moe/moe_finalize_test.rsindex ebefa6f05..60fc1b460 100644--- a/crates/uzu/tests/unit/kernel/moe/moe_finalize_test.rs+++ b/crates/backend-uzu/tests/unit/kernel/moe/moe_finalize_test.rs@@ -1,15 +1,15 @@use std::ops::{Deref, DerefMut};-use half::bf16;-use num_traits::Float;-use rand::{RngExt, SeedableRng, rngs::StdRng};-use uzu::{+use backend_uzu::{ArrayContextExt, ArrayElement, DataType,backends::{common::{Backend, Encoder, Kernels, kernel::MoeFinalizeKernel},cpu::Cpu,},};+use half::bf16;+use num_traits::Float;+use rand::{RngExt, SeedableRng, rngs::StdRng};use crate::{common::{assert::assert_eq_float, helpers::create_context},diff --git a/crates/uzu/tests/unit/kernel/moe/moe_gather_test.rs b/crates/backend-uzu/tests/unit/kernel/moe/moe_gather_test.rssimilarity index 99%rename from crates/uzu/tests/unit/kernel/moe/moe_gather_test.rsrename to crates/backend-uzu/tests/unit/kernel/moe/moe_gather_test.rsindex a5bd8543a..7a7572e16 100644--- a/crates/uzu/tests/unit/kernel/moe/moe_gather_test.rs+++ b/crates/backend-uzu/tests/unit/kernel/moe/moe_gather_test.rs@@ -1,9 +1,6 @@use std::ops::{Deref, DerefMut};-use half::bf16;-use num_traits::Float;-use rand::{RngExt, SeedableRng, rngs::StdRng};-use uzu::{+use backend_uzu::{ArrayContextExt, ArrayElement,backends::{common::{@@ -13,6 +10,9 @@ use uzu::{cpu::Cpu,},};+use half::bf16;+use num_traits::Float;+use rand::{RngExt, SeedableRng, rngs::StdRng};use crate::{common::{assert::assert_eq_float, helpers::create_context},diff --git a/crates/uzu/tests/unit/kernel/moe/moe_router_topk_test.rs b/crates/backend-uzu/tests/unit/kernel/moe/moe_router_topk_test.rssimilarity index 99%rename from crates/uzu/tests/unit/kernel/moe/moe_router_topk_test.rsrename to crates/backend-uzu/tests/unit/kernel/moe/moe_router_topk_test.rsindex 1660a4925..607256bbf 100644--- a/crates/uzu/tests/unit/kernel/moe/moe_router_topk_test.rs+++ b/crates/backend-uzu/tests/unit/kernel/moe/moe_router_topk_test.rs@@ -3,16 +3,16 @@ use std::{ops::{Deref, DerefMut},};-use half::bf16;-use num_traits::Float;-use rand::{RngExt, SeedableRng, rngs::StdRng};-use uzu::{+use backend_uzu::{ArrayContextExt, ArrayElement, DataType,backends::{common::{Backend, Encoder, Kernels, kernel::MoeRouterTopKKernel},cpu::Cpu,},};+use half::bf16;+use num_traits::Float;+use rand::{RngExt, SeedableRng, rngs::StdRng};use crate::{common::helpers::create_context, uzu_test};diff --git a/crates/uzu/tests/unit/kernel/moe/moe_scatter_test.rs b/crates/backend-uzu/tests/unit/kernel/moe/moe_scatter_test.rssimilarity index 99%rename from crates/uzu/tests/unit/kernel/moe/moe_scatter_test.rsrename to crates/backend-uzu/tests/unit/kernel/moe/moe_scatter_test.rsindex f865760c7..8ef8cc7a1 100644--- a/crates/uzu/tests/unit/kernel/moe/moe_scatter_test.rs+++ b/crates/backend-uzu/tests/unit/kernel/moe/moe_scatter_test.rs@@ -1,9 +1,6 @@use std::ops::{Deref, DerefMut};-use half::bf16;-use num_traits::Float;-use rand::{RngExt, SeedableRng, rngs::StdRng};-use uzu::{+use backend_uzu::{Array, ArrayContextExt, ArrayElement, DataType,backends::{common::{@@ -16,6 +13,9 @@ use uzu::{cpu::Cpu,},};+use half::bf16;+use num_traits::Float;+use rand::{RngExt, SeedableRng, rngs::StdRng};use crate::{common::helpers::create_context, uzu_test};diff --git a/crates/uzu/tests/unit/kernel/pooling/mod.rs b/crates/backend-uzu/tests/unit/kernel/pooling/mod.rssimilarity index 100%rename from crates/uzu/tests/unit/kernel/pooling/mod.rsrename to crates/backend-uzu/tests/unit/kernel/pooling/mod.rsdiff --git a/crates/uzu/tests/unit/kernel/pooling/pooling_cls_test.rs b/crates/backend-uzu/tests/unit/kernel/pooling/pooling_cls_test.rssimilarity index 99%rename from crates/uzu/tests/unit/kernel/pooling/pooling_cls_test.rsrename to crates/backend-uzu/tests/unit/kernel/pooling/pooling_cls_test.rsindex 057a5189c..249482753 100644--- a/crates/uzu/tests/unit/kernel/pooling/pooling_cls_test.rs+++ b/crates/backend-uzu/tests/unit/kernel/pooling/pooling_cls_test.rs@@ -3,15 +3,15 @@ use std::{ops::{Deref, DerefMut},};-use half::{bf16, f16};-use num_traits::Float;-use uzu::{+use backend_uzu::{ArrayContextExt, ArrayElement, DataType,backends::{common::{Backend, Context, Encoder, Kernels, kernel::PoolingClsKernel},cpu::Cpu,},};+use half::{bf16, f16};+use num_traits::Float;use crate::{common::assert::assert_eq_float, uzu_test};diff --git a/crates/uzu/tests/unit/kernel/pooling/pooling_mean_test.rs b/crates/backend-uzu/tests/unit/kernel/pooling/pooling_mean_test.rssimilarity index 99%rename from crates/uzu/tests/unit/kernel/pooling/pooling_mean_test.rsrename to crates/backend-uzu/tests/unit/kernel/pooling/pooling_mean_test.rsindex feb4da725..b6c1b8104 100644--- a/crates/uzu/tests/unit/kernel/pooling/pooling_mean_test.rs+++ b/crates/backend-uzu/tests/unit/kernel/pooling/pooling_mean_test.rs@@ -3,15 +3,15 @@ use std::{ops::{Deref, DerefMut},};-use half::{bf16, f16};-use num_traits::Float;-use uzu::{+use backend_uzu::{ArrayContextExt, ArrayElement, DataType,backends::{common::{Backend, Context, Encoder, Kernels, kernel::PoolingMeanKernel},cpu::Cpu,},};+use half::{bf16, f16};+use num_traits::Float;use crate::{common::assert::assert_eq_float, uzu_test};diff --git a/crates/uzu/tests/unit/kernel/qk_norm_test.rs b/crates/backend-uzu/tests/unit/kernel/qk_norm_test.rssimilarity index 99%rename from crates/uzu/tests/unit/kernel/qk_norm_test.rsrename to crates/backend-uzu/tests/unit/kernel/qk_norm_test.rsindex 2af9c8d50..63f53719c 100644--- a/crates/uzu/tests/unit/kernel/qk_norm_test.rs+++ b/crates/backend-uzu/tests/unit/kernel/qk_norm_test.rs@@ -3,15 +3,15 @@ use std::{ops::{Deref, DerefMut},};-use half::{bf16, f16};-use num_traits::Float;-use uzu::{+use backend_uzu::{ArrayContextExt, ArrayElement, DataType,backends::{common::{Backend, Context, Encoder, Kernels, kernel::QKNormKernel},cpu::Cpu,},};+use half::{bf16, f16};+use num_traits::Float;use crate::{common::assert::assert_eq_float, uzu_test};diff --git a/crates/uzu/tests/unit/kernel/quant_matmul/mod.rs b/crates/backend-uzu/tests/unit/kernel/quant_matmul/mod.rssimilarity index 98%rename from crates/uzu/tests/unit/kernel/quant_matmul/mod.rsrename to crates/backend-uzu/tests/unit/kernel/quant_matmul/mod.rsindex bef2b6ea4..32131c91b 100644--- a/crates/uzu/tests/unit/kernel/quant_matmul/mod.rs+++ b/crates/backend-uzu/tests/unit/kernel/quant_matmul/mod.rs@@ -6,8 +6,8 @@ mod qmm_transposed_test;mod qmv_fast_test;mod qmv_test;+use backend_uzu::ArrayElement;use num_traits::Float;-use uzu::ArrayElement;pub(super) struct Input<T: ArrayElement + Float> {pub w_packed: Vec<u32>,diff --git a/crates/uzu/tests/unit/kernel/quant_matmul/qmm_transposed_test.rs b/crates/backend-uzu/tests/unit/kernel/quant_matmul/qmm_transposed_test.rssimilarity index 95%rename from crates/uzu/tests/unit/kernel/quant_matmul/qmm_transposed_test.rsrename to crates/backend-uzu/tests/unit/kernel/quant_matmul/qmm_transposed_test.rsindex 587a5a12a..67f93e151 100644--- a/crates/uzu/tests/unit/kernel/quant_matmul/qmm_transposed_test.rs+++ b/crates/backend-uzu/tests/unit/kernel/quant_matmul/qmm_transposed_test.rs@@ -1,14 +1,14 @@use std::fmt::{Debug, Display};-use half::{bf16, f16};-use num_traits::Float;-use uzu::{+use backend_uzu::{ArrayElement, DataType,backends::{common::{Backend, Buffer, Context, Encoder, Kernels, kernel::QuantizedMatmulQmmTransposedKernel},cpu::Cpu,},};+use half::{bf16, f16};+use num_traits::Float;use super::{Input, check_tolerance, pack_weights_u32, pack_zero_points};use crate::{common::helpers::alloc_buffer_with_data, uzu_test};@@ -285,10 +285,34 @@ impl TileCfg {}}-const CFG_BM8: TileCfg = TileCfg { bm: 8, bk: 32, bn: 32, wm: 1, wn: 1 };-const CFG_32X32: TileCfg = TileCfg { bm: 32, bk: 32, bn: 32, wm: 2, wn: 2 };-const CFG_WIDE: TileCfg = TileCfg { bm: 64, bk: 32, bn: 64, wm: 2, wn: 2 };-const CFG_64X64: TileCfg = TileCfg { bm: 64, bk: 64, bn: 64, wm: 2, wn: 2 };+const CFG_BM8: TileCfg = TileCfg {+ bm: 8,+ bk: 32,+ bn: 32,+ wm: 1,+ wn: 1,+};+const CFG_32X32: TileCfg = TileCfg {+ bm: 32,+ bk: 32,+ bn: 32,+ wm: 2,+ wn: 2,+};+const CFG_WIDE: TileCfg = TileCfg {+ bm: 64,+ bk: 32,+ bn: 64,+ wm: 2,+ wn: 2,+};+const CFG_64X64: TileCfg = TileCfg {+ bm: 64,+ bk: 64,+ bn: 64,+ wm: 2,+ wn: 2,+};fn pick_aligned_n(cfg: &TileCfg,@@ -356,7 +380,15 @@ fn test_hadamard_consistency<T: ArrayElement + Float + Debug + Display>(let input = make_input_basic::<T>(m, k, n, group_size, bits, use_zero_points, use_mlx_quant);// ±1 factors: non-trivial Hadamard, bounded output across all dtypes.- let factors: Vec<i32> = (0..n).map(|i| if (i * 13 + 7) % 2 == 0 { 1 } else { -1 }).collect();+ let factors: Vec<i32> = (0..n)+ .map(|i| {+ if (i * 13 + 7) % 2 == 0 {+ 1+ } else {+ -1+ }+ })+ .collect();// Hadamard amplifies by sqrt(32) ≈ 5.65; tolerance widened accordingly.let (rel_tol, abs_tol): (f64, f64) = match T::data_type() {@@ -366,11 +398,8 @@ fn test_hadamard_consistency<T: ArrayElement + Float + Debug + Display>(};for_each_non_cpu_backend!(|B| {- let shapes: [(u32, u32, u32, u32, u32, &str); 3] = [- (32, 32, 32, 2, 2, "32x32"),- (64, 32, 64, 2, 2, "wide"),- (64, 64, 64, 2, 2, "64x64"),- ];+ let shapes: [(u32, u32, u32, u32, u32, &str); 3] =+ [(32, 32, 32, 2, 2, "32x32"), (64, 32, 64, 2, 2, "wide"), (64, 64, 64, 2, 2, "64x64")];let outputs: Vec<(&str, Vec<T>)> = shapes.iter()@@ -390,14 +419,7 @@ fn test_hadamard_consistency<T: ArrayElement + Float + Debug + Display>(let o_f32 = o.to_f32().unwrap();if !check_tolerance(r_f32, o_f32, rel_tol, abs_tol) {if errors < 5 {- eprintln!(- " idx={} 32x32={} {}={} diff={}",- i,- r_f32,- name,- o_f32,- (r_f32 - o_f32).abs()- );+ eprintln!(" idx={} 32x32={} {}={} diff={}", i, r_f32, name, o_f32, (r_f32 - o_f32).abs());}errors += 1;}diff --git a/crates/uzu/tests/unit/kernel/quant_matmul/qmv_fast_test.rs b/crates/backend-uzu/tests/unit/kernel/quant_matmul/qmv_fast_test.rssimilarity index 98%rename from crates/uzu/tests/unit/kernel/quant_matmul/qmv_fast_test.rsrename to crates/backend-uzu/tests/unit/kernel/quant_matmul/qmv_fast_test.rsindex bac371451..ff5f2ebce 100644--- a/crates/uzu/tests/unit/kernel/quant_matmul/qmv_fast_test.rs+++ b/crates/backend-uzu/tests/unit/kernel/quant_matmul/qmv_fast_test.rs@@ -1,11 +1,6 @@use std::fmt::{Debug, Display};-use criterion::{BenchmarkId, Criterion, Throughput};-use half::{bf16, f16};-use itertools::iproduct;-use num_traits::Float;-use rand::{RngExt, SeedableRng, rngs::SmallRng};-use uzu::{+use backend_uzu::{ArrayElement, DataType,backends::{common::{@@ -15,6 +10,11 @@ use uzu::{cpu::Cpu,},};+use criterion::{BenchmarkId, Criterion, Throughput};+use half::{bf16, f16};+use itertools::iproduct;+use num_traits::Float;+use rand::{RngExt, SeedableRng, rngs::SmallRng};use super::{Input, check_tolerance, pack_weights_u32, pack_zero_points};use crate::{@@ -328,11 +328,7 @@ fn bench_qmv_fast_typed<B: Backend, T: ArrayElement + Float>(256};- for (m, n, k) in iproduct!(- [1, 2, 3, 4],- [1024, 2048, 4096, 14336, 65536],- [1024, 2048, 4096, 8192, 14336]- ) {+ for (m, n, k) in iproduct!([1, 2, 3, 4], [1024, 2048, 4096, 14336, 65536], [1024, 2048, 4096, 8192, 14336]) {if n % 8 != 0 || k % block_size != 0 {continue;}diff --git a/crates/uzu/tests/unit/kernel/quant_matmul/qmv_test.rs b/crates/backend-uzu/tests/unit/kernel/quant_matmul/qmv_test.rssimilarity index 99%rename from crates/uzu/tests/unit/kernel/quant_matmul/qmv_test.rsrename to crates/backend-uzu/tests/unit/kernel/quant_matmul/qmv_test.rsindex 8a52d7bc6..536792025 100644--- a/crates/uzu/tests/unit/kernel/quant_matmul/qmv_test.rs+++ b/crates/backend-uzu/tests/unit/kernel/quant_matmul/qmv_test.rs@@ -1,13 +1,13 @@use std::fmt::{Debug, Display};-use num_traits::Float;-use uzu::{+use backend_uzu::{ArrayElement, DataType,backends::{common::{Backend, Buffer, Context, Encoder, Kernels, kernel::QuantizedMatmulQmvKernel},cpu::Cpu,},};+use num_traits::Float;use super::{Input, check_tolerance, pack_weights_u32, pack_zero_points};use crate::{common::helpers::alloc_buffer_with_data, uzu_test};diff --git a/crates/uzu/tests/unit/kernel/rms_norm_test.rs b/crates/backend-uzu/tests/unit/kernel/rms_norm_test.rssimilarity index 99%rename from crates/uzu/tests/unit/kernel/rms_norm_test.rsrename to crates/backend-uzu/tests/unit/kernel/rms_norm_test.rsindex 459ed5689..da827a8f7 100644--- a/crates/uzu/tests/unit/kernel/rms_norm_test.rs+++ b/crates/backend-uzu/tests/unit/kernel/rms_norm_test.rs@@ -4,18 +4,18 @@ use std::{time::{Duration, Instant},};-use criterion::{BenchmarkId, Criterion, Throughput};-use half::{bf16, f16};-use itertools::iproduct;-use num_traits::Float;-use rand::{RngExt, SeedableRng, rngs::SmallRng};-use uzu::{+use backend_uzu::{ArrayContextExt, ArrayElement, DataType,backends::{common::{Backend, Buffer, Context, Encoder, Kernels, kernel::RMSNormKernel},cpu::Cpu,},};+use criterion::{BenchmarkId, Criterion, Throughput};+use half::{bf16, f16};+use itertools::iproduct;+use num_traits::Float;+use rand::{RngExt, SeedableRng, rngs::SmallRng};use crate::{common::{assert::assert_eq_float, type_short_name},diff --git a/crates/uzu/tests/unit/kernel/rope_test.rs b/crates/backend-uzu/tests/unit/kernel/rope_test.rssimilarity index 99%rename from crates/uzu/tests/unit/kernel/rope_test.rsrename to crates/backend-uzu/tests/unit/kernel/rope_test.rsindex 1ddad3464..013212eab 100644--- a/crates/uzu/tests/unit/kernel/rope_test.rs+++ b/crates/backend-uzu/tests/unit/kernel/rope_test.rs@@ -3,15 +3,15 @@ use std::{ops::{Deref, DerefMut},};-use half::{bf16, f16};-use num_traits::Float;-use uzu::{+use backend_uzu::{ArrayContextExt, ArrayElement, DataType,backends::{common::{Backend, Context, Encoder, Kernels, kernel::RopeKernel},cpu::Cpu,},};+use half::{bf16, f16};+use num_traits::Float;use crate::{common::assert::assert_eq_float, uzu_test};diff --git a/crates/uzu/tests/unit/kernel/sampling/argmax_test_old.rs b/crates/backend-uzu/tests/unit/kernel/sampling/argmax_test_old.rssimilarity index 99%rename from crates/uzu/tests/unit/kernel/sampling/argmax_test_old.rsrename to crates/backend-uzu/tests/unit/kernel/sampling/argmax_test_old.rsindex e1799ba67..2706fee92 100644--- a/crates/uzu/tests/unit/kernel/sampling/argmax_test_old.rs+++ b/crates/backend-uzu/tests/unit/kernel/sampling/argmax_test_old.rs@@ -4,9 +4,7 @@ use std::{ops::{Deref, DerefMut},};-use half::{bf16, f16};-use num_traits::Float;-use uzu::{+use backend_uzu::{ArrayContextExt, ArrayElement, DataType,backends::common::{Backend, Context, Encoder, Kernels,@@ -14,6 +12,8 @@ use uzu::{kernel::{ArgmaxFinalKernel, ArgmaxMainKernel, ArgmaxSingleKernel},},};+use half::{bf16, f16};+use num_traits::Float;use crate::uzu_test;diff --git a/crates/uzu/tests/unit/kernel/sampling/bitmask_test.rs b/crates/backend-uzu/tests/unit/kernel/sampling/bitmask_test.rssimilarity index 99%rename from crates/uzu/tests/unit/kernel/sampling/bitmask_test.rsrename to crates/backend-uzu/tests/unit/kernel/sampling/bitmask_test.rsindex 5dc8ffad5..f1fbc901f 100644--- a/crates/uzu/tests/unit/kernel/sampling/bitmask_test.rs+++ b/crates/backend-uzu/tests/unit/kernel/sampling/bitmask_test.rs@@ -3,15 +3,15 @@ use std::{ops::{Deref, DerefMut},};-use half::{bf16, f16};-use num_traits::Float;-use uzu::{+use backend_uzu::{ArrayContextExt, ArrayElement, DataType,backends::{common::{Backend, Context, Encoder, Kernels, kernel::BitmaskKernel},cpu::Cpu,},};+use half::{bf16, f16};+use num_traits::Float;use crate::{common::assert::assert_eq_float, uzu_test};diff --git a/crates/uzu/tests/unit/kernel/sampling/gumbel_test.rs b/crates/backend-uzu/tests/unit/kernel/sampling/gumbel_test.rssimilarity index 99%rename from crates/uzu/tests/unit/kernel/sampling/gumbel_test.rsrename to crates/backend-uzu/tests/unit/kernel/sampling/gumbel_test.rsindex 4df6c87be..311cf87c2 100644--- a/crates/uzu/tests/unit/kernel/sampling/gumbel_test.rs+++ b/crates/backend-uzu/tests/unit/kernel/sampling/gumbel_test.rs@@ -3,9 +3,7 @@ use std::{ops::{Deref, DerefMut},};-use half::{bf16, f16};-use num_traits::Float;-use uzu::{+use backend_uzu::{ArrayContextExt, ArrayElement,backends::{common::{Backend, Context, Encoder, Kernels, kernel::GumbelKernel},@@ -13,6 +11,8 @@ use uzu::{},gumbel_float, revidx,};+use half::{bf16, f16};+use num_traits::Float;use crate::uzu_test;diff --git a/crates/uzu/tests/unit/kernel/sampling/min_p_test.rs b/crates/backend-uzu/tests/unit/kernel/sampling/min_p_test.rssimilarity index 99%rename from crates/uzu/tests/unit/kernel/sampling/min_p_test.rsrename to crates/backend-uzu/tests/unit/kernel/sampling/min_p_test.rsindex 6622f7d45..6f31a8411 100644--- a/crates/uzu/tests/unit/kernel/sampling/min_p_test.rs+++ b/crates/backend-uzu/tests/unit/kernel/sampling/min_p_test.rs@@ -3,15 +3,15 @@ use std::{ops::{Deref, DerefMut},};-use half::{bf16, f16};-use num_traits::Float;-use uzu::{+use backend_uzu::{ArrayContextExt, ArrayElement, DataType,backends::{common::{Backend, Context, Encoder, Kernels, kernel::MinPKernel},cpu::Cpu,},};+use half::{bf16, f16};+use num_traits::Float;use crate::{common::assert::assert_eq_float, uzu_test};diff --git a/crates/uzu/tests/unit/kernel/sampling/mod.rs b/crates/backend-uzu/tests/unit/kernel/sampling/mod.rssimilarity index 100%rename from crates/uzu/tests/unit/kernel/sampling/mod.rsrename to crates/backend-uzu/tests/unit/kernel/sampling/mod.rsdiff --git a/crates/uzu/tests/unit/kernel/sampling/temperature_test.rs b/crates/backend-uzu/tests/unit/kernel/sampling/temperature_test.rssimilarity index 99%rename from crates/uzu/tests/unit/kernel/sampling/temperature_test.rsrename to crates/backend-uzu/tests/unit/kernel/sampling/temperature_test.rsindex 9b60aeb51..544d32109 100644--- a/crates/uzu/tests/unit/kernel/sampling/temperature_test.rs+++ b/crates/backend-uzu/tests/unit/kernel/sampling/temperature_test.rs@@ -3,15 +3,15 @@ use std::{ops::{Deref, DerefMut},};-use half::{bf16, f16};-use num_traits::Float;-use uzu::{+use backend_uzu::{ArrayContextExt, ArrayElement, DataType,backends::{common::{Backend, Context, Encoder, Kernels, kernel::TemperatureKernel},cpu::Cpu,},};+use half::{bf16, f16};+use num_traits::Float;use crate::{common::assert::assert_eq_float, uzu_test};diff --git a/crates/uzu/tests/unit/kernel/sampling/test_argmax.rs b/crates/backend-uzu/tests/unit/kernel/sampling/test_argmax.rssimilarity index 99%rename from crates/uzu/tests/unit/kernel/sampling/test_argmax.rsrename to crates/backend-uzu/tests/unit/kernel/sampling/test_argmax.rsindex 12afa5a66..8a60fca68 100644--- a/crates/uzu/tests/unit/kernel/sampling/test_argmax.rs+++ b/crates/backend-uzu/tests/unit/kernel/sampling/test_argmax.rs@@ -1,11 +1,6 @@use std::mem::MaybeUninit;-use criterion::{BenchmarkId, Criterion, Throughput};-use num_traits::{Float, NumCast};-use proptest::prelude::*;-use rand::{RngExt, SeedableRng, rngs::SmallRng};-use rand_distr::Normal;-use uzu::{+use backend_uzu::{ArrayElement,backends::common::{Backend, Buffer, Context, Encoder, Kernels,@@ -13,6 +8,11 @@ use uzu::{kernel::{ArgmaxFinalKernel, ArgmaxMainKernel, ArgmaxSingleKernel},},};+use criterion::{BenchmarkId, Criterion, Throughput};+use num_traits::{Float, NumCast};+use proptest::prelude::*;+use rand::{RngExt, SeedableRng, rngs::SmallRng};+use rand_distr::Normal;use crate::{common::{diff --git a/crates/uzu/tests/unit/kernel/sampling/top_k_test.rs b/crates/backend-uzu/tests/unit/kernel/sampling/top_k_test.rssimilarity index 99%rename from crates/uzu/tests/unit/kernel/sampling/top_k_test.rsrename to crates/backend-uzu/tests/unit/kernel/sampling/top_k_test.rsindex 5c1854915..963784616 100644--- a/crates/uzu/tests/unit/kernel/sampling/top_k_test.rs+++ b/crates/backend-uzu/tests/unit/kernel/sampling/top_k_test.rs@@ -3,16 +3,16 @@ use std::{ops::{Deref, DerefMut},};-use half::{bf16, f16};-use num_traits::Float;-use rand::{RngExt, SeedableRng, rngs::StdRng};-use uzu::{+use backend_uzu::{ArrayContextExt, ArrayElement, DataType,backends::{common::{Backend, Context, Encoder, Kernels, kernel::TopKKernel},cpu::Cpu,},};+use half::{bf16, f16};+use num_traits::Float;+use rand::{RngExt, SeedableRng, rngs::StdRng};use crate::uzu_test;diff --git a/crates/uzu/tests/unit/kernel/sampling/top_p_test.rs b/crates/backend-uzu/tests/unit/kernel/sampling/top_p_test.rssimilarity index 99%rename from crates/uzu/tests/unit/kernel/sampling/top_p_test.rsrename to crates/backend-uzu/tests/unit/kernel/sampling/top_p_test.rsindex 30890f2f7..ceb31bb3a 100644--- a/crates/uzu/tests/unit/kernel/sampling/top_p_test.rs+++ b/crates/backend-uzu/tests/unit/kernel/sampling/top_p_test.rs@@ -4,10 +4,7 @@ use std::{ops::{Deref, DerefMut},};-use half::{bf16, f16};-use num_traits::Float;-use rand::{RngExt, SeedableRng, rngs::StdRng, seq::SliceRandom};-use uzu::{+use backend_uzu::{ArrayContextExt, ArrayElement, DataType,backends::{common::{@@ -18,6 +15,9 @@ use uzu::{},session::parameter::{SamplingMethod, SamplingProcessingOrder},};+use half::{bf16, f16};+use num_traits::Float;+use rand::{RngExt, SeedableRng, rngs::StdRng, seq::SliceRandom};use crate::uzu_test;diff --git a/crates/uzu/tests/unit/kernel/short_conv/mod.rs b/crates/backend-uzu/tests/unit/kernel/short_conv/mod.rssimilarity index 100%rename from crates/uzu/tests/unit/kernel/short_conv/mod.rsrename to crates/backend-uzu/tests/unit/kernel/short_conv/mod.rsdiff --git a/crates/uzu/tests/unit/kernel/short_conv/short_conv_decode_test.rs b/crates/backend-uzu/tests/unit/kernel/short_conv/short_conv_decode_test.rssimilarity index 99%rename from crates/uzu/tests/unit/kernel/short_conv/short_conv_decode_test.rsrename to crates/backend-uzu/tests/unit/kernel/short_conv/short_conv_decode_test.rsindex 7bab1a1a1..343ca94f5 100644--- a/crates/uzu/tests/unit/kernel/short_conv/short_conv_decode_test.rs+++ b/crates/backend-uzu/tests/unit/kernel/short_conv/short_conv_decode_test.rs@@ -3,15 +3,15 @@ use std::{ops::{Deref, DerefMut},};-use half::{bf16, f16};-use num_traits::Float;-use uzu::{+use backend_uzu::{ArrayContextExt, ArrayElement, DataType,backends::{common::{Backend, Context, Encoder, Kernels, kernel::ShortConvDecodeKernel},cpu::Cpu,},};+use half::{bf16, f16};+use num_traits::Float;use crate::{common::assert::assert_eq_float, uzu_test};diff --git a/crates/uzu/tests/unit/kernel/short_conv/short_conv_pack_test.rs b/crates/backend-uzu/tests/unit/kernel/short_conv/short_conv_pack_test.rssimilarity index 99%rename from crates/uzu/tests/unit/kernel/short_conv/short_conv_pack_test.rsrename to crates/backend-uzu/tests/unit/kernel/short_conv/short_conv_pack_test.rsindex c4c9ae247..0bfb0e1ed 100644--- a/crates/uzu/tests/unit/kernel/short_conv/short_conv_pack_test.rs+++ b/crates/backend-uzu/tests/unit/kernel/short_conv/short_conv_pack_test.rs@@ -3,15 +3,15 @@ use std::{ops::{Deref, DerefMut},};-use half::{bf16, f16};-use num_traits::Float;-use uzu::{+use backend_uzu::{ArrayContextExt, ArrayElement, DataType,backends::{common::{Backend, Context, Encoder, Kernels, kernel::ShortConvPackKernel},cpu::Cpu,},};+use half::{bf16, f16};+use num_traits::Float;use crate::{common::assert::assert_eq_float, uzu_test};diff --git a/crates/uzu/tests/unit/kernel/short_conv/short_conv_prefill_test.rs b/crates/backend-uzu/tests/unit/kernel/short_conv/short_conv_prefill_test.rssimilarity index 99%rename from crates/uzu/tests/unit/kernel/short_conv/short_conv_prefill_test.rsrename to crates/backend-uzu/tests/unit/kernel/short_conv/short_conv_prefill_test.rsindex cd8c6f89e..45fd94d33 100644--- a/crates/uzu/tests/unit/kernel/short_conv/short_conv_prefill_test.rs+++ b/crates/backend-uzu/tests/unit/kernel/short_conv/short_conv_prefill_test.rs@@ -3,15 +3,15 @@ use std::{ops::{Deref, DerefMut},};-use half::{bf16, f16};-use num_traits::Float;-use uzu::{+use backend_uzu::{ArrayContextExt, ArrayElement, DataType,backends::{common::{Backend, Context, Encoder, Kernels, kernel::ShortConvPrefillKernel},cpu::Cpu,},};+use half::{bf16, f16};+use num_traits::Float;use crate::{common::assert::assert_eq_float, uzu_test};diff --git a/crates/uzu/tests/unit/kernel/short_conv/short_conv_trie_test.rs b/crates/backend-uzu/tests/unit/kernel/short_conv/short_conv_trie_test.rssimilarity index 99%rename from crates/uzu/tests/unit/kernel/short_conv/short_conv_trie_test.rsrename to crates/backend-uzu/tests/unit/kernel/short_conv/short_conv_trie_test.rsindex 1bcb2f5c4..db7245033 100644--- a/crates/uzu/tests/unit/kernel/short_conv/short_conv_trie_test.rs+++ b/crates/backend-uzu/tests/unit/kernel/short_conv/short_conv_trie_test.rs@@ -3,15 +3,15 @@ use std::{ops::{Deref, DerefMut},};-use half::{bf16, f16};-use num_traits::Float;-use uzu::{+use backend_uzu::{ArrayContextExt, ArrayElement, DataType,backends::{common::{Backend, Context, Encoder, Kernels, kernel::ShortConvTrieKernel},cpu::Cpu,},};+use half::{bf16, f16};+use num_traits::Float;use crate::{common::assert::assert_eq_float, uzu_test};diff --git a/crates/uzu/tests/unit/kernel/ssm/mod.rs b/crates/backend-uzu/tests/unit/kernel/ssm/mod.rssimilarity index 100%rename from crates/uzu/tests/unit/kernel/ssm/mod.rsrename to crates/backend-uzu/tests/unit/kernel/ssm/mod.rsdiff --git a/crates/uzu/tests/unit/kernel/ssm/ssm_conv1d_decode_test.rs b/crates/backend-uzu/tests/unit/kernel/ssm/ssm_conv1d_decode_test.rssimilarity index 99%rename from crates/uzu/tests/unit/kernel/ssm/ssm_conv1d_decode_test.rsrename to crates/backend-uzu/tests/unit/kernel/ssm/ssm_conv1d_decode_test.rsindex 2ecbd452d..cafef34b6 100644--- a/crates/uzu/tests/unit/kernel/ssm/ssm_conv1d_decode_test.rs+++ b/crates/backend-uzu/tests/unit/kernel/ssm/ssm_conv1d_decode_test.rs@@ -3,15 +3,15 @@ use std::{ops::{Deref, DerefMut},};-use half::{bf16, f16};-use num_traits::Float;-use uzu::{+use backend_uzu::{ArrayContextExt, ArrayElement, DataType,backends::{common::{Backend, Context, Encoder, Kernels, gpu_types::ActivationType, kernel::Conv1dDecodeKernel},cpu::Cpu,},};+use half::{bf16, f16};+use num_traits::Float;use crate::{common::assert::assert_eq_float, uzu_test};diff --git a/crates/uzu/tests/unit/kernel/ssm/ssm_conv1d_pack_test.rs b/crates/backend-uzu/tests/unit/kernel/ssm/ssm_conv1d_pack_test.rssimilarity index 99%rename from crates/uzu/tests/unit/kernel/ssm/ssm_conv1d_pack_test.rsrename to crates/backend-uzu/tests/unit/kernel/ssm/ssm_conv1d_pack_test.rsindex d22412644..502f49e77 100644--- a/crates/uzu/tests/unit/kernel/ssm/ssm_conv1d_pack_test.rs+++ b/crates/backend-uzu/tests/unit/kernel/ssm/ssm_conv1d_pack_test.rs@@ -3,15 +3,15 @@ use std::{ops::{Deref, DerefMut},};-use half::{bf16, f16};-use num_traits::Float;-use uzu::{+use backend_uzu::{ArrayContextExt, ArrayElement, DataType,backends::{common::{Backend, Context, Encoder, Kernels, kernel::Conv1dPackKernel},cpu::Cpu,},};+use half::{bf16, f16};+use num_traits::Float;use crate::{common::assert::assert_eq_float, uzu_test};diff --git a/crates/uzu/tests/unit/kernel/ssm/ssm_conv1d_scan_test.rs b/crates/backend-uzu/tests/unit/kernel/ssm/ssm_conv1d_scan_test.rssimilarity index 99%rename from crates/uzu/tests/unit/kernel/ssm/ssm_conv1d_scan_test.rsrename to crates/backend-uzu/tests/unit/kernel/ssm/ssm_conv1d_scan_test.rsindex cab75550e..c99bb71f2 100644--- a/crates/uzu/tests/unit/kernel/ssm/ssm_conv1d_scan_test.rs+++ b/crates/backend-uzu/tests/unit/kernel/ssm/ssm_conv1d_scan_test.rs@@ -3,15 +3,15 @@ use std::{ops::{Deref, DerefMut},};-use half::{bf16, f16};-use num_traits::Float;-use uzu::{+use backend_uzu::{ArrayContextExt, ArrayElement, DataType,backends::{common::{Backend, Context, Encoder, Kernels, gpu_types::ActivationType, kernel::Conv1dScanKernel},cpu::Cpu,},};+use half::{bf16, f16};+use num_traits::Float;use crate::{common::assert::assert_eq_float, uzu_test};diff --git a/crates/uzu/tests/unit/kernel/ssm/ssm_prefill_test.rs b/crates/backend-uzu/tests/unit/kernel/ssm/ssm_prefill_test.rssimilarity index 99%rename from crates/uzu/tests/unit/kernel/ssm/ssm_prefill_test.rsrename to crates/backend-uzu/tests/unit/kernel/ssm/ssm_prefill_test.rsindex 7c22abd1f..da806262c 100644--- a/crates/uzu/tests/unit/kernel/ssm/ssm_prefill_test.rs+++ b/crates/backend-uzu/tests/unit/kernel/ssm/ssm_prefill_test.rs@@ -3,9 +3,7 @@ use std::{ops::{Deref, DerefMut},};-use half::{bf16, f16};-use num_traits::Float;-use uzu::{+use backend_uzu::{ArrayContextExt, ArrayElement, DataType,backends::{common::{@@ -15,6 +13,8 @@ use uzu::{cpu::Cpu,},};+use half::{bf16, f16};+use num_traits::Float;use crate::{common::assert::assert_eq_float, uzu_test};diff --git a/crates/uzu/tests/unit/kernel/ssm/ssm_split_inproj_test.rs b/crates/backend-uzu/tests/unit/kernel/ssm/ssm_split_inproj_test.rssimilarity index 99%rename from crates/uzu/tests/unit/kernel/ssm/ssm_split_inproj_test.rsrename to crates/backend-uzu/tests/unit/kernel/ssm/ssm_split_inproj_test.rsindex 27a69dc06..b443d33c0 100644--- a/crates/uzu/tests/unit/kernel/ssm/ssm_split_inproj_test.rs+++ b/crates/backend-uzu/tests/unit/kernel/ssm/ssm_split_inproj_test.rs@@ -3,15 +3,15 @@ use std::{ops::{Deref, DerefMut},};-use half::{bf16, f16};-use num_traits::Float;-use uzu::{+use backend_uzu::{ArrayContextExt, ArrayElement, DataType,backends::{common::{Backend, Context, Encoder, Kernels, kernel::SplitInProjKernel},cpu::Cpu,},};+use half::{bf16, f16};+use num_traits::Float;use crate::{common::assert::assert_eq_float, uzu_test};diff --git a/crates/uzu/tests/unit/kernel/ssm/ssm_update_test.rs b/crates/backend-uzu/tests/unit/kernel/ssm/ssm_update_test.rssimilarity index 99%rename from crates/uzu/tests/unit/kernel/ssm/ssm_update_test.rsrename to crates/backend-uzu/tests/unit/kernel/ssm/ssm_update_test.rsindex 8b6e3c1d9..077a32982 100644--- a/crates/uzu/tests/unit/kernel/ssm/ssm_update_test.rs+++ b/crates/backend-uzu/tests/unit/kernel/ssm/ssm_update_test.rs@@ -3,15 +3,15 @@ use std::{ops::{Deref, DerefMut},};-use half::{bf16, f16};-use num_traits::Float;-use uzu::{+use backend_uzu::{ArrayContextExt, ArrayElement, DataType,backends::{common::{Backend, Context, Encoder, Kernels, kernel::SSDUpdateKernel},cpu::Cpu,},};+use half::{bf16, f16};+use num_traits::Float;use crate::{common::assert::assert_eq_float, uzu_test};diff --git a/crates/uzu/tests/unit/kernel/tensor_add_bias_test.rs b/crates/backend-uzu/tests/unit/kernel/tensor_add_bias_test.rssimilarity index 99%rename from crates/uzu/tests/unit/kernel/tensor_add_bias_test.rsrename to crates/backend-uzu/tests/unit/kernel/tensor_add_bias_test.rsindex fb8e3b6b8..6081d5817 100644--- a/crates/uzu/tests/unit/kernel/tensor_add_bias_test.rs+++ b/crates/backend-uzu/tests/unit/kernel/tensor_add_bias_test.rs@@ -3,12 +3,12 @@ use std::{ops::{Deref, DerefMut},};-use half::{bf16, f16};-use num_traits::Float;-use uzu::{+use backend_uzu::{ArrayContextExt, ArrayElement,backends::common::{Backend, Context, Encoder, Kernels, kernel::TensorAddBiasKernel},};+use half::{bf16, f16};+use num_traits::Float;use crate::uzu_test;diff --git a/crates/uzu/tests/unit/kernel/tensor_add_scale_test.rs b/crates/backend-uzu/tests/unit/kernel/tensor_add_scale_test.rssimilarity index 99%rename from crates/uzu/tests/unit/kernel/tensor_add_scale_test.rsrename to crates/backend-uzu/tests/unit/kernel/tensor_add_scale_test.rsindex b047f0c60..50d516aea 100644--- a/crates/uzu/tests/unit/kernel/tensor_add_scale_test.rs+++ b/crates/backend-uzu/tests/unit/kernel/tensor_add_scale_test.rs@@ -3,15 +3,15 @@ use std::{ops::{Deref, DerefMut},};-use half::{bf16, f16};-use num_traits::Float;-use uzu::{+use backend_uzu::{ArrayContextExt, ArrayElement, DataType,backends::{common::{Backend, Context, Encoder, Kernels, kernel::TensorAddScaleKernel},cpu::Cpu,},};+use half::{bf16, f16};+use num_traits::Float;use crate::{common::assert::assert_eq_float, uzu_test};diff --git a/crates/uzu/tests/unit/kernel/tensor_add_swap_test.rs b/crates/backend-uzu/tests/unit/kernel/tensor_add_swap_test.rssimilarity index 99%rename from crates/uzu/tests/unit/kernel/tensor_add_swap_test.rsrename to crates/backend-uzu/tests/unit/kernel/tensor_add_swap_test.rsindex 8b5aaf620..6c99b5722 100644--- a/crates/uzu/tests/unit/kernel/tensor_add_swap_test.rs+++ b/crates/backend-uzu/tests/unit/kernel/tensor_add_swap_test.rs@@ -1,11 +1,11 @@use std::{fmt::Debug, ops::DerefMut};-use half::{bf16, f16};-use num_traits::Float;-use uzu::{+use backend_uzu::{ArrayContextExt, ArrayElement,backends::common::{Backend, Context, Encoder, Kernels, kernel::TensorAddSwapKernel},};+use half::{bf16, f16};+use num_traits::Float;use crate::uzu_test;diff --git a/crates/uzu/tests/unit/kernel/tensor_copy_test.rs b/crates/backend-uzu/tests/unit/kernel/tensor_copy_test.rssimilarity index 99%rename from crates/uzu/tests/unit/kernel/tensor_copy_test.rsrename to crates/backend-uzu/tests/unit/kernel/tensor_copy_test.rsindex 7c95092cc..4adc00398 100644--- a/crates/uzu/tests/unit/kernel/tensor_copy_test.rs+++ b/crates/backend-uzu/tests/unit/kernel/tensor_copy_test.rs@@ -3,12 +3,12 @@ use std::{ops::{Deref, DerefMut},};-use half::{bf16, f16};-use num_traits::Float;-use uzu::{+use backend_uzu::{ArrayContextExt, ArrayElement,backends::common::{Backend, Context, Encoder, Kernels, kernel::TensorCopyKernel},};+use half::{bf16, f16};+use num_traits::Float;use crate::uzu_test;diff --git a/crates/uzu/tests/unit/kernel/test_entry.rs b/crates/backend-uzu/tests/unit/kernel/test_entry.rssimilarity index 100%rename from crates/uzu/tests/unit/kernel/test_entry.rsrename to crates/backend-uzu/tests/unit/kernel/test_entry.rsdiff --git a/crates/uzu/tests/unit/kernel/token_copy_test.rs b/crates/backend-uzu/tests/unit/kernel/token_copy_test.rssimilarity index 99%rename from crates/uzu/tests/unit/kernel/token_copy_test.rsrename to crates/backend-uzu/tests/unit/kernel/token_copy_test.rsindex f1e9d8c19..565d45d53 100644--- a/crates/uzu/tests/unit/kernel/token_copy_test.rs+++ b/crates/backend-uzu/tests/unit/kernel/token_copy_test.rs@@ -1,6 +1,6 @@use std::ops::{Deref, DerefMut};-use uzu::{+use backend_uzu::{ArrayContextExt, ArrayElement,backends::common::{Backend, Context, Encoder, Kernels,diff --git a/crates/uzu/tests/unit/trie_test.rs b/crates/backend-uzu/tests/unit/trie_test.rssimilarity index 100%rename from crates/uzu/tests/unit/trie_test.rsrename to crates/backend-uzu/tests/unit/trie_test.rsdiff --git a/crates/uzu/tests/unit/utils/model_size_test.rs b/crates/backend-uzu/tests/unit/utils/model_size_test.rssimilarity index 96%rename from crates/uzu/tests/unit/utils/model_size_test.rsrename to crates/backend-uzu/tests/unit/utils/model_size_test.rsindex 077833655..2f66dd25a 100644--- a/crates/uzu/tests/unit/utils/model_size_test.rs+++ b/crates/backend-uzu/tests/unit/utils/model_size_test.rs@@ -8,6 +8,7 @@ pub fn get_test_model_path() -> PathBuf {let path = PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("..").join("..")+ .join("workspace").join("models").join(VERSION).join(MODEL_DIR_NAME);diff --git a/crates/bindings/Cargo.toml b/crates/bindings/Cargo.tomlnew file mode 100644index 000000000..ea68a8d42--- /dev/null+++ b/crates/bindings/Cargo.toml@@ -0,0 +1,16 @@+[package]+name = "bindings"+version.workspace = true+edition.workspace = true+rust-version.workspace = true+license.workspace = true+authors.workspace = true+repository.workspace = true++[lib]+proc-macro = true++[dependencies]+proc-macro2.workspace = true+quote.workspace = true+syn.workspace = truediff --git a/crates/bindings/src/lib.rs b/crates/bindings/src/lib.rsnew file mode 100644index 000000000..1c877c90b--- /dev/null+++ b/crates/bindings/src/lib.rs@@ -0,0 +1,154 @@+use proc_macro::TokenStream;+use quote::quote;+use syn::{+ Ident, LitStr, Token,+ parse::{Parse, ParseStream},+ parse_macro_input,+};++enum BindingKind {+ Enum,+ Struct,+ Class,+ Impl,+ Error,+}++struct ExportArguments {+ kind: BindingKind,+ name: Option<LitStr>,+}++impl Parse for ExportArguments {+ fn parse(input: ParseStream) -> syn::Result<Self> {+ let identifier: Ident = input.parse()?;+ let kind = match identifier.to_string().as_str() {+ "Enum" => BindingKind::Enum,+ "Struct" => BindingKind::Struct,+ "Class" => BindingKind::Class,+ "Impl" => BindingKind::Impl,+ "Error" => BindingKind::Error,+ other => {+ return Err(syn::Error::new(identifier.span(), format!("Unknown binding kind: {other}")));+ },+ };++ let name = if input.peek(Token![,]) {+ input.parse::<Token![,]>()?;+ let key: Ident = input.parse()?;+ if key != "name" {+ return Err(syn::Error::new(key.span(), format!("Unknown parameter: {key}, expected 'name'")));+ }+ if matches!(kind, BindingKind::Impl) {+ return Err(syn::Error::new(key.span(), "'name' parameter is not supported for Impl"));+ }+ input.parse::<Token![=]>()?;+ Some(input.parse::<LitStr>()?)+ } else {+ None+ };++ Ok(ExportArguments {+ kind,+ name,+ })+ }+}++fn uniffi_name_attribute(name: &Option<LitStr>) -> proc_macro2::TokenStream {+ match name {+ Some(name) => quote! {+ #[cfg_attr(feature = "bindings-uniffi", uniffi(name = #name))]+ },+ None => quote! {},+ }+}++#[proc_macro_attribute]+pub fn export(+ arguments: TokenStream,+ item: TokenStream,+) -> TokenStream {+ let ExportArguments {+ kind,+ name,+ } = parse_macro_input!(arguments as ExportArguments);+ let item = parse_macro_input!(item as syn::Item);+ let uniffi_name = uniffi_name_attribute(&name);++ let attributes = match kind {+ BindingKind::Enum => quote! {+ #[cfg_attr(feature = "bindings-uniffi", derive(uniffi::Enum))]+ #[cfg_attr(feature = "bindings-napi", napi_derive::napi)]+ #[cfg_attr(feature = "bindings-pyo3", pyo3::pyclass(eq, from_py_object))]+ #[cfg_attr(feature = "bindings-wasm", derive(tsify::Tsify))]+ #[cfg_attr(feature = "bindings-wasm", tsify(into_wasm_abi, from_wasm_abi))]+ #uniffi_name+ },+ BindingKind::Struct => quote! {+ #[cfg_attr(feature = "bindings-uniffi", derive(uniffi::Record))]+ #[cfg_attr(feature = "bindings-napi", napi_derive::napi(object))]+ #[cfg_attr(feature = "bindings-pyo3", pyo3::pyclass(get_all, from_py_object))]+ #[cfg_attr(feature = "bindings-wasm", derive(tsify::Tsify))]+ #[cfg_attr(feature = "bindings-wasm", tsify(into_wasm_abi, from_wasm_abi))]+ #uniffi_name+ },+ BindingKind::Class => quote! {+ #[cfg_attr(feature = "bindings-uniffi", derive(uniffi::Object))]+ #[cfg_attr(feature = "bindings-napi", napi_derive::napi)]+ #[cfg_attr(feature = "bindings-pyo3", pyo3::pyclass)]+ #[cfg_attr(feature = "bindings-wasm", wasm_bindgen::prelude::wasm_bindgen)]+ #uniffi_name+ },+ BindingKind::Impl => quote! {+ #[cfg_attr(feature = "bindings-uniffi", uniffi::export)]+ #[cfg_attr(feature = "bindings-napi", napi_derive::napi)]+ #[cfg_attr(feature = "bindings-pyo3", pyo3::pymethods)]+ #[cfg_attr(feature = "bindings-wasm", wasm_bindgen::prelude::wasm_bindgen)]+ },+ BindingKind::Error => {+ let type_name = match &item {+ syn::Item::Enum(item_enum) => &item_enum.ident,+ _ => {+ return syn::Error::new_spanned(&item, "Error can only be applied to enums")+ .to_compile_error()+ .into();+ },+ };++ return quote! {+ #[cfg_attr(feature = "bindings-uniffi", derive(uniffi::Error))]+ #uniffi_name+ #item++ #[cfg(feature = "bindings-napi")]+ impl From<#type_name> for napi::Error {+ fn from(error: #type_name) -> Self {+ napi::Error::from_reason(error.to_string())+ }+ }++ #[cfg(feature = "bindings-pyo3")]+ impl From<#type_name> for pyo3::PyErr {+ fn from(error: #type_name) -> Self {+ pyo3::exceptions::PyRuntimeError::new_err(error.to_string())+ }+ }++ #[cfg(feature = "bindings-wasm")]+ impl From<#type_name> for wasm_bindgen::JsValue {+ fn from(error: #type_name) -> Self {+ wasm_bindgen::JsValue::from_str(&error.to_string())+ }+ }+ }+ .into();+ },+ };++ quote! {+ #attributes+ #item+ }+ .into()+}diff --git a/crates/download-manager/Cargo.toml b/crates/download-manager/Cargo.tomlnew file mode 100644index 000000000..3e646939f--- /dev/null+++ b/crates/download-manager/Cargo.toml@@ -0,0 +1,40 @@+[package]+name = "download-manager"+version.workspace = true+edition.workspace = true+rust-version.workspace = true+license.workspace = true+authors.workspace = true+repository.workspace = true++[dependencies]+tokio.workspace = true+tokio-stream.workspace = true+futures-util.workspace = true+tokio-util.workspace = true+serde.workspace = true+serde_json.workspace = true+anyhow.workspace = true+async-trait.workspace = true+thiserror.workspace = true+uuid.workspace = true+async-shutdown.workspace = true+crc32c.workspace = true+base64.workspace = true+tracing.workspace = true+chrono.workspace = true+async-fetcher.workspace = true+reqwest.workspace = true++[target.'cfg(target_vendor = "apple")'.dependencies]+objc2.workspace = true+objc2-foundation.workspace = true+block2.workspace = true+objc-sys.workspace = true++[dev-dependencies]+tempfile.workspace = true+libc.workspace = true+indicatif.workspace = true+tracing-subscriber.workspace = true+tracing-appender.workspace = truediff --git a/crates/download-manager/docs/STATE_REDUCTION_DECISION_MATRIX.md b/crates/download-manager/docs/STATE_REDUCTION_DECISION_MATRIX.mdnew file mode 100644index 000000000..ec256fab7--- /dev/null+++ b/crates/download-manager/docs/STATE_REDUCTION_DECISION_MATRIX.md@@ -0,0 +1,383 @@+# State Reduction & Reconciliation Decision Matrix++This document provides a comprehensive decision matrix for the state reduction and reconciliation system used in file download management and model storage.++## Overview++The system uses a three-stage pipeline for determining state:++1. **Validation** (`reduce_to_checked_file_state`) - Validates file integrity using CRC+2. **Display State** (`reduce_to_file_download_state`) - Determines user-facing state+3. **Reconciliation** (`reconcile_to_internal_state`) - Performs cleanup and determines internal operational state++## File Download Task State Machine++### Stage 1: Validation (reduce_to_checked_file_state)++Determines if a file on disk is valid, invalid, or missing based on CRC validation.++**Inputs:**++- `file_state`: Exists | Missing+- `crc_file_state`: Exists | Missing+- `expected_crc`: Some(crc) | None++**Output:** `CheckedFileState`++| File State | CRC File | Expected CRC | Action | Result |+| ---------- | -------- | ------------ | -------------------------------------- | ------------------------------------------- |+| Missing | - | - | - | **Missing** |+| Exists | Exists | Some(crc) | Read cached CRC, compare with expected | **Valid** if match, recalculate if mismatch |+| Exists | Missing | Some(crc) | Calculate CRC, save cache | **Valid** if match, **Invalid** otherwise |+| Exists | - | None | No validation needed | **Valid** |++**CRC Caching Optimization:**++- Valid files get a `.crc` cache file to avoid recalculation on next launch+- Makes subsequent launches ~100x faster for large files+- Cache is invalidated when file changes++---++### Stage 2: Display State (reduce_to_file_download_state)++Maps validation results to user-facing download states.++**Inputs:**++- `checked_state`: Valid | Invalid | Missing+- `resume_state`: Exists | Missing+- `task_state`: None | Running | Suspended | Completed | Canceling+- `expected_bytes`: Option<u64>++**Output:** `FileDownloadState` (for UI display)++#### Valid File Cases++| Checked | Resume | Task | Output |+| ------- | ------ | ---- | -------------------------------- |+| Valid | - | - | **Downloaded** (file_size bytes) |++*Any valid file is immediately shown as downloaded, regardless of other state.*++---++#### Invalid File Cases++| Checked | Resume | Task | Output | Bytes |+| ------- | ------- | ------------------- | ----------------- | -------------------------- |+| Invalid | Missing | None | **NotDownloaded** | 0 / expected |+| Invalid | Exists | None | **Paused** | resume_bytes / expected |+| Invalid | - | Running | **Downloading** | task_bytes / task_expected |+| Invalid | - | Suspended | **Paused** | task_bytes / task_expected |+| Invalid | - | Completed/Canceling | **NotDownloaded** | 0 / expected |++*Invalid files with active tasks show progress from task state.*++---++#### Missing File Cases++| Checked | Resume | Task | Output | Bytes |+| ------- | ------- | --------- | ----------------- | -------------------------- |+| Missing | Missing | None | **NotDownloaded** | 0 / expected |+| Missing | Exists | None | **Paused** | resume_bytes / expected |+| Missing | - | Running | **Downloading** | task_bytes / task_expected |+| Missing | - | Suspended | **Paused** | task_bytes / task_expected |+| Missing | - | Completed | **NotDownloaded** | 0 / expected |+| Missing | - | Canceling | **NotDownloaded** | 0 / expected |++*Missing files rely on resume data or active tasks for progress info.*++---++### Stage 3: Reconciliation (reconcile_to_internal_state)++Performs cleanup and determines operational state. This is where side effects happen (file deletion, task cancellation).++**Inputs:**++- `checked_file`: Valid | Invalid | Missing+- `resume_file`: Exists | Missing+- `url_session_task`: None | Some(task)+- `expected_bytes`: Option<u64> (for partial download detection)++**Output:** `InternalDownloadState` (for operations)++#### Valid File Reconciliation (Cases 1-10)++| Checked | Resume | Task | Actions | Internal State |+| ------- | ------- | ---- | ------------------------------------------- | -------------- |+| Valid | Missing | None | Keep file & CRC | **Downloaded** |+| Valid | Exists | None | Delete resume, keep file & CRC | **Downloaded** |+| Valid | - | Any | Cancel task, delete resume, keep file & CRC | **Downloaded** |++*Valid files always result in Downloaded state with cleanup of unnecessary artifacts.*++---++#### Invalid File Reconciliation (Cases 11-20)++| Checked | Resume | Task | File Action | Resume Action | Task Action | Internal State |+| ------- | ------- | ------------------- | ------------------------------------- | --------------------- | -------------- | --------------------------------------------- |+| Invalid | Missing | None | Check size: partial=keep, full=delete | - | - | **NotDownloaded** |+| Invalid | Exists | None | Delete | Keep | - | **Paused** |+| Invalid | - | Running | Delete | Delete | Keep | **Downloading** |+| Invalid | Missing | Suspended | Delete | Produce from task | Cancel+produce | **Paused** if success, else **NotDownloaded** |+| Invalid | Exists | Suspended | Delete | Compare & keep better | Cancel+produce | **Paused** |+| Invalid | - | Completed/Canceling | Delete | Delete | Cancel | **NotDownloaded** |++**Special Case - Partial Download Detection (Case 11):**++- If `file_size < expected_bytes`: File is partial, **preserve it** (don't delete)+- If `file_size >= expected_bytes`: File is corrupted, **delete it**+- This prevents deleting incomplete downloads that can be resumed++---++#### Missing File Reconciliation (Cases 21-30)++| Checked | Resume | Task | Resume Action | Task Action | Internal State |+| ------- | ------- | ------------- | --------------------- | -------------- | ----------------------------------- |+| Missing | Missing | None | - | - | **NotDownloaded** |+| Missing | Exists | None | Keep | - | **Paused** |+| Missing | - | Running | Delete | Keep | **Downloading** |+| Missing | Missing | Suspended | Produce from task | Cancel+produce | **Paused** if success |+| Missing | Exists | Suspended | Compare & keep better | Cancel+produce | **Paused** |+| Missing | - | **Completed** | Delete | **Keep alive** | **Downloading** (awaiting delegate) |+| Missing | - | Canceling | Delete | Cancel | **NotDownloaded** |++**Critical Case - Background Download Completion (Cases 27-28):**++- When task is `Completed` but file is missing: delegate callback is pending+- **Do NOT cancel task** - keep it alive in Downloading state+- This allows URLSession delegate to move the file to final destination+- Common scenario when download completes while app is closed++---++## Model State Reduction++Models aggregate the states of multiple file download tasks into a single model-level state.++**Inputs:** Array of `FileDownloadState` from all files in the model++**Output:** `ModelDownloadState`++### Model State Priority Order++The reducer checks conditions in this priority order:++| Priority | Condition | Model State | Bytes |+| -------- | ---------------------------------------------- | ----------------------------- | ---------------------------- |+| 1 | All files Downloaded | **Downloaded** | sum(file_bytes) |+| 2 | Any file Downloading | **Downloading** | sum(downloaded) / sum(total) |+| 3 | Any file Paused | **Paused** | sum(downloaded) / sum(total) |+| 4 | Any file Error | **Error** | First error message |+| 5 | Some files Downloaded AND downloaded_bytes > 0 | **Paused** (partial progress) | sum(downloaded) / sum(total) |+| 6 | Default (all NotDownloaded) | **NotDownloaded** | 0 / sum(total) |++**Key Insight - Priority 5 (Partial Progress Detection):**++- If ANY files are downloaded but NOT ALL files are downloaded+- AND total downloaded bytes > 0+- AND nothing is actively downloading or paused+- THEN treat as **Paused** (resumable partial progress)+- This correctly represents scenarios like: config.json ✓ + tokenizer.json ✓ + model.safetensors ✗++---++## Special Case Handling++### Background Download Completion++**Scenario:** App closed while downloading, URLSession completes in background, app relaunched.++**Detection in `initialize_task_cache()`:**++```rust+if task.state() == Completed && checked_file_state == Valid {+ // Delegate callback was missed, manually trigger completion+ file_task.handle_download_completion().await;+}+```++**Actions:**++1. Detect: Completed task + Valid file (CRC may be missing)+2. Trigger: `handle_download_completion()`+3. Result: CRC validated, cached, state transitions to Downloaded++---++### Partial Download Preservation++**Scenario:** Incomplete file exists without resume data (e.g., interrupted download, app crash).++**Detection in Reconciliation Case 11:**++```rust+if file_size < expected_bytes {+ // Partial download - preserve file+ remove_crc_cache();+ return NotDownloaded;+} else {+ // Corrupted full-size file - delete+ delete_file_and_crc();+ return NotDownloaded;+}+```++**Purpose:** Prevent deleting large partial downloads that might be resumable in future.++---++### Resume Data Comparison++**Scenario:** Both file-based resume data and URLSession task resume data exist.++**Resolution in Cases 16, 26:**++1. Read existing resume data bytes: `existing_bytes`+2. Produce resume data from suspended task: `new_bytes`+3. Compare: `if new_bytes > existing_bytes`+4. Keep the resume data with more progress+5. Ensures we never lose download progress++---++## State Transition Rules++### Internal State Transitions++```+NotDownloaded → Downloading (via download())+Downloading → Paused (via pause())+Downloading → Downloaded (on completion)+Paused → Downloading (via download())+Downloaded → NotDownloaded (via cancel())+Any → NotDownloaded (via cancel())+```++### Invalid Transitions++- `Downloaded → Downloading`: Cannot re-download existing file+- `Downloaded → Paused`: Cannot pause completed download++---++## File Lifecycle Examples++### Example 1: Fresh Download++```+Initial: file=Missing, crc=Missing, resume=Missing, task=None+↓+Checked: Missing+Display: NotDownloaded (0 / 1.1GB)+Internal: NotDownloaded+↓ User clicks Download+Create: task=Running+Display: Downloading (0 / 1.1GB)+Internal: Downloading+↓ Download progresses+Display: Downloading (500MB / 1.1GB)+↓ Download completes+Delegate: Moves file, validates CRC, caches CRC+Checked: Valid+Display: Downloaded (1.1GB)+Internal: Downloaded+```++---++### Example 2: Resume After Interruption++```+Initial: file=Missing, crc=Missing, resume=Exists(500MB), task=None+↓+Checked: Missing+Display: Paused (500MB / 1.1GB)+Internal: Paused+↓ User clicks Resume+Create: task=Running (with resume data)+Display: Downloading (500MB / 1.1GB)+Internal: Downloading+↓ Download progresses from 500MB+Display: Downloading (800MB / 1.1GB)+```++---++### Example 3: Background Completion++```+App Closed: task=Running, downloading...+↓+URLSession: Completes download, moves file (no delegate callback)+↓+Relaunch: file=Exists, crc=Missing, task=Completed+↓+Checked: Valid (calculates CRC)+Detected: Completed task + Valid file+Trigger: handle_download_completion()+Result: Validates CRC, caches CRC+Display: Downloaded (1.1GB)+Internal: Downloaded+Cleanup: Cancel completed task+```++---++### Example 4: Partial File Preservation++```+Initial: file=Exists(100MB), crc=Missing, resume=Missing, task=None+ expected=1.1GB+↓+Checked: Invalid (file incomplete, fails CRC)+Reconcile: Detect: 100MB < 1.1GB (partial)+Action: PRESERVE file, remove CRC cache+Internal: NotDownloaded+Display: NotDownloaded (0 / 1.1GB)+↓ Future download can resume from partial file if URLSession supports it+```++---++### Example 5: Multi-File Model Partial Download++```+Model Files: config.json, tokenizer.json, model.safetensors++File States:+- config.json: Downloaded (9KB / 9KB)+- tokenizer.json: Downloaded (11MB / 11MB)+- model.safetensors: NotDownloaded (0 / 1.1GB)++Model Reducer:+- all_downloaded: false+- any_downloading: false+- any_paused: false+- any_downloaded: true+- downloaded_bytes: 11MB+↓+Priority 5 Match: Some downloaded + progress > 0+Result: Paused (11MB / 1.1GB)+```++---++## Summary++The state reduction system provides:++1. **Deterministic State**: Same inputs always produce same outputs+2. **CRC Optimization**: Cache validation results for fast subsequent launches+3. **Partial Progress**: Preserve and resume incomplete downloads+4. **Background Safety**: Handle downloads that complete while app closed+5. **Data Integrity**: Validate files before marking as complete+6. **Progress Preservation**: Never lose download progress through resume data comparison+7. **Clean Semantics**: Clear user-facing states (NotDownloaded, Downloading, Paused, Downloaded, Error)++The system handles edge cases gracefully while maintaining clear separation between validation (pure), display (pure), and reconciliation (side effects).diff --git a/crates/download-manager/examples/cross_platform_download.rs b/crates/download-manager/examples/cross_platform_download.rsnew file mode 100644index 000000000..0f15bf768--- /dev/null+++ b/crates/download-manager/examples/cross_platform_download.rs@@ -0,0 +1,44 @@+use std::path::PathBuf;++/// Cross-platform download example+/// This example shows how to use FileDownloadManager trait+/// which works on both Apple and non-Apple platforms+use download_manager::{FileCheck, FileDownloadManagerType, create_download_manager};+use tokio::runtime::Handle;++#[tokio::main]+async fn main() -> Result<(), Box<dyn std::error::Error>> {+ let tokio_handle = Handle::current();++ let manager = create_download_manager(FileDownloadManagerType::default(), None, tokio_handle).await?;++ let url = "https://huggingface.co/Qwen/Qwen3.5-0.8B/resolve/main/tokenizer.json".to_string();++ let destination = PathBuf::from("/tmp/test_tokenizer.json");+ if destination.exists() {+ std::fs::remove_file(&destination)?;+ }++ println!("Creating download task...");+ let task = manager.file_download_task(&url, &destination, FileCheck::None, None).await?;++ println!("Starting download...");+ let mut progress_stream = task.progress().await?;+ task.download().await?;++ use tokio_stream::StreamExt;+ while let Some(Ok(state)) = progress_stream.next().await {+ println!("Progress: {} / {} bytes ({:?})", state.downloaded_bytes, state.total_bytes, state.phase);++ if matches!(+ state.phase,+ download_manager::FileDownloadPhase::Downloaded | download_manager::FileDownloadPhase::Error(_)+ ) {+ break;+ }+ }++ task.wait().await;+ println!("Download finished!");+ Ok(())+}diff --git a/crates/download-manager/src/checked_file_state.rs b/crates/download-manager/src/checked_file_state.rsnew file mode 100644index 000000000..9aae646c2--- /dev/null+++ b/crates/download-manager/src/checked_file_state.rs@@ -0,0 +1,6 @@+#[derive(Debug, Clone, Copy, PartialEq, Eq)]+pub enum CheckedFileState {+ Valid,+ Invalid,+ Missing,+}diff --git a/crates/download-manager/src/crc_utils.rs b/crates/download-manager/src/crc_utils.rsnew file mode 100644index 000000000..40b8cad9c--- /dev/null+++ b/crates/download-manager/src/crc_utils.rs@@ -0,0 +1,49 @@+use std::{+ fs::File,+ io::{Error as IoError, Read},+ path::Path,+};++use base64::Engine;++const CHUNK_SIZE: usize = 8 * 1024 * 1024;++pub fn calculate_and_verify_crc(+ file_path: &Path,+ expected_crc32c_base64: &str,+) -> Result<bool, IoError> {+ let expected_bytes = match base64::engine::general_purpose::STANDARD.decode(expected_crc32c_base64) {+ Ok(bytes) => bytes,+ Err(_) => return Ok(false),+ };++ if expected_bytes.len() != 4 {+ return Ok(false);+ }++ let expected_crc = u32::from_be_bytes([expected_bytes[0], expected_bytes[1], expected_bytes[2], expected_bytes[3]]);++ let mut file = File::open(file_path)?;+ let mut buffer = vec![0u8; CHUNK_SIZE];+ let mut crc: u32 = 0;++ loop {+ let bytes_read = file.read(&mut buffer)?;+ if bytes_read == 0 {+ break;+ }+ crc = crc32c::crc32c_append(crc, &buffer[..bytes_read]);+ }++ Ok(crc == expected_crc)+}++#[allow(dead_code)]+pub fn save_crc_file(+ file_path: &Path,+ crc_value: &str,+) -> Result<(), IoError> {+ let crc_path_str = format!("{}.crc", file_path.display());+ std::fs::write(&crc_path_str, crc_value)?;+ Ok(())+}diff --git a/crates/download-manager/src/download_error.rs b/crates/download-manager/src/download_error.rsnew file mode 100644index 000000000..ec686438d--- /dev/null+++ b/crates/download-manager/src/download_error.rs@@ -0,0 +1,43 @@+#[derive(thiserror::Error, Debug)]+pub enum DownloadError {+ #[error("io error: {0}")]+ Io(#[from] std::io::Error),+ #[error("json error: {0}")]+ SerdeJson(#[from] serde_json::Error),+ #[error("http client error: {0}")]+ Reqwest(#[from] reqwest::Error),+ #[error("http error: status {0}")]+ HttpStatus(u16),+ #[error("canceled")]+ Canceled,+ #[error("resume unsupported")]+ ResumeUnsupported,+ #[error("io error: {0}")]+ IOError(String),+ #[error("unsupported file download manager type")]+ UnsupportedType,++ // Concrete cases instead of stringly-typed variants+ #[error("bad url")]+ BadUrl,+ #[error("missing download info for task")]+ MissingDownloadInfo,+ #[error("resume data read failed")]+ ResumeDataReadFailed,+ #[error("resume data parsing or handling error")]+ ResumeDataError,+ #[error("download task not found")]+ DownloadTaskNotFound,+ #[error("task not found after creation")]+ TaskNotFoundAfterCreation,+ #[error("no matching download task to pause")]+ NoMatchingTaskToPause,+ #[error("unknown download handle")]+ UnknownDownloadHandle,+ #[error("mutex poisoned")]+ MutexPoisoned,+ #[error("invalid state transition")]+ InvalidStateTransition,+ #[error("file locked by another manager: {0}")]+ LockedByOther(String),+}diff --git a/crates/download-manager/src/download_info.rs b/crates/download-manager/src/download_info.rsnew file mode 100644index 000000000..737c0b3c5--- /dev/null+++ b/crates/download-manager/src/download_info.rs@@ -0,0 +1,50 @@+use serde::{Deserialize, Serialize};++/// DownloadInfo is a small, serializable struct that describes a download.+/// It is designed to be encoded/decoded to JSON and stored in NSURLSessionTask.taskDescription.+#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]+pub struct DownloadInfo {+ /// The original source URL for the download.+ pub source_url: String,+ /// The absolute or relative destination path where the file should be persisted.+ pub destination_path: String,+ /// Optional CRC32C checksum in base64 format for file validation.+ #[serde(default)]+ pub crc32c: Option<String>,+}++impl DownloadInfo {+ /// Construct a new DownloadInfo.+ pub fn new<U: Into<String>, P: Into<String>>(+ source_url: U,+ destination_path: P,+ ) -> Self {+ Self {+ source_url: source_url.into(),+ destination_path: destination_path.into(),+ crc32c: None,+ }+ }++ pub fn with_crc<U: Into<String>, P: Into<String>, C: Into<String>>(+ source_url: U,+ destination_path: P,+ crc32c: C,+ ) -> Self {+ Self {+ source_url: source_url.into(),+ destination_path: destination_path.into(),+ crc32c: Some(crc32c.into()),+ }+ }++ /// Serialize this DownloadInfo to a compact JSON string.+ pub fn to_json(&self) -> Result<String, serde_json::Error> {+ serde_json::to_string(self)+ }++ /// Deserialize a DownloadInfo from a JSON string.+ pub fn from_json(json: &str) -> Result<Self, serde_json::Error> {+ serde_json::from_str(json)+ }+}diff --git a/crates/download-manager/src/download_state.rs b/crates/download-manager/src/download_state.rsnew file mode 100644index 000000000..67ced174d--- /dev/null+++ b/crates/download-manager/src/download_state.rs@@ -0,0 +1,9 @@+#[derive(Debug, Clone, Copy, PartialEq, Eq)]+pub enum DownloadState {+ Downloading,+ Paused,+ NotDownloaded,+ Interrupted,+ Completed,+ Error,+}diff --git a/crates/download-manager/src/file_check.rs b/crates/download-manager/src/file_check.rsnew file mode 100644index 000000000..1fd5ac5b4--- /dev/null+++ b/crates/download-manager/src/file_check.rs@@ -0,0 +1,5 @@+#[derive(Debug, Clone)]+pub enum FileCheck {+ CRC(String),+ None,+}diff --git a/crates/download-manager/src/file_download_event.rs b/crates/download-manager/src/file_download_event.rsnew file mode 100644index 000000000..c171fdadc--- /dev/null+++ b/crates/download-manager/src/file_download_event.rs@@ -0,0 +1,17 @@+use crate::PathBuf;++#[derive(Debug, Clone)]+pub enum FileDownloadEvent {+ DownloadCompleted {+ tmp_path: PathBuf,+ final_destination: PathBuf,+ },+ ProgressUpdate {+ bytes_written: u64,+ total_bytes_written: u64,+ total_bytes_expected: u64,+ },+ Error {+ message: String,+ },+}diff --git a/crates/download-manager/src/file_download_manager.rs b/crates/download-manager/src/file_download_manager.rsnew file mode 100644index 000000000..ed73b129d--- /dev/null+++ b/crates/download-manager/src/file_download_manager.rs@@ -0,0 +1,75 @@+use std::{path::Path, sync::Arc};++use tokio::sync::broadcast::Sender as TokioBroadcastSender;+use tokio_stream::wrappers::BroadcastStream as TokioBroadcastStream;++use crate::{DownloadError, DownloadId, FileCheck, FileDownloadEvent, FileDownloadTask};++#[async_trait::async_trait]+pub trait FileDownloadManager: Send + Sync + 'static {+ fn manager_id(&self) -> &str;++ fn subscribe_to_all_downloads(&self) -> TokioBroadcastStream<(DownloadId, FileDownloadEvent)>;++ fn global_broadcast_sender(&self) -> Arc<TokioBroadcastSender<(DownloadId, FileDownloadEvent)>>;++ async fn get_all_file_tasks(&self) -> Result<Vec<Arc<dyn FileDownloadTask>>, DownloadError>;++ async fn file_download_task(+ &self,+ source_url: &String,+ destination_path: &Path,+ file_check: FileCheck,+ expected_bytes: Option<u64>,+ ) -> Result<Arc<dyn FileDownloadTask>, DownloadError>;+}++#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]+pub enum FileDownloadManagerType {+ Universal,+ Apple,+}++impl Default for FileDownloadManagerType {+ fn default() -> Self {+ if cfg!(target_vendor = "apple") {+ FileDownloadManagerType::Apple+ } else {+ FileDownloadManagerType::Universal+ }+ }+}++#[allow(unreachable_code)]+pub async fn create_download_manager(+ r#type: FileDownloadManagerType,+ identifier: Option<String>,+ tokio_handle: tokio::runtime::Handle,+) -> Result<Box<dyn FileDownloadManager>, DownloadError> {+ match r#type {+ FileDownloadManagerType::Universal => {+ use crate::managers::universal::{AsyncFetcherConfig, AsyncFetcherDownloadManager};+ let config = AsyncFetcherConfig::default()+ .with_connections_per_file(4)+ .with_retries(3)+ .with_progress_interval_ms(500);+ let manager = AsyncFetcherDownloadManager::new_with_manager_id(config, tokio_handle, identifier).await?;+ return Ok(Box::new(manager) as Box<dyn FileDownloadManager>);+ },+ FileDownloadManagerType::Apple => {+ #[cfg(target_vendor = "apple")]+ {+ use crate::managers::apple::{SessionConfig, URLSessionDownloadManager, URLSessionDropPolicy};+ let manager = URLSessionDownloadManager::new_with_manager_id(+ SessionConfig::default(),+ URLSessionDropPolicy::FinishTasksAndInvalidate,+ tokio_handle,+ identifier,+ )+ .await?;+ return Ok(Box::new(manager) as Box<dyn FileDownloadManager>);+ }+ return Err(DownloadError::UnsupportedType);+ },+ };+}diff --git a/crates/download-manager/src/file_download_phase.rs b/crates/download-manager/src/file_download_phase.rsnew file mode 100644index 000000000..6436ed3ec--- /dev/null+++ b/crates/download-manager/src/file_download_phase.rs@@ -0,0 +1,9 @@+#[derive(Debug, Clone, PartialEq, Eq)]+pub enum FileDownloadPhase {+ NotDownloaded,+ Downloading,+ Paused,+ Downloaded,+ LockedByOther(String),+ Error(String),+}diff --git a/crates/download-manager/src/file_download_state.rs b/crates/download-manager/src/file_download_state.rsnew file mode 100644index 000000000..4a9f9f2d5--- /dev/null+++ b/crates/download-manager/src/file_download_state.rs@@ -0,0 +1,59 @@+use crate::FileDownloadPhase;++#[derive(Debug, Clone, PartialEq, Eq)]+pub struct FileDownloadState {+ /// Total size of the file in bytes.+ pub total_bytes: u64,+ /// Bytes already downloaded (meaningful in Downloading / Paused).+ pub downloaded_bytes: u64,+ /// Current phase of the download.+ pub phase: FileDownloadPhase,+}++impl FileDownloadState {+ pub fn not_downloaded(total_bytes: u64) -> Self {+ Self {+ total_bytes,+ downloaded_bytes: 0,+ phase: FileDownloadPhase::NotDownloaded,+ }+ }++ pub fn downloading(+ downloaded_bytes: u64,+ total_bytes: u64,+ ) -> Self {+ Self {+ total_bytes,+ downloaded_bytes,+ phase: FileDownloadPhase::Downloading,+ }+ }++ pub fn paused(+ downloaded_bytes: u64,+ total_bytes: u64,+ ) -> Self {+ Self {+ total_bytes,+ downloaded_bytes,+ phase: FileDownloadPhase::Paused,+ }+ }++ pub fn downloaded(total_bytes: u64) -> Self {+ Self {+ total_bytes,+ downloaded_bytes: total_bytes,+ phase: FileDownloadPhase::Downloaded,+ }+ }++ pub fn error(err: String) -> Self {+ Self {+ total_bytes: 0,+ downloaded_bytes: 0,+ phase: FileDownloadPhase::Error(err),+ }+ }+}diff --git a/crates/download-manager/src/file_download_task.rs b/crates/download-manager/src/file_download_task.rsnew file mode 100644index 000000000..423bd2867--- /dev/null+++ b/crates/download-manager/src/file_download_task.rs@@ -0,0 +1,31 @@+use std::path::Path;++use crate::{+ DownloadError, DownloadId, FileCheck, FileDownloadEvent, FileDownloadState,+ prelude::{TokioBroadcastSender, TokioBroadcastStream},+};++#[async_trait::async_trait]+pub trait FileDownloadTask: Send + Sync + std::fmt::Debug {+ fn download_id(&self) -> DownloadId;+ fn source_url(&self) -> &str;+ fn destination(&self) -> &Path;+ fn file_check(&self) -> &FileCheck;++ async fn download(&self) -> Result<(), DownloadError>;+ async fn pause(&self) -> Result<(), DownloadError>;+ async fn cancel(&self) -> Result<(), DownloadError>;+ async fn state(&self) -> FileDownloadState;+ async fn progress(&self) -> Result<TokioBroadcastStream<FileDownloadState>, DownloadError>;++ async fn start_listening(+ &self,+ global_broadcast: TokioBroadcastSender<(DownloadId, FileDownloadEvent)>,+ );+ async fn stop_listening(&self);++ /// Wait for the task to fully complete (download finished, lock released, state updated).+ async fn wait(&self);++ fn broadcast_sender(&self) -> TokioBroadcastSender<FileDownloadState>;+}diff --git a/crates/download-manager/src/file_state.rs b/crates/download-manager/src/file_state.rsnew file mode 100644index 000000000..5f0cd99ff--- /dev/null+++ b/crates/download-manager/src/file_state.rs@@ -0,0 +1,9 @@+#[derive(Debug, Clone, Copy, PartialEq, Eq)]+pub enum FileState {+ Exists,+ Missing,+}++pub type DownloadedFileState = FileState;+pub type CRCFileState = FileState;+pub type ResumeDataFileState = FileState;diff --git a/crates/download-manager/src/internal_download_state.rs b/crates/download-manager/src/internal_download_state.rsnew file mode 100644index 000000000..98c2e9fed--- /dev/null+++ b/crates/download-manager/src/internal_download_state.rs@@ -0,0 +1,76 @@+use crate::{DownloadError, PathBuf};++#[derive(Debug, Clone, Copy, PartialEq, Eq)]+pub enum StateTransitionAction {+ Download,+ Pause,+ Cancel,+}++#[derive(Debug)]+pub enum InternalDownloadState<Task> {+ Downloaded {+ file_path: PathBuf,+ crc_path: Option<PathBuf>,+ },+ Downloading {+ task: Task,+ },+ Paused {+ part_path: PathBuf,+ },+ NotDownloaded,+}++impl<Task> InternalDownloadState<Task> {+ pub fn can_transition(+ &self,+ action: StateTransitionAction,+ ) -> Result<(), DownloadError> {+ match (self, action) {+ (InternalDownloadState::NotDownloaded, StateTransitionAction::Download) => Ok(()),+ (+ InternalDownloadState::Paused {+ ..+ },+ StateTransitionAction::Download,+ ) => Ok(()),+ (+ InternalDownloadState::Downloading {+ ..+ },+ StateTransitionAction::Download,+ ) => Ok(()),+ (+ InternalDownloadState::Downloaded {+ ..+ },+ StateTransitionAction::Download,+ ) => Ok(()),++ (+ InternalDownloadState::Downloading {+ ..+ },+ StateTransitionAction::Pause,+ ) => Ok(()),+ (+ InternalDownloadState::Paused {+ ..+ },+ StateTransitionAction::Pause,+ ) => Ok(()),+ (+ InternalDownloadState::Downloaded {+ ..+ },+ StateTransitionAction::Pause,+ ) => Ok(()),+ (InternalDownloadState::NotDownloaded, StateTransitionAction::Pause) => {+ Err(DownloadError::InvalidStateTransition)+ },++ (_, StateTransitionAction::Cancel) => Ok(()),+ }+ }+}diff --git a/crates/download-manager/src/lib.rs b/crates/download-manager/src/lib.rsnew file mode 100644index 000000000..244df88e6--- /dev/null+++ b/crates/download-manager/src/lib.rs@@ -0,0 +1,66 @@+mod checked_file_state;+mod crc_utils;+mod download_error;+mod download_info;+mod download_state;+mod file_check;+mod file_download_event;+mod file_download_manager;+mod file_download_phase;+mod file_download_state;+mod file_download_task;+mod file_state;+mod internal_download_state;+mod lock_file_info;+mod lock_file_state;+mod lock_manager;+pub mod managers;+mod prelude;+mod utils;++pub use checked_file_state::CheckedFileState;+pub use download_error::DownloadError;+pub use download_info::DownloadInfo;+pub use download_state::DownloadState;+pub use file_check::FileCheck;+pub use file_download_event::FileDownloadEvent;+pub use file_download_manager::{FileDownloadManager, FileDownloadManagerType, create_download_manager};+pub use file_download_phase::FileDownloadPhase;+pub use file_download_state::FileDownloadState;+pub use file_download_task::FileDownloadTask;+pub use file_state::{CRCFileState, DownloadedFileState, FileState, ResumeDataFileState};+pub use internal_download_state::{InternalDownloadState, StateTransitionAction};+pub use lock_file_info::LockFileInfo;+pub use lock_file_state::LockFileState;+pub use lock_manager::{acquire_lock, check_lock_file, release_lock, try_acquire_lock};+pub use utils::compute_download_id;++pub type TaskID = usize;+pub type DownloadId = uuid::Uuid;++use std::{+ path::{Path, PathBuf},+ sync::Arc,+};++// Re-export for internal use (used by lock modules)+#[allow(unused_imports)]+pub(crate) use chrono;+use crc_utils::calculate_and_verify_crc;+// Import NSBundle on all Apple platforms (needed for manager ID generation)+#[cfg(target_vendor = "apple")]+use objc2_foundation::NSBundle;+#[allow(unused_imports)]+pub(crate) use serde;+#[allow(unused_imports)]+pub(crate) use serde_json;+use tokio::{+ fs,+ runtime::Handle as TokioHandle,+ sync::{+ Mutex as TokioMutex,+ broadcast::{Sender as TokioBroadcastSender, channel as tokio_broadcast_channel},+ },+ task::JoinHandle as TokioJoinHandle,+};+use uuid::Uuid;diff --git a/crates/download-manager/src/lock_file_info.rs b/crates/download-manager/src/lock_file_info.rsnew file mode 100644index 000000000..b09e908df--- /dev/null+++ b/crates/download-manager/src/lock_file_info.rs@@ -0,0 +1,21 @@+use crate::chrono;++#[derive(Debug, Clone, serde::Serialize, serde::Deserialize, PartialEq, Eq)]+pub struct LockFileInfo {+ pub manager_id: String,+ pub acquired_at: chrono::DateTime<chrono::Utc>,+ pub process_id: u32,+}++impl LockFileInfo {+ pub fn new(+ manager_id: String,+ process_id: u32,+ ) -> Self {+ Self {+ manager_id,+ acquired_at: chrono::Utc::now(),+ process_id,+ }+ }+}diff --git a/crates/download-manager/src/lock_file_state.rs b/crates/download-manager/src/lock_file_state.rsnew file mode 100644index 000000000..969446dff--- /dev/null+++ b/crates/download-manager/src/lock_file_state.rs@@ -0,0 +1,37 @@+use crate::LockFileInfo;++#[derive(Debug, Clone, PartialEq)]+pub enum LockFileState {+ /// No lock file exists - safe to acquire+ Missing,++ /// Lock owned by this manager instance (same manager_id + same PID)+ OwnedByUs(LockFileInfo),++ /// Lock owned by same app but old process (same manager_id + different PID, process dead)+ OwnedBySameAppOldProcess(LockFileInfo),++ /// Lock owned by another active app (different manager_id, active)+ OwnedByOtherApp(LockFileInfo),++ /// Lock exists but is stale (different manager_id, timeout expired)+ Stale(LockFileInfo),+}++impl LockFileState {+ /// Check if we can safely acquire or use this lock+ pub fn can_proceed(&self) -> bool {+ matches!(+ self,+ LockFileState::Missing+ | LockFileState::OwnedByUs(_)+ | LockFileState::OwnedBySameAppOldProcess(_)+ | LockFileState::Stale(_)+ )+ }++ /// Check if this is a blocking conflict+ pub fn is_conflict(&self) -> bool {+ matches!(self, LockFileState::OwnedByOtherApp(_))+ }+}diff --git a/crates/download-manager/src/lock_manager.rs b/crates/download-manager/src/lock_manager.rsnew file mode 100644index 000000000..4404697e3--- /dev/null+++ b/crates/download-manager/src/lock_manager.rs@@ -0,0 +1,161 @@+use std::fs;++use crate::{LockFileInfo, LockFileState, Path, TokioHandle, chrono};++const LOCK_TIMEOUT_MINUTES: i64 = 30;++/// Check if lock file exists and determine its state+pub fn check_lock_file(+ lock_path: &Path,+ our_manager_id: &str,+ our_process_id: u32,+) -> LockFileState {+ if !lock_path.exists() {+ return LockFileState::Missing;+ }++ let lock_info = match read_lock_file(lock_path) {+ Ok(info) => info,+ Err(e) => {+ tracing::warn!("[LOCK] Failed to read lock file {}: {}. Treating as stale.", lock_path.display(), e);+ // Corrupted lock file - treat as stale with dummy info+ return LockFileState::Stale(LockFileInfo {+ manager_id: "unknown".to_string(),+ acquired_at: chrono::Utc::now(),+ process_id: 0,+ });+ },+ };++ // Check if we own this lock (same manager_id + same PID)+ if lock_info.manager_id == our_manager_id {+ if lock_info.process_id == our_process_id {+ return LockFileState::OwnedByUs(lock_info);+ } else {+ // Same app, different process - check if old process is dead+ if is_process_alive(lock_info.process_id) {+ // Old process still alive - this shouldn't happen in normal operation+ tracing::warn!(+ "[LOCK] Same manager_id but different PID and process is alive: {}",+ lock_info.process_id+ );+ return LockFileState::OwnedByOtherApp(lock_info);+ } else {+ return LockFileState::OwnedBySameAppOldProcess(lock_info);+ }+ }+ }++ // Different manager_id - check if stale+ if is_lock_stale(&lock_info) {+ return LockFileState::Stale(lock_info);+ }++ LockFileState::OwnedByOtherApp(lock_info)+}++/// Read and parse lock file+fn read_lock_file(lock_path: &Path) -> Result<LockFileInfo, Box<dyn std::error::Error>> {+ let contents = std::fs::read_to_string(lock_path)?;+ let info: LockFileInfo = serde_json::from_str(&contents)?;+ Ok(info)+}++/// Check if a lock is stale based on timeout+fn is_lock_stale(lock_info: &LockFileInfo) -> bool {+ let elapsed = chrono::Utc::now() - lock_info.acquired_at;+ elapsed > chrono::Duration::minutes(LOCK_TIMEOUT_MINUTES)+}++/// Check if a process is still alive (Unix-specific)+#[cfg(unix)]+fn is_process_alive(pid: u32) -> bool {+ use std::process::Command;+ Command::new("kill").args(["-0", &pid.to_string()]).status().map(|s| s.success()).unwrap_or(false)+}++/// Check if a process is still alive (Windows-specific)+#[cfg(windows)]+fn is_process_alive(pid: u32) -> bool {+ use std::process::Command;+ Command::new("tasklist")+ .args(["/FI", &format!("PID eq {}", pid)])+ .output()+ .map(|output| String::from_utf8_lossy(&output.stdout).contains(&pid.to_string()))+ .unwrap_or(false)+}++/// Acquire lock atomically+pub async fn acquire_lock(+ tokio_handle: &TokioHandle,+ lock_path: &Path,+ manager_id: &str,+) -> Result<(), std::io::Error> {+ let lock_info = LockFileInfo::new(manager_id.to_string(), std::process::id());++ let json =+ serde_json::to_string_pretty(&lock_info).map_err(|e| std::io::Error::new(std::io::ErrorKind::Other, e))?;++ let lock_path_buf = lock_path.to_path_buf();+ let lock_path_clone = lock_path_buf.clone();+ tokio_handle+ .spawn_blocking(move || {+ // Create parent directory if needed+ if let Some(parent) = lock_path_buf.parent() {+ fs::create_dir_all(parent)?;+ }++ // Atomic write using temp file + rename+ let temp_path = lock_path_buf.with_extension("lock.tmp");+ fs::write(&temp_path, json)?;+ fs::rename(temp_path, &lock_path_buf)?;+ Ok::<(), std::io::Error>(())+ })+ .await+ .map_err(|e| std::io::Error::new(std::io::ErrorKind::Other, e))??;++ tracing::info!("[LOCK] Acquired lock for {} (manager_id: {})", lock_path_clone.display(), manager_id);++ Ok(())+}++/// Release the lock by deleting the lock file+pub async fn release_lock(+ tokio_handle: &TokioHandle,+ lock_path: &Path,+) -> Result<(), std::io::Error> {+ let lock_path = lock_path.to_path_buf();+ tokio_handle+ .spawn_blocking(move || {+ if lock_path.exists() {+ fs::remove_file(&lock_path)?;+ tracing::info!("[LOCK] Released lock: {}", lock_path.display());+ }+ Ok::<(), std::io::Error>(())+ })+ .await+ .map_err(|e| std::io::Error::new(std::io::ErrorKind::Other, e))??;+ Ok(())+}++/// Try to acquire a lock (non-blocking check first)+pub async fn try_acquire_lock(+ tokio_handle: &TokioHandle,+ lock_path: &Path,+ manager_id: &str,+) -> Result<bool, std::io::Error> {+ let lock_path_buf = lock_path.to_path_buf();+ let manager_id_str = manager_id.to_string();+ let process_id = std::process::id();++ let lock_state = tokio_handle+ .spawn_blocking(move || check_lock_file(&lock_path_buf, &manager_id_str, process_id))+ .await+ .map_err(|e| std::io::Error::new(std::io::ErrorKind::Other, e))?;++ if lock_state.is_conflict() {+ return Ok(false);+ }+ acquire_lock(tokio_handle, lock_path, manager_id).await?;+ Ok(true)+}diff --git a/crates/download-manager/src/managers/apple/file_download_task.rs b/crates/download-manager/src/managers/apple/file_download_task.rsnew file mode 100644index 000000000..fb92a5c66--- /dev/null+++ b/crates/download-manager/src/managers/apple/file_download_task.rs@@ -0,0 +1,830 @@+use std::path::PathBuf;++use tokio::sync::{Mutex as TokioMutex, broadcast::Sender as TokioBroadcastSender};+use uuid::Uuid;++use crate::{+ DownloadError, DownloadId, DownloadInfo, FileCheck, FileDownloadEvent, FileDownloadPhase, FileDownloadState,+ FileDownloadTask as FileDownloadTaskTrait, InternalDownloadState, LockFileState, StateTransitionAction,+ check_lock_file,+ lock_manager::{acquire_lock, release_lock},+ managers::apple::{URLSessionDownloadTaskResumeData, URLSessionExt, UrlSessionDownloadTaskExt},+ prelude::*,+};++pub struct FileDownloadTask {+ pub download_id: Uuid,+ pub source_url: String,+ pub destination: PathBuf,+ pub file_check: FileCheck,+ pub manager_id: String,+ expected_bytes: Option<u64>,+ state: Arc<TokioMutex<FileDownloadState>>,+ broadcast_sender: TokioBroadcastSender<FileDownloadState>,+ pub internal_state: TokioMutex<InternalDownloadState<Retained<NSURLSessionDownloadTask>>>,+ session: Option<Retained<NSURLSession>>,+ listener_task: Arc<TokioMutex<Option<TokioJoinHandle<()>>>>,+ tokio_handle: TokioHandle,+ completed_tx: tokio::sync::watch::Sender<bool>,+ _completed_rx: tokio::sync::watch::Receiver<bool>,+}++impl std::fmt::Debug for FileDownloadTask {+ fn fmt(+ &self,+ f: &mut std::fmt::Formatter<'_>,+ ) -> std::fmt::Result {+ f.debug_struct("FileDownloadTask")+ .field("download_id", &self.download_id)+ .field("source_url", &self.source_url)+ .field("destination", &self.destination)+ .field("file_check", &self.file_check)+ .finish()+ }+}++impl FileDownloadTask {+ pub fn new(+ download_id: Uuid,+ source_url: String,+ destination: PathBuf,+ file_check: FileCheck,+ manager_id: String,+ expected_bytes: Option<u64>,+ internal_state: InternalDownloadState<Retained<NSURLSessionDownloadTask>>,+ initial_state: FileDownloadState,+ session: Option<Retained<NSURLSession>>,+ tokio_handle: TokioHandle,+ ) -> Self {+ let (broadcast_sender, _receiver) = tokio_broadcast_channel::<FileDownloadState>(64);+ let (completed_tx, completed_rx) = tokio::sync::watch::channel(false);+ Self {+ download_id,+ source_url,+ destination,+ file_check,+ manager_id,+ expected_bytes,+ state: Arc::new(TokioMutex::new(initial_state)),+ broadcast_sender,+ internal_state: TokioMutex::new(internal_state),+ session,+ listener_task: Arc::new(TokioMutex::new(None)),+ tokio_handle,+ completed_tx,+ _completed_rx: completed_rx,+ }+ }++ pub async fn wait(&self) {+ let mut rx = self.completed_tx.subscribe();+ if *rx.borrow() {+ return;+ }+ let _ = rx.changed().await;+ }++ fn lock_path(&self) -> PathBuf {+ PathBuf::from(format!("{}.lock", self.destination.display()))+ }++ fn resume_data_path(&self) -> PathBuf {+ PathBuf::from(format!("{}.resume_data", self.destination.display()))+ }++ /// Reconcile lock state based on current internal state+ async fn reconcile_lock_state(&self) {+ let lock_path = self.lock_path();+ let lock_state = check_lock_file(&lock_path, &self.manager_id, std::process::id());++ let is_downloading = {+ let guard = self.internal_state.lock().await;+ matches!(*guard, InternalDownloadState::Downloading { .. })+ };++ if is_downloading {+ // Ensure we own the lock when downloading+ match lock_state {+ LockFileState::OwnedByUs(_) => {+ // Already owned+ },+ LockFileState::Missing | LockFileState::OwnedBySameAppOldProcess(_) | LockFileState::Stale(_) => {+ if let Err(e) = acquire_lock(&self.tokio_handle, &lock_path, &self.manager_id).await {+ tracing::warn!(+ "[FILE_TASK] Failed to acquire lock during reconciliation {}: {}",+ lock_path.display(),+ e+ );+ } else {+ tracing::info!("[FILE_TASK] Acquired lock during reconciliation: {}", lock_path.display());+ }+ },+ LockFileState::OwnedByOtherApp(info) => {+ tracing::warn!("[FILE_TASK] Another manager owns the lock ({}).", info.manager_id);+ },+ }+ } else {+ // Not downloading → release our lock if we own it or it's safe to clean up+ match lock_state {+ LockFileState::OwnedByUs(_) | LockFileState::OwnedBySameAppOldProcess(_) | LockFileState::Stale(_) => {+ if let Err(e) = release_lock(&self.tokio_handle, &lock_path).await {+ tracing::warn!(+ "[FILE_TASK] Failed to release lock during reconciliation {}: {}",+ lock_path.display(),+ e+ );+ } else {+ tracing::info!("[FILE_TASK] Released lock during reconciliation: {}", lock_path.display());+ }+ },+ LockFileState::Missing | LockFileState::OwnedByOtherApp(_) => {},+ }+ }+ }++ pub fn broadcast_sender(&self) -> TokioBroadcastSender<FileDownloadState> {+ self.broadcast_sender.clone()+ }++ pub async fn update_state_and_broadcast(+ &self,+ new_state: FileDownloadState,+ ) {+ let mut state_guard = self.state.lock().await;+ let current_bytes = state_guard.downloaded_bytes;+ let new_bytes = new_state.downloaded_bytes;++ tracing::debug!(+ "[FILE_TASK] update_state_and_broadcast: id={}, current={:?}({} bytes), new={:?}({} bytes)",+ self.download_id,+ state_guard.phase,+ current_bytes,+ new_state.phase,+ new_bytes+ );++ // Guard against backwards progress (stale NSURLSession events)+ // Only accept updates that maintain or increase progress+ if new_bytes < current_bytes+ && !matches!(+ new_state.phase,+ FileDownloadPhase::Downloaded | FileDownloadPhase::Error(_) | FileDownloadPhase::NotDownloaded+ )+ {+ tracing::debug!("[FILE_TASK] ⚠️ Rejected backwards progress: {} < {}", new_bytes, current_bytes);+ return;+ }++ // Allow state transitions to proceed normally+ // The guard against backwards progress above is sufficient++ *state_guard = new_state.clone();+ drop(state_guard);++ let receiver_count = self.broadcast_sender.receiver_count();++ if receiver_count == 0 {+ tracing::debug!("[FILE_TASK] No receivers active, skipping broadcast (likely shutdown)");+ return;+ }++ tracing::debug!("[FILE_TASK] ✓ State updated and broadcasting to {} receiver(s)", receiver_count);++ let _ = self.broadcast_sender.send(new_state.clone());+ }++ pub async fn download(&self) -> Result<(), DownloadError> {+ let mut internal_state_guard = self.internal_state.lock().await;+ internal_state_guard.can_transition(StateTransitionAction::Download)?;++ tracing::debug!(+ "[FILE_TASK] download() called: id={}, internal_state={:?}",+ self.download_id,+ match &*internal_state_guard {+ InternalDownloadState::NotDownloaded => "NotDownloaded",+ InternalDownloadState::Downloading {+ ..+ } => "Downloading",+ InternalDownloadState::Paused {+ ..+ } => "Paused",+ InternalDownloadState::Downloaded {+ ..+ } => "Downloaded",+ }+ );++ match &*internal_state_guard {+ InternalDownloadState::NotDownloaded => {+ tracing::debug!("[FILE_TASK] Creating new download task for: {}", self.source_url);+ let session = self.session.as_ref().ok_or(DownloadError::TaskNotFoundAfterCreation)?;+ let download_task = session.download_task_with_url(&self.source_url)?;++ let download_info = match &self.file_check {+ FileCheck::CRC(expected_crc) => DownloadInfo::with_crc(+ self.source_url.clone(),+ self.destination.display().to_string(),+ expected_crc.clone(),+ ),+ FileCheck::None => {+ DownloadInfo::new(self.source_url.clone(), self.destination.display().to_string())+ },+ };+ download_task.set_download_info(&download_info);+ download_task.resume();++ *internal_state_guard = InternalDownloadState::Downloading {+ task: download_task.clone(),+ };+ drop(internal_state_guard);++ // Ensure invariant: when downloading, no leftover resume_data exists+ let resume_data_path = self.resume_data_path();+ if resume_data_path.exists() {+ let _ = fs::remove_file(&resume_data_path).await;+ tracing::debug!("[FILE_TASK] Removed stale resume_data on start: {}", resume_data_path.display());+ }++ let downloading_state = FileDownloadState::downloading(0, 0);+ self.update_state_and_broadcast(downloading_state).await;+ // Ensure lock acquired now that we're downloading+ self.reconcile_lock_state().await;+ Ok(())+ },+ InternalDownloadState::Downloading {+ task: existing_download_task,+ } => {+ tracing::debug!("[FILE_TASK] Already downloading, calling resume on existing task");+ existing_download_task.resume();+ Ok(())+ },+ InternalDownloadState::Paused {+ part_path: saved_resume_path,+ } => {+ tracing::debug!("[FILE_TASK] Resuming from paused state, resume_path={:?}", saved_resume_path);++ let resume_path = saved_resume_path.clone();+ let total_bytes_fallback = self.expected_bytes.unwrap_or(0);++ async fn reset_to_not_downloaded_and_retry(+ task: &FileDownloadTask,+ resume_path: &PathBuf,+ total_bytes: u64,+ reason: &str,+ ) -> Result<(), DownloadError> {+ tracing::warn!(+ "[FILE_TASK] Resume data invalid ({}). Falling back to fresh download: {}",+ reason,+ resume_path.display()+ );++ // Best-effort cleanup: remove the unusable resume file so next launch doesn't+ // keep presenting a Paused state that cannot actually be resumed.+ let _ = fs::remove_file(resume_path).await;++ // Reset user-facing state so progress can restart from 0 without being rejected+ // by the backwards-progress guard.+ task.update_state_and_broadcast(FileDownloadState::not_downloaded(total_bytes)).await;++ // Ensure any lock is released before starting a fresh task.+ task.reconcile_lock_state().await;++ Box::pin(task.download()).await+ }++ // Check if resume file actually exists+ if !resume_path.exists() {+ *internal_state_guard = InternalDownloadState::NotDownloaded;+ drop(internal_state_guard);+ return reset_to_not_downloaded_and_retry(+ self,+ &resume_path,+ total_bytes_fallback,+ "resume file missing",+ )+ .await;+ }++ // Log resume file size and destination state prior to resuming+ if let Ok(meta) = std::fs::metadata(&resume_path) {+ tracing::debug!("[FILE_TASK] Resume data present: {} bytes", meta.len());+ }+ if let Ok(meta) = std::fs::metadata(&self.destination) {+ tracing::debug!("[FILE_TASK] Destination prior to resume: exists with {} bytes", meta.len());+ } else {+ tracing::debug!("[FILE_TASK] Destination prior to resume: missing");+ }++ let session = self.session.as_ref().ok_or(DownloadError::TaskNotFoundAfterCreation)?;+ let resume_data = match URLSessionDownloadTaskResumeData::from_file(&resume_path) {+ Ok(data) => data,+ Err(_e) => {+ *internal_state_guard = InternalDownloadState::NotDownloaded;+ drop(internal_state_guard);+ return reset_to_not_downloaded_and_retry(+ self,+ &resume_path,+ total_bytes_fallback,+ "failed to parse resume file",+ )+ .await;+ },+ };++ // If the resume blob points at a CFNetwork temp file that no longer exists+ // (very common after reboot), URLSession resume will fail or restart from 0.+ // Detect that early and restart cleanly to avoid a "stuck" Paused state.+ if let Some(temp_path) = resume_data.temp_file_path() {+ if !temp_path.exists() {+ tracing::warn!("[FILE_TASK] Resume temp file missing: {}", temp_path.display());+ *internal_state_guard = InternalDownloadState::NotDownloaded;+ drop(internal_state_guard);+ return reset_to_not_downloaded_and_retry(+ self,+ &resume_path,+ total_bytes_fallback,+ "CFNetwork temp file missing",+ )+ .await;+ }+ }++ let download_task = match session.download_task_with_resume_data(&resume_data) {+ Ok(task) => task,+ Err(_e) => {+ *internal_state_guard = InternalDownloadState::NotDownloaded;+ drop(internal_state_guard);+ return reset_to_not_downloaded_and_retry(+ self,+ &resume_path,+ total_bytes_fallback,+ "failed to create URLSession task from resume data",+ )+ .await;+ },+ };++ let download_info = match &self.file_check {+ FileCheck::CRC(expected_crc) => DownloadInfo::with_crc(+ self.source_url.clone(),+ self.destination.display().to_string(),+ expected_crc.clone(),+ ),+ FileCheck::None => {+ DownloadInfo::new(self.source_url.clone(), self.destination.display().to_string())+ },+ };+ download_task.set_download_info(&download_info);+ download_task.resume();++ let downloaded_bytes = resume_data.bytes_received.unwrap_or(0);+ let total_bytes = resume_data.bytes_expected_to_receive.unwrap_or(0);++ tracing::debug!(+ "[FILE_TASK] Resuming with bytes_received={} of expected={}",+ downloaded_bytes,+ total_bytes+ );++ *internal_state_guard = InternalDownloadState::Downloading {+ task: download_task.clone(),+ };+ drop(internal_state_guard);++ // Ensure invariant: when downloading, resume_data file is removed+ let resume_data_path = self.resume_data_path();+ if resume_data_path.exists() {+ let _ = fs::remove_file(&resume_data_path).await;+ tracing::debug!("[FILE_TASK] Removed resume_data after resume: {}", resume_data_path.display());+ }++ let downloading_state = FileDownloadState::downloading(downloaded_bytes, total_bytes);+ self.update_state_and_broadcast(downloading_state).await;+ // Ensure lock acquired now that we're downloading+ self.reconcile_lock_state().await;+ Ok(())+ },+ InternalDownloadState::Downloaded {+ ..+ } => {+ tracing::debug!("[FILE_TASK] Already downloaded, broadcasting current state");+ let current_state = self.state.lock().await.clone();+ self.update_state_and_broadcast(current_state).await;+ let _ = self.completed_tx.send(true);+ Ok(())+ },+ }+ }++ pub async fn pause(&self) -> Result<(), DownloadError> {+ let mut internal_state_guard = self.internal_state.lock().await;+ internal_state_guard.can_transition(StateTransitionAction::Pause)?;++ tracing::debug!(+ "[FILE_TASK] pause() called: id={}, internal_state={:?}",+ self.download_id,+ match &*internal_state_guard {+ InternalDownloadState::NotDownloaded => "NotDownloaded",+ InternalDownloadState::Downloading {+ ..+ } => "Downloading",+ InternalDownloadState::Paused {+ ..+ } => "Paused",+ InternalDownloadState::Downloaded {+ ..+ } => "Downloaded",+ }+ );++ match &*internal_state_guard {+ InternalDownloadState::Downloading {+ task: download_task,+ } => {+ tracing::debug!("[FILE_TASK] Pausing download task, producing resume data...");++ let resume_data = download_task.cancel_by_producing_resume_data().await?;+ let resume_data_path = format!("{}.resume_data", self.destination.display());+ resume_data.save_to_file(&resume_data_path).map_err(|_| DownloadError::ResumeDataError)?;++ let downloaded_bytes = resume_data.bytes_received.unwrap_or(0);+ let total_bytes = resume_data.bytes_expected_to_receive.unwrap_or(0);++ tracing::debug!("[FILE_TASK] Resume data saved: {} bytes, transitioning to Paused", downloaded_bytes);++ *internal_state_guard = InternalDownloadState::Paused {+ part_path: resume_data_path.into(),+ };+ drop(internal_state_guard);++ let paused_state = FileDownloadState::paused(downloaded_bytes, total_bytes);+ self.update_state_and_broadcast(paused_state).await;+ // Ensure lock released once paused+ self.reconcile_lock_state().await;++ Ok(())+ },+ InternalDownloadState::Downloaded {+ ..+ } => Ok(()),+ _ => Ok(()),+ }+ }++ pub async fn cancel(&self) -> Result<(), DownloadError> {+ let mut internal_state_guard = self.internal_state.lock().await;+ internal_state_guard.can_transition(StateTransitionAction::Cancel)?;++ tracing::debug!(+ "[FILE_TASK] cancel() called: id={}, internal_state before={:?}",+ self.download_id,+ match &*internal_state_guard {+ InternalDownloadState::NotDownloaded => "NotDownloaded",+ InternalDownloadState::Downloading {+ ..+ } => "Downloading",+ InternalDownloadState::Paused {+ ..+ } => "Paused",+ InternalDownloadState::Downloaded {+ ..+ } => "Downloaded",+ }+ );++ let resume_path_to_delete: Option<PathBuf> = match &*internal_state_guard {+ InternalDownloadState::Downloading {+ task: download_task,+ } => {+ download_task.cancel();+ Some(PathBuf::from(format!("{}.resume_data", self.destination.display())))+ },+ InternalDownloadState::Paused {+ part_path: saved_resume_path,+ } => Some(saved_resume_path.clone()),+ _ => None,+ };+ *internal_state_guard = InternalDownloadState::NotDownloaded;+ drop(internal_state_guard);++ if let Some(resume_path) = resume_path_to_delete {+ let _ = fs::remove_file(&resume_path).await;+ }++ tracing::debug!("[FILE_TASK] cancel() completed: id={}, internal_state now=NotDownloaded", self.download_id);++ let not_downloaded_state = FileDownloadState::not_downloaded(0);+ self.update_state_and_broadcast(not_downloaded_state).await;+ // Ensure lock released once canceled+ self.reconcile_lock_state().await;+ Ok(())+ }++ pub async fn state(&self) -> FileDownloadState {+ let state = self.state.lock().await.clone();+ state+ }++ pub async fn progress(&self) -> Result<TokioBroadcastStream<FileDownloadState>, DownloadError> {+ Ok(TokioBroadcastStream::new(self.broadcast_sender.subscribe()))+ }++ /// Handle URLSession download completion event+ /// This encapsulates the reduction and reconciliation logic+ pub async fn handle_download_completion(&self) {+ use crate::managers::apple::url_session_state_reducer::{+ check_crc_file_exists, check_file_exists, check_resume_file_exists, reconcile_to_internal_state,+ reduce_to_checked_file_state, reduce_to_file_download_state,+ };++ tracing::debug!(+ "[FILE_TASK] handle_download_completion: id={}, dest={}",+ self.download_id,+ self.destination.display()+ );++ // Small delay to ensure filesystem operations complete+ // macOS file system might have slight latency+ self.tokio_handle+ .spawn(async {+ tokio::time::sleep(tokio::time::Duration::from_millis(10)).await;+ })+ .await+ .ok();++ let crc_file_path = PathBuf::from(format!("{}.crc", self.destination.display()));+ let resume_data_path = PathBuf::from(format!("{}.resume_data", self.destination.display()));++ // Check file states+ let downloaded_file_state = check_file_exists(&self.destination);+ let crc_file_state = check_crc_file_exists(&crc_file_path);+ let resume_data_state = check_resume_file_exists(&resume_data_path);++ tracing::debug!(+ "[FILE_TASK] File states: downloaded={:?}, crc={:?}, resume={:?}",+ downloaded_file_state,+ crc_file_state,+ resume_data_state+ );+ tracing::debug!("[FILE_TASK] Destination file exists (explicit check): {}", self.destination.exists());+ if let Ok(metadata) = std::fs::metadata(&self.destination) {+ tracing::debug!("[FILE_TASK] Destination file size: {} bytes", metadata.len());+ }++ let expected_crc = match &self.file_check {+ FileCheck::CRC(crc_hash) => Some(crc_hash.as_str()),+ FileCheck::None => None,+ };++ // Reduce to checked file state (validates CRC if needed)+ let checked_file_state =+ reduce_to_checked_file_state(downloaded_file_state, crc_file_state, &self.destination, expected_crc);++ tracing::debug!("[FILE_TASK] Checked file state: {:?}", checked_file_state);++ // Reconcile to internal state (cleanup, etc.)+ let internal_state = reconcile_to_internal_state(+ checked_file_state,+ resume_data_state,+ None,+ &self.destination,+ &crc_file_path,+ &resume_data_path,+ self.expected_bytes,+ )+ .await;++ // Reduce to file download state for display+ let file_download_state = reduce_to_file_download_state(+ checked_file_state,+ resume_data_state,+ None,+ None,+ &self.destination,+ self.expected_bytes,+ &self.manager_id,+ );++ tracing::debug!("[FILE_TASK] Final state after completion: {:?}", file_download_state.phase);++ // Update internal state+ let mut internal_state_guard = self.internal_state.lock().await;+ *internal_state_guard = internal_state;+ drop(internal_state_guard);++ // Broadcast the new state+ self.update_state_and_broadcast(file_download_state).await;++ // Reconcile lock after completion (should release)+ self.reconcile_lock_state().await;+ }++ /// Handle URLSession progress update event+ pub async fn handle_progress_update(+ &self,+ _bytes_written: u64,+ total_bytes_written: u64,+ total_bytes_expected: u64,+ ) {+ tracing::debug!(+ "[FILE_TASK] handle_progress_update: id={}, progress={}/{} bytes",+ self.download_id,+ total_bytes_written,+ total_bytes_expected+ );++ let resume_data_path = self.resume_data_path();+ if resume_data_path.exists() {+ if let Err(e) = fs::remove_file(&resume_data_path).await {+ tracing::warn!(+ "[FILE_TASK] Failed to remove stale resume_data on progress {}: {}",+ resume_data_path.display(),+ e+ );+ } else {+ tracing::debug!("[FILE_TASK] Removed stale resume_data on progress: {}", resume_data_path.display());+ }+ }++ let downloading_state = FileDownloadState::downloading(total_bytes_written, total_bytes_expected);+ self.update_state_and_broadcast(downloading_state).await;+ }++ /// Handle URLSession error event+ pub async fn handle_error(+ &self,+ error_message: String,+ ) {+ let error_state = FileDownloadState::error(error_message);+ self.update_state_and_broadcast(error_state).await;+ // On errors, ensure lock is released+ self.reconcile_lock_state().await;+ }++ /// Start listening to global download events+ pub async fn start_listening(+ &self,+ global_broadcast: TokioBroadcastSender<(crate::DownloadId, crate::FileDownloadEvent)>,+ ) {+ // Check if already listening+ let mut listener_guard = self.listener_task.lock().await;+ if listener_guard.is_some() {+ tracing::debug!("[FILE_TASK] start_listening: Already listening for id={}", self.download_id);+ return;+ }++ tracing::debug!("[FILE_TASK] start_listening: Starting listener for id={}", self.download_id);++ let download_id = self.download_id;+ let task = Arc::new(self.clone_arc_fields());+ let completed = self.completed_tx.clone();++ tracing::debug!("[FILE_TASK] Spawning listener task for download_id={}", download_id);++ let handle = self.tokio_handle.spawn(async move {+ tracing::debug!("[FILE_TASK] Listener task started for id={}", download_id);++ let mut stream = TokioBroadcastStream::new(global_broadcast.subscribe());++ while let Some(result) = stream.next().await {+ if let Ok((id, event)) = result {+ if id == download_id {+ tracing::debug!("[FILE_TASK] Received event for download_id={}: {:?}", download_id, event);++ match event {+ crate::FileDownloadEvent::DownloadCompleted {+ final_destination,+ ..+ } => {+ tracing::debug!(+ "[FILE_TASK] Processing DownloadCompleted: id={}, reported_dest={}",+ download_id,+ final_destination.display()+ );++ tracing::debug!("[FILE_TASK] Task's destination path: {}", task.destination.display());++ tracing::debug!("[FILE_TASK] Paths match: {}", final_destination == task.destination);++ // Add a small delay to ensure file system operations are complete+ // The delegate moves files synchronously, but filesystem flush might be async+ let _ = task+ .tokio_handle+ .spawn(async {+ tokio::time::sleep(tokio::time::Duration::from_millis(100)).await;+ })+ .await;++ task.handle_download_completion().await;+ let _ = completed.send(true);+ },+ crate::FileDownloadEvent::ProgressUpdate {+ bytes_written,+ total_bytes_written,+ total_bytes_expected,+ } => {+ task.handle_progress_update(bytes_written, total_bytes_written, total_bytes_expected)+ .await;+ },+ crate::FileDownloadEvent::Error {+ message,+ } => {+ task.handle_error(message).await;+ let _ = completed.send(true);+ },+ }+ }+ }+ }+ });++ *listener_guard = Some(handle);+ }++ /// Stop listening to global download events+ pub async fn stop_listening(&self) {+ let mut listener_guard = self.listener_task.lock().await;+ if let Some(handle) = listener_guard.take() {+ handle.abort();+ let _ = handle.await;+ }+ }++ /// Helper to clone Arc fields for listener task+ fn clone_arc_fields(&self) -> Self {+ Self {+ download_id: self.download_id,+ source_url: self.source_url.clone(),+ destination: self.destination.clone(),+ file_check: self.file_check.clone(),+ manager_id: self.manager_id.clone(),+ expected_bytes: self.expected_bytes,+ state: self.state.clone(),+ broadcast_sender: self.broadcast_sender.clone(),+ internal_state: TokioMutex::new(InternalDownloadState::NotDownloaded),+ session: self.session.clone(),+ listener_task: Arc::new(TokioMutex::new(None)),+ tokio_handle: self.tokio_handle.clone(),+ completed_tx: self.completed_tx.clone(),+ _completed_rx: self.completed_tx.subscribe(),+ }+ }+}++#[async_trait::async_trait]+impl FileDownloadTaskTrait for FileDownloadTask {+ fn download_id(&self) -> DownloadId {+ self.download_id+ }++ fn source_url(&self) -> &str {+ &self.source_url+ }++ fn destination(&self) -> &std::path::Path {+ &self.destination+ }++ fn file_check(&self) -> &FileCheck {+ &self.file_check+ }++ fn broadcast_sender(&self) -> TokioBroadcastSender<FileDownloadState> {+ self.broadcast_sender()+ }++ async fn download(&self) -> Result<(), DownloadError> {+ self.download().await+ }++ async fn pause(&self) -> Result<(), DownloadError> {+ self.pause().await+ }++ async fn cancel(&self) -> Result<(), DownloadError> {+ self.cancel().await+ }++ async fn state(&self) -> FileDownloadState {+ self.state().await+ }++ async fn progress(&self) -> Result<TokioBroadcastStream<FileDownloadState>, DownloadError> {+ self.progress().await+ }++ async fn start_listening(+ &self,+ global_broadcast: TokioBroadcastSender<(DownloadId, FileDownloadEvent)>,+ ) {+ self.start_listening(global_broadcast).await+ }++ async fn stop_listening(&self) {+ self.stop_listening().await+ }++ async fn wait(&self) {+ self.wait().await+ }+}diff --git a/crates/download-manager/src/managers/apple/mod.rs b/crates/download-manager/src/managers/apple/mod.rsnew file mode 100644index 000000000..59b46facb--- /dev/null+++ b/crates/download-manager/src/managers/apple/mod.rs@@ -0,0 +1,28 @@+mod file_download_task;+mod session_config;+mod url_session_delegate;+mod url_session_download_manager;+mod url_session_download_task_ext;+mod url_session_download_task_resume_data;+mod url_session_error;+mod url_session_ext;+mod url_session_get_tasks_handler;+mod url_session_resume_data_handler;+mod url_session_state_reducer;+mod url_session_task_ext;++pub use file_download_task::FileDownloadTask;+pub use session_config::SessionConfig;+pub use url_session_delegate::URLSessionDelegate;+pub use url_session_download_manager::{URLSessionDownloadManager, URLSessionDropPolicy};+pub use url_session_download_task_resume_data::URLSessionDownloadTaskResumeData;+pub use url_session_error::URLSessionError;+pub use url_session_get_tasks_handler::URLSessionGetTasksCompletionHandler;+pub use url_session_resume_data_handler::URLSessionResumeDataHandler;++use crate::prelude::*;++pub type URLSessionDownloadTaskState = Option<NSURLSessionTaskState>;++pub use url_session_download_task_ext::UrlSessionDownloadTaskExt;+pub use url_session_ext::URLSessionExt;diff --git a/crates/download-manager/src/managers/apple/session_config.rs b/crates/download-manager/src/managers/apple/session_config.rsnew file mode 100644index 000000000..0adb2f640--- /dev/null+++ b/crates/download-manager/src/managers/apple/session_config.rs@@ -0,0 +1,62 @@+use crate::prelude::*;++#[allow(unused)]+#[derive(Debug, Clone)]+pub enum BackgroundSessionID {+ Default,+ Custom(String),+}++#[allow(unused)]+#[derive(Debug, Clone)]+pub enum SessionConfig {+ Foreground,+ Background(BackgroundSessionID),+ /// Background in apps, Foreground in CLIs+ Automatic,+}++impl Default for SessionConfig {+ fn default() -> Self {+ Self::Automatic+ }+}++impl SessionConfig {+ pub fn ns_url_session_configuration(&self) -> Retained<NSURLSessionConfiguration> {+ let bundle_id = NSBundle::mainBundle().bundleIdentifier().unwrap_or_default().to_string();++ let create_ephemeral_config = || NSURLSessionConfiguration::ephemeralSessionConfiguration();++ let create_background_config = |background_session_id: &BackgroundSessionID| {+ let session_id = NSString::from_str(&match background_session_id {+ BackgroundSessionID::Default => {+ if bundle_id.is_empty() {+ "trymirai.download-manager".to_string()+ } else {+ format!("{}.trymirai.download-manager", bundle_id)+ }+ },+ BackgroundSessionID::Custom(id) => id.clone(),+ });++ let config = NSURLSessionConfiguration::backgroundSessionConfigurationWithIdentifier(&session_id);+ config.setSessionSendsLaunchEvents(true);+ config.setDiscretionary(false);+ config.setWaitsForConnectivity(true);+ config+ };++ match self {+ SessionConfig::Foreground => create_ephemeral_config(),+ SessionConfig::Background(background_session_id) => create_background_config(background_session_id),+ SessionConfig::Automatic => {+ if bundle_id.is_empty() {+ create_ephemeral_config()+ } else {+ create_background_config(&BackgroundSessionID::Default)+ }+ },+ }+ }+}diff --git a/crates/download-manager/src/managers/apple/url_session_delegate.rs b/crates/download-manager/src/managers/apple/url_session_delegate.rsnew file mode 100644index 000000000..e7bf92a00--- /dev/null+++ b/crates/download-manager/src/managers/apple/url_session_delegate.rs@@ -0,0 +1,199 @@+use std::path::PathBuf;++use crate::{+ DownloadId, FileDownloadEvent,+ managers::apple::{URLSessionError, UrlSessionDownloadTaskExt},+ prelude::*,+};++#[derive(Debug, Clone)]+pub struct URLSessionDelegateIvars {+ pub global_broadcast_sender: Arc<TokioBroadcastSender<(DownloadId, FileDownloadEvent)>>,+}++define_class!(+ #[unsafe(super(NSObject))]+ #[derive(Debug)]+ #[ivars = URLSessionDelegateIvars]+ pub struct URLSessionDelegate;++ unsafe impl NSObjectProtocol for URLSessionDelegate {}++ unsafe impl NSURLSessionDelegate for URLSessionDelegate {+ #[unsafe(method(URLSession:didBecomeInvalidWithError:))]+ fn did_become_invalid_with_error(+ &self,+ _session: &NSURLSession,+ _error: Option<&NSError>,+ ) {+ }++ #[unsafe(method(URLSessionDidFinishEventsForBackgroundURLSession:))]+ fn did_finish_events_for_background_url_session(+ &self,+ _session: &NSURLSession,+ ) {+ }+ }++ unsafe impl NSURLSessionTaskDelegate for URLSessionDelegate {+ #[unsafe(method(URLSession:task:didCompleteWithError:))]+ fn did_complete_with_error(+ &self,+ _session: &NSURLSession,+ task: &NSURLSessionTask,+ error: Option<&NSError>,+ ) {+ if let Some(download_task) = task.downcast_ref::<NSURLSessionDownloadTask>() {+ if let Some(err) = error {+ let parsed_error = URLSessionError::from_nserror(err);++ if parsed_error.should_ignore() {+ return;+ }++ if let Some(download_id) = download_task.download_id() {+ let error_message = parsed_error.user_message();+ let event = FileDownloadEvent::Error {+ message: error_message,+ };+ let _ = Self::ivars(self).global_broadcast_sender.send((download_id, event));+ }+ }+ }+ }+ }++ unsafe impl NSURLSessionDownloadDelegate for URLSessionDelegate {+ #[unsafe(method(URLSession:downloadTask:didFinishDownloadingToURL:))]+ fn did_finish_downloading_to_url(+ &self,+ _session: &NSURLSession,+ download_task: &NSURLSessionDownloadTask,+ location: &NSURL,+ ) {+ tracing::debug!("[DELEGATE] didFinishDownloadingToURL called");++ let tmp_path = PathBuf::from(location.path().unwrap().to_string());+ if let Some(download_info) = download_task.download_info() {+ let final_destination = PathBuf::from(&download_info.destination_path);+ if let Some(parent_dir) = final_destination.parent() {+ let _ = fs::create_dir_all(parent_dir);++ tracing::debug!("[DELEGATE] Moving file from temp to final destination...");++ let move_successful = match std::fs::rename(&tmp_path, &final_destination) {+ Ok(_) => true,+ Err(_) => match std::fs::copy(&tmp_path, &final_destination) {+ Ok(_) => {+ let _ = fs::remove_file(&tmp_path);+ true+ },+ Err(_) => false,+ },+ };++ if !move_successful {+ tracing::debug!("[DELEGATE] ✗ File move failed");++ if let Some(download_id) = download_task.download_id() {+ let event = FileDownloadEvent::Error {+ message: "move into destination failed".to_string(),+ };+ let _ = Self::ivars(self).global_broadcast_sender.send((download_id, event));+ }+ return;+ }++ tracing::debug!("[DELEGATE] ✓ File moved successfully");++ if let Some(download_id) = download_task.download_id() {+ let event = FileDownloadEvent::DownloadCompleted {+ tmp_path: tmp_path.clone(),+ final_destination: final_destination.clone(),+ };++ tracing::debug!("[DELEGATE] Broadcasting download completion event");++ let _ = Self::ivars(self).global_broadcast_sender.send((download_id, event));++ tracing::debug!("[DELEGATE] ✓ didFinishDownloadingToURL complete");+ }+ }+ }+ }++ #[unsafe(method(URLSession:downloadTask:didWriteData:totalBytesWritten:totalBytesExpectedToWrite:))]+ fn did_write_data(+ &self,+ _session: &NSURLSession,+ download_task: &NSURLSessionDownloadTask,+ bytes_written_since_last_callback: i64,+ cumulative_bytes_written: i64,+ total_expected_bytes_to_write: i64,+ ) {+ // Clean up resume_data file on first progress event+ // This confirms NSURLSession has processed the resume_data+ if let Some(info) = download_task.download_info() {+ let dest = PathBuf::from(&info.destination_path);+ let resume_path = format!("{}.resume_data", dest.display());+ if PathBuf::from(&resume_path).exists() {+ let _ = fs::remove_file(&resume_path);+ }+ }++ if let Some(download_id) = download_task.download_id() {+ let bytes_written = if bytes_written_since_last_callback > 0 {+ bytes_written_since_last_callback as u64+ } else {+ 0+ };+ let total_bytes_written = if cumulative_bytes_written > 0 {+ cumulative_bytes_written as u64+ } else {+ 0+ };+ let total_bytes_expected = if total_expected_bytes_to_write > 0 {+ total_expected_bytes_to_write as u64+ } else {+ 0+ };++ let event = FileDownloadEvent::ProgressUpdate {+ bytes_written,+ total_bytes_written,+ total_bytes_expected,+ };++ tracing::debug!(+ "[DELEGATE] Progress: download_id={}, written={}, total={}/{} bytes",+ download_id,+ bytes_written,+ total_bytes_written,+ total_bytes_expected+ );++ let send_result = Self::ivars(self).global_broadcast_sender.send((download_id, event));++ if let Err(e) = send_result {+ tracing::debug!("[DELEGATE] ⚠️ Failed to send progress event: {:?}", e);+ }+ }+ }+ }+);++impl URLSessionDelegate {+ pub fn new(global_broadcast_sender: Arc<TokioBroadcastSender<(DownloadId, FileDownloadEvent)>>) -> Retained<Self> {+ unsafe {+ let class = Self::class();+ let allocated: Allocated<Self> = msg_send![class, alloc];+ let allocated_with_ivars = allocated.set_ivars(URLSessionDelegateIvars {+ global_broadcast_sender,+ });+ let initialized: Retained<Self> = msg_send![super(allocated_with_ivars), init];++ initialized+ }+ }+}diff --git a/crates/download-manager/src/managers/apple/url_session_download_manager.rs b/crates/download-manager/src/managers/apple/url_session_download_manager.rsnew file mode 100644index 000000000..c846bc424--- /dev/null+++ b/crates/download-manager/src/managers/apple/url_session_download_manager.rs@@ -0,0 +1,340 @@+use std::{+ collections::HashMap,+ path::{Path, PathBuf},+};++use crate::{+ DownloadError, DownloadId, FileCheck, FileDownloadEvent, FileDownloadManager,+ FileDownloadTask as FileDownloadTaskTrait, compute_download_id,+ managers::apple::{+ FileDownloadTask, SessionConfig, URLSessionDelegate, URLSessionExt, UrlSessionDownloadTaskExt,+ url_session_state_reducer::{+ check_crc_file_exists, check_file_exists, check_resume_file_exists, reconcile_to_internal_state,+ reduce_to_checked_file_state, reduce_to_file_download_state,+ },+ },+ prelude::*,+};++type TaskCache = Arc<TokioMutex<HashMap<DownloadId, Arc<dyn FileDownloadTaskTrait>>>>;++#[allow(unused)]+#[derive(Debug, Clone)]+pub enum URLSessionDropPolicy {+ FinishTasksAndInvalidate,+ InvalidateAndCancel,+}++#[derive(Debug, Clone)]+#[allow(dead_code)]+pub struct URLSessionDownloadManager {+ manager_id: String,+ session: Retained<NSURLSession>,+ delegate: Retained<URLSessionDelegate>,+ delegate_protocol_object: Retained<ProtocolObject<dyn NSURLSessionDelegate>>,+ drop_policy: URLSessionDropPolicy,+ pub global_broadcast_sender: Arc<TokioBroadcastSender<(DownloadId, FileDownloadEvent)>>,+ tokio_handle: TokioHandle,+ task_cache: TaskCache,+}++unsafe impl Send for URLSessionDownloadManager {}+unsafe impl Sync for URLSessionDownloadManager {}++impl URLSessionDownloadManager {+ fn generate_manager_id() -> String {+ use crate::NSBundle;+ let bundle_id = NSBundle::mainBundle().bundleIdentifier().unwrap_or_default().to_string();++ if bundle_id.is_empty() {+ "mirai.apple".to_string()+ } else {+ format!("{}.mirai.apple", bundle_id)+ }+ }++ #[allow(unused)]+ pub fn manager_id(&self) -> &str {+ &self.manager_id+ }++ #[allow(unused)]+ pub async fn new(+ session_config: SessionConfig,+ drop_policy: URLSessionDropPolicy,+ tokio_handle: TokioHandle,+ ) -> Result<Self, DownloadError> {+ Self::new_with_manager_id(session_config, drop_policy, tokio_handle, None).await+ }++ pub async fn new_with_manager_id(+ session_config: SessionConfig,+ drop_policy: URLSessionDropPolicy,+ tokio_handle: TokioHandle,+ custom_manager_id: Option<String>,+ ) -> Result<Self, DownloadError> {+ let manager_id = custom_manager_id.unwrap_or_else(|| Self::generate_manager_id());++ let (global_broadcast_sender, _global_broadcast_receiver) =+ tokio_broadcast_channel::<(DownloadId, FileDownloadEvent)>(256);+ let global_broadcast_sender = Arc::new(global_broadcast_sender);++ let task_cache: TaskCache = Arc::new(TokioMutex::new(HashMap::new()));++ let backend = autoreleasepool(|_| unsafe {+ let delegate = URLSessionDelegate::new(global_broadcast_sender.clone());++ let delegate_protocol_object = ProtocolObject::<dyn NSURLSessionDelegate>::from_retained(delegate.clone());++ let session = NSURLSession::sessionWithConfiguration_delegate_delegateQueue(+ &session_config.ns_url_session_configuration(),+ Some(&delegate_protocol_object),+ None,+ );++ Self {+ manager_id,+ session,+ delegate: delegate.clone(),+ delegate_protocol_object,+ drop_policy,+ global_broadcast_sender,+ tokio_handle,+ task_cache,+ }+ });++ tracing::debug!("[DOWNLOAD_MANAGER] URLSessionDownloadManager created with tokio handle");++ backend.initialize_task_cache().await?;++ tracing::debug!("[DOWNLOAD_MANAGER] Task cache initialized, ready for downloads");++ Ok(backend)+ }++ /// Invalidate the underlying NSURLSession and cancel all tasks.+ /// Safe to call multiple times; used by tests to ensure cleanup on exit.+ fn invalidate_and_cancel(&self) {+ autoreleasepool(|_| {+ self.session.invalidateAndCancel();+ });+ }++ /// Finish all outstanding tasks and invalidate the session.+ /// For background sessions, tasks may continue in the background.+ fn finish_tasks_and_invalidate(&self) {+ autoreleasepool(|_| {+ self.session.finishTasksAndInvalidate();+ });+ }++ async fn initialize_task_cache(&self) -> Result<(), DownloadError> {+ let tasks = self.session.get_tasks().await;++ for download_task in tasks.download_tasks {+ if let Some(download_info) = download_task.download_info() {+ let destination = PathBuf::from(&download_info.destination_path);+ let download_id = compute_download_id(&download_info.source_url, &destination);++ let downloaded_file_state = check_file_exists(&destination);+ let crc_file_path = PathBuf::from(format!("{}.crc", destination.display()));+ let crc_file_state = check_crc_file_exists(&crc_file_path);+ let resume_data_path = PathBuf::from(format!("{}.resume_data", destination.display()));+ let resume_data_state = check_resume_file_exists(&resume_data_path);+ let url_session_task_state = Some(download_task.state());++ let checked_file_state = reduce_to_checked_file_state(+ downloaded_file_state,+ crc_file_state,+ &destination,+ download_info.crc32c.as_deref(),+ );++ // Extract expected bytes from download task+ let expected_bytes = {+ let count = download_task.count_of_bytes_expected_to_receive();+ if count > 0 {+ Some(count)+ } else {+ None+ }+ };++ let internal_state = reconcile_to_internal_state(+ checked_file_state,+ resume_data_state,+ Some(&download_task),+ &destination,+ &crc_file_path,+ &resume_data_path,+ expected_bytes,+ )+ .await;++ let file_download_state = reduce_to_file_download_state(+ checked_file_state,+ resume_data_state,+ url_session_task_state,+ Some(&download_task),+ &destination,+ expected_bytes,+ &self.manager_id,+ );++ let file_check = download_info.crc32c.map_or(FileCheck::None, |crc_hash| FileCheck::CRC(crc_hash));++ let file_task = Arc::new(FileDownloadTask::new(+ download_id,+ download_info.source_url.clone(),+ destination.clone(),+ file_check,+ self.manager_id.clone(),+ expected_bytes,+ internal_state,+ file_download_state,+ Some(self.session.clone()),+ self.tokio_handle.clone(),+ ));++ file_task.start_listening((*self.global_broadcast_sender).clone()).await;++ // Special case: If task is Completed and file exists with valid CRC,+ // the delegate callback was missed (app was closed during completion).+ // Manually trigger completion handling to validate and cache CRC.+ if matches!(download_task.state(), NSURLSessionTaskState::Completed)+ && matches!(checked_file_state, crate::CheckedFileState::Valid)+ {+ tracing::info!(+ "[DOWNLOAD_MANAGER] Completed task with valid file detected during init, triggering completion handling for: {}",+ destination.display()+ );+ file_task.handle_download_completion().await;+ }++ self.task_cache.lock().await.insert(download_id, file_task);+ } else {+ download_task.cancel();+ }+ }++ Ok(())+ }+}++impl Drop for URLSessionDownloadManager {+ fn drop(&mut self) {+ match self.drop_policy {+ URLSessionDropPolicy::FinishTasksAndInvalidate => {+ self.finish_tasks_and_invalidate();+ },+ URLSessionDropPolicy::InvalidateAndCancel => {+ self.invalidate_and_cancel();+ },+ }+ }+}++#[async_trait::async_trait]+impl FileDownloadManager for URLSessionDownloadManager {+ fn manager_id(&self) -> &str {+ &self.manager_id+ }++ fn subscribe_to_all_downloads(&self) -> TokioBroadcastStream<(DownloadId, FileDownloadEvent)> {+ TokioBroadcastStream::new(self.global_broadcast_sender.subscribe())+ }++ fn global_broadcast_sender(&self) -> Arc<TokioBroadcastSender<(DownloadId, FileDownloadEvent)>> {+ self.global_broadcast_sender.clone()+ }++ async fn get_all_file_tasks(&self) -> Result<Vec<Arc<dyn FileDownloadTaskTrait>>, DownloadError> {+ let task_cache_guard = self.task_cache.lock().await;+ Ok(task_cache_guard.values().cloned().collect())+ }++ async fn file_download_task(+ &self,+ source_url: &String,+ destination_path: &Path,+ file_check: FileCheck,+ expected_bytes: Option<u64>,+ ) -> Result<Arc<dyn FileDownloadTaskTrait>, DownloadError> {+ use crate::check_lock_file;++ let download_id = compute_download_id(source_url, destination_path);++ {+ let task_cache_guard = self.task_cache.lock().await;+ if let Some(cached_task) = task_cache_guard.get(&download_id) {+ return Ok(cached_task.clone());+ }+ }++ // Check lock file before proceeding (result will be used by reduction only)+ let lock_path = PathBuf::from(format!("{}.lock", destination_path.display()));+ let _ = check_lock_file(&lock_path, &self.manager_id, std::process::id());++ // If file is locked by another manager, do not error here.+ // Reduction will expose LockedByOther in the FileDownloadState.++ let downloaded_file_state = check_file_exists(destination_path);+ let crc_file_path = PathBuf::from(format!("{}.crc", destination_path.display()));+ let crc_file_state = check_crc_file_exists(&crc_file_path);+ let resume_data_path = PathBuf::from(format!("{}.resume_data", destination_path.display()));+ let resume_data_state = check_resume_file_exists(&resume_data_path);++ let expected_crc = match &file_check {+ FileCheck::CRC(crc_hash) => Some(crc_hash.as_str()),+ FileCheck::None => None,+ };++ let checked_file_state =+ reduce_to_checked_file_state(downloaded_file_state, crc_file_state, destination_path, expected_crc);++ let internal_state = reconcile_to_internal_state(+ checked_file_state,+ resume_data_state,+ None,+ destination_path,+ &crc_file_path,+ &resume_data_path,+ expected_bytes,+ )+ .await;++ let file_download_state = reduce_to_file_download_state(+ checked_file_state,+ resume_data_state,+ None,+ None,+ destination_path,+ expected_bytes,+ &self.manager_id,+ );++ // Do not acquire lock here. Lock acquisition/release is handled during+ // reconciliation when entering/leaving the Downloading state.++ let file_task = Arc::new(FileDownloadTask::new(+ download_id,+ source_url.clone(),+ destination_path.to_path_buf(),+ file_check,+ self.manager_id.clone(),+ expected_bytes,+ internal_state,+ file_download_state,+ Some(self.session.clone()),+ self.tokio_handle.clone(),+ ));++ // Start listening to global broadcast events+ tracing::debug!("[MANAGER] Starting listener for download_id={}", download_id);+ file_task.start_listening((*self.global_broadcast_sender).clone()).await;++ self.task_cache.lock().await.insert(download_id, file_task.clone());+ Ok(file_task)+ }+}diff --git a/crates/download-manager/src/managers/apple/url_session_download_task_ext.rs b/crates/download-manager/src/managers/apple/url_session_download_task_ext.rsnew file mode 100644index 000000000..1630bb74f--- /dev/null+++ b/crates/download-manager/src/managers/apple/url_session_download_task_ext.rs@@ -0,0 +1,115 @@+use std::path::PathBuf;++use async_trait::async_trait;++use crate::{+ DownloadId, DownloadInfo, TaskID, compute_download_id,+ managers::apple::{URLSessionDownloadTaskResumeData, URLSessionResumeDataHandler},+ prelude::*,+};++#[allow(unused)]+#[async_trait]+pub trait UrlSessionDownloadTaskExt {+ fn task_identifier(&self) -> TaskID;+ fn task_description(&self) -> Option<String>;+ fn set_task_description(+ &self,+ s: &str,+ );+ fn download_info(&self) -> Option<DownloadInfo>;+ fn set_download_info(+ &self,+ info: &DownloadInfo,+ );+ fn download_id(&self) -> Option<DownloadId>;+ fn state(&self) -> NSURLSessionTaskState;+ fn count_of_bytes_expected_to_receive(&self) -> u64;+ fn count_of_bytes_received(&self) -> u64;+ async fn cancel_by_producing_resume_data(&self) -> Result<URLSessionDownloadTaskResumeData, crate::DownloadError>;+}++#[async_trait]+impl UrlSessionDownloadTaskExt for NSURLSessionDownloadTask {+ fn task_identifier(&self) -> TaskID {+ unsafe { msg_send![self, taskIdentifier] }+ }++ fn task_description(&self) -> Option<String> {+ let desc_opt = self.taskDescription();+ desc_opt.map(|d| d.to_string())+ }++ fn set_task_description(+ &self,+ s: &str,+ ) {+ let ns = NSString::from_str(s);+ self.setTaskDescription(Some(&ns));+ }++ fn download_info(&self) -> Option<DownloadInfo> {+ self.task_description().and_then(|desc| serde_json::from_str::<crate::DownloadInfo>(&desc).ok())+ }++ fn set_download_info(+ &self,+ info: &DownloadInfo,+ ) {+ let ns = NSString::from_str(&serde_json::to_string(info).unwrap());+ self.setTaskDescription(Some(&ns));+ }++ fn download_id(&self) -> Option<DownloadId> {+ self.download_info().and_then(|info| {+ Some(compute_download_id(&info.source_url, PathBuf::from(info.destination_path).as_path()))+ })+ }++ fn state(&self) -> NSURLSessionTaskState {+ unsafe { msg_send![self, state] }+ }++ fn count_of_bytes_expected_to_receive(&self) -> u64 {+ let bytes_expected: i64 = unsafe { msg_send![self, countOfBytesExpectedToReceive] };+ if bytes_expected > 0 {+ bytes_expected as u64+ } else {+ 0+ }+ }++ fn count_of_bytes_received(&self) -> u64 {+ let bytes_received: i64 = unsafe { msg_send![self, countOfBytesReceived] };+ if bytes_received > 0 {+ bytes_received as u64+ } else {+ 0+ }+ }++ async fn cancel_by_producing_resume_data(&self) -> Result<URLSessionDownloadTaskResumeData, crate::DownloadError> {+ let (sender, receiver) = tokio_oneshot_channel::<Box<[u8]>>();+ let sender_cell: Arc<Mutex<Option<TokioOneshotSender<Box<[u8]>>>>> = Arc::new(Mutex::new(Some(sender)));+ {+ let sender_cell = Arc::clone(&sender_cell);+ let handler = URLSessionResumeDataHandler::new_bytes(move |bytes| {+ if let Some(s) = sender_cell.lock().unwrap().take() {+ let _ = s.send(bytes);+ }+ });+ unsafe {+ self.cancelByProducingResumeData(&handler);+ }+ }+ let resume_data_bytes = receiver.await.map_err(|_| crate::DownloadError::ResumeDataError)?;++ let mut resume_data = URLSessionDownloadTaskResumeData::from_bytes(&resume_data_bytes)+ .map_err(|_| crate::DownloadError::ResumeDataError)?;++ resume_data.bytes_received = Some(self.count_of_bytes_received());+ resume_data.bytes_expected_to_receive = Some(self.count_of_bytes_expected_to_receive());++ Ok(resume_data)+ }+}diff --git a/crates/download-manager/src/managers/apple/url_session_download_task_resume_data.rs b/crates/download-manager/src/managers/apple/url_session_download_task_resume_data.rsnew file mode 100644index 000000000..eed6effbf--- /dev/null+++ b/crates/download-manager/src/managers/apple/url_session_download_task_resume_data.rs@@ -0,0 +1,310 @@+use std::path::{Path, PathBuf};++use thiserror::Error;++use crate::prelude::*;++#[derive(Debug, Clone, Error)]+pub enum ResumeDataError {+ #[error("I/O error: {0}")]+ IoError(String),++ #[error("Failed to parse resume data: {0}")]+ ParseError(String),++ #[error("Decoded object is not a dictionary")]+ NotADictionary,++ #[error("Failed to serialize resume data")]+ SerializationFailed,+}++impl From<Retained<NSError>> for ResumeDataError {+ fn from(error: Retained<NSError>) -> Self {+ ResumeDataError::ParseError(error.localizedDescription().to_string())+ }+}++/// Parsed resume data from NSURLSessionDownloadTask+///+/// This struct allows reading resume data to extract download progress information.+#[derive(Debug, Clone)]+pub struct URLSessionDownloadTaskResumeData {+ /// Number of bytes received so far+ pub bytes_received: Option<u64>,+ /// Expected total bytes to receive+ pub bytes_expected_to_receive: Option<u64>,+ /// Local path where resume data was originally stored (iOS < 10.2)+ pub local_path: Option<PathBuf>,+ /// Temporary file name in the system temp directory+ pub temp_file_name: Option<String>,+ /// Byte range for resume (as raw object, needs further parsing if needed)+ pub byte_range: Option<String>,+ /// Original request data (NSKeyedArchive encoded NSURLRequest)+ pub original_request: Option<Vec<u8>>,+ /// Current request data (NSKeyedArchive encoded NSURLRequest)+ pub current_request: Option<Vec<u8>>,+ /// Resume data version+ pub version: Option<u64>,+}++impl URLSessionDownloadTaskResumeData {+ /// Parse resume data from a file path+ pub fn from_file<P: AsRef<Path>>(path: P) -> Result<Self, ResumeDataError> {+ let data = std::fs::read(path.as_ref()).map_err(|e| ResumeDataError::IoError(e.to_string()))?;+ Self::from_bytes(&data)+ }++ /// Parse resume data from bytes+ pub fn from_bytes(bytes: &[u8]) -> Result<Self, ResumeDataError> {+ let nsdata = NSData::with_bytes(bytes);+ let dict = Self::parse_resume_dict(&nsdata)?;++ Ok(Self {+ bytes_received: Self::get_number_value(&dict, "NSURLSessionResumeBytesReceived"),+ bytes_expected_to_receive: Self::get_number_value(&dict, "NSURLSessionResumeBytesExpectedToReceive"),+ local_path: Self::get_string_value(&dict, "NSURLSessionResumeInfoLocalPath").map(PathBuf::from),+ temp_file_name: Self::get_string_value(&dict, "NSURLSessionResumeInfoTempFileName"),+ byte_range: Self::get_string_value(&dict, "NSURLSessionResumeByteRange"),+ original_request: Self::get_data_value(&dict, "NSURLSessionResumeOriginalRequest"),+ current_request: Self::get_data_value(&dict, "NSURLSessionResumeCurrentRequest"),+ version: Self::get_number_value(&dict, "NSURLSessionResumeInfoVersion"),+ })+ }++ /// Serialize resume data back to bytes (standalone)+ ///+ /// Builds a minimal dictionary from the fields present on this struct+ /// and serializes it in binary PropertyList format. This does not depend+ /// on original resume data bytes.+ pub fn to_bytes(&self) -> Result<Box<[u8]>, ResumeDataError> {+ unsafe {+ // Create an empty NSDictionary<NSString, NSObject> to seed correct generics+ let empty: Retained<NSDictionary<NSString, NSObject>> = NSDictionary::new();+ let mutable_dict = NSMutableDictionary::dictionaryWithDictionary(&empty);++ if let Some(bytes_received) = self.bytes_received {+ mutable_dict.setObject_forKey(+ &NSNumber::numberWithUnsignedLongLong(bytes_received),+ &ProtocolObject::from_retained(NSString::from_str("NSURLSessionResumeBytesReceived")),+ );+ }++ if let Some(bytes_expected) = self.bytes_expected_to_receive {+ mutable_dict.setObject_forKey(+ &NSNumber::numberWithUnsignedLongLong(bytes_expected),+ &ProtocolObject::from_retained(NSString::from_str("NSURLSessionResumeBytesExpectedToReceive")),+ );+ }++ if let Some(ref local_path) = self.local_path {+ mutable_dict.setObject_forKey(+ &NSString::from_str(&local_path.to_string_lossy()),+ &ProtocolObject::from_retained(NSString::from_str("NSURLSessionResumeInfoLocalPath")),+ );+ }++ if let Some(ref temp_name) = self.temp_file_name {+ mutable_dict.setObject_forKey(+ &NSString::from_str(temp_name),+ &ProtocolObject::from_retained(NSString::from_str("NSURLSessionResumeInfoTempFileName")),+ );+ }++ if let Some(ref byte_range) = self.byte_range {+ mutable_dict.setObject_forKey(+ &NSString::from_str(byte_range),+ &ProtocolObject::from_retained(NSString::from_str("NSURLSessionResumeByteRange")),+ );+ }++ if let Some(ref original_req) = self.original_request {+ let nsdata = NSData::with_bytes(original_req);+ mutable_dict.setObject_forKey(+ &nsdata,+ &ProtocolObject::from_retained(NSString::from_str("NSURLSessionResumeOriginalRequest")),+ );+ }++ if let Some(ref current_req) = self.current_request {+ let nsdata = NSData::with_bytes(current_req);+ mutable_dict.setObject_forKey(+ &nsdata,+ &ProtocolObject::from_retained(NSString::from_str("NSURLSessionResumeCurrentRequest")),+ );+ }++ if let Some(ver) = self.version {+ mutable_dict.setObject_forKey(+ &NSNumber::numberWithUnsignedLongLong(ver),+ &ProtocolObject::from_retained(NSString::from_str("NSURLSessionResumeInfoVersion")),+ );+ }++ // Serialize to binary PropertyList format+ // NSURLSession accepts PropertyList format for resume data+ let data = NSPropertyListSerialization::dataWithPropertyList_format_options_error(+ &mutable_dict,+ NSPropertyListFormat::BinaryFormat_v1_0,+ 0,+ )+ .ok()+ .ok_or_else(|| ResumeDataError::SerializationFailed)?;++ Ok(data.to_vec().into_boxed_slice())+ }+ }++ /// Save modified resume data to a file+ pub fn save_to_file<P: AsRef<Path>>(+ &self,+ path: P,+ ) -> Result<(), ResumeDataError> {+ let bytes = self.to_bytes()?;+ std::fs::write(path.as_ref(), bytes).map_err(|e| ResumeDataError::IoError(e.to_string()))?;+ Ok(())+ }++ /// Get the temporary file path based on version+ pub fn temp_file_path(&self) -> Option<PathBuf> {+ if let Some(version) = self.version {+ if version > 1 {+ // iOS 10.2+ uses temp file name+ self.temp_file_name.as_ref().map(|name| std::env::temp_dir().join(name))+ } else {+ // iOS < 10.2 uses local path+ self.local_path.as_ref().map(|path| {+ if let Some(name) = path.file_name() {+ std::env::temp_dir().join(name)+ } else {+ path.clone()+ }+ })+ }+ } else {+ // If version is missing, try temp_file_name first+ self.temp_file_name.as_ref().map(|name| std::env::temp_dir().join(name)).or_else(|| {+ self.local_path.as_ref().map(|path| {+ if let Some(name) = path.file_name() {+ std::env::temp_dir().join(name)+ } else {+ path.clone()+ }+ })+ })+ }+ }++ /// Parse resume data dictionary using NSKeyedUnarchiver+ ///+ /// In beta versions and newer iOS, resumeData is NSKeyedArchive encoded+ /// instead of plain plist. Falls back to PropertyListSerialization for+ /// older formats.+ fn parse_resume_dict(data: &NSData) -> Result<Retained<NSDictionary<NSString, NSObject>>, ResumeDataError> {+ unsafe {+ let dict_cls = objc2::class!(NSDictionary);++ // Try NSKeyedUnarchiver first (NSKeyedArchive format) using modern API+ let allocated: Allocated<NSKeyedUnarchiver> = msg_send![NSKeyedUnarchiver::class(), alloc];++ match NSKeyedUnarchiver::initForReadingFromData_error(allocated, data) {+ Ok(unarchiver) => {+ // Disable secure coding for NSURLSession resume data compatibility+ unarchiver.setRequiresSecureCoding(false);++ // Decode using the standard root object key+ let key = NSString::from_str("NSKeyedArchiveRootObjectKey");++ if let Some(obj) = unarchiver.decodeObjectForKey(&key) {+ unarchiver.finishDecoding();+ let is_dict: bool = msg_send![&obj, isKindOfClass: dict_cls];+ if is_dict {+ let dict = Retained::cast_unchecked::<NSDictionary<NSString, NSObject>>(obj);+ return Ok(dict);+ }+ }++ unarchiver.finishDecoding();+ },+ Err(_) => {},+ }++ // Fallback to PropertyListSerialization for legacy formats+ let obj = NSPropertyListSerialization::propertyListWithData_options_format_error(+ data,+ NSPropertyListMutabilityOptions::MutableContainersAndLeaves,+ core::ptr::null_mut::<NSPropertyListFormat>(),+ )+ .ok()+ .ok_or_else(|| {+ ResumeDataError::ParseError("Both NSKeyedUnarchiver and PropertyListSerialization failed".to_string())+ })?;++ // Check if it's a dictionary+ let is_dict: bool = msg_send![&obj, isKindOfClass: dict_cls];++ if is_dict {+ Ok(Retained::cast_unchecked(obj))+ } else {+ Err(ResumeDataError::NotADictionary)+ }+ }+ }++ /// Get a u64 value from the dictionary+ fn get_number_value(+ dict: &NSDictionary<NSString, NSObject>,+ key: &str,+ ) -> Option<u64> {+ let key_ns = NSString::from_str(key);+ dict.objectForKey(&key_ns).and_then(|obj| {+ let number_class = objc2::class!(NSNumber);+ let is_number = obj.isKindOfClass(number_class);++ if is_number {+ let num = unsafe { Retained::cast_unchecked::<NSNumber>(obj) };+ Some(num.unsignedLongLongValue())+ } else {+ None+ }+ })+ }++ /// Get a string value from the dictionary+ fn get_string_value(+ dict: &NSDictionary<NSString, NSObject>,+ key: &str,+ ) -> Option<String> {+ let key_ns = NSString::from_str(key);+ dict.objectForKey(&key_ns).and_then(|obj| {+ let string_class = objc2::class!(NSString);+ let is_string = obj.isKindOfClass(string_class);++ if is_string {+ let s = unsafe { Retained::cast_unchecked::<NSString>(obj) };+ Some(s.to_string())+ } else {+ None+ }+ })+ }++ /// Get data bytes from the dictionary+ fn get_data_value(+ dict: &NSDictionary<NSString, NSObject>,+ key: &str,+ ) -> Option<Vec<u8>> {+ let key_ns = NSString::from_str(key);+ dict.objectForKey(&key_ns).and_then(|obj| {+ let data_class = objc2::class!(NSData);+ let is_data = obj.isKindOfClass(data_class);++ if is_data {+ let data = unsafe { Retained::cast_unchecked::<NSData>(obj) };+ Some(data.to_vec())+ } else {+ None+ }+ })+ }+}diff --git a/crates/download-manager/src/managers/apple/url_session_error.rs b/crates/download-manager/src/managers/apple/url_session_error.rsnew file mode 100644index 000000000..daf302031--- /dev/null+++ b/crates/download-manager/src/managers/apple/url_session_error.rs@@ -0,0 +1,260 @@+use crate::prelude::*;++/// Common NSURLError codes from the NSURLErrorDomain+#[derive(Debug, Clone, Copy, PartialEq, Eq)]+pub enum URLSessionErrorCode {+ /// -999: Request was cancelled (expected during pause operations)+ Cancelled,+ /// -1000: Malformed URL+ BadURL,+ /// -1001: Connection timeout+ TimedOut,+ /// -1002: Unsupported URL scheme+ UnsupportedURL,+ /// -1003: DNS resolution failed+ CannotFindHost,+ /// -1004: Connection refused by server+ CannotConnectToHost,+ /// -1005: Connection dropped during transfer+ NetworkConnectionLost,+ /// -1006: DNS lookup failed+ DNSLookupFailed,+ /// -1007: Too many redirects+ HTTPTooManyRedirects,+ /// -1008: Resource unavailable+ ResourceUnavailable,+ /// -1009: No internet connection+ NotConnectedToInternet,+ /// -1010: Redirect to non-existent location+ RedirectToNonExistentLocation,+ /// -1011: Bad server response+ BadServerResponse,+ /// -1012: User cancelled authentication+ UserCancelledAuthentication,+ /// -1013: Authentication required+ UserAuthenticationRequired,+ /// -1200: Secure connection failed+ SecureConnectionFailed,+ /// -1201: Server certificate invalid+ ServerCertificateHasBadDate,+ /// -1202: Server certificate untrusted+ ServerCertificateUntrusted,+ /// -1203: Server certificate has unknown root+ ServerCertificateHasUnknownRoot,+ /// -1204: Server certificate not yet valid+ ServerCertificateNotYetValid,+ /// -1205: Client certificate rejected+ ClientCertificateRejected,+ /// -1206: Client certificate required+ ClientCertificateRequired,+ /// -2000: Cannot load from network+ CannotLoadFromNetwork,+ /// Other error code not in the known list+ Other(i64),+}++impl URLSessionErrorCode {+ /// Parse an error code from NSError+ pub fn from_error_code(code: i64) -> Self {+ match code {+ -999 => Self::Cancelled,+ -1000 => Self::BadURL,+ -1001 => Self::TimedOut,+ -1002 => Self::UnsupportedURL,+ -1003 => Self::CannotFindHost,+ -1004 => Self::CannotConnectToHost,+ -1005 => Self::NetworkConnectionLost,+ -1006 => Self::DNSLookupFailed,+ -1007 => Self::HTTPTooManyRedirects,+ -1008 => Self::ResourceUnavailable,+ -1009 => Self::NotConnectedToInternet,+ -1010 => Self::RedirectToNonExistentLocation,+ -1011 => Self::BadServerResponse,+ -1012 => Self::UserCancelledAuthentication,+ -1013 => Self::UserAuthenticationRequired,+ -1200 => Self::SecureConnectionFailed,+ -1201 => Self::ServerCertificateHasBadDate,+ -1202 => Self::ServerCertificateUntrusted,+ -1203 => Self::ServerCertificateHasUnknownRoot,+ -1204 => Self::ServerCertificateNotYetValid,+ -1205 => Self::ClientCertificateRejected,+ -1206 => Self::ClientCertificateRequired,+ -2000 => Self::CannotLoadFromNetwork,+ other => Self::Other(other),+ }+ }++ /// Get the raw error code value+ pub fn code(&self) -> i64 {+ match self {+ Self::Cancelled => -999,+ Self::BadURL => -1000,+ Self::TimedOut => -1001,+ Self::UnsupportedURL => -1002,+ Self::CannotFindHost => -1003,+ Self::CannotConnectToHost => -1004,+ Self::NetworkConnectionLost => -1005,+ Self::DNSLookupFailed => -1006,+ Self::HTTPTooManyRedirects => -1007,+ Self::ResourceUnavailable => -1008,+ Self::NotConnectedToInternet => -1009,+ Self::RedirectToNonExistentLocation => -1010,+ Self::BadServerResponse => -1011,+ Self::UserCancelledAuthentication => -1012,+ Self::UserAuthenticationRequired => -1013,+ Self::SecureConnectionFailed => -1200,+ Self::ServerCertificateHasBadDate => -1201,+ Self::ServerCertificateUntrusted => -1202,+ Self::ServerCertificateHasUnknownRoot => -1203,+ Self::ServerCertificateNotYetValid => -1204,+ Self::ClientCertificateRejected => -1205,+ Self::ClientCertificateRequired => -1206,+ Self::CannotLoadFromNetwork => -2000,+ Self::Other(code) => *code,+ }+ }++ /// Get a human-readable description of the error+ pub fn description(&self) -> &'static str {+ match self {+ Self::Cancelled => "Request was cancelled",+ Self::BadURL => "Malformed URL",+ Self::TimedOut => "Connection timeout",+ Self::UnsupportedURL => "Unsupported URL scheme",+ Self::CannotFindHost => "DNS resolution failed",+ Self::CannotConnectToHost => "Connection refused by server",+ Self::NetworkConnectionLost => "Connection dropped during transfer",+ Self::DNSLookupFailed => "DNS lookup failed",+ Self::HTTPTooManyRedirects => "Too many redirects",+ Self::ResourceUnavailable => "Resource unavailable",+ Self::NotConnectedToInternet => "No internet connection",+ Self::RedirectToNonExistentLocation => "Redirect to non-existent location",+ Self::BadServerResponse => "Bad server response",+ Self::UserCancelledAuthentication => "User cancelled authentication",+ Self::UserAuthenticationRequired => "Authentication required",+ Self::SecureConnectionFailed => "Secure connection failed",+ Self::ServerCertificateHasBadDate => "Server certificate has invalid date",+ Self::ServerCertificateUntrusted => "Server certificate is untrusted",+ Self::ServerCertificateHasUnknownRoot => "Server certificate has unknown root",+ Self::ServerCertificateNotYetValid => "Server certificate not yet valid",+ Self::ClientCertificateRejected => "Client certificate rejected",+ Self::ClientCertificateRequired => "Client certificate required",+ Self::CannotLoadFromNetwork => "Cannot load from network",+ Self::Other(_) => "Unknown error",+ }+ }++ /// Check if this error should be ignored (e.g., expected cancellations)+ pub fn should_ignore(&self) -> bool {+ matches!(self, Self::Cancelled)+ }++ /// Check if this is a network connectivity error+ pub fn is_network_error(&self) -> bool {+ matches!(+ self,+ Self::NotConnectedToInternet+ | Self::NetworkConnectionLost+ | Self::CannotConnectToHost+ | Self::TimedOut+ | Self::CannotLoadFromNetwork+ )+ }++ /// Check if this is a DNS/host resolution error+ pub fn is_dns_error(&self) -> bool {+ matches!(self, Self::CannotFindHost | Self::DNSLookupFailed)+ }++ /// Check if this is a certificate/security error+ pub fn is_certificate_error(&self) -> bool {+ matches!(+ self,+ Self::SecureConnectionFailed+ | Self::ServerCertificateHasBadDate+ | Self::ServerCertificateUntrusted+ | Self::ServerCertificateHasUnknownRoot+ | Self::ServerCertificateNotYetValid+ | Self::ClientCertificateRejected+ | Self::ClientCertificateRequired+ )+ }++ /// Check if this error is retryable (might succeed on retry)+ pub fn is_retryable(&self) -> bool {+ self.is_network_error() || matches!(self, Self::TimedOut | Self::ResourceUnavailable | Self::BadServerResponse)+ }+}++/// Parsed error information from NSError+#[derive(Debug, Clone)]+pub struct URLSessionError {+ /// Parsed error code+ pub code: URLSessionErrorCode,+ /// Error domain (e.g., "NSURLErrorDomain")+ pub domain: String,+ /// Localized error description from the system+ pub localized_description: String,+}++#[allow(unused)]+impl URLSessionError {+ /// Parse an NSError into a URLSessionError+ pub fn from_nserror(error: &NSError) -> Self {+ let code = URLSessionErrorCode::from_error_code(error.code() as i64);+ let domain = error.domain().to_string();+ let localized_description = error.localizedDescription().to_string();++ Self {+ code,+ domain,+ localized_description,+ }+ }++ /// Get a formatted error message suitable for user display+ pub fn user_message(&self) -> String {+ // Use localized description if available and non-empty+ if !self.localized_description.is_empty() {+ format!("{} (code: {})", self.localized_description, self.code.code())+ } else {+ format!("{} (code: {})", self.code.description(), self.code.code())+ }+ }++ /// Get a detailed error message suitable for logging+ pub fn debug_message(&self) -> String {+ format!(+ "code={}, domain={}, desc='{}', type={}",+ self.code.code(),+ self.domain,+ self.localized_description,+ self.code.description()+ )+ }++ /// Check if this error should be ignored+ pub fn should_ignore(&self) -> bool {+ self.code.should_ignore()+ }++ /// Check if this is a network connectivity error+ pub fn is_network_error(&self) -> bool {+ self.code.is_network_error()+ }++ /// Check if this is a DNS/host resolution error+ pub fn is_dns_error(&self) -> bool {+ self.code.is_dns_error()+ }++ /// Check if this is a certificate/security error+ pub fn is_certificate_error(&self) -> bool {+ self.code.is_certificate_error()+ }++ /// Check if this error is retryable+ pub fn is_retryable(&self) -> bool {+ self.code.is_retryable()+ }+}diff --git a/crates/download-manager/src/managers/apple/url_session_ext.rs b/crates/download-manager/src/managers/apple/url_session_ext.rsnew file mode 100644index 000000000..12ce8c00a--- /dev/null+++ b/crates/download-manager/src/managers/apple/url_session_ext.rs@@ -0,0 +1,121 @@+use crate::{+ DownloadError,+ managers::apple::{URLSessionDownloadTaskResumeData, URLSessionGetTasksCompletionHandler},+ prelude::*,+};++#[allow(unused)]+pub struct URLSessionTasks {+ pub data_tasks: Box<[Retained<NSURLSessionDataTask>]>,+ pub upload_tasks: Box<[Retained<NSURLSessionUploadTask>]>,+ pub download_tasks: Box<[Retained<NSURLSessionDownloadTask>]>,+}++impl Default for URLSessionTasks {+ fn default() -> Self {+ Self {+ data_tasks: Box::default(),+ upload_tasks: Box::default(),+ download_tasks: Box::default(),+ }+ }+}++#[allow(unused)]+#[async_trait::async_trait]+pub trait URLSessionExt {+ async fn get_tasks(&self) -> URLSessionTasks;+ fn get_tasks_blocking(&self) -> URLSessionTasks;+ fn description(&self) -> Option<String>;+ fn set_description(+ &self,+ s: &str,+ );+ fn download_task_with_url(+ &self,+ source_url: &str,+ ) -> Result<Retained<NSURLSessionDownloadTask>, DownloadError>;+ fn download_task_with_resume_data(+ &self,+ resume_data: &URLSessionDownloadTaskResumeData,+ ) -> Result<Retained<NSURLSessionDownloadTask>, DownloadError>;+}++#[async_trait::async_trait]+impl URLSessionExt for NSURLSession {+ async fn get_tasks(&self) -> URLSessionTasks {+ let receiver = {+ let (sender, receiver) = tokio_oneshot_channel();+ let sender = Arc::new(Mutex::new(Some(sender)));+ let handler = URLSessionGetTasksCompletionHandler::new({+ let sender = sender.clone();+ move |data_tasks, upload_tasks, download_tasks| {+ if let Some(s) = sender.lock().unwrap().take() {+ let _ = s.send(URLSessionTasks {+ data_tasks,+ upload_tasks,+ download_tasks,+ });+ }+ }+ });+ unsafe { self.getTasksWithCompletionHandler(&handler) };+ receiver+ };+ receiver.await.unwrap_or(URLSessionTasks::default())+ }++ fn get_tasks_blocking(&self) -> URLSessionTasks {+ use std::sync::{Arc, Mutex, mpsc::sync_channel};+ let (sender, receiver) = sync_channel(1);+ let sender = Arc::new(Mutex::new(Some(sender)));+ let handler = URLSessionGetTasksCompletionHandler::new({+ let sender = sender.clone();+ move |data_tasks, upload_tasks, download_tasks| {+ if let Some(s) = sender.lock().unwrap().take() {+ let _ = s.send(URLSessionTasks {+ data_tasks,+ upload_tasks,+ download_tasks,+ });+ }+ }+ });+ unsafe { self.getTasksWithCompletionHandler(&handler) };+ receiver.recv().unwrap_or_default()+ }++ fn description(&self) -> Option<String> {+ let desc_opt = self.sessionDescription();+ desc_opt.map(|d| d.to_string())+ }++ fn set_description(+ &self,+ s: &str,+ ) {+ let ns = NSString::from_str(s);+ self.setSessionDescription(Some(&ns));+ }++ fn download_task_with_url(+ &self,+ source_url: &str,+ ) -> Result<Retained<NSURLSessionDownloadTask>, DownloadError> {+ autoreleasepool(|_| {+ let nsurl = NSURL::URLWithString(&NSString::from_str(source_url)).ok_or(DownloadError::BadUrl)?;+ Ok::<_, DownloadError>(self.downloadTaskWithURL(&nsurl))+ })+ }++ fn download_task_with_resume_data(+ &self,+ resume_data: &URLSessionDownloadTaskResumeData,+ ) -> Result<Retained<NSURLSessionDownloadTask>, DownloadError> {+ let bytes = resume_data.to_bytes().map_err(|_| DownloadError::ResumeDataError)?;+ autoreleasepool(|_| {+ let nsdata = NSData::with_bytes(&bytes);+ Ok::<_, DownloadError>(self.downloadTaskWithResumeData(&nsdata))+ })+ }+}diff --git a/crates/download-manager/src/managers/apple/url_session_get_tasks_handler.rs b/crates/download-manager/src/managers/apple/url_session_get_tasks_handler.rsnew file mode 100644index 000000000..5f45d34bd--- /dev/null+++ b/crates/download-manager/src/managers/apple/url_session_get_tasks_handler.rs@@ -0,0 +1,56 @@+use crate::prelude::*;++/// A wrapper for NSURLSession getTasksWithCompletionHandler block.+///+/// Signature corresponds to Apple's API:+/// (NSArray<NSURLSessionDataTask>*, NSArray<NSURLSessionUploadTask>*, NSArray<NSURLSessionDownloadTask>*) -> void+pub struct URLSessionGetTasksCompletionHandler(+ RcBlock<+ dyn Fn(+ NonNull<NSArray<NSURLSessionDataTask>>,+ NonNull<NSArray<NSURLSessionUploadTask>>,+ NonNull<NSArray<NSURLSessionDownloadTask>>,+ ),+ >,+);++impl URLSessionGetTasksCompletionHandler {+ pub fn new<F>(handler: F) -> Self+ where+ F: Fn(+ Box<[Retained<NSURLSessionDataTask>]>,+ Box<[Retained<NSURLSessionUploadTask>]>,+ Box<[Retained<NSURLSessionDownloadTask>]>,+ ) + 'static,+ {+ Self(RcBlock::new(+ move |data_tasks_ptr: NonNull<NSArray<NSURLSessionDataTask>>,+ upload_tasks_ptr: NonNull<NSArray<NSURLSessionUploadTask>>,+ download_tasks_ptr: NonNull<NSArray<NSURLSessionDownloadTask>>| {+ let data_tasks = unsafe { data_tasks_ptr.as_ref() };+ let upload_tasks = unsafe { upload_tasks_ptr.as_ref() };+ let download_tasks = unsafe { download_tasks_ptr.as_ref() };++ let data_vec = data_tasks.to_vec();+ let upload_vec = upload_tasks.to_vec();+ let download_vec = download_tasks.to_vec();++ handler(data_vec.into_boxed_slice(), upload_vec.into_boxed_slice(), download_vec.into_boxed_slice());+ },+ ))+ }+}++impl Deref for URLSessionGetTasksCompletionHandler {+ type Target = Block<+ dyn Fn(+ NonNull<NSArray<NSURLSessionDataTask>>,+ NonNull<NSArray<NSURLSessionUploadTask>>,+ NonNull<NSArray<NSURLSessionDownloadTask>>,+ ),+ >;++ fn deref(&self) -> &Self::Target {+ &self.0+ }+}diff --git a/crates/download-manager/src/managers/apple/url_session_resume_data_handler.rs b/crates/download-manager/src/managers/apple/url_session_resume_data_handler.rsnew file mode 100644index 000000000..17e32cb2d--- /dev/null+++ b/crates/download-manager/src/managers/apple/url_session_resume_data_handler.rs@@ -0,0 +1,36 @@+use crate::prelude::*;++pub struct URLSessionResumeDataHandler(RcBlock<dyn Fn(*mut NSData)>);++impl URLSessionResumeDataHandler {+ #[allow(unused)]+ pub fn new<F>(handler: F) -> Self+ where+ F: Fn(*mut NSData) + 'static,+ {+ Self(RcBlock::new(handler))+ }++ pub fn new_bytes<F>(handler: F) -> Self+ where+ F: Fn(Box<[u8]>) + 'static,+ {+ Self(RcBlock::new(move |ptr: *mut NSData| {+ let boxed: Box<[u8]> = if let Some(nsdata) = unsafe { ptr.as_ref() } {+ nsdata.to_vec().into_boxed_slice()+ } else {+ // Some systems may deliver nil resume data; treat as empty+ Box::new([])+ };+ handler(boxed);+ }))+ }+}++impl Deref for URLSessionResumeDataHandler {+ type Target = Block<dyn Fn(*mut NSData)>;++ fn deref(&self) -> &Self::Target {+ &self.0+ }+}diff --git a/crates/download-manager/src/managers/apple/url_session_state_reducer.rs b/crates/download-manager/src/managers/apple/url_session_state_reducer.rsnew file mode 100644index 000000000..162a2881d--- /dev/null+++ b/crates/download-manager/src/managers/apple/url_session_state_reducer.rs@@ -0,0 +1,641 @@+//! State Reduction System+//!+//! This module implements a pure functional state reduction system for file downloads.+//! It takes various inputs (file existence, CRC files, resume data, URLSession tasks)+//! and produces deterministic outputs (FileDownloadState, InternalDownloadState).+//!+//! ## Three-Stage Pipeline+//!+//! 1. **Validation** (`reduce_to_checked_file_state`):+//! - Checks file existence+//! - Validates CRC integrity (with caching optimization)+//! - Returns: Valid, Invalid, or Missing+//!+//! 2. **Display** (`reduce_to_file_download_state`):+//! - Maps validated state to user-facing phase+//! - Calculates progress percentages+//! - Returns: FileDownloadState for UI+//!+//! 3. **Reconciliation** (`reconcile_to_internal_state`):+//! - Performs cleanup actions (delete corrupted files, etc.)+//! - Determines what we have after cleanup+//! - Returns: InternalDownloadState for operations+//!+//! ## CRC Caching for Performance+//!+//! To avoid recalculating CRC on every app launch:+//!+//! **On Download Completion:**+//! 1. File downloads successfully+//! 2. Calculate CRC to validate+//! 3. If valid → Save to `.crc` file (e.g., `model.safetensors.crc`)+//!+//! **On Next Launch:**+//! 1. Check if `.crc` file exists+//! 2. If exists → Read cached CRC and compare (instant, no file scan)+//! 3. If missing → Calculate CRC → Save to cache+//! 4. If mismatch → Recalculate to verify → Update cache+//!+//! This makes subsequent launches **100x faster** for large model files.++use std::path::{Path, PathBuf};++use crate::{+ CRCFileState, CheckedFileState, DownloadedFileState, FileDownloadState, InternalDownloadState, LockFileState,+ ResumeDataFileState, calculate_and_verify_crc, check_lock_file,+ managers::apple::{URLSessionDownloadTaskResumeData, URLSessionDownloadTaskState, UrlSessionDownloadTaskExt},+ prelude::*,+};++/// Check if the downloaded file exists on disk+pub fn check_file_exists(path: &Path) -> DownloadedFileState {+ if path.exists() {+ DownloadedFileState::Exists+ } else {+ DownloadedFileState::Missing+ }+}++/// Check if the CRC validation file (.crc) exists on disk+pub fn check_crc_file_exists(path: &Path) -> CRCFileState {+ if path.exists() {+ CRCFileState::Exists+ } else {+ CRCFileState::Missing+ }+}++/// Check if the resume data file (.resume_data) exists on disk+pub fn check_resume_file_exists(path: &Path) -> ResumeDataFileState {+ if path.exists() {+ ResumeDataFileState::Exists+ } else {+ ResumeDataFileState::Missing+ }+}+fn validate_crc(+ file_path: &Path,+ expected_crc: &str,+) -> bool {+ #[cfg(debug_assertions)]+ {+ tracing::debug!("[CRC] Starting CRC validation for file: {}", file_path.display());+ let start = std::time::Instant::now();+ let result = calculate_and_verify_crc(file_path, expected_crc).unwrap_or(false);+ let duration = start.elapsed();+ tracing::debug!(+ "[CRC] CRC validation {} in {:.2}s",+ if result {+ "✓ PASSED"+ } else {+ "✗ FAILED"+ },+ duration.as_secs_f64()+ );+ return result;+ }++ #[cfg(not(debug_assertions))]+ calculate_and_verify_crc(file_path, expected_crc).unwrap_or(false)+}++/// First Reduction: Validate the downloaded file+///+/// Checks if the downloaded file exists and validates its integrity using CRC if expected.+/// Returns CheckedFileState indicating whether the file is Valid, Invalid, or Missing.+///+/// CRC Caching Mechanism:+/// - On download completion: Calculate CRC → if valid, save to `.crc` file+/// - On next app launch: Check `.crc` file exists → use cached value (fast path)+/// - If cache missing: Recalculate CRC → save to `.crc` file for next time+/// - If cache mismatch: Recalculate to verify → update cache if valid+///+/// Logic:+/// - If file is missing → Missing (regardless of CRC file existence)+/// - If file exists + CRC cached → Use cached value (fast)+/// - If file exists + CRC not cached → Validate CRC → Cache result → Valid or Invalid+/// - If file exists + no CRC expected → Valid (no validation needed)+pub fn reduce_to_checked_file_state(+ file_state: DownloadedFileState,+ crc_file_state: CRCFileState,+ file_path: &Path,+ expected_crc: Option<&str>,+) -> CheckedFileState {+ tracing::info!(+ "[REDUCE_CHECKED] file={:?}, crc_file={:?}, expected_crc={:?}, path={}",+ file_state,+ crc_file_state,+ expected_crc,+ file_path.display()+ );++ let result = match (file_state, crc_file_state, expected_crc) {+ // File missing - nothing to validate+ (DownloadedFileState::Missing, _, _) => CheckedFileState::Missing,++ // File exists with CRC file - use cached CRC (fast path)+ (DownloadedFileState::Exists, CRCFileState::Exists, Some(expected)) => {+ let crc_path = format!("{}.crc", file_path.display());+ if let Ok(saved_crc) = std::fs::read_to_string(&crc_path) {+ if saved_crc.trim() == expected {+ tracing::debug!("[REDUCE_CHECKED] ✓ Using cached CRC for {}", file_path.display());+ CheckedFileState::Valid+ } else {+ tracing::warn!("[REDUCE_CHECKED] CRC mismatch in cache, recalculating for {}", file_path.display());+ // CRC mismatch, recalculate to be sure+ if validate_crc(file_path, expected) {+ // Update cache with correct value+ let _ = crate::crc_utils::save_crc_file(file_path, expected);+ CheckedFileState::Valid+ } else {+ CheckedFileState::Invalid+ }+ }+ } else {+ tracing::warn!("[REDUCE_CHECKED] Failed to read cached CRC, recalculating for {}", file_path.display());+ // Fallback to recalculation if reading .crc fails+ if validate_crc(file_path, expected) {+ // Save the cache for next time+ let _ = crate::crc_utils::save_crc_file(file_path, expected);+ CheckedFileState::Valid+ } else {+ CheckedFileState::Invalid+ }+ }+ },++ // File exists without CRC file - recalculate and cache+ (DownloadedFileState::Exists, CRCFileState::Missing, Some(expected)) => {+ if validate_crc(file_path, expected) {+ // Cache the CRC for next time+ if let Err(e) = crate::crc_utils::save_crc_file(file_path, expected) {+ tracing::warn!("[REDUCE_CHECKED] Failed to cache CRC for {}: {}", file_path.display(), e);+ } else {+ tracing::debug!("[REDUCE_CHECKED] ✓ CRC cached for {}", file_path.display());+ }+ CheckedFileState::Valid+ } else {+ CheckedFileState::Invalid+ }+ },++ // File exists without CRC requirement - consider valid+ (DownloadedFileState::Exists, _, None) => CheckedFileState::Valid,+ };++ tracing::info!("[REDUCE_CHECKED] → Result: {:?}", result);++ result+}++/// Second Reduction: Determine FileDownloadState for display+///+/// Maps combinations of file validation result, resume data, and URLSession task state+/// to FileDownloadState with appropriate byte counts for UI display.+///+/// This produces the user-facing state based on current reality.+pub fn reduce_to_file_download_state(+ checked_state: CheckedFileState,+ resume_state: ResumeDataFileState,+ task_state: URLSessionDownloadTaskState,+ url_session_task: Option<&Retained<NSURLSessionDownloadTask>>,+ file_path: &Path,+ expected_bytes: Option<u64>,+ manager_id: &str,+) -> FileDownloadState {+ tracing::info!(+ "[REDUCE_STATE] checked={:?}, resume={:?}, task_state={:?}, path={}",+ checked_state,+ resume_state,+ task_state.map(|s| format!("{:?}", s)),+ file_path.display()+ );++ // Lock awareness (decision in reduction): when not already downloaded and a lock+ // is held by another manager, surface LockedByOther immediately.+ if !matches!(checked_state, CheckedFileState::Valid) {+ let lock_path = PathBuf::from(format!("{}.lock", file_path.display()));+ let lock_state = check_lock_file(&lock_path, manager_id, std::process::id());+ if let LockFileState::OwnedByOtherApp(info) = lock_state {+ let bytes = url_session_task.map(|task| task.count_of_bytes_received()).unwrap_or(0);+ let total = expected_bytes+ .or_else(|| url_session_task.map(|t| t.count_of_bytes_expected_to_receive()))+ .unwrap_or(0);+ return FileDownloadState {+ phase: crate::FileDownloadPhase::LockedByOther(info.manager_id),+ downloaded_bytes: bytes,+ total_bytes: total,+ };+ }+ }++ let result = match (checked_state, resume_state, task_state) {+ (CheckedFileState::Valid, _, _) => {+ let bytes = std::fs::metadata(file_path).map(|metadata| metadata.len()).unwrap_or(0);+ FileDownloadState::downloaded(bytes)+ },++ (CheckedFileState::Invalid, ResumeDataFileState::Missing, None) => {+ let total = expected_bytes.unwrap_or(0);+ FileDownloadState::not_downloaded(total)+ },+ (CheckedFileState::Invalid, ResumeDataFileState::Exists, None) => {+ let resume_path = PathBuf::from(format!("{}.resume_data", file_path.display()));+ let resume_bytes = get_resume_bytes(&resume_path).unwrap_or(0);+ let total = expected_bytes.unwrap_or(0);+ FileDownloadState::paused(resume_bytes, total)+ },+ (CheckedFileState::Invalid, _, Some(NSURLSessionTaskState::Running)) => {+ let bytes = url_session_task.map(|task| task.count_of_bytes_received()).unwrap_or(0);+ let total_from_task = url_session_task.map(|task| task.count_of_bytes_expected_to_receive()).unwrap_or(0);+ let total = if total_from_task > 0 {+ total_from_task+ } else {+ expected_bytes.unwrap_or(0)+ };+ FileDownloadState::downloading(bytes, total)+ },+ (CheckedFileState::Invalid, _, Some(NSURLSessionTaskState::Suspended)) => {+ let bytes = url_session_task.map(|task| task.count_of_bytes_received()).unwrap_or(0);+ let total_from_task = url_session_task.map(|task| task.count_of_bytes_expected_to_receive()).unwrap_or(0);+ let total = if total_from_task > 0 {+ total_from_task+ } else {+ expected_bytes.unwrap_or(0)+ };+ FileDownloadState::paused(bytes, total)+ },+ (CheckedFileState::Invalid, _, Some(NSURLSessionTaskState::Completed | NSURLSessionTaskState::Canceling)) => {+ let total = expected_bytes.unwrap_or(0);+ FileDownloadState::not_downloaded(total)+ },++ (CheckedFileState::Missing, ResumeDataFileState::Missing, None) => {+ let total = expected_bytes.unwrap_or(0);+ FileDownloadState::not_downloaded(total)+ },+ (CheckedFileState::Missing, ResumeDataFileState::Exists, None) => {+ let resume_path = PathBuf::from(format!("{}.resume_data", file_path.display()));+ let bytes = get_resume_bytes(&resume_path).unwrap_or(0);+ let total = expected_bytes.unwrap_or(0);+ FileDownloadState::paused(bytes, total)+ },+ (CheckedFileState::Missing, _, Some(NSURLSessionTaskState::Running)) => {+ let bytes = url_session_task.map(|task| task.count_of_bytes_received()).unwrap_or(0);+ let total_from_task = url_session_task.map(|task| task.count_of_bytes_expected_to_receive()).unwrap_or(0);+ let total = if total_from_task > 0 {+ total_from_task+ } else {+ expected_bytes.unwrap_or(0)+ };+ FileDownloadState::downloading(bytes, total)+ },+ (CheckedFileState::Missing, _, Some(NSURLSessionTaskState::Suspended)) => {+ let bytes = url_session_task.map(|task| task.count_of_bytes_received()).unwrap_or(0);+ let total_from_task = url_session_task.map(|task| task.count_of_bytes_expected_to_receive()).unwrap_or(0);+ let total = if total_from_task > 0 {+ total_from_task+ } else {+ expected_bytes.unwrap_or(0)+ };+ FileDownloadState::paused(bytes, total)+ },+ (CheckedFileState::Missing, _, Some(NSURLSessionTaskState::Completed | NSURLSessionTaskState::Canceling)) => {+ let total = expected_bytes.unwrap_or(0);+ FileDownloadState::not_downloaded(total)+ },++ _ => {+ let total = expected_bytes.unwrap_or(0);+ FileDownloadState::not_downloaded(total)+ },+ };++ tracing::info!("[REDUCE_STATE] → Result: {:?}", result);++ // Safety net: If we calculated 0 total bytes (e.g. because URLSession hasn't reported size yet)+ // but we have an expected size from registry, use the expected size to prevent progress jumps.+ if result.total_bytes == 0 {+ if let Some(expected) = expected_bytes {+ if expected > 0 {+ return FileDownloadState {+ phase: result.phase,+ downloaded_bytes: result.downloaded_bytes,+ total_bytes: expected,+ };+ }+ }+ }++ result+}++/// Reconciliation: Clean up disk artifacts and determine final internal state+///+/// Performs necessary cleanup actions based on file validation and task state:+/// - Deletes corrupted/stale files and invalidates their CRC caches+/// - Keeps valid CRC cache files (`.crc`) for fast validation on next launch+/// - Deletes or keeps resume data based on state+/// - Cancels URLSession tasks when appropriate+/// - Produces resume data from suspended tasks+/// - Compares and keeps the better resume data when multiple sources exist+///+/// CRC Cache Management:+/// - Valid files: Keep `.crc` file (already created by reduce_to_checked_file_state)+/// - Invalid files: Delete both file and `.crc` cache+/// - Downloaded state: Preserve `.crc` for instant validation on next init+///+/// Returns: InternalDownloadState representing what we have after cleanup+///+/// Invariants after reconciliation:+/// - CheckedFileState::Valid → File + CRC remain on disk+/// - CheckedFileState::Invalid → File + CRC deleted+/// - CheckedFileState::Missing → CRC deleted if existed+pub async fn reconcile_to_internal_state(+ checked_file: CheckedFileState,+ resume_file: ResumeDataFileState,+ url_session_task: Option<&Retained<NSURLSessionDownloadTask>>,+ file_path: &Path,+ crc_path: &Path,+ resume_path: &Path,+ expected_bytes: Option<u64>,+) -> InternalDownloadState<Retained<NSURLSessionDownloadTask>> {+ tracing::info!(+ "[RECONCILE] checked={:?}, resume={:?}, task={:?}, path={}",+ checked_file,+ resume_file,+ url_session_task.map(|t| format!("{:?}", t.state())),+ file_path.display()+ );++ let crc_path_buf = crc_path.to_path_buf();++ let result = match (checked_file, resume_file, url_session_task) {+ // Cases 1-2: Valid file, no task+ (CheckedFileState::Valid, ResumeDataFileState::Missing, None) => {+ tracing::info!("[RECONCILE] Case 1: Valid file, no resume, no task → Downloaded");++ InternalDownloadState::Downloaded {+ file_path: file_path.to_path_buf(),+ crc_path: if crc_path_buf.exists() {+ Some(crc_path_buf)+ } else {+ None+ },+ }+ },+ (CheckedFileState::Valid, ResumeDataFileState::Exists, None) => {+ tracing::info!("[RECONCILE] Case 2: Valid file, has resume, no task → Downloaded (delete resume)");++ let _ = std::fs::remove_file(resume_path);+ InternalDownloadState::Downloaded {+ file_path: file_path.to_path_buf(),+ crc_path: if crc_path_buf.exists() {+ Some(crc_path_buf)+ } else {+ None+ },+ }+ },++ // Cases 3-10: Valid file with any task - cancel task, cleanup+ (CheckedFileState::Valid, _, Some(any_task)) => {+ tracing::info!("[RECONCILE] Cases 3-10: Valid file with task → Downloaded (cancel task, cleanup)");++ any_task.cancel();+ if resume_file == ResumeDataFileState::Exists {+ let _ = std::fs::remove_file(resume_path);+ }+ InternalDownloadState::Downloaded {+ file_path: file_path.to_path_buf(),+ crc_path: if crc_path_buf.exists() {+ Some(crc_path_buf)+ } else {+ None+ },+ }+ },++ // Case 11: Invalid file, no resume, no task+ (CheckedFileState::Invalid, ResumeDataFileState::Missing, None) => {+ // Check if this is a partial download (file size < expected size)+ // If so, preserve it - don't delete partial downloads+ let is_partial = if let (Ok(metadata), Some(expected)) = (std::fs::metadata(file_path), expected_bytes) {+ let actual_size = metadata.len();+ actual_size < expected+ } else {+ false+ };++ if is_partial {+ tracing::info!("[RECONCILE] Case 11: Invalid file is partial download, preserving (not deleting)");+ // Keep the partial file, but remove invalid CRC cache+ // Don't create resume data - we can't without URLSession context+ // File will be handled when user initiates download again+ let _ = std::fs::remove_file(&crc_path_buf);+ InternalDownloadState::NotDownloaded+ } else {+ tracing::info!(+ "[RECONCILE] Case 11: Invalid file at full size → NotDownloaded (deleting corrupted file)"+ );+ let _ = std::fs::remove_file(file_path);+ let _ = std::fs::remove_file(&crc_path_buf);+ InternalDownloadState::NotDownloaded+ }+ },++ // Case 12: Invalid file, has resume, no task+ (CheckedFileState::Invalid, ResumeDataFileState::Exists, None) => {+ tracing::info!("[RECONCILE] Case 12: Invalid file, has resume → Paused");++ let _ = std::fs::remove_file(file_path);+ let _ = std::fs::remove_file(&crc_path_buf);+ InternalDownloadState::Paused {+ part_path: resume_path.to_path_buf(),+ }+ },++ // Cases 13-14: Invalid file + Running task+ (CheckedFileState::Invalid, _, Some(running_task))+ if matches!(running_task.state(), NSURLSessionTaskState::Running) =>+ {+ tracing::info!("[RECONCILE] Cases 13-14: Invalid file, running task → Downloading");++ let _ = std::fs::remove_file(file_path);+ let _ = std::fs::remove_file(&crc_path_buf);+ if resume_file == ResumeDataFileState::Exists {+ let _ = std::fs::remove_file(resume_path);+ }+ InternalDownloadState::Downloading {+ task: Retained::clone(running_task),+ }+ },++ // Case 15: Invalid, no resume, suspended task → Paused (produce resume)+ (CheckedFileState::Invalid, ResumeDataFileState::Missing, Some(suspended_task))+ if matches!(suspended_task.state(), NSURLSessionTaskState::Suspended) =>+ {+ tracing::info!("[RECONCILE] Case 15: Invalid, no resume, suspended → Paused (produce resume)");++ let _ = std::fs::remove_file(file_path);+ let _ = std::fs::remove_file(&crc_path_buf);++ if let Ok(resume_data) = suspended_task.cancel_by_producing_resume_data().await {+ let _ = resume_data.save_to_file(resume_path);+ InternalDownloadState::Paused {+ part_path: resume_path.to_path_buf(),+ }+ } else {+ InternalDownloadState::NotDownloaded+ }+ },++ // Case 16: Invalid, has resume, suspended task → Paused (keep better)+ (CheckedFileState::Invalid, ResumeDataFileState::Exists, Some(suspended_task))+ if matches!(suspended_task.state(), NSURLSessionTaskState::Suspended) =>+ {+ tracing::info!("[RECONCILE] Case 16: Invalid, has resume, suspended → Paused (compare resume)");++ let _ = std::fs::remove_file(file_path);+ let _ = std::fs::remove_file(&crc_path_buf);++ if let Ok(new_resume) = suspended_task.cancel_by_producing_resume_data().await {+ let existing_bytes = get_resume_bytes(resume_path).unwrap_or(0);+ let new_bytes = new_resume.bytes_received.unwrap_or(0);++ tracing::info!("[RECONCILE] Resume bytes: existing={} vs new={}", existing_bytes, new_bytes);++ if new_bytes > existing_bytes {+ let _ = new_resume.save_to_file(resume_path);+ }+ }+ InternalDownloadState::Paused {+ part_path: resume_path.to_path_buf(),+ }+ },++ // Cases 17-20: Invalid file + Completed/Canceling → NotDownloaded+ (CheckedFileState::Invalid, _, Some(finished_task)) => {+ tracing::info!("[RECONCILE] Cases 17-20: Invalid, completed/canceling → NotDownloaded");++ let _ = std::fs::remove_file(file_path);+ let _ = std::fs::remove_file(&crc_path_buf);+ if resume_file == ResumeDataFileState::Exists {+ let _ = std::fs::remove_file(resume_path);+ }+ finished_task.cancel();+ InternalDownloadState::NotDownloaded+ },++ // Case 21: No file, no resume, no task+ (CheckedFileState::Missing, ResumeDataFileState::Missing, None) => {+ tracing::info!("[RECONCILE] Case 21: No file, no resume, no task → NotDownloaded");++ let _ = std::fs::remove_file(&crc_path_buf);+ InternalDownloadState::NotDownloaded+ },++ // Case 22: No file, has resume, no task+ (CheckedFileState::Missing, ResumeDataFileState::Exists, None) => {+ tracing::info!("[RECONCILE] Case 22: No file, has resume → Paused");++ let _ = std::fs::remove_file(&crc_path_buf);+ InternalDownloadState::Paused {+ part_path: resume_path.to_path_buf(),+ }+ },++ // Cases 23-24: No file + Running task → Downloading+ (CheckedFileState::Missing, _, Some(running_task))+ if matches!(running_task.state(), NSURLSessionTaskState::Running) =>+ {+ tracing::info!("[RECONCILE] Cases 23-24: No file, running task → Downloading");++ let _ = std::fs::remove_file(&crc_path_buf);+ if resume_file == ResumeDataFileState::Exists {+ let _ = std::fs::remove_file(resume_path);+ }+ InternalDownloadState::Downloading {+ task: Retained::clone(running_task),+ }+ },++ // Case 25: No file, no resume, suspended task → Paused (produce resume)+ (CheckedFileState::Missing, ResumeDataFileState::Missing, Some(suspended_task))+ if matches!(suspended_task.state(), NSURLSessionTaskState::Suspended) =>+ {+ tracing::info!("[RECONCILE] Case 25: No file, no resume, suspended → Paused (produce resume)");++ let _ = std::fs::remove_file(&crc_path_buf);++ if let Ok(resume_data) = suspended_task.cancel_by_producing_resume_data().await {+ let _ = resume_data.save_to_file(resume_path);+ InternalDownloadState::Paused {+ part_path: resume_path.to_path_buf(),+ }+ } else {+ InternalDownloadState::NotDownloaded+ }+ },++ // Case 26: No file, has resume, suspended task → Paused (keep better)+ (CheckedFileState::Missing, ResumeDataFileState::Exists, Some(suspended_task))+ if matches!(suspended_task.state(), NSURLSessionTaskState::Suspended) =>+ {+ tracing::info!("[RECONCILE] Case 26: No file, has resume, suspended → Paused (compare resume)");++ let _ = std::fs::remove_file(&crc_path_buf);++ if let Ok(new_resume) = suspended_task.cancel_by_producing_resume_data().await {+ let existing_bytes = get_resume_bytes(resume_path).unwrap_or(0);+ let new_bytes = new_resume.bytes_received.unwrap_or(0);++ tracing::info!("[RECONCILE] Resume bytes: existing={} vs new={}", existing_bytes, new_bytes);++ if new_bytes > existing_bytes {+ let _ = new_resume.save_to_file(resume_path);+ }+ }+ InternalDownloadState::Paused {+ part_path: resume_path.to_path_buf(),+ }+ },++ // Cases 27-28: No file + Completed task → Keep task alive for delegate callback+ (CheckedFileState::Missing, _, Some(completed_task))+ if matches!(completed_task.state(), NSURLSessionTaskState::Completed) =>+ {+ tracing::info!("[RECONCILE] Cases 27-28: No file, completed task → Downloading (awaiting delegate)");++ let _ = std::fs::remove_file(&crc_path_buf);+ if resume_file == ResumeDataFileState::Exists {+ let _ = std::fs::remove_file(resume_path);+ }+ // Don't cancel! Keep task alive so delegate can move the file+ InternalDownloadState::Downloading {+ task: Retained::clone(completed_task),+ }+ },++ // Cases 29-30: No file + Canceling task → NotDownloaded+ (CheckedFileState::Missing, _, Some(canceling_task)) => {+ tracing::info!("[RECONCILE] Cases 29-30: No file, canceling → NotDownloaded");++ let _ = std::fs::remove_file(&crc_path_buf);+ if resume_file == ResumeDataFileState::Exists {+ let _ = std::fs::remove_file(resume_path);+ }+ canceling_task.cancel();+ InternalDownloadState::NotDownloaded+ },+ };++ tracing::info!("[RECONCILE] → Final state: {:?}", result);++ result+}++/// Extract bytes_received from a resume data file+fn get_resume_bytes(resume_path: &Path) -> Option<u64> {+ URLSessionDownloadTaskResumeData::from_file(resume_path).ok().and_then(|data| data.bytes_received)+}diff --git a/crates/download-manager/src/managers/apple/url_session_task_ext.rs b/crates/download-manager/src/managers/apple/url_session_task_ext.rsnew file mode 100644index 000000000..e7accaf94--- /dev/null+++ b/crates/download-manager/src/managers/apple/url_session_task_ext.rs@@ -0,0 +1,39 @@+use crate::{TaskID, prelude::*};++#[allow(unused)]+pub trait UrlSessionTaskExt {+ fn task_identifier(&self) -> TaskID;+ fn task_description(&self) -> Option<String>;+ fn set_task_description(+ &self,+ s: &str,+ );+ fn url_string(&self) -> Option<String>;+}++impl UrlSessionTaskExt for NSURLSessionTask {+ fn task_identifier(&self) -> TaskID {+ unsafe { msg_send![self, taskIdentifier] }+ }++ fn task_description(&self) -> Option<String> {+ let desc_opt = self.taskDescription();+ desc_opt.map(|d| d.to_string())+ }++ fn set_task_description(+ &self,+ s: &str,+ ) {+ let ns = NSString::from_str(s);+ self.setTaskDescription(Some(&ns));+ }++ fn url_string(&self) -> Option<String> {+ self.originalRequest()+ .or_else(|| self.currentRequest())+ .and_then(|req| req.URL())+ .and_then(|url| url.absoluteString())+ .map(|s| s.to_string())+ }+}diff --git a/crates/download-manager/src/managers/mod.rs b/crates/download-manager/src/managers/mod.rsnew file mode 100644index 000000000..b2cb87575--- /dev/null+++ b/crates/download-manager/src/managers/mod.rs@@ -0,0 +1,3 @@+#[cfg(target_vendor = "apple")]+pub mod apple;+pub mod universal;diff --git a/crates/download-manager/src/managers/universal/async_fetcher_config.rs b/crates/download-manager/src/managers/universal/async_fetcher_config.rsnew file mode 100644index 000000000..076763010--- /dev/null+++ b/crates/download-manager/src/managers/universal/async_fetcher_config.rs@@ -0,0 +1,55 @@+#[derive(Debug, Clone)]+pub struct AsyncFetcherConfig {+ pub connections_per_file: u16,+ pub retries: u16,+ pub progress_interval_ms: u64,+}++impl Default for AsyncFetcherConfig {+ fn default() -> Self {+ Self {+ connections_per_file: 4,+ retries: 3,+ progress_interval_ms: 500,+ }+ }+}++impl AsyncFetcherConfig {+ #[allow(unused)]+ pub fn new(+ connections_per_file: u16,+ retries: u16,+ progress_interval_ms: u64,+ ) -> Self {+ Self {+ connections_per_file,+ retries,+ progress_interval_ms,+ }+ }++ pub fn with_connections_per_file(+ mut self,+ connections_per_file: u16,+ ) -> Self {+ self.connections_per_file = connections_per_file;+ self+ }++ pub fn with_retries(+ mut self,+ retries: u16,+ ) -> Self {+ self.retries = retries;+ self+ }++ pub fn with_progress_interval_ms(+ mut self,+ progress_interval_ms: u64,+ ) -> Self {+ self.progress_interval_ms = progress_interval_ms;+ self+ }+}diff --git a/crates/download-manager/src/managers/universal/async_fetcher_download_manager.rs b/crates/download-manager/src/managers/universal/async_fetcher_download_manager.rsnew file mode 100644index 000000000..b319beaca--- /dev/null+++ b/crates/download-manager/src/managers/universal/async_fetcher_download_manager.rs@@ -0,0 +1,209 @@+use std::collections::HashMap;++use tokio_stream::wrappers::BroadcastStream as TokioBroadcastStream;++use crate::{+ Arc, DownloadError, DownloadId, FileCheck, FileDownloadEvent, FileDownloadManager,+ FileDownloadTask as FileDownloadTaskTrait, Path, PathBuf, TokioBroadcastSender, TokioHandle, TokioMutex,+ compute_download_id,+ managers::universal::{AsyncFetcherConfig, FileDownloadTask},+ tokio_broadcast_channel,+};++type TaskCache = Arc<TokioMutex<HashMap<DownloadId, Arc<dyn FileDownloadTaskTrait>>>>;++#[derive(Debug, Clone)]+pub struct AsyncFetcherDownloadManager {+ manager_id: String,+ pub config: AsyncFetcherConfig,+ pub global_broadcast_sender: Arc<TokioBroadcastSender<(DownloadId, FileDownloadEvent)>>,+ tokio_handle: TokioHandle,+ task_cache: TaskCache,+}++impl AsyncFetcherDownloadManager {+ fn generate_manager_id() -> String {+ #[cfg(target_vendor = "apple")]+ {+ use crate::NSBundle;+ let bundle_id = NSBundle::mainBundle().bundleIdentifier().unwrap_or_default().to_string();++ if bundle_id.is_empty() {+ "mirai.universal".to_string()+ } else {+ format!("{}.mirai.universal", bundle_id)+ }+ }+ #[cfg(not(target_vendor = "apple"))]+ {+ "mirai.universal".to_string()+ }+ }++ #[allow(unused)]+ pub fn manager_id(&self) -> &str {+ &self.manager_id+ }++ #[allow(unused)]+ pub async fn new(+ config: AsyncFetcherConfig,+ tokio_handle: TokioHandle,+ ) -> Result<Self, DownloadError> {+ Self::new_with_manager_id(config, tokio_handle, None).await+ }++ pub async fn new_with_manager_id(+ config: AsyncFetcherConfig,+ tokio_handle: TokioHandle,+ custom_manager_id: Option<String>,+ ) -> Result<Self, DownloadError> {+ let manager_id = custom_manager_id.unwrap_or_else(|| Self::generate_manager_id());++ let (global_broadcast_sender, _global_broadcast_receiver) =+ tokio_broadcast_channel::<(DownloadId, FileDownloadEvent)>(256);+ let global_broadcast_sender = Arc::new(global_broadcast_sender);++ let task_cache: TaskCache = Arc::new(TokioMutex::new(HashMap::new()));++ let manager = Self {+ manager_id: manager_id.clone(),+ config,+ global_broadcast_sender,+ tokio_handle,+ task_cache,+ };++ tracing::debug!(+ "[DOWNLOAD_MANAGER] AsyncFetcherDownloadManager created with tokio handle, manager_id={}",+ manager_id+ );++ Ok(manager)+ }+}++#[async_trait::async_trait]+impl FileDownloadManager for AsyncFetcherDownloadManager {+ #[allow(unused)]+ fn manager_id(&self) -> &str {+ &self.manager_id+ }++ fn subscribe_to_all_downloads(&self) -> TokioBroadcastStream<(DownloadId, FileDownloadEvent)> {+ TokioBroadcastStream::new(self.global_broadcast_sender.subscribe())+ }++ fn global_broadcast_sender(&self) -> Arc<TokioBroadcastSender<(DownloadId, FileDownloadEvent)>> {+ self.global_broadcast_sender.clone()+ }++ async fn get_all_file_tasks(&self) -> Result<Vec<Arc<dyn FileDownloadTaskTrait>>, DownloadError> {+ let task_cache_guard = self.task_cache.lock().await;+ Ok(task_cache_guard.values().cloned().collect())+ }++ async fn file_download_task(+ &self,+ source_url: &String,+ destination_path: &Path,+ file_check: FileCheck,+ expected_bytes: Option<u64>,+ ) -> Result<Arc<dyn FileDownloadTaskTrait>, DownloadError> {+ use crate::managers::universal::async_fetcher_state_reducer::{+ check_crc_file_exists, check_file_exists, check_part_file_exists, reconcile_to_internal_state,+ reduce_to_checked_file_state, reduce_to_file_download_state,+ };++ let download_id = compute_download_id(source_url, destination_path);++ {+ let task_cache_guard = self.task_cache.lock().await;+ if let Some(cached_task) = task_cache_guard.get(&download_id) {+ return Ok(cached_task.clone());+ }+ }++ // Lock presence will be reflected by reduction, no error on create++ let downloaded_file_state = check_file_exists(destination_path);+ let crc_file_path = PathBuf::from(format!("{}.crc", destination_path.display()));+ let crc_file_state = check_crc_file_exists(&crc_file_path);+ let part_file_path = destination_path.with_extension("part");+ let part_file_state = check_part_file_exists(&part_file_path);++ let expected_crc = match &file_check {+ FileCheck::CRC(crc_hash) => Some(crc_hash.as_str()),+ FileCheck::None => None,+ };++ tracing::info!(+ "[MANAGER:AF] reduce_to_checked_file_state inputs: downloaded={:?}, crc={:?}, dest={}, expected_crc={:?}",+ downloaded_file_state,+ crc_file_state,+ destination_path.display(),+ expected_crc+ );+ let checked_file_state =+ reduce_to_checked_file_state(downloaded_file_state, crc_file_state, destination_path, expected_crc);++ tracing::info!(+ "[MANAGER:AF] reconcile_to_internal_state inputs: checked={:?}, part={:?}, dest={}, crc_path={}, part_path={}, expected_bytes={:?}",+ checked_file_state,+ part_file_state,+ destination_path.display(),+ crc_file_path.display(),+ part_file_path.display(),+ expected_bytes+ );+ let internal_state = reconcile_to_internal_state(+ checked_file_state,+ part_file_state,+ destination_path,+ &crc_file_path,+ &part_file_path,+ expected_bytes,+ expected_crc,+ )+ .await;++ tracing::info!(+ "[MANAGER:AF] reduce_to_file_download_state inputs: checked={:?}, part={:?}, dest={}, part_path={}, expected_bytes={:?}, manager_id={}",+ checked_file_state,+ part_file_state,+ destination_path.display(),+ part_file_path.display(),+ expected_bytes,+ self.manager_id+ );+ let file_download_state = reduce_to_file_download_state(+ checked_file_state,+ part_file_state,+ destination_path,+ &part_file_path,+ expected_bytes,+ &self.manager_id,+ );++ tracing::info!("[MANAGER:AF] initial states: internal={:?}, display={:?}", internal_state, file_download_state);++ let file_task: Arc<dyn FileDownloadTaskTrait> = Arc::new(FileDownloadTask::new(+ download_id,+ source_url.clone(),+ destination_path.to_path_buf(),+ file_check,+ self.manager_id.clone(),+ expected_bytes,+ internal_state,+ file_download_state,+ self.config.clone(),+ self.tokio_handle.clone(),+ ));++ tracing::debug!("[MANAGER] Starting listener for download_id={}", download_id);+ file_task.start_listening((*self.global_broadcast_sender).clone()).await;++ self.task_cache.lock().await.insert(download_id, file_task.clone());+ Ok(file_task)+ }+}diff --git a/crates/download-manager/src/managers/universal/async_fetcher_file_download_task.rs b/crates/download-manager/src/managers/universal/async_fetcher_file_download_task.rsnew file mode 100644index 000000000..85bd2c860--- /dev/null+++ b/crates/download-manager/src/managers/universal/async_fetcher_file_download_task.rs@@ -0,0 +1,731 @@+use async_fetcher::{FetchEvent, Fetcher, Source};+use async_shutdown::ShutdownManager;+use tokio::sync::mpsc;+use tokio_stream::{+ StreamExt as TokioStreamExt,+ wrappers::{BroadcastStream as TokioBroadcastStream, UnboundedReceiverStream},+};++use crate::{+ Arc, DownloadError, DownloadId, FileCheck, FileDownloadEvent, FileDownloadPhase, FileDownloadState,+ FileDownloadTask as FileDownloadTaskTrait, InternalDownloadState, LockFileState, PathBuf, StateTransitionAction,+ TokioBroadcastSender, TokioHandle, TokioJoinHandle, TokioMutex, Uuid, acquire_lock, calculate_and_verify_crc,+ check_lock_file, crc_utils, fs, managers::universal::AsyncFetcherConfig, release_lock, tokio_broadcast_channel,+};++pub struct FileDownloadTask {+ pub download_id: Uuid,+ pub source_url: String,+ pub destination: PathBuf,+ pub file_check: FileCheck,+ pub manager_id: String,+ expected_bytes: Option<u64>,+ state: Arc<TokioMutex<FileDownloadState>>,+ broadcast_sender: TokioBroadcastSender<FileDownloadState>,+ pub internal_state: TokioMutex<InternalDownloadState<()>>,+ config: AsyncFetcherConfig,+ shutdown_manager: Arc<TokioMutex<Option<ShutdownManager<()>>>>,+ fetcher_task: Arc<TokioMutex<Option<TokioJoinHandle<()>>>>,+ listener_task: Arc<TokioMutex<Option<TokioJoinHandle<()>>>>,+ tokio_handle: TokioHandle,+ completed_tx: tokio::sync::watch::Sender<bool>,+ _completed_rx: tokio::sync::watch::Receiver<bool>,+}++impl std::fmt::Debug for FileDownloadTask {+ fn fmt(+ &self,+ f: &mut std::fmt::Formatter<'_>,+ ) -> std::fmt::Result {+ f.debug_struct("FileDownloadTask")+ .field("download_id", &self.download_id)+ .field("source_url", &self.source_url)+ .field("destination", &self.destination)+ .field("file_check", &self.file_check)+ .finish()+ }+}++impl FileDownloadTask {+ pub fn new(+ download_id: Uuid,+ source_url: String,+ destination: PathBuf,+ file_check: FileCheck,+ manager_id: String,+ expected_bytes: Option<u64>,+ internal_state: InternalDownloadState<()>,+ initial_state: FileDownloadState,+ config: AsyncFetcherConfig,+ tokio_handle: TokioHandle,+ ) -> Self {+ let (broadcast_sender, _receiver) = tokio_broadcast_channel::<FileDownloadState>(64);+ let (completed_tx, completed_rx) = tokio::sync::watch::channel(false);+ Self {+ download_id,+ source_url,+ destination,+ file_check,+ manager_id,+ expected_bytes,+ state: Arc::new(TokioMutex::new(initial_state)),+ broadcast_sender,+ internal_state: TokioMutex::new(internal_state),+ config,+ shutdown_manager: Arc::new(TokioMutex::new(None)),+ fetcher_task: Arc::new(TokioMutex::new(None)),+ listener_task: Arc::new(TokioMutex::new(None)),+ tokio_handle,+ completed_tx,+ _completed_rx: completed_rx,+ }+ }++ fn lock_path(&self) -> PathBuf {+ PathBuf::from(format!("{}.lock", self.destination.display()))+ }++ async fn reconcile_lock_state(&self) {+ let lock_path = self.lock_path();+ let lock_state = check_lock_file(&lock_path, &self.manager_id, std::process::id());++ let is_downloading = {+ let guard = self.internal_state.lock().await;+ matches!(*guard, InternalDownloadState::Downloading { .. })+ };++ if is_downloading {+ match lock_state {+ LockFileState::OwnedByUs(_) => {},+ LockFileState::Missing | LockFileState::OwnedBySameAppOldProcess(_) | LockFileState::Stale(_) => {+ if let Err(e) = acquire_lock(&self.tokio_handle, &lock_path, &self.manager_id).await {+ tracing::warn!(+ "[FILE_TASK] Failed to acquire lock during reconciliation {}: {}",+ lock_path.display(),+ e+ );+ }+ },+ LockFileState::OwnedByOtherApp(info) => {+ tracing::warn!("[FILE_TASK] Another manager owns the lock ({}).", info.manager_id);+ },+ }+ } else {+ match lock_state {+ LockFileState::OwnedByUs(_) | LockFileState::OwnedBySameAppOldProcess(_) | LockFileState::Stale(_) => {+ let _ = release_lock(&self.tokio_handle, &lock_path).await;+ },+ _ => {},+ }+ }+ }++ pub fn broadcast_sender(&self) -> TokioBroadcastSender<FileDownloadState> {+ self.broadcast_sender.clone()+ }++ pub async fn update_state_and_broadcast(+ &self,+ new_state: FileDownloadState,+ ) {+ let mut state_guard = self.state.lock().await;+ let current_bytes = state_guard.downloaded_bytes;+ let new_bytes = new_state.downloaded_bytes;++ tracing::debug!(+ "[FILE_TASK] update_state_and_broadcast: id={}, current={:?}({} bytes), new={:?}({} bytes)",+ self.download_id,+ state_guard.phase,+ current_bytes,+ new_state.phase,+ new_bytes+ );++ if new_bytes < current_bytes+ && !matches!(+ new_state.phase,+ FileDownloadPhase::Downloaded | FileDownloadPhase::Error(_) | FileDownloadPhase::NotDownloaded+ )+ {+ tracing::debug!("[FILE_TASK] ⚠️ Rejected backwards progress: {} < {}", new_bytes, current_bytes);+ return;+ }++ *state_guard = new_state.clone();+ drop(state_guard);++ let receiver_count = self.broadcast_sender.receiver_count();++ if receiver_count == 0 {+ tracing::debug!("[FILE_TASK] No receivers active, skipping broadcast (likely shutdown)");+ return;+ }++ tracing::debug!("[FILE_TASK] ✓ State updated and broadcasting to {} receiver(s)", receiver_count);++ let _ = self.broadcast_sender.send(new_state.clone());+ }++ pub async fn download(&self) -> Result<(), DownloadError> {+ let mut internal_state_guard = self.internal_state.lock().await;+ internal_state_guard.can_transition(StateTransitionAction::Download)?;++ tracing::debug!(+ "[FILE_TASK] download() called: id={}, internal_state={:?}",+ self.download_id,+ match &*internal_state_guard {+ InternalDownloadState::NotDownloaded => "NotDownloaded",+ InternalDownloadState::Downloading {+ ..+ } => "Downloading",+ InternalDownloadState::Paused {+ ..+ } => "Paused",+ InternalDownloadState::Downloaded {+ ..+ } => "Downloaded",+ }+ );++ match &*internal_state_guard {+ InternalDownloadState::NotDownloaded+ | InternalDownloadState::Paused {+ ..+ } => {+ let part_path = self.destination.with_extension("part");++ if let Some(parent) = self.destination.parent() {+ tokio::fs::create_dir_all(parent).await.map_err(|e| DownloadError::IOError(e.to_string()))?;+ }++ let resume_from_bytes = if part_path.exists() {+ tokio::fs::metadata(&part_path).await.ok().map(|m| m.len()).unwrap_or(0)+ } else {+ 0+ };++ let shutdown = ShutdownManager::new();+ *self.shutdown_manager.lock().await = Some(shutdown.clone());++ let (events_tx, events_rx) = mpsc::unbounded_channel();++ let fetcher = Fetcher::<()>::default()+ .connections_per_file(self.config.connections_per_file)+ .retries(self.config.retries)+ .progress_interval(self.config.progress_interval_ms)+ .shutdown(shutdown.clone())+ .events(events_tx)+ .build();++ let source = Source::builder(Arc::from(self.destination.clone()), self.source_url.clone().into())+ .partial(Arc::from(part_path.clone()))+ .build();++ let download_id = self.download_id;+ let destination = self.destination.clone();+ let expected_crc = match &self.file_check {+ FileCheck::CRC(crc) => Some(crc.clone()),+ FileCheck::None => None,+ };+ let expected_bytes = self.expected_bytes;+ let broadcast_sender = self.broadcast_sender.clone();++ *internal_state_guard = InternalDownloadState::Downloading {+ task: (),+ };+ drop(internal_state_guard);++ let downloading_state = FileDownloadState::downloading(resume_from_bytes, 0);+ self.update_state_and_broadcast(downloading_state).await;+ // Ensure lock acquired once downloading+ self.reconcile_lock_state().await;++ let _task = self.tokio_handle.spawn(async move {+ tracing::info!("[FETCHER] Event processing task started for id={}", download_id);+ let mut total_size: Option<u64> = None;+ let mut downloaded_bytes = resume_from_bytes;++ let mut evt_rx = UnboundedReceiverStream::new(events_rx);+ while let Some((_path, _data, evt)) = evt_rx.next().await {+ tracing::debug!(+ "[FETCHER] Received event: id={}, event={:?}",+ download_id,+ std::mem::discriminant(&evt)+ );+ match evt {+ FetchEvent::Fetching => {+ tracing::debug!("[FETCHER] Started fetching: {}", download_id);+ },+ FetchEvent::ContentLength(len) => {+ // Content-Length is the remaining bytes to download+ // Add resume_from_bytes to get total file size+ total_size = Some(len + resume_from_bytes);+ tracing::debug!(+ "[FETCHER] Content length: {} bytes (remaining: {}, resumed: {})",+ len + resume_from_bytes,+ len,+ resume_from_bytes+ );+ },+ FetchEvent::Progress(bytes) => {+ // Progress reports incremental bytes since last update+ // We need to accumulate them to get total downloaded+ downloaded_bytes += bytes;++ let total = total_size.unwrap_or(expected_bytes.unwrap_or(downloaded_bytes));+ let progress_state = FileDownloadState::downloading(downloaded_bytes, total);+ let receiver_count = broadcast_sender.receiver_count();+ tracing::info!(+ "[FETCHER] Progress: id={}, bytes={}/{}, receivers={}",+ download_id,+ downloaded_bytes,+ total,+ receiver_count+ );+ let _ = broadcast_sender.send(progress_state);+ },+ FetchEvent::Fetched => {+ tracing::debug!("[FETCHER] Download completed: {}", download_id);++ // async-fetcher automatically moves the .part file to destination+ // We just need to wait a moment for the file system to catch up+ if !destination.exists() {+ tracing::warn!(+ "[FETCHER] Destination file not yet visible after Fetched event: {}",+ destination.display()+ );+ // Give a brief moment for filesystem operations to complete+ tokio::time::sleep(tokio::time::Duration::from_millis(100)).await;++ if !destination.exists() {+ tracing::error!(+ "[FETCHER] Destination file still missing after wait: {}",+ destination.display()+ );+ let error_state = FileDownloadState {+ phase: FileDownloadPhase::Error(+ "Download completed but file not found at destination".to_string(),+ ),+ downloaded_bytes: 0,+ total_bytes: 0,+ };+ let _ = broadcast_sender.send(error_state);+ return;+ }+ }++ if let Some(ref crc) = expected_crc {+ tracing::debug!(+ "[FETCHER] Verifying CRC for {}, expected: {}",+ destination.display(),+ crc+ );++ if let Ok(metadata) = std::fs::metadata(&destination) {+ tracing::debug!("[FETCHER] File size: {} bytes", metadata.len());+ }++ match calculate_and_verify_crc(&destination, crc) {+ Ok(true) => {+ tracing::debug!("[FETCHER] CRC verification passed");++ // Save CRC file for future verification+ if let Err(e) = crc_utils::save_crc_file(&destination, crc) {+ tracing::warn!("[FETCHER] Failed to save CRC file: {}", e);+ }++ let final_bytes = downloaded_bytes;+ let total = total_size.unwrap_or(expected_bytes.unwrap_or(final_bytes));+ let completed_state = FileDownloadState {+ phase: FileDownloadPhase::Downloaded,+ downloaded_bytes: final_bytes,+ total_bytes: total,+ };+ let _ = broadcast_sender.send(completed_state);+ },+ Ok(false) => {+ tracing::error!("[FETCHER] CRC verification failed - checksum mismatch");+ let _ = fs::remove_file(&destination);+ let error_state = FileDownloadState {+ phase: FileDownloadPhase::Error("CRC verification failed".to_string()),+ downloaded_bytes: 0,+ total_bytes: 0,+ };+ let _ = broadcast_sender.send(error_state);+ },+ Err(e) => {+ tracing::error!("[FETCHER] CRC verification error: {}", e);+ let _ = fs::remove_file(&destination);+ let error_state = FileDownloadState {+ phase: FileDownloadPhase::Error(format!(+ "CRC verification error: {}",+ e+ )),+ downloaded_bytes: 0,+ total_bytes: 0,+ };+ let _ = broadcast_sender.send(error_state);+ },+ }+ } else {+ let final_bytes = downloaded_bytes;+ let total = total_size.unwrap_or(expected_bytes.unwrap_or(final_bytes));+ let completed_state = FileDownloadState {+ phase: FileDownloadPhase::Downloaded,+ downloaded_bytes: final_bytes,+ total_bytes: total,+ };+ let _ = broadcast_sender.send(completed_state);+ }+ },+ FetchEvent::Retrying => {+ tracing::debug!("[FETCHER] Retrying download: {}", download_id);+ },+ }+ }+ });++ let source_stream = futures_util::stream::once(async { (source, Arc::new(())) });+ let fetch_task = fetcher.stream_from(source_stream, 1);+ let broadcast_clone = self.broadcast_sender.clone();+ let download_id_clone = self.download_id;++ tracing::info!("[FETCHER] Starting fetch task for id={}", download_id);++ self.tokio_handle.spawn(async move {+ futures_util::pin_mut!(fetch_task);+ while let Some((_path, _data, result)) = fetch_task.next().await {+ if let Err(e) = result {+ tracing::error!("[FETCHER] Error downloading {}: {}", download_id_clone, e);+ let error_state = FileDownloadState {+ phase: FileDownloadPhase::Error(e.to_string()),+ downloaded_bytes: 0,+ total_bytes: 0,+ };+ let _ = broadcast_clone.send(error_state);+ }+ }+ });++ Ok(())+ },+ InternalDownloadState::Downloading {+ ..+ } => {+ tracing::debug!("[FILE_TASK] Already downloading");+ Ok(())+ },+ InternalDownloadState::Downloaded {+ ..+ } => {+ tracing::debug!("[FILE_TASK] Already downloaded, broadcasting current state");+ let current_state = self.state.lock().await.clone();+ self.update_state_and_broadcast(current_state).await;+ let _ = self.completed_tx.send(true);+ Ok(())+ },+ }+ }++ pub async fn pause(&self) -> Result<(), DownloadError> {+ let mut internal_state_guard = self.internal_state.lock().await;+ internal_state_guard.can_transition(StateTransitionAction::Pause)?;++ tracing::debug!(+ "[FILE_TASK] pause() called: id={}, internal_state={:?}",+ self.download_id,+ match &*internal_state_guard {+ InternalDownloadState::NotDownloaded => "NotDownloaded",+ InternalDownloadState::Downloading {+ ..+ } => "Downloading",+ InternalDownloadState::Paused {+ ..+ } => "Paused",+ InternalDownloadState::Downloaded {+ ..+ } => "Downloaded",+ }+ );++ match &*internal_state_guard {+ InternalDownloadState::Downloading {+ ..+ } => {+ tracing::debug!("[FILE_TASK] Triggering shutdown for pause...");++ if let Some(shutdown) = self.shutdown_manager.lock().await.as_ref() {+ let _ = shutdown.trigger_shutdown(());+ }++ let part_path = self.destination.with_extension("part");+ let downloaded_bytes = tokio::fs::metadata(&part_path).await.ok().map(|m| m.len()).unwrap_or(0);+ let total_bytes = self.expected_bytes.unwrap_or(downloaded_bytes);++ *internal_state_guard = InternalDownloadState::Paused {+ part_path: part_path.clone(),+ };+ drop(internal_state_guard);++ let paused_state = FileDownloadState::paused(downloaded_bytes, total_bytes);+ self.update_state_and_broadcast(paused_state).await;++ if let Some(task) = self.fetcher_task.lock().await.take() {+ task.abort();+ let _ = task.await;+ }+ // Reconcile lock (release)+ self.reconcile_lock_state().await;++ Ok(())+ },+ InternalDownloadState::Downloaded {+ ..+ } => Ok(()),+ _ => Ok(()),+ }+ }++ pub async fn cancel(&self) -> Result<(), DownloadError> {+ let mut internal_state_guard = self.internal_state.lock().await;+ internal_state_guard.can_transition(StateTransitionAction::Cancel)?;++ tracing::debug!(+ "[FILE_TASK] cancel() called: id={}, internal_state before={:?}",+ self.download_id,+ match &*internal_state_guard {+ InternalDownloadState::NotDownloaded => "NotDownloaded",+ InternalDownloadState::Downloading {+ ..+ } => "Downloading",+ InternalDownloadState::Paused {+ ..+ } => "Paused",+ InternalDownloadState::Downloaded {+ ..+ } => "Downloaded",+ }+ );++ match &*internal_state_guard {+ InternalDownloadState::Downloading {+ ..+ } => {+ if let Some(shutdown) = self.shutdown_manager.lock().await.as_ref() {+ let _ = shutdown.trigger_shutdown(());+ }++ if let Some(task) = self.fetcher_task.lock().await.take() {+ task.abort();+ let _ = task.await;+ }+ },+ InternalDownloadState::Paused {+ ..+ } => {},+ _ => {},+ }++ let part_path = self.destination.with_extension("part");+ let _ = fs::remove_file(&part_path);++ *internal_state_guard = InternalDownloadState::NotDownloaded;+ drop(internal_state_guard);++ tracing::debug!("[FILE_TASK] cancel() completed: id={}, internal_state now=NotDownloaded", self.download_id);++ let not_downloaded_state = FileDownloadState::not_downloaded(0);+ self.update_state_and_broadcast(not_downloaded_state).await;+ // Ensure lock released on cancel+ self.reconcile_lock_state().await;+ Ok(())+ }++ pub async fn state(&self) -> FileDownloadState {+ let state = self.state.lock().await.clone();+ state+ }++ pub async fn progress(&self) -> Result<TokioBroadcastStream<FileDownloadState>, DownloadError> {+ Ok(TokioBroadcastStream::new(self.broadcast_sender.subscribe()))+ }++ pub async fn wait(&self) {+ let mut rx = self.completed_tx.subscribe();+ if *rx.borrow() {+ return;+ }+ let _ = rx.changed().await;+ }++ pub async fn start_listening(+ &self,+ global_broadcast: TokioBroadcastSender<(DownloadId, FileDownloadEvent)>,+ ) {+ let mut listener_guard = self.listener_task.lock().await;+ if listener_guard.is_some() {+ tracing::debug!("[FILE_TASK] start_listening: Already listening for id={}", self.download_id);+ return;+ }++ tracing::debug!("[FILE_TASK] start_listening: Starting listener for id={}", self.download_id);++ let download_id = self.download_id;+ let destination = self.destination.clone();+ let mut local_stream = TokioBroadcastStream::new(self.broadcast_sender.subscribe());+ let tokio_handle = self.tokio_handle.clone();+ let tokio_handle_for_closure = tokio_handle.clone();++ let manager_id = self.manager_id.clone();+ let completed = self.completed_tx.clone();+ let handle = tokio_handle.spawn(async move {+ tracing::debug!("[FILE_TASK] Listener task started for id={}", download_id);++ let mut last_downloaded_bytes = 0u64;++ while let Some(result) = tokio_stream::StreamExt::next(&mut local_stream).await {+ if let Ok(state) = result {+ tracing::debug!("[FILE_TASK] Forwarding event for download_id={}: {:?}", download_id, state.phase);++ match state.phase {+ FileDownloadPhase::Downloading => {+ let bytes_written = state.downloaded_bytes.saturating_sub(last_downloaded_bytes);+ last_downloaded_bytes = state.downloaded_bytes;+ let event = FileDownloadEvent::ProgressUpdate {+ bytes_written,+ total_bytes_written: state.downloaded_bytes,+ total_bytes_expected: state.total_bytes,+ };+ let _ = global_broadcast.send((download_id, event));+ },+ FileDownloadPhase::Downloaded => {+ // Reconcile lock after completion+ let lock_path = PathBuf::from(format!("{}.lock", destination.display()));+ let _ = tokio_handle_for_closure+ .clone()+ .spawn(async move {+ let lock_state = check_lock_file(&lock_path, &manager_id, std::process::id());+ match lock_state {+ LockFileState::OwnedByUs(_)+ | LockFileState::OwnedBySameAppOldProcess(_)+ | LockFileState::Stale(_) => {+ let _ = release_lock(&tokio_handle_for_closure, &lock_path).await;+ },+ _ => {},+ }+ })+ .await;++ let event = FileDownloadEvent::DownloadCompleted {+ tmp_path: destination.clone(),+ final_destination: destination.clone(),+ };+ let _ = global_broadcast.send((download_id, event));+ tracing::debug!("[FILE_TASK] Sent DownloadCompleted event for id={}", download_id);++ let _ = completed.send(true);+ break;+ },+ FileDownloadPhase::Error(msg) => {+ // Reconcile lock on error+ let lock_path = PathBuf::from(format!("{}.lock", destination.display()));+ let _ = tokio_handle_for_closure+ .clone()+ .spawn(async move {+ let lock_state = check_lock_file(&lock_path, &manager_id, std::process::id());+ match lock_state {+ LockFileState::OwnedByUs(_)+ | LockFileState::OwnedBySameAppOldProcess(_)+ | LockFileState::Stale(_) => {+ let _ = release_lock(&tokio_handle_for_closure, &lock_path).await;+ },+ _ => {},+ }+ })+ .await;++ let event = FileDownloadEvent::Error {+ message: msg,+ };+ let _ = global_broadcast.send((download_id, event));++ let _ = completed.send(true);+ break;+ },+ _ => {},+ }+ }+ }++ tracing::debug!("[FILE_TASK] Listener task ended for id={}", download_id);+ });++ *listener_guard = Some(handle);+ }++ pub async fn stop_listening(&self) {+ let mut listener_guard = self.listener_task.lock().await;+ if let Some(handle) = listener_guard.take() {+ handle.abort();+ let _ = handle.await;+ }+ }+}++#[async_trait::async_trait]+impl FileDownloadTaskTrait for FileDownloadTask {+ fn download_id(&self) -> DownloadId {+ self.download_id+ }++ fn source_url(&self) -> &str {+ &self.source_url+ }++ fn destination(&self) -> &std::path::Path {+ &self.destination+ }++ fn file_check(&self) -> &FileCheck {+ &self.file_check+ }++ fn broadcast_sender(&self) -> TokioBroadcastSender<FileDownloadState> {+ self.broadcast_sender()+ }++ async fn download(&self) -> Result<(), DownloadError> {+ self.download().await+ }++ async fn pause(&self) -> Result<(), DownloadError> {+ self.pause().await+ }++ async fn cancel(&self) -> Result<(), DownloadError> {+ self.cancel().await+ }++ async fn state(&self) -> FileDownloadState {+ self.state().await+ }++ async fn progress(&self) -> Result<TokioBroadcastStream<FileDownloadState>, DownloadError> {+ self.progress().await+ }++ async fn start_listening(+ &self,+ global_broadcast: TokioBroadcastSender<(DownloadId, FileDownloadEvent)>,+ ) {+ self.start_listening(global_broadcast).await+ }++ async fn stop_listening(&self) {+ self.stop_listening().await+ }++ async fn wait(&self) {+ self.wait().await+ }+}diff --git a/crates/download-manager/src/managers/universal/async_fetcher_state_reducer.rs b/crates/download-manager/src/managers/universal/async_fetcher_state_reducer.rsnew file mode 100644index 000000000..291a8544f--- /dev/null+++ b/crates/download-manager/src/managers/universal/async_fetcher_state_reducer.rs@@ -0,0 +1,279 @@+use crate::{+ CheckedFileState, FileDownloadPhase, FileDownloadState, FileState, InternalDownloadState, LockFileState, Path,+ calculate_and_verify_crc, check_lock_file, crc_utils::save_crc_file, fs,+};++pub type PartFileState = FileState;++pub fn check_file_exists(path: &Path) -> FileState {+ if path.exists() && path.is_file() {+ tracing::debug!("[AF REDUCE] check_file_exists: EXISTS path={}", path.display());+ FileState::Exists+ } else {+ tracing::debug!("[AF REDUCE] check_file_exists: MISSING path={}", path.display());+ FileState::Missing+ }+}++pub fn check_crc_file_exists(path: &Path) -> FileState {+ if path.exists() && path.is_file() {+ FileState::Exists+ } else {+ FileState::Missing+ }+}++pub fn check_part_file_exists(path: &Path) -> PartFileState {+ if path.exists() && path.is_file() {+ FileState::Exists+ } else {+ FileState::Missing+ }+}++pub fn reduce_to_checked_file_state(+ downloaded_file_state: FileState,+ crc_file_state: FileState,+ destination: &Path,+ expected_crc: Option<&str>,+) -> CheckedFileState {+ tracing::info!(+ "[AF REDUCE_CHECKED] file={:?}, crc_file={:?}, expected_crc={:?}, path={}",+ downloaded_file_state,+ crc_file_state,+ expected_crc,+ destination.display()+ );+ match (downloaded_file_state, crc_file_state, expected_crc) {+ // File missing - nothing to validate+ (FileState::Missing, _, _) => CheckedFileState::Missing,++ // File exists with CRC file - use cached CRC (fast path)+ (FileState::Exists, FileState::Exists, Some(expected_crc_value)) => {+ let crc_path = format!("{}.crc", destination.display());+ if let Ok(saved_crc) = std::fs::read_to_string(&crc_path) {+ if saved_crc.trim() == expected_crc_value {+ tracing::debug!("[AF REDUCE_CHECKED] ✓ Using cached CRC for {}", destination.display());+ // Cached CRC matches - fast path!+ CheckedFileState::Valid+ } else {+ tracing::warn!(+ "[AF REDUCE_CHECKED] CRC mismatch in cache, recalculating for {}",+ destination.display()+ );+ // CRC mismatch in cache - recalculate to be sure+ if let Ok(is_valid) = calculate_and_verify_crc(destination, expected_crc_value) {+ if is_valid {+ tracing::debug!(+ "[AF REDUCE_CHECKED] ✓ CRC recalculation passed; updating cache for {}",+ destination.display()+ );+ // Update cache with correct value+ let _ = save_crc_file(destination, expected_crc_value);+ CheckedFileState::Valid+ } else {+ tracing::warn!(+ "[AF REDUCE_CHECKED] ✗ CRC recalculation failed for {}",+ destination.display()+ );+ CheckedFileState::Invalid+ }+ } else {+ tracing::warn!("[AF REDUCE_CHECKED] ✗ CRC recalculation errored for {}", destination.display());+ CheckedFileState::Invalid+ }+ }+ } else {+ tracing::warn!(+ "[AF REDUCE_CHECKED] Failed to read cached CRC, recalculating for {}",+ destination.display()+ );+ // Failed to read cached CRC - recalculate+ if let Ok(is_valid) = calculate_and_verify_crc(destination, expected_crc_value) {+ if is_valid {+ tracing::debug!(+ "[AF REDUCE_CHECKED] ✓ CRC recalculation passed; caching for {}",+ destination.display()+ );+ // Save the cache for next time+ let _ = save_crc_file(destination, expected_crc_value);+ CheckedFileState::Valid+ } else {+ tracing::warn!("[AF REDUCE_CHECKED] ✗ CRC recalculation failed for {}", destination.display());+ CheckedFileState::Invalid+ }+ } else {+ tracing::warn!("[AF REDUCE_CHECKED] ✗ CRC recalculation errored for {}", destination.display());+ CheckedFileState::Invalid+ }+ }+ },++ // File exists without CRC file - recalculate and cache+ (FileState::Exists, FileState::Missing, Some(expected_crc_value)) => {+ if let Ok(is_valid) = calculate_and_verify_crc(destination, expected_crc_value) {+ if is_valid {+ tracing::debug!("[AF REDUCE_CHECKED] ✓ CRC valid; caching for {}", destination.display());+ // Cache the CRC for next time+ let _ = save_crc_file(destination, expected_crc_value);+ CheckedFileState::Valid+ } else {+ tracing::warn!("[AF REDUCE_CHECKED] ✗ CRC invalid for {}", destination.display());+ CheckedFileState::Invalid+ }+ } else {+ tracing::warn!("[AF REDUCE_CHECKED] ✗ CRC calculation errored for {}", destination.display());+ CheckedFileState::Invalid+ }+ },++ // File exists without CRC requirement - consider valid+ (FileState::Exists, _, None) => CheckedFileState::Valid,+ }+}++pub async fn reconcile_to_internal_state(+ checked_file_state: CheckedFileState,+ part_file_state: PartFileState,+ destination: &Path,+ crc_file_path: &Path,+ part_file_path: &Path,+ _expected_bytes: Option<u64>,+ expected_crc: Option<&str>,+) -> InternalDownloadState<()> {+ tracing::info!(+ "[AF RECONCILE] checked={:?}, part={:?}, path={}, expected_bytes={:?}",+ checked_file_state,+ part_file_state,+ destination.display(),+ _expected_bytes+ );+ match checked_file_state {+ CheckedFileState::Valid => {+ // CRC file should already exist (created during reduce_to_checked_file_state)+ // but save it if somehow missing+ if let Some(crc_value) = expected_crc {+ if !crc_file_path.exists() {+ let _ = save_crc_file(destination, crc_value);+ }+ }+ let _ = fs::remove_file(part_file_path);+ InternalDownloadState::Downloaded {+ file_path: destination.to_path_buf(),+ crc_path: if crc_file_path.exists() {+ Some(crc_file_path.to_path_buf())+ } else {+ None+ },+ }+ },+ CheckedFileState::Invalid => {+ let _ = fs::remove_file(destination);+ let _ = fs::remove_file(crc_file_path);+ match part_file_state {+ FileState::Exists => InternalDownloadState::Paused {+ part_path: part_file_path.to_path_buf(),+ },+ FileState::Missing => InternalDownloadState::NotDownloaded,+ }+ },+ CheckedFileState::Missing => match part_file_state {+ FileState::Exists => InternalDownloadState::Paused {+ part_path: part_file_path.to_path_buf(),+ },+ FileState::Missing => InternalDownloadState::NotDownloaded,+ },+ }+}++pub fn reduce_to_file_download_state(+ checked_file_state: CheckedFileState,+ part_file_state: PartFileState,+ destination: &Path,+ part_file_path: &Path,+ expected_bytes: Option<u64>,+ manager_id: &str,+) -> FileDownloadState {+ tracing::info!(+ "[AF REDUCE_STATE] checked={:?}, part={:?}, path={}, expected_bytes={:?}",+ checked_file_state,+ part_file_state,+ destination.display(),+ expected_bytes+ );++ // Lock awareness: if the file is locked by another manager/process,+ // reflect this in the user-facing state. Lock decision belongs to reduction.+ let lock_path = std::path::PathBuf::from(format!("{}.lock", destination.display()));+ let lock_state = check_lock_file(&lock_path, manager_id, std::process::id());+ tracing::debug!(+ "[AF REDUCE_STATE] lock_path={}, lock_state={:?}, manager_id={}",+ lock_path.display(),+ lock_state,+ manager_id+ );+ if let LockFileState::OwnedByOtherApp(info) = lock_state {+ if !matches!(checked_file_state, CheckedFileState::Valid) {+ let total = expected_bytes.unwrap_or(0);+ let state = FileDownloadState {+ phase: FileDownloadPhase::LockedByOther(info.manager_id),+ downloaded_bytes: 0,+ total_bytes: total,+ };+ tracing::info!("[AF REDUCE_STATE] → Result: {:?}", state);+ return state;+ }+ }++ let state = match checked_file_state {+ CheckedFileState::Valid => {+ let file_size = std::fs::metadata(destination).ok().map(|m| m.len()).unwrap_or(0);+ FileDownloadState {+ phase: FileDownloadPhase::Downloaded,+ downloaded_bytes: file_size,+ total_bytes: file_size,+ }+ },+ CheckedFileState::Invalid => match part_file_state {+ FileState::Exists => {+ let part_size = std::fs::metadata(part_file_path).ok().map(|m| m.len()).unwrap_or(0);+ let total = expected_bytes.unwrap_or(part_size);+ FileDownloadState {+ phase: FileDownloadPhase::Paused,+ downloaded_bytes: part_size,+ total_bytes: total,+ }+ },+ FileState::Missing => {+ let total = expected_bytes.unwrap_or(0);+ FileDownloadState {+ phase: FileDownloadPhase::NotDownloaded,+ downloaded_bytes: 0,+ total_bytes: total,+ }+ },+ },+ CheckedFileState::Missing => match part_file_state {+ FileState::Exists => {+ let part_size = std::fs::metadata(part_file_path).ok().map(|m| m.len()).unwrap_or(0);+ let total = expected_bytes.unwrap_or(part_size);+ FileDownloadState {+ phase: FileDownloadPhase::Paused,+ downloaded_bytes: part_size,+ total_bytes: total,+ }+ },+ FileState::Missing => {+ let total = expected_bytes.unwrap_or(0);+ FileDownloadState {+ phase: FileDownloadPhase::NotDownloaded,+ downloaded_bytes: 0,+ total_bytes: total,+ }+ },+ },+ };++ tracing::info!("[AF REDUCE_STATE] → Result: {:?}", state);+ state+}diff --git a/crates/download-manager/src/managers/universal/mod.rs b/crates/download-manager/src/managers/universal/mod.rsnew file mode 100644index 000000000..a4ccad764--- /dev/null+++ b/crates/download-manager/src/managers/universal/mod.rs@@ -0,0 +1,8 @@+mod async_fetcher_config;+mod async_fetcher_download_manager;+mod async_fetcher_file_download_task;+mod async_fetcher_state_reducer;++pub use async_fetcher_config::AsyncFetcherConfig;+pub use async_fetcher_download_manager::AsyncFetcherDownloadManager;+pub use async_fetcher_file_download_task::FileDownloadTask;diff --git a/crates/download-manager/src/prelude/apple.rs b/crates/download-manager/src/prelude/apple.rsnew file mode 100644index 000000000..2e4ade499--- /dev/null+++ b/crates/download-manager/src/prelude/apple.rs@@ -0,0 +1,13 @@+pub use block2::{Block, RcBlock};+pub use objc2::{+ ClassType, DefinedClass, define_class, msg_send,+ rc::{Allocated, Retained, autoreleasepool},+ runtime::ProtocolObject,+};+pub use objc2_foundation::{+ NSArray, NSBundle, NSData, NSDictionary, NSError, NSKeyedUnarchiver, NSMutableDictionary, NSNumber, NSObject,+ NSObjectProtocol, NSPropertyListFormat, NSPropertyListMutabilityOptions, NSPropertyListSerialization, NSString,+ NSURL, NSURLSession, NSURLSessionConfiguration, NSURLSessionDataTask, NSURLSessionDelegate,+ NSURLSessionDownloadDelegate, NSURLSessionDownloadTask, NSURLSessionTask, NSURLSessionTaskDelegate,+ NSURLSessionTaskState, NSURLSessionUploadTask,+};diff --git a/crates/download-manager/src/prelude/mod.rs b/crates/download-manager/src/prelude/mod.rsnew file mode 100644index 000000000..8f65219b1--- /dev/null+++ b/crates/download-manager/src/prelude/mod.rs@@ -0,0 +1,7 @@+#[cfg(target_vendor = "apple")]+mod apple;+mod universal;++#[cfg(target_vendor = "apple")]+pub use crate::prelude::apple::*;+pub use crate::prelude::universal::*;diff --git a/crates/download-manager/src/prelude/universal.rs b/crates/download-manager/src/prelude/universal.rsnew file mode 100644index 000000000..463284b9b--- /dev/null+++ b/crates/download-manager/src/prelude/universal.rs@@ -0,0 +1,17 @@+pub use std::{+ ops::Deref,+ ptr::NonNull,+ sync::{Arc, Mutex},+};++pub use tokio::{+ fs,+ runtime::Handle as TokioHandle,+ sync::{+ Mutex as TokioMutex,+ broadcast::{Sender as TokioBroadcastSender, channel as tokio_broadcast_channel},+ oneshot::{Sender as TokioOneshotSender, channel as tokio_oneshot_channel},+ },+ task::JoinHandle as TokioJoinHandle,+};+pub use tokio_stream::{StreamExt as TokioStreamExt, wrappers::BroadcastStream as TokioBroadcastStream};diff --git a/crates/download-manager/src/utils.rs b/crates/download-manager/src/utils.rsnew file mode 100644index 000000000..c0b92d882--- /dev/null+++ b/crates/download-manager/src/utils.rs@@ -0,0 +1,16 @@+use crate::{Path, Uuid};++#[inline]+pub fn compute_download_id(+ url: &str,+ dest: &Path,+) -> Uuid {+ // Stable namespace for this crate; constant to ensure deterministic IDs.+ // This is a randomly generated namespace UUID v4, hardcoded.+ // Changing this will change the computed IDs across the app.+ const NAMESPACE: Uuid = Uuid::from_bytes([+ 0x7d, 0xa6, 0x81, 0xb9, 0x12, 0x5f, 0x4f, 0x6b, 0x8a, 0x1f, 0x85, 0x5c, 0x84, 0x3a, 0x3c, 0x5e,+ ]);+ let key = format!("{}\n{}", url, dest.display());+ Uuid::new_v5(&NAMESPACE, key.as_bytes())+}diff --git a/crates/download-manager/tests/common/mod.rs b/crates/download-manager/tests/common/mod.rsnew file mode 100644index 000000000..3b11e91b6--- /dev/null+++ b/crates/download-manager/tests/common/mod.rs@@ -0,0 +1,4 @@+mod test_helpers;+pub mod tracing_setup;++pub use test_helpers::TestDownloadManager;diff --git a/crates/download-manager/tests/common/test_helpers.rs b/crates/download-manager/tests/common/test_helpers.rsnew file mode 100644index 000000000..aa3e2b895--- /dev/null+++ b/crates/download-manager/tests/common/test_helpers.rs@@ -0,0 +1,98 @@+#![allow(dead_code)]++use std::path::PathBuf;++use download_manager::{FileDownloadManager, FileDownloadManagerType, create_download_manager};++pub struct TestFile {+ pub url: String,+ pub size: u64,+ pub crc: String,+}++impl Default for TestFile {+ fn default() -> Self {+ Self {+ url: "https://huggingface.co/Qwen/Qwen3.5-0.8B/resolve/main/tokenizer.json".to_string(),+ size: 12807982,+ crc: "C/tYqQ==".to_string(),+ }+ }+}++pub struct TestDownloadManager {+ pub manager: Box<dyn FileDownloadManager>,+ pub temp_dir: PathBuf,+ pub _temp_dir_guard: tempfile::TempDir,+ pub test_file: TestFile,+}++impl TestDownloadManager {+ /// Create a test manager (platform-specific implementation)+ pub async fn new(+ test_name: &str,+ r#type: FileDownloadManagerType,+ ) -> Result<Self, Box<dyn std::error::Error>> {+ let temp_dir_guard = tempfile::tempdir()?;+ let temp_dir = temp_dir_guard.path().to_path_buf();++ tracing::info!("Test download manager directory: {}", temp_dir.display());++ tracing::info!("Using {:?} manager for test: {}", r#type, test_name);+ let tokio_handle = tokio::runtime::Handle::current();+ let manager = create_download_manager(r#type, Some(test_name.to_string()), tokio_handle).await?;++ Ok(Self {+ manager,+ temp_dir,+ _temp_dir_guard: temp_dir_guard,+ test_file: TestFile::default(),+ })+ }++ pub fn dest_path(+ &self,+ filename: &str,+ ) -> PathBuf {+ self.temp_dir.join(filename)+ }++ #[allow(dead_code)]+ pub fn cleanup_artifacts(+ &self,+ filename: &str,+ ) {+ let file_path = self.dest_path(filename);+ let _ = std::fs::remove_file(&file_path);+ let _ = std::fs::remove_file(format!("{}.crc", file_path.display()));+ let _ = std::fs::remove_file(format!("{}.resume_data", file_path.display()));+ }++ #[allow(dead_code)]+ pub fn create_test_file(+ &self,+ filename: &str,+ content: &[u8],+ ) -> PathBuf {+ let file_path = self.dest_path(filename);+ std::fs::write(&file_path, content).unwrap();+ file_path+ }++ #[allow(dead_code)]+ pub fn create_crc_file(+ &self,+ filename: &str,+ crc_value: &str,+ ) {+ let file_path = self.dest_path(filename);+ let crc_path = format!("{}.crc", file_path.display());+ std::fs::write(crc_path, crc_value).unwrap();+ }++ #[allow(dead_code)]+ pub async fn cleanup(self) {+ drop(self.manager);+ tokio::time::sleep(std::time::Duration::from_millis(100)).await;+ }+}diff --git a/crates/download-manager/tests/common/tracing_setup.rs b/crates/download-manager/tests/common/tracing_setup.rsnew file mode 100644index 000000000..3debca931--- /dev/null+++ b/crates/download-manager/tests/common/tracing_setup.rs@@ -0,0 +1,33 @@+use std::sync::Once;++use tracing_subscriber::{EnvFilter, fmt, layer::SubscriberExt, util::SubscriberInitExt};++#[allow(dead_code)]+static INIT: Once = Once::new();++#[allow(dead_code)]+pub fn init_test_tracing() {+ INIT.call_once(|| {+ let timestamp = chrono::Utc::now().format("%Y%m%d_%H%M%S");++ // Use workspace root for test_logs+ let log_dir = std::env::current_dir().unwrap_or_else(|_| std::path::PathBuf::from(".")).join("test_logs");+ std::fs::create_dir_all(&log_dir).ok();++ let file_appender =+ tracing_appender::rolling::never(&log_dir, format!("file_download_manager_{}.log", timestamp));++ let (non_blocking, guard) = tracing_appender::non_blocking(file_appender);++ // Keep guard alive for entire test run+ std::mem::forget(guard);++ tracing_subscriber::registry()+ .with(EnvFilter::try_from_default_env().unwrap_or_else(|_| EnvFilter::new("debug")))+ .with(fmt::layer().with_writer(non_blocking).with_ansi(false))+ .with(fmt::layer().with_writer(std::io::stdout))+ .init();++ tracing::info!("Test logging initialized, writing to test_logs/");+ });+}diff --git a/crates/download-manager/tests/test_apple_manager_comprehensive.rs b/crates/download-manager/tests/test_apple_manager_comprehensive.rsnew file mode 100644index 000000000..477db1c49--- /dev/null+++ b/crates/download-manager/tests/test_apple_manager_comprehensive.rs@@ -0,0 +1,412 @@+mod common;++use std::time::Duration;++use common::TestDownloadManager;+use download_manager::{FileCheck, FileDownloadManagerType, FileDownloadPhase};+use indicatif::{ProgressBar, ProgressStyle};+use tokio::time::timeout;+use tokio_stream::StreamExt;++#[tokio::test(flavor = "multi_thread")]+async fn test_apple_manager_comprehensive() -> Result<(), Box<dyn std::error::Error>> {+ tracing::info!(+ "[TEST][{}] ========== COMPREHENSIVE DOWNLOAD TEST STARTING ==========",+ format!("{:?}", std::thread::current().id())+ );++ let test_manager =+ TestDownloadManager::new("test_apple_manager_comprehensive", FileDownloadManagerType::Apple).await?;+ let mgr = &test_manager.manager;+ let dest_path = test_manager.dest_path("test_file");+ tracing::info!("[TEST] Destination: {}", dest_path.display());++ // Clean up any existing artifacts from previous runs+ tracing::info!("[TEST] Cleaning up any existing artifacts...");+ let _ = std::fs::remove_file(&dest_path);+ let _ = std::fs::remove_file(format!("{}.crc", dest_path.display()));+ let _ = std::fs::remove_file(format!("{}.resume_data", dest_path.display()));+ let _ = std::fs::remove_file(format!("{}.lock", dest_path.display()));+ tracing::info!("[TEST] Starting fresh download...");++ // Create progress bar+ let pb = ProgressBar::new(0);+ pb.set_style(+ ProgressStyle::default_bar()+ .template("{spinner:.green} [{elapsed_precise}] [{bar:40.cyan/blue}] {bytes}/{total_bytes} ({percent}%, {bytes_per_sec}, eta {eta}) - {msg}")+ .unwrap()+ .progress_chars("█▓▒░ "),+ );++ // ========== PHASE 1: Download to 25% ==========+ tracing::info!("\n[TEST] ========== PHASE 1: Download to 25% ==========");+ pb.set_message("Phase 1: Downloading to 25%");++ let task = mgr+ .file_download_task(+ &test_manager.test_file.url,+ &dest_path,+ FileCheck::CRC(test_manager.test_file.crc.clone()),+ Some(test_manager.test_file.size),+ )+ .await?;++ let initial_state = task.state().await;+ tracing::info!("[TEST] Initial task state: {:?}", initial_state.phase);+ tracing::info!("[TEST] Initial bytes: {} / {}", initial_state.downloaded_bytes, initial_state.total_bytes);++ let mut stream = task.progress().await?;+ tracing::info!("[TEST] Subscribed to progress stream");++ task.download().await?;+ tracing::info!("[TEST] Started download (task_id={}), waiting for 25% progress...", task.download_id());++ // Verify lock file was created+ let lock_path = format!("{}.lock", dest_path.display());+ tokio::time::sleep(Duration::from_millis(500)).await; // Give it a moment+ if std::path::Path::new(&lock_path).exists() {+ tracing::info!("[TEST] ✓ Lock file created: {}", lock_path);+ } else {+ tracing::warn!("[TEST] ⚠ Lock file not found (may not be implemented yet)");+ }++ let mut total_bytes: u64 = 0;+ let mut update_count = 0;+ let phase1_result = timeout(Duration::from_secs(120), async {+ tracing::info!("[TEST] Waiting for progress updates...");+ while let Some(next) = stream.next().await {+ update_count += 1;+ tracing::info!("[TEST] Received update #{}", update_count);+ if let Ok(state) = next {+ tracing::info!(+ "[TEST] Update #{}: phase={:?}, bytes={}/{}",+ update_count,+ state.phase,+ state.downloaded_bytes,+ state.total_bytes+ );+ match state.phase {+ FileDownloadPhase::Downloading => {+ if state.total_bytes > 0 {+ total_bytes = state.total_bytes;+ if pb.length().unwrap_or(0) == 0 {+ pb.set_length(state.total_bytes);+ }+ pb.set_position(state.downloaded_bytes);++ let progress_pct = (state.downloaded_bytes as f64 / state.total_bytes as f64) * 100.0;+ tracing::info!(+ "[TEST] Progress: {:.1}% ({} / {} bytes)",+ progress_pct,+ state.downloaded_bytes,+ state.total_bytes+ );+ if progress_pct >= 25.0 {+ tracing::info!(+ "[TEST] ✓ Reached 25% target ({} / {} bytes)",+ state.downloaded_bytes,+ state.total_bytes+ );+ return Ok::<(u64, u64), String>((state.downloaded_bytes, state.total_bytes));+ }+ }+ },+ FileDownloadPhase::Downloaded => {+ tracing::info!("[TEST] ⚠️ Download completed before 25%!");+ return Ok((state.downloaded_bytes, state.total_bytes));+ },+ FileDownloadPhase::Error(err) => {+ tracing::info!("[TEST] ❌ Error in phase 1: {}", err);+ return Err(format!("Error in phase 1: {}", err));+ },+ _ => {+ tracing::info!("[TEST] Other phase: {:?}", state.phase);+ },+ }+ }+ }+ Err("Stream ended before reaching 25%".to_string())+ })+ .await;++ let (_, _, download_completed_early) = match phase1_result {+ Ok(Ok((downloaded, total))) => {+ tracing::info!("[TEST] Phase 1 complete: {} / {} bytes", downloaded, total);+ let completed = downloaded >= total && total > 0;+ if completed {+ tracing::info!("[TEST] ⚠️ Download completed during phase 1 - network too fast!");+ }+ (downloaded, total, completed)+ },+ Ok(Err(e)) => panic!("Phase 1 failed: {}", e),+ Err(_) => panic!("Phase 1 timed out"),+ };++ // ========== PHASE 2: Pause ==========+ tracing::info!("\n[TEST] ========== PHASE 2: Pause ==========");+ pb.set_message("Phase 2: Pausing...");++ if download_completed_early {+ tracing::info!("[TEST] Skipping pause phase - download already completed");+ let state = task.state().await;+ assert!(+ matches!(state.phase, FileDownloadPhase::Downloaded),+ "Expected Downloaded state for completed download, got {:?}",+ state.phase+ );+ tracing::info!("[TEST] Confirmed downloaded state: {} bytes", state.downloaded_bytes);+ } else {+ task.pause().await?;+ tracing::info!("[TEST] Paused download");+ tokio::time::sleep(Duration::from_millis(500)).await;++ let state = task.state().await;+ assert!(matches!(state.phase, FileDownloadPhase::Paused), "Expected Paused state, got {:?}", state.phase);+ tracing::info!("[TEST] Confirmed paused state: {} / {} bytes", state.downloaded_bytes, state.total_bytes);+ }++ // ========== PHASE 3: Resume to 50% ==========+ if download_completed_early {+ tracing::info!("\n[TEST] ========== PHASE 3: Skipped (already downloaded) ==========");+ } else {+ tracing::info!("\n[TEST] ========== PHASE 3: Resume to 50% ==========");+ pb.set_message("Phase 3: Resuming to 50%");++ // Get fresh task handle after pause+ let task = mgr+ .file_download_task(+ &test_manager.test_file.url,+ &dest_path,+ FileCheck::CRC(test_manager.test_file.crc.clone()),+ Some(test_manager.test_file.size),+ )+ .await?;+ task.download().await?;+ tracing::info!("[TEST] Resumed download, waiting for 50% progress...");++ // Get fresh stream from new handle+ let mut stream = task.progress().await?;++ let phase3_result = timeout(Duration::from_secs(120), async {+ while let Some(next) = stream.next().await {+ if let Ok(state) = next {+ match state.phase {+ FileDownloadPhase::Downloading => {+ if state.total_bytes > 0 {+ if pb.length().unwrap_or(0) == 0 {+ pb.set_length(state.total_bytes);+ }+ pb.set_position(state.downloaded_bytes);++ let progress_pct = (state.downloaded_bytes as f64 / state.total_bytes as f64) * 100.0;+ if progress_pct >= 50.0 {+ tracing::info!(+ "[TEST] Reached 50% ({} / {} bytes)",+ state.downloaded_bytes,+ state.total_bytes+ );+ return Ok::<(u64, u64), String>((state.downloaded_bytes, state.total_bytes));+ }+ }+ },+ FileDownloadPhase::Downloaded => {+ tracing::info!("[TEST] Download completed before 50%!");+ return Ok((state.downloaded_bytes, state.total_bytes));+ },+ FileDownloadPhase::Error(err) => {+ return Err(format!("Error in phase 3: {}", err));+ },+ _ => {},+ }+ }+ }+ Err("Stream ended before reaching 50%".to_string())+ })+ .await;++ match phase3_result {+ Ok(Ok((downloaded, total))) => {+ tracing::info!("[TEST] Phase 3 complete: {} / {} bytes", downloaded, total);+ },+ Ok(Err(e)) => panic!("Phase 3 failed: {}", e),+ Err(_) => panic!("Phase 3 timed out"),+ }++ // ========== PHASE 4: Cancel ==========+ tracing::info!("\n[TEST] ========== PHASE 4: Cancel ==========");+ pb.set_message("Phase 4: Cancelling...");++ task.cancel().await?;+ tracing::info!("[TEST] Cancelled download");+ tokio::time::sleep(Duration::from_millis(500)).await;++ let state = task.state().await;+ assert!(+ matches!(state.phase, FileDownloadPhase::NotDownloaded),+ "Expected NotDownloaded state after cancel, got {:?}",+ state.phase+ );+ tracing::info!("[TEST] Confirmed cancelled state");++ // Drop the old stream+ drop(stream);++ // ========== PHASE 5: Download again to 50% ==========+ tracing::info!("\n[TEST] ========== PHASE 5: Download again to 50% ==========");+ pb.set_message("Phase 5: Downloading again to 50%");+ pb.set_position(0); // Reset progress bar++ // Create new task for fresh download+ let task2 = mgr+ .file_download_task(+ &test_manager.test_file.url,+ &dest_path,+ FileCheck::CRC(test_manager.test_file.crc.clone()),+ Some(test_manager.test_file.size),+ )+ .await?;+ let mut stream2 = task2.progress().await?;++ task2.download().await?;+ tracing::info!("[TEST] Started fresh download, waiting for 50% progress...");++ let phase5_result = timeout(Duration::from_secs(120), async {+ while let Some(next) = stream2.next().await {+ if let Ok(state) = next {+ match state.phase {+ FileDownloadPhase::Downloading => {+ if state.total_bytes > 0 {+ if pb.length().unwrap_or(0) == 0 {+ pb.set_length(state.total_bytes);+ }+ pb.set_position(state.downloaded_bytes);++ let progress_pct = (state.downloaded_bytes as f64 / state.total_bytes as f64) * 100.0;+ if progress_pct >= 50.0 {+ tracing::info!(+ "[TEST] Reached 50% again ({} / {} bytes)",+ state.downloaded_bytes,+ state.total_bytes+ );+ return Ok::<(u64, u64), String>((state.downloaded_bytes, state.total_bytes));+ }+ }+ },+ FileDownloadPhase::Downloaded => {+ tracing::info!("[TEST] Download completed before 50%!");+ return Ok((state.downloaded_bytes, state.total_bytes));+ },+ FileDownloadPhase::Error(err) => {+ return Err(format!("Error in phase 5: {}", err));+ },+ _ => {},+ }+ }+ }+ Err("Stream ended before reaching 50%".to_string())+ })+ .await;++ match phase5_result {+ Ok(Ok((downloaded, total))) => {+ tracing::info!("[TEST] Phase 5 complete: {} / {} bytes", downloaded, total);+ },+ Ok(Err(e)) => panic!("Phase 5 failed: {}", e),+ Err(_) => panic!("Phase 5 timed out"),+ }++ // ========== PHASE 6: Pause at 50% ==========+ tracing::info!("\n[TEST] ========== PHASE 6: Pause at 50% ==========");+ pb.set_message("Phase 6: Pausing at 50%");++ task2.pause().await?;+ tracing::info!("[TEST] Paused download at ~50%");+ tokio::time::sleep(Duration::from_millis(500)).await;++ let state = task2.state().await;+ assert!(matches!(state.phase, FileDownloadPhase::Paused), "Expected Paused state, got {:?}", state.phase);+ tracing::info!(+ "[TEST] Confirmed paused state at 50%: {} / {} bytes",+ state.downloaded_bytes,+ state.total_bytes+ );++ // ========== PHASE 7: Resume to completion ==========+ tracing::info!("\n[TEST] ========== PHASE 7: Resume to completion ==========");+ pb.set_message("Phase 7: Resuming to completion");++ // Get fresh task handle after pause+ let task2 = mgr+ .file_download_task(+ &test_manager.test_file.url,+ &dest_path,+ FileCheck::CRC(test_manager.test_file.crc.clone()),+ Some(test_manager.test_file.size),+ )+ .await?;+ task2.download().await?;+ tracing::info!("[TEST] Resumed download, waiting for completion...");++ // Get fresh stream from new handle+ let mut stream2 = task2.progress().await?;++ let phase7_result = timeout(Duration::from_secs(240), async {+ while let Some(next) = stream2.next().await {+ match next {+ Ok(state) => match state.phase {+ FileDownloadPhase::Downloading => {+ if state.total_bytes > 0 {+ if pb.length().unwrap_or(0) == 0 {+ pb.set_length(state.total_bytes);+ }+ pb.set_position(state.downloaded_bytes);+ }+ },+ FileDownloadPhase::Downloaded => {+ pb.finish_with_message("✓ Download complete!");+ tracing::info!("[TEST] Download completed successfully!");+ return Ok::<(), String>(());+ },+ FileDownloadPhase::Error(err) => {+ pb.abandon_with_message(format!("✗ Error: {}", err));+ return Err(format!("Error in phase 7: {}", err));+ },+ _ => {},+ },+ Err(_) => {+ // Ignore lag errors+ },+ }+ }+ Err("Stream ended before completion".to_string())+ })+ .await;++ match phase7_result {+ Ok(Ok(())) => {+ tracing::info!("[TEST] Phase 7 complete: Download finished!");+ },+ Ok(Err(e)) => panic!("Phase 7 failed: {}", e),+ Err(_) => panic!("Phase 7 timed out"),+ }+ }++ // Verify file exists and has content+ tracing::info!("\n[TEST] ========== FINAL VERIFICATION ==========");+ assert!(dest_path.is_file(), "Destination file does not exist");+ let metadata = std::fs::metadata(&dest_path)?;+ assert!(metadata.len() > 0, "Downloaded file is empty");+ tracing::info!("[TEST] Verified file exists with size: {} bytes", metadata.len());++ // Verify lock file was cleaned up after completion+ let lock_path = format!("{}.lock", dest_path.display());+ if std::path::Path::new(&lock_path).exists() {+ tracing::warn!("[TEST] ⚠ Lock file still exists after completion (should be cleaned up)");+ } else {+ tracing::info!("[TEST] ✓ Lock file properly cleaned up");+ }++ test_manager.cleanup().await;+ tracing::info!("[TEST] ========== COMPREHENSIVE DOWNLOAD TEST COMPLETE ==========\n");+ Ok(())+}diff --git a/crates/download-manager/tests/test_apple_manager_global_broadcast.rs b/crates/download-manager/tests/test_apple_manager_global_broadcast.rsnew file mode 100644index 000000000..2c2603498--- /dev/null+++ b/crates/download-manager/tests/test_apple_manager_global_broadcast.rs@@ -0,0 +1,149 @@+mod common;++use std::{sync::Arc, time::Duration};++use common::TestDownloadManager;+use download_manager::{FileCheck, FileDownloadEvent, FileDownloadManagerType};+use futures_util::StreamExt;+use indicatif::{ProgressBar, ProgressStyle};++#[tokio::test(flavor = "multi_thread")]+async fn test_apple_manager_global_broadcast() -> Result<(), Box<dyn std::error::Error>> {+ tracing::info!("=== Global Broadcast Progress Test ===");++ let test_manager =+ TestDownloadManager::new("test_apple_manager_global_broadcast", FileDownloadManagerType::Apple).await?;+ let dest_path = test_manager.dest_path("test_file");+ let manager = Arc::new(test_manager.manager);++ tracing::info!("Creating file download task...");+ let task = manager+ .file_download_task(+ &test_manager.test_file.url,+ &dest_path,+ FileCheck::CRC(test_manager.test_file.crc),+ Some(test_manager.test_file.size),+ )+ .await?;++ tracing::info!("Subscribing to GLOBAL downloads...");+ let mut global_updates = manager.subscribe_to_all_downloads();+ tracing::info!("[GLOBAL_TEST] Subscribed to global broadcast channel");++ let pb = ProgressBar::new(0);+ pb.set_style(+ ProgressStyle::default_bar()+ .template(+ "{spinner:.green} [{elapsed_precise}] [{bar:40.cyan/blue}] {bytes}/{total_bytes} ({bytes_per_sec}, eta {eta})"+ )+ .unwrap()+ .progress_chars("█▓▒░ "),+ );+ pb.set_message("Downloading");++ let task_download_id = task.download_id();+ let pb_clone = pb.clone();+ let (completion_tx, mut completion_rx) = tokio::sync::mpsc::channel::<()>(1);++ let monitor_task = tokio::spawn(async move {+ const IDLE_TIMEOUT: Duration = Duration::from_secs(30);+ let mut update_count = 0;++ loop {+ match tokio::time::timeout(IDLE_TIMEOUT, global_updates.next()).await {+ Ok(Some(Ok((download_id, event)))) => {+ update_count += 1;++ if download_id == task_download_id {+ match event {+ FileDownloadEvent::ProgressUpdate {+ bytes_written: _,+ total_bytes_written,+ total_bytes_expected,+ } => {+ let progress = if total_bytes_expected > 0 {+ total_bytes_written as f64 / total_bytes_expected as f64 * 100.0+ } else {+ 0.0+ };++ tracing::info!(+ "[GLOBAL_TEST] Update #{}: Progress - {}/{} bytes ({:.1}%)",+ update_count,+ total_bytes_written,+ total_bytes_expected,+ progress+ );++ if pb_clone.length().unwrap_or(0) == 0 && total_bytes_expected > 0 {+ pb_clone.set_length(total_bytes_expected);+ }++ pb_clone.set_position(total_bytes_written);+ },+ FileDownloadEvent::DownloadCompleted {+ tmp_path: _,+ final_destination: _,+ } => {+ tracing::info!("[GLOBAL_TEST] Update #{}: Downloaded", update_count);+ pb_clone.finish_with_message("✓ Downloaded");+ let _ = completion_tx.send(()).await;+ break;+ },+ FileDownloadEvent::Error {+ message,+ } => {+ pb_clone.abandon_with_message(format!("Error: {}", message));+ break;+ },+ }+ } else {+ tracing::info!("Update #{}: Different file ({})", update_count, download_id);+ }+ },+ Ok(Some(Err(e))) => {+ tracing::info!("Broadcast error: {}", e);+ },+ Ok(None) => {+ tracing::info!("Stream ended after {} updates", update_count);+ pb_clone.abandon_with_message("Stream ended");+ break;+ },+ Err(_) => {+ tracing::info!("No progress for 30s after {} updates", update_count);+ pb_clone.abandon_with_message("Timeout");+ break;+ },+ }+ }++ update_count+ });++ tracing::info!("Starting download...");+ task.download().await?;+ tracing::info!("[GLOBAL_TEST] Download started, task_id={}", task.download_id());++ tracing::info!("Waiting for completion or timeout...");+ let completed = tokio::time::timeout(Duration::from_secs(60), completion_rx.recv()).await.is_ok();++ let update_count = monitor_task.await?;++ tracing::info!("\nResults:");+ tracing::info!(" Updates received: {}", update_count);+ tracing::info!(" Completed: {}", completed);++ if update_count > 0 {+ tracing::info!(" ✓ Global broadcast is working!");+ } else {+ tracing::info!(" ❌ No updates received - URLSession delegates not firing in test");+ tracing::info!(" This is expected in cargo test environment");+ tracing::info!(" Actual downloads work in CLI/app context");+ }++ // Cleanup (manager is Arc wrapped, just drop it and wait)+ drop(manager);+ tokio::time::sleep(Duration::from_millis(100)).await;++ Ok(())+}diff --git a/crates/download-manager/tests/test_apple_manager_lock_file.rs b/crates/download-manager/tests/test_apple_manager_lock_file.rsnew file mode 100644index 000000000..a9b04c1c3--- /dev/null+++ b/crates/download-manager/tests/test_apple_manager_lock_file.rs@@ -0,0 +1,322 @@+mod common;++use std::time::Duration;++use common::TestDownloadManager;+use download_manager::{+ FileCheck, FileDownloadManagerType, LockFileInfo, LockFileState, acquire_lock, check_lock_file, release_lock,+};+use tokio::time::sleep;++#[tokio::test(flavor = "multi_thread")]+async fn test_apple_manager_lock_file_prevents_concurrent_downloads() -> Result<(), Box<dyn std::error::Error>> {+ tracing::info!("[TEST] ========== LOCK FILE CONCURRENT DOWNLOAD TEST ==========");++ // Create two managers (simulating two app instances)+ let test_manager1 = TestDownloadManager::new(+ "test_apple_manager_lock_file_prevents_concurrent_downloads_1",+ FileDownloadManagerType::Apple,+ )+ .await?;+ let test_manager2 = TestDownloadManager::new(+ "test_apple_manager_lock_file_prevents_concurrent_downloads_2",+ FileDownloadManagerType::Apple,+ )+ .await?;++ let dest_path = test_manager1.dest_path("locked_file.safetensors");+ tracing::info!("[TEST] Destination: {}", dest_path.display());++ // Clean up any existing artifacts+ let _ = std::fs::remove_file(&dest_path);+ let _ = std::fs::remove_file(format!("{}.crc", dest_path.display()));+ let _ = std::fs::remove_file(format!("{}.resume_data", dest_path.display()));+ let _ = std::fs::remove_file(format!("{}.lock", dest_path.display()));++ // Manager 1 starts download (should acquire lock)+ tracing::info!("[TEST] Manager 1: Creating task and starting download...");+ let task1 = test_manager1+ .manager+ .file_download_task(&test_manager1.test_file.url, &dest_path, FileCheck::None, None)+ .await?;++ task1.download().await?;+ tracing::info!("[TEST] Manager 1: Download started");++ // Give it a moment to acquire the lock+ sleep(Duration::from_millis(500)).await;++ // Verify lock file exists+ let lock_path = format!("{}.lock", dest_path.display());+ assert!(std::path::Path::new(&lock_path).exists(), "Lock file should exist after download started");++ // Manager 2 creates the same task; reduction should mark it as LockedByOther+ tracing::info!("[TEST] Manager 2: Creating task for same file...");+ let task2 = test_manager2+ .manager+ .file_download_task(&test_manager2.test_file.url, &dest_path, FileCheck::None, None)+ .await?;++ // Wait a moment for state to be computed+ sleep(Duration::from_millis(200)).await;++ let state2 = task2.state().await;+ match state2.phase {+ download_manager::FileDownloadPhase::LockedByOther(owner) => {+ tracing::info!("[TEST] ✓ Task 2 marked as locked by {}", owner);+ assert!(owner.contains("downloads_1"));+ },+ other => panic!("Task 2 should be LockedByOther, got: {:?}", other),+ }++ // Cancel manager 1's download+ tracing::info!("[TEST] Manager 1: Cancelling download...");+ task1.cancel().await?;++ tracing::info!("[TEST] ========== LOCK FILE TEST PASSED ==========");+ Ok(())+}++#[tokio::test(flavor = "multi_thread")]+async fn test_lock_file_stale_detection() -> Result<(), Box<dyn std::error::Error>> {+ tracing::info!("[TEST] ========== LOCK FILE STALE DETECTION TEST ==========");++ let test_manager =+ TestDownloadManager::new("test_apple_manager_lock_file_stale_detection", FileDownloadManagerType::Apple)+ .await?;+ let dest_path = test_manager.dest_path("stale_lock_file.txt");+ let lock_path = std::path::PathBuf::from(format!("{}.lock", dest_path.display()));++ // Clean up+ let _ = std::fs::remove_file(&dest_path);+ let _ = std::fs::remove_file(&lock_path);++ // Create a stale lock file (with a fake PID that doesn't exist)+ let fake_lock = LockFileInfo {+ manager_id: "com.otherapp.trymirai.url-session-download-manager".to_string(),+ acquired_at: chrono::Utc::now() - chrono::Duration::hours(2), // 2 hours ago (stale)+ process_id: 99999, // Non-existent PID+ };++ let lock_json = serde_json::to_string_pretty(&fake_lock)?;+ std::fs::write(&lock_path, lock_json)?;+ tracing::info!("[TEST] Created fake stale lock file");++ // Check lock state - should be detected as stale+ let our_manager_id = test_manager.manager.manager_id();+ let lock_state = check_lock_file(&lock_path, our_manager_id, std::process::id());++ tracing::info!("[TEST] Lock state: {:?}", lock_state);++ match lock_state {+ LockFileState::Stale(info) => {+ tracing::info!("[TEST] ✓ Lock correctly detected as stale");+ assert_eq!(info.process_id, 99999);+ },+ _ => {+ panic!("Lock should have been detected as stale, got: {:?}", lock_state);+ },+ }++ // Now acquire the lock (should succeed)+ tracing::info!("[TEST] Attempting to acquire stale lock...");+ let handle = tokio::runtime::Handle::current();+ acquire_lock(&handle, &lock_path, our_manager_id).await?;+ tracing::info!("[TEST] ✓ Successfully acquired stale lock");++ // Verify we own it now+ let lock_state = check_lock_file(&lock_path, our_manager_id, std::process::id());+ match lock_state {+ LockFileState::OwnedByUs(_) => {+ tracing::info!("[TEST] ✓ Lock now owned by us");+ },+ _ => {+ panic!("Lock should be owned by us, got: {:?}", lock_state);+ },+ }++ // Release the lock+ let handle = tokio::runtime::Handle::current();+ release_lock(&handle, &lock_path).await?;+ assert!(!lock_path.exists(), "Lock file should be deleted after release");++ tracing::info!("[TEST] ========== STALE DETECTION TEST PASSED ==========");+ Ok(())+}++#[tokio::test(flavor = "multi_thread")]+async fn test_apple_manager_lock_file_same_app_crash_recovery() -> Result<(), Box<dyn std::error::Error>> {+ tracing::info!("[TEST] ========== LOCK FILE CRASH RECOVERY TEST ==========");++ let test_manager = TestDownloadManager::new(+ "test_apple_manager_lock_file_same_app_crash_recovery",+ FileDownloadManagerType::Apple,+ )+ .await?;+ let dest_path = test_manager.dest_path("crash_recovery_file.txt");+ let lock_path = std::path::PathBuf::from(format!("{}.lock", dest_path.display()));++ // Clean up+ let _ = std::fs::remove_file(&dest_path);+ let _ = std::fs::remove_file(&lock_path);++ let our_manager_id = test_manager.manager.manager_id();++ // Simulate a crash: create a lock with our manager_id but different PID+ let old_lock = LockFileInfo {+ manager_id: our_manager_id.to_string(),+ acquired_at: chrono::Utc::now() - chrono::Duration::minutes(5),+ process_id: std::process::id() + 10000, // Different PID from same app+ };++ let lock_json = serde_json::to_string_pretty(&old_lock)?;+ std::fs::write(&lock_path, lock_json)?;+ tracing::info!("[TEST] Created fake lock from crashed process (same app)");++ // Check lock state - should be detected as OwnedBySameAppOldProcess (if PID dead)+ // or OwnedByUs if we can detect it's safe to reacquire+ let lock_state = check_lock_file(&lock_path, our_manager_id, std::process::id());++ tracing::info!("[TEST] Lock state after crash: {:?}", lock_state);++ // The lock should either be Stale or OwnedBySameAppOldProcess+ // Both mean we can reacquire it+ assert!(lock_state.can_proceed(), "Lock from crashed same-app process should be reacquirable");++ // Acquire the lock (simulating app restart after crash)+ let handle = tokio::runtime::Handle::current();+ acquire_lock(&handle, &lock_path, our_manager_id).await?;+ tracing::info!("[TEST] ✓ Successfully reacquired lock after simulated crash");++ // Verify we own it now with current PID+ let lock_state = check_lock_file(&lock_path, our_manager_id, std::process::id());+ match lock_state {+ LockFileState::OwnedByUs(info) => {+ tracing::info!("[TEST] ✓ Lock owned by current process");+ assert_eq!(info.process_id, std::process::id());+ assert_eq!(info.manager_id, our_manager_id);+ },+ _ => {+ panic!("Lock should be owned by us, got: {:?}", lock_state);+ },+ }++ let handle = tokio::runtime::Handle::current();+ release_lock(&handle, &lock_path).await?;++ tracing::info!("[TEST] ========== CRASH RECOVERY TEST PASSED ==========");+ Ok(())+}++#[tokio::test(flavor = "multi_thread")]+async fn test_apple_manager_lock_file_atomic_operations() -> Result<(), Box<dyn std::error::Error>> {+ tracing::info!("[TEST] ========== LOCK FILE ATOMIC OPERATIONS TEST ==========");++ let test_manager =+ TestDownloadManager::new("test_apple_manager_lock_file_atomic_operations", FileDownloadManagerType::Apple)+ .await?;+ let dest_path = test_manager.dest_path("atomic_lock_file.txt");+ let lock_path = std::path::PathBuf::from(format!("{}.lock", dest_path.display()));++ // Clean up+ let _ = std::fs::remove_file(&dest_path);+ let _ = std::fs::remove_file(&lock_path);++ let manager_id = test_manager.manager.manager_id();++ // Test acquire+ tracing::info!("[TEST] Acquiring lock...");+ let handle = tokio::runtime::Handle::current();+ acquire_lock(&handle, &lock_path, manager_id).await?;+ assert!(lock_path.exists(), "Lock file should exist after acquire");++ // Read and verify lock contents+ let lock_contents = std::fs::read_to_string(&lock_path)?;+ let lock_info: LockFileInfo = serde_json::from_str(&lock_contents)?;++ assert_eq!(lock_info.manager_id, manager_id);+ assert_eq!(lock_info.process_id, std::process::id());+ tracing::info!("[TEST] ✓ Lock file contains correct information");++ // Test release+ tracing::info!("[TEST] Releasing lock...");+ let handle = tokio::runtime::Handle::current();+ release_lock(&handle, &lock_path).await?;+ assert!(!lock_path.exists(), "Lock file should be deleted after release");++ tracing::info!("[TEST] ========== ATOMIC OPERATIONS TEST PASSED ==========");+ Ok(())+}++#[tokio::test(flavor = "multi_thread")]+async fn test_apple_manager_lock_file_removed_after_download_completion() -> Result<(), Box<dyn std::error::Error>> {+ tracing::info!("[TEST] ========== LOCK FILE CLEANUP TEST ==========");++ // Create a test manager+ let test_manager = TestDownloadManager::new(+ "test_apple_manager_lock_file_removed_after_download_completion",+ FileDownloadManagerType::Apple,+ )+ .await?;+ let dest_path = test_manager.dest_path("test_file");+ let lock_path = std::path::PathBuf::from(format!("{}.lock", dest_path.display()));++ tracing::info!("[TEST] Destination: {}", dest_path.display());+ tracing::info!("[TEST] Lock path: {}", lock_path.display());++ // Clean up any existing artifacts+ let _ = std::fs::remove_file(&dest_path);+ let _ = std::fs::remove_file(format!("{}.crc", dest_path.display()));+ let _ = std::fs::remove_file(format!("{}.resume_data", dest_path.display()));+ let _ = std::fs::remove_file(&lock_path);++ // Start download (should acquire lock)+ tracing::info!("[TEST] Starting download...");+ let task =+ test_manager.manager.file_download_task(&test_manager.test_file.url, &dest_path, FileCheck::None, None).await?;++ task.download().await?;+ tracing::info!("[TEST] Download started");++ // Wait a moment for lock acquisition+ sleep(Duration::from_millis(200)).await;++ // Verify lock file exists during download+ assert!(lock_path.exists(), "Lock file should exist during download");+ tracing::info!("[TEST] ✓ Lock file exists during download");++ // Wait for download to complete (with timeout)+ let mut attempts = 0;+ let max_attempts = 600; // 60 seconds max+ let mut download_completed = false;++ while attempts < max_attempts {+ let state = task.state().await;+ tracing::debug!("[TEST] Download state: {:?}", state.phase);++ if matches!(state.phase, download_manager::FileDownloadPhase::Downloaded) {+ download_completed = true;+ break;+ }++ if matches!(state.phase, download_manager::FileDownloadPhase::Error(_)) {+ panic!("Download failed: {:?}", state.phase);+ }++ sleep(Duration::from_millis(100)).await;+ attempts += 1;+ }++ assert!(download_completed, "Download should complete within timeout");+ tracing::info!("[TEST] ✓ Download completed successfully");++ // Give a small delay for lock cleanup to complete+ sleep(Duration::from_millis(200)).await;++ // Verify lock file is removed after completion+ assert!(!lock_path.exists(), "Lock file should be removed after successful download completion");+ tracing::info!("[TEST] ✓ Lock file removed after download completion");++ tracing::info!("[TEST] ========== LOCK FILE CLEANUP TEST PASSED ==========");+ Ok(())+}diff --git a/crates/download-manager/tests/test_apple_manager_resume_data_cleanup.rs b/crates/download-manager/tests/test_apple_manager_resume_data_cleanup.rsnew file mode 100644index 000000000..2968d93f6--- /dev/null+++ b/crates/download-manager/tests/test_apple_manager_resume_data_cleanup.rs@@ -0,0 +1,105 @@+#![cfg(target_vendor = "apple")]++mod common;++use std::time::Duration;++use common::TestDownloadManager;+use download_manager::{FileCheck, FileDownloadManagerType, FileDownloadPhase};+use tokio::time::sleep;++#[tokio::test(flavor = "multi_thread")]+async fn test_apple_manager_resume_data_deleted_on_resume() -> Result<(), Box<dyn std::error::Error>> {+ tracing::info!("[TEST] ========== RESUME DATA CLEANUP TEST ==========");++ let test_manager =+ TestDownloadManager::new("test_apple_manager_resume_data_deleted_on_resume", FileDownloadManagerType::Apple)+ .await?;+ let dest_path = test_manager.dest_path("test_file");+ let resume_path = std::path::PathBuf::from(format!("{}.resume_data", dest_path.display()));+ let lock_path = std::path::PathBuf::from(format!("{}.lock", dest_path.display()));++ // Clean up any existing artifacts+ let _ = std::fs::remove_file(&dest_path);+ let _ = std::fs::remove_file(format!("{}.crc", dest_path.display()));+ let _ = std::fs::remove_file(&resume_path);+ let _ = std::fs::remove_file(&lock_path);++ // Create task and start download+ let task = test_manager+ .manager+ .file_download_task(+ &test_manager.test_file.url,+ &dest_path,+ FileCheck::CRC(test_manager.test_file.crc.clone()),+ Some(test_manager.test_file.size),+ )+ .await?;++ task.download().await?;++ // Wait until we are Downloading and have some bytes+ let mut attempts = 0;+ let max_attempts = 200;+ loop {+ let state = task.state().await;+ if matches!(state.phase, FileDownloadPhase::Downloading) && state.total_bytes > 0 {+ break;+ }+ attempts += 1;+ if attempts >= max_attempts {+ panic!("Timeout waiting for Downloading state");+ }+ sleep(Duration::from_millis(50)).await;+ }++ // Pause to create resume_data+ task.pause().await?;++ // Wait for Paused and resume_data to appear+ let mut attempts = 0;+ loop {+ let state = task.state().await;+ let has_resume = resume_path.exists();+ if matches!(state.phase, FileDownloadPhase::Paused) && has_resume {+ break;+ }+ attempts += 1;+ if attempts >= max_attempts {+ panic!(+ "Timeout waiting for Paused state with resume_data present (state={:?}, resume_exists={})",+ state.phase, has_resume+ );+ }+ sleep(Duration::from_millis(50)).await;+ }++ // Resume download+ task.download().await?;++ // After resume begins, resume_data must be deleted promptly+ let mut attempts = 0;+ loop {+ let state = task.state().await;+ let resume_exists = resume_path.exists();+ // Accept either Downloading without resume_data, or very fast completion with no resume_data+ if (!resume_exists)+ && (matches!(state.phase, FileDownloadPhase::Downloading)+ || matches!(state.phase, FileDownloadPhase::Downloaded))+ {+ break;+ }+ attempts += 1;+ if attempts >= max_attempts {+ panic!(+ "Timeout waiting for resume_data deletion on resume (state={:?}, resume_exists={})",+ state.phase, resume_exists+ );+ }+ sleep(Duration::from_millis(50)).await;+ }++ tracing::info!("[TEST] ✓ resume_data removed upon resuming download");++ Ok(())+}diff --git a/crates/download-manager/tests/test_apple_manager_resume_data_modify.rs b/crates/download-manager/tests/test_apple_manager_resume_data_modify.rsnew file mode 100644index 000000000..4b8b7463f--- /dev/null+++ b/crates/download-manager/tests/test_apple_manager_resume_data_modify.rs@@ -0,0 +1,150 @@+#![cfg(target_vendor = "apple")]++mod common;++use std::time::Duration;++use common::TestDownloadManager;+use download_manager::{+ FileCheck, FileDownloadManagerType, FileDownloadPhase, managers::apple::URLSessionDownloadTaskResumeData,+};+use tokio::time::timeout;+use tokio_stream::StreamExt;++#[tokio::test(flavor = "multi_thread")]+async fn test_apple_manager_resume_data_can_be_modified_and_saved() -> Result<(), Box<dyn std::error::Error>> {+ let test_manager = TestDownloadManager::new(+ "test_apple_manager_resume_data_can_be_modified_and_saved",+ FileDownloadManagerType::Apple,+ )+ .await?;+ let mgr = &test_manager.manager;+ let dest_path = test_manager.dest_path("test_file");++ tracing::info!("Cleaning up any existing artifacts...");+ let _ = std::fs::remove_file(&dest_path);+ let _ = std::fs::remove_file(format!("{}.crc", dest_path.display()));+ let _ = std::fs::remove_file(format!("{}.resume_data", dest_path.display()));++ let task = mgr+ .file_download_task(+ &test_manager.test_file.url,+ &dest_path,+ FileCheck::CRC(test_manager.test_file.crc.clone()),+ Some(test_manager.test_file.size),+ )+ .await?;++ let initial_state = task.state().await;+ tracing::info!("Initial state: {:?}", initial_state.phase);++ // Start download BEFORE subscribing to stream+ task.download().await?;+ tracing::info!("Download started...");++ tokio::time::sleep(Duration::from_millis(100)).await;++ let mut stream = task.progress().await?;+ tracing::info!("Subscribed to progress stream, waiting for updates...");++ let mut observed_downloaded: Option<u64> = None;+ let mut observed_total: Option<u64> = None;++ let _ = timeout(Duration::from_secs(60), async {+ let mut update_count = 0;+ while let Some(next) = stream.next().await {+ if let Ok(state) = next {+ update_count += 1;+ if update_count % 10 == 1 {+ tracing::info!(+ "Update #{}: {:?} - {}/{} bytes",+ update_count,+ state.phase,+ state.downloaded_bytes,+ state.total_bytes+ );+ }++ match state.phase {+ FileDownloadPhase::Downloading => {+ if state.total_bytes > 0 {+ observed_total = Some(state.total_bytes);+ let target = state.total_bytes / 50; // 2%+ if state.downloaded_bytes >= target && target > 0 {+ observed_downloaded = Some(state.downloaded_bytes);+ tracing::info!("Reached target at {} bytes", state.downloaded_bytes);+ break;+ }+ }+ },+ FileDownloadPhase::Downloaded => {+ tracing::info!("Download completed: {} bytes", state.downloaded_bytes);+ observed_downloaded = Some(state.downloaded_bytes);+ observed_total = Some(state.total_bytes);+ break;+ },+ _ => {},+ }+ }+ }+ tracing::info!("Stream ended after {} updates", update_count);+ })+ .await;++ assert!(observed_downloaded.is_some(), "should have observed progress");+ assert!(observed_total.is_some(), "should have observed total bytes");++ // Pause to generate resume data+ task.pause().await?;++ // Check if download completed+ let final_state = task.state().await;+ if matches!(final_state.phase, FileDownloadPhase::Downloaded) {+ tracing::info!("Download completed before pause - test passed (no resume data to modify)");+ test_manager.cleanup().await;+ return Ok(());+ }++ // Read the resume data file+ let resume_path = format!("{}.resume_data", dest_path.display());+ let original_bytes = std::fs::read(&resume_path)?;++ // Parse resume data+ let mut resume_data = URLSessionDownloadTaskResumeData::from_bytes(&original_bytes)?;++ tracing::info!(+ "Original resume data: bytes_received={:?}, bytes_expected={:?}",+ resume_data.bytes_received,+ resume_data.bytes_expected_to_receive+ );++ // Verify bytes_received is present+ assert!(resume_data.bytes_received.is_some(), "bytes_received should be present");++ // Modify: add expected bytes if not present+ if resume_data.bytes_expected_to_receive.is_none() {+ resume_data.bytes_expected_to_receive = observed_total;+ tracing::info!("Injected expected bytes: {:?}", resume_data.bytes_expected_to_receive);++ // Save modified resume data+ resume_data.save_to_file(&resume_path)?;++ // Re-read and verify the modification was saved+ let saved_bytes = std::fs::read(&resume_path)?;+ let reloaded = URLSessionDownloadTaskResumeData::from_bytes(&saved_bytes)?;++ tracing::info!(+ "Reloaded resume data: bytes_received={:?}, bytes_expected={:?}",+ reloaded.bytes_received,+ reloaded.bytes_expected_to_receive+ );++ assert_eq!(reloaded.bytes_received, resume_data.bytes_received, "bytes_received should be preserved");+ assert_eq!(reloaded.bytes_expected_to_receive, observed_total, "bytes_expected_to_receive should be saved");++ tracing::info!("✓ Successfully modified and saved resume data");+ }++ test_manager.cleanup().await;+ Ok(())+}diff --git a/crates/download-manager/tests/test_apple_manager_resume_data_parse.rs b/crates/download-manager/tests/test_apple_manager_resume_data_parse.rsnew file mode 100644index 000000000..f2ef1ffe6--- /dev/null+++ b/crates/download-manager/tests/test_apple_manager_resume_data_parse.rs@@ -0,0 +1,121 @@+#![cfg(target_vendor = "apple")]++mod common;++use std::time::Duration;++use common::TestDownloadManager;+use download_manager::{+ FileCheck, FileDownloadManagerType, FileDownloadPhase, managers::apple::URLSessionDownloadTaskResumeData,+};+use tokio::time::{sleep, timeout};+use tokio_stream::StreamExt;++#[tokio::test(flavor = "multi_thread")]+async fn test_apple_manager_resume_data_contains_reasonable_progress_bytes() -> Result<(), Box<dyn std::error::Error>> {+ let test_manager = TestDownloadManager::new(+ "test_apple_manager_resume_data_contains_reasonable_progress_bytes",+ FileDownloadManagerType::Apple,+ )+ .await?;+ let mgr = &test_manager.manager;+ let dest_path = test_manager.dest_path("test_file");++ let task = mgr+ .file_download_task(+ &test_manager.test_file.url,+ &dest_path,+ FileCheck::CRC(test_manager.test_file.crc.clone()),+ Some(test_manager.test_file.size),+ )+ .await?;+ let mut stream = task.progress().await?;++ // Start the download and wait until we have some meaningful progress+ task.download().await?;++ let mut observed_downloaded: Option<u64> = None;+ let mut observed_total: Option<u64> = None;++ let _ = timeout(Duration::from_secs(60), async {+ while let Some(next) = stream.next().await {+ if let Ok(state) = next {+ match state.phase {+ FileDownloadPhase::Downloading => {+ observed_total = Some(state.total_bytes);+ // Choose a modest threshold to ensure resumeData has content+ let target = if state.total_bytes > 0 {+ // 2% or at least 5 MiB, whichever is lower+ let two_percent = state.total_bytes / 50;+ two_percent.min(5 * 1024 * 1024)+ } else {+ 5 * 1024 * 1024+ };+ if state.downloaded_bytes >= target && target > 0 {+ observed_downloaded = Some(state.downloaded_bytes);+ break;+ }+ },+ FileDownloadPhase::Downloaded => {+ // Completed too fast; take the final number+ observed_downloaded = Some(state.downloaded_bytes);+ observed_total = Some(state.total_bytes);+ break;+ },+ _ => {},+ }+ }+ }+ })+ .await;++ // Ensure we recorded some progress+ let observed_downloaded = observed_downloaded.unwrap_or(0);+ assert!(observed_downloaded > 0, "no progress observed before cancellation");++ // Pause to generate resume data+ task.pause().await?;++ // Check if download completed+ let final_state = task.state().await;+ if matches!(final_state.phase, FileDownloadPhase::Downloaded) {+ tracing::info!("Download completed before pause - test passed (no resume data to parse)");+ test_manager.cleanup().await;+ return Ok(());+ }++ // Read the written resume data file+ let resume_path = format!("{}.resume_data", dest_path.display());+ let resume_bytes = std::fs::read(&resume_path)?;+ assert!(!resume_bytes.is_empty(), "resume_data file is empty: {}", resume_path);++ // Parse and verify+ let resume_data = URLSessionDownloadTaskResumeData::from_bytes(&resume_bytes).expect("failed to parse resume_data");++ // Expect positive received bytes+ let bytes_received = resume_data.bytes_received.expect("bytes_received should be present");+ assert!(bytes_received > 0, "parsed bytes_received is zero");++ // Tolerance: allow up to 10% or 10 MiB difference, whichever is larger+ let diff = if bytes_received > observed_downloaded {+ bytes_received - observed_downloaded+ } else {+ observed_downloaded - bytes_received+ };+ let ten_percent = observed_downloaded / 10;+ let max_allowed = ten_percent.max(10 * 1024 * 1024);+ assert!(+ diff <= max_allowed,+ "parsed bytes_received ({}) diverges too much from observed ({})",+ bytes_received,+ observed_downloaded+ );++ // Note: total_bytes is not reliably available in resume data, so we skip that check++ // Small wait to allow any background cleanup+ sleep(Duration::from_millis(200)).await;++ test_manager.cleanup().await;+ Ok(())+}diff --git a/crates/download-manager/tests/test_apple_manager_specific_broadcast.rs b/crates/download-manager/tests/test_apple_manager_specific_broadcast.rsnew file mode 100644index 000000000..da87637f7--- /dev/null+++ b/crates/download-manager/tests/test_apple_manager_specific_broadcast.rs@@ -0,0 +1,128 @@+mod common;++use std::time::Duration;++use common::TestDownloadManager;+use download_manager::{FileCheck, FileDownloadManagerType, FileDownloadPhase};+use futures_util::StreamExt;+use indicatif::{ProgressBar, ProgressStyle};++#[tokio::test(flavor = "multi_thread")]+async fn test_apple_manager_specific_broadcast() -> Result<(), Box<dyn std::error::Error>> {+ tracing::info!("=== Task-Specific Broadcast Test ===");++ let test_manager =+ TestDownloadManager::new("test_apple_manager_specific_broadcast", FileDownloadManagerType::Apple).await?;+ let dest_path = test_manager.dest_path("test_file");+ let manager = &test_manager.manager;++ tracing::info!("Creating task...");+ let task = manager+ .file_download_task(+ &test_manager.test_file.url,+ &dest_path,+ FileCheck::CRC(test_manager.test_file.crc.clone()),+ Some(test_manager.test_file.size),+ )+ .await?;++ tracing::info!("Subscribing to TASK-SPECIFIC progress...");+ let mut task_progress = task.progress().await?;+ tracing::info!("[TASK_TEST] Subscribed to task-specific progress channel");++ let pb = ProgressBar::new(0);+ pb.set_style(+ ProgressStyle::default_bar()+ .template(+ "{spinner:.green} [{elapsed_precise}] [{bar:40.cyan/blue}] {bytes}/{total_bytes} ({bytes_per_sec})",+ )+ .unwrap()+ .progress_chars("█▓▒░ "),+ );++ let pb_clone = pb.clone();+ let (completion_tx, mut completion_rx) = tokio::sync::mpsc::channel::<()>(1);++ let monitor_task = tokio::spawn(async move {+ const IDLE_TIMEOUT: Duration = Duration::from_secs(30);+ let mut update_count = 0;++ loop {+ match tokio::time::timeout(IDLE_TIMEOUT, task_progress.next()).await {+ Ok(Some(Ok(state))) => {+ update_count += 1;++ let progress = if state.total_bytes > 0 {+ state.downloaded_bytes as f64 / state.total_bytes as f64 * 100.0+ } else {+ 0.0+ };++ tracing::info!(+ "[TASK_TEST] Update #{}: {:?} - {}/{} bytes ({:.1}%)",+ update_count,+ state.phase,+ state.downloaded_bytes,+ state.total_bytes,+ progress+ );++ if pb_clone.length().unwrap_or(0) == 0 && state.total_bytes > 0 {+ pb_clone.set_length(state.total_bytes);+ }+ pb_clone.set_position(state.downloaded_bytes);++ match state.phase {+ FileDownloadPhase::Downloaded => {+ pb_clone.finish_with_message("✓ Downloaded");+ let _ = completion_tx.send(()).await;+ break;+ },+ FileDownloadPhase::Error(msg) => {+ pb_clone.abandon_with_message(format!("Error: {}", msg));+ break;+ },+ _ => {},+ }+ },+ Ok(Some(Err(e))) => {+ tracing::info!("Stream error: {}", e);+ },+ Ok(None) => {+ tracing::info!("Stream ended after {} updates", update_count);+ break;+ },+ Err(_) => {+ tracing::info!("No updates for 30s after {} updates", update_count);+ pb_clone.abandon_with_message("Timeout");+ break;+ },+ }+ }++ update_count+ });++ tracing::info!("Starting download...");+ task.download().await?;+ tracing::info!("[TASK_TEST] Download started, task_id={}", task.download_id());++ let completed = tokio::time::timeout(Duration::from_secs(60), completion_rx.recv()).await.is_ok();++ let update_count = monitor_task.await?;++ tracing::info!("\nResults:");+ tracing::info!(" Task-specific updates received: {}", update_count);+ tracing::info!(" Download completed: {}", completed);++ if update_count > 0 {+ tracing::info!(" ✓ TASK-SPECIFIC broadcast works!");+ tracing::info!(" This proves URLSession delegates ARE firing");+ } else {+ tracing::info!(" ❌ No task-specific updates");+ tracing::info!(" URLSession delegates not firing in test environment");+ }++ test_manager.cleanup().await;+ Ok(())+}diff --git a/crates/download-manager/tests/test_universal_manager.rs b/crates/download-manager/tests/test_universal_manager.rsnew file mode 100644index 000000000..294c4e5f7--- /dev/null+++ b/crates/download-manager/tests/test_universal_manager.rs@@ -0,0 +1,94 @@+mod common;++use common::TestDownloadManager;+use download_manager::{FileCheck, FileDownloadManagerType};++#[tokio::test]+async fn test_universal_manager_create() {+ let test_manager = TestDownloadManager::new("test_universal_manager_create", FileDownloadManagerType::Universal)+ .await+ .expect("Failed to create manager");++ let tasks = test_manager.manager.get_all_file_tasks().await.expect("Failed to get tasks");+ assert_eq!(tasks.len(), 0, "New manager should have no tasks");+}++#[tokio::test]+async fn test_universal_manager_create_download_task() {+ let test_manager =+ TestDownloadManager::new("test_universal_manager_create_download_task", FileDownloadManagerType::Universal)+ .await+ .expect("Failed to create manager");++ let destination = test_manager.dest_path("test_file");++ let task = test_manager+ .manager+ .file_download_task(&test_manager.test_file.url, &destination, FileCheck::None, None)+ .await+ .expect("Failed to create task");++ assert_eq!(task.source_url(), &test_manager.test_file.url);+ assert_eq!(task.destination(), &destination);+}++#[tokio::test]+async fn test_universal_manager_task_state_transitions() {+ let test_manager =+ TestDownloadManager::new("test_universal_manager_task_state_transitions", FileDownloadManagerType::Universal)+ .await+ .expect("Failed to create manager");++ let destination = test_manager.dest_path("test_file");++ let task = test_manager+ .manager+ .file_download_task(+ &test_manager.test_file.url,+ &destination,+ FileCheck::None,+ Some(test_manager.test_file.size),+ )+ .await+ .expect("Failed to create task");++ let initial_state = task.state().await;+ assert!(+ matches!(initial_state.phase, download_manager::FileDownloadPhase::NotDownloaded),+ "Initial state should be NotDownloaded"+ );+}++#[tokio::test]+async fn test_universal_manager_part_file_state_reconciliation() {+ let test_manager = TestDownloadManager::new(+ "test_universal_manager_part_file_state_reconciliation",+ FileDownloadManagerType::Universal,+ )+ .await+ .expect("Failed to create manager");++ let destination = test_manager.dest_path("test_file");++ let part_path = destination.with_extension("part");+ std::fs::write(&part_path, b"partial content").expect("Failed to write part file");++ let task = test_manager+ .manager+ .file_download_task(+ &test_manager.test_file.url,+ &destination,+ FileCheck::None,+ Some(test_manager.test_file.size),+ )+ .await+ .expect("Failed to create task");++ let state = task.state().await;+ assert!(+ matches!(state.phase, download_manager::FileDownloadPhase::Paused),+ "State should be Paused when part file exists, got {:?}",+ state.phase+ );+ assert!(state.downloaded_bytes > 0, "Should have downloaded bytes");+}diff --git a/crates/hanashi/Cargo.toml b/crates/hanashi/Cargo.tomlnew file mode 100644index 000000000..b929e4b06--- /dev/null+++ b/crates/hanashi/Cargo.toml@@ -0,0 +1,57 @@+[package]+name = "hanashi"+version.workspace = true+edition.workspace = true+rust-version.workspace = true+license.workspace = true+authors.workspace = true+repository.workspace = true++[lib]+crate-type = ["lib", "cdylib", "staticlib"]++[features]+default = []+bindings = [+ "bindings-uniffi",+ "bindings-napi",+ "bindings-pyo3",+ "bindings-wasm",+]+bindings-uniffi = ["dep:uniffi"]+bindings-napi = ["dep:napi", "dep:napi-derive", "dep:napi-build"]+bindings-pyo3 = ["dep:pyo3"]+bindings-wasm = [+ "dep:wasm-bindgen",+ "dep:serde-wasm-bindgen",+ "dep:wasm-bindgen-futures",+ "dep:tsify",+]++[dependencies]+bindings.workspace = true+token-stream-parser.workspace = true+uniffi = { workspace = true, optional = true }+napi = { workspace = true, optional = true }+napi-derive = { workspace = true, optional = true }+pyo3 = { workspace = true, optional = true }+wasm-bindgen = { workspace = true, optional = true }+serde-wasm-bindgen = { workspace = true, optional = true }+wasm-bindgen-futures = { workspace = true, optional = true }+tsify = { workspace = true, optional = true }+tokenizers.workspace = true+openai-harmony.workspace = true+serde.workspace = true+serde_json.workspace = true+thiserror.workspace = true+minijinja.workspace = true+minijinja-contrib.workspace = true+regex.workspace = true+fancy-regex.workspace = true+llm_json.workspace = true+libc.workspace = true+indexmap.workspace = true++[build-dependencies]+serde_json.workspace = true+napi-build = { workspace = true, optional = true }diff --git a/crates/hanashi/build.rs b/crates/hanashi/build.rsnew file mode 100644index 000000000..172ab8bfb--- /dev/null+++ b/crates/hanashi/build.rs@@ -0,0 +1,86 @@+use std::{env, fs, path::Path};++const CONFIG_TYPES: &[&str] = &["parsing", "rendering", "tokens", "ordering"];++fn raw_string_delimiter(content: &str) -> String {+ let mut hashes = 1;+ loop {+ let closing = format!("\"{}", "#".repeat(hashes));+ if !content.contains(&closing) {+ return "#".repeat(hashes);+ }+ hashes += 1;+ }+}++fn main() {+ #[cfg(feature = "bindings-napi")]+ napi_build::setup();++ let manifest_directory = env::var("CARGO_MANIFEST_DIR").unwrap();+ let configs_directory = Path::new(&manifest_directory).join("configs");++ println!("cargo:rerun-if-changed={}", configs_directory.display());++ let out_directory = env::var("OUT_DIR").unwrap();+ let destination = Path::new(&out_directory).join("bundled_configs.rs");++ let mut code = String::new();++ for config_type in CONFIG_TYPES {+ let type_directory = configs_directory.join(config_type);+ if !type_directory.exists() {+ continue;+ }++ let mut entries: Vec<(String, String)> = Vec::new();++ for entry in fs::read_dir(&type_directory).expect("Failed to read config directory") {+ let path = entry.unwrap().path();+ if path.extension().map(|extension| extension == "json").unwrap_or(false) {+ let name = path.file_stem().unwrap().to_string_lossy().to_string();++ let content = fs::read_to_string(&path).unwrap();+ let _: serde_json::Value = serde_json::from_str(&content).unwrap_or_else(|error| {+ panic!("Invalid JSON in {}: {}", path.display(), error);+ });++ entries.push((name, content));+ }+ }++ entries.sort_by(|left, right| left.0.cmp(&right.0));++ let constant_name = format!("BUNDLED_{}_CONFIGS", config_type.to_uppercase());++ code.push_str(&format!("pub const {constant_name}: &[(&str, &str)] = &[\n"));+ for (name, content) in &entries {+ let delimiter = raw_string_delimiter(content);+ code.push_str(&format!(" (\"{name}\", r{delimiter}\"{content}\"{delimiter}),\n",));+ }+ code.push_str("];\n\n");+ }++ let configs_json_path = configs_directory.join("configs.json");+ if configs_json_path.exists() {+ let content = fs::read_to_string(&configs_json_path).unwrap();+ let configs: Vec<serde_json::Value> = serde_json::from_str(&content).unwrap_or_else(|error| {+ panic!("Invalid JSON in {}: {}", configs_json_path.display(), error);+ });++ code.push_str("pub const BUNDLED_CONFIG_MAPPINGS: &[(&str, &str, &str, &str, &str)] = &[\n");+ for config in &configs {+ let name = config["name"].as_str().unwrap();+ let parsing = config["parsing"].as_str().unwrap();+ let rendering = config["rendering"].as_str().unwrap();+ let tokens = config["tokens"].as_str().unwrap();+ let ordering = config["ordering"].as_str().unwrap();+ code.push_str(&format!(+ " (\"{name}\", \"{parsing}\", \"{rendering}\", \"{tokens}\", \"{ordering}\"),\n",+ ));+ }+ code.push_str("];\n\n");+ }++ fs::write(&destination, code).unwrap();+}diff --git a/crates/hanashi/configs/configs.json b/crates/hanashi/configs/configs.jsonnew file mode 100644index 000000000..0822c1080--- /dev/null+++ b/crates/hanashi/configs/configs.json@@ -0,0 +1,184 @@+[+ {+ "name": "llama-3.1",+ "parsing": "llama-3",+ "rendering": "llama-3.1",+ "tokens": "llama-3",+ "ordering": "default"+ },+ {+ "name": "llama-3.2",+ "parsing": "llama-3",+ "rendering": "llama-3.2",+ "tokens": "llama-3",+ "ordering": "default"+ },+ {+ "name": "qwen2.5",+ "parsing": "qwen2.5",+ "rendering": "qwen2.5",+ "tokens": "qwen2.5",+ "ordering": "default"+ },+ {+ "name": "qwen2.5-coder",+ "parsing": "qwen2.5-coder",+ "rendering": "qwen2.5-coder",+ "tokens": "qwen2.5",+ "ordering": "default-no-tools"+ },+ {+ "name": "qwen3",+ "parsing": "qwen3",+ "rendering": "qwen3",+ "tokens": "qwen3",+ "ordering": "default"+ },+ {+ "name": "qwen3-instruct",+ "parsing": "qwen3",+ "rendering": "qwen3-instruct",+ "tokens": "qwen3",+ "ordering": "default"+ },+ {+ "name": "qwen3-thinking",+ "parsing": "qwen3",+ "rendering": "qwen3-thinking",+ "tokens": "qwen3",+ "ordering": "default"+ },+ {+ "name": "qwen3.5",+ "parsing": "qwen3.5",+ "rendering": "qwen3.5",+ "tokens": "qwen3.5",+ "ordering": "default"+ },+ {+ "name": "gpt-oss",+ "parsing": "gpt-oss",+ "rendering": "gpt-oss",+ "tokens": "gpt-oss",+ "ordering": "default"+ },+ {+ "name": "lfm2",+ "parsing": "lfm2",+ "rendering": "lfm2",+ "tokens": "lfm2",+ "ordering": "default"+ },+ {+ "name": "lfm2.5-instruct",+ "parsing": "lfm2",+ "rendering": "lfm2.5-instruct",+ "tokens": "lfm2",+ "ordering": "default"+ },+ {+ "name": "lfm2.5-thinking",+ "parsing": "lfm2",+ "rendering": "lfm2.5-thinking",+ "tokens": "lfm2",+ "ordering": "default"+ },+ {+ "name": "deepseek-r1-distill-qwen",+ "parsing": "deepseek-r1-distill-qwen",+ "rendering": "deepseek-r1-distill-qwen",+ "tokens": "deepseek-r1-distill-qwen",+ "ordering": "default-no-tools"+ },+ {+ "name": "rnj-1",+ "parsing": "rnj-1",+ "rendering": "rnj-1",+ "tokens": "rnj-1",+ "ordering": "default"+ },+ {+ "name": "gemma-2",+ "parsing": "gemma-2",+ "rendering": "gemma-2",+ "tokens": "gemma-2",+ "ordering": "gemma-2"+ },+ {+ "name": "gemma-3",+ "parsing": "gemma-2",+ "rendering": "gemma-3",+ "tokens": "gemma-3",+ "ordering": "default-no-tools"+ },+ {+ "name": "functiongemma",+ "parsing": "functiongemma",+ "rendering": "functiongemma",+ "tokens": "functiongemma",+ "ordering": "functiongemma"+ },+ {+ "name": "translategemma",+ "parsing": "gemma-2",+ "rendering": "translategemma",+ "tokens": "translategemma",+ "ordering": "gemma-2"+ },+ {+ "name": "gemma-4",+ "parsing": "gemma-4",+ "rendering": "gemma-4",+ "tokens": "gemma-4",+ "ordering": "default"+ },+ {+ "name": "smollm2",+ "parsing": "smollm2",+ "rendering": "smollm2",+ "tokens": "smollm2",+ "ordering": "default-no-tools"+ },+ {+ "name": "smollm3",+ "parsing": "qwen3",+ "rendering": "smollm3",+ "tokens": "smollm3",+ "ordering": "default"+ },+ {+ "name": "codestral",+ "parsing": "mistral-small-3",+ "rendering": "codestral",+ "tokens": "codestral",+ "ordering": "default-no-tools"+ },+ {+ "name": "mistral-small-3",+ "parsing": "mistral-small-3",+ "rendering": "mistral-small-3",+ "tokens": "mistral-small-3",+ "ordering": "default-no-tools"+ },+ {+ "name": "devstral-small",+ "parsing": "mistral-small-3",+ "rendering": "devstral-small",+ "tokens": "devstral-small",+ "ordering": "devstral-small"+ },+ {+ "name": "polaris",+ "parsing": "qwen3",+ "rendering": "polaris",+ "tokens": "polaris",+ "ordering": "default"+ },+ {+ "name": "nanbeige",+ "parsing": "qwen3",+ "rendering": "nanbeige",+ "tokens": "nanbeige",+ "ordering": "default"+ }+]\ No newline at end of filediff --git a/crates/hanashi/configs/ordering/default-no-tools.json b/crates/hanashi/configs/ordering/default-no-tools.jsonnew file mode 100644index 000000000..011958091--- /dev/null+++ b/crates/hanashi/configs/ordering/default-no-tools.json@@ -0,0 +1,17 @@+{+ "initial": [+ "system",+ "user"+ ],+ "transitions": {+ "system": [+ "user"+ ],+ "user": [+ "assistant"+ ],+ "assistant": [+ "user"+ ]+ }+}\ No newline at end of filediff --git a/crates/hanashi/configs/ordering/default.json b/crates/hanashi/configs/ordering/default.jsonnew file mode 100644index 000000000..06a9495bd--- /dev/null+++ b/crates/hanashi/configs/ordering/default.json@@ -0,0 +1,27 @@+{+ "initial": [+ "system",+ "developer",+ "user"+ ],+ "transitions": {+ "system": [+ "developer",+ "user"+ ],+ "developer": [+ "user"+ ],+ "user": [+ "assistant"+ ],+ "assistant": [+ "tool",+ "user"+ ],+ "tool": [+ "tool",+ "assistant"+ ]+ }+}\ No newline at end of filediff --git a/crates/hanashi/configs/ordering/devstral-small.json b/crates/hanashi/configs/ordering/devstral-small.jsonnew file mode 100644index 000000000..700850ef7--- /dev/null+++ b/crates/hanashi/configs/ordering/devstral-small.json@@ -0,0 +1,16 @@+{+ "initial": [+ "system"+ ],+ "transitions": {+ "system": [+ "user"+ ],+ "user": [+ "assistant"+ ],+ "assistant": [+ "user"+ ]+ }+}\ No newline at end of filediff --git a/crates/hanashi/configs/ordering/functiongemma.json b/crates/hanashi/configs/ordering/functiongemma.jsonnew file mode 100644index 000000000..e996cee25--- /dev/null+++ b/crates/hanashi/configs/ordering/functiongemma.json@@ -0,0 +1,21 @@+{+ "initial": [+ "developer"+ ],+ "transitions": {+ "developer": [+ "user"+ ],+ "user": [+ "assistant"+ ],+ "assistant": [+ "tool",+ "user"+ ],+ "tool": [+ "tool",+ "assistant"+ ]+ }+}\ No newline at end of filediff --git a/crates/hanashi/configs/ordering/gemma-2.json b/crates/hanashi/configs/ordering/gemma-2.jsonnew file mode 100644index 000000000..1b2374402--- /dev/null+++ b/crates/hanashi/configs/ordering/gemma-2.json@@ -0,0 +1,13 @@+{+ "initial": [+ "user"+ ],+ "transitions": {+ "user": [+ "assistant"+ ],+ "assistant": [+ "user"+ ]+ }+}\ No newline at end of filediff --git a/crates/hanashi/configs/parsing/deepseek-r1-distill-qwen.json b/crates/hanashi/configs/parsing/deepseek-r1-distill-qwen.jsonnew file mode 100644index 000000000..5da6880af--- /dev/null+++ b/crates/hanashi/configs/parsing/deepseek-r1-distill-qwen.json@@ -0,0 +1,166 @@+{+ "reduction": {+ "groups": [+ {+ "type": "bounded",+ "name": "conversation",+ "open_token": "<|begin▁of▁sentence|>",+ "close_tokens": [],+ "groups": [+ {+ "type": "open",+ "name": "user_message",+ "open_token": "<|User|>"+ },+ {+ "type": "bounded",+ "name": "assistant_message",+ "open_token": "<|Assistant|>",+ "close_tokens": [+ "<|end▁of▁sentence|>"+ ],+ "groups": [+ {+ "type": "bounded",+ "name": "reasoning",+ "open_token": "<think>",+ "close_tokens": [+ "</think>"+ ]+ }+ ]+ }+ ]+ }+ ]+ },+ "transformation": {+ "conversation": [+ {+ "type": "get",+ "key": "$value"+ },+ {+ "type": "each",+ "apply": [+ {+ "type": "call",+ "name": "normalize_message"+ }+ ]+ }+ ],+ "normalize_message": [+ {+ "type": "switch",+ "key": [+ {+ "type": "get",+ "key": "type"+ }+ ],+ "cases": [+ {+ "when": {+ "type": "equals",+ "value": "$text"+ },+ "then": [+ {+ "type": "object",+ "fields": {+ "role": [+ {+ "type": "literal",+ "value": "system"+ }+ ],+ "content": [+ {+ "type": "get",+ "key": "value"+ }+ ]+ }+ }+ ]+ },+ {+ "when": {+ "type": "equals",+ "value": "user_message"+ },+ "then": [+ {+ "type": "object",+ "fields": {+ "role": [+ {+ "type": "literal",+ "value": "user"+ }+ ],+ "content": [+ {+ "type": "get",+ "key": "value"+ }+ ]+ }+ }+ ]+ },+ {+ "when": {+ "type": "equals",+ "value": "assistant_message"+ },+ "then": [+ {+ "type": "object",+ "fields": {+ "role": [+ {+ "type": "literal",+ "value": "assistant"+ }+ ],+ "content": [+ {+ "type": "get",+ "path": [+ "value",+ "sections"+ ]+ }+ ]+ }+ }+ ]+ }+ ]+ }+ ],+ "assistant_message": [+ {+ "type": "get",+ "key": "$value"+ },+ {+ "type": "object",+ "fields": {+ "sections": []+ }+ }+ ],+ "root": [+ {+ "type": "get",+ "key": "$value"+ },+ {+ "type": "first"+ }+ ]+ }+}\ No newline at end of filediff --git a/crates/hanashi/configs/parsing/functiongemma.json b/crates/hanashi/configs/parsing/functiongemma.jsonnew file mode 100644index 000000000..ce9a040d1--- /dev/null+++ b/crates/hanashi/configs/parsing/functiongemma.json@@ -0,0 +1,60 @@+{+ "reduction": {+ "groups": [+ {+ "type": "bounded",+ "name": "message",+ "open_token": "<start_of_turn>",+ "close_tokens": [+ "<end_of_turn>"+ ],+ "groups": [+ {+ "type": "greedy",+ "name": "role",+ "capturing_limit": 1+ },+ {+ "type": "greedy",+ "name": "content",+ "groups": [+ {+ "type": "bounded",+ "name": "tool_call",+ "open_token": "<start_function_call>",+ "close_tokens": [+ "<end_function_call>"+ ]+ }+ ]+ }+ ]+ }+ ]+ },+ "transformation": {+ "tool_call": [+ {+ "type": "on",+ "field": "$finished",+ "with": "$value",+ "do": [+ {+ "type": "regex_replace",+ "pattern": "call:(\\w+)\\{([\\s\\S]*)\\}",+ "template": "{\"name\": \"$1\", \"arguments\": {$2}}"+ },+ {+ "type": "regex_replace",+ "pattern": "<escape>",+ "template": "\""+ },+ {+ "type": "parse_json",+ "repair": true+ }+ ]+ }+ ]+ }+}diff --git a/crates/hanashi/configs/parsing/gemma-2.json b/crates/hanashi/configs/parsing/gemma-2.jsonnew file mode 100644index 000000000..ef1332a34--- /dev/null+++ b/crates/hanashi/configs/parsing/gemma-2.json@@ -0,0 +1,26 @@+{+ "reduction": {+ "groups": [+ {+ "type": "bounded",+ "name": "message",+ "open_token": "<start_of_turn>",+ "close_tokens": [+ "<end_of_turn>"+ ],+ "groups": [+ {+ "type": "greedy",+ "name": "role",+ "capturing_limit": 1+ },+ {+ "type": "greedy",+ "name": "content"+ }+ ]+ }+ ]+ },+ "transformation": {}+}diff --git a/crates/hanashi/configs/parsing/gemma-4.json b/crates/hanashi/configs/parsing/gemma-4.jsonnew file mode 100644index 000000000..398e9e966--- /dev/null+++ b/crates/hanashi/configs/parsing/gemma-4.json@@ -0,0 +1,215 @@+{+ "reduction": {+ "groups": [+ {+ "type": "bounded",+ "name": "message",+ "open_token": "<|turn>",+ "close_tokens": [+ "<turn|>",+ "<eos>"+ ],+ "groups": [+ {+ "type": "greedy",+ "name": "role",+ "capturing_limit": 1+ },+ {+ "type": "greedy",+ "name": "content",+ "groups": [+ {+ "type": "bounded",+ "name": "channel",+ "open_token": "<|channel>",+ "close_tokens": [+ "<channel|>"+ ],+ "groups": [+ {+ "type": "greedy",+ "name": "channel_name",+ "capturing_limit": 1+ },+ {+ "type": "greedy",+ "name": "channel_content"+ }+ ]+ },+ {+ "type": "bounded",+ "name": "tool_call",+ "open_token": "<|tool_call>",+ "close_tokens": [+ "<tool_call|>"+ ]+ },+ {+ "type": "bounded",+ "name": "tool_call_result",+ "open_token": "<|tool_response>",+ "close_tokens": [+ "<tool_response|>"+ ]+ }+ ]+ }+ ]+ }+ ]+ },+ "transformation": {+ "content": [+ {+ "type": "get",+ "key": "$value"+ },+ {+ "type": "each",+ "apply": [+ {+ "type": "call",+ "name": "map_content_section"+ }+ ]+ },+ {+ "type": "filter",+ "condition": {+ "type": "not",+ "condition": {+ "type": "is_null"+ }+ }+ }+ ],+ "map_content_section": [+ {+ "type": "switch",+ "key": [+ {+ "type": "get",+ "key": "type"+ }+ ],+ "cases": [+ {+ "when": {+ "type": "equals",+ "value": "channel"+ },+ "then": [+ {+ "type": "call",+ "name": "map_channel"+ }+ ]+ }+ ],+ "default": []+ }+ ],+ "map_channel": [+ {+ "type": "get",+ "key": "value"+ },+ {+ "type": "resolve",+ "key": "channel_name",+ "map": {+ "thought": "reasoning"+ }+ },+ {+ "type": "switch",+ "key": [+ {+ "type": "get",+ "key": "channel_name"+ }+ ],+ "cases": [+ {+ "when": {+ "type": "is_null"+ },+ "then": [+ {+ "type": "literal",+ "value": null+ }+ ]+ }+ ],+ "default": [+ {+ "type": "object",+ "fields": {+ "type": [+ {+ "type": "get",+ "key": "channel_name"+ }+ ],+ "value": [+ {+ "type": "get",+ "key": "channel_content"+ }+ ]+ }+ }+ ]+ }+ ],+ "tool_call": [+ {+ "type": "on",+ "field": "$finished",+ "with": "$value",+ "do": [+ {+ "type": "regex_replace",+ "pattern": "call:(\\w+)\\{([\\s\\S]*)\\}",+ "template": "{\"name\": \"$1\", \"arguments\": {$2}}"+ },+ {+ "type": "regex_replace",+ "pattern": "<\\|\"\\|>",+ "template": "\""+ },+ {+ "type": "parse_json",+ "repair": true+ }+ ]+ }+ ],+ "tool_call_result": [+ {+ "type": "on",+ "field": "$finished",+ "with": "$value",+ "do": [+ {+ "type": "regex_replace",+ "pattern": "^response:(\\w+)\\{([\\s\\S]*)\\}",+ "template": "{\"name\": \"$1\", \"value\": {$2}}"+ },+ {+ "type": "regex_replace",+ "pattern": "<\\|\"\\|>",+ "template": "\""+ },+ {+ "type": "parse_json",+ "repair": true+ }+ ]+ }+ ]+ }+}\ No newline at end of filediff --git a/crates/hanashi/configs/parsing/gpt-oss.json b/crates/hanashi/configs/parsing/gpt-oss.jsonnew file mode 100644index 000000000..e3e41ca0d--- /dev/null+++ b/crates/hanashi/configs/parsing/gpt-oss.json@@ -0,0 +1,341 @@+{+ "reduction": {+ "groups": [+ {+ "type": "bounded",+ "name": "message",+ "open_token": "<|start|>",+ "close_tokens": [+ "<|end|>",+ "<|return|>",+ "<|call|>"+ ],+ "groups": [+ {+ "type": "greedy",+ "name": "role"+ },+ {+ "type": "open",+ "name": "channel",+ "open_token": "<|channel|>"+ },+ {+ "type": "open",+ "name": "content_type",+ "open_token": "<|constrain|>"+ },+ {+ "type": "open",+ "name": "content",+ "open_token": "<|message|>"+ }+ ]+ }+ ]+ },+ "transformation": {+ "root": [+ {+ "type": "get",+ "key": "$value"+ },+ {+ "type": "reduce",+ "key": [+ {+ "type": "get",+ "key": "role"+ }+ ],+ "if": {+ "type": "equals",+ "value": "assistant"+ },+ "then": [+ {+ "type": "call",+ "name": "merge_assistant"+ }+ ]+ }+ ],+ "merge_assistant": [+ {+ "type": "object",+ "fields": {+ "role": [+ {+ "type": "get",+ "path": [+ 0,+ "role"+ ]+ }+ ],+ "content": [+ {+ "type": "each",+ "apply": [+ {+ "type": "call",+ "name": "map_section"+ }+ ]+ },+ {+ "type": "filter",+ "condition": {+ "type": "not",+ "condition": {+ "type": "is_null"+ }+ }+ }+ ]+ }+ }+ ],+ "map_section": [+ {+ "type": "switch",+ "key": [+ {+ "type": "get",+ "key": "channel"+ }+ ],+ "cases": [+ {+ "when": {+ "type": "starts_with",+ "value": "commentary to"+ },+ "then": [+ {+ "type": "call",+ "name": "build_tool_call"+ }+ ]+ }+ ],+ "default": [+ {+ "type": "resolve",+ "key": "channel",+ "map": {+ "final": "$text",+ "analysis": "reasoning"+ }+ },+ {+ "type": "switch",+ "key": [+ {+ "type": "get",+ "key": "channel"+ }+ ],+ "cases": [+ {+ "when": {+ "type": "is_null"+ },+ "then": [+ {+ "type": "literal",+ "value": null+ }+ ]+ }+ ],+ "default": [+ {+ "type": "object",+ "fields": {+ "type": [+ {+ "type": "get",+ "key": "channel"+ }+ ],+ "value": [+ {+ "type": "get",+ "key": "content"+ }+ ]+ }+ }+ ]+ }+ ]+ }+ ],+ "message": [+ {+ "type": "switch",+ "key": [+ {+ "type": "get",+ "path": [+ "$value",+ "channel"+ ]+ }+ ],+ "cases": [+ {+ "when": {+ "type": "equals",+ "value": "commentary"+ },+ "then": [+ {+ "type": "switch",+ "key": [+ {+ "type": "get",+ "path": [+ "$value",+ "content"+ ]+ }+ ],+ "cases": [+ {+ "when": {+ "type": "is_null"+ },+ "then": [+ {+ "type": "get",+ "key": "$value"+ }+ ]+ }+ ],+ "default": [+ {+ "type": "get",+ "key": "$value"+ },+ {+ "type": "object",+ "fields": {+ "role": [+ {+ "type": "get",+ "key": "role"+ }+ ],+ "channel": [+ {+ "type": "literal",+ "value": "analysis"+ }+ ],+ "content": [+ {+ "type": "get",+ "key": "content"+ }+ ]+ }+ }+ ]+ }+ ]+ },+ {+ "when": {+ "type": "starts_with",+ "value": "commentary to"+ },+ "then": [+ {+ "type": "on",+ "field": "$finished",+ "with": "$value",+ "do": [+ {+ "type": "object",+ "fields": {+ "role": [+ {+ "type": "get",+ "key": "role"+ }+ ],+ "channel": [+ {+ "type": "get",+ "key": "channel"+ }+ ],+ "content": [+ {+ "type": "get",+ "key": "content"+ },+ {+ "type": "parse_json",+ "repair": true+ }+ ]+ }+ }+ ]+ }+ ]+ }+ ],+ "default": [+ {+ "type": "get",+ "key": "$value"+ }+ ]+ }+ ],+ "build_tool_call": [+ {+ "type": "object",+ "fields": {+ "type": [+ {+ "type": "literal",+ "value": "tool_call"+ }+ ],+ "value": [+ {+ "type": "object",+ "fields": {+ "name": [+ {+ "type": "get",+ "key": "channel"+ },+ {+ "type": "regex_find_all",+ "pattern": "\\.([^.\\s]+)"+ },+ {+ "type": "first"+ }+ ],+ "arguments": [+ {+ "type": "get",+ "key": "content"+ }+ ]+ }+ }+ ]+ }+ }+ ]+ }+}\ No newline at end of filediff --git a/crates/hanashi/configs/parsing/lfm2.json b/crates/hanashi/configs/parsing/lfm2.jsonnew file mode 100644index 000000000..5a5b8ef68--- /dev/null+++ b/crates/hanashi/configs/parsing/lfm2.json@@ -0,0 +1,79 @@+{+ "reduction": {+ "groups": [+ {+ "type": "bounded",+ "name": "message",+ "open_token": "<|im_start|>",+ "close_tokens": [+ "<|im_end|>"+ ],+ "groups": [+ {+ "type": "greedy",+ "name": "role",+ "capturing_limit": 1+ },+ {+ "type": "greedy",+ "name": "content",+ "groups": [+ {+ "type": "bounded",+ "name": "reasoning",+ "open_token": "<think>",+ "close_tokens": [+ "</think>"+ ]+ },+ {+ "type": "bounded",+ "name": "tool_call",+ "open_token": "<|tool_call_start|>",+ "close_tokens": [+ "<|tool_call_end|>"+ ]+ }+ ]+ }+ ]+ }+ ]+ },+ "transformation": {+ "tool_call": [+ {+ "type": "on",+ "field": "$finished",+ "with": "$value",+ "do": [+ {+ "type": "regex_find_all",+ "regex_engine": "extended",+ "pattern": "\\w+\\(.*?\\)(?=,\\s*\\w+\\(|\\]|$)"+ },+ {+ "type": "each",+ "apply": [+ {+ "type": "regex_replace",+ "pattern": "(\\w+)\\(([\\s\\S]*)\\)",+ "template": "{\"name\": \"$1\", \"arguments\": {$2}}"+ },+ {+ "type": "regex_replace",+ "regex_engine": "extended",+ "pattern": "(\\w+)=('(?:[^'\\\\]|\\\\.)*'|\"(?:[^\"\\\\]|\\\\.)*\"|.*?)(?=,\\s*\\w+=|[}\\]]|$)",+ "template": "\"$1\": $2"+ },+ {+ "type": "parse_json",+ "repair": true+ }+ ]+ }+ ]+ }+ ]+ }+}\ No newline at end of filediff --git a/crates/hanashi/configs/parsing/llama-3.json b/crates/hanashi/configs/parsing/llama-3.jsonnew file mode 100644index 000000000..d6204ee35--- /dev/null+++ b/crates/hanashi/configs/parsing/llama-3.json@@ -0,0 +1,115 @@+{+ "reduction": {+ "groups": [+ {+ "type": "bounded",+ "name": "message",+ "open_token": "<|start_header_id|>",+ "close_tokens": [+ "<|eot_id|>",+ "<|eom_id|>"+ ],+ "groups": [+ {+ "type": "greedy",+ "name": "role",+ "capturing_limit": 1+ },+ {+ "type": "open",+ "name": "content",+ "open_token": "<|end_header_id|>",+ "groups": [+ {+ "type": "open",+ "name": "tool_call",+ "open_token": "<|python_tag|>"+ }+ ]+ }+ ]+ }+ ]+ },+ "transformation": {+ "tool_call": [+ {+ "type": "on",+ "field": "$finished",+ "with": "$value",+ "do": [+ {+ "type": "switch",+ "key": [],+ "cases": [+ {+ "when": {+ "type": "contains",+ "value": ".call("+ },+ "then": [+ {+ "type": "regex_replace",+ "pattern": "(\\w+)\\.call\\(([\\s\\S]*)\\)",+ "template": "{\"name\": \"$1\", \"arguments\": {$2}}"+ },+ {+ "type": "regex_replace",+ "regex_engine": "extended",+ "pattern": "(\\w+)=('(?:[^'\\\\]|\\\\.)*'|\"(?:[^\"\\\\]|\\\\.)*\"|.*?)(?=,\\s*\\w+=|[}\\]]|$)",+ "template": "\"$1\": $2"+ },+ {+ "type": "parse_json",+ "repair": true+ }+ ]+ },+ {+ "when": {+ "type": "starts_with",+ "value": "{"+ },+ "then": [+ {+ "type": "regex_find_all",+ "pattern": "([^;]+)"+ },+ {+ "type": "each",+ "apply": [+ {+ "type": "regex_replace",+ "pattern": "\"type\"\\s*:\\s*\"function\"\\s*,\\s*\"function\"\\s*:\\s*(?:\\{\\s*\"name\"\\s*:)?",+ "template": "\"name\":"+ },+ {+ "type": "regex_replace",+ "pattern": "\"parameters\"",+ "template": "\"arguments\""+ },+ {+ "type": "parse_json",+ "repair": true+ }+ ]+ }+ ]+ }+ ],+ "default": [+ {+ "type": "format",+ "template": "{\"name\": \"code_interpreter\", \"arguments\": {\"code\": \"{}\"}}"+ },+ {+ "type": "parse_json",+ "repair": true+ }+ ]+ }+ ]+ }+ ]+ }+}diff --git a/crates/hanashi/configs/parsing/mistral-small-3.json b/crates/hanashi/configs/parsing/mistral-small-3.jsonnew file mode 100644index 000000000..b35198639--- /dev/null+++ b/crates/hanashi/configs/parsing/mistral-small-3.json@@ -0,0 +1,116 @@+{+ "reduction": {+ "groups": [+ {+ "type": "bounded",+ "name": "conversation",+ "open_token": "<s>",+ "close_tokens": [],+ "groups": [+ {+ "type": "open",+ "name": "user_message",+ "open_token": "[INST]"+ },+ {+ "type": "bounded",+ "name": "assistant_message",+ "open_token": "[/INST]",+ "close_tokens": [+ "</s>"+ ]+ }+ ]+ }+ ]+ },+ "transformation": {+ "conversation": [+ {+ "type": "get",+ "key": "$value"+ },+ {+ "type": "each",+ "apply": [+ {+ "type": "call",+ "name": "normalize_message"+ }+ ]+ }+ ],+ "normalize_message": [+ {+ "type": "switch",+ "key": [+ {+ "type": "get",+ "key": "type"+ }+ ],+ "cases": [+ {+ "when": {+ "type": "equals",+ "value": "user_message"+ },+ "then": [+ {+ "type": "object",+ "fields": {+ "role": [+ {+ "type": "literal",+ "value": "user"+ }+ ],+ "content": [+ {+ "type": "get",+ "key": "value"+ }+ ]+ }+ }+ ]+ },+ {+ "when": {+ "type": "equals",+ "value": "assistant_message"+ },+ "then": [+ {+ "type": "object",+ "fields": {+ "role": [+ {+ "type": "literal",+ "value": "assistant"+ }+ ],+ "content": [+ {+ "type": "get",+ "key": "value"+ }+ ]+ }+ }+ ]+ }+ ]+ }+ ],+ "root": [+ {+ "type": "get",+ "key": "$value"+ },+ {+ "type": "first"+ }+ ]+ }+}\ No newline at end of filediff --git a/crates/hanashi/configs/parsing/qwen2.5-coder.json b/crates/hanashi/configs/parsing/qwen2.5-coder.jsonnew file mode 100644index 000000000..fead92020--- /dev/null+++ b/crates/hanashi/configs/parsing/qwen2.5-coder.json@@ -0,0 +1,26 @@+{+ "reduction": {+ "groups": [+ {+ "type": "bounded",+ "name": "message",+ "open_token": "<|im_start|>",+ "close_tokens": [+ "<|im_end|>"+ ],+ "groups": [+ {+ "type": "greedy",+ "name": "role",+ "capturing_limit": 1+ },+ {+ "type": "greedy",+ "name": "content"+ }+ ]+ }+ ]+ },+ "transformation": {}+}\ No newline at end of filediff --git a/crates/hanashi/configs/parsing/qwen2.5.json b/crates/hanashi/configs/parsing/qwen2.5.jsonnew file mode 100644index 000000000..7135ea6a8--- /dev/null+++ b/crates/hanashi/configs/parsing/qwen2.5.json@@ -0,0 +1,50 @@+{+ "reduction": {+ "groups": [+ {+ "type": "bounded",+ "name": "message",+ "open_token": "<|im_start|>",+ "close_tokens": [+ "<|im_end|>"+ ],+ "groups": [+ {+ "type": "greedy",+ "name": "role",+ "capturing_limit": 1+ },+ {+ "type": "greedy",+ "name": "content",+ "groups": [+ {+ "type": "bounded",+ "name": "tool_call",+ "open_token": "<tool_call>",+ "close_tokens": [+ "</tool_call>"+ ]+ }+ ]+ }+ ]+ }+ ]+ },+ "transformation": {+ "tool_call": [+ {+ "type": "on",+ "field": "$finished",+ "with": "$value",+ "do": [+ {+ "type": "parse_json",+ "repair": true+ }+ ]+ }+ ]+ }+}\ No newline at end of filediff --git a/crates/hanashi/configs/parsing/qwen3.5.json b/crates/hanashi/configs/parsing/qwen3.5.jsonnew file mode 100644index 000000000..d2022f50f--- /dev/null+++ b/crates/hanashi/configs/parsing/qwen3.5.json@@ -0,0 +1,101 @@+{+ "reduction": {+ "groups": [+ {+ "type": "bounded",+ "name": "message",+ "open_token": "<|im_start|>",+ "close_tokens": [+ "<|im_end|>"+ ],+ "groups": [+ {+ "type": "greedy",+ "name": "role",+ "capturing_limit": 1+ },+ {+ "type": "greedy",+ "name": "content",+ "groups": [+ {+ "type": "bounded",+ "name": "reasoning",+ "open_token": "<think>",+ "close_tokens": [+ "</think>"+ ]+ },+ {+ "type": "bounded",+ "name": "tool_call",+ "open_token": "<tool_call>",+ "close_tokens": [+ "</tool_call>"+ ]+ }+ ]+ }+ ]+ }+ ]+ },+ "transformation": {+ "tool_call": [+ {+ "type": "on",+ "field": "$finished",+ "with": "$value",+ "do": [+ {+ "type": "object",+ "fields": {+ "name": [+ {+ "type": "regex_find_all",+ "pattern": "<function=(\\w+)>"+ },+ {+ "type": "first"+ }+ ],+ "arguments": [+ {+ "type": "regex_find_all",+ "pattern": "<parameter=\\w+>[\\s\\S]*?</parameter>"+ },+ {+ "type": "each",+ "apply": [+ {+ "type": "regex_replace",+ "pattern": "<parameter=(\\w+)>\\n([{\\[][\\s\\S]*?[}\\]])\\n</parameter>",+ "template": "\"$1\": $2"+ },+ {+ "type": "regex_replace",+ "pattern": "<parameter=(\\w+)>\\n([\\s\\S]*?)\\n</parameter>",+ "template": "\"$1\": \"$2\""+ }+ ]+ },+ {+ "type": "join",+ "separator": ", "+ },+ {+ "type": "format",+ "template": "{ {} }"+ },+ {+ "type": "parse_json",+ "repair": true+ }+ ]+ }+ }+ ]+ }+ ]+ }+}diff --git a/crates/hanashi/configs/parsing/qwen3.json b/crates/hanashi/configs/parsing/qwen3.jsonnew file mode 100644index 000000000..82b49bf95--- /dev/null+++ b/crates/hanashi/configs/parsing/qwen3.json@@ -0,0 +1,58 @@+{+ "reduction": {+ "groups": [+ {+ "type": "bounded",+ "name": "message",+ "open_token": "<|im_start|>",+ "close_tokens": [+ "<|im_end|>"+ ],+ "groups": [+ {+ "type": "greedy",+ "name": "role",+ "capturing_limit": 1+ },+ {+ "type": "greedy",+ "name": "content",+ "groups": [+ {+ "type": "bounded",+ "name": "reasoning",+ "open_token": "<think>",+ "close_tokens": [+ "</think>"+ ]+ },+ {+ "type": "bounded",+ "name": "tool_call",+ "open_token": "<tool_call>",+ "close_tokens": [+ "</tool_call>"+ ]+ }+ ]+ }+ ]+ }+ ]+ },+ "transformation": {+ "tool_call": [+ {+ "type": "on",+ "field": "$finished",+ "with": "$value",+ "do": [+ {+ "type": "parse_json",+ "repair": true+ }+ ]+ }+ ]+ }+}\ No newline at end of filediff --git a/crates/hanashi/configs/parsing/rnj-1.json b/crates/hanashi/configs/parsing/rnj-1.jsonnew file mode 100644index 000000000..d60bb44ec--- /dev/null+++ b/crates/hanashi/configs/parsing/rnj-1.json@@ -0,0 +1,51 @@+{+ "reduction": {+ "groups": [+ {+ "type": "bounded",+ "name": "message",+ "open_token": "<|start_header_id|>",+ "close_tokens": [+ "<|eot_id|>"+ ],+ "groups": [+ {+ "type": "greedy",+ "name": "role",+ "capturing_limit": 1+ },+ {+ "type": "open",+ "name": "content",+ "open_token": "<|end_header_id|>",+ "groups": [+ {+ "type": "bounded",+ "name": "tool_call",+ "open_token": "<tool_call>",+ "close_tokens": [+ "</tool_call>"+ ]+ }+ ]+ }+ ]+ }+ ]+ },+ "transformation": {+ "tool_call": [+ {+ "type": "on",+ "field": "$finished",+ "with": "$value",+ "do": [+ {+ "type": "parse_json",+ "repair": true+ }+ ]+ }+ ]+ }+}\ No newline at end of filediff --git a/crates/hanashi/configs/parsing/smollm2.json b/crates/hanashi/configs/parsing/smollm2.jsonnew file mode 100644index 000000000..5d66e5cec--- /dev/null+++ b/crates/hanashi/configs/parsing/smollm2.json@@ -0,0 +1,26 @@+{+ "reduction": {+ "groups": [+ {+ "type": "bounded",+ "name": "message",+ "open_token": "<|im_start|>",+ "close_tokens": [+ "<|im_end|>"+ ],+ "groups": [+ {+ "type": "greedy",+ "name": "role"+ },+ {+ "type": "open",+ "name": "content",+ "open_token": "\n"+ }+ ]+ }+ ]+ },+ "transformation": {}+}diff --git a/crates/hanashi/configs/rendering/codestral.json b/crates/hanashi/configs/rendering/codestral.jsonnew file mode 100644index 000000000..9e8bcd0c5--- /dev/null+++ b/crates/hanashi/configs/rendering/codestral.json@@ -0,0 +1,50 @@+{+ "jinja": {+ "template": "{%- if messages[0]['role'] == 'system' %}\n {%- set system_message = messages[0]['content'] %}\n {%- set loop_messages = messages[1:] %}\n{%- else %}\n {%- set loop_messages = messages %}\n{%- endif %}\n\n{{- bos_token }}\n{%- for message in loop_messages %}\n {%- if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}\n {{- raise_exception('After the optional system message, conversation roles must alternate user/assistant/user/assistant/...') }}\n {%- endif %}\n {%- if message['role'] == 'user' %}\n {%- if loop.last and system_message is defined %}\n {{- '[INST] ' + system_message + '\\n\\n' + message['content'] + '[/INST]' }}\n {%- else %}\n {{- '[INST] ' + message['content'] + '[/INST]' }}\n {%- endif %}\n {%- elif message['role'] == 'assistant' %}\n {{- ' ' + message['content'] + eos_token}}\n {%- else %}\n {{- raise_exception('Only user and assistant roles are supported, with the exception of an initial optional system message!') }}\n {%- endif %}\n{%- endfor %}\n",+ "required_functions": [],+ "preamble_control_key": "add_generation_prompt",+ "bos_token_key": "bos_token",+ "eos_token_key": "eos_token"+ },+ "canonization": {+ "role_key": "role",+ "type_key": "type",+ "text_key": "text",+ "url_key": "url"+ },+ "rendering": {+ "system": {+ "role": "system",+ "message": {+ "content": {+ "required": true,+ "blocks": [+ "text"+ ]+ }+ }+ },+ "user": {+ "role": "user",+ "message": {+ "content": {+ "required": true,+ "blocks": [+ "text"+ ]+ }+ }+ },+ "assistant": {+ "role": "assistant",+ "message": {+ "content": {+ "required": true,+ "blocks": [+ "text"+ ]+ }+ }+ }+ }+}\ No newline at end of filediff --git a/crates/hanashi/configs/rendering/deepseek-r1-distill-qwen.json b/crates/hanashi/configs/rendering/deepseek-r1-distill-qwen.jsonnew file mode 100644index 000000000..f6e3a5466--- /dev/null+++ b/crates/hanashi/configs/rendering/deepseek-r1-distill-qwen.json@@ -0,0 +1,51 @@+{+ "jinja": {+ "template": "{% if not add_generation_prompt is defined %}{% set add_generation_prompt = false %}{% endif %}{% set ns = namespace(is_first=false, is_tool=false, is_output_first=true, system_prompt='') %}{%- for message in messages %}{%- if message['role'] == 'system' %}{% set ns.system_prompt = message['content'] %}{%- endif %}{%- endfor %}{{bos_token}}{{ns.system_prompt}}{%- for message in messages %}{%- if message['role'] == 'user' %}{%- set ns.is_tool = false -%}{{'<|User|>' + message['content']}}{%- endif %}{%- if message['role'] == 'assistant' and message['content'] is none %}{%- set ns.is_tool = false -%}{%- for tool in message['tool_calls']%}{%- if not ns.is_first %}{{'<|Assistant|><|tool▁calls▁begin|><|tool▁call▁begin|>' + tool['type'] + '<|tool▁sep|>' + tool['function']['name'] + '\\n' + '```json' + '\\n' + tool['function']['arguments'] + '\\n' + '```' + '<|tool▁call▁end|>'}}{%- set ns.is_first = true -%}{%- else %}{{'\\n' + '<|tool▁call▁begin|>' + tool['type'] + '<|tool▁sep|>' + tool['function']['name'] + '\\n' + '```json' + '\\n' + tool['function']['arguments'] + '\\n' + '```' + '<|tool▁call▁end|>'}}{{'<|tool▁calls▁end|><|end▁of▁sentence|>'}}{%- endif %}{%- endfor %}{%- endif %}{%- if message['role'] == 'assistant' and message['content'] is not none %}{%- if ns.is_tool %}{{'<|tool▁outputs▁end|>' + message['content'] + '<|end▁of▁sentence|>'}}{%- set ns.is_tool = false -%}{%- else %}{% set content = message['content'] %}{% if '</think>' in content %}{% set content = content.split('</think>')[-1] %}{% endif %}{{'<|Assistant|>' + content + '<|end▁of▁sentence|>'}}{%- endif %}{%- endif %}{%- if message['role'] == 'tool' %}{%- set ns.is_tool = true -%}{%- if ns.is_output_first %}{{'<|tool▁outputs▁begin|><|tool▁output▁begin|>' + message['content'] + '<|tool▁output▁end|>'}}{%- set ns.is_output_first = false %}{%- else %}{{'\\n<|tool▁output▁begin|>' + message['content'] + '<|tool▁output▁end|>'}}{%- endif %}{%- endif %}{%- endfor -%}{% if ns.is_tool %}{{'<|tool▁outputs▁end|>'}}{% endif %}{% if add_generation_prompt and not ns.is_tool %}{{'<|Assistant|><think>\\n'}}{% endif %}",+ "required_functions": [],+ "preamble_control_key": "add_generation_prompt",+ "bos_token_key": "bos_token"+ },+ "canonization": {+ "role_key": "role",+ "type_key": "type",+ "text_key": "text",+ "url_key": "url"+ },+ "rendering": {+ "system": {+ "role": "system",+ "message": {+ "content": {+ "required": true,+ "blocks": [+ "text"+ ]+ }+ }+ },+ "user": {+ "role": "user",+ "message": {+ "content": {+ "required": true,+ "blocks": [+ "text"+ ]+ }+ }+ },+ "assistant": {+ "role": "assistant",+ "message": {+ "content": {+ "blocks": [+ "text"+ ]+ },+ "reasoning_content": {+ "block": "reasoning"+ }+ }+ }+ }+}\ No newline at end of filediff --git a/crates/hanashi/configs/rendering/devstral-small.json b/crates/hanashi/configs/rendering/devstral-small.jsonnew file mode 100644index 000000000..41d0ced55--- /dev/null+++ b/crates/hanashi/configs/rendering/devstral-small.json@@ -0,0 +1,53 @@+{+ "jinja": {+ "template": "{%- set today = strftime_now(\"%Y-%m-%d\") %}\n{%- set default_system_message = \"You are Mistral Small 3, a Large Language Model (LLM) created by Mistral AI, a French startup headquartered in Paris.\\nYour knowledge base was last updated on 2023-10-01. The current date is \" + today + \".\\n\\nWhen you're not sure about some information, you say that you don't have the information and don't make up anything.\\nIf the user's question is not clear, ambiguous, or does not provide enough context for you to accurately answer the question, you do not try to answer it right away and you rather ask the user to clarify their request (e.g. \\\"What are some good restaurants around me?\\\" => \\\"Where are you?\\\" or \\\"When is the next flight to Tokyo\\\" => \\\"Where do you travel from?\\\")\" %}\n\n{{- bos_token }}\n\n{%- if messages[0]['role'] == 'system' %}\n {%- if messages[0]['content'] is string %}\n {%- set system_message = messages[0]['content'] %}\n {%- else %}\n {%- set system_message = messages[0]['content'][0]['text'] %}\n {%- endif %}\n {%- set loop_messages = messages[1:] %}\n{%- else %}\n {%- set system_message = default_system_message %}\n {%- set loop_messages = messages %}\n{%- endif %}\n{{- '[SYSTEM_PROMPT]' + system_message + '[/SYSTEM_PROMPT]' }}\n\n{%- for message in loop_messages %}\n {%- if message['role'] == 'user' %}\n {%- if message['content'] is string %}\n {{- '[INST]' + message['content'] + '[/INST]' }}\n {%- else %}\n {{- '[INST]' }}\n {%- for block in message['content'] %}\n {%- if block['type'] == 'text' %}\n {{- block['text'] }}\n {%- elif block['type'] in ['image', 'image_url'] %}\n {{- '[IMG]' }}\n {%- else %}\n {{- raise_exception('Only text and image blocks are supported in message content!') }}\n {%- endif %}\n {%- endfor %}\n {{- '[/INST]' }}\n {%- endif %}\n {%- elif message['role'] == 'system' %}\n {%- if message['content'] is string %}\n {{- '[SYSTEM_PROMPT]' + message['content'] + '[/SYSTEM_PROMPT]' }}\n {%- else %}\n {{- '[SYSTEM_PROMPT]' + message['content'][0]['text'] + '[/SYSTEM_PROMPT]' }}\n {%- endif %}\n {%- elif message['role'] == 'assistant' %}\n {%- if message['content'] is string %}\n {{- message['content'] + eos_token }}\n {%- else %}\n {{- message['content'][0]['text'] + eos_token }}\n {%- endif %}\n {%- else %}\n {{- raise_exception('Only user, system and assistant roles are supported!') }}\n {%- endif %}\n{%- endfor %}",+ "required_functions": [+ "strftime_now"+ ],+ "preamble_control_key": "add_generation_prompt",+ "bos_token_key": "bos_token",+ "eos_token_key": "eos_token"+ },+ "canonization": {+ "role_key": "role",+ "type_key": "type",+ "text_key": "text",+ "url_key": "url"+ },+ "rendering": {+ "system": {+ "role": "system",+ "message": {+ "content": {+ "required": true,+ "block": "text",+ "allowed_values": [+ "You are Devstral, a helpful agentic model trained by Mistral AI and using the OpenHands scaffold. You can interact with a computer to solve tasks.\n\n<ROLE>\nYour primary role is to assist users by executing commands, modifying code, and solving technical problems effectively. You should be thorough, methodical, and prioritize quality over speed.\n* If the user asks a question, like \"why is X happening\", don't try to fix the problem. Just give an answer to the question.\n</ROLE>\n\n<EFFICIENCY>\n* Each action you take is somewhat expensive. Wherever possible, combine multiple actions into a single action, e.g. combine multiple bash commands into one, using sed and grep to edit/view multiple files at once.\n* When exploring the codebase, use efficient tools like find, grep, and git commands with appropriate filters to minimize unnecessary operations.\n</EFFICIENCY>\n\n<FILE_SYSTEM_GUIDELINES>\n* When a user provides a file path, do NOT assume it's relative to the current working directory. First explore the file system to locate the file before working on it.\n* If asked to edit a file, edit the file directly, rather than creating a new file with a different filename.\n* For global search-and-replace operations, consider using `sed` instead of opening file editors multiple times.\n</FILE_SYSTEM_GUIDELINES>\n\n<CODE_QUALITY>\n* Write clean, efficient code with minimal comments. Avoid redundancy in comments: Do not repeat information that can be easily inferred from the code itself.\n* When implementing solutions, focus on making the minimal changes needed to solve the problem.\n* Before implementing any changes, first thoroughly understand the codebase through exploration.\n* If you are adding a lot of code to a function or file, consider splitting the function or file into smaller pieces when appropriate.\n</CODE_QUALITY>\n\n<VERSION_CONTROL>\n* When configuring git credentials, use \"openhands\" as the user.name and \"[email protected]\" as the user.email by default, unless explicitly instructed otherwise.\n* Exercise caution with git operations. Do NOT make potentially dangerous changes (e.g., pushing to main, deleting repositories) unless explicitly asked to do so.\n* When committing changes, use `git status` to see all modified files, and stage all files necessary for the commit. Use `git commit -a` whenever possible.\n* Do NOT commit files that typically shouldn't go into version control (e.g., node_modules/, .env files, build directories, cache files, large binaries) unless explicitly instructed by the user.\n* If unsure about committing certain files, check for the presence of .gitignore files or ask the user for clarification.\n</VERSION_CONTROL>\n\n<PULL_REQUESTS>\n* When creating pull requests, create only ONE per session/issue unless explicitly instructed otherwise.\n* When working with an existing PR, update it with new commits rather than creating additional PRs for the same issue.\n* When updating a PR, preserve the original PR title and purpose, updating description only when necessary.\n</PULL_REQUESTS>\n\n<PROBLEM_SOLVING_WORKFLOW>\n1. EXPLORATION: Thoroughly explore relevant files and understand the context before proposing solutions\n2. ANALYSIS: Consider multiple approaches and select the most promising one\n3. TESTING:\n * For bug fixes: Create tests to verify issues before implementing fixes\n * For new features: Consider test-driven development when appropriate\n * If the repository lacks testing infrastructure and implementing tests would require extensive setup, consult with the user before investing time in building testing infrastructure\n * If the environment is not set up to run tests, consult with the user first before investing time to install all dependencies\n4. IMPLEMENTATION: Make focused, minimal changes to address the problem\n5. VERIFICATION: If the environment is set up to run tests, test your implementation thoroughly, including edge cases. If the environment is not set up to run tests, consult with the user first before investing time to run tests.\n</PROBLEM_SOLVING_WORKFLOW>\n\n<SECURITY>\n* Only use GITHUB_TOKEN and other credentials in ways the user has explicitly requested and would expect.\n* Use APIs to work with GitHub or other platforms, unless the user asks otherwise or your task requires browsing.\n</SECURITY>\n\n<ENVIRONMENT_SETUP>\n* When user asks you to run an application, don't stop if the application is not installed. Instead, please install the application and run the command again.\n* If you encounter missing dependencies:\n 1. First, look around in the repository for existing dependency files (requirements.txt, pyproject.toml, package.json, Gemfile, etc.)\n 2. If dependency files exist, use them to install all dependencies at once (e.g., `pip install -r requirements.txt`, `npm install`, etc.)\n 3. Only install individual packages directly if no dependency files are found or if only specific packages are needed\n* Similarly, if you encounter missing dependencies for essential tools requested by the user, install them when possible.\n</ENVIRONMENT_SETUP>\n\n<TROUBLESHOOTING>\n* If you've made repeated attempts to solve a problem but tests still fail or the user reports it's still broken:\n 1. Step back and reflect on 5-7 different possible sources of the problem\n 2. Assess the likelihood of each possible cause\n 3. Methodically address the most likely causes, starting with the highest probability\n 4. Document your reasoning process\n* When you run into any major issue while executing a plan from the user, please don't try to directly work around it. Instead, propose a new plan and confirm with the user before proceeding.\n</TROUBLESHOOTING>"+ ]+ }+ }+ },+ "user": {+ "role": "user",+ "message": {+ "content": {+ "required": true,+ "blocks": [+ "text"+ ]+ }+ }+ },+ "assistant": {+ "role": "assistant",+ "message": {+ "content": {+ "required": true,+ "blocks": [+ "text"+ ]+ }+ }+ }+ }+}\ No newline at end of filediff --git a/crates/hanashi/configs/rendering/functiongemma.json b/crates/hanashi/configs/rendering/functiongemma.jsonnew file mode 100644index 000000000..ab6490f88--- /dev/null+++ b/crates/hanashi/configs/rendering/functiongemma.json@@ -0,0 +1,73 @@+{+ "jinja": {+ "template": "{%- macro format_parameters(properties, required) -%}\n {%- set standard_keys = ['description', 'type', 'properties', 'required', 'nullable'] -%}\n {%- set ns = namespace(found_first=false) -%}\n {%- for key, value in properties | dictsort -%}\n {%- if key not in standard_keys -%}\n {%- if ns.found_first %},{% endif -%}\n {%- set ns.found_first = true -%}\n {{- key }}:{description:<escape>{{ value['description'] }}<escape>\n {%- if value['type'] | upper == 'STRING' -%}\n {%- if value['enum'] -%}\n ,enum:{{ format_argument(value['enum']) }}\n {%- endif -%}\n {%- elif value['type'] | upper == 'OBJECT' -%}\n ,properties:{\n {%- if value['properties'] is defined and value['properties'] is mapping -%}\n {{- format_parameters(value['properties'], value['required'] | default([])) -}}\n {%- elif value is mapping -%}\n {{- format_parameters(value, value['required'] | default([])) -}}\n {%- endif -%}\n }\n {%- if value['required'] -%}\n ,required:[\n {%- for item in value['required'] | default([]) -%}\n <escape>{{- item -}}<escape>\n {%- if not loop.last %},{% endif -%}\n {%- endfor -%}\n ]\n {%- endif -%}\n {%- elif value['type'] | upper == 'ARRAY' -%}\n {%- if value['items'] is mapping and value['items'] -%}\n ,items:{\n {%- set ns_items = namespace(found_first=false) -%}\n {%- for item_key, item_value in value['items'] | dictsort -%}\n {%- if item_value is not none -%}\n {%- if ns_items.found_first %},{% endif -%}\n {%- set ns_items.found_first = true -%}\n {%- if item_key == 'properties' -%}\n properties:{\n {%- if item_value is mapping -%}\n {{- format_parameters(item_value, value['items']['required'] | default([])) -}}\n {%- endif -%}\n }\n {%- elif item_key == 'required' -%}\n required:[\n {%- for req_item in item_value -%}\n <escape>{{- req_item -}}<escape>\n {%- if not loop.last %},{% endif -%}\n {%- endfor -%}\n ]\n {%- elif item_key == 'type' -%}\n {%- if item_value is string -%}\n type:{{ format_argument(item_value | upper) }}\n {%- else -%}\n type:{{ format_argument(item_value | map('upper') | list) }}\n {%- endif -%}\n {%- else -%}\n {{ item_key }}:{{ format_argument(item_value) }}\n {%- endif -%}\n {%- endif -%}\n {%- endfor -%}\n }\n {%- endif -%}\n {%- endif -%}\n ,type:<escape>{{ value['type'] | upper }}<escape>}\n {%- endif -%}\n {%- endfor -%}\n{%- endmacro -%}\n{% macro format_function_declaration(tool_data) -%}\ndeclaration:{{- tool_data['function']['name'] -}}\n{description:<escape>{{- tool_data['function']['description'] -}}<escape>\n{%- set params = tool_data['function']['parameters'] -%}\n{%- if params -%}\n ,parameters:{\n {%- if params['properties'] -%}\n properties:{ {{- format_parameters(params['properties'], params['required']) -}} },\n {%- endif -%}\n {%- if params['required'] -%}\n required:[\n {%- for item in params['required'] -%}\n <escape>{{- item -}}<escape>\n {{- ',' if not loop.last -}}\n {%- endfor -%}\n ],\n {%- endif -%}\n {%- if params['type'] -%}\n type:<escape>{{- params['type'] | upper -}}<escape>}\n {%- endif -%}\n{%- endif -%}\n}\n{%- endmacro -%}\n{% macro format_argument(argument, escape_keys=True) -%}\n{%- if argument is string -%}\n {{- '<escape>' + argument + '<escape>' -}}\n{%- elif argument is boolean -%}\n {%- if argument -%}\n {{- 'true' -}}\n {%- else -%}\n {{- 'false' -}}\n {%- endif -%}\n{%- elif argument is mapping -%}\n {{- '{' -}}\n {%- set ns = namespace(found_first=false) -%}\n {%- for key, value in argument | dictsort -%}\n {%- if ns.found_first %},{% endif -%}\n {%- set ns.found_first = true -%}\n {%- if escape_keys -%}\n {{- '<escape>' + key + '<escape>' -}}\n {%- else -%}\n {{- key -}}\n {%- endif -%}\n :{{- format_argument(value, escape_keys=escape_keys) -}}\n {%- endfor -%}\n {{- '}' -}}\n{%- elif argument is sequence -%}\n {{- '[' -}}\n {%- for item in argument -%}\n {{- format_argument(item, escape_keys=escape_keys) -}}\n {%- if not loop.last %},{% endif -%}\n {%- endfor -%}\n {{- ']' -}}\n{%- else -%}\n {{- argument -}}\n{%- endif -%}\n{%- endmacro -%}\n{{ bos_token }}\n{%- set ns = namespace(prev_message_type=None) -%}\n{#- Tool Declarations -#}\n{%- set loop_messages = messages -%}\n{%- if tools or messages[0]['role'] == 'system' or messages[0]['role'] == 'developer' -%}\n {{- '<start_of_turn>developer\\n' -}}\n {%- if messages[0]['role'] == 'system' or messages[0]['role'] == 'developer' -%}\n {%- if messages[0]['content'] is string -%}\n {{- messages[0]['content'] | trim -}}\n {%- elif messages[0]['content'] is sequence -%}\n {%- for item in messages[0]['content'] -%}\n {%- if item['type'] == 'text' -%}\n {{- item['text'] | trim -}}\n {%- endif -%}\n {%- endfor -%}\n {%- endif -%}\n {%- set loop_messages = messages[1:] -%}\n {%- endif -%}\n {%- if tools -%}\n {%- for tool in tools %}\n {{- '<start_function_declaration>' -}}\n {{- format_function_declaration(tool) | trim }}\n {{- '<end_function_declaration>' -}}\n {%- endfor %}\n {%- endif -%}\n {{- '<end_of_turn>\\n' }}\n{%- endif %}\n{#- Loop through messages. -#}\n{%- for message in loop_messages -%}\n {%- if (message['role'] == 'assistant') -%}\n {#- Rename \"assistant\" to \"model\". -#}\n {%- set role = \"model\" -%}\n {%- else -%}\n {%- set role = message['role'] -%}\n {%- endif -%}\n {%- if role != 'tool' -%}\n {%- if ns.prev_message_type != 'tool_response' -%}\n {{- '<start_of_turn>' + role + '\\n' }}\n {%- endif -%}\n {%- set ns.prev_message_type = None -%}\n {%- if 'content' in message and message['content'] is not none -%}\n {%- if message['content'] is string -%}\n {{ message['content'] | trim }}\n {%- elif message['content'] is sequence -%}\n {%- for item in message['content'] -%}\n {%- if item['type'] == 'image' -%}\n {{ '<start_of_image>' }}\n {%- elif item['type'] == 'text' -%}\n {{ item['text'] | trim }}\n {%- endif -%}\n {%- endfor -%}\n {%- else -%}\n {{ raise_exception(\"Invalid content type in user/assistant message\") }}\n {%- endif -%}\n {%- set ns.prev_message_type = 'content' -%}\n {%- endif -%}\n {%- if 'tool_calls' in message and message['tool_calls'] and message['tool_calls'] is iterable -%}\n {#- Tool Calls -#}\n {%- for tool_call in message['tool_calls'] -%}\n {% set function = tool_call['function'] %}\n {{- '<start_function_call>call:' + function['name'] + '{' -}}\n {%- if 'arguments' in function -%}\n {%- if function['arguments'] is mapping -%}\n {%- set ns = namespace(found_first=false) -%}\n {%- for key, value in function['arguments'] | dictsort -%}\n {%- if ns.found_first %},{% endif -%}\n {%- set ns.found_first = true -%}\n {{- key -}}:{{- format_argument(value, escape_keys=False) -}}\n {%- endfor -%}\n {%- elif function['arguments'] is string -%}\n {# This handles string-JSON, just in case #}\n {{ function['arguments'] }}\n {%- endif %}\n {%- endif -%}\n {{- '}<end_function_call>' -}}\n {%- endfor -%}\n {%- if loop.last -%}\n {{ '<start_function_response>' }}\n {%- endif -%}\n {%- set ns.prev_message_type = 'tool_call' -%}\n {%- endif -%}\n {%- else -%}\n {#- Tool Responses -#}\n {%- if 'content' in message and message['content'] -%}\n {%- if message['content'] is mapping -%}\n {%- if 'name' in message['content'] and 'response' in message['content'] -%}\n {{ '<start_function_response>response:' + message['content']['name'] | trim + '{' }}\n {%- set response_ns = namespace(found_first=false) -%}\n {%- for key, value in message['content']['response'] | dictsort -%}\n {%- if response_ns.found_first %},{% endif -%}\n {%- set response_ns.found_first = true -%}\n {{- key -}}:{{- format_argument(value, escape_keys=False) -}}\n {%- endfor -%}\n {{- '}<end_function_response>' -}}\n {%- elif 'name' in message -%}\n {{ '<start_function_response>response:' + message['name'] | trim + '{' }}\n {%- set response_ns = namespace(found_first=false) -%}\n {%- for key, value in message['content'] | dictsort -%}\n {%- if response_ns.found_first %},{% endif -%}\n {%- set response_ns.found_first = true -%}\n {{- key -}}:{{- format_argument(value, escape_keys=False) -}}\n {%- endfor -%}\n {{- '}<end_function_response>' -}}\n {%- else -%}\n {{ raise_exception(\"Invalid tool response mapping: must contain 'name' and 'response' keys, or 'name' must be in the message.\") }}\n {%- endif -%}\n {%- elif message['content'] is string -%}\n {%- if 'name' in message -%}\n {{ '<start_function_response>response:' + message['name'] | trim + '{value:' + format_argument(message['content'], escape_keys=False) + '}<end_function_response>' }}\n {%- else -%}\n {{ raise_exception(\"Invalid tool response: 'name' must be provided.\") }}\n {%- endif -%}\n {%- elif message['content'] is sequence -%}\n {%- for item in message['content'] -%}\n {%- if item is mapping -%}\n {%- if 'name' in item and 'response' in item -%}\n {{ '<start_function_response>response:' + item['name'] | trim + '{' }}\n {%- set response_ns = namespace(found_first=false) -%}\n {%- for key, value in item['response'] | dictsort -%}\n {%- if response_ns.found_first %},{% endif -%}\n {%- set response_ns.found_first = true -%}\n {{- key -}}:{{- format_argument(value, escape_keys=False) -}}\n {%- endfor -%}\n {{- '}<end_function_response>' -}}\n {%- elif 'name' in message -%}\n {{ '<start_function_response>response:' + message['name'] | trim + '{' }}\n {%- set response_ns = namespace(found_first=false) -%}\n {%- for key, value in item | dictsort -%}\n {%- if response_ns.found_first %},{% endif -%}\n {%- set response_ns.found_first = true -%}\n {{- key -}}:{{- format_argument(value, escape_keys=False) -}}\n {%- endfor -%}\n {{- '}<end_function_response>' -}}\n {%- else -%}\n {{ raise_exception(\"Invalid tool response mapping: must contain 'name' and 'response' keys, or 'name' must be in the message.\") }}\n {%- endif -%}\n {%- else -%}\n {{ raise_exception(\"Invalid tool response message: multiple responses must all be mappings\") }}\n {%- endif -%}\n {%- endfor -%}\n {%- else -%}\n {{ raise_exception(\"Invalid content type in tool message: must be mapping, sequence of mappings, or string.\") }}\n {%- endif -%}\n {%- endif -%}\n {%- set ns.prev_message_type = 'tool_response' -%}\n {%- endif -%}\n {%- if ns.prev_message_type not in ['tool_call', 'tool_response'] -%}\n {{ '<end_of_turn>\\n' }}\n {%- endif -%}\n{%- endfor -%}\n{%- if add_generation_prompt -%}\n {%- if ns.prev_message_type != 'tool_response' -%}\n {{- '<start_of_turn>model\\n' -}}\n {%- endif -%}\n{%- endif -%}\n",+ "required_functions": [],+ "preamble_control_key": "add_generation_prompt",+ "bos_token_key": "bos_token"+ },+ "canonization": {+ "role_key": "role",+ "type_key": "type",+ "text_key": "text",+ "url_key": "url"+ },+ "rendering": {+ "developer": {+ "role": "developer",+ "message": {+ "content": {+ "required": true,+ "block": "text",+ "allowed_values": [+ "You are a model that can do function calling with the following functions"+ ]+ }+ },+ "context": {+ "tools": {+ "required": true,+ "block": "tools"+ }+ }+ },+ "user": {+ "role": "user",+ "message": {+ "content": {+ "required": true,+ "blocks": [+ "text"+ ]+ }+ }+ },+ "assistant": {+ "role": "model",+ "message": {+ "content": {+ "blocks": [+ "text"+ ]+ },+ "tool_calls": {+ "blocks": [+ "tool_call",+ "tool_call_candidate"+ ]+ }+ }+ },+ "tool": {+ "role": "tool",+ "message": {+ "content": {+ "required": true,+ "blocks": [+ "tool_call_result"+ ],+ "limit": 1+ }+ }+ }+ }+}\ No newline at end of filediff --git a/crates/hanashi/configs/rendering/gemma-2.json b/crates/hanashi/configs/rendering/gemma-2.jsonnew file mode 100644index 000000000..00001bed5--- /dev/null+++ b/crates/hanashi/configs/rendering/gemma-2.json@@ -0,0 +1,38 @@+{+ "jinja": {+ "template": "{{ bos_token }}{% if messages[0]['role'] == 'system' %}{{ raise_exception('System role not supported') }}{% endif %}{% for message in messages %}{% if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}{{ raise_exception('Conversation roles must alternate user/assistant/user/assistant/...') }}{% endif %}{% if (message['role'] == 'assistant') %}{% set role = 'model' %}{% else %}{% set role = message['role'] %}{% endif %}{{ '<start_of_turn>' + role + '\n' + message['content'] | trim + '<end_of_turn>\n' }}{% endfor %}{% if add_generation_prompt %}{{'<start_of_turn>model\n'}}{% endif %}",+ "required_functions": [],+ "preamble_control_key": "add_generation_prompt",+ "bos_token_key": "bos_token"+ },+ "canonization": {+ "role_key": "role",+ "type_key": "type",+ "text_key": "text",+ "url_key": "url"+ },+ "rendering": {+ "user": {+ "role": "user",+ "message": {+ "content": {+ "required": true,+ "blocks": [+ "text"+ ]+ }+ }+ },+ "assistant": {+ "role": "model",+ "message": {+ "content": {+ "required": true,+ "blocks": [+ "text"+ ]+ }+ }+ }+ }+}\ No newline at end of filediff --git a/crates/hanashi/configs/rendering/gemma-3.json b/crates/hanashi/configs/rendering/gemma-3.jsonnew file mode 100644index 000000000..47cbf680a--- /dev/null+++ b/crates/hanashi/configs/rendering/gemma-3.json@@ -0,0 +1,49 @@+{+ "jinja": {+ "template": "{{ bos_token }}\n{%- if messages[0]['role'] == 'system' -%}\n {%- if messages[0]['content'] is string -%}\n {%- set first_user_prefix = messages[0]['content'] + '\n\n' -%}\n {%- else -%}\n {%- set first_user_prefix = messages[0]['content'][0]['text'] + '\n\n' -%}\n {%- endif -%}\n {%- set loop_messages = messages[1:] -%}\n{%- else -%}\n {%- set first_user_prefix = \"\" -%}\n {%- set loop_messages = messages -%}\n{%- endif -%}\n{%- for message in loop_messages -%}\n {%- if (message['role'] == 'user') != (loop.index0 % 2 == 0) -%}\n {{ raise_exception(\"Conversation roles must alternate user/assistant/user/assistant/...\") }}\n {%- endif -%}\n {%- if (message['role'] == 'assistant') -%}\n {%- set role = \"model\" -%}\n {%- else -%}\n {%- set role = message['role'] -%}\n {%- endif -%}\n {{ '<start_of_turn>' + role + '\n' + (first_user_prefix if loop.first else \"\") }}\n {%- if message['content'] is string -%}\n {{ message['content'] | trim }}\n {%- elif message['content'] is iterable -%}\n {%- for item in message['content'] -%}\n {%- if item['type'] == 'image' -%}\n {{ '<start_of_image>' }}\n {%- elif item['type'] == 'text' -%}\n {{ item['text'] | trim }}\n {%- endif -%}\n {%- endfor -%}\n {%- else -%}\n {{ raise_exception(\"Invalid content type\") }}\n {%- endif -%}\n {{ '<end_of_turn>\n' }}\n{%- endfor -%}\n{%- if add_generation_prompt -%}\n {{'<start_of_turn>model\n'}}\n{%- endif -%}\n",+ "required_functions": [],+ "preamble_control_key": "add_generation_prompt",+ "bos_token_key": "bos_token"+ },+ "canonization": {+ "role_key": "role",+ "type_key": "type",+ "text_key": "text",+ "url_key": "url"+ },+ "rendering": {+ "system": {+ "role": "system",+ "message": {+ "content": {+ "required": true,+ "blocks": [+ "text"+ ]+ }+ }+ },+ "user": {+ "role": "user",+ "message": {+ "content": {+ "required": true,+ "blocks": [+ "text"+ ]+ }+ }+ },+ "assistant": {+ "role": "model",+ "message": {+ "content": {+ "required": true,+ "blocks": [+ "text"+ ]+ }+ }+ }+ }+}\ No newline at end of filediff --git a/crates/hanashi/configs/rendering/gemma-4.json b/crates/hanashi/configs/rendering/gemma-4.jsonnew file mode 100644index 000000000..beb0faee7--- /dev/null+++ b/crates/hanashi/configs/rendering/gemma-4.json@@ -0,0 +1,85 @@+{+ "jinja": {+ "template": "{%- macro format_parameters(properties, required) -%}\n {%- set standard_keys = ['description', 'type', 'properties', 'required', 'nullable'] -%}\n {%- set ns = namespace(found_first=false) -%}\n {%- for key, value in properties | dictsort -%}\n {%- set add_comma = false -%}\n {%- if key not in standard_keys -%}\n {%- if ns.found_first %},{% endif -%}\n {%- set ns.found_first = true -%}\n {{ key }}:{\n {%- if value['description'] -%}\n description:<|\"|>{{ value['description'] }}<|\"|>\n {%- set add_comma = true -%}\n {%- endif -%}\n {%- if value['nullable'] %}\n {%- if add_comma %},{%- else -%} {%- set add_comma = true -%} {% endif -%}\n nullable:true\n {%- endif -%}\n {%- if value['type'] | upper == 'STRING' -%}\n {%- if value['enum'] -%}\n {%- if add_comma %},{%- else -%} {%- set add_comma = true -%} {% endif -%}\n enum:{{ format_argument(value['enum']) }}\n {%- endif -%}\n {%- elif value['type'] | upper == 'OBJECT' -%}\n ,properties:{\n {%- if value['properties'] is defined and value['properties'] is mapping -%}\n {{- format_parameters(value['properties'], value['required'] | default([])) -}}\n {%- elif value is mapping -%}\n {{- format_parameters(value, value['required'] | default([])) -}}\n {%- endif -%}\n }\n {%- if value['required'] -%}\n ,required:[\n {%- for item in value['required'] | default([]) -%}\n <|\"|>{{- item -}}<|\"|>\n {%- if not loop.last %},{% endif -%}\n {%- endfor -%}\n ]\n {%- endif -%}\n {%- elif value['type'] | upper == 'ARRAY' -%}\n {%- if value['items'] is mapping and value['items'] -%}\n ,items:{\n {%- set ns_items = namespace(found_first=false) -%}\n {%- for item_key, item_value in value['items'] | dictsort -%}\n {%- if item_value is not none -%}\n {%- if ns_items.found_first %},{% endif -%}\n {%- set ns_items.found_first = true -%}\n {%- if item_key == 'properties' -%}\n properties:{\n {%- if item_value is mapping -%}\n {{- format_parameters(item_value, value['items']['required'] | default([])) -}}\n {%- endif -%}\n }\n {%- elif item_key == 'required' -%}\n required:[\n {%- for req_item in item_value -%}\n <|\"|>{{- req_item -}}<|\"|>\n {%- if not loop.last %},{% endif -%}\n {%- endfor -%}\n ]\n {%- elif item_key == 'type' -%}\n {%- if item_value is string -%}\n type:{{ format_argument(item_value | upper) }}\n {%- else -%}\n type:{{ format_argument(item_value | map('upper') | list) }}\n {%- endif -%}\n {%- else -%}\n {{ item_key }}:{{ format_argument(item_value) }}\n {%- endif -%}\n {%- endif -%}\n {%- endfor -%}\n }\n {%- endif -%}\n {%- endif -%}\n {%- if add_comma %},{%- else -%} {%- set add_comma = true -%} {% endif -%}\n type:<|\"|>{{ value['type'] | upper }}<|\"|>}\n {%- endif -%}\n {%- endfor -%}\n{%- endmacro -%}\n{%- macro format_function_declaration(tool_data) -%}\n declaration:{{- tool_data['function']['name'] -}}{description:<|\"|>{{- tool_data['function']['description'] -}}<|\"|>\n {%- set params = tool_data['function']['parameters'] -%}\n {%- if params -%}\n ,parameters:{\n {%- if params['properties'] -%}\n properties:{ {{- format_parameters(params['properties'], params['required']) -}} },\n {%- endif -%}\n {%- if params['required'] -%}\n required:[\n {%- for item in params['required'] -%}\n <|\"|>{{- item -}}<|\"|>\n {{- ',' if not loop.last -}}\n {%- endfor -%}\n ],\n {%- endif -%}\n {%- if params['type'] -%}\n type:<|\"|>{{- params['type'] | upper -}}<|\"|>}\n {%- endif -%}\n {%- endif -%}\n {%- if 'response' in tool_data['function'] -%}\n {%- set response_declaration = tool_data['function']['response'] -%}\n ,response:{\n {%- if response_declaration['description'] -%}\n description:<|\"|>{{- response_declaration['description'] -}}<|\"|>,\n {%- endif -%}\n {%- if response_declaration['type'] | upper == 'OBJECT' -%}\n type:<|\"|>{{- response_declaration['type'] | upper -}}<|\"|>}\n {%- endif -%}\n {%- endif -%}\n }\n{%- endmacro -%}\n{%- macro format_argument(argument, escape_keys=True) -%}\n {%- if argument is string -%}\n {{- '<|\"|>' + argument + '<|\"|>' -}}\n {%- elif argument is boolean -%}\n {{- 'true' if argument else 'false' -}}\n {%- elif argument is mapping -%}\n {{- '{' -}}\n {%- set ns = namespace(found_first=false) -%}\n {%- for key, value in argument | dictsort -%}\n {%- if ns.found_first %},{% endif -%}\n {%- set ns.found_first = true -%}\n {%- if escape_keys -%}\n {{- '<|\"|>' + key + '<|\"|>' -}}\n {%- else -%}\n {{- key -}}\n {%- endif -%}\n :{{- format_argument(value, escape_keys=escape_keys) -}}\n {%- endfor -%}\n {{- '}' -}}\n {%- elif argument is sequence -%}\n {{- '[' -}}\n {%- for item in argument -%}\n {{- format_argument(item, escape_keys=escape_keys) -}}\n {%- if not loop.last %},{% endif -%}\n {%- endfor -%}\n {{- ']' -}}\n {%- else -%}\n {{- argument -}}\n {%- endif -%}\n{%- endmacro -%}\n{%- macro strip_thinking(text) -%}\n {%- set ns = namespace(result='') -%}\n {%- for part in text.split('<channel|>') -%}\n {%- if '<|channel>' in part -%}\n {%- set ns.result = ns.result + part.split('<|channel>')[0] -%}\n {%- else -%}\n {%- set ns.result = ns.result + part -%}\n {%- endif -%}\n {%- endfor -%}\n {{- ns.result | trim -}}\n{%- endmacro -%}\n\n{%- set ns = namespace(prev_message_type=None) -%}\n{%- set loop_messages = messages -%}\n{{ bos_token }}\n{#- Handle System/Tool Definitions Block -#}\n{%- if (enable_thinking is defined and enable_thinking) or tools or messages[0]['role'] in ['system', 'developer'] -%}\n {{- '<|turn>system\\n' -}}\n\n {#- Inject Thinking token at the very top of the FIRST system turn -#}\n {%- if enable_thinking is defined and enable_thinking -%}\n {{- '<|think|>' -}}\n {%- set ns.prev_message_type = 'think' -%}\n {%- endif -%}\n\n {%- if messages[0]['role'] in ['system', 'developer'] -%}\n {{- messages[0]['content'] | trim -}}\n {%- set loop_messages = messages[1:] -%}\n {%- endif -%}\n\n {%- if tools -%}\n {%- for tool in tools %}\n {{- '<|tool>' -}}\n {{- format_function_declaration(tool) | trim -}}\n {{- '<tool|>' -}}\n {%- endfor %}\n {%- set ns.prev_message_type = 'tool' -%}\n {%- endif -%}\n\n {{- '<turn|>\\n' -}}\n{%- endif %}\n\n{#- Loop through messages -#}\n{%- for message in loop_messages -%}\n {%- set ns.prev_message_type = None -%}\n {%- set role = 'model' if message['role'] == 'assistant' else message['role'] -%}\n {{- '<|turn>' + role + '\\n' }}\n\n {%- if message['tool_calls'] -%}\n {%- for tool_call in message['tool_calls'] -%}\n {%- set function = tool_call['function'] -%}\n {{- '<|tool_call>call:' + function['name'] + '{' -}}\n {%- if function['arguments'] is mapping -%}\n {%- set ns_args = namespace(found_first=false) -%}\n {%- for key, value in function['arguments'] | dictsort -%}\n {%- if ns_args.found_first %},{% endif -%}\n {%- set ns_args.found_first = true -%}\n {{- key -}}:{{- format_argument(value, escape_keys=False) -}}\n {%- endfor -%}\n {%- elif function['arguments'] is string -%}\n {{- function['arguments'] -}}\n {%- endif -%}\n {{- '}<tool_call|>' -}}\n {%- endfor -%}\n {%- set ns.prev_message_type = 'tool_call' -%}\n {%- endif -%}\n\n {%- if message['tool_responses'] -%}\n {#- Tool Response handling -#}\n {%- for tool_response in message['tool_responses'] -%}\n {{- '<|tool_response>' -}}\n {%- if tool_response['response'] is mapping -%}\n {{- 'response:' + tool_response['name'] | default('unknown') + '{' -}}\n {%- for key, value in tool_response['response'] | dictsort -%}\n {{- key -}}:{{- format_argument(value, escape_keys=False) -}}\n {%- if not loop.last %},{% endif -%}\n {%- endfor -%}\n {{- '}' -}}\n {%- else -%}\n {{- 'response:' + tool_response['name'] | default('unknown') + '{value:' + format_argument(tool_response['response'], escape_keys=False) + '}' -}}\n {%- endif -%}\n {{- '<tool_response|>' -}}\n {%- endfor -%}\n {%- set ns.prev_message_type = 'tool_response' -%}\n {%- endif -%}\n\n {%- if message['content'] is string -%}\n {%- if role == 'model' -%}\n {{- strip_thinking(message['content']) -}}\n {%- else -%}\n {{- message['content'] | trim -}}\n {%- endif -%}\n {%- elif message['content'] is sequence -%}\n {%- for item in message['content'] -%}\n {%- if item['type'] == 'text' -%}\n {%- if role == 'model' -%}\n {{- strip_thinking(item['text']) -}}\n {%- else -%}\n {{- item['text'] | trim -}}\n {%- endif -%}\n {%- elif item['type'] == 'image' -%}\n {{- '\\n\\n<|image|>\\n\\n' -}}\n {%- set ns.prev_message_type = 'image' -%}\n {%- elif item['type'] == 'audio' -%}\n {{- '<|audio|>' -}}\n {%- set ns.prev_message_type = 'audio' -%}\n {%- elif item['type'] == 'video' -%}\n {{- '\\n\\n<|video|>\\n\\n' -}}\n {%- set ns.prev_message_type = 'video' -%}\n {%- endif -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- if not (message['tool_responses'] and not message['content']) -%}\n {{- '<turn|>\\n' -}}\n {%- endif -%}\n{%- endfor -%}\n\n{%- if add_generation_prompt -%}\n {%- if ns.prev_message_type != 'tool_response' -%}\n {{- '<|turn>model\\n' -}}\n {%- endif -%}\n{%- endif -%}",+ "required_functions": [],+ "preamble_control_key": "add_generation_prompt",+ "bos_token_key": "bos_token"+ },+ "canonization": {+ "role_key": "role",+ "type_key": "type",+ "text_key": "text",+ "url_key": "url"+ },+ "rendering": {+ "system": {+ "role": "system",+ "message": {+ "content": {+ "blocks": [+ "text"+ ]+ }+ },+ "context": {+ "enable_thinking": {+ "block": "reasoning_effort",+ "mapping": {+ "disabled": false,+ "default": true+ }+ }+ }+ },+ "developer": {+ "role": "developer",+ "context": {+ "tools": {+ "block": "tools"+ }+ }+ },+ "user": {+ "role": "user",+ "message": {+ "content": {+ "required": true,+ "blocks": [+ "text"+ ]+ }+ }+ },+ "assistant": {+ "role": "model",+ "message": {+ "content": {+ "blocks": [+ "text"+ ]+ },+ "reasoning_content": {+ "block": "reasoning"+ },+ "tool_calls": {+ "blocks": [+ "tool_call",+ "tool_call_candidate"+ ]+ }+ }+ },+ "tool": {+ "role": "tool",+ "message": {+ "content": {+ "required": true,+ "blocks": [+ "tool_call_result"+ ],+ "limit": 1+ }+ }+ }+ }+}\ No newline at end of filediff --git a/crates/hanashi/configs/rendering/gpt-oss.json b/crates/hanashi/configs/rendering/gpt-oss.jsonnew file mode 100644index 000000000..b86b75441--- /dev/null+++ b/crates/hanashi/configs/rendering/gpt-oss.json@@ -0,0 +1,106 @@+{+ "jinja": {+ "template": "{#-\n In addition to the normal inputs of `messages` and `tools`, this template also accepts the\n following kwargs:\n - \"builtin_tools\": A list, can contain \"browser\" and/or \"python\".\n - \"model_identity\": A string that optionally describes the model identity.\n - \"reasoning_effort\": A string that describes the reasoning effort, defaults to \"medium\".\n #}\n\n{#- Tool Definition Rendering ============================================== #}\n{%- macro render_typescript_type(param_spec, required_params, is_nullable=false) -%}\n {%- if param_spec.type == \"array\" -%}\n {%- if param_spec['items'] -%}\n {%- if param_spec['items']['type'] == \"string\" -%}\n {{- \"string[]\" }}\n {%- elif param_spec['items']['type'] == \"number\" -%}\n {{- \"number[]\" }}\n {%- elif param_spec['items']['type'] == \"integer\" -%}\n {{- \"number[]\" }}\n {%- elif param_spec['items']['type'] == \"boolean\" -%}\n {{- \"boolean[]\" }}\n {%- else -%}\n {%- set inner_type = render_typescript_type(param_spec['items'], required_params) -%}\n {%- if inner_type == \"object | object\" or inner_type|length > 50 -%}\n {{- \"any[]\" }}\n {%- else -%}\n {{- inner_type + \"[]\" }}\n {%- endif -%}\n {%- endif -%}\n {%- if param_spec.nullable -%}\n {{- \" | null\" }}\n {%- endif -%}\n {%- else -%}\n {{- \"any[]\" }}\n {%- if param_spec.nullable -%}\n {{- \" | null\" }}\n {%- endif -%}\n {%- endif -%}\n {%- elif param_spec.type is defined and param_spec.type is iterable and param_spec.type is not string and param_spec.type is not mapping and param_spec.type[0] is defined -%}\n {#- Handle array of types like [\"object\", \"object\"] from Union[dict, list] #}\n {%- if param_spec.type | length > 1 -%}\n {{- param_spec.type | join(\" | \") }}\n {%- else -%}\n {{- param_spec.type[0] }}\n {%- endif -%}\n {%- elif param_spec.oneOf -%}\n {#- Handle oneOf schemas - check for complex unions and fallback to any #}\n {%- set has_object_variants = false -%}\n {%- for variant in param_spec.oneOf -%}\n {%- if variant.type == \"object\" -%}\n {%- set has_object_variants = true -%}\n {%- endif -%}\n {%- endfor -%}\n {%- if has_object_variants and param_spec.oneOf|length > 1 -%}\n {{- \"any\" }}\n {%- else -%}\n {%- for variant in param_spec.oneOf -%}\n {{- render_typescript_type(variant, required_params) -}}\n {%- if variant.description %}\n {{- \"// \" + variant.description }}\n {%- endif -%}\n {%- if variant.default is defined %}\n {{ \"// default: \" + variant.default|tojson }}\n {%- endif -%}\n {%- if not loop.last %}\n {{- \" | \" }}\n {% endif -%}\n {%- endfor -%}\n {%- endif -%}\n {%- elif param_spec.type == \"string\" -%}\n {%- if param_spec.enum -%}\n {{- '\"' + param_spec.enum|join('\" | \"') + '\"' -}}\n {%- else -%}\n {{- \"string\" }}\n {%- if param_spec.nullable %}\n {{- \" | null\" }}\n {%- endif -%}\n {%- endif -%}\n {%- elif param_spec.type == \"number\" -%}\n {{- \"number\" }}\n {%- elif param_spec.type == \"integer\" -%}\n {{- \"number\" }}\n {%- elif param_spec.type == \"boolean\" -%}\n {{- \"boolean\" }}\n\n {%- elif param_spec.type == \"object\" -%}\n {%- if param_spec.properties -%}\n {{- \"{\\n\" }}\n {%- for prop_name, prop_spec in param_spec.properties.items() -%}\n {{- prop_name -}}\n {%- if prop_name not in (param_spec.required or []) -%}\n {{- \"?\" }}\n {%- endif -%}\n {{- \": \" }}\n {{ render_typescript_type(prop_spec, param_spec.required or []) }}\n {%- if not loop.last -%}\n {{-\", \" }}\n {%- endif -%}\n {%- endfor -%}\n {{- \"}\" }}\n {%- else -%}\n {{- \"object\" }}\n {%- endif -%}\n {%- else -%}\n {{- \"any\" }}\n {%- endif -%}\n{%- endmacro -%}\n\n{%- macro render_tool_namespace(namespace_name, tools) -%}\n {{- \"## \" + namespace_name + \"\\n\\n\" }}\n {{- \"namespace \" + namespace_name + \" {\\n\\n\" }}\n {%- for tool in tools %}\n {%- set tool = tool.function %}\n {{- \"// \" + tool.description + \"\\n\" }}\n {{- \"type \"+ tool.name + \" = \" }}\n {%- if tool.parameters and tool.parameters.properties %}\n {{- \"(_: {\\n\" }}\n {%- for param_name, param_spec in tool.parameters.properties.items() %}\n {%- if param_spec.description %}\n {{- \"// \" + param_spec.description + \"\\n\" }}\n {%- endif %}\n {{- param_name }}\n {%- if param_name not in (tool.parameters.required or []) -%}\n {{- \"?\" }}\n {%- endif -%}\n {{- \": \" }}\n {{- render_typescript_type(param_spec, tool.parameters.required or []) }}\n {%- if param_spec.default is defined -%}\n {%- if param_spec.enum %}\n {{- \", // default: \" + param_spec.default }}\n {%- elif param_spec.oneOf %}\n {{- \"// default: \" + param_spec.default }}\n {%- else %}\n {{- \", // default: \" + param_spec.default|tojson }}\n {%- endif -%}\n {%- endif -%}\n {%- if not loop.last %}\n {{- \",\\n\" }}\n {%- else %}\n {{- \",\\n\" }}\n {%- endif -%}\n {%- endfor %}\n {{- \"}) => any;\\n\\n\" }}\n {%- else -%}\n {{- \"() => any;\\n\\n\" }}\n {%- endif -%}\n {%- endfor %}\n {{- \"} // namespace \" + namespace_name }}\n{%- endmacro -%}\n\n{%- macro render_builtin_tools(browser_tool, python_tool) -%}\n {%- if browser_tool %}\n {{- \"## browser\\n\\n\" }}\n {{- \"// Tool for browsing.\\n\" }}\n {{- \"// The `cursor` appears in brackets before each browsing display: `[{cursor}]`.\\n\" }}\n {{- \"// Cite information from the tool using the following format:\\n\" }}\n {{- \"// `【{cursor}†L{line_start}(-L{line_end})?】`, for example: `【6†L9-L11】` or `【8†L3】`.\\n\" }}\n {{- \"// Do not quote more than 10 words directly from the tool output.\\n\" }}\n {{- \"// sources=web (default: web)\\n\" }}\n {{- \"namespace browser {\\n\\n\" }}\n {{- \"// Searches for information related to `query` and displays `topn` results.\\n\" }}\n {{- \"type search = (_: {\\n\" }}\n {{- \"query: string,\\n\" }}\n {{- \"topn?: number, // default: 10\\n\" }}\n {{- \"source?: string,\\n\" }}\n {{- \"}) => any;\\n\\n\" }}\n {{- \"// Opens the link `id` from the page indicated by `cursor` starting at line number `loc`, showing `num_lines` lines.\\n\" }}\n {{- \"// Valid link ids are displayed with the formatting: `【{id}†.*】`.\\n\" }}\n {{- \"// If `cursor` is not provided, the most recent page is implied.\\n\" }}\n {{- \"// If `id` is a string, it is treated as a fully qualified URL associated with `source`.\\n\" }}\n {{- \"// If `loc` is not provided, the viewport will be positioned at the beginning of the document or centered on the most relevant passage, if available.\\n\" }}\n {{- \"// Use this function without `id` to scroll to a new location of an opened page.\\n\" }}\n {{- \"type open = (_: {\\n\" }}\n {{- \"id?: number | string, // default: -1\\n\" }}\n {{- \"cursor?: number, // default: -1\\n\" }}\n {{- \"loc?: number, // default: -1\\n\" }}\n {{- \"num_lines?: number, // default: -1\\n\" }}\n {{- \"view_source?: boolean, // default: false\\n\" }}\n {{- \"source?: string,\\n\" }}\n {{- \"}) => any;\\n\\n\" }}\n {{- \"// Finds exact matches of `pattern` in the current page, or the page given by `cursor`.\\n\" }}\n {{- \"type find = (_: {\\n\" }}\n {{- \"pattern: string,\\n\" }}\n {{- \"cursor?: number, // default: -1\\n\" }}\n {{- \"}) => any;\\n\\n\" }}\n {{- \"} // namespace browser\\n\\n\" }}\n {%- endif -%}\n\n {%- if python_tool %}\n {{- \"## python\\n\\n\" }}\n {{- \"Use this tool to execute Python code in your chain of thought. The code will not be shown to the user. This tool should be used for internal reasoning, but not for code that is intended to be visible to the user (e.g. when creating plots, tables, or files).\\n\\n\" }}\n {{- \"When you send a message containing Python code to python, it will be executed in a stateful Jupyter notebook environment. python will respond with the output of the execution or time out after 120.0 seconds. The drive at '/mnt/data' can be used to save and persist user files. Internet access for this session is UNKNOWN. Depends on the cluster.\\n\\n\" }}\n {%- endif -%}\n{%- endmacro -%}\n\n{#- System Message Construction ============================================ #}\n{%- macro build_system_message() -%}\n {%- if model_identity is not defined %}\n {%- set model_identity = \"You are ChatGPT, a large language model trained by OpenAI.\" %}\n {%- endif %}\n {{- model_identity + \"\\n\" }}\n {{- \"Knowledge cutoff: 2024-06\\n\" }}\n {{- \"Current date: \" + strftime_now(\"%Y-%m-%d\") + \"\\n\\n\" }}\n {%- if reasoning_effort is not defined %}\n {%- set reasoning_effort = \"medium\" %}\n {%- endif %}\n {{- \"Reasoning: \" + reasoning_effort + \"\\n\\n\" }}\n {%- if builtin_tools %}\n {{- \"# Tools\\n\\n\" }}\n {%- set available_builtin_tools = namespace(browser=false, python=false) %}\n {%- for tool in builtin_tools %}\n {%- if tool == \"browser\" %}\n {%- set available_builtin_tools.browser = true %}\n {%- elif tool == \"python\" %}\n {%- set available_builtin_tools.python = true %}\n {%- endif %}\n {%- endfor %}\n {{- render_builtin_tools(available_builtin_tools.browser, available_builtin_tools.python) }}\n {%- endif -%}\n {{- \"# Valid channels: analysis, commentary, final. Channel must be included for every message.\" }}\n {%- if tools -%}\n {{- \"\\nCalls to these tools must go to the commentary channel: 'functions'.\" }}\n {%- endif -%}\n{%- endmacro -%}\n\n{#- Main Template Logic ================================================= #}\n{#- Set defaults #}\n\n{#- Render system message #}\n{{- \"<|start|>system<|message|>\" }}\n{{- build_system_message() }}\n{{- \"<|end|>\" }}\n\n{#- Extract developer message #}\n{%- if messages[0].role == \"developer\" or messages[0].role == \"system\" %}\n {%- set developer_message = messages[0].content %}\n {%- set loop_messages = messages[1:] %}\n{%- else %}\n {%- set developer_message = \"\" %}\n {%- set loop_messages = messages %}\n{%- endif %}\n\n{#- Render developer message #}\n{%- if developer_message or tools %}\n {{- \"<|start|>developer<|message|>\" }}\n {%- if developer_message %}\n {{- \"# Instructions\\n\\n\" }}\n {{- developer_message }}\n {{- \"\\n\\n\" }}\n {%- endif %}\n {%- if tools -%}\n {{- \"# Tools\\n\\n\" }}\n {{- render_tool_namespace(\"functions\", tools) }}\n {%- endif -%}\n {{- \"<|end|>\" }}\n{%- endif %}\n\n{#- Render messages #}\n{%- set last_tool_call = namespace(name=none) %}\n{%- for message in loop_messages -%}\n {#- At this point only assistant/user/tool messages should remain #}\n {%- if message.role == 'assistant' -%}\n {#- Checks to ensure the messages are being passed in the format we expect #}\n {%- if \"content\" in message %}\n {%- if \"<|channel|>analysis<|message|>\" in message.content or \"<|channel|>final<|message|>\" in message.content %}\n {{- raise_exception(\"You have passed a message containing <|channel|> tags in the content field. Instead of doing this, you should pass analysis messages (the string between '<|message|>' and '<|end|>') in the 'thinking' field, and final messages (the string between '<|message|>' and '<|end|>') in the 'content' field.\") }}\n {%- endif %}\n {%- endif %}\n {%- if \"thinking\" in message %}\n {%- if \"<|channel|>analysis<|message|>\" in message.thinking or \"<|channel|>final<|message|>\" in message.thinking %}\n {{- raise_exception(\"You have passed a message containing <|channel|> tags in the thinking field. Instead of doing this, you should pass analysis messages (the string between '<|message|>' and '<|end|>') in the 'thinking' field, and final messages (the string between '<|message|>' and '<|end|>') in the 'content' field.\") }}\n {%- endif %}\n {%- endif %}\n {%- if \"tool_calls\" in message %}\n {#- We need very careful handling here - we want to drop the tool call analysis message if the model #}\n {#- has output a later <|final|> message, but otherwise we want to retain it. This is the only case #}\n {#- when we render CoT/analysis messages in inference. #}\n {%- set future_final_message = namespace(found=false) %}\n {%- for future_message in loop_messages[loop.index:] %}\n {%- if future_message.role == 'assistant' and \"tool_calls\" not in future_message %}\n {%- set future_final_message.found = true %}\n {%- endif %}\n {%- endfor %}\n {#- We assume max 1 tool call per message, and so we infer the tool call name #}\n {#- in \"tool\" messages from the most recent assistant tool call name #}\n {%- set tool_call = message.tool_calls[0] %}\n {%- if tool_call.function %}\n {%- set tool_call = tool_call.function %}\n {%- endif %}\n {%- if message.content and message.thinking %}\n {{- raise_exception(\"Cannot pass both content and thinking in an assistant message with tool calls! Put the analysis message in one or the other, but not both.\") }}\n {%- elif message.content and not future_final_message.found %}\n {{- \"<|start|>assistant<|channel|>analysis<|message|>\" + message.content + \"<|end|>\" }}\n {%- elif message.thinking and not future_final_message.found %}\n {{- \"<|start|>assistant<|channel|>analysis<|message|>\" + message.thinking + \"<|end|>\" }}\n {%- endif %}\n {{- \"<|start|>assistant to=\" }}\n {{- \"functions.\" + tool_call.name + \"<|channel|>commentary \" }}\n {{- (tool_call.content_type if tool_call.content_type is defined else \"json\") + \"<|message|>\" }}\n {{- tool_call.arguments|tojson }}\n {{- \"<|call|>\" }}\n {%- set last_tool_call.name = tool_call.name %}\n {%- elif loop.last and not add_generation_prompt %}\n {#- Only render the CoT if the final turn is an assistant turn and add_generation_prompt is false #}\n {#- This is a situation that should only occur in training, never in inference. #}\n {%- if \"thinking\" in message %}\n {{- \"<|start|>assistant<|channel|>analysis<|message|>\" + message.thinking + \"<|end|>\" }}\n {%- endif %}\n {#- <|return|> indicates the end of generation, but <|end|> does not #}\n {#- <|return|> should never be an input to the model, but we include it as the final token #}\n {#- when training, so the model learns to emit it. #}\n {{- \"<|start|>assistant<|channel|>final<|message|>\" + message.content + \"<|return|>\" }}\n {%- else %}\n {#- CoT is dropped during all previous turns, so we never render it for inference #}\n {{- \"<|start|>assistant<|channel|>final<|message|>\" + message.content + \"<|end|>\" }}\n {%- set last_tool_call.name = none %}\n {%- endif %}\n {%- elif message.role == 'tool' -%}\n {%- if last_tool_call.name is none %}\n {{- raise_exception(\"Message has tool role, but there was no previous assistant message with a tool call!\") }}\n {%- endif %}\n {{- \"<|start|>functions.\" + last_tool_call.name }}\n {{- \" to=assistant<|channel|>commentary<|message|>\" + message.content|tojson + \"<|end|>\" }}\n {%- elif message.role == 'user' -%}\n {{- \"<|start|>user<|message|>\" + message.content + \"<|end|>\" }}\n {%- endif -%}\n{%- endfor -%}\n\n{#- Generation prompt #}\n{%- if add_generation_prompt -%}\n<|start|>assistant\n{%- endif -%}",+ "required_functions": [+ "strftime_now"+ ],+ "preamble_control_key": "add_generation_prompt"+ },+ "canonization": {+ "role_key": "role",+ "type_key": "type",+ "text_key": "text"+ },+ "rendering": {+ "system": {+ "role": "system",+ "message": {+ "content": {+ "blocks": [+ "text"+ ]+ }+ },+ "context": {+ "model_identity": {+ "block": "identity"+ },+ "reasoning_effort": {+ "block": "reasoning_effort",+ "mapping": {+ "default": null,+ "low": "low",+ "medium": "medium",+ "high": "high"+ }+ },+ "builtin_tools": {+ "block": "builtin_tools",+ "allowed_values": [+ "browser",+ "python"+ ]+ }+ }+ },+ "developer": {+ "role": "developer",+ "message": {+ "content": {+ "blocks": [+ "text"+ ]+ }+ },+ "context": {+ "tools": {+ "block": "tools"+ }+ }+ },+ "user": {+ "role": "user",+ "message": {+ "content": {+ "required": true,+ "blocks": [+ "text",+ "custom"+ ]+ }+ }+ },+ "assistant": {+ "role": "assistant",+ "message": {+ "content": {+ "blocks": [+ "text"+ ]+ },+ "thinking": {+ "block": "reasoning"+ },+ "tool_calls": {+ "blocks": [+ "tool_call",+ "tool_call_candidate"+ ],+ "limit": 1+ }+ }+ },+ "tool": {+ "role": "tool",+ "message": {+ "content": {+ "required": true,+ "blocks": [+ "tool_call_result"+ ],+ "limit": 1+ }+ }+ }+ }+}\ No newline at end of filediff --git a/crates/hanashi/configs/rendering/lfm2.5-instruct.json b/crates/hanashi/configs/rendering/lfm2.5-instruct.jsonnew file mode 100644index 000000000..01c97c2c5--- /dev/null+++ b/crates/hanashi/configs/rendering/lfm2.5-instruct.json@@ -0,0 +1,73 @@+{+ "jinja": {+ "template": "{{- bos_token -}}\n{%- set keep_past_thinking = keep_past_thinking | default(false) -%}\n{%- set ns = namespace(system_prompt=\"\") -%}\n{%- if messages[0][\"role\"] == \"system\" -%}\n {%- set ns.system_prompt = messages[0][\"content\"] -%}\n {%- set messages = messages[1:] -%}\n{%- endif -%}\n{%- if tools -%}\n {%- set ns.system_prompt = ns.system_prompt + (\"\\n\" if ns.system_prompt else \"\") + \"List of tools: [\" -%}\n {%- for tool in tools -%}\n {%- if tool is not string -%}\n {%- set tool = tool | tojson -%}\n {%- endif -%}\n {%- set ns.system_prompt = ns.system_prompt + tool -%}\n {%- if not loop.last -%}\n {%- set ns.system_prompt = ns.system_prompt + \", \" -%}\n {%- endif -%}\n {%- endfor -%}\n {%- set ns.system_prompt = ns.system_prompt + \"]\" -%}\n{%- endif -%}\n{%- if ns.system_prompt -%}\n {{- \"<|im_start|>system\\n\" + ns.system_prompt + \"<|im_end|>\\n\" -}}\n{%- endif -%}\n{%- set ns.last_assistant_index = -1 -%}\n{%- for message in messages -%}\n {%- if message[\"role\"] == \"assistant\" -%}\n {%- set ns.last_assistant_index = loop.index0 -%}\n {%- endif -%}\n{%- endfor -%}\n{%- for message in messages -%}\n {{- \"<|im_start|>\" + message[\"role\"] + \"\\n\" -}}\n {%- set content = message[\"content\"] -%}\n {%- if content is not string -%}\n {%- set content = content | tojson -%}\n {%- endif -%}\n {%- if message[\"role\"] == \"assistant\" and not keep_past_thinking and loop.index0 != ns.last_assistant_index -%}\n {%- if \"</think>\" in content -%}\n {%- set content = content.split(\"</think>\")[-1] | trim -%}\n {%- endif -%}\n {%- endif -%}\n {{- content + \"<|im_end|>\\n\" -}}\n{%- endfor -%}\n{%- if add_generation_prompt -%}\n {{- \"<|im_start|>assistant\\n\" -}}\n{%- endif -%}",+ "required_functions": [],+ "preamble_control_key": "add_generation_prompt",+ "bos_token_key": "bos_token"+ },+ "canonization": {+ "role_key": "role",+ "type_key": "type",+ "text_key": "text"+ },+ "rendering": {+ "system": {+ "role": "system",+ "message": {+ "content": {+ "required": true,+ "blocks": [+ "text"+ ]+ }+ }+ },+ "developer": {+ "role": "developer",+ "context": {+ "tools": {+ "block": "tools"+ }+ }+ },+ "user": {+ "role": "user",+ "message": {+ "content": {+ "required": true,+ "blocks": [+ "text"+ ]+ }+ }+ },+ "assistant": {+ "role": "assistant",+ "message": {+ "content": {+ "blocks": [+ "text"+ ]+ },+ "tool_calls": {+ "blocks": [+ "tool_call",+ "tool_call_candidate"+ ]+ }+ }+ },+ "tool": {+ "role": "tool",+ "message": {+ "content": {+ "required": true,+ "blocks": [+ "tool_call_result"+ ],+ "limit": 1+ }+ }+ }+ }+}\ No newline at end of filediff --git a/crates/hanashi/configs/rendering/lfm2.5-thinking.json b/crates/hanashi/configs/rendering/lfm2.5-thinking.jsonnew file mode 100644index 000000000..76e1fb755--- /dev/null+++ b/crates/hanashi/configs/rendering/lfm2.5-thinking.json@@ -0,0 +1,76 @@+{+ "jinja": {+ "template": "{{- bos_token -}}\n{%- set keep_past_thinking = keep_past_thinking | default(false) -%}\n{%- set ns = namespace(system_prompt=\"\") -%}\n{%- if messages[0][\"role\"] == \"system\" -%}\n {%- set ns.system_prompt = messages[0][\"content\"] -%}\n {%- set messages = messages[1:] -%}\n{%- endif -%}\n{%- if tools -%}\n {%- set ns.system_prompt = ns.system_prompt + (\"\\n\" if ns.system_prompt else \"\") + \"List of tools: [\" -%}\n {%- for tool in tools -%}\n {%- if tool is not string -%}\n {%- set tool = tool | tojson -%}\n {%- endif -%}\n {%- set ns.system_prompt = ns.system_prompt + tool -%}\n {%- if not loop.last -%}\n {%- set ns.system_prompt = ns.system_prompt + \", \" -%}\n {%- endif -%}\n {%- endfor -%}\n {%- set ns.system_prompt = ns.system_prompt + \"]\" -%}\n{%- endif -%}\n{%- if ns.system_prompt -%}\n {{- \"<|im_start|>system\\n\" + ns.system_prompt + \"<|im_end|>\\n\" -}}\n{%- endif -%}\n{%- set ns.last_assistant_index = -1 -%}\n{%- for message in messages -%}\n {%- if message[\"role\"] == \"assistant\" -%}\n {%- set ns.last_assistant_index = loop.index0 -%}\n {%- endif -%}\n{%- endfor -%}\n{%- for message in messages -%}\n {{- \"<|im_start|>\" + message[\"role\"] + \"\\n\" -}}\n {%- set content = message[\"content\"] -%}\n {%- if content is not string -%}\n {%- set content = content | tojson -%}\n {%- endif -%}\n {%- if message[\"role\"] == \"assistant\" and not keep_past_thinking and loop.index0 != ns.last_assistant_index -%}\n {%- if \"</think>\" in content -%}\n {%- set content = content.split(\"</think>\")[-1] | trim -%}\n {%- endif -%}\n {%- endif -%}\n {{- content + \"<|im_end|>\\n\" -}}\n{%- endfor -%}\n{%- if add_generation_prompt -%}\n {{- \"<|im_start|>assistant\\n\" -}}\n{%- endif -%}",+ "required_functions": [],+ "preamble_control_key": "add_generation_prompt",+ "bos_token_key": "bos_token"+ },+ "canonization": {+ "role_key": "role",+ "type_key": "type",+ "text_key": "text"+ },+ "rendering": {+ "system": {+ "role": "system",+ "message": {+ "content": {+ "required": true,+ "blocks": [+ "text"+ ]+ }+ }+ },+ "developer": {+ "role": "developer",+ "context": {+ "tools": {+ "block": "tools"+ }+ }+ },+ "user": {+ "role": "user",+ "message": {+ "content": {+ "required": true,+ "blocks": [+ "text"+ ]+ }+ }+ },+ "assistant": {+ "role": "assistant",+ "message": {+ "content": {+ "blocks": [+ "text"+ ]+ },+ "reasoning_content": {+ "block": "reasoning"+ },+ "tool_calls": {+ "blocks": [+ "tool_call",+ "tool_call_candidate"+ ]+ }+ }+ },+ "tool": {+ "role": "tool",+ "message": {+ "content": {+ "required": true,+ "blocks": [+ "tool_call_result"+ ],+ "limit": 1+ }+ }+ }+ }+}\ No newline at end of filediff --git a/crates/hanashi/configs/rendering/lfm2.json b/crates/hanashi/configs/rendering/lfm2.jsonnew file mode 100644index 000000000..9520d26ca--- /dev/null+++ b/crates/hanashi/configs/rendering/lfm2.json@@ -0,0 +1,73 @@+{+ "jinja": {+ "template": "{{- bos_token -}}\n{%- set system_prompt = \"\" -%}\n{%- set ns = namespace(system_prompt=\"\") -%}\n{%- if messages[0][\"role\"] == \"system\" -%}\n\t{%- set ns.system_prompt = messages[0][\"content\"] -%}\n\t{%- set messages = messages[1:] -%}\n{%- endif -%}\n{%- if tools -%}\n\t{%- set ns.system_prompt = ns.system_prompt + (\"\\n\" if ns.system_prompt else \"\") + \"List of tools: <|tool_list_start|>[\" -%}\n\t{%- for tool in tools -%}\n\t\t{%- if tool is not string -%}\n {%- set tool = tool | tojson -%}\n\t\t{%- endif -%}\n\t\t{%- set ns.system_prompt = ns.system_prompt + tool -%}\n {%- if not loop.last -%}\n {%- set ns.system_prompt = ns.system_prompt + \", \" -%}\n {%- endif -%}\n\t{%- endfor -%}\n\t{%- set ns.system_prompt = ns.system_prompt + \"]<|tool_list_end|>\" -%}\n{%- endif -%}\n{%- if ns.system_prompt -%}\n\t{{- \"<|im_start|>system\\n\" + ns.system_prompt + \"<|im_end|>\\n\" -}}\n{%- endif -%}\n{%- for message in messages -%}\n\t{{- \"<|im_start|>\" + message[\"role\"] + \"\\n\" -}}\n\t{%- set content = message[\"content\"] -%}\n\t{%- if content is not string -%}\n\t\t{%- set content = content | tojson -%}\n\t{%- endif -%}\n\t{%- if message[\"role\"] == \"tool\" -%}\n\t\t{%- set content = \"<|tool_response_start|>\" + content + \"<|tool_response_end|>\" -%}\n\t{%- endif -%}\n\t{{- content + \"<|im_end|>\\n\" -}}\n{%- endfor -%}\n{%- if add_generation_prompt -%}\n\t{{- \"<|im_start|>assistant\\n\" -}}\n{%- endif -%}",+ "required_functions": [],+ "preamble_control_key": "add_generation_prompt",+ "bos_token_key": "bos_token"+ },+ "canonization": {+ "role_key": "role",+ "type_key": "type",+ "text_key": "text"+ },+ "rendering": {+ "system": {+ "role": "system",+ "message": {+ "content": {+ "required": true,+ "blocks": [+ "text"+ ]+ }+ }+ },+ "developer": {+ "role": "developer",+ "context": {+ "tools": {+ "block": "tools"+ }+ }+ },+ "user": {+ "role": "user",+ "message": {+ "content": {+ "required": true,+ "blocks": [+ "text"+ ]+ }+ }+ },+ "assistant": {+ "role": "assistant",+ "message": {+ "content": {+ "blocks": [+ "text"+ ]+ },+ "tool_calls": {+ "blocks": [+ "tool_call",+ "tool_call_candidate"+ ]+ }+ }+ },+ "tool": {+ "role": "tool",+ "message": {+ "content": {+ "required": true,+ "blocks": [+ "tool_call_result"+ ],+ "limit": 1+ }+ }+ }+ }+}\ No newline at end of filediff --git a/crates/hanashi/configs/rendering/llama-3.1.json b/crates/hanashi/configs/rendering/llama-3.1.jsonnew file mode 100644index 000000000..8a53e3772--- /dev/null+++ b/crates/hanashi/configs/rendering/llama-3.1.json@@ -0,0 +1,82 @@+{+ "jinja": {+ "template": "{{- bos_token }}\n{%- if custom_tools is defined %}\n {%- set tools = custom_tools %}\n{%- endif %}\n{%- if not tools_in_user_message is defined %}\n {%- set tools_in_user_message = true %}\n{%- endif %}\n{%- if not date_string is defined %}\n {%- set date_string = \"26 Jul 2024\" %}\n{%- endif %}\n{%- if not tools is defined %}\n {%- set tools = none %}\n{%- endif %}\n\n{#- This block extracts the system message, so we can slot it into the right place. #}\n{%- if messages[0]['role'] == 'system' %}\n {%- set system_message = messages[0]['content']|trim %}\n {%- set messages = messages[1:] %}\n{%- else %}\n {%- set system_message = \"\" %}\n{%- endif %}\n\n{#- System message + builtin tools #}\n{{- \"<|start_header_id|>system<|end_header_id|>\\n\\n\" }}\n{%- if builtin_tools is defined or tools is not none %}\n {{- \"Environment: ipython\\n\" }}\n{%- endif %}\n{%- if builtin_tools is defined %}\n {{- \"Tools: \" + builtin_tools | reject('equalto', 'code_interpreter') | join(\", \") + \"\\n\\n\"}}\n{%- endif %}\n{{- \"Cutting Knowledge Date: December 2023\\n\" }}\n{{- \"Today Date: \" + date_string + \"\\n\\n\" }}\n{%- if tools is not none and not tools_in_user_message %}\n {{- \"You have access to the following functions. To call a function, please respond with JSON for a function call.\" }}\n {{- 'Respond in the format {\"name\": function name, \"parameters\": dictionary of argument name and its value}.' }}\n {{- \"Do not use variables.\\n\\n\" }}\n {%- for t in tools %}\n {{- t | tojson(indent=4) }}\n {{- \"\\n\\n\" }}\n {%- endfor %}\n{%- endif %}\n{{- system_message }}\n{{- \"<|eot_id|>\" }}\n\n{#- Custom tools are passed in a user message with some extra guidance #}\n{%- if tools_in_user_message and not tools is none %}\n {#- Extract the first user message so we can plug it in here #}\n {%- if messages | length != 0 %}\n {%- set first_user_message = messages[0]['content']|trim %}\n {%- set messages = messages[1:] %}\n {%- else %}\n {{- raise_exception(\"Cannot put tools in the first user message when there's no first user message!\") }}\n{%- endif %}\n {{- '<|start_header_id|>user<|end_header_id|>\\n\\n' -}}\n {{- \"Given the following functions, please respond with a JSON for a function call \" }}\n {{- \"with its proper arguments that best answers the given prompt.\\n\\n\" }}\n {{- 'Respond in the format {\"name\": function name, \"parameters\": dictionary of argument name and its value}.' }}\n {{- \"Do not use variables.\\n\\n\" }}\n {%- for t in tools %}\n {{- t | tojson(indent=4) }}\n {{- \"\\n\\n\" }}\n {%- endfor %}\n {{- first_user_message + \"<|eot_id|>\"}}\n{%- endif %}\n\n{%- for message in messages %}\n {%- if not (message.role == 'ipython' or message.role == 'tool' or 'tool_calls' in message) %}\n {{- '<|start_header_id|>' + message['role'] + '<|end_header_id|>\\n\\n'+ message['content'] | trim + '<|eot_id|>' }}\n {%- elif 'tool_calls' in message %}\n {%- if not message.tool_calls|length == 1 %}\n {{- raise_exception(\"This model only supports single tool-calls at once!\") }}\n {%- endif %}\n {%- set tool_call = message.tool_calls[0].function %}\n {%- if builtin_tools is defined and tool_call.name in builtin_tools %}\n {{- '<|start_header_id|>assistant<|end_header_id|>\\n\\n' -}}\n {{- \"<|python_tag|>\" + tool_call.name + \".call(\" }}\n {%- for arg_name, arg_val in tool_call.arguments | items %}\n {{- arg_name + '=\"' + arg_val + '\"' }}\n {%- if not loop.last %}\n {{- \", \" }}\n {%- endif %}\n {%- endfor %}\n {{- \")\" }}\n {%- else %}\n {{- '<|start_header_id|>assistant<|end_header_id|>\\n\\n' -}}\n {{- '{\"name\": \"' + tool_call.name + '\", ' }}\n {{- '\"parameters\": ' }}\n {{- tool_call.arguments | tojson }}\n {{- \"}\" }}\n {%- endif %}\n {%- if builtin_tools is defined %}\n {#- This means we're in ipython mode #}\n {{- \"<|eom_id|>\" }}\n {%- else %}\n {{- \"<|eot_id|>\" }}\n {%- endif %}\n {%- elif message.role == \"tool\" or message.role == \"ipython\" %}\n {{- \"<|start_header_id|>ipython<|end_header_id|>\\n\\n\" }}\n {%- if message.content is mapping or message.content is iterable %}\n {{- message.content | tojson }}\n {%- else %}\n {{- message.content }}\n {%- endif %}\n {{- \"<|eot_id|>\" }}\n {%- endif %}\n{%- endfor %}\n{%- if add_generation_prompt %}\n {{- '<|start_header_id|>assistant<|end_header_id|>\\n\\n' }}\n{%- endif %}\n",+ "required_functions": [],+ "preamble_control_key": "add_generation_prompt",+ "bos_token_key": "bos_token"+ },+ "canonization": {+ "role_key": "role",+ "type_key": "type",+ "text_key": "text"+ },+ "rendering": {+ "system": {+ "role": "system",+ "message": {+ "content": {+ "blocks": [+ "text"+ ]+ }+ },+ "context": {+ "builtin_tools": {+ "block": "builtin_tools",+ "allowed_values": [+ "brave_search",+ "wolfram_alpha"+ ]+ }+ }+ },+ "developer": {+ "role": "developer",+ "context": {+ "tools": {+ "block": "tools"+ }+ }+ },+ "user": {+ "role": "user",+ "message": {+ "content": {+ "required": true,+ "blocks": [+ "text"+ ]+ }+ }+ },+ "assistant": {+ "role": "assistant",+ "message": {+ "content": {+ "blocks": [+ "text"+ ]+ },+ "tool_calls": {+ "blocks": [+ "tool_call",+ "tool_call_candidate"+ ],+ "limit": 1+ }+ }+ },+ "tool": {+ "role": "ipython",+ "message": {+ "content": {+ "required": true,+ "blocks": [+ "tool_call_result"+ ],+ "limit": 1+ }+ }+ }+ }+}\ No newline at end of filediff --git a/crates/hanashi/configs/rendering/llama-3.2.json b/crates/hanashi/configs/rendering/llama-3.2.jsonnew file mode 100644index 000000000..87a593e2a--- /dev/null+++ b/crates/hanashi/configs/rendering/llama-3.2.json@@ -0,0 +1,77 @@+{+ "jinja": {+ "template": "{{- bos_token }}\n{%- if custom_tools is defined %}\n {%- set tools = custom_tools %}\n{%- endif %}\n{%- if not tools_in_user_message is defined %}\n {%- set tools_in_user_message = true %}\n{%- endif %}\n{%- if not date_string is defined %}\n {%- if strftime_now is defined %}\n {%- set date_string = strftime_now(\"%d %b %Y\") %}\n {%- else %}\n {%- set date_string = \"26 Jul 2024\" %}\n {%- endif %}\n{%- endif %}\n{%- if not tools is defined %}\n {%- set tools = none %}\n{%- endif %}\n\n{#- This block extracts the system message, so we can slot it into the right place. #}\n{%- if messages[0]['role'] == 'system' %}\n {%- set system_message = messages[0]['content']|trim %}\n {%- set messages = messages[1:] %}\n{%- else %}\n {%- set system_message = \"\" %}\n{%- endif %}\n\n{#- System message #}\n{{- \"<|start_header_id|>system<|end_header_id|>\\n\\n\" }}\n{%- if tools is not none %}\n {{- \"Environment: ipython\\n\" }}\n{%- endif %}\n{{- \"Cutting Knowledge Date: December 2023\\n\" }}\n{{- \"Today Date: \" + date_string + \"\\n\\n\" }}\n{%- if tools is not none and not tools_in_user_message %}\n {{- \"You have access to the following functions. To call a function, please respond with JSON for a function call.\" }}\n {{- 'Respond in the format {\"name\": function name, \"parameters\": dictionary of argument name and its value}.' }}\n {{- \"Do not use variables.\\n\\n\" }}\n {%- for t in tools %}\n {{- t | tojson(indent=4) }}\n {{- \"\\n\\n\" }}\n {%- endfor %}\n{%- endif %}\n{{- system_message }}\n{{- \"<|eot_id|>\" }}\n\n{#- Custom tools are passed in a user message with some extra guidance #}\n{%- if tools_in_user_message and not tools is none %}\n {#- Extract the first user message so we can plug it in here #}\n {%- if messages | length != 0 %}\n {%- set first_user_message = messages[0]['content']|trim %}\n {%- set messages = messages[1:] %}\n {%- else %}\n {{- raise_exception(\"Cannot put tools in the first user message when there's no first user message!\") }}\n{%- endif %}\n {{- '<|start_header_id|>user<|end_header_id|>\\n\\n' -}}\n {{- \"Given the following functions, please respond with a JSON for a function call \" }}\n {{- \"with its proper arguments that best answers the given prompt.\\n\\n\" }}\n {{- 'Respond in the format {\"name\": function name, \"parameters\": dictionary of argument name and its value}.' }}\n {{- \"Do not use variables.\\n\\n\" }}\n {%- for t in tools %}\n {{- t | tojson(indent=4) }}\n {{- \"\\n\\n\" }}\n {%- endfor %}\n {{- first_user_message + \"<|eot_id|>\"}}\n{%- endif %}\n\n{%- for message in messages %}\n {%- if not (message.role == 'ipython' or message.role == 'tool' or 'tool_calls' in message) %}\n {{- '<|start_header_id|>' + message['role'] + '<|end_header_id|>\\n\\n'+ message['content'] | trim + '<|eot_id|>' }}\n {%- elif 'tool_calls' in message %}\n {%- if not message.tool_calls|length == 1 %}\n {{- raise_exception(\"This model only supports single tool-calls at once!\") }}\n {%- endif %}\n {%- set tool_call = message.tool_calls[0].function %}\n {{- '<|start_header_id|>assistant<|end_header_id|>\\n\\n' -}}\n {{- '{\"name\": \"' + tool_call.name + '\", ' }}\n {{- '\"parameters\": ' }}\n {{- tool_call.arguments | tojson }}\n {{- \"}\" }}\n {{- \"<|eot_id|>\" }}\n {%- elif message.role == \"tool\" or message.role == \"ipython\" %}\n {{- \"<|start_header_id|>ipython<|end_header_id|>\\n\\n\" }}\n {%- if message.content is mapping or message.content is iterable %}\n {{- message.content | tojson }}\n {%- else %}\n {{- message.content }}\n {%- endif %}\n {{- \"<|eot_id|>\" }}\n {%- endif %}\n{%- endfor %}\n{%- if add_generation_prompt %}\n {{- '<|start_header_id|>assistant<|end_header_id|>\\n\\n' }}\n{%- endif %}\n",+ "required_functions": [+ "strftime_now"+ ],+ "preamble_control_key": "add_generation_prompt",+ "bos_token_key": "bos_token"+ },+ "canonization": {+ "role_key": "role",+ "type_key": "type",+ "text_key": "text",+ "url_key": "url"+ },+ "rendering": {+ "system": {+ "role": "system",+ "message": {+ "content": {+ "required": true,+ "blocks": [+ "text"+ ]+ }+ }+ },+ "developer": {+ "role": "developer",+ "context": {+ "tools": {+ "block": "tools"+ }+ }+ },+ "user": {+ "role": "user",+ "message": {+ "content": {+ "required": true,+ "blocks": [+ "text"+ ]+ }+ }+ },+ "assistant": {+ "role": "assistant",+ "message": {+ "content": {+ "blocks": [+ "text"+ ]+ },+ "tool_calls": {+ "blocks": [+ "tool_call",+ "tool_call_candidate"+ ],+ "limit": 1+ }+ }+ },+ "tool": {+ "role": "ipython",+ "message": {+ "content": {+ "required": true,+ "blocks": [+ "tool_call_result"+ ],+ "limit": 1+ }+ }+ }+ }+}\ No newline at end of filediff --git a/crates/hanashi/configs/rendering/mistral-small-3.json b/crates/hanashi/configs/rendering/mistral-small-3.jsonnew file mode 100644index 000000000..6fbeb58e7--- /dev/null+++ b/crates/hanashi/configs/rendering/mistral-small-3.json@@ -0,0 +1,52 @@+{+ "jinja": {+ "template": "{%- set today = strftime_now(\"%Y-%m-%d\") %}\n{%- set default_system_message = \"You are Mistral Small 3, a Large Language Model (LLM) created by Mistral AI, a French startup headquartered in Paris.\\nYour knowledge base was last updated on 2023-10-01. The current date is \" + today + \".\\n\\nWhen you're not sure about some information, you say that you don't have the information and don't make up anything.\\nIf the user's question is not clear, ambiguous, or does not provide enough context for you to accurately answer the question, you do not try to answer it right away and you rather ask the user to clarify their request (e.g. \\\"What are some good restaurants around me?\\\" => \\\"Where are you?\\\" or \\\"When is the next flight to Tokyo\\\" => \\\"Where do you travel from?\\\")\" %}\n\n{{- bos_token }}\n\n{%- if messages[0]['role'] == 'system' %}\n {%- if messages[0]['content'] is string %}\n {%- set system_message = messages[0]['content'] %}\n {%- else %}\n {%- set system_message = messages[0]['content'][0]['text'] %}\n {%- endif %}\n {%- set loop_messages = messages[1:] %}\n{%- else %}\n {%- set system_message = default_system_message %}\n {%- set loop_messages = messages %}\n{%- endif %}\n{{- '[SYSTEM_PROMPT]' + system_message + '[/SYSTEM_PROMPT]' }}\n\n{%- for message in loop_messages %}\n {%- if message['role'] == 'user' %}\n {%- if message['content'] is string %}\n {{- '[INST]' + message['content'] + '[/INST]' }}\n {%- else %}\n {{- '[INST]' }}\n {%- for block in message['content'] %}\n {%- if block['type'] == 'text' %}\n {{- block['text'] }}\n {%- elif block['type'] in ['image', 'image_url'] %}\n {{- '[IMG]' }}\n {%- else %}\n {{- raise_exception('Only text and image blocks are supported in message content!') }}\n {%- endif %}\n {%- endfor %}\n {{- '[/INST]' }}\n {%- endif %}\n {%- elif message['role'] == 'system' %}\n {%- if message['content'] is string %}\n {{- '[SYSTEM_PROMPT]' + message['content'] + '[/SYSTEM_PROMPT]' }}\n {%- else %}\n {{- '[SYSTEM_PROMPT]' + message['content'][0]['text'] + '[/SYSTEM_PROMPT]' }}\n {%- endif %}\n {%- elif message['role'] == 'assistant' %}\n {%- if message['content'] is string %}\n {{- message['content'] + eos_token }}\n {%- else %}\n {{- message['content'][0]['text'] + eos_token }}\n {%- endif %}\n {%- else %}\n {{- raise_exception('Only user, system and assistant roles are supported!') }}\n {%- endif %}\n{%- endfor %}",+ "required_functions": [+ "strftime_now"+ ],+ "preamble_control_key": "add_generation_prompt",+ "bos_token_key": "bos_token",+ "eos_token_key": "eos_token"+ },+ "canonization": {+ "role_key": "role",+ "type_key": "type",+ "text_key": "text",+ "url_key": "url"+ },+ "rendering": {+ "system": {+ "role": "system",+ "message": {+ "content": {+ "required": true,+ "blocks": [+ "text"+ ]+ }+ }+ },+ "user": {+ "role": "user",+ "message": {+ "content": {+ "required": true,+ "blocks": [+ "text"+ ]+ }+ }+ },+ "assistant": {+ "role": "assistant",+ "message": {+ "content": {+ "required": true,+ "blocks": [+ "text"+ ]+ }+ }+ }+ }+}\ No newline at end of filediff --git a/crates/hanashi/configs/rendering/nanbeige.json b/crates/hanashi/configs/rendering/nanbeige.jsonnew file mode 100644index 000000000..c1d272135--- /dev/null+++ b/crates/hanashi/configs/rendering/nanbeige.json@@ -0,0 +1,75 @@+{+ "jinja": {+ "template": "\n {%- if tools %}\n {{- '<|im_start|>system\n' }}\n {%- if messages[0].role == 'system' %}\n {{- messages[0].content + '\n\n' }}\n {%- else %} \n {{- '你是一位工具函数调用专家,你会得到一个问题和一组可能的工具函数。根据问题,你需要进行一个或多个函数/工具调用以实现目的,请尽量尝试探索通过工具解决问题。\n如果没有一个函数可以使用,请直接使用自然语言回复用户。\n如果给定的问题缺少函数所需的参数,请使用自然语言进行提问,向用户询问必要信息。\n如果调用结果已经足够回答用户问题,请对历史结果进行总结,使用自然语言回复用户。' }} \n {%- endif %}\n {{- \"# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\" }}\n {%- for tool in tools %}\n {{- \"\n\" }}\n {{- tool | tojson }}\n {%- endfor %}\n {{- \"\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\\\"name\\\": <function-name>, \\\"arguments\\\": <args-json-object>}\n</tool_call><|im_end|>\n\" }}\n {%- else %}\n {%- if messages[0].role == 'system' %}\n {{- '<|im_start|>system\n' + messages[0].content + '<|im_end|>\n' }}\n {%- else %} \n {{- '<|im_start|>system\n你是南北阁,一款由BOSS直聘自主研发并训练的专业大语言模型。<|im_end|>\n' }} \n {%- endif %}\n {%- endif %}\n {%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}\n {%- for message in messages[::-1] %}\n {%- set index = (messages|length - 1) - loop.index0 %}\n {%- if ns.multi_step_tool and message.role == \"user\" and message.content is string and not(message.content.startswith('<tool_response>') and message.content.endswith('</tool_response>')) %}\n {%- set ns.multi_step_tool = false %}\n {%- set ns.last_query_index = index %}\n {%- endif %}\n {%- endfor %}\n {%- for message in messages %}\n {%- if message.content is string %}\n {%- set content = message.content %}\n {%- else %}\n {%- set content = '' %}\n {%- endif %}\n {%- if (message.role == \"user\") or (message.role == \"system\" and not loop.first) %}\n {{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }}\n {%- elif message.role == \"assistant\" %}\n {%- set reasoning_content = '' %}\n {%- if message.reasoning_content is string %}\n {%- set reasoning_content = message.reasoning_content %}\n {%- else %}\n {%- if '</think>' in content %}\n {%- set reasoning_content = content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %}\n {%- set content = content.split('</think>')[-1].lstrip('\n') %}\n {%- endif %}\n {%- endif %}\n {%- if loop.index0 > ns.last_query_index or keep_all_think or (extra_body is defined and extra_body.keep_all_think) %}\n {%- if loop.last or (not loop.last and reasoning_content) %}\n {{- '<|im_start|>' + message.role + '\n<think>\n' + reasoning_content.strip('\n') + '\n</think>\n\n' + content.lstrip('\n') }}\n {%- else %}\n {{- '<|im_start|>' + message.role + '\n' + content }}\n {%- endif %}\n {%- else %}\n {{- '<|im_start|>' + message.role + '\n' + content }}\n {%- endif %}\n {%- if message.tool_calls %}\n {%- for tool_call in message.tool_calls %}\n {%- if (loop.first and content) or (not loop.first) %}\n {{- '\n' }}\n {%- endif %}\n {%- if tool_call.function %}\n {%- set tool_call = tool_call.function %}\n {%- endif %}\n {{- '<tool_call>\n{\"name\": \"' }}\n {{- tool_call.name }}\n {{- '\", \"arguments\": ' }}\n {%- if tool_call.arguments is string %}\n {{- tool_call.arguments }}\n {%- else %}\n {{- tool_call.arguments | tojson }}\n {%- endif %}\n {{- '}\n</tool_call>' }}\n {%- endfor %}\n {%- endif %}\n {{- '<|im_end|>\n' }}\n {%- elif message.role == \"tool\" %}\n {%- if loop.first or (messages[loop.index0 - 1].role != \"tool\") %}\n {{- '<|im_start|>user' }}\n {%- endif %}\n {{- '\n<tool_response>\n' }}\n {{- content }}\n {{- '\n</tool_response>' }}\n {%- if loop.last or (messages[loop.index0 + 1].role != \"tool\") %}\n {{- '<|im_end|>\n' }}\n {%- endif %}\n {%- endif %}\n {%- endfor %}\n {%- if add_generation_prompt %}\n {{- '<|im_start|>assistant\n' }}\n {%- endif %}\n",+ "required_functions": [],+ "preamble_control_key": "add_generation_prompt"+ },+ "canonization": {+ "role_key": "role",+ "type_key": "type",+ "text_key": "text",+ "url_key": "url"+ },+ "rendering": {+ "system": {+ "role": "system",+ "message": {+ "content": {+ "blocks": [+ "text"+ ]+ }+ }+ },+ "developer": {+ "role": "developer",+ "context": {+ "tools": {+ "block": "tools"+ }+ }+ },+ "user": {+ "role": "user",+ "message": {+ "content": {+ "required": true,+ "blocks": [+ "text"+ ]+ }+ }+ },+ "assistant": {+ "role": "assistant",+ "message": {+ "content": {+ "blocks": [+ "text"+ ]+ },+ "reasoning_content": {+ "block": "reasoning"+ },+ "tool_calls": {+ "blocks": [+ "tool_call",+ "tool_call_candidate"+ ]+ }+ }+ },+ "tool": {+ "role": "tool",+ "message": {+ "content": {+ "required": true,+ "blocks": [+ "tool_call_result"+ ],+ "limit": 1+ }+ }+ }+ }+}\ No newline at end of filediff --git a/crates/hanashi/configs/rendering/polaris.json b/crates/hanashi/configs/rendering/polaris.jsonnew file mode 100644index 000000000..42d6a1165--- /dev/null+++ b/crates/hanashi/configs/rendering/polaris.json@@ -0,0 +1,84 @@+{+ "jinja": {+ "template": "{%- if tools %}\n {{- '<|im_start|>system\\n' }}\n {%- if messages[0].role == 'system' %}\n {{- messages[0].content + '\\n\\n' }}\n {%- endif %}\n {{- \"# Tools\\n\\nYou may call one or more functions to assist with the user query.\\n\\nYou are provided with function signatures within <tools></tools> XML tags:\\n<tools>\" }}\n {%- for tool in tools %}\n {{- \"\\n\" }}\n {{- tool | tojson }}\n {%- endfor %}\n {{- \"\\n</tools>\\n\\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\\n<tool_call>\\n{\\\"name\\\": <function-name>, \\\"arguments\\\": <args-json-object>}\\n</tool_call><|im_end|>\\n\" }}\n{%- else %}\n {%- if messages[0].role == 'system' %}\n {{- '<|im_start|>system\\n' + messages[0].content + '<|im_end|>\\n' }}\n {%- endif %}\n{%- endif %}\n{%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}\n{%- for message in messages[::-1] %}\n {%- set index = (messages|length - 1) - loop.index0 %}\n {%- if ns.multi_step_tool and message.role == \"user\" and not(message.content.startswith('<tool_response>') and message.content.endswith('</tool_response>')) %}\n {%- set ns.multi_step_tool = false %}\n {%- set ns.last_query_index = index %}\n {%- endif %}\n{%- endfor %}\n{%- for message in messages %}\n {%- if (message.role == \"user\") or (message.role == \"system\" and not loop.first) %}\n {{- '<|im_start|>' + message.role + '\\n' + message.content + '<|im_end|>' + '\\n' }}\n {%- elif message.role == \"assistant\" %}\n {%- set content = message.content %}\n {%- set reasoning_content = '' %}\n {%- if message.reasoning_content is defined and message.reasoning_content is not none %}\n {%- set reasoning_content = message.reasoning_content %}\n {%- else %}\n {%- if '</think>' in message.content %}\n {%- set content = message.content.split('</think>')[-1].lstrip('\\n') %}\n {%- set reasoning_content = message.content.split('</think>')[0].rstrip('\\n').split('<think>')[-1].lstrip('\\n') %}\n {%- endif %}\n {%- endif %}\n {%- if loop.index0 > ns.last_query_index %}\n {%- if loop.last or (not loop.last and reasoning_content) %}\n {{- '<|im_start|>' + message.role + '\\n<think>\\n' + reasoning_content.strip('\\n') + '\\n</think>\\n\\n' + content.lstrip('\\n') }}\n {%- else %}\n {{- '<|im_start|>' + message.role + '\\n' + content }}\n {%- endif %}\n {%- else %}\n {{- '<|im_start|>' + message.role + '\\n' + content }}\n {%- endif %}\n {%- if message.tool_calls %}\n {%- for tool_call in message.tool_calls %}\n {%- if (loop.first and content) or (not loop.first) %}\n {{- '\\n' }}\n {%- endif %}\n {%- if tool_call.function %}\n {%- set tool_call = tool_call.function %}\n {%- endif %}\n {{- '<tool_call>\\n{\"name\": \"' }}\n {{- tool_call.name }}\n {{- '\", \"arguments\": ' }}\n {%- if tool_call.arguments is string %}\n {{- tool_call.arguments }}\n {%- else %}\n {{- tool_call.arguments | tojson }}\n {%- endif %}\n {{- '}\\n</tool_call>' }}\n {%- endfor %}\n {%- endif %}\n {{- '<|im_end|>\\n' }}\n {%- elif message.role == \"tool\" %}\n {%- if loop.first or (messages[loop.index0 - 1].role != \"tool\") %}\n {{- '<|im_start|>user' }}\n {%- endif %}\n {{- '\\n<tool_response>\\n' }}\n {{- message.content }}\n {{- '\\n</tool_response>' }}\n {%- if loop.last or (messages[loop.index0 + 1].role != \"tool\") %}\n {{- '<|im_end|>\\n' }}\n {%- endif %}\n {%- endif %}\n{%- endfor %}\n{%- if add_generation_prompt %}\n {{- '<|im_start|>assistant\\n' }}\n {%- if enable_thinking is defined and enable_thinking is false %}\n {{- '<think>\\n\\n</think>\\n\\n' }}\n {%- endif %}\n{%- endif %}",+ "required_functions": [],+ "preamble_control_key": "add_generation_prompt"+ },+ "canonization": {+ "role_key": "role",+ "type_key": "type",+ "text_key": "text",+ "url_key": "url"+ },+ "rendering": {+ "system": {+ "role": "system",+ "message": {+ "content": {+ "blocks": [+ "text"+ ]+ }+ },+ "context": {+ "enable_thinking": {+ "block": "reasoning_effort",+ "mapping": {+ "disabled": false,+ "default": true+ }+ }+ }+ },+ "developer": {+ "role": "developer",+ "context": {+ "tools": {+ "block": "tools"+ }+ }+ },+ "user": {+ "role": "user",+ "message": {+ "content": {+ "required": true,+ "blocks": [+ "text"+ ]+ }+ }+ },+ "assistant": {+ "role": "assistant",+ "message": {+ "content": {+ "blocks": [+ "text"+ ]+ },+ "reasoning_content": {+ "block": "reasoning"+ },+ "tool_calls": {+ "blocks": [+ "tool_call",+ "tool_call_candidate"+ ]+ }+ }+ },+ "tool": {+ "role": "tool",+ "message": {+ "content": {+ "required": true,+ "blocks": [+ "tool_call_result"+ ],+ "limit": 1+ }+ }+ }+ }+}\ No newline at end of filediff --git a/crates/hanashi/configs/rendering/qwen2.5-coder.json b/crates/hanashi/configs/rendering/qwen2.5-coder.jsonnew file mode 100644index 000000000..2f43ae9ed--- /dev/null+++ b/crates/hanashi/configs/rendering/qwen2.5-coder.json@@ -0,0 +1,48 @@+{+ "jinja": {+ "template": "{%- if tools %}\n {{- '<|im_start|>system\\n' }}\n {%- if messages[0]['role'] == 'system' %}\n {{- messages[0]['content'] }}\n {%- else %}\n {{- 'You are Qwen, created by Alibaba Cloud. You are a helpful assistant.' }}\n {%- endif %}\n {{- \"\\n\\n# Tools\\n\\nYou may call one or more functions to assist with the user query.\\n\\nYou are provided with function signatures within <tools></tools> XML tags:\\n<tools>\" }}\n {%- for tool in tools %}\n {{- \"\\n\" }}\n {{- tool | tojson }}\n {%- endfor %}\n {{- \"\\n</tools>\\n\\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\\n<tool_call>\\n{\\\"name\\\": <function-name>, \\\"arguments\\\": <args-json-object>}\\n</tool_call><|im_end|>\\n\" }}\n{%- else %}\n {%- if messages[0]['role'] == 'system' %}\n {{- '<|im_start|>system\\n' + messages[0]['content'] + '<|im_end|>\\n' }}\n {%- else %}\n {{- '<|im_start|>system\\nYou are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|>\\n' }}\n {%- endif %}\n{%- endif %}\n{%- for message in messages %}\n {%- if (message.role == \"user\") or (message.role == \"system\" and not loop.first) or (message.role == \"assistant\" and not message.tool_calls) %}\n {{- '<|im_start|>' + message.role + '\\n' + message.content + '<|im_end|>' + '\\n' }}\n {%- elif message.role == \"assistant\" %}\n {{- '<|im_start|>' + message.role }}\n {%- if message.content %}\n {{- '\\n' + message.content }}\n {%- endif %}\n {%- for tool_call in message.tool_calls %}\n {%- if tool_call.function is defined %}\n {%- set tool_call = tool_call.function %}\n {%- endif %}\n {{- '\\n<tool_call>\\n{\"name\": \"' }}\n {{- tool_call.name }}\n {{- '\", \"arguments\": ' }}\n {{- tool_call.arguments | tojson }}\n {{- '}\\n</tool_call>' }}\n {%- endfor %}\n {{- '<|im_end|>\\n' }}\n {%- elif message.role == \"tool\" %}\n {%- if (loop.index0 == 0) or (messages[loop.index0 - 1].role != \"tool\") %}\n {{- '<|im_start|>user' }}\n {%- endif %}\n {{- '\\n<tool_response>\\n' }}\n {{- message.content }}\n {{- '\\n</tool_response>' }}\n {%- if loop.last or (messages[loop.index0 + 1].role != \"tool\") %}\n {{- '<|im_end|>\\n' }}\n {%- endif %}\n {%- endif %}\n{%- endfor %}\n{%- if add_generation_prompt %}\n {{- '<|im_start|>assistant\\n' }}\n{%- endif %}\n",+ "required_functions": [],+ "preamble_control_key": "add_generation_prompt"+ },+ "canonization": {+ "role_key": "role",+ "type_key": "type",+ "text_key": "text",+ "url_key": "url"+ },+ "rendering": {+ "system": {+ "role": "system",+ "message": {+ "content": {+ "required": true,+ "blocks": [+ "text"+ ]+ }+ }+ },+ "user": {+ "role": "user",+ "message": {+ "content": {+ "required": true,+ "blocks": [+ "text"+ ]+ }+ }+ },+ "assistant": {+ "role": "assistant",+ "message": {+ "content": {+ "required": true,+ "blocks": [+ "text"+ ]+ }+ }+ }+ }+}\ No newline at end of filediff --git a/crates/hanashi/configs/rendering/qwen2.5.json b/crates/hanashi/configs/rendering/qwen2.5.jsonnew file mode 100644index 000000000..c2cfa4593--- /dev/null+++ b/crates/hanashi/configs/rendering/qwen2.5.json@@ -0,0 +1,73 @@+{+ "jinja": {+ "template": "{%- if tools %}\n {{- '<|im_start|>system\\n' }}\n {%- if messages[0]['role'] == 'system' %}\n {{- messages[0]['content'] }}\n {%- else %}\n {{- 'You are Qwen, created by Alibaba Cloud. You are a helpful assistant.' }}\n {%- endif %}\n {{- \"\\n\\n# Tools\\n\\nYou may call one or more functions to assist with the user query.\\n\\nYou are provided with function signatures within <tools></tools> XML tags:\\n<tools>\" }}\n {%- for tool in tools %}\n {{- \"\\n\" }}\n {{- tool | tojson }}\n {%- endfor %}\n {{- \"\\n</tools>\\n\\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\\n<tool_call>\\n{\\\"name\\\": <function-name>, \\\"arguments\\\": <args-json-object>}\\n</tool_call><|im_end|>\\n\" }}\n{%- else %}\n {%- if messages[0]['role'] == 'system' %}\n {{- '<|im_start|>system\\n' + messages[0]['content'] + '<|im_end|>\\n' }}\n {%- else %}\n {{- '<|im_start|>system\\nYou are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|>\\n' }}\n {%- endif %}\n{%- endif %}\n{%- for message in messages %}\n {%- if (message.role == \"user\") or (message.role == \"system\" and not loop.first) or (message.role == \"assistant\" and not message.tool_calls) %}\n {{- '<|im_start|>' + message.role + '\\n' + message.content + '<|im_end|>' + '\\n' }}\n {%- elif message.role == \"assistant\" %}\n {{- '<|im_start|>' + message.role }}\n {%- if message.content %}\n {{- '\\n' + message.content }}\n {%- endif %}\n {%- for tool_call in message.tool_calls %}\n {%- if tool_call.function is defined %}\n {%- set tool_call = tool_call.function %}\n {%- endif %}\n {{- '\\n<tool_call>\\n{\"name\": \"' }}\n {{- tool_call.name }}\n {{- '\", \"arguments\": ' }}\n {{- tool_call.arguments | tojson }}\n {{- '}\\n</tool_call>' }}\n {%- endfor %}\n {{- '<|im_end|>\\n' }}\n {%- elif message.role == \"tool\" %}\n {%- if (loop.index0 == 0) or (messages[loop.index0 - 1].role != \"tool\") %}\n {{- '<|im_start|>user' }}\n {%- endif %}\n {{- '\\n<tool_response>\\n' }}\n {{- message.content }}\n {{- '\\n</tool_response>' }}\n {%- if loop.last or (messages[loop.index0 + 1].role != \"tool\") %}\n {{- '<|im_end|>\\n' }}\n {%- endif %}\n {%- endif %}\n{%- endfor %}\n{%- if add_generation_prompt %}\n {{- '<|im_start|>assistant\\n' }}\n{%- endif %}\n",+ "required_functions": [],+ "preamble_control_key": "add_generation_prompt"+ },+ "canonization": {+ "role_key": "role",+ "type_key": "type",+ "text_key": "text",+ "url_key": "url"+ },+ "rendering": {+ "system": {+ "role": "system",+ "message": {+ "content": {+ "required": true,+ "blocks": [+ "text"+ ]+ }+ }+ },+ "developer": {+ "role": "developer",+ "context": {+ "tools": {+ "block": "tools"+ }+ }+ },+ "user": {+ "role": "user",+ "message": {+ "content": {+ "required": true,+ "blocks": [+ "text"+ ]+ }+ }+ },+ "assistant": {+ "role": "assistant",+ "message": {+ "content": {+ "blocks": [+ "text"+ ]+ },+ "tool_calls": {+ "blocks": [+ "tool_call",+ "tool_call_candidate"+ ]+ }+ }+ },+ "tool": {+ "role": "tool",+ "message": {+ "content": {+ "required": true,+ "blocks": [+ "tool_call_result"+ ],+ "limit": 1+ }+ }+ }+ }+}\ No newline at end of filediff --git a/crates/hanashi/configs/rendering/qwen3-instruct.json b/crates/hanashi/configs/rendering/qwen3-instruct.jsonnew file mode 100644index 000000000..3a24ca009--- /dev/null+++ b/crates/hanashi/configs/rendering/qwen3-instruct.json@@ -0,0 +1,73 @@+{+ "jinja": {+ "template": "{%- if tools %}\n {{- '<|im_start|>system\\n' }}\n {%- if messages[0].role == 'system' %}\n {{- messages[0].content + '\\n\\n' }}\n {%- endif %}\n {{- \"# Tools\\n\\nYou may call one or more functions to assist with the user query.\\n\\nYou are provided with function signatures within <tools></tools> XML tags:\\n<tools>\" }}\n {%- for tool in tools %}\n {{- \"\\n\" }}\n {{- tool | tojson }}\n {%- endfor %}\n {{- \"\\n</tools>\\n\\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\\n<tool_call>\\n{\\\"name\\\": <function-name>, \\\"arguments\\\": <args-json-object>}\\n</tool_call><|im_end|>\\n\" }}\n{%- else %}\n {%- if messages[0].role == 'system' %}\n {{- '<|im_start|>system\\n' + messages[0].content + '<|im_end|>\\n' }}\n {%- endif %}\n{%- endif %}\n{%- for message in messages %}\n {%- if message.content is string %}\n {%- set content = message.content %}\n {%- else %}\n {%- set content = '' %}\n {%- endif %}\n {%- if (message.role == \"user\") or (message.role == \"system\" and not loop.first) %}\n {{- '<|im_start|>' + message.role + '\\n' + content + '<|im_end|>' + '\\n' }}\n {%- elif message.role == \"assistant\" %}\n {{- '<|im_start|>' + message.role + '\\n' + content }}\n {%- if message.tool_calls %}\n {%- for tool_call in message.tool_calls %}\n {%- if (loop.first and content) or (not loop.first) %}\n {{- '\\n' }}\n {%- endif %}\n {%- if tool_call.function %}\n {%- set tool_call = tool_call.function %}\n {%- endif %}\n {{- '<tool_call>\\n{\"name\": \"' }}\n {{- tool_call.name }}\n {{- '\", \"arguments\": ' }}\n {%- if tool_call.arguments is string %}\n {{- tool_call.arguments }}\n {%- else %}\n {{- tool_call.arguments | tojson }}\n {%- endif %}\n {{- '}\\n</tool_call>' }}\n {%- endfor %}\n {%- endif %}\n {{- '<|im_end|>\\n' }}\n {%- elif message.role == \"tool\" %}\n {%- if loop.first or (messages[loop.index0 - 1].role != \"tool\") %}\n {{- '<|im_start|>user' }}\n {%- endif %}\n {{- '\\n<tool_response>\\n' }}\n {{- content }}\n {{- '\\n</tool_response>' }}\n {%- if loop.last or (messages[loop.index0 + 1].role != \"tool\") %}\n {{- '<|im_end|>\\n' }}\n {%- endif %}\n {%- endif %}\n{%- endfor %}\n{%- if add_generation_prompt %}\n {{- '<|im_start|>assistant\\n' }}\n{%- endif %}",+ "required_functions": [],+ "preamble_control_key": "add_generation_prompt"+ },+ "canonization": {+ "role_key": "role",+ "type_key": "type",+ "text_key": "text",+ "url_key": "url"+ },+ "rendering": {+ "system": {+ "role": "system",+ "message": {+ "content": {+ "required": true,+ "blocks": [+ "text"+ ]+ }+ }+ },+ "developer": {+ "role": "developer",+ "context": {+ "tools": {+ "block": "tools"+ }+ }+ },+ "user": {+ "role": "user",+ "message": {+ "content": {+ "required": true,+ "blocks": [+ "text"+ ]+ }+ }+ },+ "assistant": {+ "role": "assistant",+ "message": {+ "content": {+ "blocks": [+ "text"+ ]+ },+ "tool_calls": {+ "blocks": [+ "tool_call",+ "tool_call_candidate"+ ]+ }+ }+ },+ "tool": {+ "role": "tool",+ "message": {+ "content": {+ "required": true,+ "blocks": [+ "tool_call_result"+ ],+ "limit": 1+ }+ }+ }+ }+}\ No newline at end of filediff --git a/crates/hanashi/configs/rendering/qwen3-thinking.json b/crates/hanashi/configs/rendering/qwen3-thinking.jsonnew file mode 100644index 000000000..1fbbe10e8--- /dev/null+++ b/crates/hanashi/configs/rendering/qwen3-thinking.json@@ -0,0 +1,76 @@+{+ "jinja": {+ "template": "{%- if tools %}\n {{- '<|im_start|>system\\n' }}\n {%- if messages[0].role == 'system' %}\n {{- messages[0].content + '\\n\\n' }}\n {%- endif %}\n {{- \"# Tools\\n\\nYou may call one or more functions to assist with the user query.\\n\\nYou are provided with function signatures within <tools></tools> XML tags:\\n<tools>\" }}\n {%- for tool in tools %}\n {{- \"\\n\" }}\n {{- tool | tojson }}\n {%- endfor %}\n {{- \"\\n</tools>\\n\\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\\n<tool_call>\\n{\\\"name\\\": <function-name>, \\\"arguments\\\": <args-json-object>}\\n</tool_call><|im_end|>\\n\" }}\n{%- else %}\n {%- if messages[0].role == 'system' %}\n {{- '<|im_start|>system\\n' + messages[0].content + '<|im_end|>\\n' }}\n {%- endif %}\n{%- endif %}\n{%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}\n{%- for message in messages[::-1] %}\n {%- set index = (messages|length - 1) - loop.index0 %}\n {%- if ns.multi_step_tool and message.role == \"user\" and message.content is string and not(message.content.startswith('<tool_response>') and message.content.endswith('</tool_response>')) %}\n {%- set ns.multi_step_tool = false %}\n {%- set ns.last_query_index = index %}\n {%- endif %}\n{%- endfor %}\n{%- for message in messages %}\n {%- if message.content is string %}\n {%- set content = message.content %}\n {%- else %}\n {%- set content = '' %}\n {%- endif %}\n {%- if (message.role == \"user\") or (message.role == \"system\" and not loop.first) %}\n {{- '<|im_start|>' + message.role + '\\n' + content + '<|im_end|>' + '\\n' }}\n {%- elif message.role == \"assistant\" %}\n {%- set reasoning_content = '' %}\n {%- if message.reasoning_content is string %}\n {%- set reasoning_content = message.reasoning_content %}\n {%- else %}\n {%- if '</think>' in content %}\n {%- set reasoning_content = content.split('</think>')[0].rstrip('\\n').split('<think>')[-1].lstrip('\\n') %}\n {%- set content = content.split('</think>')[-1].lstrip('\\n') %}\n {%- endif %}\n {%- endif %}\n {%- if loop.index0 > ns.last_query_index %}\n {%- if loop.last or (not loop.last and reasoning_content) %}\n {{- '<|im_start|>' + message.role + '\\n<think>\\n' + reasoning_content.strip('\\n') + '\\n</think>\\n\\n' + content.lstrip('\\n') }}\n {%- else %}\n {{- '<|im_start|>' + message.role + '\\n' + content }}\n {%- endif %}\n {%- else %}\n {{- '<|im_start|>' + message.role + '\\n' + content }}\n {%- endif %}\n {%- if message.tool_calls %}\n {%- for tool_call in message.tool_calls %}\n {%- if (loop.first and content) or (not loop.first) %}\n {{- '\\n' }}\n {%- endif %}\n {%- if tool_call.function %}\n {%- set tool_call = tool_call.function %}\n {%- endif %}\n {{- '<tool_call>\\n{\"name\": \"' }}\n {{- tool_call.name }}\n {{- '\", \"arguments\": ' }}\n {%- if tool_call.arguments is string %}\n {{- tool_call.arguments }}\n {%- else %}\n {{- tool_call.arguments | tojson }}\n {%- endif %}\n {{- '}\\n</tool_call>' }}\n {%- endfor %}\n {%- endif %}\n {{- '<|im_end|>\\n' }}\n {%- elif message.role == \"tool\" %}\n {%- if loop.first or (messages[loop.index0 - 1].role != \"tool\") %}\n {{- '<|im_start|>user' }}\n {%- endif %}\n {{- '\\n<tool_response>\\n' }}\n {{- content }}\n {{- '\\n</tool_response>' }}\n {%- if loop.last or (messages[loop.index0 + 1].role != \"tool\") %}\n {{- '<|im_end|>\\n' }}\n {%- endif %}\n {%- endif %}\n{%- endfor %}\n{%- if add_generation_prompt %}\n {{- '<|im_start|>assistant\\n<think>\\n' }}\n{%- endif %}",+ "required_functions": [],+ "preamble_control_key": "add_generation_prompt"+ },+ "canonization": {+ "role_key": "role",+ "type_key": "type",+ "text_key": "text",+ "url_key": "url"+ },+ "rendering": {+ "system": {+ "role": "system",+ "message": {+ "content": {+ "required": true,+ "blocks": [+ "text"+ ]+ }+ }+ },+ "developer": {+ "role": "developer",+ "context": {+ "tools": {+ "block": "tools"+ }+ }+ },+ "user": {+ "role": "user",+ "message": {+ "content": {+ "required": true,+ "blocks": [+ "text"+ ]+ }+ }+ },+ "assistant": {+ "role": "assistant",+ "message": {+ "content": {+ "blocks": [+ "text"+ ]+ },+ "reasoning_content": {+ "block": "reasoning"+ },+ "tool_calls": {+ "blocks": [+ "tool_call",+ "tool_call_candidate"+ ]+ }+ }+ },+ "tool": {+ "role": "tool",+ "message": {+ "content": {+ "required": true,+ "blocks": [+ "tool_call_result"+ ],+ "limit": 1+ }+ }+ }+ }+}\ No newline at end of filediff --git a/crates/hanashi/configs/rendering/qwen3.5.json b/crates/hanashi/configs/rendering/qwen3.5.jsonnew file mode 100644index 000000000..695e1a359--- /dev/null+++ b/crates/hanashi/configs/rendering/qwen3.5.json@@ -0,0 +1,84 @@+{+ "jinja": {+ "template": "{%- set image_count = namespace(value=0) %}\n{%- set video_count = namespace(value=0) %}\n{%- macro render_content(content, do_vision_count, is_system_content=false) %}\n {%- if content is string %}\n {{- content }}\n {%- elif content is iterable and content is not mapping %}\n {%- for item in content %}\n {%- if 'image' in item or 'image_url' in item or item.type == 'image' %}\n {%- if is_system_content %}\n {{- raise_exception('System message cannot contain images.') }}\n {%- endif %}\n {%- if do_vision_count %}\n {%- set image_count.value = image_count.value + 1 %}\n {%- endif %}\n {%- if add_vision_id %}\n {{- 'Picture ' ~ image_count.value ~ ': ' }}\n {%- endif %}\n {{- '<|vision_start|><|image_pad|><|vision_end|>' }}\n {%- elif 'video' in item or item.type == 'video' %}\n {%- if is_system_content %}\n {{- raise_exception('System message cannot contain videos.') }}\n {%- endif %}\n {%- if do_vision_count %}\n {%- set video_count.value = video_count.value + 1 %}\n {%- endif %}\n {%- if add_vision_id %}\n {{- 'Video ' ~ video_count.value ~ ': ' }}\n {%- endif %}\n {{- '<|vision_start|><|video_pad|><|vision_end|>' }}\n {%- elif 'text' in item %}\n {{- item.text }}\n {%- else %}\n {{- raise_exception('Unexpected item type in content.') }}\n {%- endif %}\n {%- endfor %}\n {%- elif content is none or content is undefined %}\n {{- '' }}\n {%- else %}\n {{- raise_exception('Unexpected content type.') }}\n {%- endif %}\n{%- endmacro %}\n{%- if not messages %}\n {{- raise_exception('No messages provided.') }}\n{%- endif %}\n{%- if tools and tools is iterable and tools is not mapping %}\n {{- '<|im_start|>system\\n' }}\n {{- \"# Tools\\n\\nYou have access to the following functions:\\n\\n<tools>\" }}\n {%- for tool in tools %}\n {{- \"\\n\" }}\n {{- tool | tojson }}\n {%- endfor %}\n {{- \"\\n</tools>\" }}\n {{- '\\n\\nIf you choose to call a function ONLY reply in the following format with NO suffix:\\n\\n<tool_call>\\n<function=example_function_name>\\n<parameter=example_parameter_1>\\nvalue_1\\n</parameter>\\n<parameter=example_parameter_2>\\nThis is the value for the second parameter\\nthat can span\\nmultiple lines\\n</parameter>\\n</function>\\n</tool_call>\\n\\n<IMPORTANT>\\nReminder:\\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\\n- Required parameters MUST be specified\\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\\n</IMPORTANT>' }}\n {%- if messages[0].role == 'system' %}\n {%- set content = render_content(messages[0].content, false, true)|trim %}\n {%- if content %}\n {{- '\\n\\n' + content }}\n {%- endif %}\n {%- endif %}\n {{- '<|im_end|>\\n' }}\n{%- else %}\n {%- if messages[0].role == 'system' %}\n {%- set content = render_content(messages[0].content, false, true)|trim %}\n {{- '<|im_start|>system\\n' + content + '<|im_end|>\\n' }}\n {%- endif %}\n{%- endif %}\n{%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}\n{%- for message in messages[::-1] %}\n {%- set index = (messages|length - 1) - loop.index0 %}\n {%- if ns.multi_step_tool and message.role == \"user\" %}\n {%- set content = render_content(message.content, false)|trim %}\n {%- if not(content.startswith('<tool_response>') and content.endswith('</tool_response>')) %}\n {%- set ns.multi_step_tool = false %}\n {%- set ns.last_query_index = index %}\n {%- endif %}\n {%- endif %}\n{%- endfor %}\n{%- if ns.multi_step_tool %}\n {{- raise_exception('No user query found in messages.') }}\n{%- endif %}\n{%- for message in messages %}\n {%- set content = render_content(message.content, true)|trim %}\n {%- if message.role == \"system\" %}\n {%- if not loop.first %}\n {{- raise_exception('System message must be at the beginning.') }}\n {%- endif %}\n {%- elif message.role == \"user\" %}\n {{- '<|im_start|>' + message.role + '\\n' + content + '<|im_end|>' + '\\n' }}\n {%- elif message.role == \"assistant\" %}\n {%- set reasoning_content = '' %}\n {%- if message.reasoning_content is string %}\n {%- set reasoning_content = message.reasoning_content %}\n {%- else %}\n {%- if '</think>' in content %}\n {%- set reasoning_content = content.split('</think>')[0].rstrip('\\n').split('<think>')[-1].lstrip('\\n') %}\n {%- set content = content.split('</think>')[-1].lstrip('\\n') %}\n {%- endif %}\n {%- endif %}\n {%- set reasoning_content = reasoning_content|trim %}\n {%- if loop.index0 > ns.last_query_index %}\n {{- '<|im_start|>' + message.role + '\\n<think>\\n' + reasoning_content + '\\n</think>\\n\\n' + content }}\n {%- else %}\n {{- '<|im_start|>' + message.role + '\\n' + content }}\n {%- endif %}\n {%- if message.tool_calls and message.tool_calls is iterable and message.tool_calls is not mapping %}\n {%- for tool_call in message.tool_calls %}\n {%- if tool_call.function is defined %}\n {%- set tool_call = tool_call.function %}\n {%- endif %}\n {%- if loop.first %}\n {%- if content|trim %}\n {{- '\\n\\n<tool_call>\\n<function=' + tool_call.name + '>\\n' }}\n {%- else %}\n {{- '<tool_call>\\n<function=' + tool_call.name + '>\\n' }}\n {%- endif %}\n {%- else %}\n {{- '\\n<tool_call>\\n<function=' + tool_call.name + '>\\n' }}\n {%- endif %}\n {%- if tool_call.arguments is defined %}\n {%- for args_name, args_value in tool_call.arguments|items %}\n {{- '<parameter=' + args_name + '>\\n' }}\n {%- set args_value = args_value | tojson | safe if args_value is mapping or (args_value is sequence and args_value is not string) else args_value | string %}\n {{- args_value }}\n {{- '\\n</parameter>\\n' }}\n {%- endfor %}\n {%- endif %}\n {{- '</function>\\n</tool_call>' }}\n {%- endfor %}\n {%- endif %}\n {{- '<|im_end|>\\n' }}\n {%- elif message.role == \"tool\" %}\n {%- if loop.previtem and loop.previtem.role != \"tool\" %}\n {{- '<|im_start|>user' }}\n {%- endif %}\n {{- '\\n<tool_response>\\n' }}\n {{- content }}\n {{- '\\n</tool_response>' }}\n {%- if not loop.last and loop.nextitem.role != \"tool\" %}\n {{- '<|im_end|>\\n' }}\n {%- elif loop.last %}\n {{- '<|im_end|>\\n' }}\n {%- endif %}\n {%- else %}\n {{- raise_exception('Unexpected message role.') }}\n {%- endif %}\n{%- endfor %}\n{%- if add_generation_prompt %}\n {{- '<|im_start|>assistant\\n' }}\n {%- if enable_thinking is defined and enable_thinking is true %}\n {{- '<think>\\n' }}\n {%- else %}\n {{- '<think>\\n\\n</think>\\n\\n' }}\n {%- endif %}\n{%- endif %}",+ "required_functions": [],+ "preamble_control_key": "add_generation_prompt"+ },+ "canonization": {+ "role_key": "role",+ "type_key": "type",+ "text_key": "text",+ "url_key": "url"+ },+ "rendering": {+ "system": {+ "role": "system",+ "message": {+ "content": {+ "blocks": [+ "text"+ ]+ }+ },+ "context": {+ "enable_thinking": {+ "block": "reasoning_effort",+ "mapping": {+ "disabled": false,+ "default": true+ }+ }+ }+ },+ "developer": {+ "role": "developer",+ "context": {+ "tools": {+ "block": "tools"+ }+ }+ },+ "user": {+ "role": "user",+ "message": {+ "content": {+ "required": true,+ "blocks": [+ "text"+ ]+ }+ }+ },+ "assistant": {+ "role": "assistant",+ "message": {+ "content": {+ "blocks": [+ "text"+ ]+ },+ "reasoning_content": {+ "block": "reasoning"+ },+ "tool_calls": {+ "blocks": [+ "tool_call",+ "tool_call_candidate"+ ]+ }+ }+ },+ "tool": {+ "role": "tool",+ "message": {+ "content": {+ "required": true,+ "blocks": [+ "tool_call_result"+ ],+ "limit": 1+ }+ }+ }+ }+}\ No newline at end of filediff --git a/crates/hanashi/configs/rendering/qwen3.json b/crates/hanashi/configs/rendering/qwen3.jsonnew file mode 100644index 000000000..c5e892966--- /dev/null+++ b/crates/hanashi/configs/rendering/qwen3.json@@ -0,0 +1,84 @@+{+ "jinja": {+ "template": "{%- if tools %}\n {{- '<|im_start|>system\\n' }}\n {%- if messages[0].role == 'system' %}\n {{- messages[0].content + '\\n\\n' }}\n {%- endif %}\n {{- \"# Tools\\n\\nYou may call one or more functions to assist with the user query.\\n\\nYou are provided with function signatures within <tools></tools> XML tags:\\n<tools>\" }}\n {%- for tool in tools %}\n {{- \"\\n\" }}\n {{- tool | tojson }}\n {%- endfor %}\n {{- \"\\n</tools>\\n\\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\\n<tool_call>\\n{\\\"name\\\": <function-name>, \\\"arguments\\\": <args-json-object>}\\n</tool_call><|im_end|>\\n\" }}\n{%- else %}\n {%- if messages[0].role == 'system' %}\n {{- '<|im_start|>system\\n' + messages[0].content + '<|im_end|>\\n' }}\n {%- endif %}\n{%- endif %}\n{%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}\n{%- for message in messages[::-1] %}\n {%- set index = (messages|length - 1) - loop.index0 %}\n {%- if ns.multi_step_tool and message.role == \"user\" and message.content is string and not(message.content.startswith('<tool_response>') and message.content.endswith('</tool_response>')) %}\n {%- set ns.multi_step_tool = false %}\n {%- set ns.last_query_index = index %}\n {%- endif %}\n{%- endfor %}\n{%- for message in messages %}\n {%- if message.content is string %}\n {%- set content = message.content %}\n {%- else %}\n {%- set content = '' %}\n {%- endif %}\n {%- if (message.role == \"user\") or (message.role == \"system\" and not loop.first) %}\n {{- '<|im_start|>' + message.role + '\\n' + content + '<|im_end|>' + '\\n' }}\n {%- elif message.role == \"assistant\" %}\n {%- set reasoning_content = '' %}\n {%- if message.reasoning_content is string %}\n {%- set reasoning_content = message.reasoning_content %}\n {%- else %}\n {%- if '</think>' in content %}\n {%- set reasoning_content = content.split('</think>')[0].rstrip('\\n').split('<think>')[-1].lstrip('\\n') %}\n {%- set content = content.split('</think>')[-1].lstrip('\\n') %}\n {%- endif %}\n {%- endif %}\n {%- if loop.index0 > ns.last_query_index %}\n {%- if loop.last or (not loop.last and reasoning_content) %}\n {{- '<|im_start|>' + message.role + '\\n<think>\\n' + reasoning_content.strip('\\n') + '\\n</think>\\n\\n' + content.lstrip('\\n') }}\n {%- else %}\n {{- '<|im_start|>' + message.role + '\\n' + content }}\n {%- endif %}\n {%- else %}\n {{- '<|im_start|>' + message.role + '\\n' + content }}\n {%- endif %}\n {%- if message.tool_calls %}\n {%- for tool_call in message.tool_calls %}\n {%- if (loop.first and content) or (not loop.first) %}\n {{- '\\n' }}\n {%- endif %}\n {%- if tool_call.function %}\n {%- set tool_call = tool_call.function %}\n {%- endif %}\n {{- '<tool_call>\\n{\"name\": \"' }}\n {{- tool_call.name }}\n {{- '\", \"arguments\": ' }}\n {%- if tool_call.arguments is string %}\n {{- tool_call.arguments }}\n {%- else %}\n {{- tool_call.arguments | tojson }}\n {%- endif %}\n {{- '}\\n</tool_call>' }}\n {%- endfor %}\n {%- endif %}\n {{- '<|im_end|>\\n' }}\n {%- elif message.role == \"tool\" %}\n {%- if loop.first or (messages[loop.index0 - 1].role != \"tool\") %}\n {{- '<|im_start|>user' }}\n {%- endif %}\n {{- '\\n<tool_response>\\n' }}\n {{- content }}\n {{- '\\n</tool_response>' }}\n {%- if loop.last or (messages[loop.index0 + 1].role != \"tool\") %}\n {{- '<|im_end|>\\n' }}\n {%- endif %}\n {%- endif %}\n{%- endfor %}\n{%- if add_generation_prompt %}\n {{- '<|im_start|>assistant\\n' }}\n {%- if enable_thinking is defined and enable_thinking is false %}\n {{- '<think>\\n\\n</think>\\n\\n' }}\n {%- endif %}\n{%- endif %}",+ "required_functions": [],+ "preamble_control_key": "add_generation_prompt"+ },+ "canonization": {+ "role_key": "role",+ "type_key": "type",+ "text_key": "text",+ "url_key": "url"+ },+ "rendering": {+ "system": {+ "role": "system",+ "message": {+ "content": {+ "blocks": [+ "text"+ ]+ }+ },+ "context": {+ "enable_thinking": {+ "block": "reasoning_effort",+ "mapping": {+ "disabled": false,+ "default": true+ }+ }+ }+ },+ "developer": {+ "role": "developer",+ "context": {+ "tools": {+ "block": "tools"+ }+ }+ },+ "user": {+ "role": "user",+ "message": {+ "content": {+ "required": true,+ "blocks": [+ "text"+ ]+ }+ }+ },+ "assistant": {+ "role": "assistant",+ "message": {+ "content": {+ "blocks": [+ "text"+ ]+ },+ "reasoning_content": {+ "block": "reasoning"+ },+ "tool_calls": {+ "blocks": [+ "tool_call",+ "tool_call_candidate"+ ]+ }+ }+ },+ "tool": {+ "role": "tool",+ "message": {+ "content": {+ "required": true,+ "blocks": [+ "tool_call_result"+ ],+ "limit": 1+ }+ }+ }+ }+}\ No newline at end of filediff --git a/crates/hanashi/configs/rendering/rnj-1.json b/crates/hanashi/configs/rendering/rnj-1.jsonnew file mode 100644index 000000000..a3d70783a--- /dev/null+++ b/crates/hanashi/configs/rendering/rnj-1.json@@ -0,0 +1,74 @@+{+ "jinja": {+ "template": "{%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) -%}\n{%- set emit = namespace(started=false) -%}\n\n{# ---------- Build base system message (always emitted) ---------- #}\n{%- set base_system = 'You are rnj-1, a foundation model trained by Essential AI.\\n' -%}\n\n{# ---------- Default system prompt if user system is absent ---------- #}\n{%- set default_system = 'You are a helpful assistant.' -%}\n\n{# Detect whether the first message is a user-provided system message #}\n{%- set has_user_system = (messages\n and messages[0].role == 'system'\n and (messages[0].content is string)) -%}\n\n{# The system instruction that should apply (user system wins; else default) #}\n{%- set effective_system = (has_user_system and messages[0].content) or default_system -%}\n\n\n{# ---------- Optional tools preface as a synthetic system message ---------- #}\n{%- if tools %}\n {%- set sys_preamble -%}\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{%- for tool in tools %}\n{{ \"\\n\" ~ (tool | tojson) }}\n{% endfor %}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call>\n {%- endset -%}\n\n {# Always include effective_system; user system prevails over default #}\n {%- set sys_content = effective_system ~ \"\\n\\n\" ~ sys_preamble -%}\n\n {%- set content = '<|start_header_id|>system<|end_header_id|>\\n'\n ~ base_system ~ '\\n' ~ sys_content ~ '<|eot_id|>' -%}\n {%- if not emit.started -%}{%- set content = bos_token ~ content -%}{%- set emit.started = true -%}{%- endif -%}\n {{- content -}}\n{%- else %}\n {# No tools: always emit base_system + effective_system #}\n {%- set content = '<|start_header_id|>system<|end_header_id|>\\n'\n ~ base_system ~ '\\n' ~ effective_system ~ '<|eot_id|>' -%}\n {%- if not emit.started -%}{%- set content = bos_token ~ content -%}{%- set emit.started = true -%}{%- endif -%}\n {{- content -}}\n{%- endif -%}\n\n{# ---------- Locate last user query for multi-step tool behavior ---------- #}\n{%- for message in messages[::-1] %}\n {%- set index = (messages|length - 1) - loop.index0 -%}\n {%- if ns.multi_step_tool\n and message.role == \"user\"\n and message.content is string\n and not (message.content.startswith('<tool_response>') and message.content.endswith('</tool_response>')) -%}\n {%- set ns.multi_step_tool = false -%}\n {%- set ns.last_query_index = index -%}\n {%- endif -%}\n{%- endfor -%}\n\n{# ---------- Walk all messages and emit in Llama-3 format ---------- #}\n{%- for message in messages %}\n {%- if message.content is string -%}\n {%- set content = message.content -%}\n {%- else -%}\n {%- set content = '' -%}\n {%- endif -%}\n\n {# Skip the FIRST system message if it existed, since we already embedded it in effective_system #}\n {%- if loop.first and message.role == \"system\" -%}\n {# no-op #}\n\n {%- elif (message.role == \"user\") or (message.role == \"system\") -%}\n {%- set block = '<|start_header_id|>' ~ message.role ~ '<|end_header_id|>\\n' ~ content ~ '<|eot_id|>' -%}\n {%- if not emit.started -%}{%- set block = bos_token ~ block -%}{%- set emit.started = true -%}{%- endif -%}\n {{- block -}}\n\n {%- elif message.role == \"assistant\" -%}\n {%- set body = content -%}\n {%- set header = '<|start_header_id|>assistant<|end_header_id|>\\n' -%}\n {%- if not emit.started -%}{{ bos_token }}{%- set emit.started = true -%}{%- endif -%}\n {{- header -}}\n \n {{- body -}}\n {%- if message.tool_calls -%}\n {%- for tool_call in message.tool_calls -%}\n {%- if tool_call.function -%}{%- set tc = tool_call.function -%}{%- else -%}{%- set tc = tool_call -%}{%- endif -%}\n {%- set args_json = (tc.arguments if (tc.arguments is string) else (tc.arguments | tojson)) -%}\n {%- if loop.first -%}\n {{- '<tool_call>\\n{\"name\": \"' ~ tc.name ~ '\", \"arguments\": ' ~ args_json ~ '}\\n</tool_call>' -}}\n {%- else -%}\n {{- '\\n<tool_call>\\n{\"name\": \"' ~ tc.name ~ '\", \"arguments\": ' ~ args_json ~ '}\\n</tool_call>' -}}\n {%- endif -%}\n {%- endfor -%}\n {%- endif -%}\n {{- '<|eot_id|>' -}}\n\n {%- elif message.role == \"tool\" -%}\n {%- set open_user = (loop.first or (loop.index0 > 0 and messages[loop.index0 - 1].role != \"tool\")) -%}\n {%- set close_user = (loop.last or (loop.index0 < messages|length - 1 and messages[loop.index0 + 1].role != \"tool\")) -%}\n\n {%- if open_user -%}\n {%- set header = '<|start_header_id|>user<|end_header_id|>\\n' -%}\n {%- if not emit.started -%}{%- set header = bos_token ~ header -%}{%- set emit.started = true -%}{%- endif -%}\n {{- header -}}\n {%- endif -%}\n {%- if open_user -%}\n {{- '<tool_response>\\n' -}}\n {%- else -%}\n {{- '\\n<tool_response>\\n' -}}\n {%- endif -%}\n {{- content -}}\n {{- '\\n</tool_response>' -}}\n\n {%- if close_user -%}\n {{- '<|eot_id|>' -}}\n {%- endif -%}\n {%- endif -%}\n{%- endfor -%}\n\n{%- if add_generation_prompt -%}\n {{- '<|start_header_id|>assistant<|end_header_id|>\\n' -}}\n{%- endif -%}\n",+ "required_functions": [],+ "preamble_control_key": "add_generation_prompt",+ "bos_token_key": "bos_token"+ },+ "canonization": {+ "role_key": "role",+ "type_key": "type",+ "text_key": "text",+ "url_key": "url"+ },+ "rendering": {+ "system": {+ "role": "system",+ "message": {+ "content": {+ "required": true,+ "blocks": [+ "text"+ ]+ }+ }+ },+ "developer": {+ "role": "developer",+ "context": {+ "tools": {+ "block": "tools"+ }+ }+ },+ "user": {+ "role": "user",+ "message": {+ "content": {+ "required": true,+ "blocks": [+ "text"+ ]+ }+ }+ },+ "assistant": {+ "role": "assistant",+ "message": {+ "content": {+ "blocks": [+ "text"+ ]+ },+ "tool_calls": {+ "blocks": [+ "tool_call",+ "tool_call_candidate"+ ]+ }+ }+ },+ "tool": {+ "role": "tool",+ "message": {+ "content": {+ "required": true,+ "blocks": [+ "tool_call_result"+ ],+ "limit": 1+ }+ }+ }+ }+}\ No newline at end of filediff --git a/crates/hanashi/configs/rendering/smollm2.json b/crates/hanashi/configs/rendering/smollm2.jsonnew file mode 100644index 000000000..c1b22e8e9--- /dev/null+++ b/crates/hanashi/configs/rendering/smollm2.json@@ -0,0 +1,49 @@+{+ "jinja": {+ "template": "{% for message in messages %}{% if loop.first and messages[0]['role'] != 'system' %}{{ '<|im_start|>system\nYou are a helpful AI assistant named SmolLM, trained by Hugging Face<|im_end|>\n' }}{% endif %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}",+ "required_functions": [],+ "preamble_control_key": "add_generation_prompt",+ "bos_token_key": "bos_token"+ },+ "canonization": {+ "role_key": "role",+ "type_key": "type",+ "text_key": "text",+ "url_key": "url"+ },+ "rendering": {+ "system": {+ "role": "system",+ "message": {+ "content": {+ "required": true,+ "blocks": [+ "text"+ ]+ }+ }+ },+ "user": {+ "role": "user",+ "message": {+ "content": {+ "required": true,+ "blocks": [+ "text"+ ]+ }+ }+ },+ "assistant": {+ "role": "assistant",+ "message": {+ "content": {+ "required": true,+ "blocks": [+ "text"+ ]+ }+ }+ }+ }+}\ No newline at end of filediff --git a/crates/hanashi/configs/rendering/smollm3.json b/crates/hanashi/configs/rendering/smollm3.jsonnew file mode 100644index 000000000..7fe6d06af--- /dev/null+++ b/crates/hanashi/configs/rendering/smollm3.json@@ -0,0 +1,86 @@+{+ "jinja": {+ "template": "{# ───── defaults ───── #}\n{%- if enable_thinking is not defined -%}\n{%- set enable_thinking = true -%}\n{%- endif -%}\n\n{# ───── reasoning mode ───── #}\n{%- if enable_thinking -%}\n {%- set reasoning_mode = \"/think\" -%}\n{%- else -%}\n {%- set reasoning_mode = \"/no_think\" -%}\n{%- endif -%}\n\n{# ───── header (system message) ───── #}\n{{- \"<|im_start|>system\\n\" -}}\n\n{%- if messages[0].role == \"system\" -%}\n {%- set system_message = messages[0].content -%}\n {%- if \"/no_think\" in system_message -%}\n {%- set reasoning_mode = \"/no_think\" -%}\n {%- elif \"/think\" in system_message -%}\n {%- set reasoning_mode = \"/think\" -%}\n {%- endif -%}\n {%- set custom_instructions = system_message.replace(\"/no_think\", \"\").replace(\"/think\", \"\").rstrip() -%}\n{%- endif -%}\n\n{%- if \"/system_override\" in system_message -%}\n {{- custom_instructions.replace(\"/system_override\", \"\").rstrip() -}}\n {{- \"<|im_end|>\\n\" -}}\n{%- else -%}\n {{- \"## Metadata\\n\\n\" -}}\n {{- \"Knowledge Cutoff Date: June 2025\\n\" -}}\n {%- set today = strftime_now(\"%d %B %Y\") -%}\n {{- \"Today Date: \" ~ today ~ \"\\n\" -}}\n {{- \"Reasoning Mode: \" + reasoning_mode + \"\\n\\n\" -}}\n \n {{- \"## Custom Instructions\\n\\n\" -}}\n {%- if custom_instructions -%}\n {{- custom_instructions + \"\\n\\n\" -}}\n {%- elif reasoning_mode == \"/think\" -%}\n {{- \"You are a helpful AI assistant named SmolLM, trained by Hugging Face. Your role as an assistant involves thoroughly exploring questions through a systematic thinking process before providing the final precise and accurate solutions. This requires engaging in a comprehensive cycle of analysis, summarizing, exploration, reassessment, reflection, backtracking, and iteration to develop well-considered thinking process. Please structure your response into two main sections: Thought and Solution using the specified format: <think> Thought section </think> Solution section. In the Thought section, detail your reasoning process in steps. Each step should include detailed considerations such as analysing questions, summarizing relevant findings, brainstorming new ideas, verifying the accuracy of the current steps, refining any errors, and revisiting previous steps. In the Solution section, based on various attempts, explorations, and reflections from the Thought section, systematically present the final solution that you deem correct. The Solution section should be logical, accurate, and concise and detail necessary steps needed to reach the conclusion.\\n\\n\" -}}\n {%- else -%}\n {{- \"You are a helpful AI assistant named SmolLM, trained by Hugging Face.\\n\\n\" -}}\n {%- endif -%}\n\n {%- if xml_tools or python_tools or tools -%}\n {{- \"### Tools\\n\\n\" -}}\n {%- if xml_tools or tools -%}\n {%- if tools -%}\n {%- set xml_tools = tools -%}\n {%- endif -%}\n {%- set ns = namespace(xml_tool_string=\"You may call one or more functions to assist with the user query.\\nYou are provided with function signatures within <tools></tools> XML tags:\\n\\n<tools>\\n\") -%}\n {%- for tool in xml_tools[:] -%} {# The slicing makes sure that xml_tools is a list #}\n {%- set ns.xml_tool_string = ns.xml_tool_string ~ (tool | string) ~ \"\\n\" -%}\n {%- endfor -%}\n {%- set xml_tool_string = ns.xml_tool_string + \"</tools>\\n\\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\\n<tool_call>\\n{\\\"name\\\": <function-name>, \\\"arguments\\\": <args-json-object>}\\n</tool_call>\" -%}\n {{- xml_tool_string -}}\n {%- endif -%}\n {%- if python_tools -%}\n {%- set ns = namespace(python_tool_string=\"When you send a message containing Python code between '<code>' and '</code>' tags, it will be executed in a stateful Jupyter notebook environment, and you will then be given the output to continued reasoning in an agentic loop.\\n\\nYou can use the following tools in your python code like regular functions:\\n<tools>\\n\") -%}\n {%- for tool in python_tools[:] -%} {# The slicing makes sure that python_tools is a list #}\n {%- set ns.python_tool_string = ns.python_tool_string ~ (tool | string) ~ \"\\n\" -%}\n {%- endfor -%}\n {%- set python_tool_string = ns.python_tool_string + \"</tools>\\n\\nThe state persists between code executions: so variables that you define in one step are still available thereafter.\" -%}\n {{- python_tool_string -}}\n {%- endif -%}\n {{- \"\\n\\n\" -}}\n {%- endif -%}\n {{- \"<|im_end|>\\n\" -}}\n{%- endif -%}\n{# ───── main loop ───── #}\n{%- for message in messages -%}\n {%- set content = message.content if message.content is string else \"\" -%}\n {%- if message.role == \"user\" -%}\n {{ \"<|im_start|>\" + message.role + \"\\n\" + content + \"<|im_end|>\\n\" }}\n {%- elif message.role == \"assistant\" -%}\n \n {%- if reasoning_mode == \"/think\" -%}\n {{ \"<|im_start|>assistant\\n\" + content.lstrip(\"\\n\") + \"<|im_end|>\\n\" }}\n {%- else -%}\n {{ \"<|im_start|>assistant\\n\" + \"<think>\\n\\n</think>\\n\" + content.lstrip(\"\\n\") + \"<|im_end|>\\n\" }}\n {%- endif -%}\n \n {%- elif message.role == \"tool\" -%}\n {{ \"<|im_start|>\" + \"user\\n\" + content + \"<|im_end|>\\n\" }}\n {%- endif -%}\n{%- endfor -%}\n{# ───── generation prompt ───── #}\n{%- if add_generation_prompt -%}\n {%- if reasoning_mode == \"/think\" -%}\n {{ \"<|im_start|>assistant\\n\" }}\n {%- else -%}\n {{ \"<|im_start|>assistant\\n\" + \"<think>\\n\\n</think>\\n\" }}\n {%- endif -%}\n{%- endif -%}",+ "required_functions": [+ "strftime_now"+ ],+ "preamble_control_key": "add_generation_prompt"+ },+ "canonization": {+ "role_key": "role",+ "type_key": "type",+ "text_key": "text",+ "url_key": "url"+ },+ "rendering": {+ "system": {+ "role": "system",+ "message": {+ "content": {+ "blocks": [+ "text"+ ]+ }+ },+ "context": {+ "enable_thinking": {+ "block": "reasoning_effort",+ "mapping": {+ "disabled": false,+ "default": true+ }+ }+ }+ },+ "developer": {+ "role": "developer",+ "context": {+ "tools": {+ "block": "tools"+ }+ }+ },+ "user": {+ "role": "user",+ "message": {+ "content": {+ "required": true,+ "blocks": [+ "text"+ ]+ }+ }+ },+ "assistant": {+ "role": "assistant",+ "message": {+ "content": {+ "blocks": [+ "text"+ ]+ },+ "reasoning_content": {+ "block": "reasoning"+ },+ "tool_calls": {+ "blocks": [+ "tool_call",+ "tool_call_candidate"+ ]+ }+ }+ },+ "tool": {+ "role": "tool",+ "message": {+ "content": {+ "required": true,+ "blocks": [+ "tool_call_result"+ ],+ "limit": 1+ }+ }+ }+ }+}\ No newline at end of filediff --git a/crates/hanashi/configs/rendering/translategemma.json b/crates/hanashi/configs/rendering/translategemma.jsonnew file mode 100644index 000000000..3d63e7d4e--- /dev/null+++ b/crates/hanashi/configs/rendering/translategemma.json@@ -0,0 +1,43 @@+{+ "jinja": {+ "template": "{%- set languages = {\n \"aa\": \"Afar\",\n \"aa-DJ\": \"Afar\",\n \"aa-ER\": \"Afar\",\n \"ab\": \"Abkhazian\",\n \"af\": \"Afrikaans\",\n \"af-NA\": \"Afrikaans\",\n \"ak\": \"Akan\",\n \"am\": \"Amharic\",\n \"an\": \"Aragonese\",\n \"ar\": \"Arabic\",\n \"ar-AE\": \"Arabic\",\n \"ar-BH\": \"Arabic\",\n \"ar-DJ\": \"Arabic\",\n \"ar-DZ\": \"Arabic\",\n \"ar-EG\": \"Arabic\",\n \"ar-EH\": \"Arabic\",\n \"ar-ER\": \"Arabic\",\n \"ar-IL\": \"Arabic\",\n \"ar-IQ\": \"Arabic\",\n \"ar-JO\": \"Arabic\",\n \"ar-KM\": \"Arabic\",\n \"ar-KW\": \"Arabic\",\n \"ar-LB\": \"Arabic\",\n \"ar-LY\": \"Arabic\",\n \"ar-MA\": \"Arabic\",\n \"ar-MR\": \"Arabic\",\n \"ar-OM\": \"Arabic\",\n \"ar-PS\": \"Arabic\",\n \"ar-QA\": \"Arabic\",\n \"ar-SA\": \"Arabic\",\n \"ar-SD\": \"Arabic\",\n \"ar-SO\": \"Arabic\",\n \"ar-SS\": \"Arabic\",\n \"ar-SY\": \"Arabic\",\n \"ar-TD\": \"Arabic\",\n \"ar-TN\": \"Arabic\",\n \"ar-YE\": \"Arabic\",\n \"as\": \"Assamese\",\n \"az\": \"Azerbaijani\",\n \"az-Arab\": \"Azerbaijani\",\n \"az-Arab-IQ\": \"Azerbaijani\",\n \"az-Arab-TR\": \"Azerbaijani\",\n \"az-Cyrl\": \"Azerbaijani\",\n \"az-Latn\": \"Azerbaijani\",\n \"ba\": \"Bashkir\",\n \"be\": \"Belarusian\",\n \"be-tarask\": \"Belarusian\",\n \"bg\": \"Bulgarian\",\n \"bg-BG\": \"Bulgarian\",\n \"bm\": \"Bambara\",\n \"bm-Nkoo\": \"Bambara\",\n \"bn\": \"Bengali\",\n \"bn-IN\": \"Bengali\",\n \"bo\": \"Tibetan\",\n \"bo-IN\": \"Tibetan\",\n \"br\": \"Breton\",\n \"bs\": \"Bosnian\",\n \"bs-Cyrl\": \"Bosnian\",\n \"bs-Latn\": \"Bosnian\",\n \"ca\": \"Catalan\",\n \"ca-AD\": \"Catalan\",\n \"ca-ES\": \"Catalan\",\n \"ca-FR\": \"Catalan\",\n \"ca-IT\": \"Catalan\",\n \"ce\": \"Chechen\",\n \"co\": \"Corsican\",\n \"cs\": \"Czech\",\n \"cs-CZ\": \"Czech\",\n \"cv\": \"Chuvash\",\n \"cy\": \"Welsh\",\n \"da\": \"Danish\",\n \"da-DK\": \"Danish\",\n \"da-GL\": \"Danish\",\n \"de\": \"German\",\n \"de-AT\": \"German\",\n \"de-BE\": \"German\",\n \"de-CH\": \"German\",\n \"de-DE\": \"German\",\n \"de-IT\": \"German\",\n \"de-LI\": \"German\",\n \"de-LU\": \"German\",\n \"dv\": \"Divehi\",\n \"dz\": \"Dzongkha\",\n \"ee\": \"Ewe\",\n \"ee-TG\": \"Ewe\",\n \"el\": \"Greek\",\n \"el-CY\": \"Greek\",\n \"el-GR\": \"Greek\",\n \"el-polyton\": \"Greek\",\n \"en\": \"English\",\n \"en-AE\": \"English\",\n \"en-AG\": \"English\",\n \"en-AI\": \"English\",\n \"en-AS\": \"English\",\n \"en-AT\": \"English\",\n \"en-AU\": \"English\",\n \"en-BB\": \"English\",\n \"en-BE\": \"English\",\n \"en-BI\": \"English\",\n \"en-BM\": \"English\",\n \"en-BS\": \"English\",\n \"en-BW\": \"English\",\n \"en-BZ\": \"English\",\n \"en-CA\": \"English\",\n \"en-CC\": \"English\",\n \"en-CH\": \"English\",\n \"en-CK\": \"English\",\n \"en-CM\": \"English\",\n \"en-CX\": \"English\",\n \"en-CY\": \"English\",\n \"en-CZ\": \"English\",\n \"en-DE\": \"English\",\n \"en-DG\": \"English\",\n \"en-DK\": \"English\",\n \"en-DM\": \"English\",\n \"en-ER\": \"English\",\n \"en-ES\": \"English\",\n \"en-FI\": \"English\",\n \"en-FJ\": \"English\",\n \"en-FK\": \"English\",\n \"en-FM\": \"English\",\n \"en-FR\": \"English\",\n \"en-GB\": \"English\",\n \"en-GD\": \"English\",\n \"en-GG\": \"English\",\n \"en-GH\": \"English\",\n \"en-GI\": \"English\",\n \"en-GM\": \"English\",\n \"en-GS\": \"English\",\n \"en-GU\": \"English\",\n \"en-GY\": \"English\",\n \"en-HK\": \"English\",\n \"en-HU\": \"English\",\n \"en-ID\": \"English\",\n \"en-IE\": \"English\",\n \"en-IL\": \"English\",\n \"en-IM\": \"English\",\n \"en-IN\": \"English\",\n \"en-IO\": \"English\",\n \"en-IT\": \"English\",\n \"en-JE\": \"English\",\n \"en-JM\": \"English\",\n \"en-KE\": \"English\",\n \"en-KI\": \"English\",\n \"en-KN\": \"English\",\n \"en-KY\": \"English\",\n \"en-LC\": \"English\",\n \"en-LR\": \"English\",\n \"en-LS\": \"English\",\n \"en-MG\": \"English\",\n \"en-MH\": \"English\",\n \"en-MO\": \"English\",\n \"en-MP\": \"English\",\n \"en-MS\": \"English\",\n \"en-MT\": \"English\",\n \"en-MU\": \"English\",\n \"en-MV\": \"English\",\n \"en-MW\": \"English\",\n \"en-MY\": \"English\",\n \"en-NA\": \"English\",\n \"en-NF\": \"English\",\n \"en-NG\": \"English\",\n \"en-NL\": \"English\",\n \"en-NO\": \"English\",\n \"en-NR\": \"English\",\n \"en-NU\": \"English\",\n \"en-NZ\": \"English\",\n \"en-PG\": \"English\",\n \"en-PH\": \"English\",\n \"en-PK\": \"English\",\n \"en-PL\": \"English\",\n \"en-PN\": \"English\",\n \"en-PR\": \"English\",\n \"en-PT\": \"English\",\n \"en-PW\": \"English\",\n \"en-RO\": \"English\",\n \"en-RW\": \"English\",\n \"en-SB\": \"English\",\n \"en-SC\": \"English\",\n \"en-SD\": \"English\",\n \"en-SE\": \"English\",\n \"en-SG\": \"English\",\n \"en-SH\": \"English\",\n \"en-SI\": \"English\",\n \"en-SK\": \"English\",\n \"en-SL\": \"English\",\n \"en-SS\": \"English\",\n \"en-SX\": \"English\",\n \"en-SZ\": \"English\",\n \"en-TC\": \"English\",\n \"en-TK\": \"English\",\n \"en-TO\": \"English\",\n \"en-TT\": \"English\",\n \"en-TV\": \"English\",\n \"en-TZ\": \"English\",\n \"en-UG\": \"English\",\n \"en-UM\": \"English\",\n \"en-VC\": \"English\",\n \"en-VG\": \"English\",\n \"en-VI\": \"English\",\n \"en-VU\": \"English\",\n \"en-WS\": \"English\",\n \"en-ZA\": \"English\",\n \"en-ZM\": \"English\",\n \"en-ZW\": \"English\",\n \"eo\": \"Esperanto\",\n \"es\": \"Spanish\",\n \"es-AR\": \"Spanish\",\n \"es-BO\": \"Spanish\",\n \"es-BR\": \"Spanish\",\n \"es-BZ\": \"Spanish\",\n \"es-CL\": \"Spanish\",\n \"es-CO\": \"Spanish\",\n \"es-CR\": \"Spanish\",\n \"es-CU\": \"Spanish\",\n \"es-DO\": \"Spanish\",\n \"es-EA\": \"Spanish\",\n \"es-EC\": \"Spanish\",\n \"es-ES\": \"Spanish\",\n \"es-GQ\": \"Spanish\",\n \"es-GT\": \"Spanish\",\n \"es-HN\": \"Spanish\",\n \"es-IC\": \"Spanish\",\n \"es-MX\": \"Spanish\",\n \"es-NI\": \"Spanish\",\n \"es-PA\": \"Spanish\",\n \"es-PE\": \"Spanish\",\n \"es-PH\": \"Spanish\",\n \"es-PR\": \"Spanish\",\n \"es-PY\": \"Spanish\",\n \"es-SV\": \"Spanish\",\n \"es-US\": \"Spanish\",\n \"es-UY\": \"Spanish\",\n \"es-VE\": \"Spanish\",\n \"et\": \"Estonian\",\n \"et-EE\": \"Estonian\",\n \"eu\": \"Basque\",\n \"fa\": \"Persian\",\n \"fa-AF\": \"Persian\",\n \"fa-IR\": \"Persian\",\n \"ff\": \"Fulah\",\n \"ff-Adlm\": \"Fulah\",\n \"ff-Adlm-BF\": \"Fulah\",\n \"ff-Adlm-CM\": \"Fulah\",\n \"ff-Adlm-GH\": \"Fulah\",\n \"ff-Adlm-GM\": \"Fulah\",\n \"ff-Adlm-GW\": \"Fulah\",\n \"ff-Adlm-LR\": \"Fulah\",\n \"ff-Adlm-MR\": \"Fulah\",\n \"ff-Adlm-NE\": \"Fulah\",\n \"ff-Adlm-NG\": \"Fulah\",\n \"ff-Adlm-SL\": \"Fulah\",\n \"ff-Adlm-SN\": \"Fulah\",\n \"ff-Latn\": \"Fulah\",\n \"ff-Latn-BF\": \"Fulah\",\n \"ff-Latn-CM\": \"Fulah\",\n \"ff-Latn-GH\": \"Fulah\",\n \"ff-Latn-GM\": \"Fulah\",\n \"ff-Latn-GN\": \"Fulah\",\n \"ff-Latn-GW\": \"Fulah\",\n \"ff-Latn-LR\": \"Fulah\",\n \"ff-Latn-MR\": \"Fulah\",\n \"ff-Latn-NE\": \"Fulah\",\n \"ff-Latn-NG\": \"Fulah\",\n \"ff-Latn-SL\": \"Fulah\",\n \"fi\": \"Finnish\",\n \"fi-FI\": \"Finnish\",\n \"fil-PH\": \"Filipino\",\n \"fo\": \"Faroese\",\n \"fo-DK\": \"Faroese\",\n \"fr\": \"French\",\n \"fr-BE\": \"French\",\n \"fr-BF\": \"French\",\n \"fr-BI\": \"French\",\n \"fr-BJ\": \"French\",\n \"fr-BL\": \"French\",\n \"fr-CA\": \"French\",\n \"fr-CD\": \"French\",\n \"fr-CF\": \"French\",\n \"fr-CG\": \"French\",\n \"fr-CH\": \"French\",\n \"fr-CI\": \"French\",\n \"fr-CM\": \"French\",\n \"fr-DJ\": \"French\",\n \"fr-DZ\": \"French\",\n \"fr-FR\": \"French\",\n \"fr-GA\": \"French\",\n \"fr-GF\": \"French\",\n \"fr-GN\": \"French\",\n \"fr-GP\": \"French\",\n \"fr-GQ\": \"French\",\n \"fr-HT\": \"French\",\n \"fr-KM\": \"French\",\n \"fr-LU\": \"French\",\n \"fr-MA\": \"French\",\n \"fr-MC\": \"French\",\n \"fr-MF\": \"French\",\n \"fr-MG\": \"French\",\n \"fr-ML\": \"French\",\n \"fr-MQ\": \"French\",\n \"fr-MR\": \"French\",\n \"fr-MU\": \"French\",\n \"fr-NC\": \"French\",\n \"fr-NE\": \"French\",\n \"fr-PF\": \"French\",\n \"fr-PM\": \"French\",\n \"fr-RE\": \"French\",\n \"fr-RW\": \"French\",\n \"fr-SC\": \"French\",\n \"fr-SN\": \"French\",\n \"fr-SY\": \"French\",\n \"fr-TD\": \"French\",\n \"fr-TG\": \"French\",\n \"fr-TN\": \"French\",\n \"fr-VU\": \"French\",\n \"fr-WF\": \"French\",\n \"fr-YT\": \"French\",\n \"fy\": \"Western Frisian\",\n \"ga\": \"Irish\",\n \"ga-GB\": \"Irish\",\n \"gd\": \"Scottish Gaelic\",\n \"gl\": \"Galician\",\n \"gn\": \"Guarani\",\n \"gu\": \"Gujarati\",\n \"gu-IN\": \"Gujarati\",\n \"gv\": \"Manx\",\n \"ha\": \"Hausa\",\n \"ha-Arab\": \"Hausa\",\n \"ha-Arab-SD\": \"Hausa\",\n \"ha-GH\": \"Hausa\",\n \"ha-NE\": \"Hausa\",\n \"he\": \"Hebrew\",\n \"he-IL\": \"Hebrew\",\n \"hi\": \"Hindi\",\n \"hi-IN\": \"Hindi\",\n \"hi-Latn\": \"Hindi\",\n \"hr\": \"Croatian\",\n \"hr-BA\": \"Croatian\",\n \"hr-HR\": \"Croatian\",\n \"ht\": \"Haitian\",\n \"hu\": \"Hungarian\",\n \"hu-HU\": \"Hungarian\",\n \"hy\": \"Armenian\",\n \"ia\": \"Interlingua\",\n \"id\": \"Indonesian\",\n \"id-ID\": \"Indonesian\",\n \"ie\": \"Interlingue\",\n \"ig\": \"Igbo\",\n \"ii\": \"Sichuan Yi\",\n \"ik\": \"Inupiaq\",\n \"io\": \"Ido\",\n \"is\": \"Icelandic\",\n \"it\": \"Italian\",\n \"it-CH\": \"Italian\",\n \"it-IT\": \"Italian\",\n \"it-SM\": \"Italian\",\n \"it-VA\": \"Italian\",\n \"iu\": \"Inuktitut\",\n \"iu-Latn\": \"Inuktitut\",\n \"ja\": \"Japanese\",\n \"ja-JP\": \"Japanese\",\n \"jv\": \"Javanese\",\n \"ka\": \"Georgian\",\n \"ki\": \"Kikuyu\",\n \"kk\": \"Kazakh\",\n \"kk-Arab\": \"Kazakh\",\n \"kk-Cyrl\": \"Kazakh\",\n \"kk-KZ\": \"Kazakh\",\n \"kl\": \"Kalaallisut\",\n \"km\": \"Central Khmer\",\n \"kn\": \"Kannada\",\n \"kn-IN\": \"Kannada\",\n \"ko\": \"Korean\",\n \"ko-CN\": \"Korean\",\n \"ko-KP\": \"Korean\",\n \"ko-KR\": \"Korean\",\n \"ks\": \"Kashmiri\",\n \"ks-Arab\": \"Kashmiri\",\n \"ks-Deva\": \"Kashmiri\",\n \"ku\": \"Kurdish\",\n \"kw\": \"Cornish\",\n \"ky\": \"Kyrgyz\",\n \"la\": \"Latin\",\n \"lb\": \"Luxembourgish\",\n \"lg\": \"Ganda\",\n \"ln\": \"Lingala\",\n \"ln-AO\": \"Lingala\",\n \"ln-CF\": \"Lingala\",\n \"ln-CG\": \"Lingala\",\n \"lo\": \"Lao\",\n \"lt\": \"Lithuanian\",\n \"lt-LT\": \"Lithuanian\",\n \"lu\": \"Luba-Katanga\",\n \"lv\": \"Latvian\",\n \"lv-LV\": \"Latvian\",\n \"mg\": \"Malagasy\",\n \"mi\": \"Maori\",\n \"mk\": \"Macedonian\",\n \"ml\": \"Malayalam\",\n \"ml-IN\": \"Malayalam\",\n \"mn\": \"Mongolian\",\n \"mn-Mong\": \"Mongolian\",\n \"mn-Mong-MN\": \"Mongolian\",\n \"mr\": \"Marathi\",\n \"mr-IN\": \"Marathi\",\n \"ms\": \"Malay\",\n \"ms-Arab\": \"Malay\",\n \"ms-Arab-BN\": \"Malay\",\n \"ms-BN\": \"Malay\",\n \"ms-ID\": \"Malay\",\n \"ms-SG\": \"Malay\",\n \"mt\": \"Maltese\",\n \"my\": \"Burmese\",\n \"nb\": \"Norwegian Bokmål\",\n \"nb-SJ\": \"Norwegian Bokmål\",\n \"nd\": \"North Ndebele\",\n \"ne\": \"Nepali\",\n \"ne-IN\": \"Nepali\",\n \"nl\": \"Dutch\",\n \"nl-AW\": \"Dutch\",\n \"nl-BE\": \"Dutch\",\n \"nl-BQ\": \"Dutch\",\n \"nl-CW\": \"Dutch\",\n \"nl-NL\": \"Dutch\",\n \"nl-SR\": \"Dutch\",\n \"nl-SX\": \"Dutch\",\n \"nn\": \"Norwegian Nynorsk\",\n \"no\": \"Norwegian\",\n \"no-NO\": \"Norwegian\",\n \"nr\": \"South Ndebele\",\n \"nv\": \"Navajo\",\n \"ny\": \"Chichewa\",\n \"oc\": \"Occitan\",\n \"oc-ES\": \"Occitan\",\n \"om\": \"Oromo\",\n \"om-KE\": \"Oromo\",\n \"or\": \"Oriya\",\n \"os\": \"Ossetian\",\n \"os-RU\": \"Ossetian\",\n \"pa\": \"Punjabi\",\n \"pa-IN\": \"Punjabi\",\n \"pa-Arab\": \"Punjabi\",\n \"pa-Guru\": \"Punjabi\",\n \"pl\": \"Polish\",\n \"pl-PL\": \"Polish\",\n \"ps\": \"Pashto\",\n \"ps-PK\": \"Pashto\",\n \"pt\": \"Portuguese\",\n \"pt-AO\": \"Portuguese\",\n \"pt-BR\": \"Portuguese\",\n \"pt-CH\": \"Portuguese\",\n \"pt-CV\": \"Portuguese\",\n \"pt-GQ\": \"Portuguese\",\n \"pt-GW\": \"Portuguese\",\n \"pt-LU\": \"Portuguese\",\n \"pt-MO\": \"Portuguese\",\n \"pt-MZ\": \"Portuguese\",\n \"pt-PT\": \"Portuguese\",\n \"pt-ST\": \"Portuguese\",\n \"pt-TL\": \"Portuguese\",\n \"qu\": \"Quechua\",\n \"qu-BO\": \"Quechua\",\n \"qu-EC\": \"Quechua\",\n \"rm\": \"Romansh\",\n \"rn\": \"Rundi\",\n \"ro\": \"Romanian\",\n \"ro-MD\": \"Romanian\",\n \"ro-RO\": \"Romanian\",\n \"ru\": \"Russian\",\n \"ru-BY\": \"Russian\",\n \"ru-KG\": \"Russian\",\n \"ru-KZ\": \"Russian\",\n \"ru-MD\": \"Russian\",\n \"ru-RU\": \"Russian\",\n \"ru-UA\": \"Russian\",\n \"rw\": \"Kinyarwanda\",\n \"sa\": \"Sanskrit\",\n \"sc\": \"Sardinian\",\n \"sd\": \"Sindhi\",\n \"sd-Arab\": \"Sindhi\",\n \"sd-Deva\": \"Sindhi\",\n \"se\": \"Northern Sami\",\n \"se-FI\": \"Northern Sami\",\n \"se-SE\": \"Northern Sami\",\n \"sg\": \"Sango\",\n \"si\": \"Sinhala\",\n \"sk\": \"Slovak\",\n \"sk-SK\": \"Slovak\",\n \"sl\": \"Slovenian\",\n \"sl-SI\": \"Slovenian\",\n \"sn\": \"Shona\",\n \"so\": \"Somali\",\n \"so-DJ\": \"Somali\",\n \"so-ET\": \"Somali\",\n \"so-KE\": \"Somali\",\n \"sq\": \"Albanian\",\n \"sq-MK\": \"Albanian\",\n \"sq-XK\": \"Albanian\",\n \"sr\": \"Serbian\",\n \"sr-RS\": \"Serbian\",\n \"sr-Cyrl\": \"Serbian\",\n \"sr-Cyrl-BA\": \"Serbian\",\n \"sr-Cyrl-ME\": \"Serbian\",\n \"sr-Cyrl-XK\": \"Serbian\",\n \"sr-Latn\": \"Serbian\",\n \"sr-Latn-BA\": \"Serbian\",\n \"sr-Latn-ME\": \"Serbian\",\n \"sr-Latn-XK\": \"Serbian\",\n \"ss\": \"Swati\",\n \"ss-SZ\": \"Swati\",\n \"st\": \"Southern Sotho\",\n \"st-LS\": \"Southern Sotho\",\n \"su\": \"Sundanese\",\n \"su-Latn\": \"Sundanese\",\n \"sv\": \"Swedish\",\n \"sv-AX\": \"Swedish\",\n \"sv-FI\": \"Swedish\",\n \"sv-SE\": \"Swedish\",\n \"sw\": \"Swahili\",\n \"sw-CD\": \"Swahili\",\n \"sw-KE\": \"Swahili\",\n \"sw-TZ\": \"Swahili\",\n \"sw-UG\": \"Swahili\",\n \"ta\": \"Tamil\",\n \"ta-IN\": \"Tamil\",\n \"ta-LK\": \"Tamil\",\n \"ta-MY\": \"Tamil\",\n \"ta-SG\": \"Tamil\",\n \"te\": \"Telugu\",\n \"te-IN\": \"Telugu\",\n \"tg\": \"Tajik\",\n \"th\": \"Thai\",\n \"th-TH\": \"Thai\",\n \"ti\": \"Tigrinya\",\n \"ti-ER\": \"Tigrinya\",\n \"tk\": \"Turkmen\",\n \"tl\": \"Tagalog\",\n \"tn\": \"Tswana\",\n \"tn-BW\": \"Tswana\",\n \"to\": \"Tonga\",\n \"tr\": \"Turkish\",\n \"tr-CY\": \"Turkish\",\n \"tr-TR\": \"Turkish\",\n \"ts\": \"Tsonga\",\n \"tt\": \"Tatar\",\n \"ug\": \"Uyghur\",\n \"uk\": \"Ukrainian\",\n \"uk-UA\": \"Ukrainian\",\n \"ur\": \"Urdu\",\n \"ur-IN\": \"Urdu\",\n \"ur-PK\": \"Urdu\",\n \"uz\": \"Uzbek\",\n \"uz-Arab\": \"Uzbek\",\n \"uz-Cyrl\": \"Uzbek\",\n \"uz-Latn\": \"Uzbek\",\n \"ve\": \"Venda\",\n \"vi\": \"Vietnamese\",\n \"vi-VN\": \"Vietnamese\",\n \"vo\": \"Volapük\",\n \"wa\": \"Walloon\",\n \"wo\": \"Wolof\",\n \"xh\": \"Xhosa\",\n \"yi\": \"Yiddish\",\n \"yo\": \"Yoruba\",\n \"yo-BJ\": \"Yoruba\",\n \"za\": \"Zhuang\",\n \"zh\": \"Chinese\",\n \"zh-CH\": \"Chinese\",\n \"zh-TW\": \"Chinese\",\n \"zh-Hans\": \"Chinese\",\n \"zh-Hans-HK\": \"Chinese\",\n \"zh-Hans-MO\": \"Chinese\",\n \"zh-Hans-MY\": \"Chinese\",\n \"zh-Hans-SG\": \"Chinese\",\n \"zh-Hant\": \"Chinese\",\n \"zh-Hant-HK\": \"Chinese\",\n \"zh-Hant-MO\": \"Chinese\",\n \"zh-Hant-MY\": \"Chinese\",\n \"zh-Latn\": \"Chinese\",\n \"zu\": \"Zulu\",\n \"zu-ZA\": \"Zulu\",\n}\n-%}\n{{ bos_token }}\n{%- if (messages[0]['role'] != 'user') -%}\n {{ raise_exception(\"Conversations must start with a user prompt.\") }}\n{%- endif -%}\n{%- for message in messages -%}\n {%- if (message['role'] == 'user') != (loop.index0 % 2 == 0) -%}\n {{ raise_exception(\"Conversation roles must alternate user/assistant/user/assistant/...\") }}\n {%- endif -%}\n {%- if (message['role'] == 'assistant') -%}\n {%- if message['content'] is none or message['content'] is not string -%}\n {{ raise_exception(\"Assistant role must provide content as a string\") }}\n {%- endif -%}\n {{ '<start_of_turn>model\\n'}}\n {{ message[\"content\"] | trim }}\n {%- elif (message['role'] == 'user') -%}\n {%- if message['content'] is none or message['content'] is not iterable or message['content'] | length != 1 -%}\n {{ raise_exception(\n \"User role must provide `content` as an iterable with exactly one item. That item must be a \" +\n \"`mapping(type:'text' | 'image', source_lang_code:string, target_lang_code:string, \" +\n \"text:string | none, image:string | none)`.\"\n ) }}\n {%- endif -%}\n {%- set content = message[\"content\"][0] -%}\n {%- set source_lang_code = content[\"source_lang_code\"] | replace(\"_\", \"-\") -%}\n {%- set source_lang = languages[source_lang_code] -%}\n {%- set target_lang_code = content[\"target_lang_code\"] | replace(\"_\", \"-\") -%}\n {%- set target_lang = languages[target_lang_code] -%}\n {{ '<start_of_turn>user\\nYou are a professional ' + source_lang + ' (' + source_lang_code + ') to ' +\n target_lang + ' (' + target_lang_code + ') translator. Your goal is to accurately convey the meaning and '\n 'nuances of the original ' + source_lang + ' text while adhering to ' + target_lang + ' grammar, '\n 'vocabulary, and cultural sensitivities.\\n'\n }}\n {%- if content[\"type\"] == 'text' -%}\n {{\n 'Produce only the ' + target_lang + ' translation, without any additional explanations or ' +\n 'commentary. Please translate the following ' + source_lang + ' text into ' + target_lang + ':\\n\\n\\n' +\n content[\"text\"] | trim\n }}\n {%- elif content[\"type\"] == 'image' -%}\n {{\n 'Please translate the ' + source_lang + ' text in the provided image into ' + target_lang + '. ' +\n 'Produce only the ' + target_lang + ' translation, without any additional explanations, ' +\n 'alternatives or commentary. Focus only on the text, do not output where the text is located, ' +\n 'surrounding objects or any other explanation about the picture. Ignore symbols, pictogram, and ' +\n 'arrows!\\n\\n\\n<start_of_image>'\n }}\n {%- else -%}\n {{ raise_exception(\"User role `content` can contain either `text` or `image` data.\") }}\n {%- endif -%}\n {%- else -%}\n {{ raise_exception(\"Conversations must only contain user or assistant roles.\") }}\n {%- endif -%}\n {{ '<end_of_turn>\\n' }}\n{%- endfor -%}\n{%- if add_generation_prompt -%}\n {{'<start_of_turn>model\\n'}}\n{%- endif -%}\n",+ "required_functions": [],+ "preamble_control_key": "add_generation_prompt",+ "bos_token_key": "bos_token"+ },+ "canonization": {+ "role_key": "role",+ "type_key": "type",+ "text_key": "text",+ "url_key": "url",+ "custom_keys": {+ "source_language_code": "source_lang_code",+ "target_language_code": "target_lang_code"+ }+ },+ "rendering": {+ "user": {+ "role": "user",+ "message": {+ "content": {+ "required": true,+ "disable_raw": true,+ "blocks": [+ "translation"+ ]+ }+ }+ },+ "assistant": {+ "role": "model",+ "message": {+ "content": {+ "required": true,+ "blocks": [+ "text"+ ]+ }+ }+ }+ }+}\ No newline at end of filediff --git a/crates/hanashi/configs/tokens/codestral.json b/crates/hanashi/configs/tokens/codestral.jsonnew file mode 100644index 000000000..b6614c982--- /dev/null+++ b/crates/hanashi/configs/tokens/codestral.json@@ -0,0 +1,8 @@+{+ "bos_token_id": 1,+ "eos_token_id": 2,+ "stop_token_ids": [+ 2+ ],+ "banned_token_ids": []+}\ No newline at end of filediff --git a/crates/hanashi/configs/tokens/deepseek-r1-distill-qwen.json b/crates/hanashi/configs/tokens/deepseek-r1-distill-qwen.jsonnew file mode 100644index 000000000..c3a85ae57--- /dev/null+++ b/crates/hanashi/configs/tokens/deepseek-r1-distill-qwen.json@@ -0,0 +1,8 @@+{+ "bos_token_id": 151646,+ "eos_token_id": 151643,+ "stop_token_ids": [+ 151643+ ],+ "banned_token_ids": []+}\ No newline at end of filediff --git a/crates/hanashi/configs/tokens/devstral-small.json b/crates/hanashi/configs/tokens/devstral-small.jsonnew file mode 100644index 000000000..b6614c982--- /dev/null+++ b/crates/hanashi/configs/tokens/devstral-small.json@@ -0,0 +1,8 @@+{+ "bos_token_id": 1,+ "eos_token_id": 2,+ "stop_token_ids": [+ 2+ ],+ "banned_token_ids": []+}\ No newline at end of filediff --git a/crates/hanashi/configs/tokens/functiongemma.json b/crates/hanashi/configs/tokens/functiongemma.jsonnew file mode 100644index 000000000..3cd458600--- /dev/null+++ b/crates/hanashi/configs/tokens/functiongemma.json@@ -0,0 +1,10 @@+{+ "bos_token_id": 2,+ "eos_token_id": 1,+ "stop_token_ids": [+ 1,+ 50,+ 106+ ],+ "banned_token_ids": []+}\ No newline at end of filediff --git a/crates/hanashi/configs/tokens/gemma-2.json b/crates/hanashi/configs/tokens/gemma-2.jsonnew file mode 100644index 000000000..29cd0af19--- /dev/null+++ b/crates/hanashi/configs/tokens/gemma-2.json@@ -0,0 +1,9 @@+{+ "bos_token_id": 2,+ "eos_token_id": 1,+ "stop_token_ids": [+ 1,+ 107+ ],+ "banned_token_ids": []+}\ No newline at end of filediff --git a/crates/hanashi/configs/tokens/gemma-3.json b/crates/hanashi/configs/tokens/gemma-3.jsonnew file mode 100644index 000000000..6434016d3--- /dev/null+++ b/crates/hanashi/configs/tokens/gemma-3.json@@ -0,0 +1,9 @@+{+ "bos_token_id": 2,+ "eos_token_id": 1,+ "stop_token_ids": [+ 1,+ 106+ ],+ "banned_token_ids": []+}\ No newline at end of filediff --git a/crates/hanashi/configs/tokens/gemma-4.json b/crates/hanashi/configs/tokens/gemma-4.jsonnew file mode 100644index 000000000..3cd458600--- /dev/null+++ b/crates/hanashi/configs/tokens/gemma-4.json@@ -0,0 +1,10 @@+{+ "bos_token_id": 2,+ "eos_token_id": 1,+ "stop_token_ids": [+ 1,+ 50,+ 106+ ],+ "banned_token_ids": []+}\ No newline at end of filediff --git a/crates/hanashi/configs/tokens/gpt-oss.json b/crates/hanashi/configs/tokens/gpt-oss.jsonnew file mode 100644index 000000000..3c56bcb59--- /dev/null+++ b/crates/hanashi/configs/tokens/gpt-oss.json@@ -0,0 +1,10 @@+{+ "bos_token_id": 199998,+ "eos_token_id": 200002,+ "stop_token_ids": [+ 199999,+ 200002,+ 200012+ ],+ "banned_token_ids": []+}\ No newline at end of filediff --git a/crates/hanashi/configs/tokens/lfm2.json b/crates/hanashi/configs/tokens/lfm2.jsonnew file mode 100644index 000000000..b732ab1b7--- /dev/null+++ b/crates/hanashi/configs/tokens/lfm2.json@@ -0,0 +1,8 @@+{+ "bos_token_id": 1,+ "eos_token_id": 7,+ "stop_token_ids": [+ 7+ ],+ "banned_token_ids": []+}\ No newline at end of filediff --git a/crates/hanashi/configs/tokens/llama-3.json b/crates/hanashi/configs/tokens/llama-3.jsonnew file mode 100644index 000000000..c8228312b--- /dev/null+++ b/crates/hanashi/configs/tokens/llama-3.json@@ -0,0 +1,10 @@+{+ "bos_token_id": 128000,+ "eos_token_id": 128009,+ "stop_token_ids": [+ 128001,+ 128008,+ 128009+ ],+ "banned_token_ids": []+}\ No newline at end of filediff --git a/crates/hanashi/configs/tokens/mistral-small-3.json b/crates/hanashi/configs/tokens/mistral-small-3.jsonnew file mode 100644index 000000000..b6614c982--- /dev/null+++ b/crates/hanashi/configs/tokens/mistral-small-3.json@@ -0,0 +1,8 @@+{+ "bos_token_id": 1,+ "eos_token_id": 2,+ "stop_token_ids": [+ 2+ ],+ "banned_token_ids": []+}\ No newline at end of filediff --git a/crates/hanashi/configs/tokens/nanbeige.json b/crates/hanashi/configs/tokens/nanbeige.jsonnew file mode 100644index 000000000..a4a4e4029--- /dev/null+++ b/crates/hanashi/configs/tokens/nanbeige.json@@ -0,0 +1,8 @@+{+ "bos_token_id": 166100,+ "eos_token_id": 166101,+ "stop_token_ids": [+ 166101+ ],+ "banned_token_ids": []+}\ No newline at end of filediff --git a/crates/hanashi/configs/tokens/polaris.json b/crates/hanashi/configs/tokens/polaris.jsonnew file mode 100644index 000000000..28a26bd84--- /dev/null+++ b/crates/hanashi/configs/tokens/polaris.json@@ -0,0 +1,8 @@+{+ "bos_token_id": null,+ "eos_token_id": 151645,+ "stop_token_ids": [+ 151645+ ],+ "banned_token_ids": []+}\ No newline at end of filediff --git a/crates/hanashi/configs/tokens/qwen2.5.json b/crates/hanashi/configs/tokens/qwen2.5.jsonnew file mode 100644index 000000000..6ec262617--- /dev/null+++ b/crates/hanashi/configs/tokens/qwen2.5.json@@ -0,0 +1,9 @@+{+ "bos_token_id": null,+ "eos_token_id": 151645,+ "stop_token_ids": [+ 151643,+ 151645+ ],+ "banned_token_ids": []+}\ No newline at end of filediff --git a/crates/hanashi/configs/tokens/qwen3.5.json b/crates/hanashi/configs/tokens/qwen3.5.jsonnew file mode 100644index 000000000..c55de994e--- /dev/null+++ b/crates/hanashi/configs/tokens/qwen3.5.json@@ -0,0 +1,8 @@+{+ "bos_token_id": null,+ "eos_token_id": 248046,+ "stop_token_ids": [+ 248046+ ],+ "banned_token_ids": []+}\ No newline at end of filediff --git a/crates/hanashi/configs/tokens/qwen3.json b/crates/hanashi/configs/tokens/qwen3.jsonnew file mode 100644index 000000000..6ec262617--- /dev/null+++ b/crates/hanashi/configs/tokens/qwen3.json@@ -0,0 +1,9 @@+{+ "bos_token_id": null,+ "eos_token_id": 151645,+ "stop_token_ids": [+ 151643,+ 151645+ ],+ "banned_token_ids": []+}\ No newline at end of filediff --git a/crates/hanashi/configs/tokens/rnj-1.json b/crates/hanashi/configs/tokens/rnj-1.jsonnew file mode 100644index 000000000..6baf053e9--- /dev/null+++ b/crates/hanashi/configs/tokens/rnj-1.json@@ -0,0 +1,10 @@+{+ "bos_token_id": 128000,+ "eos_token_id": 128001,+ "stop_token_ids": [+ 1,+ 128001,+ 128009+ ],+ "banned_token_ids": []+}\ No newline at end of filediff --git a/crates/hanashi/configs/tokens/smollm2.json b/crates/hanashi/configs/tokens/smollm2.jsonnew file mode 100644index 000000000..b6614c982--- /dev/null+++ b/crates/hanashi/configs/tokens/smollm2.json@@ -0,0 +1,8 @@+{+ "bos_token_id": 1,+ "eos_token_id": 2,+ "stop_token_ids": [+ 2+ ],+ "banned_token_ids": []+}\ No newline at end of filediff --git a/crates/hanashi/configs/tokens/smollm3.json b/crates/hanashi/configs/tokens/smollm3.jsonnew file mode 100644index 000000000..c48dddfe5--- /dev/null+++ b/crates/hanashi/configs/tokens/smollm3.json@@ -0,0 +1,8 @@+{+ "bos_token_id": null,+ "eos_token_id": 128012,+ "stop_token_ids": [+ 128012+ ],+ "banned_token_ids": []+}\ No newline at end of filediff --git a/crates/hanashi/configs/tokens/translategemma.json b/crates/hanashi/configs/tokens/translategemma.jsonnew file mode 100644index 000000000..6434016d3--- /dev/null+++ b/crates/hanashi/configs/tokens/translategemma.json@@ -0,0 +1,9 @@+{+ "bos_token_id": 2,+ "eos_token_id": 1,+ "stop_token_ids": [+ 1,+ 106+ ],+ "banned_token_ids": []+}\ No newline at end of filediff --git a/crates/hanashi/src/chat/encoding/config.rs b/crates/hanashi/src/chat/encoding/config.rsnew file mode 100644index 000000000..70e387dbf--- /dev/null+++ b/crates/hanashi/src/chat/encoding/config.rs@@ -0,0 +1,22 @@+use serde::{Deserialize, Serialize};++use crate::chat::{+ encoding::{Error, hanashi::Config as HanashiConfig, harmony::Config as HarmonyConfig},+ types::Capabilities,+};++#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]+#[serde(tag = "type", rename_all = "snake_case")]+pub enum Config {+ Hanashi(HanashiConfig),+ Harmony(HarmonyConfig),+}++impl Config {+ pub fn capabilities(&self) -> Result<Capabilities, Error> {+ match self {+ Config::Hanashi(config) => config.capabilities().map_err(Error::from),+ Config::Harmony(config) => Ok(config.capabilities()),+ }+ }+}diff --git a/crates/hanashi/src/chat/encoding/context.rs b/crates/hanashi/src/chat/encoding/context.rsnew file mode 100644index 000000000..01a8da1c8--- /dev/null+++ b/crates/hanashi/src/chat/encoding/context.rs@@ -0,0 +1,17 @@+use serde::{Deserialize, Serialize};++#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]+pub enum TokenizerLocation {+ Directory {+ path: String,+ name: Option<String>,+ },+ File {+ path: String,+ },+}++#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]+pub struct Context {+ pub tokenizer_location: TokenizerLocation,+}diff --git a/crates/hanashi/src/chat/encoding/error.rs b/crates/hanashi/src/chat/encoding/error.rsnew file mode 100644index 000000000..735afaddf--- /dev/null+++ b/crates/hanashi/src/chat/encoding/error.rs@@ -0,0 +1,10 @@+use crate::chat::encoding::{hanashi::Error as HanashiError, harmony::Error as HarmonyError};++#[derive(Debug, thiserror::Error)]+#[non_exhaustive]+pub enum Error {+ #[error(transparent)]+ Hanashi(#[from] HanashiError),+ #[error(transparent)]+ Harmony(#[from] HarmonyError),+}diff --git a/crates/hanashi/src/chat/encoding/hanashi/config/bundled.rs b/crates/hanashi/src/chat/encoding/hanashi/config/bundled.rsnew file mode 100644index 000000000..3f011fe6c--- /dev/null+++ b/crates/hanashi/src/chat/encoding/hanashi/config/bundled.rs@@ -0,0 +1,24 @@+include!(concat!(env!("OUT_DIR"), "/bundled_configs.rs"));++pub fn get_parsing_config(name: &str) -> Option<&'static str> {+ BUNDLED_PARSING_CONFIGS.iter().find(|(key, _)| *key == name).map(|(_, json)| *json)+}++pub fn get_rendering_config(name: &str) -> Option<&'static str> {+ BUNDLED_RENDERING_CONFIGS.iter().find(|(key, _)| *key == name).map(|(_, json)| *json)+}++pub fn get_tokens_config(name: &str) -> Option<&'static str> {+ BUNDLED_TOKENS_CONFIGS.iter().find(|(key, _)| *key == name).map(|(_, json)| *json)+}++pub fn get_ordering_config(name: &str) -> Option<&'static str> {+ BUNDLED_ORDERING_CONFIGS.iter().find(|(key, _)| *key == name).map(|(_, json)| *json)+}++pub fn get_config_mapping(name: &str) -> Option<(&'static str, &'static str, &'static str, &'static str)> {+ BUNDLED_CONFIG_MAPPINGS+ .iter()+ .find(|(key, _, _, _, _)| *key == name)+ .map(|(_, parsing, rendering, tokens, ordering)| (*parsing, *rendering, *tokens, *ordering))+}diff --git a/crates/hanashi/src/chat/encoding/hanashi/config/mod.rs b/crates/hanashi/src/chat/encoding/hanashi/config/mod.rsnew file mode 100644index 000000000..9a7b003dd--- /dev/null+++ b/crates/hanashi/src/chat/encoding/hanashi/config/mod.rs@@ -0,0 +1,198 @@+mod bundled;+mod tokens;++use serde::{Deserialize, Serialize};+use token_stream_parser::token_stream::TokenStreamParserConfig;+pub use tokens::TokensConfig;++use crate::chat::{+ encoding::hanashi::{+ error::Error, messages::rendered::FieldConfig, ordering::Config as OrderingConfig, renderer::RendererConfig,+ },+ types::{Capabilities, ContentBlockType, ReasoningEffort},+};++#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]+#[serde(rename_all = "snake_case")]+pub struct ResolvedConfig {+ pub parsing: TokenStreamParserConfig,+ pub rendering: RendererConfig,+ pub tokens: TokensConfig,+ pub ordering: OrderingConfig,+}++#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]+#[serde(tag = "name", rename_all = "snake_case")]+pub enum Config {+ #[serde(rename = "gpt-oss")]+ GptOss,+ #[serde(rename = "llama-3.1")]+ Llama31,+ #[serde(rename = "llama-3.2")]+ Llama32,+ #[serde(rename = "qwen2.5")]+ Qwen25,+ #[serde(rename = "qwen2.5-coder")]+ Qwen25Coder,+ #[serde(rename = "qwen3")]+ Qwen3,+ #[serde(rename = "qwen3-instruct")]+ Qwen3Instruct,+ #[serde(rename = "qwen3-thinking")]+ Qwen3Thinking,+ #[serde(rename = "qwen3.5")]+ Qwen35,+ #[serde(rename = "lfm2")]+ Lfm2,+ #[serde(rename = "lfm2.5-instruct")]+ Lfm25Instruct,+ #[serde(rename = "lfm2.5-thinking")]+ Lfm25Thinking,+ #[serde(rename = "deepseek-r1-distill-qwen")]+ DeepseekR1DistillQwen,+ #[serde(rename = "llamba")]+ Llamba,+ #[serde(rename = "rnj-1")]+ Rnj1,+ #[serde(rename = "gemma-2")]+ Gemma2,+ #[serde(rename = "gemma-3")]+ Gemma3,+ #[serde(rename = "gemma-4")]+ Gemma4,+ #[serde(rename = "functiongemma")]+ FunctionGemma,+ #[serde(rename = "translategemma")]+ TranslateGemma,+ #[serde(rename = "smollm2")]+ SmolLm2,+ #[serde(rename = "smollm3")]+ SmolLm3,+ #[serde(rename = "codestral")]+ Codestral,+ #[serde(rename = "mistral-small-3")]+ MistralSmall3,+ #[serde(rename = "devstral-small")]+ DevstralSmall,+ #[serde(rename = "polaris")]+ Polaris,+ #[serde(rename = "bonsai")]+ Bonsai,+ #[serde(rename = "nanbeige")]+ Nanbeige,+ #[serde(rename = "custom")]+ Custom {+ #[serde(flatten)]+ config: ResolvedConfig,+ },+}++impl Config {+ pub fn capabilities(&self) -> Result<Capabilities, Error> {+ let resolved = self.clone().resolve()?;+ let rendering = &resolved.rendering;++ let supports_multiple_tool_calls = rendering+ .get_rendering_field_for_block_type(&ContentBlockType::ToolCall)+ .and_then(|field| match &field.config {+ FieldConfig::Collected {+ limit,+ ..+ } => *limit,+ _ => None,+ })+ .map_or(true, |limit| limit > 1);++ let supports_disable_reasoning = rendering+ .get_rendering_field_for_block_type(&ContentBlockType::ReasoningEffort)+ .map_or(false, |field| match &field.config {+ FieldConfig::Unique {+ mapping: Some(mapping),+ ..+ } => mapping.contains_key(ReasoningEffort::Disabled.to_string().as_str()),+ _ => false,+ });++ let tools_role_and_field = rendering.get_rendering_role_and_field_for_block_type(&ContentBlockType::Tools);+ let supports_tools = tools_role_and_field.is_some();+ let requires_tools = tools_role_and_field+ .map(|(role, field)| field.required && !resolved.ordering.is_role_avoidable(role))+ .unwrap_or(false);++ Ok(Capabilities {+ supports_reasoning: rendering.get_rendering_field_for_block_type(&ContentBlockType::Reasoning).is_some(),+ supports_disable_reasoning,+ supports_tools,+ supports_multiple_tool_calls,+ requires_tools,+ })+ }++ pub fn resolve(self) -> Result<ResolvedConfig, Error> {+ match self {+ Config::GptOss => resolve_bundled_config("gpt-oss"),+ Config::Llama31 => resolve_bundled_config("llama-3.1"),+ Config::Llama32 => resolve_bundled_config("llama-3.2"),+ Config::Qwen25 => resolve_bundled_config("qwen2.5"),+ Config::Qwen25Coder => resolve_bundled_config("qwen2.5-coder"),+ Config::Qwen3 => resolve_bundled_config("qwen3"),+ Config::Qwen3Instruct => resolve_bundled_config("qwen3-instruct"),+ Config::Qwen3Thinking => resolve_bundled_config("qwen3-thinking"),+ Config::Qwen35 => resolve_bundled_config("qwen3.5"),+ Config::Lfm2 => resolve_bundled_config("lfm2"),+ Config::Lfm25Instruct => resolve_bundled_config("lfm2.5-instruct"),+ Config::Lfm25Thinking => resolve_bundled_config("lfm2.5-thinking"),+ Config::DeepseekR1DistillQwen => resolve_bundled_config("deepseek-r1-distill-qwen"),+ Config::Llamba => resolve_bundled_config("llama-3.2"),+ Config::Rnj1 => resolve_bundled_config("rnj-1"),+ Config::Gemma2 => resolve_bundled_config("gemma-2"),+ Config::Gemma3 => resolve_bundled_config("gemma-3"),+ Config::Gemma4 => resolve_bundled_config("gemma-4"),+ Config::FunctionGemma => resolve_bundled_config("functiongemma"),+ Config::TranslateGemma => resolve_bundled_config("translategemma"),+ Config::SmolLm2 => resolve_bundled_config("smollm2"),+ Config::SmolLm3 => resolve_bundled_config("smollm3"),+ Config::Codestral => resolve_bundled_config("codestral"),+ Config::MistralSmall3 => resolve_bundled_config("mistral-small-3"),+ Config::DevstralSmall => resolve_bundled_config("devstral-small"),+ Config::Polaris => resolve_bundled_config("polaris"),+ Config::Bonsai => resolve_bundled_config("qwen3"),+ Config::Nanbeige => resolve_bundled_config("nanbeige"),+ Config::Custom {+ config,+ } => Ok(config),+ }+ }+}++fn resolve_bundled_config(name: &str) -> Result<ResolvedConfig, Error> {+ let (parsing_name, rendering_name, tokens_name, ordering_name) =+ bundled::get_config_mapping(name).ok_or_else(|| Error::ConfigNotFound(name.to_string()))?;++ let parsing_json =+ bundled::get_parsing_config(parsing_name).ok_or_else(|| Error::ConfigNotFound(parsing_name.to_string()))?;+ let parsing_config =+ serde_json::from_str(parsing_json).map_err(|_| Error::InvalidConfig(parsing_name.to_string()))?;++ let rendering_json = bundled::get_rendering_config(rendering_name)+ .ok_or_else(|| Error::ConfigNotFound(rendering_name.to_string()))?;+ let rendering_config =+ serde_json::from_str(rendering_json).map_err(|_| Error::InvalidConfig(rendering_name.to_string()))?;++ let tokens_json =+ bundled::get_tokens_config(tokens_name).ok_or_else(|| Error::ConfigNotFound(tokens_name.to_string()))?;+ let tokens_config = serde_json::from_str(tokens_json).map_err(|_| Error::InvalidConfig(tokens_name.to_string()))?;++ let ordering_json =+ bundled::get_ordering_config(ordering_name).ok_or_else(|| Error::ConfigNotFound(ordering_name.to_string()))?;+ let ordering_config =+ serde_json::from_str(ordering_json).map_err(|_| Error::InvalidConfig(ordering_name.to_string()))?;++ let config = ResolvedConfig {+ parsing: parsing_config,+ rendering: rendering_config,+ tokens: tokens_config,+ ordering: ordering_config,+ };+ Ok(config)+}diff --git a/crates/hanashi/src/chat/encoding/hanashi/config/tokens.rs b/crates/hanashi/src/chat/encoding/hanashi/config/tokens.rsnew file mode 100644index 000000000..31cf81efd--- /dev/null+++ b/crates/hanashi/src/chat/encoding/hanashi/config/tokens.rs@@ -0,0 +1,11 @@+use serde::{Deserialize, Serialize};++use crate::chat::types::TokenId;++#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]+pub struct TokensConfig {+ pub bos_token_id: Option<TokenId>,+ pub eos_token_id: Option<TokenId>,+ pub stop_token_ids: Vec<TokenId>,+ pub banned_token_ids: Vec<TokenId>,+}diff --git a/crates/hanashi/src/chat/encoding/hanashi/error.rs b/crates/hanashi/src/chat/encoding/hanashi/error.rsnew file mode 100644index 000000000..8544ce49b--- /dev/null+++ b/crates/hanashi/src/chat/encoding/hanashi/error.rs@@ -0,0 +1,32 @@+use token_stream_parser::token_stream::TokenStreamParserError;++use crate::chat::encoding::{+ SynchronizationError,+ hanashi::{messages::Error as MessageError, ordering::Error as OrderingError, renderer::Error as RendererError},+};+#[derive(Debug, thiserror::Error)]+#[non_exhaustive]+pub enum Error {+ #[error("Config '{0}' not found")]+ ConfigNotFound(String),+ #[error("Config '{0}' is invalid")]+ InvalidConfig(String),+ #[error("Unable to load tokenizer")]+ UnableToLoadTokenizer,+ #[error("Unable to encode text")]+ UnableToEncodeText,+ #[error("Unable to decode token")]+ UnableToDecodeToken,+ #[error(transparent)]+ Synchronization(#[from] SynchronizationError),+ #[error("Failed to parse streamed content")]+ InvalidStreamedContent,+ #[error(transparent)]+ Parsing(#[from] TokenStreamParserError),+ #[error(transparent)]+ Rendering(#[from] RendererError),+ #[error(transparent)]+ Ordering(#[from] OrderingError),+ #[error(transparent)]+ Message(#[from] MessageError),+}diff --git a/crates/hanashi/src/chat/encoding/hanashi/messages/canonical/config.rs b/crates/hanashi/src/chat/encoding/hanashi/messages/canonical/config.rsnew file mode 100644index 000000000..a7ab7b710--- /dev/null+++ b/crates/hanashi/src/chat/encoding/hanashi/messages/canonical/config.rs@@ -0,0 +1,15 @@+use indexmap::IndexMap;+use serde::{Deserialize, Serialize};++#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]+pub struct Config {+ #[serde(default, skip_serializing_if = "IndexMap::is_empty")]+ pub type_names: IndexMap<String, String>,+ pub role_key: String,+ pub type_key: String,+ pub text_key: String,+ #[serde(default, skip_serializing_if = "Option::is_none")]+ pub url_key: Option<String>,+ #[serde(default, skip_serializing_if = "IndexMap::is_empty")]+ pub custom_keys: IndexMap<String, String>,+}diff --git a/crates/hanashi/src/chat/encoding/hanashi/messages/canonical/content_block.rs b/crates/hanashi/src/chat/encoding/hanashi/messages/canonical/content_block.rsnew file mode 100644index 000000000..101f6ed37--- /dev/null+++ b/crates/hanashi/src/chat/encoding/hanashi/messages/canonical/content_block.rs@@ -0,0 +1,8 @@+use serde_json::Value;++use crate::chat::types::ContentBlockType;++pub struct ContentBlock {+ pub r#type: ContentBlockType,+ pub value: Value,+}diff --git a/crates/hanashi/src/chat/encoding/hanashi/messages/canonical/message.rs b/crates/hanashi/src/chat/encoding/hanashi/messages/canonical/message.rsnew file mode 100644index 000000000..1f38079f2--- /dev/null+++ b/crates/hanashi/src/chat/encoding/hanashi/messages/canonical/message.rs@@ -0,0 +1,182 @@+use std::collections::HashMap;++use indexmap::IndexMap;+use serde_json::Value;++use crate::chat::{+ encoding::hanashi::messages::{+ Error,+ canonical::{Config, ContentBlock},+ },+ types::{+ ContentBlock as OriginalContentBlock, ContentBlockType, Message as OriginalMessage, Role, TranslationInput,+ },+};++pub struct Message {+ pub role: Role,+ pub content: Vec<ContentBlock>,+ pub metadata: HashMap<String, Value>,+}++impl Message {+ pub fn from_message(+ message: &OriginalMessage,+ config: &Config,+ raw_types: &[ContentBlockType],+ ) -> Result<Self, Error> {+ let mut content = Vec::new();+ for block in &message.content {+ let block_type = block.get_type();+ let raw = raw_types.contains(&block_type);+ let canonical_block = ContentBlock {+ r#type: block_type,+ value: Self::canonicalize_block(block, config, raw)?,+ };+ content.push(canonical_block);+ }++ Ok(Self {+ role: message.role.clone(),+ content,+ metadata: message+ .metadata+ .iter()+ .map(|(key, value)| {+ let json_value: Value =+ value.clone().try_into().map_err(|error: serde_json::Error| Error::SerializationFailed {+ reason: error.to_string(),+ })?;+ Ok((key.clone(), json_value))+ })+ .collect::<Result<_, Error>>()?,+ })+ }++ fn canonicalize_block(+ block: &OriginalContentBlock,+ config: &Config,+ raw: bool,+ ) -> Result<Value, Error> {+ let type_name =+ config.type_names.get(&block.get_type().to_string()).cloned().unwrap_or(block.get_type().to_string());++ let value = match block {+ OriginalContentBlock::Identity {+ value,+ } => serde_json::to_value(value.clone()),+ OriginalContentBlock::ReasoningEffort {+ value,+ } => serde_json::to_value(value.to_string()),+ OriginalContentBlock::ConversationStartDate {+ value,+ } => serde_json::to_value(value.clone()),+ OriginalContentBlock::KnowledgeCutoff {+ value,+ } => serde_json::to_value(value.clone()),+ OriginalContentBlock::BuiltinTools {+ names,+ } => serde_json::to_value(names),+ OriginalContentBlock::Tools {+ namespaces,+ } => {+ let tools = namespaces.iter().flat_map(|namespace| namespace.tools.clone()).collect::<Vec<_>>();+ serde_json::to_value(tools)+ },+ OriginalContentBlock::Text {+ value,+ } => {+ if raw {+ serde_json::to_value(value.clone())+ } else {+ serde_json::to_value(IndexMap::from([+ (config.type_key.clone(), type_name),+ (config.text_key.clone(), value.clone()),+ ]))+ }+ },+ OriginalContentBlock::Image {+ url,+ }+ | OriginalContentBlock::Video {+ url,+ }+ | OriginalContentBlock::Audio {+ url,+ }+ | OriginalContentBlock::File {+ url,+ } => {+ if raw {+ serde_json::to_value(url.clone())+ } else {+ let url_key = config.url_key.as_ref().ok_or_else(|| Error::SerializationFailed {+ reason: "`url_key` is required for media blocks".to_string(),+ })?;+ serde_json::to_value(IndexMap::from([+ (config.type_key.clone(), type_name),+ (url_key.clone(), url.clone()),+ ]))+ }+ },+ OriginalContentBlock::Reasoning {+ value,+ } => serde_json::to_value(value.clone()),+ OriginalContentBlock::ToolCall {+ value,+ } => serde_json::to_value(value.clone()),+ OriginalContentBlock::ToolCallCandidate {+ value,+ } => serde_json::to_value(value.clone()),+ OriginalContentBlock::ToolCallResult {+ name: _,+ value,+ } => serde_json::to_value(value.clone()),+ OriginalContentBlock::Translation {+ input,+ source_language_code,+ target_language_code,+ } => {+ let source_key = config+ .custom_keys+ .get("source_language_code")+ .cloned()+ .unwrap_or_else(|| "source_language_code".to_string());+ let target_key = config+ .custom_keys+ .get("target_language_code")+ .cloned()+ .unwrap_or_else(|| "target_language_code".to_string());+ let mut map = IndexMap::new();+ match input {+ TranslationInput::Text {+ text,+ } => {+ map.insert(config.type_key.clone(), Value::String(config.text_key.clone()));+ map.insert(config.text_key.clone(), Value::String(text.clone()));+ },+ TranslationInput::Image {+ url,+ } => {+ let url_key = config.url_key.as_ref().ok_or_else(|| Error::SerializationFailed {+ reason: "`url_key` is required for image translation".to_string(),+ })?;+ map.insert(config.type_key.clone(), Value::String("image".to_string()));+ map.insert(url_key.clone(), Value::String(url.clone()));+ },+ }+ map.insert(source_key, Value::String(source_language_code.clone()));+ map.insert(target_key, Value::String(target_language_code.clone()));+ serde_json::to_value(map)+ },+ OriginalContentBlock::Custom {+ value,+ } => serde_json::to_value(value.clone()),+ }+ .map_err(|error| Error::SerializationFailed {+ reason: error.to_string(),+ })?;++ Ok(value)+ }+}diff --git a/crates/hanashi/src/chat/encoding/hanashi/messages/canonical/mod.rs b/crates/hanashi/src/chat/encoding/hanashi/messages/canonical/mod.rsnew file mode 100644index 000000000..72eac5b95--- /dev/null+++ b/crates/hanashi/src/chat/encoding/hanashi/messages/canonical/mod.rs@@ -0,0 +1,7 @@+mod config;+mod content_block;+mod message;++pub use config::Config;+pub use content_block::ContentBlock;+pub use message::Message;diff --git a/crates/hanashi/src/chat/encoding/hanashi/messages/error.rs b/crates/hanashi/src/chat/encoding/hanashi/messages/error.rsnew file mode 100644index 000000000..d6d74e992--- /dev/null+++ b/crates/hanashi/src/chat/encoding/hanashi/messages/error.rs@@ -0,0 +1,52 @@+use crate::chat::types::{ContentBlockType, Role};++#[derive(Debug, thiserror::Error)]+#[non_exhaustive]+pub enum Error {+ #[error("Role '{role}' is not supported")]+ UnsupportedRole {+ role: Role,+ },+ #[error("Serialization failed: {reason}")]+ SerializationFailed {+ reason: String,+ },+ #[error("Content block '{block_type}' is not supported for role '{role}'")]+ UnsupportedBlock {+ role: Role,+ block_type: ContentBlockType,+ },+ #[error("Multiple '{block_type}' blocks are not allowed for role '{role}'")]+ MultipleNotAllowed {+ role: Role,+ block_type: ContentBlockType,+ },+ #[error("Value of '{block_type}' is not allowed for role '{role}'")]+ ValueNotAllowed {+ role: Role,+ block_type: ContentBlockType,+ allowed_values: String,+ },+ #[error("Cannot map '{value}' for '{block_type}' on role '{role}'")]+ UnmappedValue {+ role: Role,+ block_type: ContentBlockType,+ value: String,+ },+ #[error("Field '{field}' is required for role '{role}' but was not provided")]+ FieldRequired {+ role: Role,+ field: String,+ },+ #[error("Block type '{block_type}' is assigned to multiple fields for role '{role}'")]+ DuplicateBlock {+ role: Role,+ block_type: ContentBlockType,+ },+ #[error("Limit of {limit} exceeded for '{block_type}' on role '{role}'")]+ LimitExceeded {+ role: Role,+ block_type: ContentBlockType,+ limit: usize,+ },+}diff --git a/crates/hanashi/src/chat/encoding/hanashi/messages/mod.rs b/crates/hanashi/src/chat/encoding/hanashi/messages/mod.rsnew file mode 100644index 000000000..3833e1e01--- /dev/null+++ b/crates/hanashi/src/chat/encoding/hanashi/messages/mod.rs@@ -0,0 +1,6 @@+pub mod canonical;+mod error;+pub mod rendered;+pub mod streamed;++pub use error::Error;diff --git a/crates/hanashi/src/chat/encoding/hanashi/messages/rendered/config.rs b/crates/hanashi/src/chat/encoding/hanashi/messages/rendered/config.rsnew file mode 100644index 000000000..546a8609f--- /dev/null+++ b/crates/hanashi/src/chat/encoding/hanashi/messages/rendered/config.rs@@ -0,0 +1,41 @@+use indexmap::IndexMap;+use serde::{Deserialize, Serialize};+use serde_json::Value;++use crate::chat::types::ContentBlockType;++#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]+pub struct Field {+ #[serde(default)]+ pub required: bool,+ #[serde(default)]+ pub disable_raw: bool,+ #[serde(flatten)]+ pub config: FieldConfig,+}++#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]+#[serde(untagged)]+pub enum FieldConfig {+ Unique {+ block: ContentBlockType,+ #[serde(default, skip_serializing_if = "Option::is_none")]+ mapping: Option<IndexMap<String, Option<Value>>>,+ #[serde(default, skip_serializing_if = "Option::is_none")]+ allowed_values: Option<Vec<Value>>,+ },+ Collected {+ blocks: Vec<ContentBlockType>,+ #[serde(default, skip_serializing_if = "Option::is_none")]+ limit: Option<usize>,+ },+}++#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]+pub struct Config {+ pub role: String,+ #[serde(default, skip_serializing_if = "IndexMap::is_empty")]+ pub message: IndexMap<String, Field>,+ #[serde(default, skip_serializing_if = "IndexMap::is_empty")]+ pub context: IndexMap<String, Field>,+}diff --git a/crates/hanashi/src/chat/encoding/hanashi/messages/rendered/message.rs b/crates/hanashi/src/chat/encoding/hanashi/messages/rendered/message.rsnew file mode 100644index 000000000..5b0c44f2b--- /dev/null+++ b/crates/hanashi/src/chat/encoding/hanashi/messages/rendered/message.rs@@ -0,0 +1,240 @@+use std::collections::HashMap;++use indexmap::IndexMap;+use serde_json::{Map, Value};++use crate::chat::{+ encoding::hanashi::messages::{+ Error,+ canonical::{Config as CanonicalConfig, Message as CanonicalMessage},+ rendered::{Config, Field, FieldConfig},+ },+ types::{ContentBlockType, Message as OriginalMessage, Role},+};++pub struct Message {+ pub message: Map<String, Value>,+ pub context: Map<String, Value>,+ pub metadata: HashMap<String, Value>,+}++impl Message {+ pub fn from_message(+ original_message: &OriginalMessage,+ canonical_config: &CanonicalConfig,+ rendered_configs: &IndexMap<Role, Config>,+ ) -> Result<Self, Error> {+ let role = &original_message.role;++ let config = rendered_configs.get(role).ok_or_else(|| Error::UnsupportedRole {+ role: role.clone(),+ })?;++ // Validate no duplicate block types across fields+ let mut seen_block_types: IndexMap<ContentBlockType, String> = IndexMap::new();+ for (field_name, field) in config.message.iter().chain(config.context.iter()) {+ let block_types = match &field.config {+ FieldConfig::Unique {+ block,+ ..+ } => vec![block.clone()],+ FieldConfig::Collected {+ blocks,+ ..+ } => blocks.clone(),+ };+ for block_type in block_types {+ if let Some(existing_field) = seen_block_types.get(&block_type) {+ if existing_field != field_name {+ return Err(Error::DuplicateBlock {+ role: role.clone(),+ block_type,+ });+ }+ }+ seen_block_types.insert(block_type, field_name.clone());+ }+ }++ // Determine which block types should get raw canonical serialization+ let mut raw_types: Vec<ContentBlockType> = Vec::new();+ for (_, field) in config.message.iter().chain(config.context.iter()) {+ if field.disable_raw {+ continue;+ }+ match &field.config {+ FieldConfig::Unique {+ block,+ ..+ } => {+ raw_types.push(block.clone());+ },+ FieldConfig::Collected {+ blocks,+ ..+ } => {+ let matching_count =+ original_message.content.iter().filter(|block| blocks.contains(&block.get_type())).count();+ if matching_count == 1 {+ for block in &original_message.content {+ if blocks.contains(&block.get_type()) {+ raw_types.push(block.get_type());+ }+ }+ }+ },+ }+ }++ // Canonicalize+ let canonical_message = CanonicalMessage::from_message(original_message, canonical_config, &raw_types)?;++ let mut message: Map<String, Value> = Map::new();+ let mut context: Map<String, Value> = Map::new();+ let mut seen_fields: IndexMap<String, usize> = IndexMap::new();++ let destinations: &mut [(&IndexMap<String, Field>, &mut Map<String, Value>)] =+ &mut [(&config.message, &mut message), (&config.context, &mut context)];++ for canonical_block in &canonical_message.content {+ let block_type = &canonical_block.r#type;+ let value = &canonical_block.value;++ let mut matched = false;+ for (fields, destination) in destinations.iter_mut() {+ if let Some((field_name, field)) = find_field_for_block(fields, block_type) {+ *seen_fields.entry(field_name.clone()).or_insert(0) += 1;+ let raw = raw_types.contains(block_type);+ apply_field_value(destination, &field_name, &field.config, value, raw, role, block_type)?;+ matched = true;+ break;+ }+ }++ if !matched {+ return Err(Error::UnsupportedBlock {+ role: role.clone(),+ block_type: block_type.clone(),+ });+ }+ }++ // Check required fields+ for (field_name, field) in config.message.iter().chain(config.context.iter()) {+ if field.required && !seen_fields.contains_key(field_name) {+ return Err(Error::FieldRequired {+ role: role.clone(),+ field: field_name.clone(),+ });+ }+ }++ // Insert role+ if !message.is_empty() {+ message.insert(canonical_config.role_key.clone(), Value::String(config.role.clone()));+ }++ Ok(Self {+ message,+ context,+ metadata: canonical_message.metadata.clone(),+ })+ }+}++fn find_field_for_block<'a>(+ fields: &'a IndexMap<String, Field>,+ block_type: &ContentBlockType,+) -> Option<(String, &'a Field)> {+ fields.iter().find_map(|(name, field)| {+ let matches = match &field.config {+ FieldConfig::Unique {+ block,+ ..+ } => block == block_type,+ FieldConfig::Collected {+ blocks,+ ..+ } => blocks.contains(block_type),+ };+ if matches {+ Some((name.clone(), field))+ } else {+ None+ }+ })+}++fn apply_field_value(+ destination: &mut Map<String, Value>,+ field_name: &str,+ config: &FieldConfig,+ value: &Value,+ raw: bool,+ role: &Role,+ block_type: &ContentBlockType,+) -> Result<(), Error> {+ match config {+ FieldConfig::Unique {+ allowed_values,+ mapping,+ ..+ } => {+ if destination.contains_key(field_name) {+ return Err(Error::MultipleNotAllowed {+ role: role.clone(),+ block_type: block_type.clone(),+ });+ }++ if let Some(allowed) = allowed_values {+ if !allowed.contains(value) {+ return Err(Error::ValueNotAllowed {+ role: role.clone(),+ block_type: block_type.clone(),+ allowed_values: format!("{:?}", allowed),+ });+ }+ }++ if let Some(mapping) = mapping {+ let lookup_key = value.as_str().ok_or_else(|| Error::SerializationFailed {+ reason: format!("Expected string for mapping lookup, got {value}"),+ })?;+ let mapped_value = mapping.get(lookup_key).ok_or_else(|| Error::UnmappedValue {+ role: role.clone(),+ block_type: block_type.clone(),+ value: lookup_key.to_string(),+ })?;+ if let Some(mapped_value) = mapped_value {+ destination.insert(field_name.to_string(), mapped_value.clone());+ }+ } else {+ destination.insert(field_name.to_string(), value.clone());+ }+ },+ FieldConfig::Collected {+ limit,+ ..+ } => {+ if raw {+ destination.insert(field_name.to_string(), value.clone());+ } else {+ let entry = destination.entry(field_name.to_string()).or_insert_with(|| Value::Array(vec![]));+ if let Value::Array(array) = entry {+ if let Some(limit) = limit {+ if array.len() >= *limit {+ return Err(Error::LimitExceeded {+ role: role.clone(),+ block_type: block_type.clone(),+ limit: *limit,+ });+ }+ }+ array.push(value.clone());+ }+ }+ },+ }+ Ok(())+}diff --git a/crates/hanashi/src/chat/encoding/hanashi/messages/rendered/mod.rs b/crates/hanashi/src/chat/encoding/hanashi/messages/rendered/mod.rsnew file mode 100644index 000000000..2b0aba3b5--- /dev/null+++ b/crates/hanashi/src/chat/encoding/hanashi/messages/rendered/mod.rs@@ -0,0 +1,5 @@+mod config;+mod message;++pub use config::{Config, Field, FieldConfig};+pub use message::Message;diff --git a/crates/hanashi/src/chat/encoding/hanashi/messages/streamed/content.rs b/crates/hanashi/src/chat/encoding/hanashi/messages/streamed/content.rsnew file mode 100644index 000000000..0b7b5fb8a--- /dev/null+++ b/crates/hanashi/src/chat/encoding/hanashi/messages/streamed/content.rs@@ -0,0 +1,90 @@+use serde::{Deserialize, Serialize};+use serde_json::Value;++use crate::chat::{+ encoding::hanashi::messages::streamed::Section,+ types::{ContentBlock, Role, ToolCall},+};++#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]+#[serde(untagged)]+pub enum Content {+ Text(String),+ Sections(Vec<Section>),+ Value(Value),+}++impl Content {+ pub fn blocks(+ self,+ role: &Role,+ ) -> Vec<ContentBlock> {+ match self {+ Content::Text(text) => vec![ContentBlock::Text {+ value: text,+ }],+ Content::Value(value) => match role {+ Role::Tool {} => vec![ContentBlock::ToolCallResult {+ name: None,+ value: value.into(),+ }],+ _ => vec![ContentBlock::Custom {+ value: value.into(),+ }],+ },+ Content::Sections(sections) => {+ let mut reasoning_parts: Vec<String> = Vec::new();+ let mut text_parts: Vec<String> = Vec::new();+ let mut tool_calls: Vec<ContentBlock> = Vec::new();++ for section in sections {+ match section {+ Section::Text {+ value: Some(text),+ } => text_parts.push(text),+ Section::Reasoning {+ value: Some(text),+ } => reasoning_parts.push(text),+ Section::ToolCall {+ value: Some(value),+ } => {+ let block = match serde_json::from_value::<ToolCall>(value.clone()) {+ Ok(tool_call) => ContentBlock::ToolCall {+ value: tool_call,+ },+ Err(_) => ContentBlock::ToolCallCandidate {+ value: value.into(),+ },+ };+ tool_calls.push(block);+ },+ Section::ToolCall {+ value: None,+ } => {+ tool_calls.push(ContentBlock::ToolCallCandidate {+ value: Value::Null.into(),+ });+ },+ _ => {},+ }+ }++ let reasoning = reasoning_parts.concat().trim().to_string();+ let text = text_parts.concat().trim().to_string();+ let mut blocks = Vec::new();+ if !reasoning.is_empty() {+ blocks.push(ContentBlock::Reasoning {+ value: reasoning,+ });+ }+ if !text.is_empty() {+ blocks.push(ContentBlock::Text {+ value: text,+ });+ }+ blocks.extend(tool_calls);+ blocks+ },+ }+ }+}diff --git a/crates/hanashi/src/chat/encoding/hanashi/messages/streamed/mod.rs b/crates/hanashi/src/chat/encoding/hanashi/messages/streamed/mod.rsnew file mode 100644index 000000000..670525177--- /dev/null+++ b/crates/hanashi/src/chat/encoding/hanashi/messages/streamed/mod.rs@@ -0,0 +1,35 @@+mod content;+mod section;++use std::{collections::HashMap, str::FromStr};++pub use content::Content;+pub use section::Section;+use serde::{Deserialize, Deserializer};++use crate::chat::types::{Message as CommonMessage, Role};++#[derive(Deserialize)]+pub struct Message {+ #[serde(deserialize_with = "deserialize_trimmed_role")]+ pub role: Role,+ pub content: Option<Content>,+}++fn deserialize_trimmed_role<'de, D: Deserializer<'de>>(deserializer: D) -> Result<Role, D::Error> {+ let name = String::deserialize(deserializer)?;+ Role::from_str(name.trim()).map_err(serde::de::Error::custom)+}++impl From<Message> for CommonMessage {+ fn from(message: Message) -> Self {+ CommonMessage {+ content: match message.content {+ Some(content) => content.blocks(&message.role),+ None => Vec::new(),+ },+ role: message.role,+ metadata: HashMap::new(),+ }+ }+}diff --git a/crates/hanashi/src/chat/encoding/hanashi/messages/streamed/section.rs b/crates/hanashi/src/chat/encoding/hanashi/messages/streamed/section.rsnew file mode 100644index 000000000..83945009b--- /dev/null+++ b/crates/hanashi/src/chat/encoding/hanashi/messages/streamed/section.rs@@ -0,0 +1,20 @@+use serde::{Deserialize, Serialize};+use serde_json::Value;++#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]+#[serde(tag = "type", rename_all = "snake_case")]+pub enum Section {+ #[serde(rename = "$text")]+ Text {+ value: Option<String>,+ },+ Reasoning {+ value: Option<String>,+ },+ ToolCall {+ value: Option<Value>,+ },+ ToolCallResult {+ value: Option<Value>,+ },+}diff --git a/crates/hanashi/src/chat/encoding/hanashi/mod.rs b/crates/hanashi/src/chat/encoding/hanashi/mod.rsnew file mode 100644index 000000000..1c6ea99db--- /dev/null+++ b/crates/hanashi/src/chat/encoding/hanashi/mod.rs@@ -0,0 +1,237 @@+pub mod config;+mod error;+pub mod messages;+mod ordering;+pub mod renderer;++use std::path::PathBuf;++pub use config::Config;+pub use error::Error;+use token_stream_parser::{Parser as _, token_stream::TokenStreamParser, types::Token as ParserToken};+use tokenizers::{Tokenizer, step_decode_stream};++use self::{config::ResolvedConfig, messages::streamed::Message as StreamedMessage, ordering::Validator};+use crate::{+ Encoding as EncodingTrait,+ chat::{+ encoding::{+ Context, State, SynchronizationError, SynchronizationResult, TokenizerLocation,+ hanashi::{messages::rendered::FieldConfig, renderer::Renderer},+ },+ types::{ContentBlock, Message, Token, TokenId},+ },+};++const DEFAULT_TOKENIZER_FILENAME: &str = "tokenizer.json";++pub struct Encoding {+ config: ResolvedConfig,+ tokenizer: Tokenizer,+ parser: TokenStreamParser,+ renderer: Renderer,+ validator: Validator,++ state: State,+ tokenizer_decode_ids: Vec<u32>,+ tokenizer_decode_prefix: String,+ tokenizer_decode_prefix_index: usize,+}++impl EncodingTrait for Encoding {+ type Config = Config;+ type Context = Context;+ type Input = Vec<Message>;+ type Output = Vec<TokenId>;+ type State = State;+ type Error = Error;++ fn new(+ config: Self::Config,+ context: Self::Context,+ ) -> Result<Self, Self::Error> {+ let config = config.resolve()?;+ let tokenizer_path = match &context.tokenizer_location {+ TokenizerLocation::File {+ path,+ } => PathBuf::from(path),+ TokenizerLocation::Directory {+ path,+ name,+ } => match name {+ Some(name) => PathBuf::from(path).join(name),+ None => PathBuf::from(path).join(DEFAULT_TOKENIZER_FILENAME),+ },+ };+ let tokenizer = Tokenizer::from_file(&tokenizer_path).map_err(|_| Error::UnableToLoadTokenizer)?;+ let parser = TokenStreamParser::new(config.parsing.clone())?;+ let renderer = Renderer::new(config.rendering.clone());+ let validator = Validator::new(config.ordering.clone());+ Ok(Self {+ config,+ tokenizer,+ parser,+ renderer,+ validator,+ state: State::default(),+ tokenizer_decode_ids: vec![],+ tokenizer_decode_prefix: "".to_string(),+ tokenizer_decode_prefix_index: 0,+ })+ }++ fn state(&self) -> &Self::State {+ &self.state+ }++ fn reset(&mut self) -> Result<(), Self::Error> {+ self.parser.reset();+ self.validator.reset();+ self.state = State::default();+ self.tokenizer_decode_ids = vec![];+ self.tokenizer_decode_prefix = "".to_string();+ self.tokenizer_decode_prefix_index = 0;+ Ok(())+ }++ fn encode(+ &mut self,+ messages: Self::Input,+ ) -> Result<(), Self::Error> {+ let messages = self.fill_default_content(&messages)?;+ for message in &messages {+ self.validator.validate_next(&message.role)?;+ }+ self.state.messages.extend(messages.clone());++ let bos_token = self.config.tokens.bos_token_id.and_then(|token_id| self.resolve_token(token_id, false).ok());+ let eos_token = self.config.tokens.eos_token_id.and_then(|token_id| self.resolve_token(token_id, false).ok());+ let text = self.renderer.render(&messages, true, bos_token, eos_token, None)?;+ let text_encoding = self.tokenizer.encode(text, false).map_err(|_| Error::UnableToEncodeText)?;+ for token_id in text_encoding.get_ids() {+ let token = self.resolve_token(*token_id, true)?;+ self.parser.push(&ParserToken::from(token.clone()))?;+ self.state.tokens.push(token);+ }++ self.update_messages_from_parser_state()?;+ Ok(())+ }++ fn decode(+ &mut self,+ token_ids: Self::Output,+ ) -> Result<(), Self::Error> {+ for token_id in &token_ids {+ let token = self.resolve_token(*token_id, true)?;+ self.parser.push(&ParserToken::from(token.clone()))?;+ self.state.tokens.push(token);+ }++ self.update_messages_from_parser_state()?;+ Ok(())+ }+}++impl Encoding {+ fn fill_default_content(+ &self,+ messages: &[Message],+ ) -> Result<Vec<Message>, Error> {+ let mut modified_messages = Vec::new();+ for message in messages {+ let mut modified_message = message.clone();+ if let Some(role_config) = self.config.rendering.rendering.get(&modified_message.role) {+ for (_, field) in role_config.message.iter().chain(role_config.context.iter()) {+ if !field.required {+ continue;+ }++ match &field.config {+ FieldConfig::Unique {+ block,+ allowed_values: Some(allowed_values),+ ..+ } => {+ if !allowed_values.len() == 1 {+ continue;+ }+ if let Some(expected_value) =+ allowed_values.first().cloned().and_then(|value| value.as_str().map(|s| s.to_string()))+ {+ if !modified_message+ .content+ .iter()+ .any(|message_block| message_block.get_type() == *block)+ {+ modified_message.content.insert(+ 0,+ ContentBlock::Text {+ value: expected_value,+ },+ );+ }+ }+ },+ _ => {},+ }+ }+ }+ modified_messages.push(modified_message);+ }+ Ok(modified_messages)+ }++ fn update_messages_from_parser_state(&mut self) -> Result<(), Error> {+ let value = self.parser.state().value.clone();+ let rendering_config = &self.config.rendering;+ let streamed_messages: Vec<Message> = serde_json::from_value::<Vec<StreamedMessage>>(value)+ .map_err(|_| Error::InvalidStreamedContent)?+ .into_iter()+ .map(|streamed_message| {+ let role = rendering_config.get_role_by_name(&streamed_message.role.to_string());+ let mut message = Message::from(streamed_message);+ message.role = role;+ message+ })+ .collect();++ let result = self.state.synchronize_messages(&streamed_messages)?;+ match result {+ SynchronizationResult::Inserted => {+ let last_message = self.state.messages.last().ok_or(SynchronizationError::Desynchronization)?;+ self.validator.validate_next(&last_message.role)?;+ },+ _ => {},+ }++ Ok(())+ }++ fn resolve_token(+ &mut self,+ token_id: TokenId,+ from_stream: bool,+ ) -> Result<Token, Error> {+ let value = if from_stream {+ step_decode_stream(+ &self.tokenizer,+ vec![token_id],+ false,+ &mut self.tokenizer_decode_ids,+ &mut self.tokenizer_decode_prefix,+ &mut self.tokenizer_decode_prefix_index,+ )+ .map_err(|_| Error::UnableToDecodeToken)?+ .unwrap_or("".to_string())+ } else {+ self.tokenizer.decode(&[token_id], false).map_err(|_| Error::UnableToDecodeToken)?+ };+ let is_special = self.tokenizer.get_added_vocabulary().is_special_token(&value);+ Ok(Token {+ id: token_id,+ value,+ is_special,+ })+ }+}diff --git a/crates/hanashi/src/chat/encoding/hanashi/ordering/config.rs b/crates/hanashi/src/chat/encoding/hanashi/ordering/config.rsnew file mode 100644index 000000000..e6d58a0c1--- /dev/null+++ b/crates/hanashi/src/chat/encoding/hanashi/ordering/config.rs@@ -0,0 +1,24 @@+use indexmap::IndexMap;+use serde::{Deserialize, Serialize};++use crate::chat::types::Role;++#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]+pub struct Config {+ pub initial: Vec<Role>,+ pub transitions: IndexMap<Role, Vec<Role>>,+}++impl Config {+ pub fn is_role_avoidable(+ &self,+ role: &Role,+ ) -> bool {+ let other_initials = self.initial.iter().any(|initial| initial != role);+ let all_transitions_have_alternatives = self+ .transitions+ .values()+ .all(|targets| !targets.contains(role) || targets.iter().any(|target| target != role));+ other_initials && all_transitions_have_alternatives+ }+}diff --git a/crates/hanashi/src/chat/encoding/hanashi/ordering/error.rs b/crates/hanashi/src/chat/encoding/hanashi/ordering/error.rsnew file mode 100644index 000000000..e8280b9c3--- /dev/null+++ b/crates/hanashi/src/chat/encoding/hanashi/ordering/error.rs@@ -0,0 +1,22 @@+use crate::chat::types::Role;++#[derive(Debug, thiserror::Error)]+pub enum Error {+ #[error("Expected one of [{expected}] after '{after}', got '{got}'")]+ InvalidTransition {+ after: String,+ expected: String,+ got: Role,+ },++ #[error("Expected one of [{expected}] at start, got '{got}'")]+ InvalidInitial {+ expected: String,+ got: Role,+ },++ #[error("No transitions defined for role '{role}'")]+ NoTransitions {+ role: Role,+ },+}diff --git a/crates/hanashi/src/chat/encoding/hanashi/ordering/mod.rs b/crates/hanashi/src/chat/encoding/hanashi/ordering/mod.rsnew file mode 100644index 000000000..673e93a6c--- /dev/null+++ b/crates/hanashi/src/chat/encoding/hanashi/ordering/mod.rs@@ -0,0 +1,7 @@+mod config;+mod error;+mod validator;++pub use config::Config;+pub use error::Error;+pub use validator::Validator;diff --git a/crates/hanashi/src/chat/encoding/hanashi/ordering/validator.rs b/crates/hanashi/src/chat/encoding/hanashi/ordering/validator.rsnew file mode 100644index 000000000..993ae8505--- /dev/null+++ b/crates/hanashi/src/chat/encoding/hanashi/ordering/validator.rs@@ -0,0 +1,60 @@+use crate::chat::{+ encoding::hanashi::ordering::{Config, Error},+ types::Role,+};++pub struct Validator {+ current: Option<Role>,+ config: Config,+}++impl Validator {+ pub fn new(config: Config) -> Self {+ Self {+ current: None,+ config,+ }+ }++ pub fn reset(&mut self) {+ self.current = None;+ }++ pub fn validate_next(+ &mut self,+ role: &Role,+ ) -> Result<(), Error> {+ if matches!(role, Role::Custom { .. }) {+ return Ok(());+ }++ match &self.current {+ None => {+ if !self.config.initial.contains(role) {+ return Err(Error::InvalidInitial {+ expected: format_roles(&self.config.initial),+ got: role.clone(),+ });+ }+ },+ Some(current) => {+ let allowed = self.config.transitions.get(current).ok_or_else(|| Error::NoTransitions {+ role: current.clone(),+ })?;+ if !allowed.contains(role) {+ return Err(Error::InvalidTransition {+ after: current.to_string(),+ expected: format_roles(allowed),+ got: role.clone(),+ });+ }+ },+ }+ self.current = Some(role.clone());+ Ok(())+ }+}++fn format_roles(roles: &[Role]) -> String {+ roles.iter().map(|role| role.to_string()).collect::<Vec<_>>().join(", ")+}diff --git a/crates/hanashi/src/chat/encoding/hanashi/renderer/config/jinja.rs b/crates/hanashi/src/chat/encoding/hanashi/renderer/config/jinja.rsnew file mode 100644index 000000000..9157e5356--- /dev/null+++ b/crates/hanashi/src/chat/encoding/hanashi/renderer/config/jinja.rs@@ -0,0 +1,15 @@+use serde::{Deserialize, Serialize};++use crate::chat::encoding::hanashi::renderer::config::JinjaFunction;++#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]+pub struct JinjaConfig {+ pub template: String,+ #[serde(skip_serializing_if = "Vec::is_empty")]+ pub required_functions: Vec<JinjaFunction>,+ pub preamble_control_key: String,+ #[serde(skip_serializing_if = "Option::is_none")]+ pub bos_token_key: Option<String>,+ #[serde(skip_serializing_if = "Option::is_none")]+ pub eos_token_key: Option<String>,+}diff --git a/crates/hanashi/src/chat/encoding/hanashi/renderer/config/jinja_function.rs b/crates/hanashi/src/chat/encoding/hanashi/renderer/config/jinja_function.rsnew file mode 100644index 000000000..c6c428894--- /dev/null+++ b/crates/hanashi/src/chat/encoding/hanashi/renderer/config/jinja_function.rs@@ -0,0 +1,50 @@+use std::{+ fmt::{self, Display},+ str::FromStr,+};++use serde::{Deserialize, Deserializer, Serialize, Serializer, de};++#[derive(Debug, Clone, PartialEq, Eq, Hash)]+pub enum JinjaFunction {+ StrftimeNow,+}++impl FromStr for JinjaFunction {+ type Err = String;++ fn from_str(s: &str) -> Result<Self, Self::Err> {+ match s {+ "strftime_now" => Ok(JinjaFunction::StrftimeNow),+ other => Err(format!("Unknown jinja function: {other}")),+ }+ }+}++impl Display for JinjaFunction {+ fn fmt(+ &self,+ formatter: &mut fmt::Formatter<'_>,+ ) -> fmt::Result {+ let name = match self {+ JinjaFunction::StrftimeNow => "strftime_now",+ };+ write!(formatter, "{name}")+ }+}++impl Serialize for JinjaFunction {+ fn serialize<S: Serializer>(+ &self,+ serializer: S,+ ) -> Result<S::Ok, S::Error> {+ serializer.serialize_str(&self.to_string())+ }+}++impl<'d> Deserialize<'d> for JinjaFunction {+ fn deserialize<D: Deserializer<'d>>(deserializer: D) -> Result<Self, D::Error> {+ let name = String::deserialize(deserializer)?;+ Ok(JinjaFunction::from_str(&name).map_err(de::Error::custom)?)+ }+}diff --git a/crates/hanashi/src/chat/encoding/hanashi/renderer/config/mod.rs b/crates/hanashi/src/chat/encoding/hanashi/renderer/config/mod.rsnew file mode 100644index 000000000..ede58dee2--- /dev/null+++ b/crates/hanashi/src/chat/encoding/hanashi/renderer/config/mod.rs@@ -0,0 +1,67 @@+mod jinja;+mod jinja_function;++use indexmap::IndexMap;+pub use jinja::JinjaConfig;+pub use jinja_function::JinjaFunction;+use serde::{Deserialize, Serialize};++use crate::chat::{+ encoding::hanashi::messages::{+ canonical::Config as CanonicalConfig,+ rendered::{Config as RenderedConfig, Field, FieldConfig},+ },+ types::{ContentBlockType, Role},+};++#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]+pub struct RendererConfig {+ pub jinja: JinjaConfig,+ pub canonization: CanonicalConfig,+ pub rendering: IndexMap<Role, RenderedConfig>,+}++impl RendererConfig {+ pub fn get_role_by_name(+ &self,+ name: &str,+ ) -> Role {+ self.rendering+ .iter()+ .find(|(_, rendered_config)| rendered_config.role == name)+ .map(|(role, _)| role.clone())+ .unwrap_or_else(|| Role::Custom {+ name: name.to_string(),+ })+ }++ pub fn get_rendering_role_and_field_for_block_type(+ &self,+ block_type: &ContentBlockType,+ ) -> Option<(&Role, &Field)> {+ self.rendering.iter().find_map(|(role, role_config)| {+ role_config+ .message+ .values()+ .chain(role_config.context.values())+ .find(|field| match &field.config {+ FieldConfig::Unique {+ block,+ ..+ } => block == block_type,+ FieldConfig::Collected {+ blocks,+ ..+ } => blocks.contains(block_type),+ })+ .map(|field| (role, field))+ })+ }++ pub fn get_rendering_field_for_block_type(+ &self,+ block_type: &ContentBlockType,+ ) -> Option<&Field> {+ self.get_rendering_role_and_field_for_block_type(block_type).map(|(_, field)| field)+ }+}diff --git a/crates/hanashi/src/chat/encoding/hanashi/renderer/error.rs b/crates/hanashi/src/chat/encoding/hanashi/renderer/error.rsnew file mode 100644index 000000000..5e6c7a262--- /dev/null+++ b/crates/hanashi/src/chat/encoding/hanashi/renderer/error.rs@@ -0,0 +1,22 @@+use crate::chat::encoding::hanashi::messages::Error as MessageError;++#[derive(Debug, thiserror::Error)]+#[non_exhaustive]+pub enum Error {+ #[error("Invalid template")]+ InvalidTemplate,+ #[error("Render failed: {reason}")]+ RenderFailed {+ reason: String,+ },+ #[error("BOS token is required")]+ BosTokenRequired,+ #[error("EOS token is required")]+ EosTokenRequired,+ #[error("Duplicate context key: '{key}'")]+ DuplicateContextKey {+ key: String,+ },+ #[error(transparent)]+ Message(#[from] MessageError),+}diff --git a/crates/hanashi/src/chat/encoding/hanashi/renderer/functions/mod.rs b/crates/hanashi/src/chat/encoding/hanashi/renderer/functions/mod.rsnew file mode 100644index 000000000..51f79d625--- /dev/null+++ b/crates/hanashi/src/chat/encoding/hanashi/renderer/functions/mod.rs@@ -0,0 +1,7 @@+mod raise_exception;+mod strftime_now;+mod to_json;++pub use raise_exception::raise_exception;+pub use strftime_now::strftime_now;+pub use to_json::to_json;diff --git a/crates/hanashi/src/chat/encoding/hanashi/renderer/functions/raise_exception.rs b/crates/hanashi/src/chat/encoding/hanashi/renderer/functions/raise_exception.rsnew file mode 100644index 000000000..96e85799c--- /dev/null+++ b/crates/hanashi/src/chat/encoding/hanashi/renderer/functions/raise_exception.rs@@ -0,0 +1,5 @@+use minijinja::{Error, ErrorKind, Value};++pub fn raise_exception(message: Value) -> Result<Value, Error> {+ Err(Error::new(ErrorKind::InvalidOperation, message.to_string()))+}diff --git a/crates/hanashi/src/chat/encoding/hanashi/renderer/functions/strftime_now.rs b/crates/hanashi/src/chat/encoding/hanashi/renderer/functions/strftime_now.rsnew file mode 100644index 000000000..2191e1088--- /dev/null+++ b/crates/hanashi/src/chat/encoding/hanashi/renderer/functions/strftime_now.rs@@ -0,0 +1,40 @@+use std::{ffi::CString, mem::MaybeUninit};++/// Formats the current local time according to the provided `strftime` pattern+pub fn strftime_now(format_string: String) -> String {+ let Ok(c_format) = CString::new(format_string) else {+ return String::new();+ };++ unsafe {+ let now = libc::time(std::ptr::null_mut());+ if now == -1 {+ return String::new();+ }++ let mut tm = MaybeUninit::<libc::tm>::uninit();+ if libc::localtime_r(&now, tm.as_mut_ptr()).is_null() {+ return String::new();+ }++ let tm = tm.assume_init();+ let mut buf_len = 128_usize;++ loop {+ let mut buffer = vec![0u8; buf_len];+ let written =+ libc::strftime(buffer.as_mut_ptr() as *mut libc::c_char, buffer.len(), c_format.as_ptr(), &tm);++ if written > 0 {+ buffer.truncate(written as usize);+ return String::from_utf8_lossy(&buffer).into_owned();+ }++ if buf_len >= 4096 {+ return String::new();+ }++ buf_len *= 2;+ }+ }+}diff --git a/crates/hanashi/src/chat/encoding/hanashi/renderer/functions/to_json.rs b/crates/hanashi/src/chat/encoding/hanashi/renderer/functions/to_json.rsnew file mode 100644index 000000000..ca258325e--- /dev/null+++ b/crates/hanashi/src/chat/encoding/hanashi/renderer/functions/to_json.rs@@ -0,0 +1,86 @@+use std::io;++/// JSON formatter matching Python's `json.dumps` default separators (`, ` and `: `)+struct SpacedJsonFormatter;++impl serde_json::ser::Formatter for SpacedJsonFormatter {+ fn begin_object_value<W: ?Sized + io::Write>(+ &mut self,+ writer: &mut W,+ ) -> io::Result<()> {+ writer.write_all(b": ")+ }++ fn begin_array_value<W: ?Sized + io::Write>(+ &mut self,+ writer: &mut W,+ first: bool,+ ) -> io::Result<()> {+ if first {+ Ok(())+ } else {+ writer.write_all(b", ")+ }+ }++ fn begin_object_key<W: ?Sized + io::Write>(+ &mut self,+ writer: &mut W,+ first: bool,+ ) -> io::Result<()> {+ if first {+ Ok(())+ } else {+ writer.write_all(b", ")+ }+ }+}++/// Copied from minijinja::filters::tojson with SpacedJsonFormatter+pub fn to_json(+ value: &minijinja::Value,+ indent: Option<minijinja::Value>,+ args: minijinja::value::Kwargs,+) -> Result<minijinja::Value, minijinja::Error> {+ let indent = match indent {+ Some(indent) => Some(indent),+ None => args.get("indent")?,+ };+ let indent = match indent {+ None => None,+ Some(ref val) => match bool::try_from(val.clone()).ok() {+ Some(true) => Some(2),+ Some(false) => None,+ None => Some(usize::try_from(val.clone())?),+ },+ };+ args.assert_all_used()?;+ if let Some(indent) = indent {+ let mut out = Vec::<u8>::new();+ let indentation = " ".repeat(indent);+ let formatter = serde_json::ser::PrettyFormatter::with_indent(indentation.as_bytes());+ let mut s = serde_json::Serializer::with_formatter(&mut out, formatter);+ serde::Serialize::serialize(&value, &mut s).map(|_| unsafe { String::from_utf8_unchecked(out) })+ } else {+ let mut out = Vec::<u8>::new();+ let mut s = serde_json::Serializer::with_formatter(&mut out, SpacedJsonFormatter);+ serde::Serialize::serialize(&value, &mut s).map(|_| unsafe { String::from_utf8_unchecked(out) })+ }+ .map_err(|err| {+ minijinja::Error::new(minijinja::ErrorKind::InvalidOperation, "cannot serialize to JSON").with_source(err)+ })+ .map(|s| {+ // When this filter is used the return value is safe for both HTML and JSON+ let mut rv = String::with_capacity(s.len());+ for c in s.chars() {+ match c {+ '<' => rv.push_str("\\u003c"),+ '>' => rv.push_str("\\u003e"),+ '&' => rv.push_str("\\u0026"),+ '\'' => rv.push_str("\\u0027"),+ _ => rv.push(c),+ }+ }+ minijinja::Value::from_safe_string(rv)+ })+}diff --git a/crates/hanashi/src/chat/encoding/hanashi/renderer/mod.rs b/crates/hanashi/src/chat/encoding/hanashi/renderer/mod.rsnew file mode 100644index 000000000..f0832c112--- /dev/null+++ b/crates/hanashi/src/chat/encoding/hanashi/renderer/mod.rs@@ -0,0 +1,117 @@+mod config;+mod error;+mod functions;++pub use config::{JinjaFunction, RendererConfig};+pub use error::Error;+use indexmap::IndexMap;+use minijinja::Environment;+use minijinja_contrib::pycompat::unknown_method_callback;++use self::functions::{raise_exception, strftime_now, to_json};+use crate::chat::{+ encoding::hanashi::messages::rendered::Message as RenderedMessage,+ types::{Message, Token},+};++static TEMPLATE_NAME: &str = "chat_template";++pub struct Renderer {+ config: RendererConfig,+}++impl Renderer {+ pub fn new(config: RendererConfig) -> Self {+ Self {+ config,+ }+ }++ pub fn render(+ &self,+ messages: &[Message],+ should_add_preamble: bool,+ bos_token: Option<Token>,+ eos_token: Option<Token>,+ additional_context: Option<&IndexMap<String, serde_json::Value>>,+ ) -> Result<String, Error> {+ let mut environment = Environment::new();+ environment.set_unknown_method_callback(unknown_method_callback);+ for function in &self.config.jinja.required_functions {+ environment.add_function(+ function.to_string(),+ match function {+ JinjaFunction::StrftimeNow => strftime_now,+ },+ );+ }+ environment.add_function("raise_exception", raise_exception);+ environment.add_filter("tojson", to_json);+ environment+ .add_template(TEMPLATE_NAME, self.config.jinja.template.as_str())+ .map_err(|_| Error::InvalidTemplate)?;++ let mut jinja_context = IndexMap::<String, minijinja::Value>::new();+ let mut jinja_messages = Vec::new();+ for message in messages {+ let rendered = RenderedMessage::from_message(message, &self.config.canonization, &self.config.rendering)?;+ for (key, value) in &rendered.context {+ insert_into_context(&mut jinja_context, key.clone(), minijinja::Value::from_serialize(value))?;+ }+ if !rendered.message.is_empty() {+ jinja_messages.push(minijinja::Value::from_serialize(&rendered.message));+ }+ }+ insert_into_context(&mut jinja_context, "messages".to_string(), minijinja::Value::from(jinja_messages))?;+ insert_into_context(+ &mut jinja_context,+ self.config.jinja.preamble_control_key.clone(),+ minijinja::Value::from(should_add_preamble),+ )?;+ if let Some(bos_token_key) = &self.config.jinja.bos_token_key {+ let bos_token = bos_token.ok_or(Error::BosTokenRequired)?;+ insert_into_context(+ &mut jinja_context,+ bos_token_key.clone(),+ minijinja::Value::from(bos_token.value.clone()),+ )?;+ }+ if let Some(eos_token_key) = &self.config.jinja.eos_token_key {+ let eos_token = eos_token.ok_or(Error::EosTokenRequired)?;+ insert_into_context(+ &mut jinja_context,+ eos_token_key.clone(),+ minijinja::Value::from(eos_token.value.clone()),+ )?;+ }+ if let Some(additional_context) = additional_context {+ for (key, value) in additional_context {+ insert_into_context(&mut jinja_context, key.clone(), minijinja::Value::from_serialize(value))?;+ }+ }++ let template = environment.get_template(TEMPLATE_NAME).map_err(|_| Error::InvalidTemplate)?;+ let result = template+ .render(minijinja::Value::from_serialize(&jinja_context))+ .map_err(|error| Error::RenderFailed {+ reason: error.to_string(),+ })?+ .trim_start()+ .to_string();+ Ok(result)+ }+}++fn insert_into_context(+ context: &mut IndexMap<String, minijinja::Value>,+ key: String,+ value: minijinja::Value,+) -> Result<(), Error> {+ if context.contains_key(&key) {+ return Err(Error::DuplicateContextKey {+ key,+ });+ }+ context.insert(key, value);+ Ok(())+}diff --git a/crates/hanashi/src/chat/encoding/harmony/bridging/encoding_name.rs b/crates/hanashi/src/chat/encoding/harmony/bridging/encoding_name.rsnew file mode 100644index 000000000..5054fc33f--- /dev/null+++ b/crates/hanashi/src/chat/encoding/harmony/bridging/encoding_name.rs@@ -0,0 +1,19 @@+use openai_harmony::HarmonyEncodingName as ExternalEncodingName;++use crate::chat::encoding::harmony::EncodingName;++impl From<EncodingName> for ExternalEncodingName {+ fn from(encoding: EncodingName) -> ExternalEncodingName {+ match encoding {+ EncodingName::GptOss => ExternalEncodingName::HarmonyGptOss,+ }+ }+}++impl From<ExternalEncodingName> for EncodingName {+ fn from(encoding_name: ExternalEncodingName) -> EncodingName {+ match encoding_name {+ ExternalEncodingName::HarmonyGptOss => EncodingName::GptOss,+ }+ }+}diff --git a/crates/hanashi/src/chat/encoding/harmony/bridging/message.rs b/crates/hanashi/src/chat/encoding/harmony/bridging/message.rsnew file mode 100644index 000000000..cdce27bf5--- /dev/null+++ b/crates/hanashi/src/chat/encoding/harmony/bridging/message.rs@@ -0,0 +1,504 @@+use std::collections::HashMap;++use openai_harmony::chat::{+ Author as ExternalAuthor, Content as ExternalContent, DeveloperContent as ExternalDeveloperContent,+ Message as ExternalMessage, ReasoningEffort as ExternalReasoningEffort, Role as ExternalRole,+ SystemContent as ExternalSystemContent, TextContent, ToolNamespaceConfig as ExternalToolNamespaceConfig,+};++use crate::chat::{+ encoding::harmony::bridging::Error,+ types::{ContentBlock, Message, ReasoningEffort, Role, ToolCall, ToolNamespace, Value},+};++const FUNCTIONS_NAMESPACE: &str = "functions";+const CHANNEL_ANALYSIS: &str = "analysis";+const CHANNEL_COMMENTARY: &str = "commentary";+const CHANNEL_FINAL: &str = "final";+const CONTENT_TYPE_JSON: &str = "json";+const RECIPIENT_ASSISTANT: &str = "assistant";+const BUILTIN_BROWSER: &str = "browser";+const BUILTIN_PYTHON: &str = "python";++pub fn bridge_messages_to_harmony(messages: &[Message]) -> Result<Vec<ExternalMessage>, Error> {+ let mut result = Vec::new();++ for message in messages {+ match &message.role {+ Role::System {} => {+ let mut system_filled = false;+ let mut system_content = ExternalSystemContent::default();+ let mut text_parts: Vec<String> = Vec::new();++ for block in &message.content {+ match block {+ ContentBlock::Identity {+ value,+ } => {+ system_filled = true;+ system_content.model_identity = Some(value.clone());+ },+ ContentBlock::ReasoningEffort {+ value,+ } => {+ system_filled = true;+ system_content.reasoning_effort = Some(ExternalReasoningEffort::try_from(value.clone())?);+ },+ ContentBlock::ConversationStartDate {+ value,+ } => {+ system_filled = true;+ system_content.conversation_start_date = Some(value.clone());+ },+ ContentBlock::KnowledgeCutoff {+ value,+ } => {+ system_filled = true;+ system_content.knowledge_cutoff = Some(value.clone());+ },+ ContentBlock::BuiltinTools {+ names,+ } => {+ for name in names {+ match name.as_str() {+ BUILTIN_BROWSER => {+ system_filled = true;+ system_content = system_content.with_browser_tool();+ },+ BUILTIN_PYTHON => {+ system_filled = true;+ system_content = system_content.with_python_tool();+ },+ _ => {+ return Err(Error::UnsupportedBuiltinTool {+ name: name.clone(),+ });+ },+ }+ }+ },+ ContentBlock::Text {+ value,+ } => {+ text_parts.push(value.clone());+ },+ other => {+ return Err(Error::UnsupportedContentBlock {+ block_type: other.get_type(),+ role: message.role.clone(),+ });+ },+ }+ }++ let mut content: Vec<ExternalContent> = vec![];+ if system_filled {+ content.push(ExternalContent::SystemContent(system_content));+ }+ if !text_parts.is_empty() {+ content.push(ExternalContent::Text(TextContent {+ text: text_parts.join(""),+ }));+ }++ result.push(ExternalMessage {+ author: ExternalAuthor::from(ExternalRole::System),+ recipient: None,+ content,+ channel: None,+ content_type: None,+ });+ },+ Role::Developer {} => {+ let mut developer_content = ExternalDeveloperContent::default();+ let mut text_parts: Vec<String> = Vec::new();++ for block in &message.content {+ match block {+ ContentBlock::Text {+ value,+ } => {+ text_parts.push(value.clone());+ },+ ContentBlock::Tools {+ namespaces,+ } => {+ for namespace in namespaces {+ developer_content = developer_content+ .with_tools(ExternalToolNamespaceConfig::try_from(namespace.clone())?);+ }+ },+ other => {+ return Err(Error::UnsupportedContentBlock {+ block_type: other.get_type(),+ role: message.role.clone(),+ });+ },+ }+ }++ if !text_parts.is_empty() {+ developer_content.instructions = Some(text_parts.join(""));+ }++ result.push(ExternalMessage {+ author: ExternalAuthor::from(ExternalRole::Developer),+ recipient: None,+ content: vec![ExternalContent::DeveloperContent(developer_content)],+ channel: None,+ content_type: None,+ });+ },+ Role::User {} => {+ let mut text_parts: Vec<String> = Vec::new();++ for block in &message.content {+ match block {+ ContentBlock::Text {+ value,+ } => {+ text_parts.push(value.clone());+ },+ other => {+ return Err(Error::UnsupportedContentBlock {+ block_type: other.get_type(),+ role: message.role.clone(),+ });+ },+ }+ }++ if text_parts.is_empty() {+ return Err(Error::ContentRequired {+ role: message.role.clone(),+ });+ }++ result.push(ExternalMessage::from_role_and_content(ExternalRole::User, text_parts.join("")));+ },+ Role::Assistant {} => {+ let mut reasoning_parts: Vec<String> = Vec::new();+ let mut text_parts: Vec<String> = Vec::new();+ let mut tool_calls: Vec<ToolCall> = Vec::new();++ for block in &message.content {+ match block {+ ContentBlock::Reasoning {+ value,+ } => {+ reasoning_parts.push(value.clone());+ },+ ContentBlock::Text {+ value,+ } => {+ text_parts.push(value.clone());+ },+ ContentBlock::ToolCall {+ value,+ } => {+ tool_calls.push(value.clone());+ },+ other => {+ return Err(Error::UnsupportedContentBlock {+ block_type: other.get_type(),+ role: message.role.clone(),+ });+ },+ }+ }++ if tool_calls.len() > 1 {+ return Err(Error::MultipleToolCalls);+ }++ if !reasoning_parts.is_empty() {+ result.push(+ ExternalMessage::from_role_and_content(ExternalRole::Assistant, reasoning_parts.join(""))+ .with_channel(CHANNEL_ANALYSIS),+ );+ }++ if !text_parts.is_empty() {+ result.push(+ ExternalMessage::from_role_and_content(ExternalRole::Assistant, text_parts.join(""))+ .with_channel(CHANNEL_FINAL),+ );+ }++ if let Some(tool_call) = tool_calls.first() {+ let arguments = serde_json::Value::try_from(tool_call.arguments.clone()).map_err(|error| {+ Error::SerializationFailed {+ message: error.to_string(),+ }+ })?;++ result.push(+ ExternalMessage::from_role_and_content(+ ExternalRole::Assistant,+ serde_json::to_string(&arguments).map_err(|error| Error::SerializationFailed {+ message: error.to_string(),+ })?,+ )+ .with_channel(CHANNEL_COMMENTARY)+ .with_recipient(format!("{FUNCTIONS_NAMESPACE}.{}", tool_call.name))+ .with_content_type(CONTENT_TYPE_JSON),+ );+ }+ },+ Role::Tool {} => {+ if message.content.len() != 1 {+ return Err(Error::MultipleContentBlocks);+ }++ let block = &message.content[0];+ let ContentBlock::ToolCallResult {+ name,+ value,+ } = block+ else {+ return Err(Error::UnsupportedContentBlock {+ block_type: block.get_type(),+ role: message.role.clone(),+ });+ };++ let name = name.as_ref().ok_or(Error::MissingToolCallResultName)?;++ let result_value =+ serde_json::Value::try_from(value.clone()).map_err(|error| Error::SerializationFailed {+ message: error.to_string(),+ })?;++ result.push(+ ExternalMessage::from_author_and_content(+ ExternalAuthor::new(ExternalRole::Tool, format!("{FUNCTIONS_NAMESPACE}.{name}")),+ serde_json::to_string(&result_value).map_err(|error| Error::SerializationFailed {+ message: error.to_string(),+ })?,+ )+ .with_channel(CHANNEL_COMMENTARY)+ .with_recipient(RECIPIENT_ASSISTANT),+ );+ },+ Role::Custom {+ ..+ } => {+ return Err(Error::UnsupportedRole {+ role: message.role.clone(),+ });+ },+ }+ }++ Ok(result)+}++pub fn bridge_messages_from_harmony(messages: &[ExternalMessage]) -> Result<Vec<Message>, Error> {+ let mut result = Vec::new();+ let mut index = 0;++ while index < messages.len() {+ let message = &messages[index];++ match &message.author.role {+ ExternalRole::System => {+ let mut content = Vec::new();++ for external_content in &message.content {+ match external_content {+ ExternalContent::SystemContent(system_content) => {+ if let Some(identity) = &system_content.model_identity {+ content.push(ContentBlock::Identity {+ value: identity.clone(),+ });+ }+ if let Some(effort) = &system_content.reasoning_effort {+ content.push(ContentBlock::ReasoningEffort {+ value: ReasoningEffort::from(*effort),+ });+ }+ if let Some(date) = &system_content.conversation_start_date {+ content.push(ContentBlock::ConversationStartDate {+ value: date.clone(),+ });+ }+ if let Some(cutoff) = &system_content.knowledge_cutoff {+ content.push(ContentBlock::KnowledgeCutoff {+ value: cutoff.clone(),+ });+ }+ if let Some(tools) = &system_content.tools {+ let names: Vec<String> = tools.keys().cloned().collect();+ if !names.is_empty() {+ content.push(ContentBlock::BuiltinTools {+ names,+ });+ }+ }+ },+ ExternalContent::Text(text_content) => {+ content.push(ContentBlock::Text {+ value: text_content.text.clone(),+ });+ },+ _ => {+ return Err(Error::SerializationFailed {+ message: "Unexpected content type in system message".to_string(),+ });+ },+ }+ }++ result.push(Message {+ role: Role::System {},+ content,+ metadata: HashMap::new(),+ });+ index += 1;+ },+ ExternalRole::Developer => {+ let mut content = Vec::new();++ for external_content in &message.content {+ match external_content {+ ExternalContent::DeveloperContent(developer_content) => {+ if let Some(instructions) = &developer_content.instructions {+ content.push(ContentBlock::Text {+ value: instructions.clone(),+ });+ }+ if let Some(tools) = &developer_content.tools {+ let namespaces: Vec<ToolNamespace> =+ tools.values().cloned().map(ToolNamespace::from).collect();+ if !namespaces.is_empty() {+ content.push(ContentBlock::Tools {+ namespaces,+ });+ }+ }+ },+ ExternalContent::Text(text_content) => {+ content.push(ContentBlock::Text {+ value: text_content.text.clone(),+ });+ },+ _ => {+ return Err(Error::SerializationFailed {+ message: "Unexpected content type in developer message".to_string(),+ });+ },+ }+ }++ result.push(Message {+ role: Role::Developer {},+ content,+ metadata: HashMap::new(),+ });+ index += 1;+ },+ ExternalRole::User => {+ let text = extract_text_content(&message.content);++ result.push(Message {+ role: Role::User {},+ content: vec![ContentBlock::Text {+ value: text,+ }],+ metadata: HashMap::new(),+ });+ index += 1;+ },+ ExternalRole::Assistant => {+ let mut content = Vec::new();++ while index < messages.len() && messages[index].author.role == ExternalRole::Assistant {+ let assistant_message = &messages[index];+ let text = extract_text_content(&assistant_message.content);++ match assistant_message.channel.as_deref() {+ Some(CHANNEL_ANALYSIS) => {+ content.push(ContentBlock::Reasoning {+ value: text,+ });+ },+ Some(CHANNEL_COMMENTARY) => {+ let recipient =+ assistant_message.recipient.as_deref().ok_or_else(|| Error::SerializationFailed {+ message: "Tool call missing recipient".to_string(),+ })?;+ let name = strip_namespace_prefix(recipient);++ match serde_json::from_str::<serde_json::Value>(&text) {+ Ok(json_value) => {+ content.push(ContentBlock::ToolCall {+ value: ToolCall {+ name: name.to_string(),+ arguments: Value::from(json_value),+ },+ });+ },+ Err(_) => {+ content.push(ContentBlock::ToolCallCandidate {+ value: Value::from(serde_json::Value::String(text)),+ });+ },+ }+ },+ _ => {+ content.push(ContentBlock::Text {+ value: text,+ });+ },+ }++ index += 1;+ }++ result.push(Message {+ role: Role::Assistant {},+ content,+ metadata: HashMap::new(),+ });+ },+ ExternalRole::Tool => {+ let text = extract_text_content(&message.content);+ let qualified_name = message.author.name.as_deref().ok_or(Error::MissingToolCallResultName)?;+ let name = strip_namespace_prefix(qualified_name);++ let value = Value::from(serde_json::from_str::<serde_json::Value>(&text).map_err(|error| {+ Error::SerializationFailed {+ message: error.to_string(),+ }+ })?);++ result.push(Message {+ role: Role::Tool {},+ content: vec![ContentBlock::ToolCallResult {+ name: Some(name.to_string()),+ value,+ }],+ metadata: HashMap::new(),+ });+ index += 1;+ },+ }+ }++ Ok(result)+}++fn extract_text_content(content: &[ExternalContent]) -> String {+ content+ .iter()+ .filter_map(|external_content| match external_content {+ ExternalContent::Text(text_content) => Some(text_content.text.clone()),+ _ => None,+ })+ .collect::<Vec<_>>()+ .join("")+}++fn strip_namespace_prefix(qualified_name: &str) -> &str {+ qualified_name.strip_prefix(FUNCTIONS_NAMESPACE).and_then(|rest| rest.strip_prefix('.')).unwrap_or(qualified_name)+}diff --git a/crates/hanashi/src/chat/encoding/harmony/bridging/mod.rs b/crates/hanashi/src/chat/encoding/harmony/bridging/mod.rsnew file mode 100644index 000000000..d2866147e--- /dev/null+++ b/crates/hanashi/src/chat/encoding/harmony/bridging/mod.rs@@ -0,0 +1,45 @@+mod encoding_name;+mod message;+mod reasoning_effort;+mod role;+mod tool_namespace;++pub use message::{bridge_messages_from_harmony, bridge_messages_to_harmony};++use crate::chat::types::{ContentBlockType, ReasoningEffort, Role};++#[derive(Debug, thiserror::Error)]+#[non_exhaustive]+pub enum Error {+ #[error("Role '{role}' is not supported")]+ UnsupportedRole {+ role: Role,+ },+ #[error("Reasoning effort '{reasoning_effort}' is not supported")]+ UnsupportedReasoningEffort {+ reasoning_effort: ReasoningEffort,+ },+ #[error("Builtin tool '{name}' is not supported")]+ UnsupportedBuiltinTool {+ name: String,+ },+ #[error("Content block '{block_type}' is not supported for role '{role}'")]+ UnsupportedContentBlock {+ block_type: ContentBlockType,+ role: Role,+ },+ #[error("Multiple tool calls are not supported")]+ MultipleToolCalls,+ #[error("Multiple content blocks are not supported")]+ MultipleContentBlocks,+ #[error("Content is required for role '{role}'")]+ ContentRequired {+ role: Role,+ },+ #[error("Tool call result is missing a name")]+ MissingToolCallResultName,+ #[error("Serialization failed: {message}")]+ SerializationFailed {+ message: String,+ },+}diff --git a/crates/hanashi/src/chat/encoding/harmony/bridging/reasoning_effort.rs b/crates/hanashi/src/chat/encoding/harmony/bridging/reasoning_effort.rsnew file mode 100644index 000000000..905a4d573--- /dev/null+++ b/crates/hanashi/src/chat/encoding/harmony/bridging/reasoning_effort.rs@@ -0,0 +1,28 @@+use openai_harmony::chat::ReasoningEffort as ExternalReasoningEffort;++use crate::chat::{encoding::harmony::bridging::Error, types::ReasoningEffort};++impl TryFrom<ReasoningEffort> for ExternalReasoningEffort {+ type Error = Error;++ fn try_from(reasoning_effort: ReasoningEffort) -> Result<ExternalReasoningEffort, Error> {+ match reasoning_effort {+ ReasoningEffort::Low => Ok(ExternalReasoningEffort::Low),+ ReasoningEffort::Medium => Ok(ExternalReasoningEffort::Medium),+ ReasoningEffort::High => Ok(ExternalReasoningEffort::High),+ other => Err(Error::UnsupportedReasoningEffort {+ reasoning_effort: other,+ }),+ }+ }+}++impl From<ExternalReasoningEffort> for ReasoningEffort {+ fn from(reasoning_effort: ExternalReasoningEffort) -> ReasoningEffort {+ match reasoning_effort {+ ExternalReasoningEffort::Low => ReasoningEffort::Low,+ ExternalReasoningEffort::Medium => ReasoningEffort::Medium,+ ExternalReasoningEffort::High => ReasoningEffort::High,+ }+ }+}diff --git a/crates/hanashi/src/chat/encoding/harmony/bridging/role.rs b/crates/hanashi/src/chat/encoding/harmony/bridging/role.rsnew file mode 100644index 000000000..433659832--- /dev/null+++ b/crates/hanashi/src/chat/encoding/harmony/bridging/role.rs@@ -0,0 +1,34 @@+use openai_harmony::chat::Role as ExternalRole;++use crate::chat::{encoding::harmony::bridging::Error, types::Role};++impl TryFrom<Role> for ExternalRole {+ type Error = Error;++ fn try_from(role: Role) -> Result<ExternalRole, Error> {+ match role {+ Role::User {} => Ok(ExternalRole::User),+ Role::Assistant {} => Ok(ExternalRole::Assistant),+ Role::System {} => Ok(ExternalRole::System),+ Role::Developer {} => Ok(ExternalRole::Developer),+ Role::Tool {} => Ok(ExternalRole::Tool),+ Role::Custom {+ ..+ } => Err(Error::UnsupportedRole {+ role: role.clone(),+ }),+ }+ }+}++impl From<ExternalRole> for Role {+ fn from(role: ExternalRole) -> Role {+ match role {+ ExternalRole::User => Role::User {},+ ExternalRole::Assistant => Role::Assistant {},+ ExternalRole::System => Role::System {},+ ExternalRole::Developer => Role::Developer {},+ ExternalRole::Tool => Role::Tool {},+ }+ }+}diff --git a/crates/hanashi/src/chat/encoding/harmony/bridging/tool_namespace.rs b/crates/hanashi/src/chat/encoding/harmony/bridging/tool_namespace.rsnew file mode 100644index 000000000..b1249d4bd--- /dev/null+++ b/crates/hanashi/src/chat/encoding/harmony/bridging/tool_namespace.rs@@ -0,0 +1,64 @@+use openai_harmony::chat::{+ ToolDescription as ExternalToolDescription, ToolNamespaceConfig as ExternalToolNamespaceConfig,+};++use crate::chat::{+ encoding::harmony::bridging::Error,+ types::{ToolDescription, ToolFunction, ToolNamespace, Value},+};++impl TryFrom<ToolNamespace> for ExternalToolNamespaceConfig {+ type Error = Error;++ fn try_from(namespace: ToolNamespace) -> Result<ExternalToolNamespaceConfig, Error> {+ let tools =+ namespace.tools.into_iter().map(ExternalToolDescription::try_from).collect::<Result<Vec<_>, _>>()?;++ Ok(ExternalToolNamespaceConfig::new(namespace.name, namespace.description, tools))+ }+}++impl TryFrom<ToolDescription> for ExternalToolDescription {+ type Error = Error;++ fn try_from(tool: ToolDescription) -> Result<ExternalToolDescription, Error> {+ match tool {+ ToolDescription::Function {+ function,+ } => {+ let parameters = function.parameters.map(serde_json::Value::try_from).transpose().map_err(|error| {+ Error::SerializationFailed {+ message: error.to_string(),+ }+ })?;++ Ok(ExternalToolDescription::new(function.name, function.description, parameters))+ },+ }+ }+}++impl From<ExternalToolNamespaceConfig> for ToolNamespace {+ fn from(namespace: ExternalToolNamespaceConfig) -> ToolNamespace {+ let tools = namespace.tools.into_iter().map(ToolDescription::from).collect();++ ToolNamespace {+ name: namespace.name,+ description: namespace.description,+ tools,+ }+ }+}++impl From<ExternalToolDescription> for ToolDescription {+ fn from(tool: ExternalToolDescription) -> ToolDescription {+ ToolDescription::Function {+ function: ToolFunction {+ name: tool.name,+ description: tool.description,+ parameters: tool.parameters.map(Value::from),+ r#return: None,+ },+ }+ }+}diff --git a/crates/hanashi/src/chat/encoding/harmony/config.rs b/crates/hanashi/src/chat/encoding/harmony/config.rsnew file mode 100644index 000000000..1d446d26b--- /dev/null+++ b/crates/hanashi/src/chat/encoding/harmony/config.rs@@ -0,0 +1,23 @@+use serde::{Deserialize, Serialize};++use crate::chat::{encoding::harmony::EncodingName, types::Capabilities};++#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]+pub struct Config {+ #[serde(rename = "name")]+ pub encoding_name: EncodingName,+}++impl Config {+ pub fn capabilities(&self) -> Capabilities {+ match self.encoding_name {+ EncodingName::GptOss => Capabilities {+ supports_reasoning: true,+ supports_disable_reasoning: false,+ supports_tools: true,+ supports_multiple_tool_calls: false,+ requires_tools: false,+ },+ }+ }+}diff --git a/crates/hanashi/src/chat/encoding/harmony/encoding_name.rs b/crates/hanashi/src/chat/encoding/harmony/encoding_name.rsnew file mode 100644index 000000000..c3854a5e8--- /dev/null+++ b/crates/hanashi/src/chat/encoding/harmony/encoding_name.rs@@ -0,0 +1,7 @@+use serde::{Deserialize, Serialize};++#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]+pub enum EncodingName {+ #[serde(rename = "gpt-oss")]+ GptOss,+}diff --git a/crates/hanashi/src/chat/encoding/harmony/error.rs b/crates/hanashi/src/chat/encoding/harmony/error.rsnew file mode 100644index 000000000..e058d499d--- /dev/null+++ b/crates/hanashi/src/chat/encoding/harmony/error.rs@@ -0,0 +1,21 @@+use crate::chat::encoding::{SynchronizationError, harmony::bridging::Error as BridgingError};+#[derive(Debug, thiserror::Error)]+#[non_exhaustive]+pub enum Error {+ #[error("Unable to load encoding")]+ UnableToLoadEncoding,+ #[error("Expected directory tokenizer location")]+ ExpectedDirectoryTokenizerLocation,+ #[error(transparent)]+ Bridging(#[from] BridgingError),+ #[error("Unable to render conversation")]+ UnableToRenderConversation,+ #[error("Unable to decode token")]+ UnableToDecodeToken,+ #[error(transparent)]+ Synchronization(#[from] SynchronizationError),+ #[error("Parser error: {reason}")]+ ParserError {+ reason: String,+ },+}diff --git a/crates/hanashi/src/chat/encoding/harmony/mod.rs b/crates/hanashi/src/chat/encoding/harmony/mod.rsnew file mode 100644index 000000000..23da74d02--- /dev/null+++ b/crates/hanashi/src/chat/encoding/harmony/mod.rs@@ -0,0 +1,152 @@+mod bridging;+mod config;+mod encoding_name;+mod error;++use bridging::{bridge_messages_from_harmony, bridge_messages_to_harmony};+pub use config::Config;+pub use encoding_name::EncodingName;+pub use error::Error;+use openai_harmony::{+ HarmonyEncoding, StreamableParser,+ chat::{+ Author as HarmonyAuthor, Content as HarmonyContent, Conversation as HarmonyConversation,+ Message as HarmonyMessage, Role as HarmonyRole, TextContent as HarmonyTextContent,+ },+ load_harmony_encoding,+};++use crate::{+ Encoding as EncodingTrait,+ chat::{+ encoding::{Context, State, TokenizerLocation},+ types::{Message, Token, TokenId},+ },+};++pub struct Encoding {+ encoding: HarmonyEncoding,+ parser: StreamableParser,+ state: State,+}++impl EncodingTrait for Encoding {+ type Config = Config;+ type Context = Context;+ type Input = Vec<Message>;+ type Output = Vec<TokenId>;+ type State = State;+ type Error = Error;++ fn new(+ config: Self::Config,+ context: Self::Context,+ ) -> Result<Self, Self::Error> {+ let TokenizerLocation::Directory {+ path,+ ..+ } = &context.tokenizer_location+ else {+ return Err(Error::ExpectedDirectoryTokenizerLocation);+ };+ unsafe {+ std::env::set_var("TIKTOKEN_ENCODINGS_BASE", path);+ }+ let encoding = load_harmony_encoding(config.encoding_name.into()).map_err(|_| Error::UnableToLoadEncoding)?;+ let parser = StreamableParser::new(encoding.clone(), None).map_err(|_| Error::UnableToLoadEncoding)?;+ Ok(Self {+ encoding,+ parser: parser,+ state: State::default(),+ })+ }++ fn state(&self) -> &Self::State {+ &self.state+ }++ fn reset(&mut self) -> Result<(), Self::Error> {+ self.parser = StreamableParser::new(self.encoding.clone(), None).map_err(|_| Error::UnableToLoadEncoding)?;+ self.state = State::default();+ Ok(())+ }++ fn encode(+ &mut self,+ messages: Self::Input,+ ) -> Result<(), Self::Error> {+ self.state.messages.extend(messages.clone());++ let conversation = HarmonyConversation::from_messages(bridge_messages_to_harmony(&messages)?);+ let token_ids = self+ .encoding+ .render_conversation_for_completion(&conversation, HarmonyRole::Assistant, None)+ .map_err(|_| Error::UnableToRenderConversation)?;+ for token_id in token_ids {+ let token = resolve_token(&self.encoding, token_id)?;+ self.parser.process(token_id).map_err(|error| Error::ParserError {+ reason: error.to_string(),+ })?;+ self.state.tokens.push(token);+ }++ self.update_messages_from_parser_state()?;+ Ok(())+ }++ fn decode(+ &mut self,+ token_ids: Self::Output,+ ) -> Result<(), Self::Error> {+ for token_id in token_ids {+ let token = resolve_token(&self.encoding, token_id)?;+ self.parser.process(token_id).map_err(|error| Error::ParserError {+ reason: error.to_string(),+ })?;+ self.state.tokens.push(token);+ }++ self.update_messages_from_parser_state()?;+ Ok(())+ }+}++impl Encoding {+ fn update_messages_from_parser_state(&mut self) -> Result<(), Error> {+ let mut streamed_harmony_messages = self.parser.messages().to_vec();++ if let Some(current_role) = self.parser.current_role() {+ let mut content: Vec<HarmonyContent> = vec![];+ if let Some(current_content) = self.parser.current_content().ok() {+ content.push(HarmonyContent::Text(HarmonyTextContent {+ text: current_content,+ }));+ }+ streamed_harmony_messages.push(HarmonyMessage {+ author: HarmonyAuthor::from(current_role),+ channel: self.parser.current_channel(),+ content,+ content_type: self.parser.current_content_type(),+ recipient: self.parser.current_recipient(),+ });+ }++ let streamed_messages = bridge_messages_from_harmony(&streamed_harmony_messages)?;+ self.state.synchronize_messages(&streamed_messages)?;++ Ok(())+ }+}++fn resolve_token(+ encoding: &HarmonyEncoding,+ token_id: TokenId,+) -> Result<Token, Error> {+ let value = encoding.tokenizer().decode_utf8(&[token_id]).map_err(|_| Error::UnableToDecodeToken)?;+ let is_special = encoding.tokenizer().is_special_token(token_id);+ Ok(Token {+ id: token_id,+ value,+ is_special,+ })+}diff --git a/crates/hanashi/src/chat/encoding/mod.rs b/crates/hanashi/src/chat/encoding/mod.rsnew file mode 100644index 000000000..acd811332--- /dev/null+++ b/crates/hanashi/src/chat/encoding/mod.rs@@ -0,0 +1,80 @@+mod config;+mod context;+mod error;+pub mod hanashi;+pub mod harmony;+mod state;++pub use config::Config;+pub use context::{Context, TokenizerLocation};+pub use error::Error;+pub use state::{State, SynchronizationError, SynchronizationResult};++use crate::{+ Encoding as EncodingTrait,+ chat::{+ encoding::{hanashi::Encoding as HanashiEncoding, harmony::Encoding as HarmonyEncoding},+ types::{Message, TokenId},+ },+};++macro_rules! dispatch {+ ($self:expr, $method:ident $(, $arg:expr)*) => {+ match $self {+ Encoding::Hanashi(inner) => inner.$method($($arg),*).map_err(Into::into),+ Encoding::Harmony(inner) => inner.$method($($arg),*).map_err(Into::into),+ }+ };+ (infallible $self:expr, $method:ident $(, $arg:expr)*) => {+ match $self {+ Encoding::Hanashi(inner) => inner.$method($($arg),*),+ Encoding::Harmony(inner) => inner.$method($($arg),*),+ }+ };+}++pub enum Encoding {+ Hanashi(HanashiEncoding),+ Harmony(HarmonyEncoding),+}++impl EncodingTrait for Encoding {+ type Config = Config;+ type Context = Context;+ type Input = Vec<Message>;+ type Output = Vec<TokenId>;+ type State = State;+ type Error = Error;++ fn new(+ config: Self::Config,+ context: Self::Context,+ ) -> Result<Self, Self::Error> {+ match config {+ Config::Hanashi(config) => Ok(Encoding::Hanashi(HanashiEncoding::new(config, context)?)),+ Config::Harmony(config) => Ok(Encoding::Harmony(HarmonyEncoding::new(config, context)?)),+ }+ }++ fn state(&self) -> &Self::State {+ dispatch!(infallible self, state)+ }++ fn reset(&mut self) -> Result<(), Self::Error> {+ dispatch!(self, reset)+ }++ fn encode(+ &mut self,+ value: Self::Input,+ ) -> Result<(), Self::Error> {+ dispatch!(self, encode, value)+ }++ fn decode(+ &mut self,+ value: Self::Output,+ ) -> Result<(), Self::Error> {+ dispatch!(self, decode, value)+ }+}diff --git a/crates/hanashi/src/chat/encoding/state.rs b/crates/hanashi/src/chat/encoding/state.rsnew file mode 100644index 000000000..d621a21e4--- /dev/null+++ b/crates/hanashi/src/chat/encoding/state.rs@@ -0,0 +1,55 @@+use serde::{Deserialize, Serialize};++use crate::chat::types::{Message, Token};++#[derive(Debug, thiserror::Error)]+#[non_exhaustive]+pub enum SynchronizationError {+ #[error("Stream desynchronization")]+ Desynchronization,+}++#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]+pub enum SynchronizationResult {+ Updated,+ Inserted,+}++#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]+pub struct State {+ pub tokens: Vec<Token>,+ pub messages: Vec<Message>,+}++impl State {+ pub fn text(&self) -> String {+ self.tokens.iter().map(|token| token.value.clone()).collect()+ }++ pub fn synchronize_messages(+ &mut self,+ streamed_messages: &[Message],+ ) -> Result<SynchronizationResult, SynchronizationError> {+ let last_message = self.messages.last().ok_or(SynchronizationError::Desynchronization)?;+ let last_matched_index = streamed_messages+ .iter()+ .rposition(|streamed_message| streamed_message.role == last_message.role)+ .ok_or(SynchronizationError::Desynchronization)?;++ let remaining_count = streamed_messages.len() - 1 - last_matched_index;+ let last_streamed = streamed_messages.last().ok_or(SynchronizationError::Desynchronization)?;++ match remaining_count {+ 0 => {+ let position = self.messages.len() - 1;+ self.messages[position] = last_streamed.clone();+ Ok(SynchronizationResult::Updated)+ },+ 1 => {+ self.messages.push(last_streamed.clone());+ Ok(SynchronizationResult::Inserted)+ },+ _ => Err(SynchronizationError::Desynchronization),+ }+ }+}diff --git a/crates/hanashi/src/chat/mod.rs b/crates/hanashi/src/chat/mod.rsnew file mode 100644index 000000000..14b51ac33--- /dev/null+++ b/crates/hanashi/src/chat/mod.rs@@ -0,0 +1,4 @@+pub mod encoding;+pub mod types;++pub use encoding::{Config, Context, Encoding, Error, State};diff --git a/crates/hanashi/src/chat/types/capabilities.rs b/crates/hanashi/src/chat/types/capabilities.rsnew file mode 100644index 000000000..5b4ad2f75--- /dev/null+++ b/crates/hanashi/src/chat/types/capabilities.rs@@ -0,0 +1,11 @@+use serde::{Deserialize, Serialize};++#[bindings::export(Struct)]+#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]+pub struct Capabilities {+ pub supports_reasoning: bool,+ pub supports_disable_reasoning: bool,+ pub supports_tools: bool,+ pub supports_multiple_tool_calls: bool,+ pub requires_tools: bool,+}diff --git a/crates/hanashi/src/chat/types/content_block.rs b/crates/hanashi/src/chat/types/content_block.rsnew file mode 100644index 000000000..10429126e--- /dev/null+++ b/crates/hanashi/src/chat/types/content_block.rs@@ -0,0 +1,220 @@+use std::{+ fmt::{self, Display},+ str::FromStr,+};++use serde::{Deserialize, Deserializer, Serialize, Serializer, de};++use crate::chat::types::{ReasoningEffort, ToolCall, ToolNamespace, TranslationInput, Value};++#[bindings::export(Enum)]+#[derive(Debug, Clone, PartialEq, Eq, Hash)]+pub enum ContentBlockType {+ Identity,+ ReasoningEffort,+ ConversationStartDate,+ KnowledgeCutoff,+ BuiltinTools,+ Tools,+ Text,+ Image,+ Video,+ Audio,+ File,+ Reasoning,+ ToolCall,+ ToolCallCandidate,+ ToolCallResult,+ Translation,+ Custom,+}++impl FromStr for ContentBlockType {+ type Err = String;++ fn from_str(s: &str) -> Result<Self, Self::Err> {+ match s {+ "identity" => Ok(ContentBlockType::Identity),+ "reasoning_effort" => Ok(ContentBlockType::ReasoningEffort),+ "conversation_start_date" => Ok(ContentBlockType::ConversationStartDate),+ "knowledge_cutoff" => Ok(ContentBlockType::KnowledgeCutoff),+ "builtin_tools" => Ok(ContentBlockType::BuiltinTools),+ "tools" => Ok(ContentBlockType::Tools),+ "text" => Ok(ContentBlockType::Text),+ "image" => Ok(ContentBlockType::Image),+ "video" => Ok(ContentBlockType::Video),+ "audio" => Ok(ContentBlockType::Audio),+ "file" => Ok(ContentBlockType::File),+ "reasoning" => Ok(ContentBlockType::Reasoning),+ "tool_call" => Ok(ContentBlockType::ToolCall),+ "tool_call_candidate" => Ok(ContentBlockType::ToolCallCandidate),+ "tool_call_result" => Ok(ContentBlockType::ToolCallResult),+ "translation" => Ok(ContentBlockType::Translation),+ "custom" => Ok(ContentBlockType::Custom),+ other => Err(format!("Unknown content block type: {other}")),+ }+ }+}++impl Display for ContentBlockType {+ fn fmt(+ &self,+ formatter: &mut fmt::Formatter<'_>,+ ) -> fmt::Result {+ let name = match self {+ ContentBlockType::Identity => "identity",+ ContentBlockType::ReasoningEffort => "reasoning_effort",+ ContentBlockType::ConversationStartDate => "conversation_start_date",+ ContentBlockType::KnowledgeCutoff => "knowledge_cutoff",+ ContentBlockType::BuiltinTools => "builtin_tools",+ ContentBlockType::Tools => "tools",+ ContentBlockType::Text => "text",+ ContentBlockType::Image => "image",+ ContentBlockType::Video => "video",+ ContentBlockType::Audio => "audio",+ ContentBlockType::File => "file",+ ContentBlockType::Reasoning => "reasoning",+ ContentBlockType::ToolCall => "tool_call",+ ContentBlockType::ToolCallCandidate => "tool_call_candidate",+ ContentBlockType::ToolCallResult => "tool_call_result",+ ContentBlockType::Translation => "translation",+ ContentBlockType::Custom => "custom",+ };+ write!(formatter, "{name}")+ }+}++impl Serialize for ContentBlockType {+ fn serialize<S: Serializer>(+ &self,+ serializer: S,+ ) -> Result<S::Ok, S::Error> {+ serializer.serialize_str(&self.to_string())+ }+}++impl<'d> Deserialize<'d> for ContentBlockType {+ fn deserialize<D: Deserializer<'d>>(deserializer: D) -> Result<Self, D::Error> {+ let name = String::deserialize(deserializer)?;+ ContentBlockType::from_str(&name).map_err(de::Error::custom)+ }+}++#[bindings::export(Enum)]+#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]+#[serde(tag = "type", rename_all = "snake_case")]+pub enum ContentBlock {+ Identity {+ value: String,+ },+ ReasoningEffort {+ value: ReasoningEffort,+ },+ ConversationStartDate {+ value: String,+ },+ KnowledgeCutoff {+ value: String,+ },+ BuiltinTools {+ names: Vec<String>,+ },+ Tools {+ namespaces: Vec<ToolNamespace>,+ },+ Text {+ value: String,+ },+ Image {+ url: String,+ },+ Video {+ url: String,+ },+ Audio {+ url: String,+ },+ File {+ url: String,+ },+ Reasoning {+ value: String,+ },+ ToolCall {+ value: ToolCall,+ },+ ToolCallCandidate {+ value: Value,+ },+ ToolCallResult {+ name: Option<String>,+ value: Value,+ },+ Translation {+ #[serde(flatten)]+ input: TranslationInput,+ source_language_code: String,+ target_language_code: String,+ },+ Custom {+ value: Value,+ },+}++impl ContentBlock {+ pub fn get_type(&self) -> ContentBlockType {+ match self {+ ContentBlock::Identity {+ ..+ } => ContentBlockType::Identity,+ ContentBlock::ReasoningEffort {+ ..+ } => ContentBlockType::ReasoningEffort,+ ContentBlock::ConversationStartDate {+ ..+ } => ContentBlockType::ConversationStartDate,+ ContentBlock::KnowledgeCutoff {+ ..+ } => ContentBlockType::KnowledgeCutoff,+ ContentBlock::BuiltinTools {+ ..+ } => ContentBlockType::BuiltinTools,+ ContentBlock::Tools {+ ..+ } => ContentBlockType::Tools,+ ContentBlock::Text {+ ..+ } => ContentBlockType::Text,+ ContentBlock::Image {+ ..+ } => ContentBlockType::Image,+ ContentBlock::Video {+ ..+ } => ContentBlockType::Video,+ ContentBlock::Audio {+ ..+ } => ContentBlockType::Audio,+ ContentBlock::File {+ ..+ } => ContentBlockType::File,+ ContentBlock::Reasoning {+ ..+ } => ContentBlockType::Reasoning,+ ContentBlock::ToolCall {+ ..+ } => ContentBlockType::ToolCall,+ ContentBlock::ToolCallCandidate {+ ..+ } => ContentBlockType::ToolCallCandidate,+ ContentBlock::ToolCallResult {+ ..+ } => ContentBlockType::ToolCallResult,+ ContentBlock::Translation {+ ..+ } => ContentBlockType::Translation,+ ContentBlock::Custom {+ ..+ } => ContentBlockType::Custom,+ }+ }+}diff --git a/crates/hanashi/src/chat/types/message.rs b/crates/hanashi/src/chat/types/message.rsnew file mode 100644index 000000000..1647e0863--- /dev/null+++ b/crates/hanashi/src/chat/types/message.rs@@ -0,0 +1,14 @@+use std::collections::HashMap;++use serde::{Deserialize, Serialize};++use crate::chat::types::{ContentBlock, Role, Value};++#[bindings::export(Struct)]+#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]+#[serde(rename_all = "snake_case")]+pub struct Message {+ pub role: Role,+ pub content: Vec<ContentBlock>,+ pub metadata: HashMap<String, Value>,+}diff --git a/crates/hanashi/src/chat/types/mod.rs b/crates/hanashi/src/chat/types/mod.rsnew file mode 100644index 000000000..30e57b463--- /dev/null+++ b/crates/hanashi/src/chat/types/mod.rs@@ -0,0 +1,25 @@+mod capabilities;+mod content_block;+mod message;+mod reasoning_effort;+mod role;+mod token;+mod tool_call;+mod tool_description;+mod tool_function;+mod tool_namespace;+mod translation_input;+mod value;++pub use capabilities::Capabilities;+pub use content_block::{ContentBlock, ContentBlockType};+pub use message::Message;+pub use reasoning_effort::ReasoningEffort;+pub use role::Role;+pub use token::{Token, TokenId, TokenValue};+pub use tool_call::ToolCall;+pub use tool_description::ToolDescription;+pub use tool_function::ToolFunction;+pub use tool_namespace::ToolNamespace;+pub use translation_input::TranslationInput;+pub use value::Value;diff --git a/crates/hanashi/src/chat/types/reasoning_effort.rs b/crates/hanashi/src/chat/types/reasoning_effort.rsnew file mode 100644index 000000000..80a2ded03--- /dev/null+++ b/crates/hanashi/src/chat/types/reasoning_effort.rs@@ -0,0 +1,63 @@+use std::{+ fmt::{self, Display},+ str::FromStr,+};++use serde::{Deserialize, Deserializer, Serialize, Serializer, de};++#[bindings::export(Enum)]+#[derive(Debug, Clone, PartialEq, Eq, Hash)]+pub enum ReasoningEffort {+ Disabled,+ Default,+ Low,+ Medium,+ High,+}++impl FromStr for ReasoningEffort {+ type Err = String;++ fn from_str(s: &str) -> Result<Self, Self::Err> {+ match s {+ "disabled" => Ok(ReasoningEffort::Disabled),+ "default" => Ok(ReasoningEffort::Default),+ "low" => Ok(ReasoningEffort::Low),+ "medium" => Ok(ReasoningEffort::Medium),+ "high" => Ok(ReasoningEffort::High),+ other => Err(format!("Unknown reasoning effort: {other}")),+ }+ }+}++impl Display for ReasoningEffort {+ fn fmt(+ &self,+ formatter: &mut fmt::Formatter<'_>,+ ) -> fmt::Result {+ let name = match self {+ ReasoningEffort::Disabled => "disabled",+ ReasoningEffort::Default => "default",+ ReasoningEffort::Low => "low",+ ReasoningEffort::Medium => "medium",+ ReasoningEffort::High => "high",+ };+ write!(formatter, "{name}")+ }+}++impl Serialize for ReasoningEffort {+ fn serialize<S: Serializer>(+ &self,+ serializer: S,+ ) -> Result<S::Ok, S::Error> {+ serializer.serialize_str(&self.to_string())+ }+}++impl<'d> Deserialize<'d> for ReasoningEffort {+ fn deserialize<D: Deserializer<'d>>(deserializer: D) -> Result<Self, D::Error> {+ let name = String::deserialize(deserializer)?;+ Ok(ReasoningEffort::from_str(&name).map_err(de::Error::custom)?)+ }+}diff --git a/crates/hanashi/src/chat/types/role.rs b/crates/hanashi/src/chat/types/role.rsnew file mode 100644index 000000000..b260cb1dd--- /dev/null+++ b/crates/hanashi/src/chat/types/role.rs@@ -0,0 +1,72 @@+use std::{+ convert::Infallible,+ fmt::{self, Display},+ str::FromStr,+};++use serde::{Deserialize, Deserializer, Serialize, Serializer, de};++#[bindings::export(Enum)]+#[derive(Debug, Clone, PartialEq, Eq, Hash)]+pub enum Role {+ User {},+ Assistant {},+ System {},+ Developer {},+ Tool {},+ Custom {+ name: String,+ },+}++impl FromStr for Role {+ type Err = Infallible;++ fn from_str(s: &str) -> Result<Self, Self::Err> {+ Ok(match s {+ "user" => Role::User {},+ "assistant" => Role::Assistant {},+ "system" => Role::System {},+ "developer" => Role::Developer {},+ "tool" => Role::Tool {},+ other => Role::Custom {+ name: other.to_string(),+ },+ })+ }+}++impl Display for Role {+ fn fmt(+ &self,+ formatter: &mut fmt::Formatter<'_>,+ ) -> fmt::Result {+ let name = match self {+ Role::User {} => "user",+ Role::Assistant {} => "assistant",+ Role::System {} => "system",+ Role::Developer {} => "developer",+ Role::Tool {} => "tool",+ Role::Custom {+ name,+ } => name,+ };+ write!(formatter, "{name}")+ }+}++impl Serialize for Role {+ fn serialize<S: Serializer>(+ &self,+ serializer: S,+ ) -> Result<S::Ok, S::Error> {+ serializer.serialize_str(&self.to_string())+ }+}++impl<'d> Deserialize<'d> for Role {+ fn deserialize<D: Deserializer<'d>>(deserializer: D) -> Result<Self, D::Error> {+ let name = String::deserialize(deserializer)?;+ Ok(Role::from_str(&name).map_err(de::Error::custom)?)+ }+}diff --git a/crates/hanashi/src/chat/types/token.rs b/crates/hanashi/src/chat/types/token.rsnew file mode 100644index 000000000..8dd19d3a1--- /dev/null+++ b/crates/hanashi/src/chat/types/token.rs@@ -0,0 +1,46 @@+use std::fmt;++use serde::{Deserialize, Serialize};+use token_stream_parser::types::Token as ParserToken;++pub type TokenId = u32;+pub type TokenValue = String;++#[bindings::export(Struct)]+#[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]+#[serde(rename_all = "snake_case")]+pub struct Token {+ pub id: TokenId,+ pub value: TokenValue,+ pub is_special: bool,+}++impl fmt::Display for Token {+ fn fmt(+ &self,+ formatter: &mut fmt::Formatter<'_>,+ ) -> fmt::Result {+ let escaped: String = self.value.chars().flat_map(|character| character.escape_debug()).collect();+ write!(formatter, "{escaped}")+ }+}++impl From<ParserToken> for Token {+ fn from(token: ParserToken) -> Self {+ Self {+ id: token.id,+ value: token.value,+ is_special: token.is_special,+ }+ }+}++impl From<Token> for ParserToken {+ fn from(token: Token) -> Self {+ Self {+ id: token.id,+ value: token.value,+ is_special: token.is_special,+ }+ }+}diff --git a/crates/hanashi/src/chat/types/tool_call.rs b/crates/hanashi/src/chat/types/tool_call.rsnew file mode 100644index 000000000..500f6518b--- /dev/null+++ b/crates/hanashi/src/chat/types/tool_call.rs@@ -0,0 +1,11 @@+use serde::{Deserialize, Serialize};++use crate::chat::types::Value;++#[bindings::export(Struct)]+#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]+#[serde(rename_all = "snake_case")]+pub struct ToolCall {+ pub name: String,+ pub arguments: Value,+}diff --git a/crates/hanashi/src/chat/types/tool_description.rs b/crates/hanashi/src/chat/types/tool_description.rsnew file mode 100644index 000000000..38640df35--- /dev/null+++ b/crates/hanashi/src/chat/types/tool_description.rs@@ -0,0 +1,12 @@+use serde::{Deserialize, Serialize};++use crate::chat::types::ToolFunction;++#[bindings::export(Enum)]+#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]+#[serde(tag = "type", rename_all = "snake_case")]+pub enum ToolDescription {+ Function {+ function: ToolFunction,+ },+}diff --git a/crates/hanashi/src/chat/types/tool_function.rs b/crates/hanashi/src/chat/types/tool_function.rsnew file mode 100644index 000000000..0609e7aec--- /dev/null+++ b/crates/hanashi/src/chat/types/tool_function.rs@@ -0,0 +1,13 @@+use serde::{Deserialize, Serialize};++use crate::chat::types::Value;++#[bindings::export(Struct)]+#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]+#[serde(rename_all = "snake_case")]+pub struct ToolFunction {+ pub name: String,+ pub description: String,+ pub parameters: Option<Value>,+ pub r#return: Option<Value>,+}diff --git a/crates/hanashi/src/chat/types/tool_namespace.rs b/crates/hanashi/src/chat/types/tool_namespace.rsnew file mode 100644index 000000000..70393786e--- /dev/null+++ b/crates/hanashi/src/chat/types/tool_namespace.rs@@ -0,0 +1,12 @@+use serde::{Deserialize, Serialize};++use crate::chat::types::ToolDescription;++#[bindings::export(Struct)]+#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]+#[serde(rename_all = "snake_case")]+pub struct ToolNamespace {+ pub name: String,+ pub description: Option<String>,+ pub tools: Vec<ToolDescription>,+}diff --git a/crates/hanashi/src/chat/types/translation_input.rs b/crates/hanashi/src/chat/types/translation_input.rsnew file mode 100644index 000000000..70028de33--- /dev/null+++ b/crates/hanashi/src/chat/types/translation_input.rs@@ -0,0 +1,13 @@+use serde::{Deserialize, Serialize};++#[bindings::export(Enum)]+#[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]+#[serde(tag = "type", rename_all = "snake_case")]+pub enum TranslationInput {+ Text {+ text: String,+ },+ Image {+ url: String,+ },+}diff --git a/crates/hanashi/src/chat/types/value.rs b/crates/hanashi/src/chat/types/value.rsnew file mode 100644index 000000000..2a42887cd--- /dev/null+++ b/crates/hanashi/src/chat/types/value.rs@@ -0,0 +1,55 @@+use std::fmt;++use serde::{Deserialize, Deserializer, Serialize, Serializer};++#[bindings::export(Struct)]+#[derive(Clone, PartialEq)]+pub struct Value {+ pub json: String,+}++impl fmt::Debug for Value {+ fn fmt(+ &self,+ formatter: &mut fmt::Formatter<'_>,+ ) -> fmt::Result {+ let serde_value: serde_json::Value = serde_json::from_str(&self.json).map_err(|_| fmt::Error)?;+ let pretty_json = serde_json::to_string_pretty(&serde_value).map_err(|_| fmt::Error)?;+ write!(formatter, "{pretty_json}")+ }+}++impl Serialize for Value {+ fn serialize<S: Serializer>(+ &self,+ serializer: S,+ ) -> Result<S::Ok, S::Error> {+ let serde_value: serde_json::Value = serde_json::from_str(&self.json).map_err(serde::ser::Error::custom)?;+ serde_value.serialize(serializer)+ }+}++impl<'d> Deserialize<'d> for Value {+ fn deserialize<D: Deserializer<'d>>(deserializer: D) -> Result<Self, D::Error> {+ let serde_value = serde_json::Value::deserialize(deserializer)?;+ Ok(Value {+ json: serde_value.to_string(),+ })+ }+}++impl From<serde_json::Value> for Value {+ fn from(value: serde_json::Value) -> Self {+ Self {+ json: value.to_string(),+ }+ }+}++impl TryFrom<Value> for serde_json::Value {+ type Error = serde_json::Error;++ fn try_from(value: Value) -> Result<Self, Self::Error> {+ serde_json::from_str(&value.json)+ }+}diff --git a/crates/hanashi/src/lib.rs b/crates/hanashi/src/lib.rsnew file mode 100644index 000000000..7bd21c99c--- /dev/null+++ b/crates/hanashi/src/lib.rs@@ -0,0 +1,31 @@+#[cfg(feature = "bindings-uniffi")]+uniffi::setup_scaffolding!();++pub mod chat;++pub trait Encoding {+ type Config;+ type Context;+ type Input;+ type Output;+ type State;+ type Error;++ fn new(+ config: Self::Config,+ context: Self::Context,+ ) -> Result<Self, Self::Error>+ where+ Self: Sized;+ fn state(&self) -> &Self::State;+ fn reset(&mut self) -> Result<(), Self::Error>;++ fn encode(+ &mut self,+ value: Self::Input,+ ) -> Result<(), Self::Error>;+ fn decode(+ &mut self,+ value: Self::Output,+ ) -> Result<(), Self::Error>;+}diff --git a/crates/hanashi/tests/helpers/mod.rs b/crates/hanashi/tests/helpers/mod.rsnew file mode 100644index 000000000..e30fa8cf2--- /dev/null+++ b/crates/hanashi/tests/helpers/mod.rs@@ -0,0 +1,234 @@+#![allow(dead_code)]++use std::{collections::HashMap, path::PathBuf};++use hanashi::chat::types::{+ ContentBlock, Message, ReasoningEffort, Role, ToolDescription, ToolNamespace, TranslationInput,+};+use serde::Deserialize;+use tokenizers::Tokenizer;++fn test_data_path() -> PathBuf {+ PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("..").join("..").join("workspace").join("data")+}++fn configs_path() -> PathBuf {+ PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("configs")+}++#[derive(Deserialize, Clone, Debug)]+pub struct ResponseTestParameters {+ pub messages: Vec<serde_json::Value>,+ pub tools: Option<Vec<serde_json::Value>>,+ pub context: HashMap<String, serde_json::Value>,+}++impl ResponseTestParameters {+ pub fn tool_names(&self) -> Vec<String> {+ self.tools.as_ref().unwrap().iter().map(|tool| tool["function"]["name"].as_str().unwrap().to_string()).collect()+ }+}++#[derive(Deserialize, Clone, Debug)]+pub struct ResponseTestResult {+ pub prompt: String,+ pub completion: String,+}++#[derive(Deserialize, Clone, Debug)]+pub struct ResponseTestExpectations {+ pub reasoning: bool,+ pub tool_call_names: Vec<String>,+}++#[derive(Deserialize, Clone, Debug)]+pub struct ResponseTestData {+ pub repo_id: String,+ pub parameters: ResponseTestParameters,+ pub result: ResponseTestResult,+ pub expectations: ResponseTestExpectations,+}++#[derive(Deserialize, Clone, Debug)]+pub struct RegistryModel {+ pub repo_id: String,+ pub encodings: Vec<serde_json::Value>,+}++impl RegistryModel {+ pub fn name(&self) -> String {+ self.repo_id.replace("/", "_")+ }+}++pub fn load_registry() -> Vec<RegistryModel> {+ let path = test_data_path().join("registry.json");+ let content =+ std::fs::read_to_string(&path).unwrap_or_else(|error| panic!("Failed to read {}: {error}", path.display()));+ serde_json::from_str(&content).unwrap_or_else(|error| panic!("Failed to parse {}: {error}", path.display()))+}++pub fn response_path(model_name: &str) -> PathBuf {+ test_data_path().join("responses").join(format!("{model_name}.json"))+}++pub fn load_response_test_data(model_name: &str) -> Vec<ResponseTestData> {+ let path = response_path(model_name);+ let content =+ std::fs::read_to_string(&path).unwrap_or_else(|error| panic!("Failed to read {}: {error}", path.display()));+ serde_json::from_str(&content).unwrap_or_else(|error| panic!("Failed to parse {}: {error}", path.display()))+}++pub fn tokenizer_directory(model_name: &str) -> PathBuf {+ test_data_path().join("tokenizers").join(model_name)+}++pub fn load_tokenizer(model_name: &str) -> Tokenizer {+ let path = tokenizer_directory(model_name).join("tokenizer.json");+ Tokenizer::from_file(path.to_str().unwrap())+ .unwrap_or_else(|error| panic!("Failed to load tokenizer {}: {error}", path.display()))+}++fn resolve_reasoning_effort(context: &HashMap<String, serde_json::Value>) -> Option<ReasoningEffort> {+ let value = context.get("enable_thinking")?;+ match value.as_bool() {+ Some(true) => Some(ReasoningEffort::Default),+ Some(false) => Some(ReasoningEffort::Disabled),+ _ => None,+ }+}++fn build_system_message(+ raw_messages: &[serde_json::Value],+ reasoning_effort: Option<ReasoningEffort>,+) -> Option<Message> {+ let system_raw = raw_messages.iter().find(|raw| raw["role"].as_str() == Some("system"));++ let mut content = Vec::new();+ if let Some(raw) = system_raw {+ content.push(ContentBlock::Text {+ value: raw["content"].as_str().unwrap().to_string(),+ });+ }+ if let Some(effort) = reasoning_effort {+ content.push(ContentBlock::ReasoningEffort {+ value: effort,+ });+ }+ if content.is_empty() {+ return None;+ }++ Some(Message {+ role: Role::System {},+ content,+ metadata: HashMap::new(),+ })+}++fn build_developer_message(tools: &Option<Vec<serde_json::Value>>) -> Option<Message> {+ let tools = tools.as_ref()?;+ let tool_descriptions: Vec<ToolDescription> =+ tools.iter().filter_map(|tool| serde_json::from_value(tool.clone()).ok()).collect();++ Some(Message {+ role: Role::Developer {},+ content: vec![ContentBlock::Tools {+ namespaces: vec![ToolNamespace {+ name: "functions".to_string(),+ description: None,+ tools: tool_descriptions,+ }],+ }],+ metadata: HashMap::new(),+ })+}++fn build_user_content(raw: &serde_json::Value) -> Vec<ContentBlock> {+ if let Some(text) = raw["content"].as_str() {+ return vec![ContentBlock::Text {+ value: text.to_string(),+ }];+ }+ if let Some(items) = raw["content"].as_array() {+ return items+ .iter()+ .map(|item| {+ let content_type = item["type"].as_str().unwrap();+ match content_type {+ "text" => ContentBlock::Translation {+ input: TranslationInput::Text {+ text: item["text"].as_str().unwrap().to_string(),+ },+ source_language_code: item["source_lang_code"].as_str().unwrap().to_string(),+ target_language_code: item["target_lang_code"].as_str().unwrap().to_string(),+ },+ "image" => ContentBlock::Translation {+ input: TranslationInput::Image {+ url: item["url"].as_str().unwrap().to_string(),+ },+ source_language_code: item["source_lang_code"].as_str().unwrap().to_string(),+ target_language_code: item["target_lang_code"].as_str().unwrap().to_string(),+ },+ other => {+ panic!("Unknown translation content type: {other}")+ },+ }+ })+ .collect();+ }+ panic!("User content must be a string or array");+}++fn build_user_messages(raw_messages: &[serde_json::Value]) -> Vec<Message> {+ raw_messages+ .iter()+ .filter(|raw| raw["role"].as_str() == Some("user"))+ .map(|raw| Message {+ role: Role::User {},+ content: build_user_content(raw),+ metadata: HashMap::new(),+ })+ .collect()+}++pub fn build_messages(data: &ResponseTestData) -> Vec<Message> {+ let raw_messages = &data.parameters.messages;+ let reasoning_effort = resolve_reasoning_effort(&data.parameters.context);++ let mut used_count = 0;+ let mut messages = Vec::new();++ if let Some(system_message) = build_system_message(raw_messages, reasoning_effort) {+ if raw_messages.iter().any(|raw| raw["role"].as_str() == Some("system")) {+ used_count += 1;+ }+ messages.push(system_message);+ }++ if let Some(developer_message) = build_developer_message(&data.parameters.tools) {+ messages.push(developer_message);+ }++ let user_messages = build_user_messages(raw_messages);+ used_count += user_messages.len();+ messages.extend(user_messages);++ assert_eq!(used_count, raw_messages.len(), "Not all raw messages were used");++ messages+}++pub fn normalize_pattern(+ result: &str,+ expected: &str,+ pattern: &str,+) -> String {+ let regex = regex::Regex::new(pattern).unwrap();+ let expected_match = regex.find(expected).map(|matched| matched.as_str());+ let result_match = regex.find(result).map(|matched| matched.as_str());+ match (expected_match, result_match) {+ (Some(expected), Some(actual)) => result.replace(actual, expected),+ _ => result.to_string(),+ }+}diff --git a/crates/hanashi/tests/test_encoding.rs b/crates/hanashi/tests/test_encoding.rsnew file mode 100644index 000000000..1268a3123--- /dev/null+++ b/crates/hanashi/tests/test_encoding.rs@@ -0,0 +1,387 @@+mod helpers;++use std::collections::HashMap;++use hanashi::{+ Encoding as EncodingTrait,+ chat::{+ encoding::{+ Config as EncodingConfig, Context, Encoding, TokenizerLocation,+ hanashi::Config as HanashiConfig,+ harmony::{Config as HarmonyConfig, EncodingName as HarmonyEncodingName},+ },+ types::{ContentBlock, Message, ReasoningEffort, Role},+ },+};+use helpers::{+ build_messages, load_registry, load_response_test_data, load_tokenizer, normalize_pattern, response_path,+ tokenizer_directory,+};++fn print_warning(message: &str) {+ println!("\x1b[33m{}\x1b[0m", message);+}++fn run_encoding_test(+ expected_config: &EncodingConfig,+ date_pattern: Option<&str>,+ tools_pattern: Option<&str>,+ ignore_prompt: bool,+ ignore_reasoning: bool,+ messages_normalizer: Option<fn(String, Option<&str>, Vec<Message>) -> Vec<Message>>,+) {+ let registry = load_registry();++ for model in ®istry {+ let has_encoding = model.encodings.iter().any(|encoding_value| {+ serde_json::from_value::<EncodingConfig>(encoding_value.clone())+ .map(|config| &config == expected_config)+ .unwrap_or(false)+ });+ if !has_encoding {+ continue;+ }+ let tokenizer_directory = tokenizer_directory(&model.name());+ if !tokenizer_directory.exists() {+ continue;+ }+ let response_path = response_path(&model.name());+ if !response_path.exists() {+ continue;+ }+ println!("Validation of {}", model.repo_id);++ let tokenizer = load_tokenizer(&model.name());+ let test_data = load_response_test_data(&model.name());+ let context = Context {+ tokenizer_location: TokenizerLocation::Directory {+ path: tokenizer_directory.to_str().unwrap().to_string(),+ name: None,+ },+ };+ let mut encoding = Encoding::new(expected_config.clone(), context).unwrap();++ for data in &test_data {+ let messages = match messages_normalizer {+ Some(normalize) => normalize(data.result.prompt.clone(), date_pattern, build_messages(data)),+ None => build_messages(data),+ };+ let completion_token_ids =+ tokenizer.encode(data.result.completion.as_str(), false).unwrap().get_ids().to_vec();++ encoding.reset().unwrap();+ encoding.encode(messages).unwrap();+ let prompt = encoding.state().text();+ let prompt = match date_pattern {+ Some(pattern) => normalize_pattern(&prompt, &data.result.prompt, pattern),+ None => prompt,+ };+ let prompt = match tools_pattern {+ Some(pattern) => normalize_pattern(&prompt, &data.result.prompt, pattern),+ None => prompt,+ };+ if ignore_prompt {+ if prompt != data.result.prompt {+ print_warning(&format!(+ "Prompt mismatch\nProvided: {:?}\nExpected: {:?}\n",+ prompt, data.result.prompt+ ));+ }+ } else {+ assert_eq!(prompt, data.result.prompt);+ }++ for token_id in completion_token_ids {+ encoding.decode(vec![token_id]).unwrap();+ }+ let assistant_message = encoding.state().messages.last().unwrap();+ let has_reasoning =+ assistant_message.content.iter().any(|block| matches!(block, ContentBlock::Reasoning { .. }));+ let used_tool_calls = assistant_message+ .content+ .iter()+ .flat_map(|block| match block {+ ContentBlock::ToolCall {+ value,+ } => Some(value.name.clone()),+ _ => None,+ })+ .collect::<Vec<_>>();+ assert_eq!(assistant_message.role, Role::Assistant {});+ if ignore_reasoning {+ if has_reasoning != data.expectations.reasoning {+ print_warning("Reasoning mismatch");+ }+ } else {+ assert_eq!(has_reasoning, data.expectations.reasoning);+ }+ if used_tool_calls != data.expectations.tool_call_names {+ print_warning(&format!(+ "Tool calls mismatch\nProvided: {:?}\nExpected: {:?}\nUsed: {:?}\nCompletion: {}\nReqiest: {:#?}\nMessage: {:#?}\n",+ data.parameters.tool_names(),+ data.expectations.tool_call_names,+ used_tool_calls,+ data.result.completion,+ data.parameters.messages,+ assistant_message,+ ));+ }+ }+ }+}++#[test]+fn test_encoding_gpt_oss() {+ let date_pattern = Some(r"Current date: (\d{4}-\d{2}-\d{2})");+ let tools_pattern = Some(r"(?s)# Tools\n\n.*?} // namespace functions");++ run_encoding_test(&EncodingConfig::Hanashi(HanashiConfig::GptOss), date_pattern, None, false, false, None);++ run_encoding_test(+ &EncodingConfig::Harmony(HarmonyConfig {+ encoding_name: HarmonyEncodingName::GptOss,+ }),+ date_pattern,+ tools_pattern,+ false,+ false,+ Some(|prompt, date_pattern, messages| {+ let date_regex = regex::Regex::new(date_pattern.unwrap()).unwrap();+ let conversation_date = date_regex+ .captures(&prompt)+ .and_then(|captures| captures.get(1))+ .map(|matched| matched.as_str().to_string())+ .unwrap();++ let original_system_message = messages.iter().find(|message| message.role == Role::System {}).cloned();+ let original_developer_message =+ messages.iter().find(|message| message.role == Role::Developer {}).cloned();+ let other_messages = messages+ .into_iter()+ .filter(|message| message.role != Role::System {} && message.role != Role::Developer {})+ .collect::<Vec<_>>();++ let system_message = Message {+ role: Role::System {},+ content: vec![+ ContentBlock::ReasoningEffort {+ value: ReasoningEffort::Medium,+ },+ ContentBlock::ConversationStartDate {+ value: conversation_date,+ },+ ],+ metadata: HashMap::new(),+ };+ let mut developer_message = Message {+ role: Role::Developer {},+ content: vec![],+ metadata: HashMap::new(),+ };+ if let Some(original_developer_message) = original_developer_message {+ for block in original_developer_message.content {+ let new_block = block.clone();+ match block {+ ContentBlock::Tools {+ namespaces,+ } => {+ if namespaces.iter().any(|namespace| !namespace.tools.is_empty()) {+ developer_message.content.push(new_block);+ }+ },+ _ => {},+ }+ }+ }+ if let Some(original_system_message) = original_system_message {+ for block in original_system_message.content {+ match block {+ ContentBlock::Text {+ value,+ } => {+ developer_message.content.push(ContentBlock::Text {+ value: format!(+ "{}{}",+ value,+ if developer_message.content.is_empty() {+ "\n\n"+ } else {+ ""+ }+ )+ .to_string(),+ });+ break;+ },+ _ => {},+ }+ }+ }++ let mut normalized_messages = vec![system_message];+ if !developer_message.content.is_empty() {+ normalized_messages.push(developer_message);+ }+ normalized_messages.extend(other_messages);+ normalized_messages+ }),+ );+}++#[test]+fn test_encoding_llama_31() {+ run_encoding_test(&EncodingConfig::Hanashi(HanashiConfig::Llama31), None, None, false, false, None);+}++#[test]+fn test_encoding_llama_32() {+ run_encoding_test(+ &EncodingConfig::Hanashi(HanashiConfig::Llama32),+ Some(r"Today Date: (.+?)\n"),+ None,+ false,+ false,+ None,+ );+}++#[test]+fn test_encoding_qwen25() {+ run_encoding_test(&EncodingConfig::Hanashi(HanashiConfig::Qwen25), None, None, false, false, None);+}++#[test]+fn test_encoding_qwen25_coder() {+ run_encoding_test(&EncodingConfig::Hanashi(HanashiConfig::Qwen25Coder), None, None, false, false, None);+}++#[test]+fn test_encoding_qwen3() {+ run_encoding_test(&EncodingConfig::Hanashi(HanashiConfig::Qwen3), None, None, false, false, None);+}++#[test]+fn test_encoding_qwen3_instruct() {+ run_encoding_test(&EncodingConfig::Hanashi(HanashiConfig::Qwen3Instruct), None, None, false, false, None);+}++#[test]+fn test_encoding_qwen3_thinking() {+ run_encoding_test(&EncodingConfig::Hanashi(HanashiConfig::Qwen3Thinking), None, None, false, false, None);+}++#[test]+fn test_encoding_qwen35() {+ run_encoding_test(&EncodingConfig::Hanashi(HanashiConfig::Qwen35), None, None, false, false, None);+}++#[test]+fn test_encoding_lfm2() {+ run_encoding_test(&EncodingConfig::Hanashi(HanashiConfig::Lfm2), None, None, false, false, None);+}++#[test]+fn test_encoding_lfm25_instruct() {+ run_encoding_test(&EncodingConfig::Hanashi(HanashiConfig::Lfm25Instruct), None, None, false, false, None);+}++#[test]+fn test_encoding_lfm25_thinking() {+ run_encoding_test(&EncodingConfig::Hanashi(HanashiConfig::Lfm25Thinking), None, None, false, false, None);+}++#[test]+fn test_encoding_deepseek_r1_distill_qwen() {+ run_encoding_test(&EncodingConfig::Hanashi(HanashiConfig::DeepseekR1DistillQwen), None, None, false, false, None);+}++#[test]+fn test_encoding_rnj_1() {+ run_encoding_test(+ &EncodingConfig::Hanashi(HanashiConfig::Rnj1),+ None,+ Some(r"(?s)<tools>\n.*?</tools>"),+ false,+ false,+ None,+ );+}++#[test]+fn test_encoding_gemma_2() {+ run_encoding_test(&EncodingConfig::Hanashi(HanashiConfig::Gemma2), None, None, false, false, None);+}++#[test]+fn test_encoding_gemma_3() {+ run_encoding_test(&EncodingConfig::Hanashi(HanashiConfig::Gemma3), None, None, false, false, None);+}++#[test]+fn test_encoding_functiongemma() {+ run_encoding_test(+ &EncodingConfig::Hanashi(HanashiConfig::FunctionGemma),+ None,+ None,+ false,+ false,+ Some(|_, _, messages| {+ let mut result: Vec<Message> = Vec::new();+ for mut message in messages {+ if matches!(message.role, Role::System {}) {+ message.role = Role::Developer {};+ }+ if let Some(last) = result.last_mut() {+ if matches!(last.role, Role::Developer {}) && matches!(message.role, Role::Developer {}) {+ last.content.extend(message.content);+ continue;+ }+ }+ result.push(message);+ }+ result+ }),+ );+}++#[test]+fn test_encoding_translategemma() {+ run_encoding_test(&EncodingConfig::Hanashi(HanashiConfig::TranslateGemma), None, None, false, false, None);+}++#[test]+fn test_encoding_gemma_4() {+ run_encoding_test(&EncodingConfig::Hanashi(HanashiConfig::Gemma4), None, None, false, true, None);+}++#[test]+fn test_encoding_smollm2() {+ run_encoding_test(&EncodingConfig::Hanashi(HanashiConfig::SmolLm2), None, None, false, false, None);+}++#[test]+fn test_encoding_smollm3() {+ run_encoding_test(+ &EncodingConfig::Hanashi(HanashiConfig::SmolLm3),+ Some(r"Today Date: (.+?)\n"),+ Some(r"(?s)<tools>\n.*?</tools>"),+ false,+ true,+ None,+ );+}++#[test]+fn test_encoding_codestral() {+ run_encoding_test(&EncodingConfig::Hanashi(HanashiConfig::Codestral), None, None, false, false, None);+}++#[test]+fn test_encoding_polaris() {+ run_encoding_test(&EncodingConfig::Hanashi(HanashiConfig::Polaris), None, None, false, false, None);+}++#[test]+fn test_encoding_nanbeige() {+ run_encoding_test(&EncodingConfig::Hanashi(HanashiConfig::Nanbeige), None, None, true, false, None);+}diff --git a/crates/json-transform/Cargo.toml b/crates/json-transform/Cargo.tomlnew file mode 100644index 000000000..d327c0894--- /dev/null+++ b/crates/json-transform/Cargo.toml@@ -0,0 +1,22 @@+[package]+name = "json-transform"+version.workspace = true+edition.workspace = true+rust-version.workspace = true+license.workspace = true+authors.workspace = true+repository.workspace = true++[dependencies]+serde.workspace = true+serde_json.workspace = true+indexmap.workspace = true+thiserror.workspace = true+regex.workspace = true+fancy-regex.workspace = true+llm_json.workspace = true+tracing.workspace = true++[dev-dependencies]+tracing-subscriber.workspace = true+tracing-tree.workspace = truediff --git a/crates/json-transform/src/error.rs b/crates/json-transform/src/error.rsnew file mode 100644index 000000000..7f0660f66--- /dev/null+++ b/crates/json-transform/src/error.rs@@ -0,0 +1,17 @@+use thiserror::Error;++#[derive(Debug, Error)]+pub enum TransformError {+ #[error("Undefined pipeline: {name}")]+ UndefinedPipeline {+ name: String,+ },+ #[error("Invalid regex pattern: {pattern}")]+ InvalidRegex {+ pattern: String,+ },+ #[error("Invalid JSON: {message}")]+ InvalidJson {+ message: String,+ },+}diff --git a/crates/json-transform/src/execution/access.rs b/crates/json-transform/src/execution/access.rsnew file mode 100644index 000000000..0ef275e9a--- /dev/null+++ b/crates/json-transform/src/execution/access.rs@@ -0,0 +1,59 @@+use serde_json::Value;++use crate::{+ TransformError,+ execution::operation::{GetTarget, PathSegment},+};++#[tracing::instrument(skip(input), fields(target = %target))]+pub fn execute_get(+ target: &GetTarget,+ input: Value,+) -> Result<Value, TransformError> {+ match target {+ GetTarget::Key {+ key,+ } => execute_get_key(key, input),+ GetTarget::Path {+ path,+ } => execute_get_path(path, input),+ }+}++fn execute_get_key(+ key: &str,+ input: Value,+) -> Result<Value, TransformError> {+ match input {+ Value::Object(map) => Ok(map.get(key).cloned().unwrap_or(Value::Null)),+ _ => Ok(Value::Null),+ }+}++fn execute_get_path(+ path: &[PathSegment],+ input: Value,+) -> Result<Value, TransformError> {+ let mut current = input;+ for segment in path {+ current = match segment {+ PathSegment::Key(key) => match current {+ Value::Object(map) => map.get(key).cloned().unwrap_or(Value::Null),+ _ => Value::Null,+ },+ PathSegment::Index(index) => match current {+ Value::Array(items) => items.into_iter().nth(*index).unwrap_or(Value::Null),+ _ => Value::Null,+ },+ };+ }+ Ok(current)+}++#[tracing::instrument(skip_all)]+pub fn execute_first(input: Value) -> Result<Value, TransformError> {+ match input {+ Value::Array(items) => Ok(items.into_iter().next().unwrap_or(Value::Null)),+ _ => Ok(Value::Null),+ }+}diff --git a/crates/json-transform/src/execution/collection.rs b/crates/json-transform/src/execution/collection.rsnew file mode 100644index 000000000..453a6a7d3--- /dev/null+++ b/crates/json-transform/src/execution/collection.rs@@ -0,0 +1,133 @@+use serde_json::Value;++use crate::{+ TransformError, TransformSchema,+ execution::{Condition, execute_pipeline, operation::Pipeline},+};++pub fn execute_each(+ apply: &Pipeline,+ input: Value,+ schema: &TransformSchema,+) -> Result<Value, TransformError> {+ let Value::Array(items) = input else {+ return Ok(Value::Null);+ };+ let _span = tracing::info_span!("execute_each", items = items.len()).entered();+ let results: Result<Vec<Value>, TransformError> =+ items.into_iter().map(|element| execute_pipeline(apply, element, schema)).collect();+ Ok(Value::Array(results?))+}++pub fn execute_flat_map(+ apply: &Pipeline,+ input: Value,+ schema: &TransformSchema,+) -> Result<Value, TransformError> {+ let Value::Array(items) = input else {+ return Ok(input);+ };+ let _span = tracing::info_span!("execute_flat_map", items = items.len()).entered();+ let mut results: Vec<Value> = Vec::new();+ for element in items {+ let result = execute_pipeline(apply, element, schema)?;+ match result {+ Value::Array(inner_items) => results.extend(inner_items),+ other => results.push(other),+ }+ }+ Ok(Value::Array(results))+}++pub fn execute_filter(+ condition: &Condition,+ input: Value,+) -> Result<Value, TransformError> {+ let Value::Array(items) = input else {+ return Ok(Value::Null);+ };+ let input_count = items.len();+ let filtered: Vec<Value> = items.into_iter().filter(|element| condition.evaluate(element)).collect();+ let _span = tracing::info_span!(+ "execute_filter",+ condition = %condition,+ input = input_count,+ output = filtered.len()+ )+ .entered();+ Ok(Value::Array(filtered))+}++#[tracing::instrument(skip(input))]+pub fn execute_join(+ separator: &str,+ input: Value,+) -> Result<Value, TransformError> {+ let Value::Array(items) = input else {+ return Ok(Value::Null);+ };+ let parts: Vec<&str> = items.iter().filter_map(|item| item.as_str()).collect();+ Ok(Value::String(parts.join(separator)))+}++#[tracing::instrument(skip_all)]+pub fn execute_reduce(+ key_pipeline: &Pipeline,+ r#if: &Option<Condition>,+ then_pipeline: &Pipeline,+ input: Value,+ schema: &TransformSchema,+) -> Result<Value, TransformError> {+ let Value::Array(items) = input else {+ return Ok(Value::Null);+ };++ let mut result: Vec<Value> = Vec::new();+ let mut group: Vec<Value> = Vec::new();+ let mut group_key: Option<Value> = None;++ for item in items {+ let item_key = execute_pipeline(key_pipeline, item.clone(), schema)?;++ let should_group = match r#if {+ Some(condition) => condition.evaluate(&item_key),+ None => true,+ };++ if !should_group {+ flush_group(&mut group, &mut group_key, &mut result, then_pipeline, schema)?;+ result.push(item);+ continue;+ }++ let same_group = group_key.as_ref().map(|existing| existing == &item_key).unwrap_or(false);++ if !group.is_empty() && !same_group {+ flush_group(&mut group, &mut group_key, &mut result, then_pipeline, schema)?;+ }++ group_key = Some(item_key);+ group.push(item);+ }++ flush_group(&mut group, &mut group_key, &mut result, then_pipeline, schema)?;++ Ok(Value::Array(result))+}++fn flush_group(+ group: &mut Vec<Value>,+ group_key: &mut Option<Value>,+ result: &mut Vec<Value>,+ then_pipeline: &Pipeline,+ schema: &TransformSchema,+) -> Result<(), TransformError> {+ if group.is_empty() {+ return Ok(());+ }+ let group_array = Value::Array(std::mem::take(group));+ let merged = execute_pipeline(then_pipeline, group_array, schema)?;+ result.push(merged);+ *group_key = None;+ Ok(())+}diff --git a/crates/json-transform/src/execution/condition.rs b/crates/json-transform/src/execution/condition.rsnew file mode 100644index 000000000..b0d0610ed--- /dev/null+++ b/crates/json-transform/src/execution/condition.rs@@ -0,0 +1,117 @@+use std::fmt;++use serde::{Deserialize, Serialize};+use serde_json::Value;++/// A condition for filtering or branching.+#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]+#[serde(tag = "type", rename_all = "snake_case")]+pub enum Condition {+ Equals {+ value: Value,+ },+ StartsWith {+ value: String,+ },+ Contains {+ value: String,+ },+ IsNull,+ Field {+ key: String,+ condition: Box<Condition>,+ },+ Not {+ condition: Box<Condition>,+ },+ And {+ conditions: Vec<Condition>,+ },+ Or {+ conditions: Vec<Condition>,+ },+}++impl fmt::Display for Condition {+ fn fmt(+ &self,+ formatter: &mut fmt::Formatter<'_>,+ ) -> fmt::Result {+ match self {+ Self::Equals {+ value,+ } => write!(formatter, "equals({value})"),+ Self::StartsWith {+ value,+ } => {+ write!(formatter, "starts_with({value})")+ },+ Self::Contains {+ value,+ } => {+ write!(formatter, "contains({value})")+ },+ Self::IsNull => write!(formatter, "is_null"),+ Self::Field {+ key,+ condition,+ } => {+ write!(formatter, "field({key}, {condition})")+ },+ Self::Not {+ condition,+ } => {+ write!(formatter, "not({condition})")+ },+ Self::And {+ conditions,+ } => {+ write!(formatter, "and({})", conditions.len())+ },+ Self::Or {+ conditions,+ } => {+ write!(formatter, "or({})", conditions.len())+ },+ }+ }+}++impl Condition {+ pub fn evaluate(+ &self,+ input: &Value,+ ) -> bool {+ match self {+ Condition::Equals {+ value,+ } => input == value,+ Condition::StartsWith {+ value,+ } => input.as_str().map(|text| text.starts_with(value.as_str())).unwrap_or(false),+ Condition::Contains {+ value,+ } => input.as_str().map(|text| text.contains(value.as_str())).unwrap_or(false),+ Condition::IsNull => input.is_null(),+ Condition::Field {+ key,+ condition,+ } => {+ let field_value = match input {+ Value::Object(map) => map.get(key).unwrap_or(&Value::Null),+ _ => &Value::Null,+ };+ condition.evaluate(field_value)+ },+ Condition::Not {+ condition,+ } => !condition.evaluate(input),+ Condition::And {+ conditions,+ } => conditions.iter().all(|condition| condition.evaluate(input)),+ Condition::Or {+ conditions,+ } => conditions.iter().any(|condition| condition.evaluate(input)),+ }+ }+}diff --git a/crates/json-transform/src/execution/construction.rs b/crates/json-transform/src/execution/construction.rsnew file mode 100644index 000000000..70f5e27c3--- /dev/null+++ b/crates/json-transform/src/execution/construction.rs@@ -0,0 +1,69 @@+use indexmap::IndexMap;+use serde_json::Value;++use crate::{+ TransformError, TransformSchema,+ execution::{execute_pipeline, operation::Pipeline},+};++#[tracing::instrument(skip_all, fields(key = key))]+pub fn execute_resolve(+ key: &str,+ map: &IndexMap<String, Value>,+ default: Option<&Value>,+ input: Value,+) -> Result<Value, TransformError> {+ let Value::Object(mut object) = input else {+ return Ok(Value::Null);+ };+ let field_value = object.get(key).and_then(|value| value.as_str()).unwrap_or("");+ let resolved = map.get(field_value).or(default).cloned().unwrap_or(Value::Null);+ object.insert(key.to_string(), resolved);+ Ok(Value::Object(object))+}++#[tracing::instrument(skip(fields, input, schema), fields(field_count = fields.len()))]+pub fn execute_object(+ fields: &IndexMap<String, Pipeline>,+ required: &[String],+ input: Value,+ schema: &TransformSchema,+) -> Result<Value, TransformError> {+ let mut map = serde_json::Map::new();+ for (field_name, pipeline) in fields {+ let value = execute_pipeline(pipeline, input.clone(), schema)?;+ let is_empty = match &value {+ Value::Null => true,+ Value::String(text) => text.is_empty(),+ Value::Array(items) => items.is_empty(),+ _ => false,+ };+ if is_empty && !required.contains(field_name) {+ continue;+ }+ map.insert(field_name.clone(), value);+ }+ Ok(Value::Object(map))+}++#[tracing::instrument(skip_all, fields(value = %value))]+pub fn execute_literal(value: &Value) -> Result<Value, TransformError> {+ Ok(value.clone())+}++#[tracing::instrument(skip_all)]+pub fn execute_to_array(input: Value) -> Result<Value, TransformError> {+ Ok(Value::Array(vec![input]))+}++#[tracing::instrument(skip_all)]+pub fn execute_default(+ fallback: &Value,+ input: Value,+) -> Result<Value, TransformError> {+ if input.is_null() {+ Ok(fallback.clone())+ } else {+ Ok(input)+ }+}diff --git a/crates/json-transform/src/execution/control_flow.rs b/crates/json-transform/src/execution/control_flow.rsnew file mode 100644index 000000000..2181cec54--- /dev/null+++ b/crates/json-transform/src/execution/control_flow.rs@@ -0,0 +1,114 @@+use indexmap::IndexMap;+use serde_json::Value;++use crate::{+ TransformError, TransformSchema,+ execution::{+ execute_pipeline,+ operation::{CallTarget, Pipeline, SwitchCase},+ },+};++pub fn execute_switch(+ key_pipeline: &Pipeline,+ cases: &[SwitchCase],+ default: &Option<Pipeline>,+ input: Value,+ schema: &TransformSchema,+) -> Result<Value, TransformError> {+ let key_description: String =+ key_pipeline.iter().map(|operation| operation.to_string()).collect::<Vec<_>>().join(", ");+ let cases_description: String = cases.iter().map(|case| case.when.to_string()).collect::<Vec<_>>().join(", ");+ let _span = tracing::info_span!(+ "execute_switch",+ key = %key_description,+ cases = %cases_description,+ )+ .entered();++ let match_value = execute_pipeline(key_pipeline, input.clone(), schema)?;++ for case in cases {+ if case.when.evaluate(&match_value) {+ tracing::trace!(matched = %case.when);+ return execute_pipeline(&case.then, input, schema);+ }+ }++ tracing::trace!("matched default");+ match default {+ Some(pipeline) => execute_pipeline(pipeline, input, schema),+ None => Ok(Value::Null),+ }+}++#[tracing::instrument(skip(arguments, input, schema), fields(target = %target))]+pub fn execute_call(+ target: &CallTarget,+ arguments: &IndexMap<String, Value>,+ input: Value,+ schema: &TransformSchema,+) -> Result<Value, TransformError> {+ let resolved_name = match target {+ CallTarget::Static {+ name,+ } => name.clone(),+ CallTarget::Dynamic {+ key,+ } => match &input {+ Value::Object(map) => {+ map.get(key).and_then(|value| value.as_str()).map(|text| text.to_string()).ok_or_else(|| {+ TransformError::UndefinedPipeline {+ name: format!("dynamic call key {key} not found"),+ }+ })?+ },+ _ => {+ return Err(TransformError::UndefinedPipeline {+ name: "dynamic call requires object input".to_string(),+ });+ },+ },+ };++ let effective_input = if arguments.is_empty() {+ input+ } else {+ let mut map = match input {+ Value::Object(map) => map,+ _ => serde_json::Map::new(),+ };+ for (key, value) in arguments {+ map.insert(key.clone(), value.clone());+ }+ Value::Object(map)+ };++ let pipeline = schema.pipelines.get(&resolved_name).ok_or_else(|| TransformError::UndefinedPipeline {+ name: resolved_name.clone(),+ })?;+ execute_pipeline(pipeline, effective_input, schema)+}++#[tracing::instrument(skip_all, fields(field = field, with = with))]+pub fn execute_on(+ field: &str,+ with: Option<&str>,+ do_pipeline: &Pipeline,+ input: Value,+ schema: &TransformSchema,+) -> Result<Value, TransformError> {+ let working_value = match with {+ Some(key) => input.as_object().and_then(|map| map.get(key).cloned()).unwrap_or(Value::Null),+ None => input.clone(),+ };++ let is_active =+ input.as_object().and_then(|map| map.get(field)).map(|value| value == &Value::Bool(true)).unwrap_or(false);++ if is_active {+ execute_pipeline(do_pipeline, working_value, schema)+ } else {+ Ok(working_value)+ }+}diff --git a/crates/json-transform/src/execution/mod.rs b/crates/json-transform/src/execution/mod.rsnew file mode 100644index 000000000..1a9849746--- /dev/null+++ b/crates/json-transform/src/execution/mod.rs@@ -0,0 +1,28 @@+mod access;+mod collection;+mod condition;+mod construction;+mod control_flow;+mod operation;+mod string;++pub use condition::Condition;+pub use operation::{CallTarget, GetTarget, Operation, PathSegment, Pipeline, SwitchCase};+use serde_json::Value;++use crate::{TransformError, TransformSchema};++pub(crate) fn execute_pipeline(+ pipeline: &Pipeline,+ input: Value,+ schema: &TransformSchema,+) -> Result<Value, TransformError> {+ if pipeline.is_empty() {+ return Ok(input);+ }+ let mut output = input;+ for operation in pipeline {+ output = operation.execute(output, schema)?;+ }+ Ok(output)+}diff --git a/crates/json-transform/src/execution/operation.rs b/crates/json-transform/src/execution/operation.rsnew file mode 100644index 000000000..0bc68182b--- /dev/null+++ b/crates/json-transform/src/execution/operation.rs@@ -0,0 +1,397 @@+use std::fmt;++use indexmap::IndexMap;+use serde::{Deserialize, Serialize};+use serde_json::Value;++use crate::{+ TransformError, TransformSchema,+ execution::{access, collection, condition::Condition, construction, control_flow, string},+ regex::RegexEngine,+};++/// A sequence of operations applied left to right.+/// Empty pipeline passes input through unchanged (identity).+pub type Pipeline = Vec<Operation>;++/// A single segment in a path-based Get.+#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, Hash)]+#[serde(untagged)]+pub enum PathSegment {+ Index(usize),+ Key(String),+}++/// Target for the Get operation — either a single key or a multi-step path.+#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]+#[serde(untagged)]+pub enum GetTarget {+ Path {+ path: Vec<PathSegment>,+ },+ Key {+ key: String,+ },+}++/// Target for the Call operation — static name or dynamic key lookup.+#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]+#[serde(untagged)]+pub enum CallTarget {+ Dynamic {+ key: String,+ },+ Static {+ name: String,+ },+}++/// A single case in a Switch operation.+#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]+pub struct SwitchCase {+ pub when: Condition,+ pub then: Pipeline,+}++/// A single transformation step.+#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]+#[serde(tag = "type", rename_all = "snake_case")]+pub enum Operation {+ // Access+ /// Access a value by key or path. Returns Null if missing.+ /// Key: Object → Value | Path: Object|Array → Value+ Get {+ #[serde(flatten)]+ target: GetTarget,+ },+ /// Take the first element of an Array. Returns Null if empty or not an Array.+ /// Array → Value+ First,++ // Construction+ /// Build an Object from named fields. Each field pipeline receives the same input.+ /// Value → Object+ Object {+ fields: IndexMap<String, Pipeline>,+ #[serde(default, skip_serializing_if = "Vec::is_empty")]+ required: Vec<String>,+ },+ /// Produce a constant value, ignoring input.+ /// _ → Value+ Literal {+ value: Value,+ },+ /// Wrap input in a single-element Array.+ /// Value → Array+ ToArray,+ /// If input is Null, return the fallback value. Otherwise pass through.+ /// Value → Value+ Default {+ value: Value,+ },+ /// Replace a field's value through a mapping table. Returns input with field replaced.+ /// Object → Object+ Resolve {+ key: String,+ map: IndexMap<String, Value>,+ #[serde(default, skip_serializing_if = "Option::is_none")]+ default: Option<Value>,+ },++ // Collection+ /// Apply a pipeline to each element of an Array.+ /// Array → Array+ Each {+ apply: Pipeline,+ },+ /// Apply a pipeline to each element of an Array, flattening Array results into the output.+ /// Non-array inputs pass through unchanged.+ /// Array → Array+ FlatMap {+ apply: Pipeline,+ },+ /// Keep only Array elements matching a condition.+ /// Array → Array+ Filter {+ condition: Condition,+ },+ /// Concatenate an Array of Strings with a separator.+ /// Array<String> → String+ Join {+ separator: String,+ },+ /// Group consecutive Array elements by a key, then merge each group.+ /// Array → Array+ Reduce {+ key: Pipeline,+ #[serde(default, skip_serializing_if = "Option::is_none")]+ r#if: Option<Condition>,+ then: Pipeline,+ },++ // String+ /// Insert input string into a template at `{}` placeholder.+ /// String → String+ Format {+ template: String,+ },+ /// Regex replace_all on a string. Template can reference capture groups via `$1`, `$2`.+ /// String → String+ RegexReplace {+ pattern: String,+ template: String,+ #[serde(default)]+ regex_engine: RegexEngine,+ },+ /// Find all regex matches in a string. Extracts capture group 1 if present, otherwise group 0.+ /// String → Array<String>+ RegexFindAll {+ pattern: String,+ #[serde(default)]+ regex_engine: RegexEngine,+ },+ /// Parse a JSON string into a Value. With `repair: true`, attempts to fix malformed JSON.+ /// String → Value+ ParseJson {+ #[serde(default)]+ repair: bool,+ },++ // Control Flow+ /// Branch on a value produced by the key pipeline.+ /// Value → Value+ Switch {+ key: Pipeline,+ cases: Vec<SwitchCase>,+ #[serde(default, skip_serializing_if = "Option::is_none")]+ default: Option<Pipeline>,+ },+ /// Call a named pipeline. Name is static or read from input field.+ /// Value → Value+ Call {+ #[serde(flatten)]+ target: CallTarget,+ #[serde(default, skip_serializing_if = "IndexMap::is_empty")]+ arguments: IndexMap<String, Value>,+ },+ /// Run pipeline only when field equals true, optionally extracting a working value.+ /// If field is not true, returns the working value (or full input) unchanged.+ /// Value → Value+ On {+ field: String,+ #[serde(default, skip_serializing_if = "Option::is_none")]+ with: Option<String>,+ r#do: Pipeline,+ },+}++impl fmt::Display for Operation {+ fn fmt(+ &self,+ formatter: &mut fmt::Formatter<'_>,+ ) -> fmt::Result {+ match self {+ Self::Get {+ target,+ } => write!(formatter, "get({target})"),+ Self::First => write!(formatter, "first"),+ Self::Object {+ fields,+ ..+ } => {+ write!(formatter, "object({})", fields.len())+ },+ Self::Literal {+ value,+ } => write!(formatter, "literal({value})"),+ Self::ToArray => write!(formatter, "to_array"),+ Self::Resolve {+ key,+ ..+ } => write!(formatter, "resolve({key})"),+ Self::Default {+ ..+ } => write!(formatter, "default"),+ Self::Each {+ ..+ } => write!(formatter, "each"),+ Self::FlatMap {+ ..+ } => write!(formatter, "flat_map"),+ Self::Filter {+ ..+ } => write!(formatter, "filter"),+ Self::Join {+ separator,+ } => {+ write!(formatter, "join({separator})")+ },+ Self::Reduce {+ ..+ } => write!(formatter, "reduce"),+ Self::Format {+ ..+ } => write!(formatter, "format"),+ Self::RegexReplace {+ ..+ } => write!(formatter, "regex_replace"),+ Self::RegexFindAll {+ ..+ } => write!(formatter, "regex_find_all"),+ Self::ParseJson {+ repair,+ } => {+ write!(formatter, "parse_json(repair={repair})")+ },+ Self::Switch {+ cases,+ ..+ } => {+ write!(formatter, "switch({})", cases.len())+ },+ Self::Call {+ target,+ ..+ } => {+ write!(formatter, "call({target})")+ },+ Self::On {+ field,+ with,+ ..+ } => match with {+ Some(key) => write!(formatter, "on({field}, {key})"),+ None => write!(formatter, "on({field})"),+ },+ }+ }+}++impl fmt::Display for GetTarget {+ fn fmt(+ &self,+ formatter: &mut fmt::Formatter<'_>,+ ) -> fmt::Result {+ match self {+ Self::Key {+ key,+ } => write!(formatter, "{key}"),+ Self::Path {+ path,+ } => {+ let segments: Vec<String> = path+ .iter()+ .map(|segment| match segment {+ PathSegment::Key(key) => key.clone(),+ PathSegment::Index(index) => index.to_string(),+ })+ .collect();+ write!(formatter, "{}", segments.join("."))+ },+ }+ }+}++impl fmt::Display for CallTarget {+ fn fmt(+ &self,+ formatter: &mut fmt::Formatter<'_>,+ ) -> fmt::Result {+ match self {+ Self::Static {+ name,+ } => write!(formatter, "{name}"),+ Self::Dynamic {+ key,+ } => {+ write!(formatter, "dynamic({key})")+ },+ }+ }+}++impl Operation {+ pub fn execute(+ &self,+ input: Value,+ schema: &TransformSchema,+ ) -> Result<Value, TransformError> {+ match self {+ // Access+ Self::Get {+ target,+ } => access::execute_get(target, input),+ Self::First => access::execute_first(input),++ // Construction+ Self::Object {+ fields,+ required,+ } => construction::execute_object(fields, required, input, schema),+ Self::Literal {+ value,+ } => construction::execute_literal(value),+ Self::ToArray => construction::execute_to_array(input),+ Self::Default {+ value,+ } => construction::execute_default(value, input),+ Self::Resolve {+ key,+ map,+ default,+ } => construction::execute_resolve(key, map, default.as_ref(), input),++ // Collection+ Self::Each {+ apply,+ } => collection::execute_each(apply, input, schema),+ Self::FlatMap {+ apply,+ } => collection::execute_flat_map(apply, input, schema),+ Self::Filter {+ condition,+ } => collection::execute_filter(condition, input),+ Self::Join {+ separator,+ } => collection::execute_join(separator, input),+ Self::Reduce {+ key,+ r#if,+ then,+ } => collection::execute_reduce(key, r#if, then, input, schema),++ // String+ Self::Format {+ template,+ } => string::execute_format(template, input),+ Self::RegexReplace {+ pattern,+ template,+ regex_engine,+ } => string::execute_regex_replace(pattern, template, regex_engine, input),+ Self::RegexFindAll {+ pattern,+ regex_engine,+ } => string::execute_regex_find_all(pattern, regex_engine, input),+ Self::ParseJson {+ repair,+ } => string::execute_parse_json(*repair, input),++ // Control Flow+ Self::Switch {+ key,+ cases,+ default,+ } => control_flow::execute_switch(key, cases, default, input, schema),+ Self::Call {+ target,+ arguments,+ } => control_flow::execute_call(target, arguments, input, schema),+ Self::On {+ field,+ with,+ r#do,+ } => control_flow::execute_on(field, with.as_deref(), r#do, input, schema),+ }+ }+}diff --git a/crates/json-transform/src/execution/string.rs b/crates/json-transform/src/execution/string.rsnew file mode 100644index 000000000..c785b4397--- /dev/null+++ b/crates/json-transform/src/execution/string.rs@@ -0,0 +1,81 @@+use serde_json::Value;++use crate::{+ TransformError,+ regex::{Regex, RegexEngine},+};++#[tracing::instrument(skip(input))]+pub fn execute_format(+ template: &str,+ input: Value,+) -> Result<Value, TransformError> {+ let Value::String(text) = input else {+ return Ok(Value::Null);+ };+ Ok(Value::String(template.replace("{}", &text)))+}++#[tracing::instrument(skip_all)]+pub fn execute_regex_replace(+ pattern: &str,+ template: &str,+ regex_engine: &RegexEngine,+ input: Value,+) -> Result<Value, TransformError> {+ let Value::String(text) = input else {+ return Ok(Value::Null);+ };+ let regex = Regex::new(pattern, regex_engine)?;+ let replaced = regex.replace_all(&text, template);+ Ok(Value::String(replaced))+}++#[tracing::instrument(skip_all)]+pub fn execute_regex_find_all(+ pattern: &str,+ regex_engine: &RegexEngine,+ input: Value,+) -> Result<Value, TransformError> {+ let Value::String(text) = input else {+ return Ok(Value::Null);+ };+ let regex = Regex::new(pattern, regex_engine)?;+ let matches: Vec<Value> = regex+ .captures_iter(&text)+ .iter()+ .map(|captures| {+ let matched_text = captures+ .get(1)+ .or_else(|| captures.get(0))+ .map(|regex_match| regex_match.text.clone())+ .unwrap_or_default();+ Value::String(matched_text)+ })+ .collect();+ Ok(Value::Array(matches))+}++#[tracing::instrument(skip(input))]+pub fn execute_parse_json(+ repair: bool,+ input: Value,+) -> Result<Value, TransformError> {+ let Value::String(text) = input else {+ return Ok(Value::Null);+ };+ if repair {+ let options = llm_json::RepairOptions {+ ensure_ascii: false,+ ..Default::default()+ };+ let repaired = llm_json::repair_json(&text, &options).unwrap_or_else(|_| text.clone());+ let parsed = serde_json::from_str::<Value>(&repaired).unwrap_or(Value::String(text));+ Ok(parsed)+ } else {+ let parsed = serde_json::from_str::<Value>(&text).map_err(|error| TransformError::InvalidJson {+ message: error.to_string(),+ })?;+ Ok(parsed)+ }+}diff --git a/crates/json-transform/src/lib.rs b/crates/json-transform/src/lib.rsnew file mode 100644index 000000000..74d021eff--- /dev/null+++ b/crates/json-transform/src/lib.rs@@ -0,0 +1,7 @@+mod error;+pub mod execution;+pub mod regex;+mod schema;++pub use error::TransformError;+pub use schema::TransformSchema;diff --git a/crates/json-transform/src/regex/captures.rs b/crates/json-transform/src/regex/captures.rsnew file mode 100644index 000000000..0e5cc4daa--- /dev/null+++ b/crates/json-transform/src/regex/captures.rs@@ -0,0 +1,45 @@+use crate::regex::RegexMatch;++#[derive(Debug, Clone)]+pub struct RegexCaptures {+ groups: Vec<Option<RegexMatch>>,+}++impl RegexCaptures {+ pub fn from_standard(captures: ®ex::Captures) -> Self {+ let groups = (0..captures.len())+ .map(|index| {+ captures.get(index).map(|matched| RegexMatch {+ start: matched.start(),+ end: matched.end(),+ text: matched.as_str().to_string(),+ })+ })+ .collect();+ Self {+ groups,+ }+ }++ pub fn from_extended(captures: &fancy_regex::Captures) -> Self {+ let groups = (0..captures.len())+ .map(|index| {+ captures.get(index).map(|matched| RegexMatch {+ start: matched.start(),+ end: matched.end(),+ text: matched.as_str().to_string(),+ })+ })+ .collect();+ Self {+ groups,+ }+ }++ pub fn get(+ &self,+ index: usize,+ ) -> Option<&RegexMatch> {+ self.groups.get(index).and_then(|group| group.as_ref())+ }+}diff --git a/crates/json-transform/src/regex/engine.rs b/crates/json-transform/src/regex/engine.rsnew file mode 100644index 000000000..c0549add2--- /dev/null+++ b/crates/json-transform/src/regex/engine.rs@@ -0,0 +1,9 @@+use serde::{Deserialize, Serialize};++#[derive(Serialize, Deserialize, Clone, Debug, Default, Eq, PartialEq)]+#[serde(rename_all = "snake_case")]+pub enum RegexEngine {+ #[default]+ Standard,+ Extended,+}diff --git a/crates/json-transform/src/regex/match.rs b/crates/json-transform/src/regex/match.rsnew file mode 100644index 000000000..3ffac979a--- /dev/null+++ b/crates/json-transform/src/regex/match.rs@@ -0,0 +1,6 @@+#[derive(Clone, Debug, PartialEq, Eq, Hash)]+pub struct RegexMatch {+ pub start: usize,+ pub end: usize,+ pub text: String,+}diff --git a/crates/json-transform/src/regex/mod.rs b/crates/json-transform/src/regex/mod.rsnew file mode 100644index 000000000..ad639d2fb--- /dev/null+++ b/crates/json-transform/src/regex/mod.rs@@ -0,0 +1,9 @@+mod captures;+mod engine;+mod r#match;+mod regex;++pub use captures::RegexCaptures;+pub use engine::RegexEngine;+pub use r#match::RegexMatch;+pub use regex::Regex;diff --git a/crates/json-transform/src/regex/regex.rs b/crates/json-transform/src/regex/regex.rsnew file mode 100644index 000000000..5903f2091--- /dev/null+++ b/crates/json-transform/src/regex/regex.rs@@ -0,0 +1,75 @@+use crate::{+ TransformError,+ regex::{RegexCaptures, RegexEngine},+};++pub enum Regex {+ Standard(regex::Regex),+ Extended(fancy_regex::Regex),+}++impl Regex {+ pub fn new(+ pattern: &str,+ engine: &RegexEngine,+ ) -> Result<Self, TransformError> {+ match engine {+ RegexEngine::Standard => {+ regex::Regex::new(pattern).map(Regex::Standard).map_err(|_| TransformError::InvalidRegex {+ pattern: pattern.to_string(),+ })+ },+ RegexEngine::Extended => {+ fancy_regex::Regex::new(pattern).map(Regex::Extended).map_err(|_| TransformError::InvalidRegex {+ pattern: pattern.to_string(),+ })+ },+ }+ }++ pub fn as_str(&self) -> &str {+ match self {+ Regex::Standard(regex) => regex.as_str(),+ Regex::Extended(regex) => regex.as_str(),+ }+ }++ pub fn captures(+ &self,+ text: &str,+ ) -> Option<RegexCaptures> {+ match self {+ Regex::Standard(regex) => regex.captures(text).map(|captures| RegexCaptures::from_standard(&captures)),+ Regex::Extended(regex) => {+ regex.captures(text).ok().flatten().map(|captures| RegexCaptures::from_extended(&captures))+ },+ }+ }++ pub fn captures_iter(+ &self,+ text: &str,+ ) -> Vec<RegexCaptures> {+ match self {+ Regex::Standard(regex) => {+ regex.captures_iter(text).map(|captures| RegexCaptures::from_standard(&captures)).collect()+ },+ Regex::Extended(regex) => regex+ .captures_iter(text)+ .filter_map(|result| result.ok())+ .map(|captures| RegexCaptures::from_extended(&captures))+ .collect(),+ }+ }++ pub fn replace_all(+ &self,+ text: &str,+ replacement: &str,+ ) -> String {+ match self {+ Regex::Standard(regex) => regex.replace_all(text, replacement).to_string(),+ Regex::Extended(regex) => regex.replace_all(text, replacement).to_string(),+ }+ }+}diff --git a/crates/json-transform/src/schema.rs b/crates/json-transform/src/schema.rsnew file mode 100644index 000000000..a94d21461--- /dev/null+++ b/crates/json-transform/src/schema.rs@@ -0,0 +1,24 @@+use indexmap::IndexMap;+use serde::{Deserialize, Serialize};+use serde_json::Value;++use crate::{TransformError, execution::Pipeline};++#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]+#[serde(transparent)]+pub struct TransformSchema {+ pub pipelines: IndexMap<String, Pipeline>,+}++impl TransformSchema {+ pub fn execute(+ &self,+ name: &str,+ input: Value,+ ) -> Result<Value, TransformError> {+ let pipeline = self.pipelines.get(name).ok_or_else(|| TransformError::UndefinedPipeline {+ name: name.to_string(),+ })?;+ crate::execution::execute_pipeline(pipeline, input, self)+ }+}diff --git a/crates/json-transform/tests/helpers/mod.rs b/crates/json-transform/tests/helpers/mod.rsnew file mode 100644index 000000000..e37dd50ee--- /dev/null+++ b/crates/json-transform/tests/helpers/mod.rs@@ -0,0 +1,47 @@+#![allow(dead_code)]++use indexmap::IndexMap;+use json_transform::{+ TransformError, TransformSchema,+ execution::{GetTarget, Operation, PathSegment, Pipeline},+};+use tracing_subscriber::{EnvFilter, Registry, prelude::*};+use tracing_tree::HierarchicalLayer;++pub fn init_tracing_for_tests() {+ let filter = EnvFilter::from_default_env().add_directive("json_transform".parse().unwrap());++ let layer = HierarchicalLayer::new(2).with_bracketed_fields(true).with_targets(true);++ let _ = Registry::default().with(filter).with(layer).try_init();+}++pub fn get_key(key: &str) -> Operation {+ Operation::Get {+ target: GetTarget::Key {+ key: key.to_string(),+ },+ }+}++pub fn get_path(segments: Vec<PathSegment>) -> Operation {+ Operation::Get {+ target: GetTarget::Path {+ path: segments,+ },+ }+}++pub fn schema_with_root(root: Pipeline) -> TransformSchema {+ TransformSchema {+ pipelines: IndexMap::from([("root".to_string(), root)]),+ }+}++pub fn execute_root(+ root: Pipeline,+ input: serde_json::Value,+) -> Result<serde_json::Value, TransformError> {+ init_tracing_for_tests();+ schema_with_root(root).execute("root", input)+}diff --git a/crates/json-transform/tests/test_json_transform_access.rs b/crates/json-transform/tests/test_json_transform_access.rsnew file mode 100644index 000000000..2406c816e--- /dev/null+++ b/crates/json-transform/tests/test_json_transform_access.rs@@ -0,0 +1,105 @@+mod helpers;++use helpers::{execute_root, get_key, get_path};+use json_transform::execution::{Operation, PathSegment};+use serde_json::json;++#[test]+fn test_get_from_object() {+ let result = execute_root(vec![get_key("name")], json!({"name": "Alice", "age": 30})).unwrap();+ assert_eq!(result, json!("Alice"));+}++#[test]+fn test_get_missing_key_returns_null() {+ let result = execute_root(vec![get_key("missing")], json!({"name": "Alice"})).unwrap();+ assert_eq!(result, json!(null));+}++#[test]+fn test_get_from_non_object_returns_null() {+ let result = execute_root(vec![get_key("name")], json!("Hello")).unwrap();+ assert_eq!(result, json!(null));+}++#[test]+fn test_get_path_traverses_nested() {+ let result = execute_root(+ vec![get_path(vec![PathSegment::Key("user".to_string()), PathSegment::Key("name".to_string())])],+ json!({"user": {"name": "Alice"}}),+ )+ .unwrap();+ assert_eq!(result, json!("Alice"));+}++#[test]+fn test_get_path_with_index() {+ let result = execute_root(+ vec![get_path(vec![+ PathSegment::Key("role".to_string()),+ PathSegment::Index(0),+ PathSegment::Key("$text".to_string()),+ ])],+ json!({"role": [{"$text": "assistant"}]}),+ )+ .unwrap();+ assert_eq!(result, json!("assistant"));+}++#[test]+fn test_get_path_missing_key_returns_null() {+ let result = execute_root(+ vec![get_path(vec![PathSegment::Key("user".to_string()), PathSegment::Key("missing".to_string())])],+ json!({"user": {"name": "Alice"}}),+ )+ .unwrap();+ assert_eq!(result, json!(null));+}++#[test]+fn test_get_path_index_out_of_bounds_returns_null() {+ let result = execute_root(+ vec![get_path(vec![PathSegment::Key("items".to_string()), PathSegment::Index(5)])],+ json!({"items": [1, 2]}),+ )+ .unwrap();+ assert_eq!(result, json!(null));+}++#[test]+fn test_get_path_single_key() {+ let result =+ execute_root(vec![get_path(vec![PathSegment::Key("name".to_string())])], json!({"name": "Alice"})).unwrap();+ assert_eq!(result, json!("Alice"));+}++#[test]+fn test_get_path_empty_returns_input() {+ let input = json!({"name": "Alice"});+ let result = execute_root(vec![get_path(vec![])], input.clone()).unwrap();+ assert_eq!(result, input);+}++#[test]+fn test_first_from_array() {+ let result = execute_root(vec![Operation::First], json!([1, 2, 3])).unwrap();+ assert_eq!(result, json!(1));+}++#[test]+fn test_first_from_empty_array_returns_null() {+ let result = execute_root(vec![Operation::First], json!([])).unwrap();+ assert_eq!(result, json!(null));+}++#[test]+fn test_first_from_non_array_returns_null() {+ let result = execute_root(vec![Operation::First], json!("Hello")).unwrap();+ assert_eq!(result, json!(null));+}++#[test]+fn test_pipeline_chaining() {+ let result = execute_root(vec![get_key("user"), get_key("name")], json!({"user": {"name": "Alice"}})).unwrap();+ assert_eq!(result, json!("Alice"));+}diff --git a/crates/json-transform/tests/test_json_transform_collection.rs b/crates/json-transform/tests/test_json_transform_collection.rsnew file mode 100644index 000000000..7fc015df7--- /dev/null+++ b/crates/json-transform/tests/test_json_transform_collection.rs@@ -0,0 +1,205 @@+mod helpers;++use helpers::{execute_root, get_key};+use indexmap::IndexMap;+use json_transform::execution::{Condition, Operation};+use serde_json::json;++#[test]+fn test_each_maps_array() {+ let result = execute_root(+ vec![Operation::Each {+ apply: vec![get_key("name")],+ }],+ json!([{"name": "Alice"}, {"name": "Bob"}]),+ )+ .unwrap();+ assert_eq!(result, json!(["Alice", "Bob"]));+}++#[test]+fn test_each_on_non_array_returns_null() {+ let result = execute_root(+ vec![Operation::Each {+ apply: vec![],+ }],+ json!("Hello"),+ )+ .unwrap();+ assert_eq!(result, json!(null));+}++#[test]+fn test_flat_map_flattens_array_results() {+ let result = execute_root(+ vec![Operation::FlatMap {+ apply: vec![get_key("items")],+ }],+ json!([{"items": [1, 2]}, {"items": [3, 4]}]),+ )+ .unwrap();+ assert_eq!(result, json!([1, 2, 3, 4]));+}++#[test]+fn test_flat_map_passes_through_non_array_input() {+ let result = execute_root(+ vec![Operation::FlatMap {+ apply: vec![],+ }],+ json!("Hello"),+ )+ .unwrap();+ assert_eq!(result, json!("Hello"));+}++#[test]+fn test_filter_keeps_matching() {+ let result = execute_root(+ vec![Operation::Filter {+ condition: Condition::Field {+ key: "active".to_string(),+ condition: Box::new(Condition::Equals {+ value: json!(true),+ }),+ },+ }],+ json!([+ {"name": "Alice", "active": true},+ {"name": "Bob", "active": false},+ {"name": "Carol", "active": true}+ ]),+ )+ .unwrap();+ assert_eq!(+ result,+ json!([+ {"name": "Alice", "active": true},+ {"name": "Carol", "active": true}+ ])+ );+}++#[test]+fn test_filter_with_not_condition() {+ let result = execute_root(+ vec![Operation::Filter {+ condition: Condition::Not {+ condition: Box::new(Condition::IsNull),+ },+ }],+ json!([1, null, 2, null, 3]),+ )+ .unwrap();+ assert_eq!(result, json!([1, 2, 3]));+}++#[test]+fn test_join_concatenates() {+ let result = execute_root(+ vec![Operation::Join {+ separator: ", ".to_string(),+ }],+ json!(["Alice", "Bob", "Carol"]),+ )+ .unwrap();+ assert_eq!(result, json!("Alice, Bob, Carol"));+}++#[test]+fn test_join_empty_separator() {+ let result = execute_root(+ vec![Operation::Join {+ separator: "".to_string(),+ }],+ json!(["a", "b", "c"]),+ )+ .unwrap();+ assert_eq!(result, json!("abc"));+}++#[test]+fn test_reduce() {+ let mut merge_fields = IndexMap::new();+ merge_fields.insert("role".to_string(), vec![Operation::First, get_key("role")]);+ merge_fields.insert(+ "content".to_string(),+ vec![+ Operation::Each {+ apply: vec![get_key("content")],+ },+ Operation::Join {+ separator: "".to_string(),+ },+ ],+ );++ let result = execute_root(+ vec![Operation::Reduce {+ key: vec![get_key("role")],+ r#if: None,+ then: vec![Operation::Object {+ fields: merge_fields,+ required: vec!["role".to_string()],+ }],+ }],+ json!([+ {"role": "assistant", "content": "Hello "},+ {"role": "assistant", "content": "World"},+ {"role": "user", "content": "Hi"}+ ]),+ )+ .unwrap();+ assert_eq!(+ result,+ json!([+ {"role": "assistant", "content": "Hello World"},+ {"role": "user", "content": "Hi"}+ ])+ );+}++#[test]+fn test_reduce_with_if() {+ let mut merge_fields = IndexMap::new();+ merge_fields.insert("role".to_string(), vec![Operation::First, get_key("role")]);+ merge_fields.insert(+ "content".to_string(),+ vec![+ Operation::Each {+ apply: vec![get_key("content")],+ },+ Operation::Join {+ separator: "".to_string(),+ },+ ],+ );++ let result = execute_root(+ vec![Operation::Reduce {+ key: vec![get_key("role")],+ r#if: Some(Condition::Equals {+ value: json!("assistant"),+ }),+ then: vec![Operation::Object {+ fields: merge_fields,+ required: vec!["role".to_string()],+ }],+ }],+ json!([+ {"role": "user", "content": "q1"},+ {"role": "assistant", "content": "a1 "},+ {"role": "assistant", "content": "a2"},+ {"role": "user", "content": "q2"}+ ]),+ )+ .unwrap();+ assert_eq!(+ result,+ json!([+ {"role": "user", "content": "q1"},+ {"role": "assistant", "content": "a1 a2"},+ {"role": "user", "content": "q2"}+ ])+ );+}diff --git a/crates/json-transform/tests/test_json_transform_construction.rs b/crates/json-transform/tests/test_json_transform_construction.rsnew file mode 100644index 000000000..ea9398c94--- /dev/null+++ b/crates/json-transform/tests/test_json_transform_construction.rs@@ -0,0 +1,103 @@+mod helpers;++use helpers::{execute_root, get_key};+use indexmap::IndexMap;+use json_transform::execution::Operation;+use serde_json::json;++#[test]+fn test_object_extracts_fields() {+ let mut fields = IndexMap::new();+ fields.insert("name".to_string(), vec![get_key("name")]);+ fields.insert("age".to_string(), vec![get_key("age")]);+ let result = execute_root(+ vec![Operation::Object {+ fields,+ required: vec![],+ }],+ json!({"name": "Alice", "age": 30}),+ )+ .unwrap();+ assert_eq!(result, json!({"name": "Alice", "age": 30}));+}++#[test]+fn test_object_omits_empty_non_required() {+ let mut fields = IndexMap::new();+ fields.insert("name".to_string(), vec![get_key("name")]);+ fields.insert("missing".to_string(), vec![get_key("missing")]);+ let result = execute_root(+ vec![Operation::Object {+ fields,+ required: vec![],+ }],+ json!({"name": "Alice"}),+ )+ .unwrap();+ assert_eq!(result, json!({"name": "Alice"}));+}++#[test]+fn test_object_keeps_empty_required() {+ let mut fields = IndexMap::new();+ fields.insert("name".to_string(), vec![get_key("name")]);+ fields.insert("missing".to_string(), vec![get_key("missing")]);+ let result = execute_root(+ vec![Operation::Object {+ fields,+ required: vec!["missing".to_string()],+ }],+ json!({"name": "Alice"}),+ )+ .unwrap();+ assert_eq!(result, json!({"name": "Alice", "missing": null}));+}++#[test]+fn test_literal_ignores_input() {+ let result = execute_root(+ vec![Operation::Literal {+ value: json!(42),+ }],+ json!("Anything"),+ )+ .unwrap();+ assert_eq!(result, json!(42));+}++#[test]+fn test_to_array() {+ let result = execute_root(vec![Operation::ToArray], json!("Hello")).unwrap();+ assert_eq!(result, json!(["Hello"]));+}++#[test]+fn test_default_passes_through_non_null() {+ let result = execute_root(+ vec![Operation::Default {+ value: json!("fallback"),+ }],+ json!("original"),+ )+ .unwrap();+ assert_eq!(result, json!("original"));+}++#[test]+fn test_default_substitutes_null() {+ let result = execute_root(+ vec![Operation::Default {+ value: json!("fallback"),+ }],+ json!(null),+ )+ .unwrap();+ assert_eq!(result, json!("fallback"));+}++#[test]+fn test_empty_pipeline() {+ let input = json!({"name": "Alice"});+ let result = execute_root(vec![], input.clone()).unwrap();+ assert_eq!(result, input);+}diff --git a/crates/json-transform/tests/test_json_transform_control_flow.rs b/crates/json-transform/tests/test_json_transform_control_flow.rsnew file mode 100644index 000000000..ee81108c6--- /dev/null+++ b/crates/json-transform/tests/test_json_transform_control_flow.rs@@ -0,0 +1,149 @@+mod helpers;++use helpers::{execute_root, get_key, init_tracing_for_tests};+use indexmap::IndexMap;+use json_transform::{+ TransformSchema,+ execution::{CallTarget, Condition, Operation, SwitchCase},+};+use serde_json::json;++// Switch++#[test]+fn test_switch_matches_first_case() {+ let result = execute_root(+ vec![Operation::Switch {+ key: vec![get_key("role")],+ cases: vec![+ SwitchCase {+ when: Condition::Equals {+ value: json!("admin"),+ },+ then: vec![Operation::Literal {+ value: json!("is_admin"),+ }],+ },+ SwitchCase {+ when: Condition::Equals {+ value: json!("user"),+ },+ then: vec![Operation::Literal {+ value: json!("is_user"),+ }],+ },+ ],+ default: None,+ }],+ json!({"role": "admin"}),+ )+ .unwrap();+ assert_eq!(result, json!("is_admin"));+}++#[test]+fn test_switch_falls_through_to_default() {+ let result = execute_root(+ vec![Operation::Switch {+ key: vec![],+ cases: vec![SwitchCase {+ when: Condition::Equals {+ value: json!("x"),+ },+ then: vec![Operation::Literal {+ value: json!("matched"),+ }],+ }],+ default: Some(vec![Operation::Literal {+ value: json!("default"),+ }]),+ }],+ json!("y"),+ )+ .unwrap();+ assert_eq!(result, json!("default"));+}++#[test]+fn test_switch_no_match_no_default_returns_null() {+ let result = execute_root(+ vec![Operation::Switch {+ key: vec![],+ cases: vec![],+ default: None,+ }],+ json!("anything"),+ )+ .unwrap();+ assert_eq!(result, json!(null));+}++#[test]+fn test_switch_starts_with_condition() {+ let result = execute_root(+ vec![Operation::Switch {+ key: vec![get_key("channel")],+ cases: vec![SwitchCase {+ when: Condition::StartsWith {+ value: "commentary".to_string(),+ },+ then: vec![Operation::Literal {+ value: json!("tool_call"),+ }],+ }],+ default: Some(vec![Operation::Literal {+ value: json!("text"),+ }]),+ }],+ json!({"channel": "commentary:func_name"}),+ )+ .unwrap();+ assert_eq!(result, json!("tool_call"));+}++// Call++#[test]+fn test_call_static_reference() {+ init_tracing_for_tests();+ let mut pipelines = IndexMap::new();+ pipelines.insert(+ "root".to_string(),+ vec![Operation::Call {+ target: CallTarget::Static {+ name: "get_name".to_string(),+ },+ arguments: IndexMap::new(),+ }],+ );+ pipelines.insert("get_name".to_string(), vec![get_key("name")]);+ let schema = TransformSchema {+ pipelines,+ };+ let result = schema.execute("root", json!({"name": "Alice"})).unwrap();+ assert_eq!(result, json!("Alice"));+}++#[test]+fn test_call_undefined_errors() {+ let result = execute_root(+ vec![Operation::Call {+ target: CallTarget::Static {+ name: "non-existent".to_string(),+ },+ arguments: IndexMap::new(),+ }],+ json!(null),+ );+ assert!(result.is_err());+}++#[test]+fn test_missing_pipeline_errors() {+ init_tracing_for_tests();+ let schema = TransformSchema {+ pipelines: IndexMap::new(),+ };+ let result = schema.execute("root", json!(null));+ assert!(result.is_err());+}diff --git a/crates/json-transform/tests/test_json_transform_string.rs b/crates/json-transform/tests/test_json_transform_string.rsnew file mode 100644index 000000000..b49bed735--- /dev/null+++ b/crates/json-transform/tests/test_json_transform_string.rs@@ -0,0 +1,378 @@+mod helpers;++use helpers::{execute_root, schema_with_root};+use json_transform::{execution::Operation, regex::RegexEngine};+use serde_json::json;++// Format++#[test]+fn test_format_replaces_placeholder() {+ let result = execute_root(+ vec![Operation::Format {+ template: "Hello {}".to_string(),+ }],+ json!("World"),+ )+ .unwrap();+ assert_eq!(result, json!("Hello World"));+}++#[test]+fn test_format_empty_input() {+ let result = execute_root(+ vec![Operation::Format {+ template: "Before {} After".to_string(),+ }],+ json!(""),+ )+ .unwrap();+ assert_eq!(result, json!("Before After"));+}++#[test]+fn test_format_no_placeholder() {+ let result = execute_root(+ vec![Operation::Format {+ template: "No placeholder".to_string(),+ }],+ json!("Input"),+ )+ .unwrap();+ assert_eq!(result, json!("No placeholder"));+}++#[test]+fn test_format_multiple_placeholders() {+ let result = execute_root(+ vec![Operation::Format {+ template: "{} and {}".to_string(),+ }],+ json!("X"),+ )+ .unwrap();+ assert_eq!(result, json!("X and X"));+}++#[test]+fn test_format_preserves_special_characters() {+ let result = execute_root(+ vec![Operation::Format {+ template: "Result: {}".to_string(),+ }],+ json!("a=\"b\" c='d'"),+ )+ .unwrap();+ assert_eq!(result, json!("Result: a=\"b\" c='d'"));+}++#[test]+fn test_format_preserves_newlines() {+ let result = execute_root(+ vec![Operation::Format {+ template: "Code: {}".to_string(),+ }],+ json!("line1\nline2"),+ )+ .unwrap();+ assert_eq!(result, json!("Code: line1\nline2"));+}++#[test]+fn test_format_inserts_input() {+ let result = execute_root(+ vec![Operation::Format {+ template: r#"{"name": "code_interpreter", "code": "{}"}"#.to_string(),+ }],+ json!("print('hello')"),+ )+ .unwrap();+ assert_eq!(result, json!(r#"{"name": "code_interpreter", "code": "print('hello')"}"#));+}++// RegexReplace++#[test]+fn test_regex_replace_simple_substitution() {+ let result = execute_root(+ vec![Operation::RegexReplace {+ pattern: "<escape>".to_string(),+ template: "\"".to_string(),+ regex_engine: RegexEngine::Standard,+ }],+ json!("Hello <escape>World<escape>"),+ )+ .unwrap();+ assert_eq!(result, json!("Hello \"World\""));+}++#[test]+fn test_regex_replace_with_captures() {+ let result = execute_root(+ vec![Operation::RegexReplace {+ pattern: r"(\w+)\.call\(([\s\S]*)\)".to_string(),+ template: r#"{"name": "$1", "arguments": "$2"}"#.to_string(),+ regex_engine: RegexEngine::Standard,+ }],+ json!("get_weather.call(city=London)"),+ )+ .unwrap();+ assert_eq!(result, json!(r#"{"name": "get_weather", "arguments": "city=London"}"#));+}++#[test]+fn test_regex_replace_substitutes_capture_groups() {+ let result = execute_root(+ vec![Operation::RegexReplace {+ pattern: r"(\w+)\((.*)\)".to_string(),+ template: r#"{"name": "$1", "arguments": "$2"}"#.to_string(),+ regex_engine: RegexEngine::Standard,+ }],+ json!("get_temperature(city=London, unit=celsius)"),+ )+ .unwrap();+ let parsed: serde_json::Value = serde_json::from_str(result.as_str().unwrap()).unwrap();+ assert_eq!(parsed, json!({"name": "get_temperature", "arguments": "city=London, unit=celsius"}));+}++// RegexFindAll++#[test]+fn test_regex_find_all_splits_lines() {+ let result = execute_root(+ vec![Operation::RegexFindAll {+ pattern: r"[^\n]+".to_string(),+ regex_engine: RegexEngine::Standard,+ }],+ json!("line1\nline2\nline3"),+ )+ .unwrap();+ assert_eq!(result, json!(["line1", "line2", "line3"]));+}++#[test]+fn test_regex_find_all_capture_group() {+ let result = execute_root(+ vec![Operation::RegexFindAll {+ pattern: r#""name":\s*"(\w+)""#.to_string(),+ regex_engine: RegexEngine::Standard,+ }],+ json!(r#"{"name": "Alice"} {"name": "Bob"}"#),+ )+ .unwrap();+ assert_eq!(result, json!(["Alice", "Bob"]));+}++#[test]+fn test_regex_find_all_extracts_capture_group() {+ let result = execute_root(+ vec![Operation::RegexFindAll {+ pattern: r"(\w+)\(.*?\)".to_string(),+ regex_engine: RegexEngine::Standard,+ }],+ json!("get_temperature(city=London)"),+ )+ .unwrap();+ assert_eq!(result, json!(["get_temperature"]));+}++#[test]+fn test_regex_find_all_then_each_parse() {+ let result = execute_root(+ vec![+ Operation::RegexFindAll {+ pattern: r"[^\n]+".to_string(),+ regex_engine: RegexEngine::Standard,+ },+ Operation::Each {+ apply: vec![Operation::ParseJson {+ repair: false,+ }],+ },+ ],+ json!("{\"a\":1}\n{\"b\":2}"),+ )+ .unwrap();+ assert_eq!(result, json!([{"a": 1}, {"b": 2}]));+}++#[test]+fn test_regex_find_all_with_each_parse_json() {+ let result = execute_root(+ vec![+ Operation::RegexFindAll {+ pattern: r"([^;]+)".to_string(),+ regex_engine: RegexEngine::Standard,+ },+ Operation::Each {+ apply: vec![Operation::ParseJson {+ repair: false,+ }],+ },+ ],+ json!(r#"{"city":"London"}; {"city":"Tokyo"}"#),+ )+ .unwrap();+ assert_eq!(result, json!([{"city": "London"}, {"city": "Tokyo"}]));+}++// ParseJson++#[test]+fn test_parse_json_strict() {+ let result = execute_root(+ vec![Operation::ParseJson {+ repair: false,+ }],+ json!("{\"name\":\"Alice\"}"),+ )+ .unwrap();+ assert_eq!(result, json!({"name": "Alice"}));+}++#[test]+fn test_parse_json_strict_invalid_errors() {+ let result = execute_root(+ vec![Operation::ParseJson {+ repair: false,+ }],+ json!("{invalid}"),+ );+ assert!(result.is_err());+}++#[test]+fn test_parse_json_with_repair() {+ let result = execute_root(+ vec![Operation::ParseJson {+ repair: true,+ }],+ json!("{\"name\":\"Alice\"}"),+ )+ .unwrap();+ assert_eq!(result, json!({"name": "Alice"}));+}++#[test]+fn test_parse_json_valid_object() {+ let result = execute_root(+ vec![Operation::ParseJson {+ repair: false,+ }],+ json!(r#"{"city": "London", "temperature": 42}"#),+ )+ .unwrap();+ assert_eq!(result, json!({"city": "London", "temperature": 42}));+}++#[test]+fn test_parse_json_strict_parses_unicode_emoji() {+ let result = execute_root(+ vec![Operation::ParseJson {+ repair: false,+ }],+ json!(r#"{"reaction": "🎉"}"#),+ )+ .unwrap();+ assert_eq!(result, json!({"reaction": "🎉"}));+}++// ParseJson, repair=true++fn validate_repair(+ input: &str,+ expected_json: &str,+) {+ let schema = schema_with_root(vec![Operation::ParseJson {+ repair: true,+ }]);+ let result = schema.execute("root", json!(input)).unwrap();+ let expected: serde_json::Value = serde_json::from_str(expected_json).unwrap();+ assert_eq!(result, expected);+}++#[test]+fn test_repair_json_trailing_comma() {+ validate_repair(r#"{"a": 1, "b": 2,}"#, r#"{"a": 1, "b": 2}"#);+}++#[test]+fn test_repair_json_unbalanced_brackets() {+ validate_repair(r#"{"a": 1, "b": [1, 2"#, r#"{"a": 1, "b": [1, 2]}"#);+}++#[test]+fn test_repair_json_excess_braces() {+ validate_repair(+ r#"{"name": "test", "parameters": {"location": "London"}}}}"#,+ r#"{"name": "test", "parameters": {"location": "London"}}"#,+ );+}++#[test]+fn test_repair_json_converts_single_quotes_to_double() {+ validate_repair(r#"{'name': "London"}"#, r#"{"name": "London"}"#);+ validate_repair(r#"{"name": 'London'}"#, r#"{"name": "London"}"#);+ validate_repair(r#"{'name': 'London'}"#, r#"{"name": "London"}"#);+}++#[test]+fn test_repair_json_replaces_true_false_none() {+ validate_repair(+ "{'enabled': True, 'visible': False, 'description': None}",+ r#"{"enabled": true, "visible": false, "description": null}"#,+ );+}++#[test]+fn test_repair_json_handles_nested_dict() {+ validate_repair("{'location': {'city': 'London'}}", r#"{"location": {"city": "London"}}"#);+}++#[test]+fn test_repair_json_handles_three_levels_of_nesting() {+ validate_repair("{'model': {'params': {'layers': True}}}", r#"{"model": {"params": {"layers": true}}}"#);+}++#[test]+fn test_repair_json_handles_list_with_mixed_types() {+ validate_repair("{'tags': [1, 2, 'urgent']}", r#"{"tags": [1, 2, "urgent"]}"#);+}++#[test]+fn test_repair_json_handles_list_of_dicts() {+ validate_repair("{'users': [{'id': 1}, {'id': 2}]}", r#"{"users": [{"id": 1}, {"id": 2}]}"#);+}++#[test]+fn test_repair_json_handles_unicode_emoji() {+ validate_repair("{'reaction': '🎉'}", r#"{"reaction": "🎉"}"#);+}++#[test]+fn test_repair_json_handles_empty_dict() {+ validate_repair("{}", "{}");+}++#[test]+fn test_repair_json_preserves_numeric_values() {+ validate_repair("{'temperature': 42, 'humidity': 3.14}", r#"{"temperature": 42, "humidity": 3.14}"#);+}++#[test]+fn test_repair_json_handles_nested_dict_with_list_of_keywords() {+ validate_repair(+ "{'config': {'enabled': True, 'features': [False, None, True]}}",+ r#"{"config": {"enabled": true, "features": [false, null, true]}}"#,+ );+}++#[test]+fn test_repair_json_incomplete_then_parse() {+ validate_repair(r#"{"city": "London","#, r#"{"city": "London"}"#);+}++#[test]+fn test_repair_json_python_dict_to_json() {+ validate_repair("{'city': 'London'}", r#"{"city": "London"}"#);+}diff --git a/crates/nagare/Cargo.toml b/crates/nagare/Cargo.tomlnew file mode 100644index 000000000..f6b4aeccd--- /dev/null+++ b/crates/nagare/Cargo.toml@@ -0,0 +1,36 @@+[package]+name = "nagare"+version.workspace = true+edition.workspace = true+rust-version.workspace = true+license.workspace = true+authors.workspace = true+repository.workspace = true++[dependencies]+download-manager.workspace = true+serde.workspace = true+serde_json.workspace = true+thiserror.workspace = true+futures.workspace = true+tokio.workspace = true+tokio-stream.workspace = true+dirs.workspace = true+sysinfo.workspace = true+reqwest.workspace = true+indexmap.workspace = true+tracing.workspace = true+uuid.workspace = true+futures-util.workspace = true++[target.'cfg(target_vendor = "apple")'.dependencies]+objc2.workspace = true+objc2-foundation.workspace = true+objc2-security.workspace = true++[dev-dependencies]+tracing-subscriber.workspace = true+tracing-appender.workspace = true+chrono.workspace = true+tempfile.workspace = true+indicatif.workspace = truediff --git a/crates/nagare/src/api/client.rs b/crates/nagare/src/api/client.rsnew file mode 100644index 000000000..25bf06ffd--- /dev/null+++ b/crates/nagare/src/api/client.rs@@ -0,0 +1,65 @@+use reqwest::Client as ReqwestClient;+use serde::de::DeserializeOwned;++use crate::api::{Config, Endpoint, Error};++pub struct Client {+ config: Config,+ client: ReqwestClient,+}++impl Client {+ pub fn new(config: Config) -> Result<Self, Error> {+ let client = reqwest::Client::builder().timeout(config.timeout).build().map_err(Error::from)?;++ Ok(Self {+ config,+ client,+ })+ }++ pub async fn response<E: Endpoint, T: DeserializeOwned>(+ &self,+ endpoint: &E,+ ) -> Result<T, Error> {+ let url = self.url(endpoint);+ let method = endpoint.method();+ let payload = endpoint.payload(&self.config);++ let mut request = self.client.request(method, url);+ if let Some(query) = payload.query {+ request = request.query(+ &query.into_iter().map(|(key, value)| (key, value.to_string())).collect::<Vec<(String, String)>>(),+ );+ }+ if let Some(body) = payload.body {+ request = request.json(&body);+ }+ for (key, value) in self.config.headers.iter() {+ request = request.header(key, value);+ }+ for (key, value) in endpoint.headers().iter() {+ request = request.header(key, value);+ }++ let response = request.send().await?;+ let status = response.status();+ if !status.is_success() {+ let body = response.text().await.unwrap_or_default();+ return Err(Error::Http {+ code: status.as_u16(),+ body,+ });+ }+ response.json::<T>().await.map_err(|e| Error::Decode(e.to_string()))+ }+}++impl Client {+ fn url<E: Endpoint>(+ &self,+ endpoint: &E,+ ) -> String {+ format!("{}/{}", self.config.base_url, endpoint.path())+ }+}diff --git a/crates/nagare/src/api/config.rs b/crates/nagare/src/api/config.rsnew file mode 100644index 000000000..d436b6534--- /dev/null+++ b/crates/nagare/src/api/config.rs@@ -0,0 +1,23 @@+use std::time::Duration;++use indexmap::IndexMap;++pub struct Config {+ pub base_url: String,+ pub timeout: Duration,+ pub headers: IndexMap<String, String>,+}++impl Config {+ pub fn new(+ base_url: String,+ timeout: Duration,+ headers: IndexMap<String, String>,+ ) -> Self {+ Self {+ base_url,+ timeout,+ headers,+ }+ }+}diff --git a/crates/nagare/src/api/endpoint.rs b/crates/nagare/src/api/endpoint.rsnew file mode 100644index 000000000..e429ec042--- /dev/null+++ b/crates/nagare/src/api/endpoint.rs@@ -0,0 +1,20 @@+use indexmap::IndexMap;+use reqwest::Method;+use serde_json::Value;++use crate::api::Config;++pub struct Payload {+ pub query: Option<IndexMap<String, String>>,+ pub body: Option<Value>,+}++pub trait Endpoint {+ fn method(&self) -> Method;+ fn path(&self) -> String;+ fn headers(&self) -> IndexMap<String, String>;+ fn payload(+ &self,+ config: &Config,+ ) -> Payload;+}diff --git a/crates/nagare/src/api/error.rs b/crates/nagare/src/api/error.rsnew file mode 100644index 000000000..318cae9f1--- /dev/null+++ b/crates/nagare/src/api/error.rs@@ -0,0 +1,24 @@+#[derive(thiserror::Error, Debug)]+pub enum Error {+ #[error("HTTP {code}: {body}")]+ Http {+ code: u16,+ body: String,+ },+ #[error("Timeout")]+ Timeout,+ #[error("Network: {0}")]+ Network(String),+ #[error("Decode: {0}")]+ Decode(String),+}++impl From<reqwest::Error> for Error {+ fn from(error: reqwest::Error) -> Self {+ if error.is_timeout() {+ Error::Timeout+ } else {+ Error::Network(error.to_string())+ }+ }+}diff --git a/crates/nagare/src/api/mod.rs b/crates/nagare/src/api/mod.rsnew file mode 100644index 000000000..85e0f0ed6--- /dev/null+++ b/crates/nagare/src/api/mod.rs@@ -0,0 +1,9 @@+mod client;+mod config;+mod endpoint;+mod error;++pub use client::Client;+pub use config::Config;+pub use endpoint::{Endpoint, Payload};+pub use error::Error;diff --git a/crates/nagare/src/backend/mod.rs b/crates/nagare/src/backend/mod.rsnew file mode 100644index 000000000..84027ef2e--- /dev/null+++ b/crates/nagare/src/backend/mod.rs@@ -0,0 +1,15 @@+use std::{error::Error, fmt::Debug};++use serde::{Serialize, de::DeserializeOwned};++pub trait Backend: Debug + Copy + 'static {+ type Error: Error;+ type Config: Serialize + DeserializeOwned;+ type BackendInstance: BackendInstance<Backend = Self>;+}++pub trait BackendInstance: Sized {+ type Backend: Backend<BackendInstance = Self>;++ fn new(config: <Self::Backend as Backend>::Config) -> Result<Self, <Self::Backend as Backend>::Error>;+}diff --git a/crates/nagare/src/device/error.rs b/crates/nagare/src/device/error.rsnew file mode 100644index 000000000..c8183d2ee--- /dev/null+++ b/crates/nagare/src/device/error.rs@@ -0,0 +1,6 @@+#[derive(Debug, thiserror::Error)]+#[non_exhaustive]+pub enum Error {+ #[error("Unsupported device")]+ UnsupportedDevice,+}diff --git a/crates/nagare/src/device/mod.rs b/crates/nagare/src/device/mod.rsnew file mode 100644index 000000000..970cd0e29--- /dev/null+++ b/crates/nagare/src/device/mod.rs@@ -0,0 +1,40 @@+mod error;+mod os;++use std::path::PathBuf;++pub use error::Error;+use os::{home_path, is_environment_sandboxed};+use serde::{Deserialize, Serialize};+use sysinfo::System;++#[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]+#[serde(rename_all = "snake_case")]+pub struct Device {+ pub os_name: Option<String>,+ pub cpu_name: Option<String>,+ pub memory_total: u64,+ pub home_path: PathBuf,+ pub is_environment_sandboxed: bool,+}++impl Device {+ pub fn new() -> Result<Self, Error> {+ let mut system_info = System::new_all();+ system_info.refresh_all();++ let os_name = System::long_os_version();+ let cpu_name = system_info.cpus().first().map(|cpu| cpu.brand().to_string());+ let memory_total = system_info.total_memory();+ let home_path = home_path().ok_or(Error::UnsupportedDevice)?;+ let is_environment_sandboxed = is_environment_sandboxed();++ Ok(Self {+ os_name,+ cpu_name,+ memory_total,+ home_path,+ is_environment_sandboxed,+ })+ }+}diff --git a/crates/nagare/src/device/os.rs b/crates/nagare/src/device/os.rsnew file mode 100644index 000000000..19e2a75f8--- /dev/null+++ b/crates/nagare/src/device/os.rs@@ -0,0 +1,32 @@+use std::path::PathBuf;++#[allow(unreachable_code)]+pub fn home_path() -> Option<PathBuf> {+ #[cfg(target_vendor = "apple")]+ {+ use objc2_foundation::NSHomeDirectory;++ let path = NSHomeDirectory();+ return Some(PathBuf::from(path.to_string()));+ }+ dirs::home_dir()+}++#[allow(unreachable_code)]+pub fn is_environment_sandboxed() -> bool {+ #[cfg(target_vendor = "apple")]+ {+ use objc2_foundation::NSString;+ use objc2_security::SecTask;++ unsafe {+ let Some(task) = SecTask::from_self(None) else {+ return false;+ };+ let key = NSString::from_str("com.apple.security.app-sandbox");+ let value = task.value_for_entitlement(key.as_ref(), std::ptr::null_mut());+ return value.is_some();+ }+ }+ false+}diff --git a/crates/nagare/src/helpers/mod.rs b/crates/nagare/src/helpers/mod.rsnew file mode 100644index 000000000..029496f76--- /dev/null+++ b/crates/nagare/src/helpers/mod.rs@@ -0,0 +1,3 @@+mod shared_access;++pub use shared_access::SharedAccess;diff --git a/crates/nagare/src/helpers/shared_access.rs b/crates/nagare/src/helpers/shared_access.rsnew file mode 100644index 000000000..db4b28654--- /dev/null+++ b/crates/nagare/src/helpers/shared_access.rs@@ -0,0 +1,23 @@+use std::sync::Arc;++use tokio::sync::{Mutex, MutexGuard};++pub struct SharedAccess<T: ?Sized>(Arc<Mutex<T>>);++impl<T> SharedAccess<T> {+ pub fn new(value: T) -> Self {+ Self(Arc::new(Mutex::new(value)))+ }+}++impl<T: ?Sized> SharedAccess<T> {+ pub async fn lock(&self) -> MutexGuard<'_, T> {+ self.0.lock().await+ }+}++impl<T: ?Sized> Clone for SharedAccess<T> {+ fn clone(&self) -> Self {+ Self(Arc::clone(&self.0))+ }+}diff --git a/crates/nagare/src/lib.rs b/crates/nagare/src/lib.rsnew file mode 100644index 000000000..bc1b8539b--- /dev/null+++ b/crates/nagare/src/lib.rs@@ -0,0 +1,6 @@+pub mod api;+pub mod backend;+pub mod device;+pub mod helpers;+pub mod registry;+pub mod storage;diff --git a/crates/nagare/src/registry/cached.rs b/crates/nagare/src/registry/cached.rsnew file mode 100644index 000000000..a07bd973c--- /dev/null+++ b/crates/nagare/src/registry/cached.rs@@ -0,0 +1,43 @@+use std::{future::Future, pin::Pin};++use tokio::sync::Mutex;++use crate::registry::{Error, Registry, types::Model};++pub struct CachedRegistry {+ registry: Box<dyn Registry>,+ models: Mutex<Option<Vec<Model>>>,+}++impl CachedRegistry {+ pub fn new(registry: Box<dyn Registry>) -> Self {+ Self {+ registry,+ models: Mutex::new(None),+ }+ }++ pub async fn clear(&self) {+ let mut cached_models = self.models.lock().await;+ *cached_models = None;+ }+}++impl Registry for CachedRegistry {+ fn indentifier(&self) -> String {+ self.registry.indentifier()+ }++ fn models(&self) -> Pin<Box<dyn Future<Output = Result<Vec<Model>, Error>> + Send + '_>> {+ Box::pin(async {+ let mut cached_models = self.models.lock().await;+ if let Some(cached_models) = cached_models.as_ref() {+ return Ok(cached_models.clone());+ } else {+ let models = self.registry.models().await?;+ *cached_models = Some(models.clone());+ return Ok(models);+ }+ })+ }+}diff --git a/crates/nagare/src/registry/error.rs b/crates/nagare/src/registry/error.rsnew file mode 100644index 000000000..36792f18a--- /dev/null+++ b/crates/nagare/src/registry/error.rs@@ -0,0 +1,16 @@+#[derive(Debug, thiserror::Error)]+#[non_exhaustive]+pub enum Error {+ #[error("Unable to create: {message}")]+ UnableToCreate {+ message: String,+ },+ #[error("Unable to get models: {message}")]+ UnableToGetModels {+ message: String,+ },+ #[error("Unable to add registry: {identifier}")]+ UnableToAddRegistry {+ identifier: String,+ },+}diff --git a/crates/nagare/src/registry/fixed.rs b/crates/nagare/src/registry/fixed.rsnew file mode 100644index 000000000..450d62b7e--- /dev/null+++ b/crates/nagare/src/registry/fixed.rs@@ -0,0 +1,34 @@+use std::{future::Future, pin::Pin};++use tokio::sync::Mutex;++use crate::registry::{Error, Registry, types::Model};++pub struct FixedRegistry {+ identifier: String,+ models: Mutex<Vec<Model>>,+}++impl FixedRegistry {+ pub fn new(+ identifier: String,+ models: Vec<Model>,+ ) -> Self {+ Self {+ identifier,+ models: Mutex::new(models),+ }+ }+}++impl Registry for FixedRegistry {+ fn indentifier(&self) -> String {+ self.identifier.clone()+ }++ fn models(&self) -> Pin<Box<dyn Future<Output = Result<Vec<Model>, Error>> + Send + '_>> {+ Box::pin(async {+ return Ok(self.models.lock().await.clone());+ })+ }+}diff --git a/crates/nagare/src/registry/merged.rs b/crates/nagare/src/registry/merged.rsnew file mode 100644index 000000000..cd9cca874--- /dev/null+++ b/crates/nagare/src/registry/merged.rs@@ -0,0 +1,54 @@+use std::{future::Future, pin::Pin};++use crate::registry::{Error, Registry, types::Model};++pub struct MergedRegistry {+ registries: Vec<Box<dyn Registry>>,+}++impl MergedRegistry {+ pub fn new(registries: Vec<Box<dyn Registry>>) -> Self {+ Self {+ registries,+ }+ }++ pub fn add(+ &mut self,+ registry: Box<dyn Registry>,+ ) -> Result<(), Error> {+ if self.registries.iter().any(|current_registry| current_registry.indentifier() == registry.indentifier()) {+ return Err(Error::UnableToAddRegistry {+ identifier: registry.indentifier(),+ });+ }+ self.registries.push(registry);+ Ok(())+ }++ pub fn remove(+ &mut self,+ identifier: &str,+ ) -> Result<(), Error> {+ self.registries.retain(|registry| registry.indentifier() != identifier);+ Ok(())+ }+}++impl Registry for MergedRegistry {+ fn indentifier(&self) -> String {+ self.registries.iter().map(|registry| registry.indentifier()).collect::<Vec<String>>().join(":")+ }++ fn models(&self) -> Pin<Box<dyn Future<Output = Result<Vec<Model>, Error>> + Send + '_>> {+ Box::pin(async {+ let results = futures::future::join_all(self.registries.iter().map(|registry| registry.models())).await;++ let mut models = Vec::new();+ for result in results {+ models.extend(result?);+ }+ Ok(models)+ })+ }+}diff --git a/crates/nagare/src/registry/mod.rs b/crates/nagare/src/registry/mod.rsnew file mode 100644index 000000000..76b4cf976--- /dev/null+++ b/crates/nagare/src/registry/mod.rs@@ -0,0 +1,44 @@+mod cached;+mod error;+mod fixed;+mod merged;+pub mod types;++use std::{future::Future, pin::Pin};++pub use cached::CachedRegistry;+pub use error::Error;+pub use fixed::FixedRegistry;+pub use merged::MergedRegistry;++use crate::registry::types::Model;++pub trait Registry: Send + Sync {+ fn indentifier(&self) -> String;++ fn models(&self) -> Pin<Box<dyn Future<Output = Result<Vec<Model>, Error>> + Send + '_>>;++ fn model_by_identifier(+ &self,+ identifier: &str,+ ) -> Pin<Box<dyn Future<Output = Result<Option<Model>, Error>> + Send + '_>> {+ let identifier = identifier.to_string();+ Box::pin(async move {+ let models = self.models().await?;+ let model = models.iter().find(|model| model.identifier() == identifier).cloned();+ Ok(model)+ })+ }++ fn model_by_repo_id(+ &self,+ repo_id: &str,+ ) -> Pin<Box<dyn Future<Output = Result<Option<Model>, Error>> + Send + '_>> {+ let repo_id = repo_id.to_string();+ Box::pin(async move {+ let models = self.models().await?;+ let model = models.iter().find(|model| model.repo_ids().contains(&repo_id)).cloned();+ Ok(model)+ })+ }+}diff --git a/crates/nagare/src/registry/types/accessibility.rs b/crates/nagare/src/registry/types/accessibility.rsnew file mode 100644index 000000000..0446a6c3f--- /dev/null+++ b/crates/nagare/src/registry/types/accessibility.rs@@ -0,0 +1,16 @@+use serde::{Deserialize, Serialize};++use crate::registry::types::{Reference, Repository};++#[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]+#[serde(tag = "type", rename_all = "snake_case")]+pub enum Accessibility {+ Local {+ provider_identifier: String,+ reference: Reference,+ },+ Remote {+ provider_identifier: String,+ source_repository: Option<Repository>,+ },+}diff --git a/crates/nagare/src/registry/types/entity.rs b/crates/nagare/src/registry/types/entity.rsnew file mode 100644index 000000000..cdb5dc347--- /dev/null+++ b/crates/nagare/src/registry/types/entity.rs@@ -0,0 +1,21 @@+use serde::{Deserialize, Serialize};++use crate::registry::types::Image;++#[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]+#[serde(tag = "type", rename_all = "snake_case")]+pub enum EntityType {+ Vendor,+ Family,+ Model,+}++#[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]+#[serde(rename_all = "snake_case")]+pub struct Entity {+ pub r#type: EntityType,+ pub identifier: String,+ pub name: String,+ pub description: Option<String>,+ pub icon: Vec<Image>,+}diff --git a/crates/nagare/src/registry/types/file.rs b/crates/nagare/src/registry/types/file.rsnew file mode 100644index 000000000..4e9ad3df5--- /dev/null+++ b/crates/nagare/src/registry/types/file.rs@@ -0,0 +1,18 @@+use serde::{Deserialize, Serialize};++use crate::registry::types::{Hash, HashMethod};++#[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]+#[serde(rename_all = "snake_case")]+pub struct File {+ pub url: String,+ pub name: String,+ pub size: u64,+ pub hashes: Vec<Hash>,+}++impl File {+ pub fn crc32c(&self) -> Option<String> {+ self.hashes.iter().find(|hash| hash.method == HashMethod::CRC32C).map(|hash| hash.value.clone())+ }+}diff --git a/crates/nagare/src/registry/types/hash.rs b/crates/nagare/src/registry/types/hash.rsnew file mode 100644index 000000000..e7b58c8f2--- /dev/null+++ b/crates/nagare/src/registry/types/hash.rs@@ -0,0 +1,15 @@+use serde::{Deserialize, Serialize};++#[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]+#[serde(tag = "type", rename_all = "snake_case")]+pub enum HashMethod {+ CRC32C,+ MD5,+}++#[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]+#[serde(rename_all = "snake_case")]+pub struct Hash {+ pub method: HashMethod,+ pub value: String,+}diff --git a/crates/nagare/src/registry/types/image.rs b/crates/nagare/src/registry/types/image.rsnew file mode 100644index 000000000..fde3dd005--- /dev/null+++ b/crates/nagare/src/registry/types/image.rs@@ -0,0 +1,9 @@+use serde::{Deserialize, Serialize};++#[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]+#[serde(rename_all = "snake_case")]+pub struct Image {+ pub url: String,+ pub width: u32,+ pub height: u32,+}diff --git a/crates/nagare/src/registry/types/mod.rs b/crates/nagare/src/registry/types/mod.rsnew file mode 100644index 000000000..d843d964c--- /dev/null+++ b/crates/nagare/src/registry/types/mod.rs@@ -0,0 +1,19 @@+mod accessibility;+mod entity;+mod file;+mod hash;+mod image;+mod model;+mod reference;+mod repository;+mod specialization;++pub use accessibility::Accessibility;+pub use entity::{Entity, EntityType};+pub use file::File;+pub use hash::{Hash, HashMethod};+pub use image::Image;+pub use model::Model;+pub use reference::Reference;+pub use repository::Repository;+pub use specialization::Specialization;diff --git a/crates/nagare/src/registry/types/model.rs b/crates/nagare/src/registry/types/model.rsnew file mode 100644index 000000000..5e5099abf--- /dev/null+++ b/crates/nagare/src/registry/types/model.rs@@ -0,0 +1,112 @@+use serde::{Deserialize, Serialize};++use crate::registry::types::{Accessibility, Entity, Reference, Specialization};++#[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]+#[serde(rename_all = "snake_case")]+pub struct Model {+ pub entities: Vec<Entity>,+ pub specializations: Vec<Specialization>,+ pub number_of_parameters: Option<u64>,+ pub accessibility: Accessibility,+}++impl Model {+ pub fn identifier(&self) -> String {+ self.entities.iter().map(|entity| entity.identifier.clone()).collect::<Vec<String>>().join(":")+ }++ pub fn cache_identifier(&self) -> String {+ self.identifier().replace(":", "-")+ }++ pub fn is_local(&self) -> bool {+ matches!(self.accessibility, Accessibility::Local { .. })+ }++ pub fn is_remote(&self) -> bool {+ matches!(self.accessibility, Accessibility::Remote { .. })+ }++ pub fn provider_identifier(&self) -> String {+ match &self.accessibility {+ Accessibility::Local {+ provider_identifier,+ ..+ } => provider_identifier.clone(),+ Accessibility::Remote {+ provider_identifier,+ ..+ } => provider_identifier.clone(),+ }+ }++ pub fn repo_ids(&self) -> Vec<String> {+ match &self.accessibility {+ Accessibility::Local {+ reference,+ ..+ } => match reference {+ Reference::Mirai {+ repository,+ source_repository,+ ..+ } => {+ let mut result = vec![];+ if let Some(repository) = repository {+ result.push(repository.identifier.clone());+ }+ if let Some(source_repository) = source_repository {+ result.push(source_repository.identifier.clone());+ }+ result+ },+ Reference::HuggingFace {+ repository,+ } => vec![repository.identifier.clone()],+ },+ Accessibility::Remote {+ source_repository,+ ..+ } => {+ let mut result = vec![];+ if let Some(source_repository) = source_repository {+ result.push(source_repository.identifier.clone());+ }+ result+ },+ }+ }++ pub fn reference_type(&self) -> Option<String> {+ match &self.accessibility {+ Accessibility::Local {+ reference,+ ..+ } => Some(reference.r#type()),+ Accessibility::Remote {+ ..+ } => None,+ }+ }++ pub fn checkpoint_version(&self) -> Option<String> {+ match &self.accessibility {+ Accessibility::Local {+ reference,+ ..+ } => match reference {+ Reference::Mirai {+ toolchain_version,+ ..+ } => Some(toolchain_version.clone()),+ Reference::HuggingFace {+ repository,+ } => Some(repository.commit_hash.clone()),+ },+ Accessibility::Remote {+ ..+ } => None,+ }+ }+}diff --git a/crates/nagare/src/registry/types/reference.rs b/crates/nagare/src/registry/types/reference.rsnew file mode 100644index 000000000..fd02d04cd--- /dev/null+++ b/crates/nagare/src/registry/types/reference.rs@@ -0,0 +1,30 @@+use serde::{Deserialize, Serialize};++use crate::registry::types::{File, Repository};++#[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]+#[serde(tag = "type", rename_all = "snake_case")]+pub enum Reference {+ HuggingFace {+ repository: Repository,+ },+ Mirai {+ toolchain_version: String,+ repository: Option<Repository>,+ source_repository: Option<Repository>,+ files: Vec<File>,+ },+}++impl Reference {+ pub fn r#type(&self) -> String {+ match self {+ Reference::HuggingFace {+ ..+ } => "huggingface".to_string(),+ Reference::Mirai {+ ..+ } => "mirai".to_string(),+ }+ }+}diff --git a/crates/nagare/src/registry/types/repository.rs b/crates/nagare/src/registry/types/repository.rsnew file mode 100644index 000000000..c5c437ae0--- /dev/null+++ b/crates/nagare/src/registry/types/repository.rs@@ -0,0 +1,9 @@+use serde::{Deserialize, Serialize};++#[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]+#[serde(rename_all = "snake_case")]+pub struct Repository {+ pub identifier: String,+ pub commit_hash: String,+ pub paths: Option<Vec<String>>,+}diff --git a/crates/nagare/src/registry/types/specialization.rs b/crates/nagare/src/registry/types/specialization.rsnew file mode 100644index 000000000..44bfefdc5--- /dev/null+++ b/crates/nagare/src/registry/types/specialization.rs@@ -0,0 +1,11 @@+use serde::{Deserialize, Serialize};++#[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]+#[serde(tag = "type", rename_all = "snake_case")]+pub enum Specialization {+ Chat,+ Classification,+ TextToSpeech,+ Translation,+ Speculation,+}diff --git a/crates/nagare/src/storage/config.rs b/crates/nagare/src/storage/config.rsnew file mode 100644index 000000000..ad69552bb--- /dev/null+++ b/crates/nagare/src/storage/config.rs@@ -0,0 +1,44 @@+use std::path::PathBuf;++use serde::{Deserialize, Serialize};++use crate::{device::Device, registry::types::Model};++#[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]+#[serde(rename_all = "snake_case")]+pub struct Config {+ pub device: Device,+ pub base_path: Option<PathBuf>,+ pub name: String,+}++impl Config {+ pub fn new(+ device: Device,+ base_path: Option<PathBuf>,+ name: String,+ ) -> Self {+ Self {+ device,+ base_path,+ name,+ }+ }++ pub fn cache_path(&self) -> PathBuf {+ self.base_path.clone().unwrap_or(self.device.home_path.clone()).join(".cache").join(&self.name)+ }++ pub fn cache_models_path(&self) -> PathBuf {+ self.cache_path().join("models")+ }++ pub fn cache_model_path(+ &self,+ model: &Model,+ ) -> Option<PathBuf> {+ let reference_type = model.reference_type()?;+ let checkpoint_version = model.checkpoint_version()?;+ Some(self.cache_models_path().join(reference_type).join(model.cache_identifier()).join(checkpoint_version))+ }+}diff --git a/crates/nagare/src/storage/error.rs b/crates/nagare/src/storage/error.rsnew file mode 100644index 000000000..d4082e441--- /dev/null+++ b/crates/nagare/src/storage/error.rs@@ -0,0 +1,42 @@+use crate::{registry::Error as RegistryError, storage::types::DownloadPhase};++#[derive(Debug, thiserror::Error)]+#[non_exhaustive]+pub enum Error {+ #[error("Unable to create directory: {path}")]+ UnableToCreateDirectory {+ path: String,+ },+ #[error("Unable to create download manager: {message}")]+ UnableToCreateDownloadManager {+ message: String,+ },+ #[error("Download manager error: {message}")]+ DownloadManager {+ message: String,+ },+ #[error("Hash not found for file: {identifier}/{name}")]+ HashNotFound {+ identifier: String,+ name: String,+ },+ #[error("Invalid state transition from {from:?} to {to:?}")]+ InvalidStateTransition {+ from: DownloadPhase,+ to: DownloadPhase,+ },+ #[error("IO error: {message}")]+ IO {+ message: String,+ },+ #[error("Item not found: {identifier}")]+ ItemNotFound {+ identifier: String,+ },+ #[error(transparent)]+ Registry(#[from] RegistryError),+ #[error("Unsupported item: {identifier}")]+ UnsupportedItem {+ identifier: String,+ },+}diff --git a/crates/nagare/src/storage/mod.rs b/crates/nagare/src/storage/mod.rsnew file mode 100644index 000000000..c9044b01a--- /dev/null+++ b/crates/nagare/src/storage/mod.rs@@ -0,0 +1,275 @@+mod config;+mod error;+pub mod types;++use std::{+ collections::{HashMap, HashSet},+ fs::{create_dir_all, read_dir, remove_dir_all},+ sync::Arc,+};++pub use config::Config;+use download_manager::{+ FileCheck, FileDownloadManager, FileDownloadManagerType, FileDownloadPhase, create_download_manager,+};+pub use error::Error;+use tokio::{+ runtime::Handle,+ sync::broadcast::{Sender, channel},+};+use tokio_stream::wrappers::BroadcastStream;++use crate::{+ helpers::SharedAccess,+ registry::types::{Accessibility, File, Model, Reference},+ storage::types::{DownloadPhase, DownloadState, Item},+};++pub struct Storage {+ config: Config,+ download_manager: SharedAccess<Arc<dyn FileDownloadManager>>,+ items: SharedAccess<HashMap<String, Item>>,+ items_broadcast_sender: Sender<(String, DownloadState)>,+ handle: Handle,+}++impl Storage {+ pub async fn new(+ tokio_handle: Handle,+ config: Config,+ ) -> Result<Self, Error> {+ create_dir_all(config.cache_path()).map_err(|_| Error::UnableToCreateDirectory {+ path: config.cache_path().to_string_lossy().to_string(),+ })?;++ let download_manager = SharedAccess::new(Arc::from(+ create_download_manager(+ FileDownloadManagerType::default(),+ Some(config.name.clone()),+ tokio_handle.clone(),+ )+ .await+ .map_err(|error| Error::DownloadManager {+ message: error.to_string(),+ })?,+ ));++ let items = SharedAccess::new(HashMap::new());++ let (items_broadcast_sender, _) = channel(256);++ let storage = Self {+ config,+ download_manager,+ items,+ items_broadcast_sender,+ handle: tokio_handle,+ };+ Ok(storage)+ }+}++impl Storage {+ pub async fn refresh(+ &self,+ models: Vec<Model>,+ ) -> Result<(), Error> {+ let models = models.into_iter().filter(|model| model.is_local()).collect::<Vec<_>>();+ let actual_model_identifiers: HashSet<String> = models.iter().map(|model| model.identifier()).collect();++ let download_manager = { self.download_manager.lock().await.clone() };++ let existing_file_tasks =+ download_manager.get_all_file_tasks().await.map_err(|error| Error::DownloadManager {+ message: error.to_string(),+ })?;+ let mut active_file_tasks = Vec::with_capacity(existing_file_tasks.len());+ for task in existing_file_tasks {+ let task_state = task.state().await;+ if matches!(task_state.phase, FileDownloadPhase::Error(_)) {+ let _ = task.cancel().await;+ } else {+ active_file_tasks.push(task);+ }+ }++ let mut items = self.items.lock().await;+ let stale_model_identifiers: Vec<String> = items+ .keys()+ .filter(|identifier| !actual_model_identifiers.contains(identifier.as_str()))+ .cloned()+ .collect();+ for identifier in stale_model_identifiers {+ if let Some(item) = items.remove(&identifier) {+ item.stop_listening().await;+ }+ }++ for model in models {+ let identifier = model.identifier();+ if items.contains_key(&identifier) {+ continue;+ }++ let files = self.resolve_model_files(&model)?;+ let total_bytes: u64 = files.iter().map(|file| file.size).sum();++ let cache_path = self.config.cache_model_path(&model).ok_or(Error::UnsupportedItem {+ identifier: identifier.clone(),+ })?;++ let has_files_on_disk = cache_path.exists();+ let has_active_tasks = files.iter().any(|file| {+ let file_path = cache_path.join(&file.name);+ active_file_tasks.iter().any(|task| task.destination() == file_path)+ });++ let item = if has_files_on_disk || has_active_tasks {+ let mut file_tasks = Vec::new();+ for file in &files {+ let file_path = cache_path.join(&file.name);+ let file_check = FileCheck::CRC(file.crc32c().ok_or(Error::HashNotFound {+ identifier: identifier.clone(),+ name: file.name.clone(),+ })?);++ let file_task = download_manager+ .file_download_task(&file.url, &file_path, file_check, Some(file.size))+ .await+ .map_err(|error| Error::DownloadManager {+ message: error.to_string(),+ })?;++ file_tasks.push(file_task);+ }++ let item = Item::new(+ identifier.clone(),+ files.into(),+ cache_path.clone(),+ DownloadState::not_downloaded(total_bytes),+ download_manager.clone(),+ file_tasks,+ self.handle.clone(),+ self.items_broadcast_sender.clone(),+ );++ item.start_listening().await;+ let _ = item.reconcile().await;+ let item_state = item.state().await;++ if matches!(item_state.phase, DownloadPhase::NotDownloaded)+ && cache_path.exists()+ && let Ok(entries) = read_dir(&cache_path)+ {+ let has_real_files = entries.flatten().any(|entry| {+ entry+ .file_name()+ .to_str()+ .is_some_and(|name| !name.ends_with(".resume_data") && !name.starts_with('.'))+ });+ if !has_real_files {+ let _ = remove_dir_all(&cache_path);+ }+ }++ item+ } else {+ Item::new(+ identifier.clone(),+ files.into(),+ cache_path.clone(),+ DownloadState::not_downloaded(total_bytes),+ download_manager.clone(),+ Vec::new(),+ self.handle.clone(),+ self.items_broadcast_sender.clone(),+ )+ };++ items.insert(identifier, item);+ }++ Ok(())+ }++ pub fn subscribe(&self) -> BroadcastStream<(String, DownloadState)> {+ BroadcastStream::new(self.items_broadcast_sender.subscribe())+ }++ pub async fn get(+ &self,+ model_identifier: &String,+ ) -> Option<Item> {+ let items = self.items.lock().await;+ items.get(model_identifier).cloned()+ }++ pub async fn state(+ &self,+ model_identifier: &String,+ ) -> Option<DownloadState> {+ let item = self.get(model_identifier).await?;+ let state = item.state().await;+ Some(state)+ }++ pub async fn download(+ &self,+ model_identifier: &String,+ ) -> Result<(), Error> {+ let item = self.get(model_identifier).await.ok_or_else(|| Error::ItemNotFound {+ identifier: model_identifier.clone(),+ })?;+ item.download().await+ }++ pub async fn pause(+ &self,+ model_identifier: &String,+ ) -> Result<(), Error> {+ let item = self.get(model_identifier).await.ok_or_else(|| Error::ItemNotFound {+ identifier: model_identifier.clone(),+ })?;+ item.pause().await+ }++ pub async fn delete(+ &self,+ model_identifier: &String,+ ) -> Result<(), Error> {+ let item = self.get(model_identifier).await.ok_or_else(|| Error::ItemNotFound {+ identifier: model_identifier.clone(),+ })?;+ item.cancel().await+ }+}++impl Storage {+ fn resolve_model_files(+ &self,+ model: &Model,+ ) -> Result<Vec<File>, Error> {+ match &model.accessibility {+ Accessibility::Local {+ reference,+ ..+ } => match &reference {+ Reference::Mirai {+ files,+ ..+ } => Ok(files.clone()),+ Reference::HuggingFace {+ ..+ } => Err(Error::UnsupportedItem {+ identifier: model.identifier(),+ }),+ },+ Accessibility::Remote {+ ..+ } => Err(Error::UnsupportedItem {+ identifier: model.identifier(),+ }),+ }+ }+}diff --git a/crates/nagare/src/storage/types/crc_snapshot.rs b/crates/nagare/src/storage/types/crc_snapshot.rsnew file mode 100644index 000000000..32afa5f6c--- /dev/null+++ b/crates/nagare/src/storage/types/crc_snapshot.rs@@ -0,0 +1,27 @@+use std::{fs::remove_file, path::Path};++use crate::storage::Error;++pub struct CrcSnapshot;++impl CrcSnapshot {+ fn crc_file_path(+ model_dir: &Path,+ filename: &str,+ ) -> std::path::PathBuf {+ model_dir.join(format!("{}.crc", filename))+ }++ pub fn remove_crc(+ model_dir: &Path,+ filename: &str,+ ) -> Result<(), Error> {+ let crc_path = Self::crc_file_path(model_dir, filename);+ if crc_path.exists() {+ remove_file(&crc_path).map_err(|error| Error::IO {+ message: error.to_string(),+ })?;+ }+ Ok(())+ }+}diff --git a/crates/nagare/src/storage/types/download_phase.rs b/crates/nagare/src/storage/types/download_phase.rsnew file mode 100644index 000000000..1bde53093--- /dev/null+++ b/crates/nagare/src/storage/types/download_phase.rs@@ -0,0 +1,24 @@+#[derive(Debug, Clone, PartialEq, Eq, Hash)]+pub enum DownloadPhase {+ NotDownloaded,+ Downloading,+ Paused,+ Downloaded,+ Locked,+ Error(String),+}++impl DownloadPhase {+ pub fn is_in_progress(&self) -> bool {+ matches!(self, Self::Downloading | Self::Paused)+ }++ pub fn can_pause(&self) -> bool {+ matches!(self, Self::Downloading | Self::Paused)+ }++ pub fn can_delete(&self) -> bool {+ // Allow delete in all states except NotDownloaded+ !matches!(self, Self::NotDownloaded)+ }+}diff --git a/crates/nagare/src/storage/types/download_state.rs b/crates/nagare/src/storage/types/download_state.rsnew file mode 100644index 000000000..f17f96574--- /dev/null+++ b/crates/nagare/src/storage/types/download_state.rs@@ -0,0 +1,138 @@+use download_manager::{FileDownloadPhase, FileDownloadState};++use crate::storage::types::DownloadPhase;++#[derive(Debug, Clone, PartialEq, Eq, Hash)]+pub struct DownloadState {+ pub total_bytes: u64,+ pub downloaded_bytes: u64,+ pub phase: DownloadPhase,+}++impl DownloadState {+ pub fn not_downloaded(total_bytes: u64) -> Self {+ Self {+ total_bytes,+ downloaded_bytes: 0,+ phase: DownloadPhase::NotDownloaded,+ }+ }++ pub fn downloading(+ downloaded_bytes: u64,+ total_bytes: u64,+ ) -> Self {+ Self {+ total_bytes,+ downloaded_bytes,+ phase: DownloadPhase::Downloading,+ }+ }++ pub fn paused(+ downloaded_bytes: u64,+ total_bytes: u64,+ ) -> Self {+ Self {+ total_bytes,+ downloaded_bytes,+ phase: DownloadPhase::Paused,+ }+ }++ pub fn downloaded(total_bytes: u64) -> Self {+ Self {+ total_bytes,+ downloaded_bytes: total_bytes,+ phase: DownloadPhase::Downloaded,+ }+ }++ pub fn locked(+ downloaded_bytes: u64,+ total_bytes: u64,+ ) -> Self {+ Self {+ total_bytes,+ downloaded_bytes,+ phase: DownloadPhase::Locked,+ }+ }++ pub fn error(error_message: String) -> Self {+ Self {+ total_bytes: 0,+ downloaded_bytes: 0,+ phase: DownloadPhase::Error(error_message),+ }+ }++ pub fn progress(&self) -> f32 {+ if self.total_bytes == 0 {+ 0.0+ } else {+ self.downloaded_bytes as f32 / self.total_bytes as f32+ }+ }++ pub fn is_in_progress(&self) -> bool {+ self.phase.is_in_progress()+ }++ pub fn can_pause(&self) -> bool {+ self.phase.can_pause()+ }++ pub fn can_delete(&self) -> bool {+ self.phase.can_delete()+ }+}++pub fn reduce_file_download_states(file_states: &[FileDownloadState]) -> DownloadState {+ if file_states.is_empty() {+ return DownloadState::not_downloaded(0);+ }++ let total_bytes: u64 = file_states.iter().map(|f| f.total_bytes).sum();+ let downloaded_bytes: u64 = file_states.iter().map(|f| f.downloaded_bytes).sum();++ let all_downloaded = file_states.iter().all(|f| matches!(f.phase, FileDownloadPhase::Downloaded));+ let any_downloaded = file_states.iter().any(|f| matches!(f.phase, FileDownloadPhase::Downloaded));+ let any_downloading = file_states.iter().any(|f| matches!(f.phase, FileDownloadPhase::Downloading));+ let any_paused = file_states.iter().any(|f| matches!(f.phase, FileDownloadPhase::Paused));+ let any_error = file_states.iter().any(|f| matches!(f.phase, FileDownloadPhase::Error(_)));+ let any_locked = file_states.iter().any(|f| matches!(f.phase, FileDownloadPhase::LockedByOther(_)));++ if all_downloaded {+ return DownloadState::downloaded(total_bytes);+ }++ // Locked takes precedence over other in-progress states+ if any_locked {+ return DownloadState::locked(downloaded_bytes, total_bytes);+ }++ if any_downloading {+ return DownloadState::downloading(downloaded_bytes, total_bytes);+ }++ if any_paused {+ return DownloadState::paused(downloaded_bytes, total_bytes);+ }++ if any_error {+ if let Some(error_state) = file_states.iter().find(|f| matches!(f.phase, FileDownloadPhase::Error(_))) {+ if let FileDownloadPhase::Error(err) = &error_state.phase {+ return DownloadState::error(err.clone());+ }+ }+ }++ // If some files are downloaded but not all, and nothing is actively+ // downloading, treat as paused (partial progress, can resume)+ if any_downloaded && downloaded_bytes > 0 {+ return DownloadState::paused(downloaded_bytes, total_bytes);+ }++ DownloadState::not_downloaded(total_bytes)+}diff --git a/crates/nagare/src/storage/types/item.rs b/crates/nagare/src/storage/types/item.rsnew file mode 100644index 000000000..3322999d6--- /dev/null+++ b/crates/nagare/src/storage/types/item.rs@@ -0,0 +1,643 @@+use std::{+ fs::{create_dir_all, read_dir, remove_dir_all, remove_file},+ path::{Path, PathBuf},+ sync::Arc,+};++use download_manager::{FileDownloadManager, FileDownloadState, FileDownloadTask};+use futures_util::future::join_all;+use tokio::{+ runtime::Handle,+ sync::broadcast::{Sender, channel},+ task::JoinHandle,+};+use tokio_stream::wrappers::BroadcastStream;++use crate::{+ helpers::SharedAccess,+ registry::types::File,+ storage::{+ Error,+ types::{CrcSnapshot, DownloadPhase, DownloadState, reduce_file_download_states},+ },+};++pub struct Item {+ pub identifier: String,+ pub files: Arc<Vec<File>>,+ pub cache_path: PathBuf,++ download_state: SharedAccess<DownloadState>,+ file_download_manager: Arc<dyn FileDownloadManager>,+ file_download_tasks: SharedAccess<Vec<Arc<dyn FileDownloadTask>>>,+ file_download_states: SharedAccess<Vec<FileDownloadState>>,++ handle: Handle,+ broadcast_sender: Sender<DownloadState>,+ storage_broadcast_sender: Sender<(String, DownloadState)>,+ listener_task: SharedAccess<Option<JoinHandle<()>>>,+}++impl std::fmt::Debug for Item {+ fn fmt(+ &self,+ f: &mut std::fmt::Formatter<'_>,+ ) -> std::fmt::Result {+ f.debug_struct("Item").field("identifier", &self.identifier).field("cache_path", &self.cache_path).finish()+ }+}++impl Clone for Item {+ fn clone(&self) -> Self {+ Self {+ identifier: self.identifier.clone(),+ files: self.files.clone(),+ cache_path: self.cache_path.clone(),+ download_state: self.download_state.clone(),+ file_download_manager: self.file_download_manager.clone(),+ file_download_tasks: self.file_download_tasks.clone(),+ file_download_states: self.file_download_states.clone(),+ handle: self.handle.clone(),+ broadcast_sender: self.broadcast_sender.clone(),+ storage_broadcast_sender: self.storage_broadcast_sender.clone(),+ listener_task: self.listener_task.clone(),+ }+ }+}++impl Item {+ pub fn new(+ identifier: String,+ files: Arc<Vec<File>>,+ cache_path: PathBuf,+ download_state: DownloadState,+ file_download_manager: Arc<dyn FileDownloadManager>,+ file_download_tasks: Vec<Arc<dyn FileDownloadTask>>,+ handle: Handle,+ storage_broadcast_sender: Sender<(String, DownloadState)>,+ ) -> Self {+ let (broadcast_sender, _) = channel(64);+ let file_download_states = SharedAccess::new(Vec::new());+ Self {+ identifier,+ files,+ cache_path,+ download_state: SharedAccess::new(download_state),+ file_download_manager,+ file_download_tasks: SharedAccess::new(file_download_tasks),+ file_download_states,+ handle,+ broadcast_sender,+ storage_broadcast_sender,+ listener_task: SharedAccess::new(None),+ }+ }++ pub async fn state(&self) -> DownloadState {+ let state = self.download_state.lock().await.clone();+ state+ }++ async fn get_file_download_states(&self) -> Vec<FileDownloadState> {+ let file_tasks_guard = self.file_download_tasks.lock().await;+ let num_file_tasks = file_tasks_guard.len();+ drop(file_tasks_guard);++ // Use cached states from broadcasts - more reliable than querying+ let cache_guard = self.file_download_states.lock().await;++ // Validate cache is properly sized before using it+ if !cache_guard.is_empty() && cache_guard.len() == num_file_tasks {+ let mut states = cache_guard.clone();+ for (i, state) in states.iter_mut().enumerate() {+ if state.total_bytes == 0 {+ if let Some(file_info) = self.files.get(i) {+ if file_info.size > 0 {+ state.total_bytes = file_info.size;+ }+ }+ }+ }+ return states;+ }++ // If cache exists but size mismatched, fall back to direct query+ if !cache_guard.is_empty() && cache_guard.len() != num_file_tasks {+ tracing::warn!(+ "[MODEL] Cache size mismatch: cache={}, tasks={}, model={}. Falling back to direct query.",+ cache_guard.len(),+ num_file_tasks,+ self.identifier+ );+ }++ drop(cache_guard);++ // Fall back to querying if cache not initialized or size mismatch+ let file_tasks_guard = self.file_download_tasks.lock().await;+ let mut states = Vec::new();+ for file_task in file_tasks_guard.iter() {+ states.push(file_task.state().await);+ }++ // Patch total_bytes from registry if missing (safety net)+ for (i, state) in states.iter_mut().enumerate() {+ if state.total_bytes == 0 {+ if let Some(file_info) = self.files.get(i) {+ if file_info.size > 0 {+ state.total_bytes = file_info.size;+ }+ }+ }+ }++ states+ }++ pub async fn reduce_state(&self) -> DownloadState {+ let file_download_states = self.get_file_download_states().await;++ tracing::debug!(+ "[MODEL] reduce_state: model={}, file_states count={}",+ self.identifier,+ file_download_states.len()+ );+ for (i, state) in file_download_states.iter().enumerate() {+ tracing::debug!(+ "[MODEL] File {} - phase={:?}, downloaded={}/{} bytes",+ i,+ state.phase,+ state.downloaded_bytes,+ state.total_bytes+ );+ }++ let result = reduce_file_download_states(&file_download_states);++ tracing::debug!(+ "[MODEL] reduce_state result: phase={:?}, bytes={}/{}, progress={:.1}%",+ result.phase,+ result.downloaded_bytes,+ result.total_bytes,+ result.progress() * 100.0+ );++ result+ }++ pub async fn update_state_and_broadcast(+ &self,+ new_state: DownloadState,+ ) {+ tracing::debug!(+ "[MODEL] Broadcasting state: id={}, phase={:?}, progress={:.1}%",+ self.identifier,+ new_state.phase,+ new_state.progress() * 100.0+ );++ let mut state_guard = self.download_state.lock().await;+ *state_guard = new_state.clone();+ drop(state_guard);++ let own_receiver_count = self.broadcast_sender.receiver_count();+ let storage_receiver_count = self.storage_broadcast_sender.receiver_count();++ if own_receiver_count == 0 && storage_receiver_count == 0 {+ tracing::debug!("[MODEL] No receivers active, skipping broadcasts (likely shutdown)");+ return;+ }++ if own_receiver_count > 0 {+ let own_result = self.broadcast_sender.send(new_state.clone());++ match own_result {+ Ok(count) => tracing::debug!("[MODEL] ✓ Own broadcast sent to {} receiver(s)", count),+ Err(_) => {+ tracing::trace!("[MODEL] Own broadcast skipped (no receivers)")+ },+ }+ } else {+ tracing::trace!("[MODEL] Skipping own broadcast (no receivers)");+ }++ if storage_receiver_count > 0 {+ let storage_result = self.storage_broadcast_sender.send((self.identifier.clone(), new_state));++ match storage_result {+ Ok(count) => tracing::debug!("[MODEL] ✓ Storage broadcast sent to {} receiver(s)", count),+ Err(_) => tracing::debug!("[MODEL] ⚠️ Storage broadcast failed (no receivers)"),+ }+ } else {+ tracing::trace!("[MODEL] Skipping storage broadcast (no receivers)");+ }+ }++ pub async fn file_task_by_download_id(+ &self,+ download_id: uuid::Uuid,+ ) -> Option<Arc<dyn FileDownloadTask>> {+ let file_tasks_guard = self.file_download_tasks.lock().await;+ file_tasks_guard.iter().find(|task| task.download_id() == download_id).cloned()+ }++ pub async fn reconcile(&self) -> Result<(), Error> {+ // Reconciliation is now handled by FileDownloadTask+ // Just update our broadcast with current state+ let calculated_state = self.reduce_state().await;+ self.update_state_and_broadcast(calculated_state).await;+ Ok(())+ }++ async fn ensure_file_tasks(&self) -> Result<bool, Error> {+ let mut file_tasks_guard = self.file_download_tasks.lock().await;++ // If file tasks already exist, skip creation+ if !file_tasks_guard.is_empty() {+ return Ok(false);+ }++ // Initialize file download tasks+ let mut new_file_tasks = Vec::new();+ for file_info in self.files.iter() {+ let file_path = self.cache_path.join(&file_info.name);+ let file_check = download_manager::FileCheck::CRC(file_info.crc32c().ok_or(Error::HashNotFound {+ identifier: self.identifier.clone(),+ name: file_info.name.clone(),+ })?);++ let file_task = self+ .file_download_manager+ .file_download_task(&file_info.url, &file_path, file_check, Some(file_info.size))+ .await+ .map_err(|error| Error::DownloadManager {+ message: error.to_string(),+ })?;++ // Start listening to global broadcast+ file_task.start_listening((*self.file_download_manager.global_broadcast_sender()).clone()).await;++ new_file_tasks.push(file_task);+ }++ *file_tasks_guard = new_file_tasks;+ Ok(true)+ }++ pub async fn download(&self) -> Result<(), Error> {+ tracing::debug!("[MODEL] download() called for model: {}", self.identifier);++ // Ensure file tasks are initialized+ let tasks_were_created = self.ensure_file_tasks().await?;++ // Only restart listener if file tasks were just created+ if tasks_were_created {+ tracing::debug!("[MODEL] Restarting listener for model: {} (file tasks created)", self.identifier);+ self.stop_listening().await;+ self.start_listening().await;+ }++ // Reduce state after ensuring file tasks+ let current_state = self.reduce_state().await;+ self.update_state_and_broadcast(current_state.clone()).await;++ tracing::debug!(+ "[MODEL] Current state: phase={:?}, can_transition={}",+ current_state.phase,+ Self::can_transition_to_downloading(¤t_state.phase)+ );++ if !Self::can_transition_to_downloading(¤t_state.phase) {+ return Err(Error::InvalidStateTransition {+ from: current_state.phase.clone(),+ to: DownloadPhase::Downloading,+ });+ }++ tracing::debug!("[MODEL] Calling ensure_downloading");++ let result = self.ensure_downloading().await;++ tracing::debug!("[MODEL] download() completed for model: {}", self.identifier);++ result+ }++ pub async fn pause(&self) -> Result<(), Error> {+ tracing::debug!("[MODEL] pause() called for model: {}", self.identifier);++ // Ensure file tasks are initialized+ let tasks_were_created = self.ensure_file_tasks().await?;++ // Only restart listener if file tasks were just created+ if tasks_were_created {+ tracing::debug!("[MODEL] Restarting listener for model: {} (file tasks created)", self.identifier);+ self.stop_listening().await;+ self.start_listening().await;+ }++ // Reduce state after ensuring file tasks+ let current_state = self.reduce_state().await;+ self.update_state_and_broadcast(current_state.clone()).await;++ if !current_state.can_pause() {+ return Err(Error::InvalidStateTransition {+ from: current_state.phase.clone(),+ to: DownloadPhase::Paused,+ });+ }++ tracing::debug!("[MODEL] Calling ensure_paused");++ let result = self.ensure_paused().await;++ tracing::debug!("[MODEL] pause() completed for model: {}", self.identifier);++ result+ }++ pub async fn cancel(&self) -> Result<(), Error> {+ // Ensure file tasks are initialized+ let tasks_were_created = self.ensure_file_tasks().await?;++ // Only restart listener if file tasks were just created+ if tasks_were_created {+ tracing::debug!("[MODEL] Restarting listener for model: {} (file tasks created)", self.identifier);+ self.stop_listening().await;+ self.start_listening().await;+ }++ // Reduce state after ensuring file tasks+ let current_state = self.reduce_state().await;+ self.update_state_and_broadcast(current_state.clone()).await;++ let file_tasks_guard = self.file_download_tasks.lock().await;+ for file_task in file_tasks_guard.iter() {+ let _ = file_task.cancel().await;+ }+ drop(file_tasks_guard);++ for file_info in self.files.iter() {+ let file_path = self.cache_path.join(&file_info.name);+ if file_path.exists() {+ let _ = remove_file(&file_path);+ }+ let resume_data_path = format!("{}.resume_data", file_path.display());+ if Path::new(&resume_data_path).exists() {+ let _ = remove_file(&resume_data_path);+ }+ if let Some(filename) = file_path.file_name().and_then(|n| n.to_str()) {+ let _ = CrcSnapshot::remove_crc(&self.cache_path, filename);+ }+ }++ if self.cache_path.exists() {+ let _ = remove_dir_all(&self.cache_path);+ }++ let total_bytes: u64 = self.files.iter().map(|f| f.size).sum();+ let not_downloaded_state = DownloadState::not_downloaded(total_bytes);+ self.update_state_and_broadcast(not_downloaded_state).await;+ Ok(())+ }++ pub async fn progress(&self) -> Result<BroadcastStream<DownloadState>, Error> {+ Ok(BroadcastStream::new(self.broadcast_sender.subscribe()))+ }++ /// Handle file task state update+ /// Called by ModelStorage listener when a file task broadcasts a state change+ pub async fn handle_file_task_update(&self) {+ tracing::debug!("[MODEL] handle_file_task_update: Computing new state for model: {}", self.identifier);++ let new_state = self.reduce_state().await;++ tracing::debug!(+ "[MODEL] handle_file_task_update: New state computed: phase={:?}, bytes={}/{}, progress={:.1}%",+ new_state.phase,+ new_state.downloaded_bytes,+ new_state.total_bytes,+ new_state.progress() * 100.0+ );++ self.update_state_and_broadcast(new_state).await;+ }++ async fn ensure_downloading(&self) -> Result<(), Error> {+ tracing::debug!("[MODEL] ensure_downloading: model={}", self.identifier);++ create_dir_all(&self.cache_path).map_err(|error| Error::IO {+ message: error.to_string(),+ })?;++ let file_tasks_guard = self.file_download_tasks.lock().await;+ let download_futures = file_tasks_guard.iter().map(|file_task| {+ let file_task = file_task.clone();+ async move {+ let _ = file_task.download().await;+ }+ });+ join_all(download_futures).await;++ tracing::debug!("[MODEL] ensure_downloading: All file downloads initiated");+ Ok(())+ }++ async fn ensure_paused(&self) -> Result<(), Error> {+ tracing::debug!("[MODEL] ensure_paused: model={}", self.identifier);+ let file_tasks_guard = self.file_download_tasks.lock().await;+ let pause_futures = file_tasks_guard.iter().map(|file_task| {+ let file_task = file_task.clone();+ async move {+ let _ = file_task.pause().await;+ }+ });+ join_all(pause_futures).await;++ tracing::debug!("[MODEL] ensure_paused: All file tasks paused");+ Ok(())+ }++ #[allow(dead_code)]+ async fn cleanup_empty_directory(&self) -> Result<(), Error> {+ if !self.cache_path.exists() {+ return Ok(());+ }+ let entries = read_dir(&self.cache_path).map_err(|error| Error::IO {+ message: error.to_string(),+ })?;+ let mut has_real_files = false;+ for entry in entries {+ if let Ok(entry) = entry {+ if let Some(name) = entry.file_name().to_str() {+ if !name.ends_with(".resume_data") && !name.ends_with(".crc") && !name.starts_with('.') {+ has_real_files = true;+ break;+ }+ }+ }+ }+ if !has_real_files {+ let _ = remove_dir_all(&self.cache_path);+ }+ Ok(())+ }++ /// Start listening to file task broadcasts+ pub async fn start_listening(&self) {+ // Check if already listening+ let mut listener_guard = self.listener_task.lock().await;+ if listener_guard.is_some() {+ tracing::debug!("[MODEL] start_listening: Already listening for model: {}", self.identifier);+ return;+ }++ // Collect all file task broadcast streams and initialize cache+ let file_tasks_guard = self.file_download_tasks.lock().await;+ let num_files = file_tasks_guard.len();+ let mut streams = Vec::new();+ let mut initial_states = Vec::new();+ for (idx, file_task) in file_tasks_guard.iter().enumerate() {+ let sender = file_task.broadcast_sender();+ let receiver_count_before = sender.receiver_count();+ let stream = BroadcastStream::new(sender.subscribe());+ tracing::info!(+ "[MODEL] Subscribed to file task {}: model={}, receivers_before={}, receivers_after={}",+ idx,+ self.identifier,+ receiver_count_before,+ sender.receiver_count()+ );+ streams.push((idx, stream));++ let mut state = file_task.state().await;+ if state.total_bytes == 0 {+ if let Some(file_info) = self.files.get(idx) {+ if file_info.size > 0 {+ state.total_bytes = file_info.size;+ }+ }+ }+ initial_states.push(state);+ }+ drop(file_tasks_guard);++ if streams.is_empty() {+ tracing::debug!("[MODEL] start_listening: No file tasks yet for model: {}", self.identifier);+ return;+ }++ // Pre-allocate cache with correct size BEFORE starting listener+ // This ensures all updates will have valid indices+ {+ let mut cache_guard = self.file_download_states.lock().await;+ *cache_guard = initial_states;++ debug_assert_eq!(cache_guard.len(), num_files, "Cache size must match number of file tasks");++ tracing::debug!(+ "[MODEL] Cache initialized with {} entries for model: {}",+ cache_guard.len(),+ self.identifier+ );+ }++ tracing::debug!(+ "[MODEL] start_listening: Starting listener for model: {} ({} streams)",+ self.identifier,+ streams.len()+ );++ let model = self.clone();+ tracing::debug!("[MODEL] Spawning listener task for model: {}", self.identifier);+ let handle = self.handle.spawn(async move {+ tracing::debug!("[MODEL] Listener task started for model: {}", model.identifier);+ use tokio_stream::StreamExt as TokioStreamExt;++ // Fan-in: per-stream forwarders into a single bounded channel+ let num_streams = streams.len();+ let (tx, mut rx) = tokio::sync::mpsc::channel::<(usize, FileDownloadState)>(1024);++ for (idx, mut stream) in streams {+ let tx = tx.clone();+ model.handle.spawn(async move {+ while let Some(item) = stream.next().await {+ match item {+ Ok(state) => {+ // Forward latest state; drop if aggregator has gone away+ let _ = tx.send((idx, state)).await;+ },+ Err(_e) => {+ // Lag on a single stream isn't fatal+ },+ }+ }+ });+ }+ drop(tx); // close when all forwarders end++ // Aggregator: coalesce bursts, keep only latest state per task+ let mut pending: Vec<Option<FileDownloadState>> = vec![None; num_streams];++ while let Some((idx, state)) = rx.recv().await {+ pending[idx] = Some(state);++ // Drain quickly to coalesce into latest-only+ while let Ok((i, s)) = rx.try_recv() {+ pending[i] = Some(s);+ }++ // Apply all latest states atomically, then notify once+ {+ let mut cache_guard = model.file_download_states.lock().await;+ for (i, slot) in pending.iter_mut().enumerate() {+ if let Some(mut s) = slot.take() {+ if i < cache_guard.len() {+ // Patch total bytes if 0 in incoming update+ if s.total_bytes == 0 {+ if let Some(file_info) = model.files.get(i) {+ if file_info.size > 0 {+ s.total_bytes = file_info.size;+ }+ }+ }+ cache_guard[i] = s;+ } else {+ tracing::error!(+ "[MODEL] CRITICAL: File task index {} out of bounds (cache size: {}), model={}",+ i,+ cache_guard.len(),+ model.identifier+ );+ }+ }+ }+ }++ model.handle_file_task_update().await;+ }++ tracing::debug!("[MODEL] All streams ended for model: {}", model.identifier);++ tracing::debug!("[MODEL] Listener task ended for model: {}", model.identifier);+ });++ *listener_guard = Some(handle);+ }++ /// Stop listening to file task broadcasts+ pub async fn stop_listening(&self) {+ let mut listener_guard = self.listener_task.lock().await;+ if let Some(handle) = listener_guard.take() {+ handle.abort();+ let _ = handle.await;+ }+ }++ fn can_transition_to_downloading(from: &DownloadPhase) -> bool {+ matches!(+ from,+ DownloadPhase::NotDownloaded | DownloadPhase::Downloading | DownloadPhase::Paused | DownloadPhase::Error(_)+ )+ }+}diff --git a/crates/nagare/src/storage/types/mod.rs b/crates/nagare/src/storage/types/mod.rsnew file mode 100644index 000000000..a97a84efc--- /dev/null+++ b/crates/nagare/src/storage/types/mod.rs@@ -0,0 +1,9 @@+mod crc_snapshot;+mod download_phase;+mod download_state;+mod item;++pub use crc_snapshot::CrcSnapshot;+pub use download_phase::DownloadPhase;+pub use download_state::{DownloadState, reduce_file_download_states};+pub use item::Item;diff --git a/crates/nagare/tests/.gitignore b/crates/nagare/tests/.gitignorenew file mode 100644index 000000000..5292519a2--- /dev/null+++ b/crates/nagare/tests/.gitignore@@ -0,0 +1 @@+logs/\ No newline at end of filediff --git a/crates/nagare/tests/common/mod.rs b/crates/nagare/tests/common/mod.rsnew file mode 100644index 000000000..8e4c29202--- /dev/null+++ b/crates/nagare/tests/common/mod.rs@@ -0,0 +1,2 @@+pub mod test_helpers;+pub mod tracing_setup;diff --git a/crates/nagare/tests/common/test_helpers.rs b/crates/nagare/tests/common/test_helpers.rsnew file mode 100644index 000000000..91606f06b--- /dev/null+++ b/crates/nagare/tests/common/test_helpers.rs@@ -0,0 +1,156 @@+#![allow(dead_code)]++use std::path::PathBuf;++use nagare::{+ device::Device,+ registry::{+ FixedRegistry,+ types::{Accessibility, Entity, EntityType, File, Hash, HashMethod, Model, Reference},+ },+ storage::{Config, Storage},+};+use tokio::runtime::Handle;++pub struct TestStorage {+ pub models: Vec<Model>,+ pub config: Config,+ pub registry: FixedRegistry,+ pub storage: Storage,+ pub base_path: PathBuf,+}++impl TestStorage {+ pub async fn new_with_base_path(base_path: PathBuf) -> Result<Self, Box<dyn std::error::Error>> {+ let model1 = test_model(0);+ let model2 = test_model(1);++ let registry = FixedRegistry::new("test_registry".to_string(), vec![model1.clone(), model2.clone()]);++ let device = Device::new().unwrap();+ let config = Config::new(device, Some(base_path.clone()), "test_storage".to_string());++ let handle = Handle::current();+ let storage = Storage::new(handle, config.clone()).await.unwrap();+ storage.refresh(vec![model1.clone(), model2.clone()]).await.unwrap();+ Ok(Self {+ models: vec![model1, model2],+ config,+ registry,+ storage,+ base_path,+ })+ }++ pub fn model(+ &self,+ index: usize,+ ) -> Model {+ self.models[index].clone()+ }+}++fn test_model(index: usize) -> Model {+ let vendor_entity = Entity {+ r#type: EntityType::Vendor,+ identifier: "test-vendor".to_string(),+ name: "Test Vendor".to_string(),+ description: None,+ icon: vec![],+ };++ let family_entity = Entity {+ r#type: EntityType::Family,+ identifier: "test-family".to_string(),+ name: "Test Family".to_string(),+ description: None,+ icon: vec![],+ };++ let model_entity = Entity {+ r#type: EntityType::Model,+ identifier: format!("test-model-{}", index),+ name: format!("Test Model {}", index),+ description: None,+ icon: vec![],+ };++ let files_1 = vec![+ File {+ url: "https://huggingface.co/Qwen/Qwen3.5-0.8B/resolve/main/config.json".to_string(),+ name: "config.json".to_string(),+ size: 2907,+ hashes: vec![Hash {+ method: HashMethod::CRC32C,+ value: "nx43ZQ==".to_string(),+ }],+ },+ File {+ url: "https://huggingface.co/Qwen/Qwen3.5-0.8B/resolve/main/tokenizer.json".to_string(),+ name: "tokenizer.json".to_string(),+ size: 12807982,+ hashes: vec![Hash {+ method: HashMethod::CRC32C,+ value: "C/tYqQ==".to_string(),+ }],+ },+ File {+ url: "https://huggingface.co/Qwen/Qwen3.5-0.8B/resolve/main/tokenizer_config.json".to_string(),+ name: "tokenizer_config.json".to_string(),+ size: 16709,+ hashes: vec![Hash {+ method: HashMethod::CRC32C,+ value: "MtGCnw==".to_string(),+ }],+ },+ ];++ let files_2 = vec![+ File {+ url: "https://huggingface.co/Qwen/Qwen3-0.6B/resolve/main/config.json".to_string(),+ name: "config.json".to_string(),+ size: 726,+ hashes: vec![Hash {+ method: HashMethod::CRC32C,+ value: "BLHgXg==".to_string(),+ }],+ },+ File {+ url: "https://huggingface.co/Qwen/Qwen3-0.6B/resolve/main/tokenizer.json".to_string(),+ name: "tokenizer.json".to_string(),+ size: 11422654,+ hashes: vec![Hash {+ method: HashMethod::CRC32C,+ value: "t3YzMQ==".to_string(),+ }],+ },+ File {+ url: "https://huggingface.co/Qwen/Qwen3-0.6B/resolve/main/tokenizer_config.json".to_string(),+ name: "tokenizer_config.json".to_string(),+ size: 9732,+ hashes: vec![Hash {+ method: HashMethod::CRC32C,+ value: "PUp7Mg==".to_string(),+ }],+ },+ ];++ Model {+ entities: vec![vendor_entity, family_entity, model_entity],+ specializations: vec![],+ number_of_parameters: None,+ accessibility: Accessibility::Local {+ provider_identifier: "test".to_string(),+ reference: Reference::Mirai {+ toolchain_version: "1.0".to_string(),+ repository: None,+ source_repository: None,+ files: if index % 2 == 0 {+ files_1+ } else {+ files_2+ },+ },+ },+ }+}diff --git a/crates/nagare/tests/common/tracing_setup.rs b/crates/nagare/tests/common/tracing_setup.rsnew file mode 100644index 000000000..a6986d32c--- /dev/null+++ b/crates/nagare/tests/common/tracing_setup.rs@@ -0,0 +1,34 @@+#![allow(dead_code)]++use std::sync::Once;++use tracing_subscriber::{EnvFilter, fmt, layer::SubscriberExt, util::SubscriberInitExt};++static INIT: Once = Once::new();++/// Initialize tracing for tests with file output+/// Logs are written to `test_logs/model_storage_<timestamp>.log`+pub fn init_test_tracing() {+ INIT.call_once(|| {+ let timestamp = chrono::Utc::now().format("%Y%m%d_%H%M%S");++ // Use workspace root for test_logs+ let log_dir =+ std::env::current_dir().unwrap_or_else(|_| std::path::PathBuf::from(".")).join("tests").join("logs");+ std::fs::create_dir_all(&log_dir).ok();++ let file_appender = tracing_appender::rolling::never(&log_dir, format!("storage_{}.log", timestamp));++ let (non_blocking, guard) = tracing_appender::non_blocking(file_appender);++ // Keep guard alive for entire test run+ std::mem::forget(guard);++ tracing_subscriber::registry()+ .with(EnvFilter::try_from_default_env().unwrap_or_else(|_| EnvFilter::new("debug")))+ .with(fmt::layer().with_writer(non_blocking).with_ansi(false))+ .init();++ tracing::info!("Test logging initialized, writing to test_logs/");+ });+}diff --git a/crates/nagare/tests/test_storage_comprehensive_download.rs b/crates/nagare/tests/test_storage_comprehensive_download.rsnew file mode 100644index 000000000..79191b035--- /dev/null+++ b/crates/nagare/tests/test_storage_comprehensive_download.rs@@ -0,0 +1,259 @@+mod common;++use std::time::Duration;++use common::test_helpers::TestStorage;+use futures_util::StreamExt;+use indicatif::{ProgressBar, ProgressStyle};+use nagare::storage::types::{DownloadPhase, Item};++#[tokio::test(flavor = "multi_thread")]+async fn test_storage_comprehensive_download() -> Result<(), Box<dyn std::error::Error>> {+ common::tracing_setup::init_test_tracing();+ tracing::info!("\n[TEST] ========== MODEL DOWNLOAD TEST STARTING ==========");++ let temp_dir = tempfile::tempdir()?;+ let base_path = temp_dir.path().to_path_buf();++ tracing::info!("[TEST] Initializing storage...");+ let test_storage = TestStorage::new_with_base_path(base_path).await?;+ let model_identifier = test_storage.model(0).identifier();+ let storage = &test_storage.storage;+ tokio::time::sleep(Duration::from_millis(200)).await;++ tracing::info!("[TEST] Getting model {}...", model_identifier.clone());+ let model: Item =+ storage.get(&model_identifier).await.ok_or_else(|| format!("Model {} not found", model_identifier.clone()))?;++ let initial_state = model.state().await;+ tracing::info!(+ "[TEST] Model found, total_bytes: {}, initial phase: {:?}",+ initial_state.total_bytes,+ initial_state.phase+ );+ let pb = ProgressBar::new(initial_state.total_bytes);+ pb.set_style(+ ProgressStyle::default_bar()+ .template("{spinner:.green} [{elapsed_precise}] [{bar:40.cyan/blue}] {bytes}/{total_bytes} ({percent}%, {bytes_per_sec}, eta {eta}) - {msg}")+ .unwrap()+ .progress_chars("█▓▒░ "),+ );+ tracing::info!("\n[TEST] ========== PHASE 1: Download to 25% ==========");+ pb.set_message("Phase 1: Downloading to 25%");+ let mut updates = storage.subscribe();+ let pb_clone = pb.clone();+ let quarter_threshold = initial_state.total_bytes / 4;+ let (phase1_tx, mut phase1_rx) = tokio::sync::mpsc::channel::<u64>(1);+ let model_identifier_clone = model_identifier.clone();+ let monitor_task = tokio::spawn(async move {+ const TIMEOUT: Duration = Duration::from_secs(120);+ tracing::info!("[PHASE1] Monitor task started, waiting for updates...");+ while let Ok(Some(Ok((id, state)))) = tokio::time::timeout(TIMEOUT, updates.next()).await {+ tracing::info!(+ "[PHASE1] Received update: id={}, phase={:?}, bytes={}/{}",+ id,+ state.phase,+ state.downloaded_bytes,+ state.total_bytes+ );+ if id == model_identifier_clone {+ pb_clone.set_position(state.downloaded_bytes);+ if state.downloaded_bytes >= quarter_threshold {+ tracing::info!("[PHASE1] ✓ Reached 25% threshold");+ let _ = phase1_tx.send(state.downloaded_bytes).await;+ break;+ }+ if matches!(state.phase, DownloadPhase::Downloaded) {+ tracing::info!("[PHASE1] ✓ Downloaded state reached (completed before 25%)");+ let _ = phase1_tx.send(state.downloaded_bytes).await;+ break;+ }+ }+ }+ tracing::info!("[PHASE1] Monitor task exiting");+ });++ tracing::info!("[PHASE1] Starting download...");+ model.download().await?;++ tracing::info!("[PHASE1] Waiting for progress update...");+ if phase1_rx.recv().await.is_none() {+ monitor_task.abort();+ panic!("Phase 1 failed: no progress update received");+ }+ tracing::info!("[PHASE1] ✓ Phase 1 complete");+ monitor_task.abort();++ let current_state = model.state().await;+ if matches!(current_state.phase, DownloadPhase::Downloaded) {+ tracing::info!("\n[TEST] ========== Download completed early, skipping pause/resume tests ==========");+ pb.finish_with_message("Download completed");+ return Ok(());+ }++ tracing::info!("\n[TEST] ========== PHASE 2: Pause at 25% ==========");+ pb.set_message("Phase 2: Pausing...");+ model.pause().await?;+ tokio::time::sleep(Duration::from_secs(2)).await;++ let paused_state = model.state().await;+ tracing::info!(+ "[PHASE2] ✓ Paused state confirmed: phase={:?}, bytes={}/{}",+ paused_state.phase,+ paused_state.downloaded_bytes,+ paused_state.total_bytes+ );++ tracing::info!("\n[TEST] ========== PHASE 3: Resume to 50% ==========");+ pb.set_message("Phase 3: Resuming to 50%");+ let mut updates = storage.subscribe();+ let pb_clone = pb.clone();+ let half_threshold = initial_state.total_bytes / 2;+ let (phase3_tx, mut phase3_rx) = tokio::sync::mpsc::channel::<u64>(1);+ let model_identifier_clone = model_identifier.clone();+ let monitor_task = tokio::spawn(async move {+ const TIMEOUT: Duration = Duration::from_secs(120);+ while let Ok(Some(Ok((id, state)))) = tokio::time::timeout(TIMEOUT, updates.next()).await {+ if id == model_identifier_clone {+ pb_clone.set_position(state.downloaded_bytes);+ if state.downloaded_bytes >= half_threshold {+ let _ = phase3_tx.send(state.downloaded_bytes).await;+ break;+ }+ if matches!(state.phase, DownloadPhase::Downloaded) {+ let _ = phase3_tx.send(state.downloaded_bytes).await;+ break;+ }+ }+ }+ });+ model.download().await?;+ if phase3_rx.recv().await.is_none() {+ monitor_task.abort();+ panic!("Phase 3 failed: no progress update received");+ }+ tracing::info!("[PHASE3] ✓ Phase 3 complete");+ monitor_task.abort();++ tracing::info!("\n[TEST] ========== PHASE 4: Cancel at 50% ==========");+ pb.set_message("Phase 4: Cancelling...");+ model.cancel().await?;+ tokio::time::sleep(Duration::from_millis(500)).await;++ let cancelled_state = model.state().await;+ tracing::info!("[PHASE4] ✓ Cancelled state confirmed: phase={:?}", cancelled_state.phase);+ assert!(+ matches!(cancelled_state.phase, DownloadPhase::NotDownloaded),+ "Expected model to be in NotDownloaded state after cancellation, got {:?}",+ cancelled_state.phase+ );++ tracing::info!("\n[TEST] ========== PHASE 5: Download again to 50% ==========");+ pb.set_message("Phase 5: Downloading again to 50%");+ pb.set_position(0); // Reset progress bar+ let mut updates = storage.subscribe();+ let pb_clone = pb.clone();+ let (phase5_tx, mut phase5_rx) = tokio::sync::mpsc::channel::<u64>(1);+ let model_identifier_clone = model_identifier.clone();+ let monitor_task = tokio::spawn(async move {+ const TIMEOUT: Duration = Duration::from_secs(120);+ while let Ok(Some(Ok((id, state)))) = tokio::time::timeout(TIMEOUT, updates.next()).await {+ if id == model_identifier_clone {+ pb_clone.set_position(state.downloaded_bytes);+ if state.downloaded_bytes >= half_threshold {+ let _ = phase5_tx.send(state.downloaded_bytes).await;+ break;+ }+ if matches!(state.phase, DownloadPhase::Downloaded) {+ let _ = phase5_tx.send(state.downloaded_bytes).await;+ break;+ }+ }+ }+ });+ model.download().await?;+ if phase5_rx.recv().await.is_none() {+ monitor_task.abort();+ panic!("Phase 5 failed: no progress update received");+ }+ tracing::info!("[PHASE5] ✓ Phase 5 complete");+ monitor_task.abort();++ tracing::info!("\n[TEST] ========== PHASE 6: Pause at 50% ==========");+ pb.set_message("Phase 6: Pausing at 50%");+ model.pause().await?;+ tokio::time::sleep(Duration::from_secs(2)).await;++ let paused_state2 = model.state().await;+ tracing::info!(+ "[PHASE6] ✓ Paused state confirmed: phase={:?}, bytes={}/{}",+ paused_state2.phase,+ paused_state2.downloaded_bytes,+ paused_state2.total_bytes+ );++ tracing::info!("\n[TEST] ========== PHASE 7: Resume to completion ==========");+ pb.set_message("Phase 7: Resuming to completion");+ let mut updates = storage.subscribe();+ let pb_clone = pb.clone();+ let (phase7_tx, mut phase7_rx) = tokio::sync::mpsc::channel::<()>(1);+ let model_identifier_clone = model_identifier.clone();+ let monitor_task = tokio::spawn(async move {+ const TIMEOUT: Duration = Duration::from_secs(240);+ tracing::info!("[PHASE7] Monitor task started, waiting for completion...");+ while let Ok(Some(Ok((id, state)))) = tokio::time::timeout(TIMEOUT, updates.next()).await {+ tracing::info!(+ "[PHASE7] Received update: id={}, phase={:?}, bytes={}/{}",+ id,+ state.phase,+ state.downloaded_bytes,+ state.total_bytes+ );+ if id == model_identifier_clone {+ pb_clone.set_position(state.downloaded_bytes);+ match state.phase {+ DownloadPhase::Downloaded => {+ tracing::info!("[PHASE7] ✓ Downloaded state reached!");+ pb_clone.finish_with_message("✓ Download complete!");+ let send_result = phase7_tx.send(()).await;+ tracing::info!("[PHASE7] Channel send result: {:?}", send_result);+ break;+ },+ DownloadPhase::Error(ref err) => {+ tracing::info!("[PHASE7] ✗ Error state reached: {}", err);+ pb_clone.abandon_with_message(format!("✗ Error: {}", err));+ break;+ },+ _ => {},+ }+ }+ }+ tracing::info!("[PHASE7] Monitor task exiting");+ });++ tracing::info!("[PHASE7] Starting download...");+ model.download().await?;++ tracing::info!("[PHASE7] Waiting for download completion...");+ if phase7_rx.recv().await.is_none() {+ tracing::info!("[PHASE7] ✗ Channel recv returned None!");+ monitor_task.abort();+ panic!("Phase 7 failed: download did not complete");+ }+ tracing::info!("[PHASE7] ✓ Phase 7 complete");+ monitor_task.abort();++ tracing::info!("\n[TEST] ========== FINAL VERIFICATION ==========");+ let final_state = model.state().await;+ tracing::info!("[TEST] Final model state: {:?}, bytes: {}", final_state.phase, final_state.downloaded_bytes);++ assert!(+ matches!(final_state.phase, DownloadPhase::Downloaded),+ "Expected Downloaded state, got {:?}",+ final_state.phase+ );++ tracing::info!("[TEST] ✓ Test verification passed");+ tracing::info!("[TEST] ========== MODEL DOWNLOAD TEST COMPLETE ==========\n");+ Ok(())+}diff --git a/crates/nagare/tests/test_storage_comprehensive_state.rs b/crates/nagare/tests/test_storage_comprehensive_state.rsnew file mode 100644index 000000000..ba59bdcf9--- /dev/null+++ b/crates/nagare/tests/test_storage_comprehensive_state.rs@@ -0,0 +1,452 @@+#![cfg(target_vendor = "apple")]++mod common;++use std::time::Duration;++use common::test_helpers::TestStorage;+use futures_util::StreamExt;+use indicatif::{ProgressBar, ProgressStyle};+use nagare::storage::types::DownloadPhase;++#[tokio::test(flavor = "multi_thread")]+async fn test_storage_comprehensive_state_fresh_download_to_completion() -> Result<(), Box<dyn std::error::Error>> {+ let temp_dir = tempfile::tempdir()?;+ let base_path = temp_dir.path().to_path_buf();++ tracing::info!("\n[SCENARIO_1] Fresh download to completion");+ let test_storage = TestStorage::new_with_base_path(base_path).await?;+ let model = test_storage.storage.get(&test_storage.model(0).identifier()).await.ok_or("Model not found")?;+ let state = model.state().await;+ assert!(matches!(state.phase, DownloadPhase::NotDownloaded), "Fresh model should be NotDownloaded");++ // Set up progress bar+ let pb = ProgressBar::new(state.total_bytes);+ pb.set_style(+ ProgressStyle::default_bar()+ .template("{spinner:.green} [{elapsed_precise}] [{bar:40.cyan/blue}] {bytes}/{total_bytes} ({percent}%, {bytes_per_sec}) - {msg}")+ .unwrap()+ .progress_chars("█▓▒░ "),+ );+ pb.set_message("Downloading to completion");++ // Subscribe to updates+ let mut updates = test_storage.storage.subscribe();+ let pb_clone = pb.clone();+ let (done_tx, mut done_rx) = tokio::sync::mpsc::channel::<()>(1);++ let monitor = tokio::spawn(async move {+ while let Ok(Some(Ok((id, state)))) = tokio::time::timeout(Duration::from_secs(120), updates.next()).await {+ if id == test_storage.model(0).identifier() {+ pb_clone.set_position(state.downloaded_bytes);+ if matches!(state.phase, DownloadPhase::Downloaded) {+ pb_clone.finish_with_message("✓ Downloaded");+ let _ = done_tx.send(()).await;+ break;+ }+ }+ }+ });++ model.download().await?;+ tokio::time::sleep(Duration::from_millis(300)).await;++ let state = model.state().await;+ assert!(matches!(state.phase, DownloadPhase::Downloading), "Should be Downloading after start");++ // Wait for completion with timeout+ let completed = tokio::time::timeout(Duration::from_secs(600), done_rx.recv()).await;+ monitor.abort();++ assert!(completed.is_ok(), "Download did not complete within timeout");++ let state = model.state().await;+ assert!(matches!(state.phase, DownloadPhase::Downloaded), "Should be Downloaded after completion");++ Ok(())+}++#[tokio::test(flavor = "multi_thread")]+async fn test_storage_comprehensive_state_pause_and_resume() -> Result<(), Box<dyn std::error::Error>> {+ let temp_dir = tempfile::tempdir()?;+ let base_path = temp_dir.path().to_path_buf();++ let test_storage = TestStorage::new_with_base_path(base_path).await?;+ let model = test_storage.storage.get(&test_storage.model(0).identifier()).await.ok_or("Model not found")?;++ model.download().await?;+ tokio::time::sleep(std::time::Duration::from_millis(500)).await;+ let model = test_storage.storage.get(&test_storage.model(0).identifier()).await.ok_or("Model not found")?;++ model.pause().await?;+ tokio::time::sleep(std::time::Duration::from_millis(300)).await;+ let model = test_storage.storage.get(&test_storage.model(0).identifier()).await.ok_or("Model not found")?;+ let state = model.state().await;+ assert!(matches!(state.phase, DownloadPhase::Paused), "Should be Paused after pause command");+ let paused_progress = state.progress();+ let model = test_storage.storage.get(&test_storage.model(0).identifier()).await.ok_or("Model not found")?;++ model.download().await?;+ tokio::time::sleep(std::time::Duration::from_millis(300)).await;+ let model = test_storage.storage.get(&test_storage.model(0).identifier()).await.ok_or("Model not found")?;+ let state = model.state().await;+ assert!(matches!(state.phase, DownloadPhase::Downloading), "Should be Downloading after resume");+ assert!(state.progress() >= paused_progress, "Progress should not decrease after resume");+ Ok(())+}++#[tokio::test(flavor = "multi_thread")]+async fn test_storage_comprehensive_state_pause_quit_relaunch_resume() -> Result<(), Box<dyn std::error::Error>> {+ {+ let temp_dir = tempfile::tempdir()?;+ let base_path = temp_dir.path().to_path_buf();++ let test_storage = TestStorage::new_with_base_path(base_path.clone()).await?;+ let storage = &test_storage.storage;+ let model = storage.get(&test_storage.model(0).identifier()).await.ok_or("Model not found")?;+ model.download().await?;+ tokio::time::sleep(std::time::Duration::from_millis(1000)).await;+ let model = storage.get(&test_storage.model(0).identifier()).await.ok_or("Model not found")?;+ model.pause().await?;+ tokio::time::sleep(std::time::Duration::from_millis(500)).await;+ let model = storage.get(&test_storage.model(0).identifier()).await.ok_or("Model not found")?;+ let state = model.state().await;+ let paused_progress = state.progress();+ let model_dir = test_storage.config.clone().cache_model_path(&test_storage.model(0)).unwrap();+ let mut file_list = Vec::new();+ if model_dir.exists() {+ let mut entries = tokio::fs::read_dir(&model_dir).await?;+ while let Some(entry) = entries.next_entry().await? {+ let file_name = entry.file_name();+ let name_str = file_name.to_string_lossy().to_string();+ if !name_str.starts_with('.') {+ let metadata = entry.metadata().await?;+ file_list.push((name_str.clone(), metadata.len()));+ }+ }+ }+ drop(test_storage);++ tokio::time::sleep(std::time::Duration::from_millis(200)).await;+ let complete_files: Vec<_> =+ file_list.iter().filter(|(name, _)| !name.ends_with(".resume_data")).cloned().collect();++ let test_storage_2 = TestStorage::new_with_base_path(base_path).await?;+ let storage_2 = &test_storage_2.storage;+ let model =+ storage_2.get(&test_storage_2.model(0).identifier()).await.ok_or("Model not found after relaunch")?;+ let state = model.state().await;+ assert!(matches!(state.phase, DownloadPhase::Paused), "Model should remain Paused after relaunch");+ assert!(state.progress() >= paused_progress, "Progress should not decrease after relaunch");+ let model_dir = test_storage_2.config.cache_model_path(&test_storage_2.model(0)).unwrap();+ if model_dir.exists() {+ let mut entries = tokio::fs::read_dir(&model_dir).await?;+ let mut files_after = Vec::new();+ while let Some(entry) = entries.next_entry().await? {+ let file_name = entry.file_name();+ let name_str = file_name.to_string_lossy().to_string();+ if !name_str.starts_with('.') && !name_str.ends_with(".resume_data") {+ let metadata = entry.metadata().await?;+ files_after.push((name_str.clone(), metadata.len()));+ }+ }+ for (name, size) in &complete_files {+ assert!(+ files_after.iter().any(|(n, s)| n == name && s == size),+ "Complete file {} should remain after relaunch",+ name+ );+ }+ }+ let model = storage_2.get(&test_storage_2.model(0).identifier()).await.ok_or("Model not found")?;+ model.download().await?;+ tokio::time::sleep(std::time::Duration::from_millis(300)).await;+ let model = storage_2.get(&test_storage_2.model(0).identifier()).await.ok_or("Model not found")?;+ let state = model.state().await;+ assert!(matches!(state.phase, DownloadPhase::Downloading), "Should be Downloading after resume");+ }+ Ok(())+}++#[tokio::test(flavor = "multi_thread")]+async fn test_storage_comprehensive_state_delete_from_various_states() -> Result<(), Box<dyn std::error::Error>> {+ let temp_dir = tempfile::tempdir()?;+ let base_path = temp_dir.path().to_path_buf();++ let test_storage = TestStorage::new_with_base_path(base_path).await?;+ let model = test_storage.storage.get(&test_storage.model(0).identifier()).await.ok_or("Model not found")?;++ model.download().await?;+ tokio::time::sleep(std::time::Duration::from_millis(1000)).await;+ let model = test_storage.storage.get(&test_storage.model(0).identifier()).await.ok_or("Model not found")?;++ model.pause().await?;+ tokio::time::sleep(std::time::Duration::from_millis(300)).await;+ let model = test_storage.storage.get(&test_storage.model(0).identifier()).await.ok_or("Model not found")?;+ let state = model.state().await;+ assert!(matches!(state.phase, DownloadPhase::Paused), "Should be Paused");+ let model = test_storage.storage.get(&test_storage.model(0).identifier()).await.ok_or("Model not found")?;++ model.cancel().await?;+ tokio::time::sleep(std::time::Duration::from_millis(300)).await;+ let model_dir = test_storage.config.cache_model_path(&test_storage.model(0)).unwrap();+ assert!(+ !model_dir.exists() || {+ let mut entries = tokio::fs::read_dir(&model_dir).await?;+ let mut has_files = false;+ while let Some(entry) = entries.next_entry().await? {+ let name = entry.file_name();+ let name_str = name.to_string_lossy();+ if !name_str.starts_with('.') {+ has_files = true;+ break;+ }+ }+ !has_files+ },+ "Model directory should be empty or removed after delete"+ );+ Ok(())+}++#[tokio::test(flavor = "multi_thread")]+async fn test_storage_comprehensive_state_multiple_pause_resume_cycles() -> Result<(), Box<dyn std::error::Error>> {+ let temp_dir = tempfile::tempdir()?;+ let base_path = temp_dir.path().to_path_buf();++ let test_storage = TestStorage::new_with_base_path(base_path).await?;+ let model = test_storage.storage.get(&test_storage.model(0).identifier()).await.ok_or("Model not found")?;++ model.download().await?;+ tokio::time::sleep(std::time::Duration::from_millis(100)).await;+ for cycle in 1..=3 {+ let model = test_storage.storage.get(&test_storage.model(0).identifier()).await.ok_or("Model not found")?;+ model.pause().await?;+ tokio::time::sleep(std::time::Duration::from_millis(100)).await;+ let model = test_storage.storage.get(&test_storage.model(0).identifier()).await.ok_or("Model not found")?;+ let state = model.state().await;+ let paused_progress = state.progress();+ assert!(+ matches!(state.phase, DownloadPhase::Paused | DownloadPhase::Downloaded | DownloadPhase::Downloading),+ "Should be Paused/Downloaded/Downloading in cycle {} (got {:?})",+ cycle,+ state.phase+ );+ let model = test_storage.storage.get(&test_storage.model(0).identifier()).await.ok_or("Model not found")?;++ model.download().await?;+ tokio::time::sleep(std::time::Duration::from_millis(1000)).await;+ let model = test_storage.storage.get(&test_storage.model(0).identifier()).await.ok_or("Model not found")?;+ let state = model.state().await;+ assert!(state.progress() >= paused_progress, "Progress should not decrease in cycle {}", cycle);+ }+ Ok(())+}++#[tokio::test(flavor = "multi_thread")]+async fn test_storage_comprehensive_state_completed_files_preserved_on_relaunch()+-> Result<(), Box<dyn std::error::Error>> {+ {+ let temp_dir = tempfile::tempdir()?;+ let base_path = temp_dir.path().to_path_buf();++ let test_storage = TestStorage::new_with_base_path(base_path.clone()).await?;+ let model = test_storage.storage.get(&test_storage.model(0).identifier()).await.ok_or("Model not found")?;+ model.download().await?;+ for _ in 0..30 {+ tokio::time::sleep(std::time::Duration::from_secs(1)).await;+ let model_dir = test_storage.config.cache_model_path(&test_storage.model(0)).unwrap();+ if model_dir.exists() {+ let mut entries = tokio::fs::read_dir(&model_dir).await?;+ let mut complete_count = 0;+ let mut incomplete_count = 0;+ while let Some(entry) = entries.next_entry().await? {+ let file_name = entry.file_name();+ let name_str = file_name.to_string_lossy();+ if name_str.ends_with(".resume_data") || name_str.starts_with('.') {+ continue;+ }+ let metadata = entry.metadata().await?;+ let size = metadata.len();+ if name_str == "config.json" && size == 2907 {+ complete_count += 1;+ } else if name_str == "tokenizer.json" && size == 12807982 {+ complete_count += 1;+ } else if name_str == "tokenizer_config.json" && size == 16709 {+ complete_count += 1;+ } else if size > 0 {+ incomplete_count += 1;+ }+ }+ if complete_count > 0 && incomplete_count > 0 {+ break;+ }+ }+ }+ let model = test_storage.storage.get(&test_storage.model(0).identifier()).await.ok_or("Model not found")?;+ model.pause().await?;+ tokio::time::sleep(std::time::Duration::from_millis(500)).await;+ let model_dir = test_storage.config.cache_model_path(&test_storage.model(0)).unwrap();+ let mut files_before = Vec::new();+ if model_dir.exists() {+ let mut entries = tokio::fs::read_dir(&model_dir).await?;+ while let Some(entry) = entries.next_entry().await? {+ let file_name = entry.file_name();+ let name_str = file_name.to_string_lossy().to_string();+ if !name_str.starts_with('.') && !name_str.ends_with(".resume_data") {+ let metadata = entry.metadata().await?;+ files_before.push((name_str.clone(), metadata.len()));+ }+ }+ }+ drop(test_storage.storage);+ tokio::time::sleep(std::time::Duration::from_millis(200)).await;++ let test_storage_2 = TestStorage::new_with_base_path(base_path).await?;+ let model_dir = test_storage_2.config.cache_model_path(&test_storage_2.model(0)).unwrap();+ let mut files_after = Vec::new();+ if model_dir.exists() {+ let mut entries = tokio::fs::read_dir(&model_dir).await?;+ while let Some(entry) = entries.next_entry().await? {+ let file_name = entry.file_name();+ let name_str = file_name.to_string_lossy().to_string();+ if !name_str.starts_with('.') && !name_str.ends_with(".resume_data") {+ let metadata = entry.metadata().await?;+ files_after.push((name_str.clone(), metadata.len()));+ }+ }+ }+ for (name, size) in &files_before {+ assert!(+ files_after.iter().any(|(n, s)| n == name && s == size),+ "Complete file {} should be preserved after relaunch",+ name+ );+ }+ let model = test_storage_2.storage.get(&test_storage_2.model(0).identifier()).await.ok_or("Model not found")?;+ let state = model.state().await;+ assert!(matches!(state.phase, DownloadPhase::Paused), "Model should be Paused after relaunch");+ }+ Ok(())+}++#[tokio::test(flavor = "multi_thread")]+async fn test_storage_comprehensive_state_idempotent_pause() -> Result<(), Box<dyn std::error::Error>> {+ let temp_dir = tempfile::tempdir()?;+ let base_path = temp_dir.path().to_path_buf();++ let test_storage = TestStorage::new_with_base_path(base_path).await?;+ let model = test_storage.storage.get(&test_storage.model(0).identifier()).await.ok_or("Model not found")?;++ model.download().await?;+ tokio::time::sleep(std::time::Duration::from_millis(1000)).await;+ let model = test_storage.storage.get(&test_storage.model(0).identifier()).await.ok_or("Model not found")?;++ model.pause().await?;+ tokio::time::sleep(std::time::Duration::from_millis(300)).await;+ let model = test_storage.storage.get(&test_storage.model(0).identifier()).await.ok_or("Model not found")?;+ let state = model.state().await;+ let progress_after_first_pause = state.progress();+ let model = test_storage.storage.get(&test_storage.model(0).identifier()).await.ok_or("Model not found")?;++ model.pause().await?;+ tokio::time::sleep(std::time::Duration::from_millis(300)).await;+ let model = test_storage.storage.get(&test_storage.model(0).identifier()).await.ok_or("Model not found")?;+ let state = model.state().await;+ assert!(matches!(state.phase, DownloadPhase::Paused), "Should remain Paused after second pause");+ assert_eq!(state.progress(), progress_after_first_pause, "Progress should not change on idempotent pause");+ Ok(())+}++#[tokio::test(flavor = "multi_thread")]+async fn test_storage_comprehensive_state_crc_validation_on_init() -> Result<(), Box<dyn std::error::Error>> {+ let temp_dir = tempfile::tempdir()?;+ let base_path = temp_dir.path().to_path_buf();++ let test_storage = TestStorage::new_with_base_path(base_path.clone()).await?;+ let model = test_storage.storage.get(&test_storage.model(0).identifier()).await.ok_or("Model not found")?;+ model.download().await?;+ for _ in 0..60 {+ tokio::time::sleep(std::time::Duration::from_secs(1)).await;+ let model_dir = test_storage.config.cache_model_path(&test_storage.model(0)).unwrap();+ if model_dir.exists() {+ let config_path = model_dir.join("config.json");+ let tokenizer_path = model_dir.join("tokenizer.json");+ if config_path.exists() && tokenizer_path.exists() {+ if let Ok(config_meta) = tokio::fs::metadata(&config_path).await {+ if let Ok(tok_meta) = tokio::fs::metadata(&tokenizer_path).await {+ if config_meta.len() == 2907 && tok_meta.len() == 12807982 {+ break;+ }+ }+ }+ }+ }+ }+ // Check if download completed before we can pause+ let model = test_storage.storage.get(&test_storage.model(0).identifier()).await;+ if let Some(m) = model {+ let state = m.state().await;+ if !matches!(state.phase, DownloadPhase::Downloaded) {+ let model = test_storage.storage.get(&test_storage.model(0).identifier()).await.ok_or("Model not found")?;+ model.pause().await?;+ }+ }+ drop(test_storage.storage);++ {+ let test_storage_2 = TestStorage::new_with_base_path(base_path).await?;+ let model_dir = test_storage_2.config.cache_model_path(&test_storage_2.model(0)).unwrap();+ let config_path = model_dir.join("config.json");+ let tokenizer_path = model_dir.join("tokenizer.json");+ let config_resume = model_dir.join("config.json.resume_data");+ let tokenizer_resume = model_dir.join("tokenizer.json.resume_data");+ assert!(config_path.exists(), "config.json should exist after relaunch");+ assert!(tokenizer_path.exists(), "tokenizer.json should exist after relaunch");+ assert!(!config_resume.exists(), "config.json.resume_data should be deleted for complete file");+ assert!(!tokenizer_resume.exists(), "tokenizer.json.resume_data should be deleted for complete file");+ let model = test_storage_2.storage.get(&test_storage_2.model(0).identifier()).await.ok_or("Model not found")?;+ let state = model.state().await;+ assert!(+ matches!(state.phase, DownloadPhase::Paused | DownloadPhase::Downloading | DownloadPhase::Downloaded),+ "Model should be in a valid state after relaunch (Paused, Downloading, or Downloaded)"+ );+ }+ Ok(())+}++#[tokio::test(flavor = "multi_thread")]+async fn test_storage_comprehensive_state_progress_calculation_with_mixed_files()+-> Result<(), Box<dyn std::error::Error>> {+ {+ let temp_dir = tempfile::tempdir()?;+ let base_path = temp_dir.path().to_path_buf();++ let test_storage = TestStorage::new_with_base_path(base_path).await?;+ let expected_config_bytes = 2907;+ let model = test_storage.storage.get(&test_storage.model(0).identifier()).await.ok_or("Model not found")?;+ model.download().await?;+ let mut config_completed = false;+ for _ in 0..30 {+ tokio::time::sleep(std::time::Duration::from_secs(1)).await;+ let model_dir = test_storage.config.cache_model_path(&test_storage.model(0)).unwrap();+ let config_path = model_dir.join("config.json");+ if let Ok(meta) = tokio::fs::metadata(&config_path).await {+ if meta.len() == expected_config_bytes {+ config_completed = true;+ break;+ }+ }+ }+ if config_completed {+ let model = test_storage.storage.get(&test_storage.model(0).identifier()).await.ok_or("Model not found")?;+ model.pause().await?;+ tokio::time::sleep(std::time::Duration::from_millis(500)).await;+ let model = test_storage.storage.get(&test_storage.model(0).identifier()).await.ok_or("Model not found")?;+ let state = model.state().await;+ let downloaded_bytes = state.downloaded_bytes;+ assert!(downloaded_bytes >= expected_config_bytes, "Downloaded bytes should include completed config.json");+ }+ }+ Ok(())+}diff --git a/crates/nagare/tests/test_storage_concurrent_multi_model.rs b/crates/nagare/tests/test_storage_concurrent_multi_model.rsnew file mode 100644index 000000000..26590e2cb--- /dev/null+++ b/crates/nagare/tests/test_storage_concurrent_multi_model.rs@@ -0,0 +1,324 @@+mod common;++use std::time::Duration;++use common::test_helpers::TestStorage;+use futures_util::StreamExt;+use nagare::storage::types::DownloadPhase;++const TEST_COUNT: usize = 2;++#[tokio::test(flavor = "multi_thread")]+#[ignore]+async fn test_storage_concurrent_multi_model_download() -> Result<(), Box<dyn std::error::Error>> {+ common::tracing_setup::init_test_tracing();++ tracing::info!("========== STARTING CONCURRENT DOWNLOAD TEST ==========");++ let temp_dir = tempfile::tempdir()?;+ let base_path = temp_dir.path().to_path_buf();+ let test_storage = TestStorage::new_with_base_path(base_path).await?;++ tracing::info!("[CONCURRENT_TEST] Initializing storage...");+ tokio::time::sleep(Duration::from_millis(200)).await;++ // Create test instances - we'll use the same model reference multiple times+ let mut models = Vec::new();+ for i in 0..TEST_COUNT {+ // Get the test model and create instances+ tracing::info!("[CONCURRENT_TEST] Fetching test model {}...", i);+ let model = test_storage.model(i).clone();+ let item = test_storage.storage.get(&model.identifier()).await.ok_or("Model not found")?;++ // Cancel first to ensure it's not already downloaded+ tracing::info!("[CONCURRENT_TEST] Canceling model {} to ensure fresh download...", i);+ item.cancel().await?;+ tokio::time::sleep(Duration::from_millis(500)).await;+ models.push((model.identifier(), item.clone()));+ }++ tracing::info!("[CONCURRENT_TEST] ✓ Created {} model instances", models.len());++ // Start downloading all models concurrently+ tracing::info!("\n[CONCURRENT_TEST] ========== PHASE 1: Start all downloads ==========");+ let download_futures: Vec<_> = models+ .iter()+ .map(|(id, model)| {+ let id = id.clone();+ let model = model.clone();+ async move {+ tracing::info!("[CONCURRENT_TEST] Starting download for {}", id);+ match model.download().await {+ Ok(_) => tracing::info!("[CONCURRENT_TEST] ✓ Download started for {}", id),+ Err(e) => tracing::info!("[CONCURRENT_TEST] ✗ Download failed for {}: {:?}", id, e),+ }+ }+ })+ .collect();++ futures_util::future::join_all(download_futures).await;++ // Wait for some progress with timeout protection+ // Note: Since we're using clones of the same model, they share state and have the same ID+ tracing::info!("\n[CONCURRENT_TEST] Waiting for downloads to progress...");+ let mut progress_stream = test_storage.storage.subscribe();+ let mut progress_count = 0;+ let expected_progress = 10; // Wait for at least 10 progress updates++ let progress_check = tokio::time::timeout(Duration::from_secs(10), async {+ while let Some(Ok((id, state))) = progress_stream.next().await {+ if matches!(state.phase, DownloadPhase::Downloading | DownloadPhase::Downloaded) {+ progress_count += 1;+ if progress_count <= 5 || progress_count % 10 == 0 {+ tracing::info!(+ "[CONCURRENT_TEST] Progress #{}: {} - bytes={}/{}",+ progress_count,+ id,+ state.downloaded_bytes,+ state.total_bytes+ );+ }+ if progress_count >= expected_progress {+ break;+ }+ }+ }+ progress_count+ })+ .await;++ let count = progress_check.unwrap_or(0);+ assert!(count >= expected_progress, "TIMEOUT: Expected {} progress updates, got {}", expected_progress, count);++ // Check all are downloading+ for (id, model) in &models {+ let state = model.state().await;+ tracing::info!(+ "[CONCURRENT_TEST] Model {} state: phase={:?}, bytes={}/{}",+ id,+ state.phase,+ state.downloaded_bytes,+ state.total_bytes+ );+ assert!(+ matches!(state.phase, DownloadPhase::Downloading | DownloadPhase::Downloaded),+ "Model {} should be downloading or downloaded, got {:?}",+ id,+ state.phase+ );+ }++ // Pause all models concurrently+ tracing::info!("\n[CONCURRENT_TEST] ========== PHASE 2: Pause all downloads ==========");+ let pause_futures: Vec<_> = models+ .iter()+ .map(|(id, model)| {+ let id = id.clone();+ let model = model.clone();+ async move {+ tracing::info!("[CONCURRENT_TEST] Pausing {}", id);+ match model.pause().await {+ Ok(_) => {+ tracing::info!("[CONCURRENT_TEST] ✓ Paused {}", id)+ },+ Err(e) => tracing::info!("[CONCURRENT_TEST] ⚠ Pause for {} returned: {:?}", id, e),+ }+ }+ })+ .collect();++ futures_util::future::join_all(pause_futures).await;++ // Wait for pause confirmations with timeout+ let pause_check = tokio::time::timeout(Duration::from_secs(5), async {+ let mut all_paused = false;+ for _ in 0..10 {+ tokio::time::sleep(Duration::from_millis(200)).await;+ let mut paused_count = 0;+ for (_, model) in &models {+ let state = model.state().await;+ if matches!(state.phase, DownloadPhase::Paused | DownloadPhase::Downloaded) {+ paused_count += 1;+ }+ }+ if paused_count == models.len() {+ all_paused = true;+ break;+ }+ }+ all_paused+ })+ .await;++ assert!(pause_check.unwrap_or(false), "TIMEOUT: Not all models paused within 5 seconds");++ // Verify all are paused (or completed)+ for (id, model) in &models {+ let state = model.state().await;+ tracing::info!(+ "[CONCURRENT_TEST] Model {} after pause: phase={:?}, bytes={}/{}",+ id,+ state.phase,+ state.downloaded_bytes,+ state.total_bytes+ );+ assert!(+ matches!(state.phase, DownloadPhase::Paused | DownloadPhase::Downloaded),+ "Model {} should be paused or downloaded after pause, got {:?}",+ id,+ state.phase+ );+ }++ // Resume all models concurrently+ tracing::info!("\n[CONCURRENT_TEST] ========== PHASE 3: Resume all downloads ==========");+ let resume_futures: Vec<_> = models+ .iter()+ .map(|(id, model)| {+ let id = id.clone();+ let model = model.clone();+ async move {+ tracing::info!("[CONCURRENT_TEST] Resuming {}", id);+ match model.download().await {+ Ok(_) => {+ tracing::info!("[CONCURRENT_TEST] ✓ Resumed {}", id)+ },+ Err(e) => tracing::info!("[CONCURRENT_TEST] ⚠ Resume for {} returned: {:?}", id, e),+ }+ }+ })+ .collect();++ futures_util::future::join_all(resume_futures).await;++ tokio::time::sleep(Duration::from_secs(2)).await;++ // Check resumed+ for (id, model) in &models {+ let state = model.state().await;+ tracing::info!(+ "[CONCURRENT_TEST] Model {} after resume: phase={:?}, bytes={}/{}",+ id,+ state.phase,+ state.downloaded_bytes,+ state.total_bytes+ );+ }++ // Cancel half the models while others continue+ tracing::info!("\n[CONCURRENT_TEST] ========== PHASE 4: Cancel half while others continue ==========");+ let cancel_count = models.len() / 2;+ let cancel_futures: Vec<_> = models+ .iter()+ .take(cancel_count)+ .map(|(id, model)| {+ let id = id.clone();+ let model = model.clone();+ async move {+ tracing::info!("[CONCURRENT_TEST] Canceling {}", id);+ match model.cancel().await {+ Ok(_) => {+ tracing::info!("[CONCURRENT_TEST] ✓ Canceled {}", id)+ },+ Err(e) => tracing::info!("[CONCURRENT_TEST] ✗ Cancel for {} failed: {:?}", id, e),+ }+ }+ })+ .collect();++ futures_util::future::join_all(cancel_futures).await;++ // Wait for cancel confirmations with timeout+ let cancel_check = tokio::time::timeout(Duration::from_secs(5), async {+ let mut all_cancelled = false;+ for _ in 0..10 {+ tokio::time::sleep(Duration::from_millis(200)).await;+ let mut cancelled_count = 0;+ for (idx, (_, model)) in models.iter().enumerate() {+ if idx < cancel_count {+ let state = model.state().await;+ if matches!(state.phase, DownloadPhase::NotDownloaded) {+ cancelled_count += 1;+ }+ }+ }+ if cancelled_count == cancel_count {+ all_cancelled = true;+ break;+ }+ }+ all_cancelled+ })+ .await;++ assert!(cancel_check.unwrap_or(false), "TIMEOUT: Not all models cancelled within 5 seconds");++ // Verify cancelled models are not downloaded, others still progressing+ for (idx, (id, model)) in models.iter().enumerate() {+ let state = model.state().await;+ if idx < cancel_count {+ tracing::info!("[CONCURRENT_TEST] Cancelled model {} state: phase={:?}", id, state.phase);+ assert!(+ matches!(state.phase, DownloadPhase::NotDownloaded),+ "Cancelled model {} should be NotDownloaded, got {:?}",+ id,+ state.phase+ );+ } else {+ tracing::info!(+ "[CONCURRENT_TEST] Continuing model {} state: phase={:?}, bytes={}/{}",+ id,+ state.phase,+ state.downloaded_bytes,+ state.total_bytes+ );+ }+ }++ // Monitor progress updates for continuing models+ tracing::info!("\n[CONCURRENT_TEST] ========== PHASE 5: Monitor progress updates ==========");+ // Use a model that wasn't cancelled (second half of the list)+ if let Some((id, model)) = models.iter().skip(cancel_count).next() {+ tracing::info!("[CONCURRENT_TEST] Starting download for monitoring {}", id);+ model.download().await?;++ tracing::info!("[CONCURRENT_TEST] Monitoring progress for {}", id);+ let mut progress_stream = test_storage.storage.subscribe();+ let model_id = id.clone();++ let monitor_task = tokio::spawn(async move {+ let mut update_count = 0;+ while let Some(Ok((id, state))) = progress_stream.next().await {+ if id == model_id {+ update_count += 1;+ tracing::info!(+ "[CONCURRENT_TEST] Progress update #{} for {}: phase={:?}, bytes={}/{}",+ update_count,+ id,+ state.phase,+ state.downloaded_bytes,+ state.total_bytes+ );+ if update_count >= 5 || matches!(state.phase, DownloadPhase::Downloaded) {+ break;+ }+ }+ }+ update_count+ });++ let update_count =+ tokio::time::timeout(Duration::from_secs(30), monitor_task).await.unwrap_or(Ok(0)).unwrap_or(0);++ tracing::info!("[CONCURRENT_TEST] Received {} progress updates", update_count);+ tracing::info!("[CONCURRENT_TEST] ✓ Progress monitoring successful");+ }++ tracing::info!("\n[CONCURRENT_TEST] ========== CLEANUP ==========");+ drop(test_storage.storage);++ tracing::info!("[CONCURRENT_TEST] ========== TEST COMPLETE ✓ ==========\n");+ Ok(())+}++// concurrent_pause_resume_stress_test removeddiff --git a/crates/nagare/tests/test_storage_debug_file_preservation.rs b/crates/nagare/tests/test_storage_debug_file_preservation.rsnew file mode 100644index 000000000..09c42dc14--- /dev/null+++ b/crates/nagare/tests/test_storage_debug_file_preservation.rs@@ -0,0 +1,453 @@+#[cfg(target_vendor = "apple")]+mod common;++use common::test_helpers::TestStorage;+use nagare::storage::types::DownloadPhase;++#[ignore]+#[tokio::test(flavor = "multi_thread")]+async fn test_storage_debug_file_preservation_complete_app_relaunch_resume() -> Result<(), Box<dyn std::error::Error>> {+ // Enable test tracing to file for deeper diagnostics+ common::tracing_setup::init_test_tracing();+ let temp_dir = tempfile::tempdir()?;+ let base_path = temp_dir.path().to_path_buf();+ let base_path_clone = base_path.clone();++ let (progress_session1, _bytes_session1, _total_bytes);+ {+ let (p1, b1, tb) = std::thread::spawn(move || {+ let runtime = tokio::runtime::Runtime::new().unwrap();+ runtime.block_on(async {+ let test_storage = TestStorage::new_with_base_path(base_path_clone).await.unwrap();+ let model = test_storage.storage.get(&test_storage.model(0).identifier()).await.unwrap();+ tracing::info!("[S1] Starting download for {}", test_storage.model(0).identifier());+ model.download().await.unwrap();+ let mut reached_target = false;+ for i in 0..180 {+ tokio::time::sleep(std::time::Duration::from_millis(500)).await;+ let model = test_storage.storage.get(&test_storage.model(0).identifier()).await.unwrap();+ tracing::info!("[S1] Iteration {}: pausing model", i);+ model.pause().await.unwrap();+ let state = model.state().await;+ let progress = state.progress();+ tracing::info!(+ "[S1] Iteration {}: phase={:?}, progress={:.2}%, bytes={}/{}",+ i,+ state.phase,+ progress * 100.0,+ state.downloaded_bytes,+ state.total_bytes+ );++ if progress >= 0.08 && progress <= 0.25 {+ reached_target = true;+ break;+ }+ model.download().await.unwrap();+ }+ assert!(reached_target, "Failed to reach target progress");+ let model = test_storage.storage.get(&test_storage.model(0).identifier()).await.unwrap();+ tracing::info!("[S1] Pausing before shutdown");+ model.pause().await.unwrap();+ tokio::time::sleep(std::time::Duration::from_millis(1000)).await;+ let model = test_storage.storage.get(&test_storage.model(0).identifier()).await.unwrap();+ let state = model.state().await;+ let progress = state.progress();+ let bytes = state.downloaded_bytes;+ let total = state.total_bytes;+ tracing::info!(+ "[S1] Pre-shutdown state: phase={:?}, progress={:.2}%, bytes={}/{}",+ state.phase,+ progress * 100.0,+ bytes,+ total+ );+ let model_dir = test_storage.config.cache_model_path(&test_storage.model(0)).unwrap();+ let mut entries = tokio::fs::read_dir(&model_dir).await.unwrap();+ while let Some(entry) = entries.next_entry().await.unwrap() {+ let name = entry.file_name();+ let meta = entry.metadata().await.unwrap();+ let marker = if name.to_string_lossy().ends_with(".resume_data") {+ "📄"+ } else {+ "📦"+ };+ tracing::info!("[S1] Model dir entry {} {} ({} bytes)", marker, name.to_string_lossy(), meta.len());+ }+ drop(test_storage.storage);+ (progress, bytes, total)+ })+ })+ .join()+ .expect("Session 1 thread panicked");+ progress_session1 = p1;+ _bytes_session1 = b1;+ _total_bytes = tb;+ std::thread::sleep(std::time::Duration::from_millis(500));+ }+ {+ std::thread::spawn(move || {+ let runtime = tokio::runtime::Runtime::new().unwrap();+ runtime.block_on(async {+ common::tracing_setup::init_test_tracing();+ let test_storage = TestStorage::new_with_base_path(base_path).await.unwrap();+ tokio::time::sleep(std::time::Duration::from_millis(200)).await;++ let mut entries =+ tokio::fs::read_dir(&test_storage.config.cache_model_path(&test_storage.model(0)).unwrap())+ .await+ .unwrap();+ while let Some(entry) = entries.next_entry().await.unwrap() {+ let name = entry.file_name();+ let meta = entry.metadata().await.unwrap();+ tracing::info!(+ "[S2] Existing entry before init: {} ({} bytes)",+ name.to_string_lossy(),+ meta.len()+ );+ }++ let model = test_storage.storage.get(&test_storage.model(0).identifier()).await.unwrap();+ let state = model.state().await;+ let progress_session2 = state.progress();+ let bytes_session2 = state.downloaded_bytes;+ tracing::info!(+ "[S2] Post-init state: phase={:?}, progress={:.2}%, bytes={}/{}",+ state.phase,+ progress_session2 * 100.0,+ state.downloaded_bytes,+ state.total_bytes+ );+ let progress_diff = (progress_session1 - progress_session2).abs();+ assert!(+ progress_diff < 0.02,+ "Progress NOT preserved across sessions! Session1: {:.1}%, Session2: {:.1}%",+ progress_session1 * 100.0,+ progress_session2 * 100.0+ );+ tracing::info!("[S2] Resuming download after relaunch");+ model.download().await.unwrap();+ tokio::time::sleep(std::time::Duration::from_millis(200)).await;+ let model = test_storage.storage.get(&test_storage.model(0).identifier()).await.unwrap();+ let state = model.state().await;+ let progress_after_resume = state.progress();+ let bytes_after_resume = state.downloaded_bytes;+ tracing::info!(+ "[S2] After resume: phase={:?}, progress={:.2}%, bytes={}/{} (delta bytes: {})",+ state.phase,+ progress_after_resume * 100.0,+ bytes_after_resume,+ state.total_bytes,+ bytes_after_resume.saturating_sub(bytes_session2)+ );+ if bytes_after_resume >= bytes_session2 * 90 / 100 {+ } else {+ }+ drop(test_storage);+ })+ })+ .join()+ .expect("Session 2 thread panicked");+ }+ Ok(())+}++#[ignore]+#[tokio::test(flavor = "multi_thread")]+async fn test_storage_debug_file_preservation_resume_from_20_percent() -> Result<(), Box<dyn std::error::Error>> {+ let temp_dir = tempfile::tempdir()?;+ let base_path = temp_dir.path().to_path_buf();+ let base_path_clone = base_path.clone();++ let (progress_at_pause, bytes_at_pause, _total_bytes);+ {+ let test_storage = TestStorage::new_with_base_path(base_path_clone).await.unwrap();+ let model = test_storage.storage.get(&test_storage.model(0).identifier()).await.unwrap();+ model.download().await.unwrap();+ let mut reached_target = false;+ for i in 0..180 {+ tokio::time::sleep(std::time::Duration::from_millis(500)).await;+ let model = test_storage.storage.get(&test_storage.model(0).identifier()).await.unwrap();+ let state = model.state().await;+ let progress = state.progress();+ let _downloaded = state.downloaded_bytes;+ let _total = state.total_bytes;+ if i % 4 == 0 {}+ if progress >= 0.08 && progress <= 0.25 {+ reached_target = true;+ break;+ }+ }+ if !reached_target {+ return Err("Failed to reach target progress range in time".into());+ }+ let model = test_storage.storage.get(&test_storage.model(0).identifier()).await.unwrap();+ model.pause().await?;+ for i in 0..20 {+ tokio::time::sleep(std::time::Duration::from_millis(200)).await;+ let model = test_storage.storage.get(&test_storage.model(0).identifier()).await.unwrap();+ let state = model.state().await;+ if matches!(state.phase, DownloadPhase::Paused) {+ break;+ }+ if i == 19 {}+ }+ let model = test_storage.storage.get(&test_storage.model(0).identifier()).await.unwrap();+ let state = model.state().await;+ progress_at_pause = state.progress();+ bytes_at_pause = state.downloaded_bytes;+ _total_bytes = state.total_bytes;+ if !matches!(state.phase, DownloadPhase::Paused) {}+ let model_dir = test_storage.config.cache_model_path(&test_storage.model(0)).unwrap();+ let mut resume_files = Vec::new();+ if model_dir.exists() {+ let mut entries = tokio::fs::read_dir(&model_dir).await?;+ while let Some(entry) = entries.next_entry().await? {+ let name = entry.file_name();+ let name_str = name.to_string_lossy().to_string();+ if name_str.ends_with(".resume_data") {+ let meta = entry.metadata().await?;+ resume_files.push((name_str.clone(), meta.len()));+ let resume_path = model_dir.join(&name_str);+ if let Ok(data) = tokio::fs::read(&resume_path).await {+ if let Ok(_resume) =+ download_manager::managers::apple::URLSessionDownloadTaskResumeData::from_bytes(&data)+ {+ }+ }+ }+ }+ }+ assert!(!resume_files.is_empty(), "Should have at least one .resume_data file");+ if model_dir.exists() {+ let mut entries = tokio::fs::read_dir(&model_dir).await?;+ while let Some(entry) = entries.next_entry().await? {+ let _name = entry.file_name();+ let _meta = entry.metadata().await?;+ }+ }+ drop(test_storage);+ tokio::time::sleep(std::time::Duration::from_millis(500)).await;+ }+ {+ let test_storage = TestStorage::new_with_base_path(base_path).await.unwrap();+ let model_dir = test_storage.config.cache_model_path(&test_storage.model(0)).unwrap();+ if model_dir.exists() {+ let mut entries = tokio::fs::read_dir(&model_dir).await?;+ while let Some(entry) = entries.next_entry().await? {+ let _name = entry.file_name();+ let _meta = entry.metadata().await?;+ }+ }+ let model = test_storage.storage.get(&test_storage.model(0).identifier()).await.unwrap();+ let state = model.state().await;+ let progress_after_relaunch = state.progress();+ let bytes_after_relaunch = state.downloaded_bytes;+ assert!(matches!(state.phase, DownloadPhase::Paused), "Model should be Paused after relaunch");+ let progress_diff = (progress_at_pause - progress_after_relaunch).abs();+ let _bytes_diff = (bytes_at_pause as i64 - bytes_after_relaunch as i64).abs();+ assert!(+ progress_diff < 0.10,+ "Progress should be preserved after relaunch (pause: {:.1}%, relaunch: {:.1}%, diff: {:.1}%)",+ progress_at_pause * 100.0,+ progress_after_relaunch * 100.0,+ progress_diff * 100.0+ );+ let mut resume_files_after = Vec::new();+ if model_dir.exists() {+ let mut entries = tokio::fs::read_dir(&model_dir).await?;+ while let Some(entry) = entries.next_entry().await? {+ let name = entry.file_name();+ let name_str = name.to_string_lossy().to_string();+ if name_str.ends_with(".resume_data") {+ let meta = entry.metadata().await?;+ resume_files_after.push((name_str.clone(), meta.len()));+ let resume_path = model_dir.join(&name_str);+ if let Ok(data) = tokio::fs::read(&resume_path).await {+ if let Ok(_resume) =+ download_manager::managers::apple::URLSessionDownloadTaskResumeData::from_bytes(&data)+ {+ }+ }+ }+ }+ }+ let model = test_storage.storage.get(&test_storage.model(0).identifier()).await.unwrap();+ model.download().await?;+ tokio::time::sleep(std::time::Duration::from_millis(100)).await;+ let model_immediate = test_storage.storage.get(&test_storage.model(0).identifier()).await.unwrap();+ let state = model_immediate.state().await;+ let progress_immediate = state.progress();+ let bytes_immediate = state.downloaded_bytes;+ if bytes_immediate < bytes_after_relaunch * 90 / 100 {+ panic!(+ "\n ❌ CRITICAL: Download restarted from scratch on resume!\n\+ Before resume: {} bytes ({:.1}%)\n\+ After resume: {} bytes ({:.1}%)\n\+ Loss: {} bytes",+ bytes_after_relaunch,+ progress_after_relaunch * 100.0,+ bytes_immediate,+ progress_immediate * 100.0,+ bytes_after_relaunch - bytes_immediate+ );+ }+ tokio::time::sleep(std::time::Duration::from_secs(1)).await;+ let model = test_storage.storage.get(&test_storage.model(0).identifier()).await.unwrap();+ model.pause().await?;+ tokio::time::sleep(std::time::Duration::from_millis(500)).await;+ let model = test_storage.storage.get(&test_storage.model(0).identifier()).await.unwrap();+ let state = model.state().await;+ let progress_after_resume = state.progress();+ let bytes_after_resume = state.downloaded_bytes;+ if model_dir.exists() {+ let mut entries = tokio::fs::read_dir(&model_dir).await?;+ while let Some(entry) = entries.next_entry().await? {+ let _name = entry.file_name();+ let _meta = entry.metadata().await?;+ }+ }+ assert!(+ bytes_after_resume >= bytes_after_relaunch,+ "Progress should not decrease after resuming and downloading (relaunch: {:.1}%, after 1s: {:.1}%)",+ progress_after_relaunch * 100.0,+ progress_after_resume * 100.0+ );+ drop(test_storage);+ }+ Ok(())+}++#[ignore]+#[tokio::test(flavor = "multi_thread")]+async fn test_storage_debug_file_preservation_completed_file_detection() -> Result<(), Box<dyn std::error::Error>> {+ let temp_dir = tempfile::tempdir()?;+ let base_dir = temp_dir.path().to_path_buf();+ let base_dir_clone = base_dir.clone();+ let (_progress_after_pause, downloaded_bytes_after_pause);+ {+ let test_storage = TestStorage::new_with_base_path(base_dir_clone).await.unwrap();+ let model = test_storage.storage.get(&test_storage.model(0).identifier()).await.unwrap();+ model.download().await?;+ let mut config_done = false;+ let mut tokenizer_done = false;+ for _ in 0..60 {+ tokio::time::sleep(std::time::Duration::from_secs(1)).await;+ let model_dir = test_storage.config.cache_model_path(&test_storage.model(0)).unwrap();+ let config_path = model_dir.join("config.json");+ let tokenizer_path = model_dir.join("tokenizer.json");+ if !config_done {+ if let Ok(meta) = tokio::fs::metadata(&config_path).await {+ if meta.len() == 2907 {+ config_done = true;+ }+ }+ }+ if !tokenizer_done {+ if let Ok(meta) = tokio::fs::metadata(&tokenizer_path).await {+ if meta.len() == 12807982 {+ tokenizer_done = true;+ }+ }+ }+ if config_done && tokenizer_done {+ break;+ }+ }++ // Check if download is already complete before trying to pause+ let model_before_pause = test_storage.storage.get(&test_storage.model(0).identifier()).await.unwrap();++ let state = model_before_pause.state().await;+ if !matches!(state.phase, DownloadPhase::Downloaded) {+ let model = test_storage.storage.get(&test_storage.model(0).identifier()).await.unwrap();+ model.pause().await?;+ tokio::time::sleep(std::time::Duration::from_millis(500)).await;+ }++ let model_paused = test_storage.storage.get(&test_storage.model(0).identifier()).await.unwrap();+ let state = model_paused.state().await;+ _progress_after_pause = state.progress();+ downloaded_bytes_after_pause = state.downloaded_bytes;+ drop(test_storage);+ tokio::time::sleep(std::time::Duration::from_millis(500)).await;+ }+ {+ let test_storage = TestStorage::new_with_base_path(base_dir).await.unwrap();+ let model_dir = test_storage.config.cache_model_path(&test_storage.model(0)).unwrap();+ if model_dir.exists() {+ let mut entries = tokio::fs::read_dir(&model_dir).await?;+ while let Some(entry) = entries.next_entry().await? {+ let _name = entry.file_name();+ let _meta = entry.metadata().await?;+ }+ }+ let model_relaunched = test_storage.storage.get(&test_storage.model(0).identifier()).await.unwrap();+ let state = model_relaunched.state().await;+ let _progress_after_relaunch = state.progress();+ let downloaded_bytes_after_relaunch = state.downloaded_bytes;+ assert!(+ matches!(state.phase, DownloadPhase::Paused | DownloadPhase::Downloaded),+ "Model should be Paused or Downloaded after relaunch, got: {:?}",+ state.phase+ );+ let bytes_diff = (downloaded_bytes_after_pause as i64 - downloaded_bytes_after_relaunch as i64).abs();+ assert!(+ bytes_diff < 1000,+ "Downloaded bytes should match after relaunch (pause: {}, relaunch: {}, diff: {})",+ downloaded_bytes_after_pause,+ downloaded_bytes_after_relaunch,+ bytes_diff+ );+ if model_dir.exists() {+ let mut entries = tokio::fs::read_dir(&model_dir).await?;+ while let Some(entry) = entries.next_entry().await? {+ let name = entry.file_name();+ let _name_str = name.to_string_lossy();+ let _meta = entry.metadata().await?;+ }+ }++ // Only try to resume if not already downloaded+ let state = model_relaunched.state().await;+ if !matches!(state.phase, DownloadPhase::Downloaded) {+ let model = test_storage.storage.get(&test_storage.model(0).identifier()).await.unwrap();+ model.download().await?;+ tokio::time::sleep(std::time::Duration::from_millis(2000)).await;+ }++ let model_resumed = test_storage.storage.get(&test_storage.model(0).identifier()).await.unwrap();+ let state = model_resumed.state().await;+ let _progress_after_resume = state.progress();+ let downloaded_bytes_after_resume = state.downloaded_bytes;+ assert!(+ matches!(state.phase, DownloadPhase::Downloading | DownloadPhase::Paused | DownloadPhase::Downloaded),+ "Model should be Downloading, Paused, or Downloaded after resume, got: {:?}",+ state.phase+ );+ assert!(+ downloaded_bytes_after_resume >= downloaded_bytes_after_relaunch,+ "Downloaded bytes should not decrease after resume (relaunch: {}, resume: {})",+ downloaded_bytes_after_relaunch,+ downloaded_bytes_after_resume+ );+ if model_dir.exists() {+ let mut entries = tokio::fs::read_dir(&model_dir).await?;+ while let Some(entry) = entries.next_entry().await? {+ let name = entry.file_name();+ let _name_str = name.to_string_lossy();+ let _meta = entry.metadata().await?;+ }+ }+ if downloaded_bytes_after_resume < downloaded_bytes_after_relaunch * 95 / 100 {+ panic!(+ "\n ❌ FAIL: Download restarted from scratch!\n Expected: >= {} bytes\n Got: {} bytes\n Loss: {} bytes",+ downloaded_bytes_after_relaunch * 95 / 100,+ downloaded_bytes_after_resume,+ downloaded_bytes_after_relaunch - downloaded_bytes_after_resume+ );+ }+ drop(test_storage);+ }+ Ok(())+}diff --git a/crates/nagare/tests/test_storage_stall_detection.rs b/crates/nagare/tests/test_storage_stall_detection.rsnew file mode 100644index 000000000..9c488f5bb--- /dev/null+++ b/crates/nagare/tests/test_storage_stall_detection.rs@@ -0,0 +1,185 @@+mod common;++use std::time::Duration;++use common::test_helpers::TestStorage;+use futures_util::StreamExt;+use nagare::storage::types::DownloadPhase;++#[tokio::test(flavor = "multi_thread")]+async fn test_stall_detection_no_progress() -> Result<(), Box<dyn std::error::Error>> {+ tracing::info!("\n[STALL_TEST] ========== NO PROGRESS STALL DETECTION TEST ==========");++ let temp_dir = tempfile::tempdir()?;+ let base_path = temp_dir.path().to_path_buf();+ let test_storage = TestStorage::new_with_base_path(base_path).await?;+ let model = test_storage.storage.get(&test_storage.model(0).identifier()).await.ok_or("Model not found")?;+ tracing::info!("[STALL_TEST] Starting download...");+ model.download().await?;++ // Monitor for progress with stall detection+ let mut progress_stream = test_storage.storage.subscribe();+ let mut last_progress_time = std::time::Instant::now();+ let mut last_bytes = 0u64;+ let max_stall_duration = Duration::from_secs(10);+ let check_interval = Duration::from_millis(500);++ tracing::info!("[STALL_TEST] Monitoring for stalls (max stall: {:?})...", max_stall_duration);++ let stall_check = tokio::time::timeout(Duration::from_secs(60), async {+ let mut check_count = 0;+ loop {+ tokio::select! {+ Some(Ok((id, state))) = progress_stream.next() => {+ if id == test_storage.model(0).identifier() {+ let current_bytes = state.downloaded_bytes;+ if current_bytes > last_bytes {+ let elapsed = last_progress_time.elapsed();+ tracing::info!(+ "[STALL_TEST] Progress: {} bytes (delta: {}, time_since_last: {:?})",+ current_bytes,+ current_bytes - last_bytes,+ elapsed+ );+ last_bytes = current_bytes;+ last_progress_time = std::time::Instant::now();+ }++ if matches!(state.phase, DownloadPhase::Downloaded) {+ tracing::info!("[STALL_TEST] ✓ Download completed");+ return Ok::<_, String>(());+ }+ }+ }+ _ = tokio::time::sleep(check_interval) => {+ check_count += 1;+ let elapsed = last_progress_time.elapsed();++ if elapsed > max_stall_duration {+ return Err(format!(+ "STALL DETECTED: No progress for {:?} (last bytes: {})",+ elapsed, last_bytes+ ));+ }++ if check_count % 10 == 0 {+ tracing::info!(+ "[STALL_TEST] Check #{}: No stall detected (last progress: {:?} ago)",+ check_count, elapsed+ );+ }++ // Stop after reaching 10% for this test+ let state = model.state().await;+ if state.total_bytes > 0 && state.downloaded_bytes > state.total_bytes / 10 {+ tracing::info!("[STALL_TEST] ✓ Reached 10%, stopping test");+ return Ok(());+ }+ }+ }+ }+ })+ .await;++ match stall_check {+ Ok(Ok(())) => {+ tracing::info!("[STALL_TEST] ✓ No stalls detected");+ },+ Ok(Err(stall_msg)) => {+ panic!("{}", stall_msg);+ },+ Err(_) => {+ panic!("TIMEOUT: Test took longer than 60 seconds");+ },+ }++ // Cancel the download+ tracing::info!("[STALL_TEST] Canceling download...");+ model.cancel().await?;++ tracing::info!("\n[STALL_TEST] ========== CLEANUP ==========");+ drop(test_storage.storage);++ tracing::info!("[STALL_TEST] ========== TEST COMPLETE ✓ ==========\n");+ Ok(())+}++#[tokio::test(flavor = "multi_thread")]+async fn test_stall_detection_broadcast_liveness() -> Result<(), Box<dyn std::error::Error>> {+ tracing::info!("\n[BROADCAST_TEST] ========== BROADCAST LIVENESS TEST ==========");++ let temp_dir = tempfile::tempdir()?;+ let base_path = temp_dir.path().to_path_buf();+ let test_storage = TestStorage::new_with_base_path(base_path).await?;+ let model = test_storage.storage.get(&test_storage.model(0).identifier()).await.ok_or("Model not found")?;+ tracing::info!("[BROADCAST_TEST] Starting download...");+ model.download().await?;++ // Verify we receive regular broadcast updates+ let mut progress_stream = test_storage.storage.subscribe();+ let mut update_count = 0;+ let mut last_update_time = std::time::Instant::now();+ let max_gap = Duration::from_secs(5);++ tracing::info!("[BROADCAST_TEST] Monitoring broadcast updates (max gap: {:?})...", max_gap);++ let broadcast_check = tokio::time::timeout(Duration::from_secs(30), async {+ while let Some(Ok((id, state))) = progress_stream.next().await {+ if id == test_storage.model(0).identifier() {+ let gap = last_update_time.elapsed();+ update_count += 1;++ if gap > max_gap {+ return Err(format!(+ "BROADCAST GAP TOO LARGE: {:?} between updates #{} and #{}",+ gap,+ update_count - 1,+ update_count+ ));+ }++ if update_count <= 10 || update_count % 50 == 0 {+ tracing::info!(+ "[BROADCAST_TEST] Update #{}: bytes={}/{}, gap={:?}",+ update_count,+ state.downloaded_bytes,+ state.total_bytes,+ gap+ );+ }++ last_update_time = std::time::Instant::now();++ // Stop after 100 updates or completion+ if update_count >= 100 || matches!(state.phase, DownloadPhase::Downloaded) {+ return Ok::<_, String>(update_count);+ }+ }+ }+ Err("Stream ended unexpectedly".to_string())+ })+ .await;++ match broadcast_check {+ Ok(Ok(count)) => {+ tracing::info!("[BROADCAST_TEST] ✓ Received {} updates, all gaps < {:?}", count, max_gap);+ assert!(count >= 10, "Should receive at least 10 updates");+ },+ Ok(Err(gap_msg)) => {+ panic!("{}", gap_msg);+ },+ Err(_) => {+ panic!("TIMEOUT: Did not receive enough updates within 30 seconds");+ },+ }++ // Cancel the download+ tracing::info!("[BROADCAST_TEST] Canceling download...");+ model.cancel().await?;++ tracing::info!("\n[BROADCAST_TEST] ========== CLEANUP ==========");+ drop(test_storage.storage);++ tracing::info!("[BROADCAST_TEST] ========== TEST COMPLETE ✓ ==========\n");+ Ok(())+}diff --git a/crates/token-stream-parser/Cargo.toml b/crates/token-stream-parser/Cargo.tomlnew file mode 100644index 000000000..611796325--- /dev/null+++ b/crates/token-stream-parser/Cargo.toml@@ -0,0 +1,22 @@+[package]+name = "token-stream-parser"+version.workspace = true+edition.workspace = true+rust-version.workspace = true+license.workspace = true+authors.workspace = true+repository.workspace = true++[dependencies]+json-transform.workspace = true+serde.workspace = true+serde_json.workspace = true+indexmap.workspace = true+jsonschema.workspace = true+thiserror.workspace = true+tracing.workspace = true++[dev-dependencies]+tokenizers.workspace = true+tracing-subscriber.workspace = true+tracing-tree.workspace = truediff --git a/crates/token-stream-parser/src/extraction/mod.rs b/crates/token-stream-parser/src/extraction/mod.rsnew file mode 100644index 000000000..e65b3c46b--- /dev/null+++ b/crates/token-stream-parser/src/extraction/mod.rs@@ -0,0 +1,7 @@+mod parser;+mod resolver;+mod state;++pub use parser::{ExtractionParser, ExtractionParserConfig};+pub(crate) use resolver::ExtractionParserResolver;+pub use state::ExtractionParserState;diff --git a/crates/token-stream-parser/src/extraction/parser.rs b/crates/token-stream-parser/src/extraction/parser.rsnew file mode 100644index 000000000..aa442d3f3--- /dev/null+++ b/crates/token-stream-parser/src/extraction/parser.rs@@ -0,0 +1,52 @@+use std::{collections::HashSet, convert::Infallible};++use json_transform::TransformSchema;++use crate::{+ Parser,+ extraction::{ExtractionParserResolver, ExtractionParserState},+ reduction::ReductionParserState,+};++pub struct ExtractionParserConfig {+ pub schema: Option<TransformSchema>,+ pub sections_compose_groups: HashSet<String>,+}++pub struct ExtractionParser {+ state: ExtractionParserState,+ tree: ExtractionParserResolver,+}++impl Parser for ExtractionParser {+ type Config = ExtractionParserConfig;+ type Input = ReductionParserState;+ type Output = ();+ type State = ExtractionParserState;+ type Error = Infallible;++ fn new(config: ExtractionParserConfig) -> Result<Self, Self::Error> {+ Ok(Self {+ state: ExtractionParserState::new(),+ tree: ExtractionParserResolver::new(config.sections_compose_groups, config.schema),+ })+ }++ #[tracing::instrument(skip_all)]+ fn push(+ &mut self,+ input: &ReductionParserState,+ ) -> Result<(), Infallible> {+ self.state.value = self.tree.compute_output(input);+ Ok(())+ }++ fn state(&self) -> &ExtractionParserState {+ &self.state+ }++ fn reset(&mut self) {+ self.state = ExtractionParserState::new();+ self.tree.reset();+ }+}diff --git a/crates/token-stream-parser/src/extraction/resolver.rs b/crates/token-stream-parser/src/extraction/resolver.rsnew file mode 100644index 000000000..1cda3718d--- /dev/null+++ b/crates/token-stream-parser/src/extraction/resolver.rs@@ -0,0 +1,242 @@+use std::collections::{HashMap, HashSet};++use json_transform::TransformSchema;+use serde_json::Value;++use crate::{+ framing::FramingParserSection,+ reduction::{ReductionParserSection, ReductionParserState},+};++const NODE_NAME_TEXT: &str = "$text";+const SECTION_KEY_TYPE: &str = "type";+const SECTION_KEY_VALUE: &str = "value";+const PIPELINE_NAME_ROOT: &str = "root";+const PIPELINE_INPUT_NAME: &str = "$name";+const PIPELINE_INPUT_FINISHED: &str = "$finished";+const PIPELINE_INPUT_VALUE: &str = "$value";++type ExtractionParserGroupPath = Vec<usize>;++/// Computes extraction output from reduction state using transformation pipelines+pub(crate) struct ExtractionParserResolver {+ cache: HashMap<ExtractionParserGroupPath, Value>,+ sections_compose_groups: HashSet<String>,+ schema: Option<TransformSchema>,+}++impl ExtractionParserResolver {+ pub fn new(+ sections_compose_groups: HashSet<String>,+ schema: Option<TransformSchema>,+ ) -> Self {+ Self {+ cache: HashMap::new(),+ sections_compose_groups,+ schema,+ }+ }++ pub fn reset(&mut self) {+ self.cache.clear();+ }++ /// Compute output value from reduction state+ #[tracing::instrument(skip_all)]+ pub fn compute_output(+ &mut self,+ reduction_state: &ReductionParserState,+ ) -> Value {+ let child_values = self.compute_children(&reduction_state.sections, &vec![]);++ let root_values: Vec<Value> = child_values+ .into_iter()+ .filter(|(name, _)| name != NODE_NAME_TEXT)+ .map(|(_, value)| value)+ .filter(|value| !is_empty(value))+ .collect();++ let composed = Value::Array(root_values);+ execute_named_pipeline(PIPELINE_NAME_ROOT, false, composed, &self.schema)+ }+}++impl ExtractionParserResolver {+ /// Compute values for a list of reduction sections+ fn compute_children(+ &mut self,+ sections: &[ReductionParserSection],+ parent_path: &ExtractionParserGroupPath,+ ) -> Vec<(String, Value)> {+ let mut results = Vec::new();++ for (section_index, section) in sections.iter().enumerate() {+ match section {+ ReductionParserSection::Frame(frame) => {+ if let Some(text) = extract_text(frame) {+ merge_or_push_text(&mut results, text);+ }+ },+ ReductionParserSection::Group {+ name,+ finished,+ sections: group_sections,+ ..+ } => {+ let mut group_path = parent_path.clone();+ group_path.push(section_index);++ let value = self.compute_group(name, group_sections, *finished, &group_path);+ results.push((name.clone(), value));+ },+ }+ }++ results+ }++ /// Compute a single group's value, cached if finalized, computed otherwise+ #[tracing::instrument(skip_all, fields(name = name, finished = finished))]+ fn compute_group(+ &mut self,+ name: &str,+ sections: &[ReductionParserSection],+ finished: bool,+ path: &ExtractionParserGroupPath,+ ) -> Value {+ if let Some(cached) = self.cache.get(path) {+ tracing::trace!("cached");+ return cached.clone();+ }++ let child_values = self.compute_children(sections, path);++ let sections_compose = self.sections_compose_groups.contains(name);+ let composed = auto_compose(child_values, sections_compose);++ let value = execute_named_pipeline(name, finished, composed, &self.schema);++ if finished {+ tracing::trace!(group = name, "finalized");+ self.cache.insert(path.clone(), value.clone());+ }++ value+ }+}++fn auto_compose(+ child_values: Vec<(String, Value)>,+ sections_compose: bool,+) -> Value {+ if sections_compose {+ return compose_typed_sections(child_values);+ }++ let has_text = child_values.iter().any(|(name, _)| name == NODE_NAME_TEXT);+ let has_groups = child_values.iter().any(|(name, _)| name != NODE_NAME_TEXT);++ match (has_text, has_groups) {+ // Text-only → joined string+ (_, false) => {+ let text: String = child_values.iter().filter_map(|(_, value)| value.as_str()).collect();+ Value::String(text)+ },+ // Mixed (text + groups) → array of {type, value}+ (true, true) => compose_typed_sections(child_values),+ // Groups only with unique names → object {name: value, ...}+ (false, true) => {+ let mut seen = HashSet::new();+ let all_unique = child_values.iter().all(|(name, _)| seen.insert(name.as_str()));++ if all_unique {+ let mut map = serde_json::Map::new();+ for (name, value) in child_values {+ map.insert(name, value);+ }+ Value::Object(map)+ } else {+ compose_typed_sections(child_values)+ }+ },+ }+}++fn compose_typed_sections(child_values: Vec<(String, Value)>) -> Value {+ let mut sections: Vec<Value> = Vec::new();+ for (name, value) in child_values {+ // Spread arrays for non-text children into separate sections+ if name != NODE_NAME_TEXT {+ if let Value::Array(items) = value {+ for item in items {+ let mut map = serde_json::Map::new();+ map.insert(SECTION_KEY_TYPE.to_string(), Value::String(name.clone()));+ map.insert(SECTION_KEY_VALUE.to_string(), item);+ sections.push(Value::Object(map));+ }+ continue;+ }+ }+ let mut map = serde_json::Map::new();+ map.insert(SECTION_KEY_TYPE.to_string(), Value::String(name));+ map.insert(SECTION_KEY_VALUE.to_string(), value);+ sections.push(Value::Object(map));+ }+ Value::Array(sections)+}++fn execute_named_pipeline(+ name: &str,+ finished: bool,+ composed_value: Value,+ schema: &Option<TransformSchema>,+) -> Value {+ let Some(schema) = schema else {+ return composed_value;+ };+ if !schema.pipelines.contains_key(name) {+ return composed_value;+ }+ let _span = tracing::info_span!("execute_named_pipeline", name = name, finished = finished,).entered();+ let fallback = composed_value.clone();++ let mut pipeline_input_map = serde_json::Map::new();+ pipeline_input_map.insert(PIPELINE_INPUT_NAME.to_string(), Value::String(name.to_string()));+ pipeline_input_map.insert(PIPELINE_INPUT_FINISHED.to_string(), Value::Bool(finished));+ pipeline_input_map.insert(PIPELINE_INPUT_VALUE.to_string(), composed_value);+ let pipeline_input = Value::Object(pipeline_input_map);+ schema.execute(name, pipeline_input).unwrap_or(fallback)+}++fn extract_text(frame: &FramingParserSection) -> Option<String> {+ let text: String = match frame {+ FramingParserSection::Text(tokens) => tokens.iter().map(|token| token.value.as_str()).collect(),+ FramingParserSection::Marker(token) => token.value.clone(),+ };+ if text.is_empty() {+ None+ } else {+ Some(text)+ }+}++fn merge_or_push_text(+ results: &mut Vec<(String, Value)>,+ text: String,+) {+ if let Some((name, Value::String(existing))) = results.last_mut() {+ if name == NODE_NAME_TEXT {+ existing.push_str(&text);+ return;+ }+ }+ results.push((NODE_NAME_TEXT.to_string(), Value::String(text)));+}++fn is_empty(value: &Value) -> bool {+ match value {+ Value::Null => true,+ Value::String(text) => text.is_empty(),+ _ => false,+ }+}diff --git a/crates/token-stream-parser/src/extraction/state.rs b/crates/token-stream-parser/src/extraction/state.rsnew file mode 100644index 000000000..6d6b9fe21--- /dev/null+++ b/crates/token-stream-parser/src/extraction/state.rs@@ -0,0 +1,79 @@+use serde_json::Value;++use crate::ParserState;++#[derive(Debug, Clone)]+pub struct ExtractionParserState {+ pub value: Value,+}++impl ExtractionParserState {+ pub fn new() -> Self {+ Self {+ value: Value::Null,+ }+ }+}++impl ParserState for ExtractionParserState {+ fn is_substate_of(+ &self,+ other: &Self,+ ) -> bool {+ value_is_substate(&self.value, &other.value)+ }++ fn tokens(&self) -> Vec<&crate::types::Token> {+ Vec::new()+ }+}++fn value_is_substate(+ current: &Value,+ other: &Value,+) -> bool {+ let is_empty = match current {+ Value::Null => true,+ Value::String(string_value) => string_value.is_empty(),+ Value::Array(items) => items.is_empty(),+ Value::Object(map) => map.is_empty(),+ _ => false,+ };+ if is_empty {+ return true;+ }++ match (current, other) {+ (Value::String(current_string), Value::String(other_string)) => {+ other_string.starts_with(current_string.as_str())+ },+ (Value::Array(current_items), Value::Array(other_items)) => {+ let check_count = current_items.len();+ for index in 0..check_count {+ if index < check_count - 1 {+ if current_items[index] != other_items[index] {+ return false;+ }+ } else if !value_is_substate(¤t_items[index], &other_items[index]) {+ return false;+ }+ }+ true+ },+ (Value::Object(current_map), Value::Object(other_map)) => {+ for (key, current_value) in current_map {+ match other_map.get(key) {+ Some(other_value) => {+ if !value_is_substate(current_value, other_value) {+ return false;+ }+ },+ None => return false,+ }+ }+ true+ },+ (Value::String(_), _) => true,+ _ => current == other,+ }+}diff --git a/crates/token-stream-parser/src/framing/config.rs b/crates/token-stream-parser/src/framing/config.rsnew file mode 100644index 000000000..b28ececa8--- /dev/null+++ b/crates/token-stream-parser/src/framing/config.rs@@ -0,0 +1,8 @@+use serde::{Deserialize, Serialize};++use crate::types::TokenValue;++#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]+pub struct FramingParserConfig {+ pub tokens: Vec<TokenValue>,+}diff --git a/crates/token-stream-parser/src/framing/mod.rs b/crates/token-stream-parser/src/framing/mod.rsnew file mode 100644index 000000000..732c6af32--- /dev/null+++ b/crates/token-stream-parser/src/framing/mod.rs@@ -0,0 +1,9 @@+mod config;+mod output;+mod parser;+mod state;++pub use config::FramingParserConfig;+pub use output::FramingParserOutput;+pub use parser::FramingParser;+pub use state::{FramingParserSection, FramingParserState};diff --git a/crates/token-stream-parser/src/framing/output.rs b/crates/token-stream-parser/src/framing/output.rsnew file mode 100644index 000000000..a876fa816--- /dev/null+++ b/crates/token-stream-parser/src/framing/output.rs@@ -0,0 +1,25 @@+use std::fmt;++use serde::{Deserialize, Serialize};++use crate::{framing::FramingParserSection, types::Token};++#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]+pub enum FramingParserOutput {+ Added(FramingParserSection),+ Extended(Token),+}++impl fmt::Display for FramingParserOutput {+ fn fmt(+ &self,+ formatter: &mut fmt::Formatter<'_>,+ ) -> fmt::Result {+ match self {+ Self::Added(section) => write!(formatter, "{section}"),+ Self::Extended(token) => {+ write!(formatter, "extend({})", token.value)+ },+ }+ }+}diff --git a/crates/token-stream-parser/src/framing/parser.rs b/crates/token-stream-parser/src/framing/parser.rsnew file mode 100644index 000000000..9233d58af--- /dev/null+++ b/crates/token-stream-parser/src/framing/parser.rs@@ -0,0 +1,60 @@+use std::{collections::HashSet, convert::Infallible};++use crate::{+ Parser,+ framing::{FramingParserConfig, FramingParserOutput, FramingParserSection, FramingParserState},+ types::Token,+};++pub struct FramingParser {+ marker_tokens: HashSet<String>,+ state: FramingParserState,+}++impl Parser for FramingParser {+ type Config = FramingParserConfig;+ type Input = Token;+ type Output = FramingParserOutput;+ type State = FramingParserState;+ type Error = Infallible;++ fn new(config: Self::Config) -> Result<Self, Self::Error> {+ Ok(Self {+ marker_tokens: config.tokens.into_iter().collect(),+ state: FramingParserState::new(),+ })+ }++ #[tracing::instrument(skip_all, fields(token = %input))]+ fn push(+ &mut self,+ input: &Token,+ ) -> Result<FramingParserOutput, Infallible> {+ let token = input.clone();+ if self.marker_tokens.contains(&input.value) {+ let output = FramingParserOutput::Added(FramingParserSection::Marker(token.clone()));+ self.state.sections.push(FramingParserSection::Marker(token));+ Ok(output)+ } else {+ match self.state.sections.last_mut() {+ Some(FramingParserSection::Text(tokens)) => {+ tokens.push(token.clone());+ Ok(FramingParserOutput::Extended(token))+ },+ _ => {+ let output = FramingParserOutput::Added(FramingParserSection::Text(vec![token.clone()]));+ self.state.sections.push(FramingParserSection::Text(vec![token]));+ Ok(output)+ },+ }+ }+ }++ fn state(&self) -> &Self::State {+ &self.state+ }++ fn reset(&mut self) {+ self.state.sections.clear();+ }+}diff --git a/crates/token-stream-parser/src/framing/state.rs b/crates/token-stream-parser/src/framing/state.rsnew file mode 100644index 000000000..0b1832cf4--- /dev/null+++ b/crates/token-stream-parser/src/framing/state.rs@@ -0,0 +1,86 @@+use std::fmt;++use serde::{Deserialize, Serialize};++use crate::{ParserState, types::Token};++#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]+#[serde(rename_all = "lowercase")]+pub enum FramingParserSection {+ Marker(Token),+ Text(Vec<Token>),+}++impl fmt::Display for FramingParserSection {+ fn fmt(+ &self,+ formatter: &mut fmt::Formatter<'_>,+ ) -> fmt::Result {+ match self {+ Self::Marker(token) => {+ write!(formatter, "frame.marker({})", token.value)+ },+ Self::Text(tokens) => {+ let text: String = tokens.iter().map(|token| token.value.as_str()).collect();+ let escaped: String = text.chars().flat_map(|character| character.escape_debug()).collect();+ write!(formatter, "frame.text({escaped})")+ },+ }+ }+}++impl ParserState for FramingParserSection {+ fn is_substate_of(+ &self,+ other_state: &Self,+ ) -> bool {+ match (self, other_state) {+ (Self::Marker(current), Self::Marker(other)) => current == other,+ (Self::Text(current_tokens), Self::Text(other_tokens)) => {+ current_tokens.len() <= other_tokens.len()+ && current_tokens.iter().zip(other_tokens.iter()).all(|(current, other)| current == other)+ },+ _ => false,+ }+ }++ fn tokens(&self) -> Vec<&Token> {+ match self {+ Self::Marker(token) => vec![token],+ Self::Text(tokens) => tokens.iter().collect(),+ }+ }+}++#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]+pub struct FramingParserState {+ pub sections: Vec<FramingParserSection>,+}++impl FramingParserState {+ pub fn new() -> Self {+ Self {+ sections: Vec::new(),+ }+ }+}++impl ParserState for FramingParserState {+ fn is_substate_of(+ &self,+ other_state: &Self,+ ) -> bool {+ self.sections.len() <= other_state.sections.len()+ && self.sections.iter().zip(other_state.sections.iter()).enumerate().all(|(index, (current, other))| {+ if index == self.sections.len() - 1 {+ current.is_substate_of(other)+ } else {+ current == other+ }+ })+ }++ fn tokens(&self) -> Vec<&Token> {+ self.sections.iter().flat_map(|section| section.tokens()).collect()+ }+}diff --git a/crates/token-stream-parser/src/lib.rs b/crates/token-stream-parser/src/lib.rsnew file mode 100644index 000000000..53e225fb2--- /dev/null+++ b/crates/token-stream-parser/src/lib.rs@@ -0,0 +1,34 @@+pub mod extraction;+pub mod framing;+pub mod reduction;+pub mod token_stream;+pub mod types;++use types::Token;++pub trait ParserState {+ fn is_substate_of(+ &self,+ other_state: &Self,+ ) -> bool;++ fn tokens(&self) -> Vec<&Token>;+}++pub trait Parser {+ type Config;+ type Input;+ type Output;+ type State: ParserState;+ type Error;++ fn new(config: Self::Config) -> Result<Self, Self::Error>+ where+ Self: Sized;+ fn push(+ &mut self,+ input: &Self::Input,+ ) -> Result<Self::Output, Self::Error>;+ fn state(&self) -> &Self::State;+ fn reset(&mut self);+}diff --git a/crates/token-stream-parser/src/reduction/config.rs b/crates/token-stream-parser/src/reduction/config.rsnew file mode 100644index 000000000..ba32fd54a--- /dev/null+++ b/crates/token-stream-parser/src/reduction/config.rs@@ -0,0 +1,185 @@+use std::collections::HashSet;++use serde::{Deserialize, Serialize};++use crate::{reduction::ReductionParserError, types::TokenValue};++#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]+#[serde(tag = "type", rename_all = "snake_case")]+pub enum ReductionParserGroup {+ Bounded {+ name: String,+ open_token: TokenValue,+ close_tokens: Vec<TokenValue>,+ #[serde(default)]+ groups: Vec<ReductionParserGroup>,+ },+ Open {+ name: String,+ open_token: TokenValue,+ #[serde(default)]+ groups: Vec<ReductionParserGroup>,+ },+ Greedy {+ name: String,+ #[serde(default)]+ capturing_limit: Option<usize>,+ #[serde(default)]+ groups: Vec<ReductionParserGroup>,+ },+}++impl ReductionParserGroup {+ pub fn name(&self) -> &str {+ match self {+ Self::Bounded {+ name,+ ..+ }+ | Self::Open {+ name,+ ..+ }+ | Self::Greedy {+ name,+ ..+ } => name,+ }+ }++ pub fn groups(&self) -> &[ReductionParserGroup] {+ match self {+ Self::Bounded {+ groups,+ ..+ }+ | Self::Open {+ groups,+ ..+ }+ | Self::Greedy {+ groups,+ ..+ } => groups,+ }+ }++ pub fn open_token(&self) -> Option<&TokenValue> {+ match self {+ Self::Bounded {+ open_token,+ ..+ }+ | Self::Open {+ open_token,+ ..+ } => Some(open_token),+ Self::Greedy {+ ..+ } => None,+ }+ }++ pub fn capturing_limit(&self) -> Option<usize> {+ match self {+ Self::Bounded {+ ..+ }+ | Self::Open {+ ..+ } => None,+ Self::Greedy {+ capturing_limit,+ ..+ } => *capturing_limit,+ }+ }+}++#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]+pub struct ReductionParserConfig {+ pub groups: Vec<ReductionParserGroup>,+}++impl ReductionParserConfig {+ pub fn validate(&self) -> Result<(), ReductionParserError> {+ validate_sibling_groups(&self.groups)+ }++ pub fn collect_sections_compose_groups(&self) -> std::collections::HashSet<String> {+ let mut result = std::collections::HashSet::new();+ Self::collect_sections_compose_groups_recursive(&self.groups, &mut result);+ result+ }++ fn collect_sections_compose_groups_recursive(+ groups: &[ReductionParserGroup],+ result: &mut std::collections::HashSet<String>,+ ) {+ for group in groups {+ let children = group.groups();+ let has_non_greedy_children = !children.is_empty()+ && children.iter().all(|child| !matches!(child, ReductionParserGroup::Greedy { .. }));+ if has_non_greedy_children {+ result.insert(group.name().to_string());+ }+ Self::collect_sections_compose_groups_recursive(group.groups(), result);+ }+ }++ pub fn collect_framing_tokens(&self) -> Vec<TokenValue> {+ let mut tokens = Vec::new();+ Self::collect_framing_tokens_recursive(&self.groups, &mut tokens);+ tokens+ }++ fn collect_framing_tokens_recursive(+ groups: &[ReductionParserGroup],+ tokens: &mut Vec<TokenValue>,+ ) {+ for group in groups {+ if let Some(open) = group.open_token() {+ if !tokens.contains(open) {+ tokens.push(open.clone());+ }+ }+ if let ReductionParserGroup::Bounded {+ close_tokens,+ ..+ } = group+ {+ for close_token in close_tokens {+ if !tokens.contains(close_token) {+ tokens.push(close_token.clone());+ }+ }+ }+ Self::collect_framing_tokens_recursive(group.groups(), tokens);+ }+ }+}++fn validate_sibling_groups(groups: &[ReductionParserGroup]) -> Result<(), ReductionParserError> {+ let mut seen_names: HashSet<&str> = HashSet::new();+ let mut seen_open_tokens: HashSet<&TokenValue> = HashSet::new();++ for group in groups {+ if !seen_names.insert(group.name()) {+ return Err(ReductionParserError::DuplicateGroupName {+ name: group.name().to_string(),+ });+ }++ if let Some(open_token) = group.open_token() {+ if !seen_open_tokens.insert(open_token) {+ return Err(ReductionParserError::DuplicateOpenToken {+ token: open_token.clone(),+ });+ }+ }++ validate_sibling_groups(group.groups())?;+ }++ Ok(())+}diff --git a/crates/token-stream-parser/src/reduction/error.rs b/crates/token-stream-parser/src/reduction/error.rsnew file mode 100644index 000000000..8836a6f42--- /dev/null+++ b/crates/token-stream-parser/src/reduction/error.rs@@ -0,0 +1,18 @@+use crate::types::TokenValue;++#[derive(Debug, Clone, PartialEq, Eq, thiserror::Error)]+#[non_exhaustive]+pub enum ReductionParserError {+ #[error("Invalid state: expected group at index {index}")]+ InvalidState {+ index: usize,+ },+ #[error("Duplicate group name at same level: {name}")]+ DuplicateGroupName {+ name: String,+ },+ #[error("Duplicate open token at same level: {token}")]+ DuplicateOpenToken {+ token: TokenValue,+ },+}diff --git a/crates/token-stream-parser/src/reduction/mod.rs b/crates/token-stream-parser/src/reduction/mod.rsnew file mode 100644index 000000000..571db1935--- /dev/null+++ b/crates/token-stream-parser/src/reduction/mod.rs@@ -0,0 +1,11 @@+mod config;+mod error;+mod parser;+mod stack;+mod state;++pub use config::{ReductionParserConfig, ReductionParserGroup};+pub use error::ReductionParserError;+pub use parser::ReductionParser;+pub(crate) use stack::ReductionParserGroupStack;+pub use state::{ReductionParserSection, ReductionParserState};diff --git a/crates/token-stream-parser/src/reduction/parser.rs b/crates/token-stream-parser/src/reduction/parser.rsnew file mode 100644index 000000000..4c38b76d3--- /dev/null+++ b/crates/token-stream-parser/src/reduction/parser.rs@@ -0,0 +1,90 @@+use crate::{+ Parser,+ framing::{FramingParserOutput, FramingParserSection},+ reduction::{ReductionParserConfig, ReductionParserError, ReductionParserGroupStack, ReductionParserState},+ types::Token,+};++pub struct ReductionParser {+ state: ReductionParserState,+ stack: ReductionParserGroupStack,+}++impl Parser for ReductionParser {+ type Config = ReductionParserConfig;+ type Input = FramingParserOutput;+ type Output = ();+ type State = ReductionParserState;+ type Error = ReductionParserError;++ fn new(config: Self::Config) -> Result<Self, Self::Error> {+ config.validate()?;+ Ok(Self {+ state: ReductionParserState::new(),+ stack: ReductionParserGroupStack::new(config.groups),+ })+ }++ #[tracing::instrument(skip_all, fields(input = %input))]+ fn push(+ &mut self,+ input: &FramingParserOutput,+ ) -> Result<(), ReductionParserError> {+ match input {+ FramingParserOutput::Added(section) => match section {+ FramingParserSection::Marker(token) => self.handle_frame_marker(token.clone()),+ FramingParserSection::Text(tokens) => self.handle_frame_text_new(tokens.clone()),+ },+ FramingParserOutput::Extended(token) => self.handle_frame_text_extend(token.clone()),+ }+ }++ fn state(&self) -> &Self::State {+ &self.state+ }++ fn reset(&mut self) {+ self.state.sections.clear();+ self.stack.clear();+ }+}++impl ReductionParser {+ #[tracing::instrument(skip(self), fields(token = %token))]+ fn handle_frame_marker(+ &mut self,+ token: Token,+ ) -> Result<(), ReductionParserError> {+ // Close token for an ancestor group+ if self.stack.close_groups_matching_token(&token, &mut self.state)? {+ return Ok(());+ }++ // Open token for a child or root group+ if self.stack.open_group_matching_token(&token, &mut self.state)? {+ return Ok(());+ }++ // No match, add marker as content to current group+ self.stack.open_greedy_group_if_needed(&mut self.state)?;+ self.stack.append_frame_marker(token, &mut self.state)+ }++ #[tracing::instrument(skip_all, fields(tokens = tokens.len()))]+ fn handle_frame_text_new(+ &mut self,+ tokens: Vec<Token>,+ ) -> Result<(), ReductionParserError> {+ self.stack.open_greedy_group_if_needed(&mut self.state)?;+ self.stack.append_frame_text(tokens, &mut self.state)+ }++ #[tracing::instrument(skip(self), fields(token = %token))]+ fn handle_frame_text_extend(+ &mut self,+ token: Token,+ ) -> Result<(), ReductionParserError> {+ self.stack.open_greedy_group_if_needed(&mut self.state)?;+ self.stack.extend_frame_text(token, &mut self.state)+ }+}diff --git a/crates/token-stream-parser/src/reduction/stack.rs b/crates/token-stream-parser/src/reduction/stack.rsnew file mode 100644index 000000000..95aa0430b--- /dev/null+++ b/crates/token-stream-parser/src/reduction/stack.rs@@ -0,0 +1,484 @@+use crate::{+ framing::FramingParserSection,+ reduction::{ReductionParserError, ReductionParserGroup, ReductionParserSection, ReductionParserState},+ types::Token,+};++/// Defines how incoming text is captured at the current stack level+#[derive(Debug)]+enum ReductionParserCaptureMode {+ /// All greedy children completed (or none defined)+ Direct,+ /// Capturing into a greedy child at `child_index`+ Greedy {+ child_index: usize,+ items_captured: usize,+ },+}++/// Defines one level of group nesting on the stack+#[derive(Debug)]+struct ReductionParserStackEntry {+ /// Index of this group in parent's sections vec+ section_index: usize,+ /// The group definition this entry was created from+ definition: ReductionParserGroup,+ /// How text is currently being captured inside this group+ capture_mode: ReductionParserCaptureMode,+}++impl ReductionParserStackEntry {+ fn child_groups(&self) -> &[ReductionParserGroup] {+ self.definition.groups()+ }++ /// Count of leading greedy children in this entry's child groups+ fn greedy_child_count(&self) -> usize {+ self.child_groups().iter().take_while(|group| matches!(group, ReductionParserGroup::Greedy { .. })).count()+ }++ /// Whether this token matches a close token for this entry+ fn matches_close_token(+ &self,+ token_value: &str,+ ) -> bool {+ match &self.definition {+ ReductionParserGroup::Bounded {+ close_tokens,+ ..+ } => close_tokens.iter().any(|token| token == token_value),+ ReductionParserGroup::Open {+ ..+ } => false,+ ReductionParserGroup::Greedy {+ ..+ } => false,+ }+ }++ /// Whether this entry auto-closes when a sibling's open token appears+ fn closes_on_sibling(&self) -> bool {+ match &self.definition {+ ReductionParserGroup::Bounded {+ ..+ } => false,+ ReductionParserGroup::Open {+ ..+ } => true,+ ReductionParserGroup::Greedy {+ capturing_limit,+ ..+ } => capturing_limit.is_none(),+ }+ }++ /// Capture limit of the current greedy child, if any+ fn capture_limit(&self) -> Option<usize> {+ match &self.capture_mode {+ ReductionParserCaptureMode::Greedy {+ child_index,+ ..+ } => self.child_groups()[*child_index].capturing_limit(),+ ReductionParserCaptureMode::Direct => None,+ }+ }++ /// Whether the current greedy child has reached its capture limit+ fn is_capture_complete(&self) -> bool {+ match &self.capture_mode {+ ReductionParserCaptureMode::Greedy {+ items_captured,+ ..+ } => self.capture_limit().map(|limit| *items_captured >= limit).unwrap_or(false),+ ReductionParserCaptureMode::Direct => false,+ }+ }++ /// Record captured items in the current greedy child+ fn increment_capture(+ &mut self,+ count: usize,+ ) {+ if let ReductionParserCaptureMode::Greedy {+ items_captured,+ ..+ } = &mut self.capture_mode+ {+ *items_captured += count;+ }+ }++ /// Close current greedy child, advance to next or switch to Direct mode+ fn advance_greedy(&mut self) {+ if let ReductionParserCaptureMode::Greedy {+ child_index,+ ..+ } = &self.capture_mode+ {+ let next_index = child_index + 1;+ if next_index < self.greedy_child_count() {+ self.capture_mode = ReductionParserCaptureMode::Greedy {+ child_index: next_index,+ items_captured: 0,+ };+ } else {+ self.capture_mode = ReductionParserCaptureMode::Direct;+ }+ }+ }+}++pub(crate) struct ReductionParserGroupStack {+ entries: Vec<ReductionParserStackEntry>,+ root_groups: Vec<ReductionParserGroup>,+}++impl ReductionParserGroupStack {+ pub fn new(root_groups: Vec<ReductionParserGroup>) -> Self {+ Self {+ entries: Vec::new(),+ root_groups,+ }+ }++ pub fn clear(&mut self) {+ self.entries.clear();+ }+}++// Token matching++impl ReductionParserGroupStack {+ /// Is this token a close token for any ancestor? If yes, close all groups down to that ancestor+ #[tracing::instrument(skip_all, fields(token = %token))]+ pub fn close_groups_matching_token(+ &mut self,+ token: &Token,+ state: &mut ReductionParserState,+ ) -> Result<bool, ReductionParserError> {+ let Some(depth) = self.find_matching_close_depth(&token.value) else {+ return Ok(false);+ };+ self.close_groups_to_depth(depth, Some(token.clone()), state)?;+ self.advance_completed_greedy_captures(state)?;+ Ok(true)+ }++ /// Is this token an open token? Close any greedy that yields to siblings, then check child groups and root groups+ #[tracing::instrument(skip_all, fields(token = %token))]+ pub fn open_group_matching_token(+ &mut self,+ token: &Token,+ state: &mut ReductionParserState,+ ) -> Result<bool, ReductionParserError> {+ self.close_greedy_on_sibling_token(&token.value, state)?;++ if let Some(group) = self.find_matching_group(&token.value) {+ self.open_group(group, Some(token.clone()), state)?;+ return Ok(true);+ }++ if let Some(group) = self.find_matching_root_group(&token.value) {+ self.open_group(group, Some(token.clone()), state)?;+ return Ok(true);+ }++ Ok(false)+ }++ /// Walk stack bottom-up, find which level closes on this token+ fn find_matching_close_depth(+ &self,+ token_value: &str,+ ) -> Option<usize> {+ self.entries+ .iter()+ .enumerate()+ .rev()+ .find(|(_, entry)| entry.matches_close_token(token_value))+ .map(|(index, _)| index)+ }++ /// Does this token match an open token of any group available at the current level+ fn find_matching_group(+ &self,+ token_value: &str,+ ) -> Option<ReductionParserGroup> {+ let child_groups = match self.entries.last() {+ Some(entry) => entry.child_groups(),+ None => &self.root_groups,+ };+ child_groups.iter().find(|group| group.open_token().map(String::as_str) == Some(token_value)).cloned()+ }++ /// Does this token match an open token of a root-level group? (re-entry from nested)+ fn find_matching_root_group(+ &self,+ token_value: &str,+ ) -> Option<ReductionParserGroup> {+ if self.entries.is_empty() {+ return None;+ }+ self.root_groups.iter().find(|group| group.open_token().map(String::as_str) == Some(token_value)).cloned()+ }++ /// Does this token match any sibling at the current depth? (for greedy close detection)+ fn is_sibling_open_token(+ &self,+ token_value: &str,+ ) -> bool {+ let parent_children = if self.entries.len() <= 1 {+ &self.root_groups+ } else {+ self.entries[self.entries.len() - 2].child_groups()+ };+ parent_children.iter().any(|group| group.open_token().map(String::as_str) == Some(token_value))+ }+}++// Frame operations+impl ReductionParserGroupStack {+ /// If current level has an unopened greedy child, open it so it can receive content+ #[tracing::instrument(skip_all)]+ pub fn open_greedy_group_if_needed(+ &mut self,+ state: &mut ReductionParserState,+ ) -> Result<(), ReductionParserError> {+ let Some(entry) = self.entries.last() else {+ return Ok(());+ };++ let ReductionParserCaptureMode::Greedy {+ child_index,+ ..+ } = &entry.capture_mode+ else {+ return Ok(());+ };++ if *child_index >= entry.greedy_child_count() {+ return Ok(());+ }++ let child_definition = entry.child_groups()[*child_index].clone();+ self.open_group(child_definition, None, state)+ }++ /// Push a new text frame, record capture, check if greedy is full+ #[tracing::instrument(skip_all, fields(tokens = tokens.len()))]+ pub fn append_frame_text(+ &mut self,+ tokens: Vec<Token>,+ state: &mut ReductionParserState,+ ) -> Result<(), ReductionParserError> {+ let count = tokens.len();+ let sections = self.current_sections(state)?;+ sections.push(ReductionParserSection::Frame(FramingParserSection::Text(tokens)));+ self.record_captured_items(count);+ self.advance_completed_greedy_captures(state)+ }++ /// Push a new marker frame, record capture, check if greedy is full+ #[tracing::instrument(skip_all, fields(token = %token))]+ pub fn append_frame_marker(+ &mut self,+ token: Token,+ state: &mut ReductionParserState,+ ) -> Result<(), ReductionParserError> {+ let sections = self.current_sections(state)?;+ sections.push(ReductionParserSection::Frame(FramingParserSection::Marker(token)));+ self.record_captured_items(1);+ self.advance_completed_greedy_captures(state)+ }++ /// Append token to last text frame (or create new one), record capture, check if greedy is full+ #[tracing::instrument(skip_all, fields(token = %token))]+ pub fn extend_frame_text(+ &mut self,+ token: Token,+ state: &mut ReductionParserState,+ ) -> Result<(), ReductionParserError> {+ let sections = self.current_sections(state)?;+ match sections.last_mut() {+ Some(ReductionParserSection::Frame(FramingParserSection::Text(tokens))) => {+ tokens.push(token);+ },+ _ => {+ sections.push(ReductionParserSection::Frame(FramingParserSection::Text(vec![token])));+ },+ }+ self.record_captured_items(1);+ self.advance_completed_greedy_captures(state)+ }+}++// Lifecycle+impl ReductionParserGroupStack {+ /// Create section in state, push entry to stack with initial capture mode+ #[tracing::instrument(skip_all, fields(name = definition.name()))]+ fn open_group(+ &mut self,+ definition: ReductionParserGroup,+ open_token: Option<Token>,+ state: &mut ReductionParserState,+ ) -> Result<(), ReductionParserError> {+ let name = definition.name().to_string();+ let has_greedy_children =+ definition.groups().iter().any(|group| matches!(group, ReductionParserGroup::Greedy { .. }));+ let capture_mode = if has_greedy_children {+ ReductionParserCaptureMode::Greedy {+ child_index: 0,+ items_captured: 0,+ }+ } else {+ ReductionParserCaptureMode::Direct+ };++ let sections = self.current_sections(state)?;+ let index = sections.len();+ sections.push(ReductionParserSection::Group {+ name,+ open: open_token,+ close: None,+ finished: false,+ sections: Vec::new(),+ });++ self.entries.push(ReductionParserStackEntry {+ section_index: index,+ definition,+ capture_mode,+ });++ Ok(())+ }++ /// Pop stack, set close token on the section+ fn close_top_group(+ &mut self,+ close_token: Option<Token>,+ state: &mut ReductionParserState,+ ) -> Result<(), ReductionParserError> {+ let Some(entry) = self.entries.pop() else {+ return Ok(());+ };+ let _span = tracing::info_span!("close_top_group", name = entry.definition.name()).entered();+ let sections = self.current_sections(state)?;+ if let Some(ReductionParserSection::Group {+ close,+ finished,+ ..+ }) = sections.get_mut(entry.section_index)+ {+ *close = close_token;+ *finished = true;+ }+ Ok(())+ }++ /// Close everything above target depth, then close the target with the close token+ #[tracing::instrument(skip_all, fields(depth = depth))]+ fn close_groups_to_depth(+ &mut self,+ depth: usize,+ close_token: Option<Token>,+ state: &mut ReductionParserState,+ ) -> Result<(), ReductionParserError> {+ while self.entries.len() > depth + 1 {+ self.close_top_group(None, state)?;+ }+ self.close_top_group(close_token, state)+ }+}++// Greedy capture management+impl ReductionParserGroupStack {+ /// While the top entry is an unlimited greedy and the token is a sibling, keep closing+ #[tracing::instrument(skip_all, fields(token_value = token_value))]+ fn close_greedy_on_sibling_token(+ &mut self,+ token_value: &str,+ state: &mut ReductionParserState,+ ) -> Result<(), ReductionParserError> {+ while let Some(entry) = self.entries.last() {+ if entry.closes_on_sibling() && self.is_sibling_open_token(token_value) {+ self.close_top_group(None, state)?;+ } else {+ break;+ }+ }+ Ok(())+ }++ /// Walk stack bottom-up, find nearest entry with a capture limit, increment its counter+ fn record_captured_items(+ &mut self,+ count: usize,+ ) {+ for entry in self.entries.iter_mut().rev() {+ if entry.capture_limit().is_some() {+ entry.increment_capture(count);+ return;+ }+ }+ }++ /// Find any entry that hit its capture limit, close children above it, advance to next greedy or Direct, open next greedy if needed+ #[tracing::instrument(skip_all)]+ fn advance_completed_greedy_captures(+ &mut self,+ state: &mut ReductionParserState,+ ) -> Result<(), ReductionParserError> {+ loop {+ let target_depth = self.entries.iter().enumerate().rev().find_map(|(index, entry)| {+ if entry.is_capture_complete() {+ Some(index)+ } else {+ None+ }+ });++ let Some(depth) = target_depth else {+ break;+ };++ while self.entries.len() > depth + 1 {+ self.close_top_group(None, state)?;+ }++ if let Some(entry) = self.entries.last_mut() {+ entry.advance_greedy();+ }++ self.open_greedy_group_if_needed(state)?;+ }+ Ok(())+ }+}++// Navigation+impl ReductionParserGroupStack {+ /// Walk the stack following section indices to get mutable reference to the current group's sections+ fn current_sections<'a>(+ &self,+ state: &'a mut ReductionParserState,+ ) -> Result<&'a mut Vec<ReductionParserSection>, ReductionParserError> {+ let mut current = &mut state.sections;+ for entry in &self.entries {+ match current.get_mut(entry.section_index) {+ Some(ReductionParserSection::Group {+ sections,+ ..+ }) => {+ current = sections;+ },+ _ => {+ return Err(ReductionParserError::InvalidState {+ index: entry.section_index,+ });+ },+ }+ }+ Ok(current)+ }+}diff --git a/crates/token-stream-parser/src/reduction/state.rs b/crates/token-stream-parser/src/reduction/state.rsnew file mode 100644index 000000000..0fa2df5d2--- /dev/null+++ b/crates/token-stream-parser/src/reduction/state.rs@@ -0,0 +1,122 @@+use serde::{Deserialize, Serialize};++use crate::{ParserState, framing::FramingParserSection, types::Token};++#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]+#[serde(rename_all = "lowercase")]+pub enum ReductionParserSection {+ Frame(FramingParserSection),+ Group {+ name: String,+ #[serde(default)]+ open: Option<Token>,+ #[serde(default)]+ close: Option<Token>,+ #[serde(default)]+ finished: bool,+ #[serde(default)]+ sections: Vec<ReductionParserSection>,+ },+}++impl ParserState for ReductionParserSection {+ fn is_substate_of(+ &self,+ other_state: &Self,+ ) -> bool {+ match (self, other_state) {+ (Self::Frame(current), Self::Frame(other)) => current.is_substate_of(other),+ (+ Self::Group {+ name: current_name,+ open: current_open,+ sections: current_sections,+ ..+ },+ Self::Group {+ name: other_name,+ open: other_open,+ sections: other_sections,+ ..+ },+ ) => {+ current_name == other_name+ && current_open == other_open+ && sections_is_substate(current_sections, other_sections)+ },+ _ => false,+ }+ }++ fn tokens(&self) -> Vec<&Token> {+ match self {+ Self::Frame(section) => section.tokens(),+ Self::Group {+ open,+ close,+ sections,+ ..+ } => {+ let mut result = Vec::new();+ if let Some(token) = open {+ result.push(token);+ }+ for section in sections {+ result.extend(section.tokens());+ }+ if let Some(token) = close {+ result.push(token);+ }+ result+ },+ }+ }+}++#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]+pub struct ReductionParserState {+ pub sections: Vec<ReductionParserSection>,+}++impl ReductionParserState {+ pub fn new() -> Self {+ Self {+ sections: Vec::new(),+ }+ }+}++impl ParserState for ReductionParserState {+ fn is_substate_of(+ &self,+ other_state: &Self,+ ) -> bool {+ sections_is_substate(&self.sections, &other_state.sections)+ }++ fn tokens(&self) -> Vec<&Token> {+ self.sections.iter().flat_map(|section| section.tokens()).collect()+ }+}++fn sections_is_substate(+ current: &[ReductionParserSection],+ other: &[ReductionParserSection],+) -> bool {+ if current.is_empty() {+ return true;+ }+ if current.len() > other.len() {+ return false;+ }+ for (index, section) in current.iter().enumerate() {+ if index < current.len() - 1 {+ if section != &other[index] {+ return false;+ }+ } else if !section.is_substate_of(&other[index]) {+ return false;+ }+ }+ true+}diff --git a/crates/token-stream-parser/src/token_stream/config.rs b/crates/token-stream-parser/src/token_stream/config.rsnew file mode 100644index 000000000..9bf1cf0c3--- /dev/null+++ b/crates/token-stream-parser/src/token_stream/config.rs@@ -0,0 +1,20 @@+use json_transform::TransformSchema;+use serde::{Deserialize, Serialize};++use crate::{framing::FramingParserConfig, reduction::ReductionParserConfig};++#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]+pub struct TokenStreamParserConfig {+ #[serde(default)]+ pub framing: Option<FramingParserConfig>,+ pub reduction: ReductionParserConfig,+ pub transformation: TransformSchema,+}++impl TokenStreamParserConfig {+ pub fn framing_config(&self) -> FramingParserConfig {+ self.framing.clone().unwrap_or_else(|| FramingParserConfig {+ tokens: self.reduction.collect_framing_tokens(),+ })+ }+}diff --git a/crates/token-stream-parser/src/token_stream/error.rs b/crates/token-stream-parser/src/token_stream/error.rsnew file mode 100644index 000000000..f120ab042--- /dev/null+++ b/crates/token-stream-parser/src/token_stream/error.rs@@ -0,0 +1,8 @@+use crate::reduction::ReductionParserError;++#[derive(Debug, thiserror::Error)]+#[non_exhaustive]+pub enum TokenStreamParserError {+ #[error(transparent)]+ Reduction(#[from] ReductionParserError),+}diff --git a/crates/token-stream-parser/src/token_stream/mod.rs b/crates/token-stream-parser/src/token_stream/mod.rsnew file mode 100644index 000000000..888644498--- /dev/null+++ b/crates/token-stream-parser/src/token_stream/mod.rs@@ -0,0 +1,7 @@+mod config;+mod error;+mod parser;++pub use config::TokenStreamParserConfig;+pub use error::TokenStreamParserError;+pub use parser::TokenStreamParser;diff --git a/crates/token-stream-parser/src/token_stream/parser.rs b/crates/token-stream-parser/src/token_stream/parser.rsnew file mode 100644index 000000000..3b927e20c--- /dev/null+++ b/crates/token-stream-parser/src/token_stream/parser.rs@@ -0,0 +1,84 @@+use crate::{+ Parser,+ extraction::{ExtractionParser, ExtractionParserConfig, ExtractionParserState},+ framing::FramingParser,+ reduction::ReductionParser,+ token_stream::{TokenStreamParserConfig, TokenStreamParserError},+ types::Token,+};++pub struct TokenStreamParser {+ framing: FramingParser,+ reduction: ReductionParser,+ extraction: ExtractionParser,+}++impl Parser for TokenStreamParser {+ type Config = TokenStreamParserConfig;+ type Input = Token;+ type Output = ();+ type State = ExtractionParserState;+ type Error = TokenStreamParserError;++ fn new(config: Self::Config) -> Result<Self, Self::Error> {+ let sections_compose_groups = config.reduction.collect_sections_compose_groups();+ let framing = match FramingParser::new(config.framing_config()) {+ Ok(parser) => parser,+ Err(infallible) => match infallible {},+ };+ let reduction = ReductionParser::new(config.reduction)?;+ let extraction = match ExtractionParser::new(ExtractionParserConfig {+ schema: Some(config.transformation),+ sections_compose_groups,+ }) {+ Ok(parser) => parser,+ Err(infallible) => match infallible {},+ };+ Ok(Self {+ framing,+ reduction,+ extraction,+ })+ }++ #[tracing::instrument(skip_all, fields(token = %input))]+ fn push(+ &mut self,+ input: &Token,+ ) -> Result<(), TokenStreamParserError> {+ let event = match self.framing.push(input) {+ Ok(event) => event,+ Err(infallible) => match infallible {},+ };+ self.reduction.push(&event)?;+ match self.extraction.push(self.reduction.state()) {+ Ok(()) => {},+ Err(infallible) => match infallible {},+ }+ Ok(())+ }++ fn state(&self) -> &ExtractionParserState {+ self.extraction.state()+ }++ fn reset(&mut self) {+ self.framing.reset();+ self.reduction.reset();+ self.extraction.reset();+ }+}++impl TokenStreamParser {+ pub fn framing(&self) -> &FramingParser {+ &self.framing+ }++ pub fn reduction(&self) -> &ReductionParser {+ &self.reduction+ }++ pub fn extraction(&self) -> &ExtractionParser {+ &self.extraction+ }+}diff --git a/crates/token-stream-parser/src/types/mod.rs b/crates/token-stream-parser/src/types/mod.rsnew file mode 100644index 000000000..84bdca9f9--- /dev/null+++ b/crates/token-stream-parser/src/types/mod.rs@@ -0,0 +1,3 @@+mod token;++pub use token::{Token, TokenId, TokenValue};diff --git a/crates/token-stream-parser/src/types/token.rs b/crates/token-stream-parser/src/types/token.rsnew file mode 100644index 000000000..541920a35--- /dev/null+++ b/crates/token-stream-parser/src/types/token.rs@@ -0,0 +1,23 @@+use std::fmt;++use serde::{Deserialize, Serialize};++pub type TokenId = u32;+pub type TokenValue = String;++#[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]+pub struct Token {+ pub id: TokenId,+ pub value: TokenValue,+ pub is_special: bool,+}++impl fmt::Display for Token {+ fn fmt(+ &self,+ formatter: &mut fmt::Formatter<'_>,+ ) -> fmt::Result {+ let escaped: String = self.value.chars().flat_map(|character| character.escape_debug()).collect();+ write!(formatter, "{escaped}")+ }+}diff --git a/crates/token-stream-parser/tests/helpers/mod.rs b/crates/token-stream-parser/tests/helpers/mod.rsnew file mode 100644index 000000000..495d18ecf--- /dev/null+++ b/crates/token-stream-parser/tests/helpers/mod.rs@@ -0,0 +1,250 @@+#![allow(dead_code)]++use std::path::PathBuf;++use serde_json::Value;+use token_stream_parser::{+ Parser, ParserState,+ extraction::ExtractionParserState,+ framing::FramingParserState,+ reduction::ReductionParserState,+ token_stream::{TokenStreamParser, TokenStreamParserConfig},+ types::Token,+};+use tokenizers::Tokenizer;+use tracing_subscriber::{EnvFilter, Registry, prelude::*};+use tracing_tree::HierarchicalLayer;++fn test_data_path() -> PathBuf {+ PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("..").join("..").join("workspace").join("data")+}++fn configs_path() -> PathBuf {+ PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("..").join("hanashi").join("configs")+}++pub struct TestData {+ pub prompt: String,+ pub completion: String,+}++pub struct TestExpectations {+ pub framing: Option<FramingParserState>,+ pub reduction: Option<ReductionParserState>,+ pub extraction: ExtractionParserState,+}++pub struct TestSuite {+ pub config: TokenStreamParserConfig,+ pub tokenizer: Tokenizer,+}++impl TestSuite {+ pub fn load(+ config_name: &str,+ model_name: &str,+ ) -> Self {+ let parsing_path = configs_path().join("parsing");++ let config_path = parsing_path.join(format!("{config_name}.json"));+ let config_content = std::fs::read_to_string(&config_path)+ .unwrap_or_else(|error| panic!("Failed to read config {}: {error}", config_path.display()));+ let config: TokenStreamParserConfig = serde_json::from_str(&config_content)+ .unwrap_or_else(|error| panic!("Failed to parse config {}: {error}", config_path.display()));++ let tokenizer_path = test_data_path().join("tokenizers").join(model_name).join("tokenizer.json");+ let tokenizer = Tokenizer::from_file(&tokenizer_path)+ .unwrap_or_else(|error| panic!("Failed to load tokenizer {}: {error}", tokenizer_path.display()));++ Self {+ config,+ tokenizer,+ }+ }++ pub fn create_parser(&self) -> TokenStreamParser {+ TokenStreamParser::new(self.config.clone()).unwrap()+ }++ pub fn token(+ &self,+ value: &str,+ ) -> Token {+ let tokens = self.tokenize(value);+ assert_eq!(tokens.len(), 1, "Expected single token for value: {value}, got {} tokens", tokens.len());+ tokens.into_iter().next().unwrap()+ }++ pub fn tokenize(+ &self,+ text: &str,+ ) -> Vec<Token> {+ let encoding = self.tokenizer.encode(text, false).unwrap_or_else(|error| panic!("Failed to tokenize: {error}"));+ encoding+ .get_ids()+ .iter()+ .map(|token_id| Token {+ id: *token_id,+ value: self+ .tokenizer+ .decode(&[*token_id], false)+ .unwrap_or_else(|error| panic!("Failed to decode token {token_id}: {error}")),+ is_special: self+ .tokenizer+ .id_to_token(*token_id)+ .map(|raw| self.tokenizer.get_added_vocabulary().is_special_token(&raw))+ .unwrap_or(false),+ })+ .collect()+ }++ pub fn expect_framing(+ &self,+ json: &str,+ ) -> FramingParserState {+ let mut value: Value =+ serde_json::from_str(json).unwrap_or_else(|error| panic!("Failed to parse framing expectation: {error}"));+ self.resolve_tokens_in_value(&mut value);+ serde_json::from_value(value).unwrap_or_else(|error| panic!("Failed to deserialize framing state: {error}"))+ }++ pub fn expect_reduction(+ &self,+ json: &str,+ ) -> ReductionParserState {+ let mut value: Value =+ serde_json::from_str(json).unwrap_or_else(|error| panic!("Failed to parse reduction expectation: {error}"));+ self.resolve_tokens_in_value(&mut value);+ mark_all_groups_finished(&mut value);+ serde_json::from_value(value).unwrap_or_else(|error| panic!("Failed to deserialize reduction state: {error}"))+ }++ pub fn expect_extraction(+ &self,+ value: Value,+ ) -> ExtractionParserState {+ ExtractionParserState {+ value,+ }+ }++ fn resolve_tokens_in_value(+ &self,+ value: &mut Value,+ ) {+ match value {+ Value::Object(map) => {+ for (key, field) in map.iter_mut() {+ match key.as_str() {+ "name" => {},+ "marker" | "open" | "close" => {+ if let Value::String(token_value) = field {+ *field = serde_json::to_value(&self.token(token_value)).unwrap();+ }+ },+ "text" => {+ if let Value::Array(items) = field {+ for item in items.iter_mut() {+ if let Value::String(token_value) = item {+ *item = serde_json::to_value(&self.token(token_value)).unwrap();+ }+ }+ }+ },+ _ => self.resolve_tokens_in_value(field),+ }+ }+ },+ Value::Array(items) => {+ for item in items.iter_mut() {+ self.resolve_tokens_in_value(item);+ }+ },+ _ => {},+ }+ }+}++fn mark_all_groups_finished(value: &mut Value) {+ match value {+ Value::Object(map) => {+ if map.contains_key("sections") {+ map.insert("finished".to_string(), Value::Bool(true));+ }+ for (_, field) in map.iter_mut() {+ mark_all_groups_finished(field);+ }+ },+ Value::Array(items) => {+ for item in items.iter_mut() {+ mark_all_groups_finished(item);+ }+ },+ _ => {},+ }+}++pub fn run_parser_test(+ suite: &TestSuite,+ data: &TestData,+ expectations: &TestExpectations,+) {+ let mut parser = suite.create_parser();+ let full_text = format!("{}{}", data.prompt, data.completion);+ let tokens = suite.tokenize(&full_text);++ for (index, token) in tokens.iter().enumerate() {+ parser.push(token).unwrap();++ let expected_tokens: Vec<&Token> = tokens[..=index].iter().collect();+ let framing_tokens = parser.framing().state().tokens();+ let reduction_tokens = parser.reduction().state().tokens();+ assert_eq!(framing_tokens, expected_tokens, "Framing tokens mismatch after token {:?}", token.value,);+ assert_eq!(reduction_tokens, expected_tokens, "Reduction tokens mismatch after token {:?}", token.value,);++ if let Some(framing) = &expectations.framing {+ assert!(+ parser.framing().state().is_substate_of(framing),+ "Framing state after token {:?} is not a substate of expected",+ token.value,+ );+ }+ if let Some(reduction) = &expectations.reduction {+ assert!(+ parser.reduction().state().is_substate_of(reduction),+ "Reduction state after token {:?} is not a substate of expected",+ token.value,+ );+ }+ assert!(+ parser.state().is_substate_of(&expectations.extraction),+ "Extraction state after token {:?} is not a substate of expected.\n Got: {}",+ token.value,+ serde_json::to_string_pretty(&parser.state().value).unwrap()+ );++ println!("Result: {}", serde_json::to_string_pretty(&parser.state().value).unwrap());+ }++ let expected_tokens: Vec<&Token> = tokens.iter().collect();+ assert_eq!(parser.framing().state().tokens(), expected_tokens, "Final framing tokens mismatch");+ assert_eq!(parser.reduction().state().tokens(), expected_tokens, "Final reduction tokens mismatch");++ if let Some(framing) = &expectations.framing {+ assert_eq!(parser.framing().state(), framing, "Final framing state mismatch");+ }+ if let Some(reduction) = &expectations.reduction {+ assert_eq!(parser.reduction().state(), reduction, "Final reduction state mismatch");+ }+ assert_eq!(parser.state().value, expectations.extraction.value, "Final extraction state mismatch");+}++pub fn init_tracing_for_tests() {+ let filter = EnvFilter::from_default_env()+ .add_directive("json_transform".parse().unwrap())+ .add_directive("token_stream_parser".parse().unwrap());++ let layer = HierarchicalLayer::new(2).with_bracketed_fields(true).with_targets(true);++ let _ = Registry::default().with(filter).with(layer).try_init();+}diff --git a/crates/token-stream-parser/tests/test_token_stream_parser_gemma_4.rs b/crates/token-stream-parser/tests/test_token_stream_parser_gemma_4.rsnew file mode 100644index 000000000..5aff51ced--- /dev/null+++ b/crates/token-stream-parser/tests/test_token_stream_parser_gemma_4.rs@@ -0,0 +1,57 @@+mod helpers;++use helpers::{TestData, TestExpectations, TestSuite, init_tracing_for_tests, run_parser_test};+use serde_json::json;++fn gemma_4_suite() -> TestSuite {+ init_tracing_for_tests();+ TestSuite::load("gemma-4", "google_gemma-4-E4B-it")+}++#[test]+fn test_token_stream_parser_gemma_4_thinking_tool_call_tool_response() {+ let suite = gemma_4_suite();+ let data = TestData {+ prompt: "<bos><|turn>system\n<|think|>You are a helpful assistant<|tool>declaration:get_current_temperature{description:<|\"|>Get the current temperature at a location.<|\"|>,parameters:{properties:{location:{description:<|\"|>The location to get the temperature for<|\"|>,properties:{city:{description:<|\"|>The city name<|\"|>,type:<|\"|>STRING<|\"|>},country:{description:<|\"|>The country name<|\"|>,type:<|\"|>STRING<|\"|>}},required:[<|\"|>city<|\"|>,<|\"|>country<|\"|>],type:<|\"|>OBJECT<|\"|>},unit:{description:<|\"|>The unit to return the temperature in.<|\"|>,enum:[<|\"|>celsius<|\"|>,<|\"|>fahrenheit<|\"|>],type:<|\"|>STRING<|\"|>}},required:[<|\"|>location<|\"|>,<|\"|>unit<|\"|>],type:<|\"|>OBJECT<|\"|>}}<tool|><turn|>\n<|turn>user\nWhat is the current temperature in London, UK in celsius?<turn|>\n<|turn>model\n"+ .into(),+ completion:+ "<|channel>thought\nThinking Process:\n\nThe user is asking for the current temperature in London.<channel|><|tool_call>call:get_current_temperature{location:{city:<|\"|>London<|\"|>,country:<|\"|>United Kingdom<|\"|>},unit:<|\"|>celsius<|\"|>}<tool_call|><|tool_response>response:get_current_temperature{temperature:15}<tool_response|>The current weather in London is 15 celsius.<turn|>\n"+ .into(),+ };++ run_parser_test(+ &suite,+ &data,+ &TestExpectations {+ framing: None,+ reduction: None,+ extraction: suite.expect_extraction(json!([+ {"role": "system", "content": [+ {"type": "$text", "value": "\n<|think|>You are a helpful assistant<|tool>declaration:get_current_temperature{description:<|\"|>Get the current temperature at a location.<|\"|>,parameters:{properties:{location:{description:<|\"|>The location to get the temperature for<|\"|>,properties:{city:{description:<|\"|>The city name<|\"|>,type:<|\"|>STRING<|\"|>},country:{description:<|\"|>The country name<|\"|>,type:<|\"|>STRING<|\"|>}},required:[<|\"|>city<|\"|>,<|\"|>country<|\"|>],type:<|\"|>OBJECT<|\"|>},unit:{description:<|\"|>The unit to return the temperature in.<|\"|>,enum:[<|\"|>celsius<|\"|>,<|\"|>fahrenheit<|\"|>],type:<|\"|>STRING<|\"|>}},required:[<|\"|>location<|\"|>,<|\"|>unit<|\"|>],type:<|\"|>OBJECT<|\"|>}}<tool|>"}+ ]},+ {"role": "user", "content": [{"type": "$text", "value": "\nWhat is the current temperature in London, UK in celsius?"}]},+ {"role": "model", "content": [+ {"type": "$text", "value": "\n"},+ {"type": "reasoning", "value": "\nThinking Process:\n\nThe user is asking for the current temperature in London."},+ {"type": "tool_call", "value": {+ "name": "get_current_temperature",+ "arguments": {+ "location": {+ "city": "London",+ "country": "United Kingdom"+ },+ "unit": "celsius"+ }+ }},+ {"type": "tool_call_result", "value": {+ "name": "get_current_temperature",+ "value": {+ "temperature": 15+ }+ }},+ {"type": "$text", "value": "The current weather in London is 15 celsius."}+ ]},+ ])),+ },+ );+}diff --git a/crates/token-stream-parser/tests/test_token_stream_parser_gpt_oss.rs b/crates/token-stream-parser/tests/test_token_stream_parser_gpt_oss.rsnew file mode 100644index 000000000..de5853a0e--- /dev/null+++ b/crates/token-stream-parser/tests/test_token_stream_parser_gpt_oss.rs@@ -0,0 +1,301 @@+mod helpers;++use helpers::{TestData, TestExpectations, TestSuite, init_tracing_for_tests, run_parser_test};+use serde_json::json;++fn gpt_oss_suite() -> TestSuite {+ init_tracing_for_tests();+ TestSuite::load("gpt-oss", "openai_gpt-oss-20b")+}++#[test]+fn test_token_stream_parser_gpt_oss_text_response() {+ let suite = gpt_oss_suite();+ let data = TestData {+ prompt: "<|start|>user<|message|>Hi<|end|><|start|>assistant".into(),+ completion: "<|channel|>final<|message|>Hello!<|end|>".into(),+ };++ run_parser_test(+ &suite,+ &data,+ &TestExpectations {+ framing: Some(suite.expect_framing(+ r#"{"sections": [+ {"marker": "<|start|>"},+ {"text": ["user"]},+ {"marker": "<|message|>"},+ {"text": ["Hi"]},+ {"marker": "<|end|>"},+ {"marker": "<|start|>"},+ {"text": ["assistant"]},+ {"marker": "<|channel|>"},+ {"text": ["final"]},+ {"marker": "<|message|>"},+ {"text": ["Hello", "!"]},+ {"marker": "<|end|>"}+ ]}"#,+ )),+ reduction: Some(suite.expect_reduction(+ r#"{"sections": [+ {"group": {"name": "message", "open": "<|start|>", "close": "<|end|>", "sections": [+ {"group": {"name": "role", "sections": [+ {"frame": {"text": ["user"]}}+ ]}},+ {"group": {"name": "content", "open": "<|message|>", "sections": [+ {"frame": {"text": ["Hi"]}}+ ]}}+ ]}},+ {"group": {"name": "message", "open": "<|start|>", "close": "<|end|>", "sections": [+ {"group": {"name": "role", "sections": [+ {"frame": {"text": ["assistant"]}}+ ]}},+ {"group": {"name": "channel", "open": "<|channel|>", "sections": [+ {"frame": {"text": ["final"]}}+ ]}},+ {"group": {"name": "content", "open": "<|message|>", "sections": [+ {"frame": {"text": ["Hello", "!"]}}+ ]}}+ ]}}+ ]}"#,+ )),+ extraction: suite.expect_extraction(json!([+ {"role": "user", "content": "Hi"},+ {"role": "assistant", "content": [{"type": "$text", "value": "Hello!"}]}+ ])),+ },+ );+}++#[test]+fn test_token_stream_parser_gpt_oss_analysis_response() {+ let suite = gpt_oss_suite();+ let data = TestData {+ prompt: "<|start|>user<|message|>Hi<|end|><|start|>assistant".into(),+ completion: "<|channel|>analysis<|message|>Let me think.<|end|><|start|>assistant<|channel|>final<|message|>Done!<|end|>".into(),+ };++ run_parser_test(+ &suite,+ &data,+ &TestExpectations {+ framing: Some(suite.expect_framing(+ r#"{"sections": [+ {"marker": "<|start|>"},+ {"text": ["user"]},+ {"marker": "<|message|>"},+ {"text": ["Hi"]},+ {"marker": "<|end|>"},+ {"marker": "<|start|>"},+ {"text": ["assistant"]},+ {"marker": "<|channel|>"},+ {"text": ["analysis"]},+ {"marker": "<|message|>"},+ {"text": ["Let", " me", " think", "."]},+ {"marker": "<|end|>"},+ {"marker": "<|start|>"},+ {"text": ["assistant"]},+ {"marker": "<|channel|>"},+ {"text": ["final"]},+ {"marker": "<|message|>"},+ {"text": ["Done", "!"]},+ {"marker": "<|end|>"}+ ]}"#,+ )),+ reduction: Some(suite.expect_reduction(+ r#"{"sections": [+ {"group": {"name": "message", "open": "<|start|>", "close": "<|end|>", "sections": [+ {"group": {"name": "role", "sections": [+ {"frame": {"text": ["user"]}}+ ]}},+ {"group": {"name": "content", "open": "<|message|>", "sections": [+ {"frame": {"text": ["Hi"]}}+ ]}}+ ]}},+ {"group": {"name": "message", "open": "<|start|>", "close": "<|end|>", "sections": [+ {"group": {"name": "role", "sections": [+ {"frame": {"text": ["assistant"]}}+ ]}},+ {"group": {"name": "channel", "open": "<|channel|>", "sections": [+ {"frame": {"text": ["analysis"]}}+ ]}},+ {"group": {"name": "content", "open": "<|message|>", "sections": [+ {"frame": {"text": ["Let", " me", " think", "."]}}+ ]}}+ ]}},+ {"group": {"name": "message", "open": "<|start|>", "close": "<|end|>", "sections": [+ {"group": {"name": "role", "sections": [+ {"frame": {"text": ["assistant"]}}+ ]}},+ {"group": {"name": "channel", "open": "<|channel|>", "sections": [+ {"frame": {"text": ["final"]}}+ ]}},+ {"group": {"name": "content", "open": "<|message|>", "sections": [+ {"frame": {"text": ["Done", "!"]}}+ ]}}+ ]}}+ ]}"#,+ )),+ extraction: suite.expect_extraction(json!([+ {"role": "user", "content": "Hi"},+ {"role": "assistant", "content": [+ {"type": "reasoning", "value": "Let me think."},+ {"type": "$text", "value": "Done!"}+ ]}+ ])),+ },+ );+}++#[test]+fn test_token_stream_parser_gpt_oss_tool_call() {+ let suite = gpt_oss_suite();+ let data = TestData {+ prompt: "<|start|>user<|message|>Hi<|end|><|start|>assistant".into(),+ completion:+ "<|channel|>commentary to=functions.get_weather<|constrain|>json<|message|>{\"city\":\"NYC\"}<|call|>"+ .into(),+ };++ run_parser_test(+ &suite,+ &data,+ &TestExpectations {+ framing: Some(suite.expect_framing(+ r#"{"sections": [+ {"marker": "<|start|>"},+ {"text": ["user"]},+ {"marker": "<|message|>"},+ {"text": ["Hi"]},+ {"marker": "<|end|>"},+ {"marker": "<|start|>"},+ {"text": ["assistant"]},+ {"marker": "<|channel|>"},+ {"text": ["comment", "ary", " to", "=", "functions", ".get", "_weather"]},+ {"marker": "<|constrain|>"},+ {"text": ["json"]},+ {"marker": "<|message|>"},+ {"text": ["{\"", "city", "\":\"", "NY", "C", "\"}"]},+ {"marker": "<|call|>"}+ ]}"#,+ )),+ reduction: Some(suite.expect_reduction(+ r#"{"sections": [+ {"group": {"name": "message", "open": "<|start|>", "close": "<|end|>", "sections": [+ {"group": {"name": "role", "sections": [+ {"frame": {"text": ["user"]}}+ ]}},+ {"group": {"name": "content", "open": "<|message|>", "sections": [+ {"frame": {"text": ["Hi"]}}+ ]}}+ ]}},+ {"group": {"name": "message", "open": "<|start|>", "close": "<|call|>", "sections": [+ {"group": {"name": "role", "sections": [+ {"frame": {"text": ["assistant"]}}+ ]}},+ {"group": {"name": "channel", "open": "<|channel|>", "sections": [+ {"frame": {"text": ["comment", "ary", " to", "=", "functions", ".get", "_weather"]}}+ ]}},+ {"group": {"name": "content_type", "open": "<|constrain|>", "sections": [+ {"frame": {"text": ["json"]}}+ ]}},+ {"group": {"name": "content", "open": "<|message|>", "sections": [+ {"frame": {"text": ["{\"", "city", "\":\"", "NY", "C", "\"}"]}}+ ]}}+ ]}}+ ]}"#,+ )),+ extraction: suite.expect_extraction(json!([+ {"role": "user", "content": "Hi"},+ {"role": "assistant", "content": [+ {"type": "tool_call", "value": {"name": "get_weather", "arguments": {"city": "NYC"}}}+ ]}+ ])),+ },+ );+}++#[test]+fn test_token_stream_parser_gpt_oss_preamble_tool_call() {+ let suite = gpt_oss_suite();+ let data = TestData {+ prompt: "<|start|>user<|message|>Do it<|end|><|start|>assistant".into(),+ completion: "<|channel|>commentary<|message|>Let me plan.<|end|><|start|>assistant<|channel|>commentary to=functions.do_step<|constrain|>json<|message|>{\"step\":1}<|call|>".into(),+ };++ run_parser_test(+ &suite,+ &data,+ &TestExpectations {+ framing: Some(suite.expect_framing(+ r#"{"sections": [+ {"marker": "<|start|>"},+ {"text": ["user"]},+ {"marker": "<|message|>"},+ {"text": ["Do", " it"]},+ {"marker": "<|end|>"},+ {"marker": "<|start|>"},+ {"text": ["assistant"]},+ {"marker": "<|channel|>"},+ {"text": ["comment", "ary"]},+ {"marker": "<|message|>"},+ {"text": ["Let", " me", " plan", "."]},+ {"marker": "<|end|>"},+ {"marker": "<|start|>"},+ {"text": ["assistant"]},+ {"marker": "<|channel|>"},+ {"text": ["comment", "ary", " to", "=", "functions", ".do", "_step"]},+ {"marker": "<|constrain|>"},+ {"text": ["json"]},+ {"marker": "<|message|>"},+ {"text": ["{\"", "step", "\":", "1", "}"]},+ {"marker": "<|call|>"}+ ]}"#,+ )),+ reduction: Some(suite.expect_reduction(+ r#"{"sections": [+ {"group": {"name": "message", "open": "<|start|>", "close": "<|end|>", "sections": [+ {"group": {"name": "role", "sections": [+ {"frame": {"text": ["user"]}}+ ]}},+ {"group": {"name": "content", "open": "<|message|>", "sections": [+ {"frame": {"text": ["Do", " it"]}}+ ]}}+ ]}},+ {"group": {"name": "message", "open": "<|start|>", "close": "<|end|>", "sections": [+ {"group": {"name": "role", "sections": [+ {"frame": {"text": ["assistant"]}}+ ]}},+ {"group": {"name": "channel", "open": "<|channel|>", "sections": [+ {"frame": {"text": ["comment", "ary"]}}+ ]}},+ {"group": {"name": "content", "open": "<|message|>", "sections": [+ {"frame": {"text": ["Let", " me", " plan", "."]}}+ ]}}+ ]}},+ {"group": {"name": "message", "open": "<|start|>", "close": "<|call|>", "sections": [+ {"group": {"name": "role", "sections": [+ {"frame": {"text": ["assistant"]}}+ ]}},+ {"group": {"name": "channel", "open": "<|channel|>", "sections": [+ {"frame": {"text": ["comment", "ary", " to", "=", "functions", ".do", "_step"]}}+ ]}},+ {"group": {"name": "content_type", "open": "<|constrain|>", "sections": [+ {"frame": {"text": ["json"]}}+ ]}},+ {"group": {"name": "content", "open": "<|message|>", "sections": [+ {"frame": {"text": ["{\"", "step", "\":", "1", "}"]}}+ ]}}+ ]}}+ ]}"#,+ )),+ extraction: suite.expect_extraction(json!([+ {"role": "user", "content": "Do it"},+ {"role": "assistant", "content": [+ {"type": "reasoning", "value": "Let me plan."},+ {"type": "tool_call", "value": {"name": "do_step", "arguments": {"step": 1}}}+ ]}+ ])),+ },+ );+}diff --git a/crates/token-stream-parser/tests/test_token_stream_parser_llama3.rs b/crates/token-stream-parser/tests/test_token_stream_parser_llama3.rsnew file mode 100644index 000000000..7af20b6b5--- /dev/null+++ b/crates/token-stream-parser/tests/test_token_stream_parser_llama3.rs@@ -0,0 +1,312 @@+mod helpers;++use helpers::{TestData, TestExpectations, TestSuite, init_tracing_for_tests, run_parser_test};+use serde_json::json;++fn llama3_suite() -> TestSuite {+ init_tracing_for_tests();+ TestSuite::load("llama-3", "meta-llama_Llama-3.2-1B-Instruct")+}++#[test]+fn test_token_stream_parser_llama3_text_response() {+ let suite = llama3_suite();+ let data = TestData {+ prompt: "<|start_header_id|>user<|end_header_id|>\n\nWhat is the weather?<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n".into(),+ completion: "I cannot check the weather for you.<|eot_id|>".into(),+ };++ run_parser_test(+ &suite,+ &data,+ &TestExpectations {+ framing: Some(suite.expect_framing(+ r#"{"sections": [+ {"marker": "<|start_header_id|>"},+ {"text": ["user"]},+ {"marker": "<|end_header_id|>"},+ {"text": ["\n\n", "What", " is", " the", " weather", "?"]},+ {"marker": "<|eot_id|>"},+ {"marker": "<|start_header_id|>"},+ {"text": ["assistant"]},+ {"marker": "<|end_header_id|>"},+ {"text": ["\n\n", "I", " cannot", " check", " the", " weather", " for", " you", "."]},+ {"marker": "<|eot_id|>"}+ ]}"#,+ )),+ reduction: Some(suite.expect_reduction(+ r#"{"sections": [+ {"group": {"name": "message", "open": "<|start_header_id|>", "close": "<|eot_id|>", "sections": [+ {"group": {"name": "role", "sections": [+ {"frame": {"text": ["user"]}}+ ]}},+ {"group": {"name": "content", "open": "<|end_header_id|>", "sections": [+ {"frame": {"text": ["\n\n", "What", " is", " the", " weather", "?"]}}+ ]}}+ ]}},+ {"group": {"name": "message", "open": "<|start_header_id|>", "close": "<|eot_id|>", "sections": [+ {"group": {"name": "role", "sections": [+ {"frame": {"text": ["assistant"]}}+ ]}},+ {"group": {"name": "content", "open": "<|end_header_id|>", "sections": [+ {"frame": {"text": ["\n\n", "I", " cannot", " check", " the", " weather", " for", " you", "."]}}+ ]}}+ ]}}+ ]}"#,+ )),+ extraction: suite.expect_extraction(json!([+ {+ "role": "user",+ "content": [{"type": "$text", "value": "\n\nWhat is the weather?"}]+ },+ {+ "role": "assistant",+ "content": [{"type": "$text", "value": "\n\nI cannot check the weather for you."}]+ }+ ])),+ },+ );+}++#[test]+fn test_token_stream_parser_llama3_tool_call() {+ let suite = llama3_suite();+ let data = TestData {+ prompt: "<|start_header_id|>user<|end_header_id|>\n\nWhat is the temperature?<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n".into(),+ completion: "<|python_tag|>{\"name\": \"get_current_temperature\", \"parameters\": {\"location\": {\"city\": \"London\", \"country\": \"UK\"}, \"unit\": \"celsius\"}}<|eom_id|>".into(),+ };++ run_parser_test(+ &suite,+ &data,+ &TestExpectations {+ framing: Some(suite.expect_framing(r#"{"sections": [+ {"marker": "<|start_header_id|>"},+ {"text": ["user"]},+ {"marker": "<|end_header_id|>"},+ {"text": ["\n\n", "What", " is", " the", " temperature", "?"]},+ {"marker": "<|eot_id|>"},+ {"marker": "<|start_header_id|>"},+ {"text": ["assistant"]},+ {"marker": "<|end_header_id|>"},+ {"text": ["\n\n"]},+ {"marker": "<|python_tag|>"},+ {"text": ["{\"", "name", "\":", " \"", "get", "_current", "_temperature", "\",", " \"", "parameters", "\":", " {\"", "location", "\":", " {\"", "city", "\":", " \"", "London", "\",", " \"", "country", "\":", " \"", "UK", "\"},", " \"", "unit", "\":", " \"", "c", "elsius", "\"}}"]},+ {"marker": "<|eom_id|>"}+ ]}"#)),+ reduction: Some(suite.expect_reduction(r#"{"sections": [+ {"group": {"name": "message", "open": "<|start_header_id|>", "close": "<|eot_id|>", "sections": [+ {"group": {"name": "role", "sections": [+ {"frame": {"text": ["user"]}}+ ]}},+ {"group": {"name": "content", "open": "<|end_header_id|>", "sections": [+ {"frame": {"text": ["\n\n", "What", " is", " the", " temperature", "?"]}}+ ]}}+ ]}},+ {"group": {"name": "message", "open": "<|start_header_id|>", "close": "<|eom_id|>", "sections": [+ {"group": {"name": "role", "sections": [+ {"frame": {"text": ["assistant"]}}+ ]}},+ {"group": {"name": "content", "open": "<|end_header_id|>", "sections": [+ {"frame": {"text": ["\n\n"]}},+ {"group": {"name": "tool_call", "open": "<|python_tag|>", "sections": [+ {"frame": {"text": ["{\"", "name", "\":", " \"", "get", "_current", "_temperature", "\",", " \"", "parameters", "\":", " {\"", "location", "\":", " {\"", "city", "\":", " \"", "London", "\",", " \"", "country", "\":", " \"", "UK", "\"},", " \"", "unit", "\":", " \"", "c", "elsius", "\"}}"]}}+ ]}}+ ]}}+ ]}}+ ]}"#)),+ extraction: suite.expect_extraction(json!([+ {+ "role": "user",+ "content": [{"type": "$text", "value": "\n\nWhat is the temperature?"}]+ },+ {+ "role": "assistant",+ "content": [+ {"type": "$text", "value": "\n\n"},+ {"type": "tool_call", "value": {"name": "get_current_temperature", "arguments": {"location": {"city": "London", "country": "UK"}, "unit": "celsius"}}}+ ]+ }+ ])),+ },+ );+}++#[test]+fn test_token_stream_parser_llama3_multiple_tool_calls() {+ let suite = llama3_suite();+ let data = TestData {+ prompt: "<|start_header_id|>user<|end_header_id|>\n\nCompare temps<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n".into(),+ completion: "<|python_tag|>{\"name\": \"get_temp\", \"parameters\": {\"city\": \"London\"}}; {\"name\": \"get_temp\", \"parameters\": {\"city\": \"NYC\"}}<|eom_id|>".into(),+ };++ run_parser_test(+ &suite,+ &data,+ &TestExpectations {+ framing: Some(suite.expect_framing(r#"{"sections": [+ {"marker": "<|start_header_id|>"},+ {"text": ["user"]},+ {"marker": "<|end_header_id|>"},+ {"text": ["\n\n", "Compare", " temps"]},+ {"marker": "<|eot_id|>"},+ {"marker": "<|start_header_id|>"},+ {"text": ["assistant"]},+ {"marker": "<|end_header_id|>"},+ {"text": ["\n\n"]},+ {"marker": "<|python_tag|>"},+ {"text": ["{\"", "name", "\":", " \"", "get", "_temp", "\",", " \"", "parameters", "\":", " {\"", "city", "\":", " \"", "London", "\"}}", ";", " {\"", "name", "\":", " \"", "get", "_temp", "\",", " \"", "parameters", "\":", " {\"", "city", "\":", " \"", "NY", "C", "\"}}"]},+ {"marker": "<|eom_id|>"}+ ]}"#)),+ reduction: Some(suite.expect_reduction(r#"{"sections": [+ {"group": {"name": "message", "open": "<|start_header_id|>", "close": "<|eot_id|>", "sections": [+ {"group": {"name": "role", "sections": [+ {"frame": {"text": ["user"]}}+ ]}},+ {"group": {"name": "content", "open": "<|end_header_id|>", "sections": [+ {"frame": {"text": ["\n\n", "Compare", " temps"]}}+ ]}}+ ]}},+ {"group": {"name": "message", "open": "<|start_header_id|>", "close": "<|eom_id|>", "sections": [+ {"group": {"name": "role", "sections": [+ {"frame": {"text": ["assistant"]}}+ ]}},+ {"group": {"name": "content", "open": "<|end_header_id|>", "sections": [+ {"frame": {"text": ["\n\n"]}},+ {"group": {"name": "tool_call", "open": "<|python_tag|>", "sections": [+ {"frame": {"text": ["{\"", "name", "\":", " \"", "get", "_temp", "\",", " \"", "parameters", "\":", " {\"", "city", "\":", " \"", "London", "\"}}", ";", " {\"", "name", "\":", " \"", "get", "_temp", "\",", " \"", "parameters", "\":", " {\"", "city", "\":", " \"", "NY", "C", "\"}}"]}}+ ]}}+ ]}}+ ]}}+ ]}"#)),+ extraction: suite.expect_extraction(json!([+ {"role": "user", "content": [{"type": "$text", "value": "\n\nCompare temps"}]},+ {"role": "assistant", "content": [+ {"type": "$text", "value": "\n\n"},+ {"type": "tool_call", "value": {"name": "get_temp", "arguments": {"city": "London"}}},+ {"type": "tool_call", "value": {"name": "get_temp", "arguments": {"city": "NYC"}}}+ ]}+ ])),+ },+ );+}++#[test]+fn test_token_stream_parser_llama3_builtin_tool_call() {+ let suite = llama3_suite();+ let data = TestData {+ prompt: "<|start_header_id|>user<|end_header_id|>\n\nWeather?<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n".into(),+ completion: "<|python_tag|>brave_search.call(query=\"weather london\")<|eom_id|>".into(),+ };++ run_parser_test(+ &suite,+ &data,+ &TestExpectations {+ framing: Some(suite.expect_framing(r#"{"sections": [+ {"marker": "<|start_header_id|>"},+ {"text": ["user"]},+ {"marker": "<|end_header_id|>"},+ {"text": ["\n\n", "Weather", "?"]},+ {"marker": "<|eot_id|>"},+ {"marker": "<|start_header_id|>"},+ {"text": ["assistant"]},+ {"marker": "<|end_header_id|>"},+ {"text": ["\n\n"]},+ {"marker": "<|python_tag|>"},+ {"text": ["br", "ave", "_search", ".call", "(query", "=\"", "weather", " london", "\")"]},+ {"marker": "<|eom_id|>"}+ ]}"#)),+ reduction: Some(suite.expect_reduction(r#"{"sections": [+ {"group": {"name": "message", "open": "<|start_header_id|>", "close": "<|eot_id|>", "sections": [+ {"group": {"name": "role", "sections": [+ {"frame": {"text": ["user"]}}+ ]}},+ {"group": {"name": "content", "open": "<|end_header_id|>", "sections": [+ {"frame": {"text": ["\n\n", "Weather", "?"]}}+ ]}}+ ]}},+ {"group": {"name": "message", "open": "<|start_header_id|>", "close": "<|eom_id|>", "sections": [+ {"group": {"name": "role", "sections": [+ {"frame": {"text": ["assistant"]}}+ ]}},+ {"group": {"name": "content", "open": "<|end_header_id|>", "sections": [+ {"frame": {"text": ["\n\n"]}},+ {"group": {"name": "tool_call", "open": "<|python_tag|>", "sections": [+ {"frame": {"text": ["br", "ave", "_search", ".call", "(query", "=\"", "weather", " london", "\")"]}}+ ]}}+ ]}}+ ]}}+ ]}"#)),+ extraction: suite.expect_extraction(json!([+ {"role": "user", "content": [{"type": "$text", "value": "\n\nWeather?"}]},+ {"role": "assistant", "content": [+ {"type": "$text", "value": "\n\n"},+ {"type": "tool_call", "value": {"name": "brave_search", "arguments": {"query": "weather london"}}}+ ]}+ ])),+ },+ );+}++#[test]+fn test_token_stream_parser_llama3_code_interpreter() {+ let suite = llama3_suite();+ let data = TestData {+ prompt: "<|start_header_id|>user<|end_header_id|>\n\nCalculate<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n".into(),+ completion: "<|python_tag|>print(2 + 2)<|eom_id|>".into(),+ };++ run_parser_test(+ &suite,+ &data,+ &TestExpectations {+ framing: Some(suite.expect_framing(+ r#"{"sections": [+ {"marker": "<|start_header_id|>"},+ {"text": ["user"]},+ {"marker": "<|end_header_id|>"},+ {"text": ["\n\n", "Calculate"]},+ {"marker": "<|eot_id|>"},+ {"marker": "<|start_header_id|>"},+ {"text": ["assistant"]},+ {"marker": "<|end_header_id|>"},+ {"text": ["\n\n"]},+ {"marker": "<|python_tag|>"},+ {"text": ["print", "(", "2", " +", " ", "2", ")"]},+ {"marker": "<|eom_id|>"}+ ]}"#,+ )),+ reduction: Some(suite.expect_reduction(+ r#"{"sections": [+ {"group": {"name": "message", "open": "<|start_header_id|>", "close": "<|eot_id|>", "sections": [+ {"group": {"name": "role", "sections": [+ {"frame": {"text": ["user"]}}+ ]}},+ {"group": {"name": "content", "open": "<|end_header_id|>", "sections": [+ {"frame": {"text": ["\n\n", "Calculate"]}}+ ]}}+ ]}},+ {"group": {"name": "message", "open": "<|start_header_id|>", "close": "<|eom_id|>", "sections": [+ {"group": {"name": "role", "sections": [+ {"frame": {"text": ["assistant"]}}+ ]}},+ {"group": {"name": "content", "open": "<|end_header_id|>", "sections": [+ {"frame": {"text": ["\n\n"]}},+ {"group": {"name": "tool_call", "open": "<|python_tag|>", "sections": [+ {"frame": {"text": ["print", "(", "2", " +", " ", "2", ")"]}}+ ]}}+ ]}}+ ]}}+ ]}"#,+ )),+ extraction: suite.expect_extraction(json!([+ {"role": "user", "content": [{"type": "$text", "value": "\n\nCalculate"}]},+ {"role": "assistant", "content": [+ {"type": "$text", "value": "\n\n"},+ {"type": "tool_call", "value": {"name": "code_interpreter", "arguments": {"code": "print(2 + 2)"}}}+ ]}+ ])),+ },+ );+}diff --git a/crates/token-stream-parser/tests/test_token_stream_parser_qwen3.rs b/crates/token-stream-parser/tests/test_token_stream_parser_qwen3.rsnew file mode 100644index 000000000..6d4625d76--- /dev/null+++ b/crates/token-stream-parser/tests/test_token_stream_parser_qwen3.rs@@ -0,0 +1,258 @@+mod helpers;++use helpers::{TestData, TestExpectations, TestSuite, init_tracing_for_tests, run_parser_test};+use serde_json::json;++fn qwen3_suite() -> TestSuite {+ init_tracing_for_tests();+ TestSuite::load("qwen3", "Qwen_Qwen3-0.6B")+}++#[test]+fn test_token_stream_parser_qwen3_text_response() {+ let suite = qwen3_suite();+ let data = TestData {+ prompt: "<|im_start|>user\nHello<|im_end|>\n<|im_start|>assistant\n".into(),+ completion: "Hi!<|im_end|>".into(),+ };++ run_parser_test(+ &suite,+ &data,+ &TestExpectations {+ framing: Some(suite.expect_framing(+ r#"{"sections": [+ {"marker": "<|im_start|>"},+ {"text": ["user", "\n", "Hello"]},+ {"marker": "<|im_end|>"},+ {"text": ["\n"]},+ {"marker": "<|im_start|>"},+ {"text": ["assistant", "\n", "Hi", "!"]},+ {"marker": "<|im_end|>"}+ ]}"#,+ )),+ reduction: Some(suite.expect_reduction(+ r#"{"sections": [+ {"group": {"name": "message", "open": "<|im_start|>", "close": "<|im_end|>", "sections": [+ {"group": {"name": "role", "sections": [+ {"frame": {"text": ["user"]}}+ ]}},+ {"group": {"name": "content", "sections": [+ {"frame": {"text": ["\n", "Hello"]}}+ ]}}+ ]}},+ {"frame": {"text": ["\n"]}},+ {"group": {"name": "message", "open": "<|im_start|>", "close": "<|im_end|>", "sections": [+ {"group": {"name": "role", "sections": [+ {"frame": {"text": ["assistant"]}}+ ]}},+ {"group": {"name": "content", "sections": [+ {"frame": {"text": ["\n", "Hi", "!"]}}+ ]}}+ ]}}+ ]}"#,+ )),+ extraction: suite.expect_extraction(json!([+ {"role": "user", "content": [{"type": "$text", "value": "\nHello"}]},+ {"role": "assistant", "content": [{"type": "$text", "value": "\nHi!"}]}+ ])),+ },+ );+}++#[test]+fn test_token_stream_parser_qwen3_thinking_response() {+ let suite = qwen3_suite();+ let data = TestData {+ prompt: "<|im_start|>user\nHi<|im_end|>\n<|im_start|>assistant\n".into(),+ completion: "<think>\nLet me think.\n</think>\n\nHello!<|im_end|>".into(),+ };++ run_parser_test(+ &suite,+ &data,+ &TestExpectations {+ framing: Some(suite.expect_framing(+ r#"{"sections": [+ {"marker": "<|im_start|>"},+ {"text": ["user", "\n", "Hi"]},+ {"marker": "<|im_end|>"},+ {"text": ["\n"]},+ {"marker": "<|im_start|>"},+ {"text": ["assistant", "\n"]},+ {"marker": "<think>"},+ {"text": ["\n", "Let", " me", " think", ".\n"]},+ {"marker": "</think>"},+ {"text": ["\n\n", "Hello", "!"]},+ {"marker": "<|im_end|>"}+ ]}"#,+ )),+ reduction: Some(suite.expect_reduction(+ r#"{"sections": [+ {"group": {"name": "message", "open": "<|im_start|>", "close": "<|im_end|>", "sections": [+ {"group": {"name": "role", "sections": [+ {"frame": {"text": ["user"]}}+ ]}},+ {"group": {"name": "content", "sections": [+ {"frame": {"text": ["\n", "Hi"]}}+ ]}}+ ]}},+ {"frame": {"text": ["\n"]}},+ {"group": {"name": "message", "open": "<|im_start|>", "close": "<|im_end|>", "sections": [+ {"group": {"name": "role", "sections": [+ {"frame": {"text": ["assistant"]}}+ ]}},+ {"group": {"name": "content", "sections": [+ {"frame": {"text": ["\n"]}},+ {"group": {"name": "reasoning", "open": "<think>", "close": "</think>", "sections": [+ {"frame": {"text": ["\n", "Let", " me", " think", ".\n"]}}+ ]}},+ {"frame": {"text": ["\n\n", "Hello", "!"]}}+ ]}}+ ]}}+ ]}"#,+ )),+ extraction: suite.expect_extraction(json!([+ {"role": "user", "content": [{"type": "$text", "value": "\nHi"}]},+ {"role": "assistant", "content": [+ {"type": "$text", "value": "\n"},+ {"type": "reasoning", "value": "\nLet me think.\n"},+ {"type": "$text", "value": "\n\nHello!"}+ ]}+ ])),+ },+ );+}++#[test]+fn test_token_stream_parser_qwen3_tool_call() {+ let suite = qwen3_suite();+ let data = TestData {+ prompt: "<|im_start|>user\nWeather?<|im_end|>\n<|im_start|>assistant\n".into(),+ completion: "<tool_call>\n{\"name\": \"get_temp\"}\n</tool_call><|im_end|>".into(),+ };++ run_parser_test(+ &suite,+ &data,+ &TestExpectations {+ framing: Some(suite.expect_framing(+ r#"{"sections": [+ {"marker": "<|im_start|>"},+ {"text": ["user", "\n", "Weather", "?"]},+ {"marker": "<|im_end|>"},+ {"text": ["\n"]},+ {"marker": "<|im_start|>"},+ {"text": ["assistant", "\n"]},+ {"marker": "<tool_call>"},+ {"text": ["\n", "{\"", "name", "\":", " \"", "get", "_temp", "\"}\n"]},+ {"marker": "</tool_call>"},+ {"marker": "<|im_end|>"}+ ]}"#,+ )),+ reduction: Some(suite.expect_reduction(+ r#"{"sections": [+ {"group": {"name": "message", "open": "<|im_start|>", "close": "<|im_end|>", "sections": [+ {"group": {"name": "role", "sections": [+ {"frame": {"text": ["user"]}}+ ]}},+ {"group": {"name": "content", "sections": [+ {"frame": {"text": ["\n", "Weather", "?"]}}+ ]}}+ ]}},+ {"frame": {"text": ["\n"]}},+ {"group": {"name": "message", "open": "<|im_start|>", "close": "<|im_end|>", "sections": [+ {"group": {"name": "role", "sections": [+ {"frame": {"text": ["assistant"]}}+ ]}},+ {"group": {"name": "content", "sections": [+ {"frame": {"text": ["\n"]}},+ {"group": {"name": "tool_call", "open": "<tool_call>", "close": "</tool_call>", "sections": [+ {"frame": {"text": ["\n", "{\"", "name", "\":", " \"", "get", "_temp", "\"}\n"]}}+ ]}}+ ]}}+ ]}}+ ]}"#,+ )),+ extraction: suite.expect_extraction(json!([+ {"role": "user", "content": [{"type": "$text", "value": "\nWeather?"}]},+ {"role": "assistant", "content": [+ {"type": "$text", "value": "\n"},+ {"type": "tool_call", "value": {"name": "get_temp"}}+ ]}+ ])),+ },+ );+}++#[test]+fn test_token_stream_parser_qwen3_thinking_tool_call() {+ let suite = qwen3_suite();+ let data = TestData {+ prompt: "<|im_start|>user\nTemp?<|im_end|>\n<|im_start|>assistant\n".into(),+ completion: "<think>\nNeed tool.\n</think>\n\n<tool_call>\n{\"name\": \"get_temp\"}\n</tool_call><|im_end|>"+ .into(),+ };++ run_parser_test(+ &suite,+ &data,+ &TestExpectations {+ framing: Some(suite.expect_framing(+ r#"{"sections": [+ {"marker": "<|im_start|>"},+ {"text": ["user", "\n", "Temp", "?"]},+ {"marker": "<|im_end|>"},+ {"text": ["\n"]},+ {"marker": "<|im_start|>"},+ {"text": ["assistant", "\n"]},+ {"marker": "<think>"},+ {"text": ["\n", "Need", " tool", ".\n"]},+ {"marker": "</think>"},+ {"text": ["\n\n"]},+ {"marker": "<tool_call>"},+ {"text": ["\n", "{\"", "name", "\":", " \"", "get", "_temp", "\"}\n"]},+ {"marker": "</tool_call>"},+ {"marker": "<|im_end|>"}+ ]}"#,+ )),+ reduction: Some(suite.expect_reduction(+ r#"{"sections": [+ {"group": {"name": "message", "open": "<|im_start|>", "close": "<|im_end|>", "sections": [+ {"group": {"name": "role", "sections": [+ {"frame": {"text": ["user"]}}+ ]}},+ {"group": {"name": "content", "sections": [+ {"frame": {"text": ["\n", "Temp", "?"]}}+ ]}}+ ]}},+ {"frame": {"text": ["\n"]}},+ {"group": {"name": "message", "open": "<|im_start|>", "close": "<|im_end|>", "sections": [+ {"group": {"name": "role", "sections": [+ {"frame": {"text": ["assistant"]}}+ ]}},+ {"group": {"name": "content", "sections": [+ {"frame": {"text": ["\n"]}},+ {"group": {"name": "reasoning", "open": "<think>", "close": "</think>", "sections": [+ {"frame": {"text": ["\n", "Need", " tool", ".\n"]}}+ ]}},+ {"frame": {"text": ["\n\n"]}},+ {"group": {"name": "tool_call", "open": "<tool_call>", "close": "</tool_call>", "sections": [+ {"frame": {"text": ["\n", "{\"", "name", "\":", " \"", "get", "_temp", "\"}\n"]}}+ ]}}+ ]}}+ ]}}+ ]}"#,+ )),+ extraction: suite.expect_extraction(json!([+ {"role": "user", "content": [{"type": "$text", "value": "\nTemp?"}]},+ {"role": "assistant", "content": [+ {"type": "$text", "value": "\n"},+ {"type": "reasoning", "value": "\nNeed tool.\n"},+ {"type": "$text", "value": "\n\n"},+ {"type": "tool_call", "value": {"name": "get_temp"}}+ ]}+ ])),+ },+ );+}diff --git a/crates/uzu/Cargo.toml b/crates/uzu/Cargo.tomlindex 54a79f861..202d93560 100644--- a/crates/uzu/Cargo.toml+++ b/crates/uzu/Cargo.toml@@ -6,108 +6,22 @@ rust-version.workspace = truelicense.workspace = trueauthors.workspace = truerepository.workspace = true-build = "build/main.rs"[dependencies]-dsl.workspace = true-half.workspace = true-ndarray.workspace = true-serde.workspace = true-serde_json.workspace = true-thiserror.workspace = true-tokenizers.workspace = true-rangemap.workspace = true-bytemuck.workspace = true-zerocopy = { workspace = true, features = ["derive"] }-xxhash-rust = { workspace = true, features = ["xxh3"] }-memmap2.workspace = true-num-traits.workspace = true-regex.workspace = true-libc.workspace = true-minijinja.workspace = true-minijinja-contrib.workspace = true-rand.workspace = true-sysinfo.workspace = true-itertools.workspace = true-schemars.workspace = true-rustix.workspace = true--# metal on macos requires objc2, bytesize, metal-[target.'cfg(any(target_os = "macos", target_os = "ios", target_os = "tvos", target_os = "visionos"))'.dependencies]-objc2 = { workspace = true, optional = true }-objc2-foundation = { workspace = true, optional = true }-bytesize = { workspace = true, optional = true }-metal = { workspace = true, optional = true }--# grammar on non-wasm requires xgrammar-[target.'cfg(not(target_arch = "wasm32"))'.dependencies]-xgrammar = { workspace = true, optional = true }--[dev-dependencies]-test-tag.workspace = true-proptest.workspace = true-criterion.workspace = true-criterion-macro.workspace = true-rand_distr.workspace = true-is_close.workspace = true-serde_json5.workspace = true-schemars.workspace = true-comfy-table.workspace = true-indicatif.workspace = true--[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]-criterion = { workspace = true, default-features = true }-proptest = { workspace = true, default-features = true }+backend-uzu.workspace = true-[build-dependencies]-anyhow.workspace = true-async-trait.workspace = true-bindgen.workspace = true-walkdir.workspace = true-depfile.workspace = true-tempfile.workspace = true+[target.'cfg(not(target_family = "wasm"))'.dependencies]+nagare.workspace = trueserde.workspace = true-serde_json = { workspace = true, features = ["unbounded_depth"] }-futures.workspace = true+thiserror.workspace = truetokio.workspace = true-blake3.workspace = true-quote.workspace = true-proc-macro2.workspace = true-syn.workspace = true-prettyplease.workspace = true-itertools.workspace = true-cbindgen.workspace = true-rhai.workspace = true+tokio-stream.workspace = true-# metal on macos requires clang-ast for dsl build-[target.'cfg(any(target_os = "macos", target_os = "ios", target_os = "tvos", target_os = "visionos"))'.build-dependencies]-clang-ast = { workspace = true, optional = true }+[dev-dependencies]+dotenvy.workspace = true[features]default = ["metal", "grammar"]--metal = [- "dep:clang-ast",- "dep:objc2",- "dep:objc2-foundation",- "dep:bytesize",- "dep:metal",-]-grammar = ["dep:xgrammar"]-tracing = []--[[test]]-name = "integration"-path = "tests/integration/mod.rs"--[[test]]-name = "kernel"-path = "tests/unit/kernel/test_entry.rs"--[[bench]]-name = "kernel"-path = "tests/unit/kernel/bench_entry.rs"--[[test]]-name = "performance"-path = "tests/performance/mod.rs"+metal = ["backend-uzu/metal"]+grammar = ["backend-uzu/grammar"]+tracing = ["backend-uzu/tracing"]diff --git a/crates/uzu/src/engine/config.rs b/crates/uzu/src/engine/config.rsnew file mode 100644index 000000000..df2b6b75c--- /dev/null+++ b/crates/uzu/src/engine/config.rs@@ -0,0 +1,47 @@+use std::env;++use serde::{Deserialize, Serialize};++#[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]+#[serde(rename_all = "snake_case")]+pub struct Config {+ pub mirai_api_key: Option<String>,+ pub huggingface_api_key: Option<String>,+ pub openai_api_key: Option<String>,+}++impl Default for Config {+ fn default() -> Self {+ Self {+ mirai_api_key: env::var("MIRAI_API_KEY").ok(),+ huggingface_api_key: env::var("HF_TOKEN").ok(),+ openai_api_key: env::var("OPENAI_API_KEY").ok(),+ }+ }+}++impl Config {+ pub fn with_mirai_api_key(+ mut self,+ mirai_api_key: String,+ ) -> Self {+ self.mirai_api_key = Some(mirai_api_key);+ self+ }++ pub fn with_huggingface_api_key(+ mut self,+ huggingface_api_key: String,+ ) -> Self {+ self.huggingface_api_key = Some(huggingface_api_key);+ self+ }++ pub fn with_openai_api_key(+ mut self,+ openai_api_key: String,+ ) -> Self {+ self.openai_api_key = Some(openai_api_key);+ self+ }+}diff --git a/crates/uzu/src/engine/downloader.rs b/crates/uzu/src/engine/downloader.rsnew file mode 100644index 000000000..f1eb7b6aa--- /dev/null+++ b/crates/uzu/src/engine/downloader.rs@@ -0,0 +1,127 @@+use nagare::{+ helpers::SharedAccess,+ storage::{+ Error as StorageError, Storage,+ types::{DownloadPhase, DownloadState},+ },+};+use tokio_stream::{StreamExt, wrappers::BroadcastStream};++use crate::engine::Error;++pub struct Downloader {+ identifier: String,+ storage: SharedAccess<Storage>,+}++impl Downloader {+ pub(crate) fn new(+ identifier: String,+ storage: SharedAccess<Storage>,+ ) -> Self {+ Self {+ identifier,+ storage,+ }+ }++ pub async fn state(&self) -> Option<DownloadState> {+ self.storage.lock().await.state(&self.identifier).await+ }++ pub async fn resume(&self) -> Result<(), Error> {+ let state = self.state().await.ok_or(StorageError::ItemNotFound {+ identifier: self.identifier.clone(),+ })?;+ let result = match state.phase {+ DownloadPhase::Downloading | DownloadPhase::Downloaded => Ok(()),+ DownloadPhase::NotDownloaded | DownloadPhase::Paused | DownloadPhase::Locked => {+ Ok(self.storage.lock().await.download(&self.identifier).await?)+ },+ DownloadPhase::Error(_) => {+ let storage = self.storage.lock().await;+ storage.delete(&self.identifier).await?;+ Ok(storage.download(&self.identifier).await?)+ },+ };+ result+ }++ pub async fn pause(&self) -> Result<(), Error> {+ Ok(self.storage.lock().await.pause(&self.identifier).await?)+ }++ pub async fn delete(&self) -> Result<(), Error> {+ Ok(self.storage.lock().await.delete(&self.identifier).await?)+ }++ pub async fn progress(&self) -> Option<Stream> {+ let identifier = self.identifier.clone();+ let Some(state) = self.state().await else {+ return None;+ };+ if matches!(state.phase, DownloadPhase::Downloaded) {+ return None;+ }+ let stream = self.storage.lock().await.subscribe();+ Some(Stream::new(identifier, stream))+ }+}++pub struct Stream {+ identifier: String,+ stream: SharedAccess<Option<BroadcastStream<(String, DownloadState)>>>,+}++impl Stream {+ pub(crate) fn new(+ identifier: String,+ stream: BroadcastStream<(String, DownloadState)>,+ ) -> Self {+ Self {+ identifier,+ stream: SharedAccess::new(Some(stream)),+ }+ }++ pub async fn next(&self) -> Option<Update> {+ let mut stream_guard = self.stream.lock().await;+ let stream = stream_guard.as_mut()?;+ while let Some(result) = stream.next().await {+ if let Ok((identifier, state)) = result {+ if identifier == self.identifier {+ let update = Update {+ bytes_total: state.total_bytes,+ bytes_downloaded: state.downloaded_bytes,+ };+ match state.phase {+ DownloadPhase::Downloading | DownloadPhase::Locked => {},+ DownloadPhase::NotDownloaded+ | DownloadPhase::Downloaded+ | DownloadPhase::Error(_)+ | DownloadPhase::Paused => {+ *stream_guard = None;+ },+ }+ return Some(update);+ }+ }+ }+ None+ }+}++pub struct Update {+ pub bytes_total: u64,+ pub bytes_downloaded: u64,+}++impl Update {+ pub fn progress(&self) -> f32 {+ if self.bytes_total == 0 {+ 0.0+ } else {+ self.bytes_downloaded as f32 / self.bytes_total as f32+ }+ }+}diff --git a/crates/uzu/src/engine/error.rs b/crates/uzu/src/engine/error.rsnew file mode 100644index 000000000..ebb27c29d--- /dev/null+++ b/crates/uzu/src/engine/error.rs@@ -0,0 +1,14 @@+#[derive(Debug, thiserror::Error)]+#[non_exhaustive]+pub enum Error {+ #[error("Tokio error: {message}")]+ TokioError {+ message: String,+ },+ #[error(transparent)]+ Device(#[from] nagare::device::Error),+ #[error(transparent)]+ Storage(#[from] nagare::storage::Error),+ #[error(transparent)]+ Registry(#[from] nagare::registry::Error),+}diff --git a/crates/uzu/src/engine/mod.rs b/crates/uzu/src/engine/mod.rsnew file mode 100644index 000000000..6578e21bc--- /dev/null+++ b/crates/uzu/src/engine/mod.rs@@ -0,0 +1,100 @@+mod config;+mod downloader;+mod error;++pub use config::Config;+pub use downloader::Downloader;+pub use error::Error;+use nagare::{+ device::Device,+ helpers::SharedAccess,+ registry::{CachedRegistry, MergedRegistry, Registry, types::Model},+ storage::{Config as StorageConfig, Storage},+};+use tokio::runtime::Handle;++pub struct Engine {+ registry: SharedAccess<MergedRegistry>,+ storage: SharedAccess<Storage>,+}++impl Engine {+ pub async fn new(_config: Config) -> Result<Self, Error> {+ let tokio_handle = Handle::try_current().map_err(|error| Error::TokioError {+ message: error.to_string(),+ })?;++ let device = Device::new()?;+ let registry = SharedAccess::new(MergedRegistry::new(vec![]));+ let storage = SharedAccess::new(+ Storage::new(tokio_handle.clone(), StorageConfig::new(device.clone(), None, "mirai".to_string())).await?,+ );++ let engine = Self {+ storage,+ registry,+ };++ // if let Some(openai_api_key) = config.openai_api_key {+ // let openai_registry = OpenAIRegistry::new(OpenAIConfig::openai(openai_api_key))?;+ // engine.add_registry(Box::new(openai_registry)).await?;+ // }++ Ok(engine)+ }+}++impl Engine {+ pub async fn add_registry(+ &self,+ registry: Box<dyn Registry>,+ ) -> Result<(), Error> {+ self.registry.lock().await.add(Box::new(CachedRegistry::new(registry)))?;+ self.handle_registry_resfresh().await?;+ Ok(())+ }++ pub async fn remove_registry(+ &self,+ registry_identifier: &str,+ ) -> Result<(), Error> {+ self.registry.lock().await.remove(registry_identifier)?;+ self.handle_registry_resfresh().await?;+ Ok(())+ }+}++impl Engine {+ pub async fn models(&self) -> Result<Vec<Model>, Error> {+ self.registry.lock().await.models().await.map_err(Error::from)+ }++ pub async fn model_by_identifier(+ &self,+ identifier: &str,+ ) -> Result<Option<Model>, Error> {+ self.registry.lock().await.model_by_identifier(identifier).await.map_err(Error::from)+ }++ pub async fn model_by_repo_id(+ &self,+ repo_id: &str,+ ) -> Result<Option<Model>, Error> {+ self.registry.lock().await.model_by_repo_id(repo_id).await.map_err(Error::from)+ }+}++impl Engine {+ pub fn downloader(+ &self,+ model: &Model,+ ) -> Downloader {+ Downloader::new(model.identifier(), self.storage.clone())+ }++ async fn handle_registry_resfresh(&self) -> Result<(), Error> {+ let models = self.registry.lock().await.models().await?;+ self.storage.lock().await.refresh(models).await?;+ Ok(())+ }+}diff --git a/crates/uzu/src/lib.rs b/crates/uzu/src/lib.rsindex c82390511..5a6e15633 100644--- a/crates/uzu/src/lib.rs+++ b/crates/uzu/src/lib.rs@@ -1,32 +1,4 @@-// needed for tests to resolve `uzu::` imports-extern crate self as uzu;+#[cfg(not(target_family = "wasm"))]+pub mod engine;-mod array;-mod audio;-mod classifier;-mod config;-mod data_type;-mod encodable_block;-mod forward_pass;-mod language_model;-mod parameters;-mod speculators;-#[cfg(feature = "tracing")]-mod tracer;-mod trie;-mod utils;--pub mod backends;-pub mod prelude;-pub mod session;--pub use array::{Array, ArrayContextExt};-#[cfg(metal_backend)]-pub use audio::{NanoCodecFsqRuntime, NanoCodecFsqRuntimeConfig};-pub use config::ConfigDataType;-pub use data_type::{ArrayElement, DataType};-pub use language_model::gumbel::{gumbel_float, revidx};-pub use parameters::{ParameterLoader, read_safetensors_metadata};-#[cfg(feature = "tracing")]-pub use tracer::TraceValidator;-pub use utils::VERSION;+pub use backend_uzu::*;diff --git a/crates/uzu/tests/test_engine.rs b/crates/uzu/tests/test_engine.rsnew file mode 100644index 000000000..6a0454669--- /dev/null+++ b/crates/uzu/tests/test_engine.rs@@ -0,0 +1,18 @@+#[cfg(not(target_family = "wasm"))]+use uzu::engine::{Config, Engine};++#[cfg(not(target_family = "wasm"))]+#[tokio::test]+async fn test_engine() {+ dotenvy::dotenv().ok();++ let config = Config::default();+ let engine = Engine::new(config).await.unwrap();++ let models = engine.models().await.unwrap();+ for model in models {+ let identifier = model.identifier();+ let download_state = engine.downloader(&model).state().await.unwrap();+ println!("{}: {:?}", identifier, download_state.phase);+ }+}diff --git a/deny.toml b/deny.tomlindex 7a48cd900..2c14d8148 100644--- a/deny.toml+++ b/deny.toml@@ -3,11 +3,13 @@ ignore = ["RUSTSEC-2024-0370", # proc-macro-error is unmaintained"RUSTSEC-2024-0436", # paste - no longer maintained"RUSTSEC-2024-0375", # `atty` is unmaintained+ "RUSTSEC-2025-0057", # fxhash - no longer maintained][licenses]allow = ["MIT",+ "MIT-0","BSD-2-Clause","BSD-3-Clause","Apache-2.0",@@ -17,7 +19,8 @@ allow = ["BSL-1.0","CC0-1.0","CDLA-Permissive-2.0",- "Unicode-3.0"+ "Unicode-3.0",+ "NCSA",][bans]diff --git a/scripts/download_test_model.sh b/scripts/download_test_model.shindex 6bfa4d337..4e00155dc 100755--- a/scripts/download_test_model.sh+++ b/scripts/download_test_model.sh@@ -3,8 +3,8 @@set -euo pipefailROOT_PATH="$(cd "$(dirname "$0")/.." && pwd)"-HELPERS_PATH="$ROOT_PATH/tools/helpers"+TOOLS_PATH="$ROOT_PATH/tools"-cd "$HELPERS_PATH"+cd "$TOOLS_PATH"uv sync-uv run python main.py download-model meta-llama/Llama-3.2-1B-Instruct\ No newline at end of file+uv run downloader download meta-llama/Llama-3.2-1B-Instruct\ No newline at end of filediff --git a/tools/.gitignore b/tools/.gitignorenew file mode 100644index 000000000..64d49ae3b--- /dev/null+++ b/tools/.gitignore@@ -0,0 +1,216 @@+# Byte-compiled / optimized / DLL files+__pycache__/+*.py[codz]+*$py.class++# C extensions+*.so++# Distribution / packaging+.Python+build/+develop-eggs/+dist/+downloads/+eggs/+.eggs/+lib/+lib64/+parts/+sdist/+var/+wheels/+share/python-wheels/+*.egg-info/+.installed.cfg+*.egg+MANIFEST++# PyInstaller+# Usually these files are written by a python script from a template+# before PyInstaller builds the exe, so as to inject date/other infos into it.+*.manifest+*.spec++# Installer logs+pip-log.txt+pip-delete-this-directory.txt++# Unit test / coverage reports+htmlcov/+.tox/+.nox/+.coverage+.coverage.*+.cache+nosetests.xml+coverage.xml+*.cover+*.py.cover+.hypothesis/+.pytest_cache/+cover/++# Translations+*.mo+*.pot++# Django stuff:+*.log+local_settings.py+db.sqlite3+db.sqlite3-journal++# Flask stuff:+instance/+.webassets-cache++# Scrapy stuff:+.scrapy++# Sphinx documentation+docs/_build/++# PyBuilder+.pybuilder/+target/++# Jupyter Notebook+.ipynb_checkpoints++# IPython+profile_default/+ipython_config.py++# pyenv+# For a library or package, you might want to ignore these files since the code is+# intended to run in multiple environments; otherwise, check them in:+# .python-version++# pipenv+# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.+# However, in case of collaboration, if having platform-specific dependencies or dependencies+# having no cross-platform support, pipenv may install dependencies that don't work, or not+# install all needed dependencies.+# Pipfile.lock++# UV+# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.+# This is especially recommended for binary packages to ensure reproducibility, and is more+# commonly ignored for libraries.+# uv.lock++# poetry+# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.+# This is especially recommended for binary packages to ensure reproducibility, and is more+# commonly ignored for libraries.+# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control+# poetry.lock+# poetry.toml++# pdm+# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.+# pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.+# https://pdm-project.org/en/latest/usage/project/#working-with-version-control+# pdm.lock+# pdm.toml+.pdm-python+.pdm-build/++# pixi+# Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.+# pixi.lock+# Pixi creates a virtual environment in the .pixi directory, just like venv module creates one+# in the .venv directory. It is recommended not to include this directory in version control.+.pixi++# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm+__pypackages__/++# Celery stuff+celerybeat-schedule+celerybeat.pid++# Redis+*.rdb+*.aof+*.pid++# RabbitMQ+mnesia/+rabbitmq/+rabbitmq-data/++# ActiveMQ+activemq-data/++# SageMath parsed files+*.sage.py++# Environments+.env+.envrc+.venv+env/+venv/+ENV/+env.bak/+venv.bak/++# Spyder project settings+.spyderproject+.spyproject++# Rope project settings+.ropeproject++# mkdocs documentation+/site++# mypy+.mypy_cache/+.dmypy.json+dmypy.json++# Pyre type checker+.pyre/++# pytype static type analyzer+.pytype/++# Cython debug symbols+cython_debug/++# PyCharm+# JetBrains specific template is maintained in a separate JetBrains.gitignore that can+# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore+# and can be added to the global gitignore or merged into this file. For a more nuclear+# option (not recommended) you can uncomment the following to ignore the entire idea folder.+# .idea/++# Abstra+# Abstra is an AI-powered process automation framework.+# Ignore directories containing user credentials, local state, and settings.+# Learn more at https://abstra.io/docs+.abstra/++# Visual Studio Code+# Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore+# that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore+# and can be added to the global gitignore or merged into this file. However, if you prefer,+# you could uncomment the following to ignore the entire vscode folder+# .vscode/++# Ruff stuff:+.ruff_cache/++# PyPI configuration file+.pypirc++# Marimo+marimo/_static/+marimo/_lsp/+__marimo__/++# Streamlit+.streamlit/secrets.toml\ No newline at end of filediff --git a/tools/gpu_trace/.python-version b/tools/.python-versionsimilarity index 100%rename from tools/gpu_trace/.python-versionrename to tools/.python-versiondiff --git a/tools/.vscode/settings.json b/tools/.vscode/settings.jsonnew file mode 100644index 000000000..42aecce7f--- /dev/null+++ b/tools/.vscode/settings.json@@ -0,0 +1,7 @@+{+ "ruff.path": [".venv/bin/ruff"],+ "python.defaultInterpreterPath": ".venv/bin/python",+ "python.testing.pytestArgs": [+ "tests"+ ]+}diff --git a/tools/data_exporter/__init__.py b/tools/data_exporter/__init__.pynew file mode 100644index 000000000..37a9ceb5c--- /dev/null+++ b/tools/data_exporter/__init__.py@@ -0,0 +1,3 @@+__version__ = "0.1.0"++__all__ = []diff --git a/tools/data_exporter/export/__init__.py b/tools/data_exporter/export/__init__.pynew file mode 100644index 000000000..296c0132f--- /dev/null+++ b/tools/data_exporter/export/__init__.py@@ -0,0 +1,6 @@+from data_exporter.export.bundled import export_bundled+from data_exporter.export.configs import export_configs+from data_exporter.export.responses import export_responses+from data_exporter.export.tokenizers import export_tokenizers++__all__ = ["export_bundled", "export_configs", "export_responses", "export_tokenizers"]diff --git a/tools/data_exporter/export/bundled.py b/tools/data_exporter/export/bundled.pynew file mode 100644index 000000000..8a78d036b--- /dev/null+++ b/tools/data_exporter/export/bundled.py@@ -0,0 +1,193 @@+import json+import re+from pathlib import Path++from rich.console import Console+from tokenizers import Tokenizer++from data_exporter.utils import BUNDLED_CONFIGS_PATH, CONFIGS_PATH, TOKENIZERS_PATH, load_registry++__all__ = ["export_bundled"]++BUNDLED_CONFIGS_MAPPING_PATH = BUNDLED_CONFIGS_PATH / "configs.json"+++def load_bundled_configs_mapping() -> list[dict]:+ with open(BUNDLED_CONFIGS_MAPPING_PATH) as file:+ return json.load(file)+++def resolve_hanashi_name(model_encodings: list[dict]) -> str | None:+ for encoding in model_encodings:+ if encoding.get("type") == "hanashi":+ return encoding.get("name")+ return None+++def resolve_token_string(+ tokenizer_config: dict,+ model_config: dict,+ tokenizer: Tokenizer,+ token_key: str,+) -> str | None:+ token = tokenizer_config.get(f"{token_key}_token")+ if isinstance(token, dict):+ token = token["content"]+ if token is not None:+ return token+ token_id = model_config.get(f"{token_key}_token_id")+ if isinstance(token_id, list):+ token_id = token_id[-1] if token_id else None+ if token_id is not None:+ return tokenizer.decode([token_id])+ return None+++def resolve_token_id(tokenizer: Tokenizer, token: str | None) -> int | None:+ if token is None:+ return None+ token_ids = tokenizer.encode(token, add_special_tokens=False).ids+ return token_ids[0] if token_ids else None+++def resolve_stop_token_ids(+ model_config: dict,+ generation_config: dict | None,+ eos_token_id: int | None,+) -> list[int]:+ decoder_eos_token_ids = model_config.get("eos_token_id", [])+ if not isinstance(decoder_eos_token_ids, list):+ decoder_eos_token_ids = [decoder_eos_token_ids]++ generation_eos_token_ids = []+ if generation_config is not None:+ generation_eos_token_ids = generation_config.get("stop_token_ids", [])+ generation_eos_token_id = generation_config.get("eos_token_id")+ if isinstance(generation_eos_token_id, list):+ generation_eos_token_ids += generation_eos_token_id+ elif generation_eos_token_id is not None:+ generation_eos_token_ids.append(generation_eos_token_id)++ all_ids = decoder_eos_token_ids + generation_eos_token_ids + [eos_token_id]+ return sorted(set(all_ids))+++def process_chat_template(template: str) -> str:+ generation_block_tag_regex = re.compile(r"{%-?\s*(?:generation|endgeneration)\s*-?%}")+ return generation_block_tag_regex.sub("", template)+++def process_chat_template_model_specific(template: str, repo_id: str) -> str:+ if repo_id == "HuggingFaceTB/SmolLM3-3B":+ # Fix missing <|im_end|> for no-tools path: move it outside the tools if-block+ template = template.replace(+ '{{- "\\n\\n" -}}\n {{- "<|im_end|>\\n" -}}\n {%- endif -%}\n{%- endif -%}',+ '{{- "\\n\\n" -}}\n {%- endif -%}\n {{- "<|im_end|>\\n" -}}\n{%- endif -%}',+ )+ return template+++def resolve_chat_template(model_path: Path, tokenizer_config: dict) -> str | None:+ template = tokenizer_config.get("chat_template")+ if template is not None:+ return template+ jinja_path = model_path / "chat_template.jinja"+ if jinja_path.exists():+ return jinja_path.read_text()+ chat_template_json = model_path / "chat_template.json"+ if chat_template_json.exists():+ with open(chat_template_json) as file:+ return json.load(file).get("chat_template")+ return None+++def export_bundled(console: Console, err_console: Console) -> None:+ registry = load_registry()+ bundled_mapping = load_bundled_configs_mapping()++ seen_tokens: set[str] = set()+ seen_rendering: set[str] = set()++ for model in registry:+ hanashi_name = resolve_hanashi_name(model.encodings)+ if hanashi_name is None:+ continue++ mapping = next(+ (entry for entry in bundled_mapping if entry["name"] == hanashi_name),+ None,+ )+ if mapping is None:+ err_console.print(f"[red]{model.repo_id}: no bundled mapping for '{hanashi_name}'[/red]")+ continue++ tokens_name = mapping["tokens"]+ rendering_name = mapping["rendering"]+ model_path = CONFIGS_PATH / model.name+ model_tokenizer_path = CONFIGS_PATH / model.tokenizer_name++ if not model_path.exists():+ err_console.print(f"[red]{model.repo_id}: configs not exported yet[/red]")+ continue++ try:+ with open(model_path / "config.json") as file:+ model_config = json.load(file)++ with open(model_tokenizer_path / "tokenizer_config.json") as file:+ tokenizer_config = json.load(file)++ generation_config = None+ generation_config_path = model_tokenizer_path / "generation_config.json"+ if generation_config_path.exists():+ with open(generation_config_path) as file:+ generation_config = json.load(file)++ tokenizer = Tokenizer.from_file(+ str(TOKENIZERS_PATH / model.tokenizer_name / "tokenizer.json"),+ )++ if tokens_name not in seen_tokens:+ seen_tokens.add(tokens_name)++ bos_token = resolve_token_string(tokenizer_config, model_config, tokenizer, "bos")+ eos_token = resolve_token_string(tokenizer_config, model_config, tokenizer, "eos")+ bos_token_id = resolve_token_id(tokenizer, bos_token)+ eos_token_id = resolve_token_id(tokenizer, eos_token)+ stop_token_ids = resolve_stop_token_ids(+ model_config,+ generation_config,+ eos_token_id,+ )+ tokens_data = {+ "bos_token_id": bos_token_id,+ "eos_token_id": eos_token_id,+ "stop_token_ids": stop_token_ids,+ "banned_token_ids": [],+ }++ tokens_path = BUNDLED_CONFIGS_PATH / "tokens" / f"{tokens_name}.json"+ with open(tokens_path, "w") as file:+ json.dump(tokens_data, file, indent=4)+ console.print(f"\t[dim]tokens/{tokens_name}.json updated[/dim]")++ if rendering_name not in seen_rendering:+ seen_rendering.add(rendering_name)++ chat_template = resolve_chat_template(model_path, tokenizer_config)+ if chat_template is None:+ continue+ chat_template = process_chat_template(chat_template)+ chat_template = process_chat_template_model_specific(chat_template, model.repo_id)++ rendering_path = BUNDLED_CONFIGS_PATH / "rendering" / f"{rendering_name}.json"+ with open(rendering_path) as file:+ rendering_config = json.load(file)+ rendering_config["jinja"]["template"] = chat_template+ with open(rendering_path, "w") as file:+ json.dump(rendering_config, file, indent=4, ensure_ascii=False)+ console.print(f"\t[dim]rendering/{rendering_name}.json template updated[/dim]")++ console.print(f"[green]{model.repo_id} completed[/green]")+ except Exception as error: # noqa: BLE001+ err_console.print(f"[red]{model.repo_id} failed[/red]: {error}")diff --git a/tools/data_exporter/export/configs.py b/tools/data_exporter/export/configs.pynew file mode 100644index 000000000..fd80f01b6--- /dev/null+++ b/tools/data_exporter/export/configs.py@@ -0,0 +1,53 @@+import huggingface_hub+from rich.console import Console++from data_exporter.utils import CONFIGS_PATH, load_registry++__all__ = ["export_configs"]++EXCLUDED_EXTENSIONS = {+ ".safetensors",+ ".pth",+ ".bin",+ ".gguf",+ ".ot",+ ".pt",+ ".h5",+ ".msgpack",+ ".onnx",+ ".tflite",+ ".litertlm",+ ".onnx_data",+}+++def export_configs(console: Console, err_console: Console) -> None:+ CONFIGS_PATH.mkdir(parents=True, exist_ok=True)++ registry = load_registry()+ for model in registry:+ try:+ model_path = CONFIGS_PATH / model.name+ model_path.mkdir(parents=True, exist_ok=True)++ filenames = huggingface_hub.list_repo_files(model.repo_id)+ filenames = [+ filename+ for filename in filenames+ if not any(filename.endswith(extension) for extension in EXCLUDED_EXTENSIONS)+ ]++ for filename in filenames:+ file_path = model_path / filename+ if file_path.exists():+ continue+ file_path.parent.mkdir(parents=True, exist_ok=True)+ huggingface_hub.hf_hub_download(+ repo_id=model.repo_id,+ filename=filename,+ local_dir=model_path,+ )++ console.print(f"[green]{model.repo_id} completed ({len(filenames)} files)[/green]")+ except Exception as error: # noqa: BLE001+ err_console.print(f"[red]{model.repo_id} failed[/red]: {error}")diff --git a/tools/data_exporter/export/responses.py b/tools/data_exporter/export/responses.pynew file mode 100644index 000000000..de3966b94--- /dev/null+++ b/tools/data_exporter/export/responses.py@@ -0,0 +1,380 @@+import json+from collections.abc import Callable+from dataclasses import asdict, dataclass+from itertools import product++from rich.console import Console+from rich.progress import track+from transformers import AutoModelForCausalLM, AutoTokenizer+from transformers import logging as transformers_logging+from transformers.utils import chat_template_utils+from transformers.utils.chat_template_utils import get_json_schema++from data_exporter.export.bundled import process_chat_template_model_specific, resolve_chat_template+from data_exporter.model_capabilities import (+ ModelCapabilities,+ resolve_capabilities,+)+from data_exporter.utils import CONFIGS_PATH, RESPONSES_PATH, load_registry++__all__ = ["export_responses"]++_original_get_json_schema_type = chat_template_utils._get_json_schema_type # noqa: SLF001+++def _patched_get_json_schema_type(param_type: type) -> dict[str, str]:+ if isinstance(param_type, type) and hasattr(param_type, "json_schema"):+ return param_type.json_schema()+ return _original_get_json_schema_type(param_type)+++chat_template_utils._get_json_schema_type = _patched_get_json_schema_type # noqa: SLF001+++@dataclass(frozen=True)+class Location:+ city: str+ country: str++ @staticmethod+ def json_schema() -> dict:+ return {+ "type": "object",+ "properties": {+ "city": {"type": "string", "description": "The city name"},+ "country": {"type": "string", "description": "The country name"},+ },+ "required": ["city", "country"],+ }+++def get_current_temperature(location: Location, unit: str) -> float: # noqa: ARG001+ """+ Get the current temperature at a location.++ Args:+ location: The location to get the temperature for+ unit: The unit to return the temperature in. (choices: ["celsius", "fahrenheit"])+ """+ return 30.0+++def get_current_wind_speed(location: str) -> float: # noqa: ARG001+ """+ Get the current wind speed in km/h at a given location.++ Args:+ location: The location to get the wind speed for, in the format "City, Country"++ Returns:+ The current wind speed in km/h+ """+ return 10.0+++@dataclass(frozen=True)+class TestMessages:+ messages: list[dict]+ required_tools: list[Callable]+++TEST_MESSAGES_LIST: list[TestMessages] = [+ TestMessages(+ messages=[+ {"role": "user", "content": "What is the current temperature in London?"},+ ],+ required_tools=[get_current_temperature],+ ),+ TestMessages(+ messages=[+ {"role": "system", "content": "You are a helpful assistant"},+ {"role": "user", "content": "What is the current wind speed in London?"},+ ],+ required_tools=[get_current_wind_speed],+ ),+ TestMessages(+ messages=[+ {"role": "system", "content": "You are a helpful assistant"},+ {"role": "user", "content": "What is the current temperature and wind speed in London?"},+ ],+ required_tools=[get_current_temperature, get_current_wind_speed],+ ),+]+++@dataclass(frozen=True)+class ResponseTestParameters:+ messages: list[dict]+ tools: list[dict] | None+ context: dict+++@dataclass(frozen=True)+class ResponseTestResult:+ prompt: str+ completion: str+++@dataclass(frozen=True)+class ResponseTestExpectations:+ reasoning: bool+ tool_call_names: list[str]+++@dataclass(frozen=True)+class ResponseTestData:+ repo_id: str+ parameters: ResponseTestParameters+ result: ResponseTestResult+ expectations: ResponseTestExpectations+++type Variation = tuple[TestMessages, list[Callable] | None, dict]+++def apply_required_system_prompt(+ test_messages_list: list[TestMessages],+ required_system_prompt: str,+) -> list[TestMessages]:+ result = []+ for test_messages in test_messages_list:+ messages = [message for message in test_messages.messages if message.get("role") != "system"]+ messages.insert(0, {"role": "system", "content": required_system_prompt})+ result.append(+ TestMessages(+ messages=messages,+ required_tools=test_messages.required_tools,+ ),+ )+ return result+++TRANSLATION_TEST_MESSAGES_LIST: list[TestMessages] = [+ TestMessages(+ messages=[+ {+ "role": "user",+ "content": [+ {+ "type": "text",+ "source_lang_code": "en",+ "target_lang_code": "fr",+ "text": "Tell me about London.",+ },+ ],+ },+ ],+ required_tools=[],+ ),+ TestMessages(+ messages=[+ {+ "role": "user",+ "content": [+ {+ "type": "text",+ "source_lang_code": "fr",+ "target_lang_code": "en",+ "text": "Parlez-moi de Londres.",+ },+ ],+ },+ ],+ required_tools=[],+ ),+ TestMessages(+ messages=[+ {+ "role": "user",+ "content": [+ {+ "type": "text",+ "source_lang_code": "en",+ "target_lang_code": "de-DE",+ "text": "The weather in Paris is lovely today.",+ },+ ],+ },+ ],+ required_tools=[],+ ),+ TestMessages(+ messages=[+ {+ "role": "user",+ "content": [+ {+ "type": "text",+ "source_lang_code": "de",+ "target_lang_code": "en",+ "text": "Das Wetter in Paris ist heute wunderschön.",+ },+ ],+ },+ ],+ required_tools=[],+ ),+]+++def build_variations(capabilities: ModelCapabilities, is_translation: bool = False) -> list[Variation]:+ # In a perfect world, we would filter messages by multiple tool call support,+ # but for testing purposes we want to cover more edge cases.+ messages_list = TRANSLATION_TEST_MESSAGES_LIST if is_translation else TEST_MESSAGES_LIST+ if not capabilities.supports_system:+ messages_list = [+ test_messages+ for test_messages in messages_list+ if not any(message.get("role") == "system" for message in test_messages.messages)+ ]+ if capabilities.required_system_prompt is not None:+ messages_list = apply_required_system_prompt(+ messages_list,+ capabilities.required_system_prompt,+ )++ tools_variations: list[list[Callable] | None] = []+ if capabilities.tools is not None:+ if not capabilities.tools.required:+ tools_variations.append(None)+ tools_variations.append([])+ tools_variations.append([get_current_temperature])+ tools_variations.append([get_current_wind_speed])+ tools_variations.append([get_current_temperature, get_current_wind_speed])+ else:+ tools_variations.append(None)++ context_variations: list[dict] = []+ if capabilities.reasoning is not None:+ if capabilities.reasoning.enable is not None:+ context_variations.append(+ {capabilities.reasoning.enable.key: capabilities.reasoning.enable.value},+ )+ if capabilities.reasoning.disable is not None:+ context_variations.append(+ {capabilities.reasoning.disable.key: capabilities.reasoning.disable.value},+ )+ if not context_variations:+ context_variations.append({})++ return list(product(messages_list, tools_variations, context_variations))+++def expect_reasoning(capabilities: ModelCapabilities, context: dict) -> bool:+ if capabilities.reasoning is None:+ return False+ return not (+ capabilities.reasoning.disable is not None+ and context.get(capabilities.reasoning.disable.key) == capabilities.reasoning.disable.value+ )+++def expect_tool_call_names(+ test_messages: TestMessages,+ tools: list[Callable] | None,+) -> list[str]:+ if tools is None or len(tools) == 0:+ return []+ return [tool.__name__ for tool in test_messages.required_tools if tool in tools]+++def export_responses(console: Console, err_console: Console) -> None:+ transformers_logging.set_verbosity_error()+ transformers_logging.disable_progress_bar()++ RESPONSES_PATH.mkdir(parents=True, exist_ok=True)++ registry = load_registry()+ for model in registry:+ if model.repo_id in ["mistralai/Mistral-Small-3.1-24B-Instruct-2503", "mistralai/Devstral-Small-2505"]:+ continue+ try:+ capabilities = resolve_capabilities(model)+ required_system_prompt = None+ if model.repo_id == "google/functiongemma-270m-it":+ required_system_prompt = "You are a model that can do function calling with the following functions"+ if model.repo_id == "mistralai/Devstral-Small-2505":+ required_system_prompt = "You are Devstral, a helpful agentic model trained by Mistral AI and using the OpenHands scaffold. You can interact with a computer to solve tasks.\n\n<ROLE>\nYour primary role is to assist users by executing commands, modifying code, and solving technical problems effectively. You should be thorough, methodical, and prioritize quality over speed.\n* If the user asks a question, like \"why is X happening\", don't try to fix the problem. Just give an answer to the question.\n</ROLE>\n\n<EFFICIENCY>\n* Each action you take is somewhat expensive. Wherever possible, combine multiple actions into a single action, e.g. combine multiple bash commands into one, using sed and grep to edit/view multiple files at once.\n* When exploring the codebase, use efficient tools like find, grep, and git commands with appropriate filters to minimize unnecessary operations.\n</EFFICIENCY>\n\n<FILE_SYSTEM_GUIDELINES>\n* When a user provides a file path, do NOT assume it's relative to the current working directory. First explore the file system to locate the file before working on it.\n* If asked to edit a file, edit the file directly, rather than creating a new file with a different filename.\n* For global search-and-replace operations, consider using `sed` instead of opening file editors multiple times.\n</FILE_SYSTEM_GUIDELINES>\n\n<CODE_QUALITY>\n* Write clean, efficient code with minimal comments. Avoid redundancy in comments: Do not repeat information that can be easily inferred from the code itself.\n* When implementing solutions, focus on making the minimal changes needed to solve the problem.\n* Before implementing any changes, first thoroughly understand the codebase through exploration.\n* If you are adding a lot of code to a function or file, consider splitting the function or file into smaller pieces when appropriate.\n</CODE_QUALITY>\n\n<VERSION_CONTROL>\n* When configuring git credentials, use \"openhands\" as the user.name and \"[email protected]\" as the user.email by default, unless explicitly instructed otherwise.\n* Exercise caution with git operations. Do NOT make potentially dangerous changes (e.g., pushing to main, deleting repositories) unless explicitly asked to do so.\n* When committing changes, use `git status` to see all modified files, and stage all files necessary for the commit. Use `git commit -a` whenever possible.\n* Do NOT commit files that typically shouldn't go into version control (e.g., node_modules/, .env files, build directories, cache files, large binaries) unless explicitly instructed by the user.\n* If unsure about committing certain files, check for the presence of .gitignore files or ask the user for clarification.\n</VERSION_CONTROL>\n\n<PULL_REQUESTS>\n* When creating pull requests, create only ONE per session/issue unless explicitly instructed otherwise.\n* When working with an existing PR, update it with new commits rather than creating additional PRs for the same issue.\n* When updating a PR, preserve the original PR title and purpose, updating description only when necessary.\n</PULL_REQUESTS>\n\n<PROBLEM_SOLVING_WORKFLOW>\n1. EXPLORATION: Thoroughly explore relevant files and understand the context before proposing solutions\n2. ANALYSIS: Consider multiple approaches and select the most promising one\n3. TESTING:\n * For bug fixes: Create tests to verify issues before implementing fixes\n * For new features: Consider test-driven development when appropriate\n * If the repository lacks testing infrastructure and implementing tests would require extensive setup, consult with the user before investing time in building testing infrastructure\n * If the environment is not set up to run tests, consult with the user first before investing time to install all dependencies\n4. IMPLEMENTATION: Make focused, minimal changes to address the problem\n5. VERIFICATION: If the environment is set up to run tests, test your implementation thoroughly, including edge cases. If the environment is not set up to run tests, consult with the user first before investing time to run tests.\n</PROBLEM_SOLVING_WORKFLOW>\n\n<SECURITY>\n* Only use GITHUB_TOKEN and other credentials in ways the user has explicitly requested and would expect.\n* Use APIs to work with GitHub or other platforms, unless the user asks otherwise or your task requires browsing.\n</SECURITY>\n\n<ENVIRONMENT_SETUP>\n* When user asks you to run an application, don't stop if the application is not installed. Instead, please install the application and run the command again.\n* If you encounter missing dependencies:\n 1. First, look around in the repository for existing dependency files (requirements.txt, pyproject.toml, package.json, Gemfile, etc.)\n 2. If dependency files exist, use them to install all dependencies at once (e.g., `pip install -r requirements.txt`, `npm install`, etc.)\n 3. Only install individual packages directly if no dependency files are found or if only specific packages are needed\n* Similarly, if you encounter missing dependencies for essential tools requested by the user, install them when possible.\n</ENVIRONMENT_SETUP>\n\n<TROUBLESHOOTING>\n* If you've made repeated attempts to solve a problem but tests still fail or the user reports it's still broken:\n 1. Step back and reflect on 5-7 different possible sources of the problem\n 2. Assess the likelihood of each possible cause\n 3. Methodically address the most likely causes, starting with the highest probability\n 4. Document your reasoning process\n* When you run into any major issue while executing a plan from the user, please don't try to directly work around it. Instead, propose a new plan and confirm with the user before proceeding.\n</TROUBLESHOOTING>"+ if required_system_prompt is not None:+ capabilities = ModelCapabilities(+ reasoning=capabilities.reasoning,+ tools=capabilities.tools,+ required_system_prompt=required_system_prompt,+ )+ variations = build_variations(capabilities, is_translation=model.is_translation)++ test_data_path = RESPONSES_PATH / f"{model.name}.json"+ if test_data_path.exists():+ with open(test_data_path) as file:+ try:+ existing_test_data = json.load(file)+ if len(existing_test_data) == len(variations):+ console.print(f"[green]{model.repo_id} completed[/green]")+ continue+ except Exception: # noqa: BLE001+ pass+ test_data_path.unlink()++ test_data_list = []++ for test_messages, tools, context in track(+ variations,+ description=model.repo_id,+ console=console,+ ):+ tool_schemas = [get_json_schema(tool) for tool in tools] if tools is not None else None++ model_path = CONFIGS_PATH / model.tokenizer_name+ with open(model_path / "tokenizer_config.json") as file:+ tokenizer_config = json.load(file)+ chat_template = resolve_chat_template(model_path, tokenizer_config)+ assert chat_template is not None+ chat_template = process_chat_template_model_specific(+ chat_template,+ model.repo_id,+ )++ tokenizer = AutoTokenizer.from_pretrained(+ model.tokenizer_repo_id if model.tokenizer_repo_id is not None else model.repo_id,+ )+ tokenizer.chat_template = process_chat_template_model_specific(+ chat_template,+ model.repo_id,+ )+ prompt = tokenizer.apply_chat_template(+ test_messages.messages,+ tokenize=False,+ add_generation_prompt=True,+ tools=tool_schemas,+ **context,+ )+ tokenized_prompt = tokenizer.encode(prompt, return_tensors="pt")++ chat_model = AutoModelForCausalLM.from_pretrained(model.repo_id)+ outputs = chat_model.generate(tokenized_prompt, max_new_tokens=2048)+ completion = tokenizer.decode(outputs[0][tokenized_prompt.shape[-1] :])++ test_data = ResponseTestData(+ repo_id=model.repo_id,+ parameters=ResponseTestParameters(+ messages=test_messages.messages,+ tools=tool_schemas,+ context=context,+ ),+ result=ResponseTestResult(+ prompt=prompt,+ completion=completion,+ ),+ expectations=ResponseTestExpectations(+ reasoning=expect_reasoning(capabilities, context),+ tool_call_names=expect_tool_call_names(test_messages, tools),+ ),+ )+ test_data_list.append(asdict(test_data))++ with open(test_data_path, "w") as file:+ json.dump(test_data_list, file, indent=4)++ console.print(f"[green]{model.repo_id} completed[/green]")+ except Exception as error: # noqa: BLE001+ err_console.print(f"[red]{model.repo_id} failed[/red]: {error}")diff --git a/tools/data_exporter/export/tokenizers.py b/tools/data_exporter/export/tokenizers.pynew file mode 100644index 000000000..625c13083--- /dev/null+++ b/tools/data_exporter/export/tokenizers.py@@ -0,0 +1,68 @@+import json+from pathlib import Path++from rich.console import Console+from tokenizers import AddedToken, Tokenizer++from data_exporter.utils import CONFIGS_PATH, TOKENIZERS_PATH, download_file, load_registry++__all__ = ["export_tokenizers"]+++def export_tokenizers(console: Console, err_console: Console) -> None:+ TOKENIZERS_PATH.mkdir(parents=True, exist_ok=True)++ registry = load_registry()+ for model in registry:+ try:+ model_tokenizer_path = TOKENIZERS_PATH / model.tokenizer_name+ model_tokenizer_path.mkdir(parents=True, exist_ok=True)++ tokenizer_path = model_tokenizer_path / "tokenizer.json"+ if not tokenizer_path.exists():+ model_path = CONFIGS_PATH / model.tokenizer_name++ with open(model_path / "tokenizer_config.json") as file:+ tokenizer_config = json.load(file)++ tokenizer_json_path = model_path / "tokenizer.json"+ tokenizer = Tokenizer.from_file(str(tokenizer_json_path))+ with open(tokenizer_json_path) as file:+ tokenizer_json = json.load(file)++ added_tokens = tokenizer_config.get("added_tokens_decoder", {}).values()+ normalizer = tokenizer_json.get("normalizer")+ has_prepend_normalizer = isinstance(normalizer, dict) and any(+ step.get("type") == "Prepend" for step in normalizer.get("normalizers", [])+ )++ if has_prepend_normalizer:+ console.print(f"[yellow]{model.repo_id} has prepend normalizer[/yellow]")++ added_tokens = [+ AddedToken(+ content=token["content"],+ special=token["special"],+ normalized=False if has_prepend_normalizer else token["normalized"],+ lstrip=token["lstrip"],+ rstrip=token["rstrip"],+ single_word=token["single_word"],+ )+ for token in added_tokens+ ]+ added_special_tokens = [token for token in added_tokens if token.special]+ added_not_special_tokens = [token for token in added_tokens if not token.special]+ tokenizer.add_special_tokens(added_special_tokens)+ tokenizer.add_tokens(added_not_special_tokens)+ tokenizer.save(str(tokenizer_path))++ if model.harmony is not None:+ filename = Path(model.harmony.tokenizer_url).name+ download_file(+ model.harmony.tokenizer_url,+ model_tokenizer_path / filename,+ )++ console.print(f"[green]{model.repo_id} completed[/green]")+ except Exception as error: # noqa: BLE001+ err_console.print(f"[red]{model.repo_id} failed[/red]: {error}")diff --git a/tools/data_exporter/main.py b/tools/data_exporter/main.pynew file mode 100644index 000000000..76cc14c25--- /dev/null+++ b/tools/data_exporter/main.py@@ -0,0 +1,36 @@+from rich.console import Console+from typer import Typer++from data_exporter.export import export_bundled, export_configs, export_responses, export_tokenizers++console = Console()+err_console = Console(stderr=True)+app = Typer(+ rich_markup_mode="rich",+ add_completion=False,+ pretty_exceptions_show_locals=False,+)++[email protected](help="Export configs")+def configs() -> None:+ export_configs(console, err_console)++[email protected](help="Export tokenizers")+def tokenizers() -> None:+ export_tokenizers(console, err_console)++[email protected](help="Export bundled configs")+def bundled() -> None:+ export_bundled(console, err_console)++[email protected](help="Export responses")+def responses() -> None:+ export_responses(console, err_console)+++if __name__ == "__main__":+ app()diff --git a/tools/data_exporter/model.py b/tools/data_exporter/model.pynew file mode 100644index 000000000..50af18b52--- /dev/null+++ b/tools/data_exporter/model.py@@ -0,0 +1,42 @@+from dataclasses import dataclass++__all__ = ["HarmonyConfig", "Model"]+++@dataclass(frozen=True)+class HarmonyConfig:+ tokenizer_url: str+++@dataclass(frozen=True)+class Model:+ repo_id: str+ encodings: list[dict]+ tokenizer_repo_id: str | None = None+ harmony: HarmonyConfig | None = None+ is_translation: bool = False++ @classmethod+ def from_dict(cls, data: dict) -> "Model":+ harmony_data = data.get("harmony")+ harmony = HarmonyConfig(**harmony_data) if harmony_data else None+ return cls(+ repo_id=data["repo_id"],+ encodings=data.get("encodings", []),+ tokenizer_repo_id=data.get("tokeuzer_repo_id"),+ harmony=harmony,+ is_translation=data.get("is_translation", False),+ )++ @property+ def name(self) -> str:+ parts = self.repo_id.split("/")+ return f"{parts[0]}_{parts[1]}"++ @property+ def tokenizer_name(self) -> str:+ repo_id = self.repo_id+ if self.tokenizer_repo_id is not None:+ repo_id = self.tokenizer_repo_id+ parts = repo_id.split("/")+ return f"{parts[0]}_{parts[1]}"diff --git a/tools/data_exporter/model_capabilities.py b/tools/data_exporter/model_capabilities.pynew file mode 100644index 000000000..d5a59dd88--- /dev/null+++ b/tools/data_exporter/model_capabilities.py@@ -0,0 +1,172 @@+import json+from dataclasses import dataclass++from data_exporter.model import Model+from data_exporter.utils import BUNDLED_CONFIGS_PATH++__all__ = ["ModelCapabilities", "resolve_capabilities"]++BUNDLED_CONFIGS_MAPPING_PATH = BUNDLED_CONFIGS_PATH / "configs.json"+++@dataclass(frozen=True)+class ContextKeyValue:+ key: str+ value: object+++@dataclass(frozen=True)+class ReasoningCapabilities:+ enable: ContextKeyValue | None = None+ disable: ContextKeyValue | None = None++ @property+ def disableable(self) -> bool:+ return self.disable is not None+++@dataclass(frozen=True)+class ToolsCapabilities:+ required: bool+ multiple: bool+++@dataclass(frozen=True)+class ModelCapabilities:+ reasoning: ReasoningCapabilities | None = None+ tools: ToolsCapabilities | None = None+ required_system_prompt: str | None = None+ supports_system: bool = True++ @property+ def supports_reasoning(self) -> bool:+ return self.reasoning is not None++ @property+ def supports_tools(self) -> bool:+ return self.tools is not None+++def load_bundled_configs_mapping() -> list[dict]:+ with open(BUNDLED_CONFIGS_MAPPING_PATH) as file:+ return json.load(file)+++def load_rendering_config(rendering_name: str) -> dict:+ rendering_path = BUNDLED_CONFIGS_PATH / "rendering" / f"{rendering_name}.json"+ with open(rendering_path) as file:+ return json.load(file)+++def load_ordering_config(ordering_name: str) -> dict:+ ordering_path = BUNDLED_CONFIGS_PATH / "ordering" / f"{ordering_name}.json"+ with open(ordering_path) as file:+ return json.load(file)+++def is_role_avoidable(ordering: dict, role: str) -> bool:+ initial_roles = ordering.get("initial", [])+ transitions = ordering.get("transitions", {})+ has_other_initial_roles = any(initial_role != role for initial_role in initial_roles)+ all_transitions_have_alternatives = all(+ role not in target_roles or any(target_role != role for target_role in target_roles)+ for target_roles in transitions.values()+ )+ return has_other_initial_roles and all_transitions_have_alternatives+++def resolve_hanashi_name(model: Model) -> str | None:+ for encoding in model.encodings:+ if encoding.get("type") == "hanashi":+ return encoding.get("name")+ return None+++def find_role_and_field_by_block_name(+ rendering: dict,+ block_name: str,+) -> tuple[str, str, dict] | None:+ for role_key, role_config in rendering.items():+ if not isinstance(role_config, dict):+ continue+ for section_key in ("message", "context"):+ section = role_config.get(section_key, {})+ for field_name, field_config in section.items():+ if not isinstance(field_config, dict):+ continue+ if field_config.get("block") == block_name:+ return role_key, field_name, field_config+ if block_name in field_config.get("blocks", []):+ return role_key, field_name, field_config+ return None+++def find_field_by_block_name(rendering: dict, block_name: str) -> tuple[str, dict] | None:+ result = find_role_and_field_by_block_name(rendering, block_name)+ if result is None:+ return None+ _, field_name, field_config = result+ return field_name, field_config+++def resolve_capabilities(model: Model) -> ModelCapabilities:+ hanashi_name = resolve_hanashi_name(model)+ if hanashi_name is None:+ return ModelCapabilities()++ bundled_mapping = load_bundled_configs_mapping()+ mapping = next(+ (entry for entry in bundled_mapping if entry["name"] == hanashi_name),+ None,+ )+ if mapping is None:+ return ModelCapabilities()++ rendering_config = load_rendering_config(mapping["rendering"])+ rendering = rendering_config.get("rendering", {})+ ordering_config = load_ordering_config(mapping["ordering"])++ reasoning = None+ if find_field_by_block_name(rendering, "reasoning") is not None:+ reasoning = ReasoningCapabilities()++ reasoning_effort_field = find_field_by_block_name(rendering, "reasoning_effort")+ if reasoning_effort_field is not None:+ field_name, field_config = reasoning_effort_field+ mapping_data = field_config.get("mapping", {})++ enable = None+ disable = None+ for mapping_key, mapping_value in mapping_data.items():+ if mapping_key == "disabled" and mapping_value is not None:+ disable = ContextKeyValue(key=field_name, value=mapping_value)+ elif mapping_key == "default" and mapping_value is not None:+ enable = ContextKeyValue(key=field_name, value=mapping_value)++ reasoning = ReasoningCapabilities(enable=enable, disable=disable)++ tools = None+ tools_role_and_field = find_role_and_field_by_block_name(rendering, "tools")+ if tools_role_and_field is not None:+ tools_role_key, _, tools_field_config = tools_role_and_field+ field_required = tools_field_config.get("required", False)+ role_avoidable = is_role_avoidable(ordering_config, tools_role_key)+ required = field_required and not role_avoidable++ multiple = True+ tool_calls_field = find_field_by_block_name(rendering, "tool_call")+ if tool_calls_field is not None:+ _, tool_calls_config = tool_calls_field+ limit = tool_calls_config.get("limit")+ if limit is not None and limit <= 1:+ multiple = False++ tools = ToolsCapabilities(required=required, multiple=multiple)++ supports_system = "system" in rendering++ return ModelCapabilities(+ reasoning=reasoning,+ tools=tools,+ supports_system=supports_system,+ )diff --git a/tools/data_exporter/utils.py b/tools/data_exporter/utils.pynew file mode 100644index 000000000..d9a99e3ac--- /dev/null+++ b/tools/data_exporter/utils.py@@ -0,0 +1,38 @@+import json+import urllib.request+from pathlib import Path++from data_exporter.model import Model++__all__ = [+ "BUNDLED_CONFIGS_PATH",+ "CONFIGS_PATH",+ "RESPONSES_PATH",+ "TOKENIZERS_PATH",+ "download_file",+ "load_registry",+]++BASE_PATH = Path(__file__).parent+ROOT_PATH = BASE_PATH.parent.parent++CRATES_PATH = ROOT_PATH / "crates"+HANASHI_PATH = CRATES_PATH / "hanashi"+BUNDLED_CONFIGS_PATH = HANASHI_PATH / "configs"++WORKSPACE_PATH = ROOT_PATH / "workspace"+DATA_PATH = WORKSPACE_PATH / "data"+CONFIGS_PATH = DATA_PATH / "configs"+TOKENIZERS_PATH = DATA_PATH / "tokenizers"+RESPONSES_PATH = DATA_PATH / "responses"+++def load_registry() -> list[Model]:+ with open(DATA_PATH / "registry.json") as file:+ models = [Model.from_dict(entry) for entry in json.load(file)]+ return [model for model in models if len(model.encodings) > 0]+++def download_file(url: str, output_path: Path) -> None:+ if not output_path.exists():+ urllib.request.urlretrieve(url, output_path)diff --git a/tools/downloader/__init__.py b/tools/downloader/__init__.pynew file mode 100644index 000000000..37a9ceb5c--- /dev/null+++ b/tools/downloader/__init__.py@@ -0,0 +1,3 @@+__version__ = "0.1.0"++__all__ = []diff --git a/tools/helpers/main.py b/tools/downloader/main.pysimilarity index 98%rename from tools/helpers/main.pyrename to tools/downloader/main.pyindex 3bdcd790c..1e9a90dc1 100644--- a/tools/helpers/main.py+++ b/tools/downloader/main.py@@ -9,7 +9,7 @@ from typing import Annotatedimport google_crc32cimport requestsimport tomllib-from model import BenchmarkTask, File, Message, Model, Registry, Role+from .model import BenchmarkTask, File, Message, Model, Registry, Rolefrom rich.console import Consolefrom rich.progress import (BarColumn,@@ -22,11 +22,12 @@ from rich.progress import ()from rich.table import Tablefrom typer import Argument, Typer-from utils import download_file_with_resume+from .utils import download_file_with_resumeROOT_PATH = Path(__file__).parent.parent.parentCARGO_TOML_PATH = ROOT_PATH / "Cargo.toml"-MODELS_PATH = ROOT_PATH / "models"+WORKSPACE_PATH = ROOT_PATH / "workspace"+MODELS_PATH = WORKSPACE_PATH / "models"console = Console()@@ -67,7 +68,7 @@ def load_registry() -> Registry:@app.command(help="List models")-def list_models():+def list():try:with Progress(SpinnerColumn(),@@ -91,7 +92,7 @@ def list_models():@app.command(help="Download model")-def download_model(+def download(model_repo: Annotated[str,Argument(diff --git a/tools/helpers/model.py b/tools/downloader/model.pysimilarity index 100%rename from tools/helpers/model.pyrename to tools/downloader/model.pydiff --git a/tools/helpers/utils.py b/tools/downloader/utils.pysimilarity index 100%rename from tools/helpers/utils.pyrename to tools/downloader/utils.pydiff --git a/tools/gpu_trace/src/gpu_trace/__init__.py b/tools/gpu_trace/__init__.pysimilarity index 100%rename from tools/gpu_trace/src/gpu_trace/__init__.pyrename to tools/gpu_trace/__init__.pydiff --git a/tools/gpu_trace/src/gpu_trace/__main__.py b/tools/gpu_trace/__main__.pysimilarity index 100%rename from tools/gpu_trace/src/gpu_trace/__main__.pyrename to tools/gpu_trace/__main__.pydiff --git a/tools/gpu_trace/src/gpu_trace/extractors.py b/tools/gpu_trace/extractors.pysimilarity index 100%rename from tools/gpu_trace/src/gpu_trace/extractors.pyrename to tools/gpu_trace/extractors.pydiff --git a/tools/gpu_trace/src/gpu_trace/formatting.py b/tools/gpu_trace/formatting.pysimilarity index 100%rename from tools/gpu_trace/src/gpu_trace/formatting.pyrename to tools/gpu_trace/formatting.pydiff --git a/tools/gpu_trace/src/gpu_trace/gputrace.py b/tools/gpu_trace/gputrace.pysimilarity index 100%rename from tools/gpu_trace/src/gpu_trace/gputrace.pyrename to tools/gpu_trace/gputrace.pydiff --git a/tools/gpu_trace/src/gpu_trace/main.py b/tools/gpu_trace/main.pysimilarity index 100%rename from tools/gpu_trace/src/gpu_trace/main.pyrename to tools/gpu_trace/main.pydiff --git a/tools/gpu_trace/src/gpu_trace/models.py b/tools/gpu_trace/models.pysimilarity index 100%rename from tools/gpu_trace/src/gpu_trace/models.pyrename to tools/gpu_trace/models.pydiff --git a/tools/gpu_trace/src/gpu_trace/progress.py b/tools/gpu_trace/progress.pysimilarity index 100%rename from tools/gpu_trace/src/gpu_trace/progress.pyrename to tools/gpu_trace/progress.pydiff --git a/tools/gpu_trace/pyproject.toml b/tools/gpu_trace/pyproject.tomldeleted file mode 100644index f52012223..000000000--- a/tools/gpu_trace/pyproject.toml+++ /dev/null@@ -1,16 +0,0 @@-[project]-name = "gpu-trace"-version = "0.1.0"-description = "Record, analyze, and export Metal GPU traces"-requires-python = ">=3.12"-dependencies = ["cattrs>=24.1.0", "rich>=13.0.0"]--[project.scripts]-gpu_trace = "gpu_trace.main:cli"--[build-system]-requires = ["hatchling"]-build-backend = "hatchling.build"--[tool.hatch.build.targets.wheel]-packages = ["src/gpu_trace"]diff --git a/tools/gpu_trace/src/gpu_trace/recorder.py b/tools/gpu_trace/recorder.pysimilarity index 100%rename from tools/gpu_trace/src/gpu_trace/recorder.pyrename to tools/gpu_trace/recorder.pydiff --git a/tools/gpu_trace/src/gpu_trace/serialization.py b/tools/gpu_trace/serialization.pysimilarity index 100%rename from tools/gpu_trace/src/gpu_trace/serialization.pyrename to tools/gpu_trace/serialization.pydiff --git a/tools/gpu_trace/uv.lock b/tools/gpu_trace/uv.lockdeleted file mode 100644index 724fe9160..000000000--- a/tools/gpu_trace/uv.lock+++ /dev/null@@ -1,92 +0,0 @@-version = 1-revision = 3-requires-python = ">=3.12"--[[package]]-name = "attrs"-version = "25.4.0"-source = { registry = "https://pypi.org/simple" }-sdist = { url = "https://files.pythonhosted.org/packages/6b/5c/685e6633917e101e5dcb62b9dd76946cbb57c26e133bae9e0cd36033c0a9/attrs-25.4.0.tar.gz", hash = "sha256:16d5969b87f0859ef33a48b35d55ac1be6e42ae49d5e853b597db70c35c57e11", size = 934251, upload-time = "2025-10-06T13:54:44.725Z" }-wheels = [- { url = "https://files.pythonhosted.org/packages/3a/2a/7cc015f5b9f5db42b7d48157e23356022889fc354a2813c15934b7cb5c0e/attrs-25.4.0-py3-none-any.whl", hash = "sha256:adcf7e2a1fb3b36ac48d97835bb6d8ade15b8dcce26aba8bf1d14847b57a3373", size = 67615, upload-time = "2025-10-06T13:54:43.17Z" },-]--[[package]]-name = "cattrs"-version = "25.3.0"-source = { registry = "https://pypi.org/simple" }-dependencies = [- { name = "attrs" },- { name = "typing-extensions" },-]-sdist = { url = "https://files.pythonhosted.org/packages/6e/00/2432bb2d445b39b5407f0a90e01b9a271475eea7caf913d7a86bcb956385/cattrs-25.3.0.tar.gz", hash = "sha256:1ac88d9e5eda10436c4517e390a4142d88638fe682c436c93db7ce4a277b884a", size = 509321, upload-time = "2025-10-07T12:26:08.737Z" }-wheels = [- { url = "https://files.pythonhosted.org/packages/d8/2b/a40e1488fdfa02d3f9a653a61a5935ea08b3c2225ee818db6a76c7ba9695/cattrs-25.3.0-py3-none-any.whl", hash = "sha256:9896e84e0a5bf723bc7b4b68f4481785367ce07a8a02e7e9ee6eb2819bc306ff", size = 70738, upload-time = "2025-10-07T12:26:06.603Z" },-]--[[package]]-name = "gpu-trace"-version = "0.1.0"-source = { editable = "." }-dependencies = [- { name = "cattrs" },- { name = "rich" },-]--[package.metadata]-requires-dist = [- { name = "cattrs", specifier = ">=24.1.0" },- { name = "rich", specifier = ">=13.0.0" },-]--[[package]]-name = "markdown-it-py"-version = "4.0.0"-source = { registry = "https://pypi.org/simple" }-dependencies = [- { name = "mdurl" },-]-sdist = { url = "https://files.pythonhosted.org/packages/5b/f5/4ec618ed16cc4f8fb3b701563655a69816155e79e24a17b651541804721d/markdown_it_py-4.0.0.tar.gz", hash = "sha256:cb0a2b4aa34f932c007117b194e945bd74e0ec24133ceb5bac59009cda1cb9f3", size = 73070, upload-time = "2025-08-11T12:57:52.854Z" }-wheels = [- { url = "https://files.pythonhosted.org/packages/94/54/e7d793b573f298e1c9013b8c4dade17d481164aa517d1d7148619c2cedbf/markdown_it_py-4.0.0-py3-none-any.whl", hash = "sha256:87327c59b172c5011896038353a81343b6754500a08cd7a4973bb48c6d578147", size = 87321, upload-time = "2025-08-11T12:57:51.923Z" },-]--[[package]]-name = "mdurl"-version = "0.1.2"-source = { registry = "https://pypi.org/simple" }-sdist = { url = "https://files.pythonhosted.org/packages/d6/54/cfe61301667036ec958cb99bd3efefba235e65cdeb9c84d24a8293ba1d90/mdurl-0.1.2.tar.gz", hash = "sha256:bb413d29f5eea38f31dd4754dd7377d4465116fb207585f97bf925588687c1ba", size = 8729, upload-time = "2022-08-14T12:40:10.846Z" }-wheels = [- { url = "https://files.pythonhosted.org/packages/b3/38/89ba8ad64ae25be8de66a6d463314cf1eb366222074cfda9ee839c56a4b4/mdurl-0.1.2-py3-none-any.whl", hash = "sha256:84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8", size = 9979, upload-time = "2022-08-14T12:40:09.779Z" },-]--[[package]]-name = "pygments"-version = "2.19.2"-source = { registry = "https://pypi.org/simple" }-sdist = { url = "https://files.pythonhosted.org/packages/b0/77/a5b8c569bf593b0140bde72ea885a803b82086995367bf2037de0159d924/pygments-2.19.2.tar.gz", hash = "sha256:636cb2477cec7f8952536970bc533bc43743542f70392ae026374600add5b887", size = 4968631, upload-time = "2025-06-21T13:39:12.283Z" }-wheels = [- { url = "https://files.pythonhosted.org/packages/c7/21/705964c7812476f378728bdf590ca4b771ec72385c533964653c68e86bdc/pygments-2.19.2-py3-none-any.whl", hash = "sha256:86540386c03d588bb81d44bc3928634ff26449851e99741617ecb9037ee5ec0b", size = 1225217, upload-time = "2025-06-21T13:39:07.939Z" },-]--[[package]]-name = "rich"-version = "14.2.0"-source = { registry = "https://pypi.org/simple" }-dependencies = [- { name = "markdown-it-py" },- { name = "pygments" },-]-sdist = { url = "https://files.pythonhosted.org/packages/fb/d2/8920e102050a0de7bfabeb4c4614a49248cf8d5d7a8d01885fbb24dc767a/rich-14.2.0.tar.gz", hash = "sha256:73ff50c7c0c1c77c8243079283f4edb376f0f6442433aecb8ce7e6d0b92d1fe4", size = 219990, upload-time = "2025-10-09T14:16:53.064Z" }-wheels = [- { url = "https://files.pythonhosted.org/packages/25/7a/b0178788f8dc6cafce37a212c99565fa1fe7872c70c6c9c1e1a372d9d88f/rich-14.2.0-py3-none-any.whl", hash = "sha256:76bc51fe2e57d2b1be1f96c524b890b816e334ab4c1e45888799bfaab0021edd", size = 243393, upload-time = "2025-10-09T14:16:51.245Z" },-]--[[package]]-name = "typing-extensions"-version = "4.15.0"-source = { registry = "https://pypi.org/simple" }-sdist = { url = "https://files.pythonhosted.org/packages/72/94/1a15dd82efb362ac84269196e94cf00f187f7ed21c242792a923cdb1c61f/typing_extensions-4.15.0.tar.gz", hash = "sha256:0cea48d173cc12fa28ecabc3b837ea3cf6f38c6d1136f85cbaaf598984861466", size = 109391, upload-time = "2025-08-25T13:49:26.313Z" }-wheels = [- { url = "https://files.pythonhosted.org/packages/18/67/36e9267722cc04a6b9f15c7f3441c2363321a3ea07da7ae0c0707beb2a9c/typing_extensions-4.15.0-py3-none-any.whl", hash = "sha256:f0fa19c6845758ab08074a0cfa8b7aecb71c999ca73d62883bc25cc018c4e548", size = 44614, upload-time = "2025-08-25T13:49:24.86Z" },-]diff --git a/tools/helpers/.gitignore b/tools/helpers/.gitignoredeleted file mode 100644index 1449f4d4b..000000000--- a/tools/helpers/.gitignore+++ /dev/null@@ -1,40 +0,0 @@-.DS_Store--# Python-generated files-__pycache__/-*.py[oc]-build/-dist/-wheels/-*.egg-info--# Ruff-.ruff_cache/--# Virtual environments-.venv--# Pyright-.mypy_cache/-.pytest_cache/-.pyright/--# Notebooks-notebooks/--# Downloads-downloads/--# IDE-.idea/--sync.bb-.clj-kondo-.lsp--# Profiler-memray-*.bin-memray-*.html--# Local-only scripts-validate_storage_local.pydiff --git a/tools/helpers/.python-version b/tools/helpers/.python-versiondeleted file mode 100644index e4fba2183..000000000--- a/tools/helpers/.python-version+++ /dev/null@@ -1 +0,0 @@-3.12diff --git a/tools/helpers/pyproject.toml b/tools/helpers/pyproject.tomldeleted file mode 100644index 6da448630..000000000--- a/tools/helpers/pyproject.toml+++ /dev/null@@ -1,10 +0,0 @@-[project]-name = "tools"-version = "0.1.0"-requires-python = ">=3.12"-dependencies = [- "google-crc32c>=1.8.0",- "requests>=2.32.5",- "rich>=14.1.0",- "typer>=0.19.2",-]diff --git a/tools/helpers/uv.lock b/tools/helpers/uv.lockdeleted file mode 100644index 135f01b8e..000000000--- a/tools/helpers/uv.lock+++ /dev/null@@ -1,226 +0,0 @@-version = 1-revision = 2-requires-python = ">=3.12"--[[package]]-name = "certifi"-version = "2025.8.3"-source = { registry = "https://pypi.org/simple" }-sdist = { url = "https://files.pythonhosted.org/packages/dc/67/960ebe6bf230a96cda2e0abcf73af550ec4f090005363542f0765df162e0/certifi-2025.8.3.tar.gz", hash = "sha256:e564105f78ded564e3ae7c923924435e1daa7463faeab5bb932bc53ffae63407", size = 162386, upload-time = "2025-08-03T03:07:47.08Z" }-wheels = [- { url = "https://files.pythonhosted.org/packages/e5/48/1549795ba7742c948d2ad169c1c8cdbae65bc450d6cd753d124b17c8cd32/certifi-2025.8.3-py3-none-any.whl", hash = "sha256:f6c12493cfb1b06ba2ff328595af9350c65d6644968e5d3a2ffd78699af217a5", size = 161216, upload-time = "2025-08-03T03:07:45.777Z" },-]--[[package]]-name = "charset-normalizer"-version = "3.4.3"-source = { registry = "https://pypi.org/simple" }-sdist = { url = "https://files.pythonhosted.org/packages/83/2d/5fd176ceb9b2fc619e63405525573493ca23441330fcdaee6bef9460e924/charset_normalizer-3.4.3.tar.gz", hash = "sha256:6fce4b8500244f6fcb71465d4a4930d132ba9ab8e71a7859e6a5d59851068d14", size = 122371, upload-time = "2025-08-09T07:57:28.46Z" }-wheels = [- { url = "https://files.pythonhosted.org/packages/e9/5e/14c94999e418d9b87682734589404a25854d5f5d0408df68bc15b6ff54bb/charset_normalizer-3.4.3-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:e28e334d3ff134e88989d90ba04b47d84382a828c061d0d1027b1b12a62b39b1", size = 205655, upload-time = "2025-08-09T07:56:08.475Z" },- { url = "https://files.pythonhosted.org/packages/7d/a8/c6ec5d389672521f644505a257f50544c074cf5fc292d5390331cd6fc9c3/charset_normalizer-3.4.3-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:0cacf8f7297b0c4fcb74227692ca46b4a5852f8f4f24b3c766dd94a1075c4884", size = 146223, upload-time = "2025-08-09T07:56:09.708Z" },- { url = "https://files.pythonhosted.org/packages/fc/eb/a2ffb08547f4e1e5415fb69eb7db25932c52a52bed371429648db4d84fb1/charset_normalizer-3.4.3-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:c6fd51128a41297f5409deab284fecbe5305ebd7e5a1f959bee1c054622b7018", size = 159366, upload-time = "2025-08-09T07:56:11.326Z" },- { url = "https://files.pythonhosted.org/packages/82/10/0fd19f20c624b278dddaf83b8464dcddc2456cb4b02bb902a6da126b87a1/charset_normalizer-3.4.3-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:3cfb2aad70f2c6debfbcb717f23b7eb55febc0bb23dcffc0f076009da10c6392", size = 157104, upload-time = "2025-08-09T07:56:13.014Z" },- { url = "https://files.pythonhosted.org/packages/16/ab/0233c3231af734f5dfcf0844aa9582d5a1466c985bbed6cedab85af9bfe3/charset_normalizer-3.4.3-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:1606f4a55c0fd363d754049cdf400175ee96c992b1f8018b993941f221221c5f", size = 151830, upload-time = "2025-08-09T07:56:14.428Z" },- { url = "https://files.pythonhosted.org/packages/ae/02/e29e22b4e02839a0e4a06557b1999d0a47db3567e82989b5bb21f3fbbd9f/charset_normalizer-3.4.3-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:027b776c26d38b7f15b26a5da1044f376455fb3766df8fc38563b4efbc515154", size = 148854, upload-time = "2025-08-09T07:56:16.051Z" },- { url = "https://files.pythonhosted.org/packages/05/6b/e2539a0a4be302b481e8cafb5af8792da8093b486885a1ae4d15d452bcec/charset_normalizer-3.4.3-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:42e5088973e56e31e4fa58eb6bd709e42fc03799c11c42929592889a2e54c491", size = 160670, upload-time = "2025-08-09T07:56:17.314Z" },- { url = "https://files.pythonhosted.org/packages/31/e7/883ee5676a2ef217a40ce0bffcc3d0dfbf9e64cbcfbdf822c52981c3304b/charset_normalizer-3.4.3-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:cc34f233c9e71701040d772aa7490318673aa7164a0efe3172b2981218c26d93", size = 158501, upload-time = "2025-08-09T07:56:18.641Z" },- { url = "https://files.pythonhosted.org/packages/c1/35/6525b21aa0db614cf8b5792d232021dca3df7f90a1944db934efa5d20bb1/charset_normalizer-3.4.3-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:320e8e66157cc4e247d9ddca8e21f427efc7a04bbd0ac8a9faf56583fa543f9f", size = 153173, upload-time = "2025-08-09T07:56:20.289Z" },- { url = "https://files.pythonhosted.org/packages/50/ee/f4704bad8201de513fdc8aac1cabc87e38c5818c93857140e06e772b5892/charset_normalizer-3.4.3-cp312-cp312-win32.whl", hash = "sha256:fb6fecfd65564f208cbf0fba07f107fb661bcd1a7c389edbced3f7a493f70e37", size = 99822, upload-time = "2025-08-09T07:56:21.551Z" },- { url = "https://files.pythonhosted.org/packages/39/f5/3b3836ca6064d0992c58c7561c6b6eee1b3892e9665d650c803bd5614522/charset_normalizer-3.4.3-cp312-cp312-win_amd64.whl", hash = "sha256:86df271bf921c2ee3818f0522e9a5b8092ca2ad8b065ece5d7d9d0e9f4849bcc", size = 107543, upload-time = "2025-08-09T07:56:23.115Z" },- { url = "https://files.pythonhosted.org/packages/65/ca/2135ac97709b400c7654b4b764daf5c5567c2da45a30cdd20f9eefe2d658/charset_normalizer-3.4.3-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:14c2a87c65b351109f6abfc424cab3927b3bdece6f706e4d12faaf3d52ee5efe", size = 205326, upload-time = "2025-08-09T07:56:24.721Z" },- { url = "https://files.pythonhosted.org/packages/71/11/98a04c3c97dd34e49c7d247083af03645ca3730809a5509443f3c37f7c99/charset_normalizer-3.4.3-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:41d1fc408ff5fdfb910200ec0e74abc40387bccb3252f3f27c0676731df2b2c8", size = 146008, upload-time = "2025-08-09T07:56:26.004Z" },- { url = "https://files.pythonhosted.org/packages/60/f5/4659a4cb3c4ec146bec80c32d8bb16033752574c20b1252ee842a95d1a1e/charset_normalizer-3.4.3-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:1bb60174149316da1c35fa5233681f7c0f9f514509b8e399ab70fea5f17e45c9", size = 159196, upload-time = "2025-08-09T07:56:27.25Z" },- { url = "https://files.pythonhosted.org/packages/86/9e/f552f7a00611f168b9a5865a1414179b2c6de8235a4fa40189f6f79a1753/charset_normalizer-3.4.3-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:30d006f98569de3459c2fc1f2acde170b7b2bd265dc1943e87e1a4efe1b67c31", size = 156819, upload-time = "2025-08-09T07:56:28.515Z" },- { url = "https://files.pythonhosted.org/packages/7e/95/42aa2156235cbc8fa61208aded06ef46111c4d3f0de233107b3f38631803/charset_normalizer-3.4.3-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:416175faf02e4b0810f1f38bcb54682878a4af94059a1cd63b8747244420801f", size = 151350, upload-time = "2025-08-09T07:56:29.716Z" },- { url = "https://files.pythonhosted.org/packages/c2/a9/3865b02c56f300a6f94fc631ef54f0a8a29da74fb45a773dfd3dcd380af7/charset_normalizer-3.4.3-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:6aab0f181c486f973bc7262a97f5aca3ee7e1437011ef0c2ec04b5a11d16c927", size = 148644, upload-time = "2025-08-09T07:56:30.984Z" },- { url = "https://files.pythonhosted.org/packages/77/d9/cbcf1a2a5c7d7856f11e7ac2d782aec12bdfea60d104e60e0aa1c97849dc/charset_normalizer-3.4.3-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:fdabf8315679312cfa71302f9bd509ded4f2f263fb5b765cf1433b39106c3cc9", size = 160468, upload-time = "2025-08-09T07:56:32.252Z" },- { url = "https://files.pythonhosted.org/packages/f6/42/6f45efee8697b89fda4d50580f292b8f7f9306cb2971d4b53f8914e4d890/charset_normalizer-3.4.3-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:bd28b817ea8c70215401f657edef3a8aa83c29d447fb0b622c35403780ba11d5", size = 158187, upload-time = "2025-08-09T07:56:33.481Z" },- { url = "https://files.pythonhosted.org/packages/70/99/f1c3bdcfaa9c45b3ce96f70b14f070411366fa19549c1d4832c935d8e2c3/charset_normalizer-3.4.3-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:18343b2d246dc6761a249ba1fb13f9ee9a2bcd95decc767319506056ea4ad4dc", size = 152699, upload-time = "2025-08-09T07:56:34.739Z" },- { url = "https://files.pythonhosted.org/packages/a3/ad/b0081f2f99a4b194bcbb1934ef3b12aa4d9702ced80a37026b7607c72e58/charset_normalizer-3.4.3-cp313-cp313-win32.whl", hash = "sha256:6fb70de56f1859a3f71261cbe41005f56a7842cc348d3aeb26237560bfa5e0ce", size = 99580, upload-time = "2025-08-09T07:56:35.981Z" },- { url = "https://files.pythonhosted.org/packages/9a/8f/ae790790c7b64f925e5c953b924aaa42a243fb778fed9e41f147b2a5715a/charset_normalizer-3.4.3-cp313-cp313-win_amd64.whl", hash = "sha256:cf1ebb7d78e1ad8ec2a8c4732c7be2e736f6e5123a4146c5b89c9d1f585f8cef", size = 107366, upload-time = "2025-08-09T07:56:37.339Z" },- { url = "https://files.pythonhosted.org/packages/8e/91/b5a06ad970ddc7a0e513112d40113e834638f4ca1120eb727a249fb2715e/charset_normalizer-3.4.3-cp314-cp314-macosx_10_13_universal2.whl", hash = "sha256:3cd35b7e8aedeb9e34c41385fda4f73ba609e561faedfae0a9e75e44ac558a15", size = 204342, upload-time = "2025-08-09T07:56:38.687Z" },- { url = "https://files.pythonhosted.org/packages/ce/ec/1edc30a377f0a02689342f214455c3f6c2fbedd896a1d2f856c002fc3062/charset_normalizer-3.4.3-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b89bc04de1d83006373429975f8ef9e7932534b8cc9ca582e4db7d20d91816db", size = 145995, upload-time = "2025-08-09T07:56:40.048Z" },- { url = "https://files.pythonhosted.org/packages/17/e5/5e67ab85e6d22b04641acb5399c8684f4d37caf7558a53859f0283a650e9/charset_normalizer-3.4.3-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:2001a39612b241dae17b4687898843f254f8748b796a2e16f1051a17078d991d", size = 158640, upload-time = "2025-08-09T07:56:41.311Z" },- { url = "https://files.pythonhosted.org/packages/f1/e5/38421987f6c697ee3722981289d554957c4be652f963d71c5e46a262e135/charset_normalizer-3.4.3-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:8dcfc373f888e4fb39a7bc57e93e3b845e7f462dacc008d9749568b1c4ece096", size = 156636, upload-time = "2025-08-09T07:56:43.195Z" },- { url = "https://files.pythonhosted.org/packages/a0/e4/5a075de8daa3ec0745a9a3b54467e0c2967daaaf2cec04c845f73493e9a1/charset_normalizer-3.4.3-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:18b97b8404387b96cdbd30ad660f6407799126d26a39ca65729162fd810a99aa", size = 150939, upload-time = "2025-08-09T07:56:44.819Z" },- { url = "https://files.pythonhosted.org/packages/02/f7/3611b32318b30974131db62b4043f335861d4d9b49adc6d57c1149cc49d4/charset_normalizer-3.4.3-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:ccf600859c183d70eb47e05a44cd80a4ce77394d1ac0f79dbd2dd90a69a3a049", size = 148580, upload-time = "2025-08-09T07:56:46.684Z" },- { url = "https://files.pythonhosted.org/packages/7e/61/19b36f4bd67f2793ab6a99b979b4e4f3d8fc754cbdffb805335df4337126/charset_normalizer-3.4.3-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:53cd68b185d98dde4ad8990e56a58dea83a4162161b1ea9272e5c9182ce415e0", size = 159870, upload-time = "2025-08-09T07:56:47.941Z" },- { url = "https://files.pythonhosted.org/packages/06/57/84722eefdd338c04cf3030ada66889298eaedf3e7a30a624201e0cbe424a/charset_normalizer-3.4.3-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:30a96e1e1f865f78b030d65241c1ee850cdf422d869e9028e2fc1d5e4db73b92", size = 157797, upload-time = "2025-08-09T07:56:49.756Z" },- { url = "https://files.pythonhosted.org/packages/72/2a/aff5dd112b2f14bcc3462c312dce5445806bfc8ab3a7328555da95330e4b/charset_normalizer-3.4.3-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:d716a916938e03231e86e43782ca7878fb602a125a91e7acb8b5112e2e96ac16", size = 152224, upload-time = "2025-08-09T07:56:51.369Z" },- { url = "https://files.pythonhosted.org/packages/b7/8c/9839225320046ed279c6e839d51f028342eb77c91c89b8ef2549f951f3ec/charset_normalizer-3.4.3-cp314-cp314-win32.whl", hash = "sha256:c6dbd0ccdda3a2ba7c2ecd9d77b37f3b5831687d8dc1b6ca5f56a4880cc7b7ce", size = 100086, upload-time = "2025-08-09T07:56:52.722Z" },- { url = "https://files.pythonhosted.org/packages/ee/7a/36fbcf646e41f710ce0a563c1c9a343c6edf9be80786edeb15b6f62e17db/charset_normalizer-3.4.3-cp314-cp314-win_amd64.whl", hash = "sha256:73dc19b562516fc9bcf6e5d6e596df0b4eb98d87e4f79f3ae71840e6ed21361c", size = 107400, upload-time = "2025-08-09T07:56:55.172Z" },- { url = "https://files.pythonhosted.org/packages/8a/1f/f041989e93b001bc4e44bb1669ccdcf54d3f00e628229a85b08d330615c5/charset_normalizer-3.4.3-py3-none-any.whl", hash = "sha256:ce571ab16d890d23b5c278547ba694193a45011ff86a9162a71307ed9f86759a", size = 53175, upload-time = "2025-08-09T07:57:26.864Z" },-]--[[package]]-name = "click"-version = "8.3.0"-source = { registry = "https://pypi.org/simple" }-dependencies = [- { name = "colorama", marker = "sys_platform == 'win32'" },-]-sdist = { url = "https://files.pythonhosted.org/packages/46/61/de6cd827efad202d7057d93e0fed9294b96952e188f7384832791c7b2254/click-8.3.0.tar.gz", hash = "sha256:e7b8232224eba16f4ebe410c25ced9f7875cb5f3263ffc93cc3e8da705e229c4", size = 276943, upload-time = "2025-09-18T17:32:23.696Z" }-wheels = [- { url = "https://files.pythonhosted.org/packages/db/d3/9dcc0f5797f070ec8edf30fbadfb200e71d9db6b84d211e3b2085a7589a0/click-8.3.0-py3-none-any.whl", hash = "sha256:9b9f285302c6e3064f4330c05f05b81945b2a39544279343e6e7c5f27a9baddc", size = 107295, upload-time = "2025-09-18T17:32:22.42Z" },-]--[[package]]-name = "colorama"-version = "0.4.6"-source = { registry = "https://pypi.org/simple" }-sdist = { url = "https://files.pythonhosted.org/packages/d8/53/6f443c9a4a8358a93a6792e2acffb9d9d5cb0a5cfd8802644b7b1c9a02e4/colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44", size = 27697, upload-time = "2022-10-25T02:36:22.414Z" }-wheels = [- { url = "https://files.pythonhosted.org/packages/d1/d6/3965ed04c63042e047cb6a3e6ed1a63a35087b6a609aa3a15ed8ac56c221/colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6", size = 25335, upload-time = "2022-10-25T02:36:20.889Z" },-]--[[package]]-name = "google-crc32c"-version = "1.8.0"-source = { registry = "https://pypi.org/simple" }-sdist = { url = "https://files.pythonhosted.org/packages/03/41/4b9c02f99e4c5fb477122cd5437403b552873f014616ac1d19ac8221a58d/google_crc32c-1.8.0.tar.gz", hash = "sha256:a428e25fb7691024de47fecfbff7ff957214da51eddded0da0ae0e0f03a2cf79", size = 14192, upload-time = "2025-12-16T00:35:25.142Z" }-wheels = [- { url = "https://files.pythonhosted.org/packages/e9/5f/7307325b1198b59324c0fa9807cafb551afb65e831699f2ce211ad5c8240/google_crc32c-1.8.0-cp312-cp312-macosx_12_0_arm64.whl", hash = "sha256:4b8286b659c1335172e39563ab0a768b8015e88e08329fa5321f774275fc3113", size = 31300, upload-time = "2025-12-16T00:21:56.723Z" },- { url = "https://files.pythonhosted.org/packages/21/8e/58c0d5d86e2220e6a37befe7e6a94dd2f6006044b1a33edf1ff6d9f7e319/google_crc32c-1.8.0-cp312-cp312-macosx_12_0_x86_64.whl", hash = "sha256:2a3dc3318507de089c5384cc74d54318401410f82aa65b2d9cdde9d297aca7cb", size = 30867, upload-time = "2025-12-16T00:38:31.302Z" },- { url = "https://files.pythonhosted.org/packages/ce/a9/a780cc66f86335a6019f557a8aaca8fbb970728f0efd2430d15ff1beae0e/google_crc32c-1.8.0-cp312-cp312-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:14f87e04d613dfa218d6135e81b78272c3b904e2a7053b841481b38a7d901411", size = 33364, upload-time = "2025-12-16T00:40:22.96Z" },- { url = "https://files.pythonhosted.org/packages/21/3f/3457ea803db0198c9aaca2dd373750972ce28a26f00544b6b85088811939/google_crc32c-1.8.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:cb5c869c2923d56cb0c8e6bcdd73c009c36ae39b652dbe46a05eb4ef0ad01454", size = 33740, upload-time = "2025-12-16T00:40:23.96Z" },- { url = "https://files.pythonhosted.org/packages/df/c0/87c2073e0c72515bb8733d4eef7b21548e8d189f094b5dad20b0ecaf64f6/google_crc32c-1.8.0-cp312-cp312-win_amd64.whl", hash = "sha256:3cc0c8912038065eafa603b238abf252e204accab2a704c63b9e14837a854962", size = 34437, upload-time = "2025-12-16T00:35:21.395Z" },- { url = "https://files.pythonhosted.org/packages/d1/db/000f15b41724589b0e7bc24bc7a8967898d8d3bc8caf64c513d91ef1f6c0/google_crc32c-1.8.0-cp313-cp313-macosx_12_0_arm64.whl", hash = "sha256:3ebb04528e83b2634857f43f9bb8ef5b2bbe7f10f140daeb01b58f972d04736b", size = 31297, upload-time = "2025-12-16T00:23:20.709Z" },- { url = "https://files.pythonhosted.org/packages/d7/0d/8ebed0c39c53a7e838e2a486da8abb0e52de135f1b376ae2f0b160eb4c1a/google_crc32c-1.8.0-cp313-cp313-macosx_12_0_x86_64.whl", hash = "sha256:450dc98429d3e33ed2926fc99ee81001928d63460f8538f21a5d6060912a8e27", size = 30867, upload-time = "2025-12-16T00:43:14.628Z" },- { url = "https://files.pythonhosted.org/packages/ce/42/b468aec74a0354b34c8cbf748db20d6e350a68a2b0912e128cabee49806c/google_crc32c-1.8.0-cp313-cp313-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:3b9776774b24ba76831609ffbabce8cdf6fa2bd5e9df37b594221c7e333a81fa", size = 33344, upload-time = "2025-12-16T00:40:24.742Z" },- { url = "https://files.pythonhosted.org/packages/1c/e8/b33784d6fc77fb5062a8a7854e43e1e618b87d5ddf610a88025e4de6226e/google_crc32c-1.8.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:89c17d53d75562edfff86679244830599ee0a48efc216200691de8b02ab6b2b8", size = 33694, upload-time = "2025-12-16T00:40:25.505Z" },- { url = "https://files.pythonhosted.org/packages/92/b1/d3cbd4d988afb3d8e4db94ca953df429ed6db7282ed0e700d25e6c7bfc8d/google_crc32c-1.8.0-cp313-cp313-win_amd64.whl", hash = "sha256:57a50a9035b75643996fbf224d6661e386c7162d1dfdab9bc4ca790947d1007f", size = 34435, upload-time = "2025-12-16T00:35:22.107Z" },- { url = "https://files.pythonhosted.org/packages/21/88/8ecf3c2b864a490b9e7010c84fd203ec8cf3b280651106a3a74dd1b0ca72/google_crc32c-1.8.0-cp314-cp314-macosx_12_0_arm64.whl", hash = "sha256:e6584b12cb06796d285d09e33f63309a09368b9d806a551d8036a4207ea43697", size = 31301, upload-time = "2025-12-16T00:24:48.527Z" },- { url = "https://files.pythonhosted.org/packages/36/c6/f7ff6c11f5ca215d9f43d3629163727a272eabc356e5c9b2853df2bfe965/google_crc32c-1.8.0-cp314-cp314-macosx_12_0_x86_64.whl", hash = "sha256:f4b51844ef67d6cf2e9425983274da75f18b1597bb2c998e1c0a0e8d46f8f651", size = 30868, upload-time = "2025-12-16T00:48:12.163Z" },- { url = "https://files.pythonhosted.org/packages/56/15/c25671c7aad70f8179d858c55a6ae8404902abe0cdcf32a29d581792b491/google_crc32c-1.8.0-cp314-cp314-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:b0d1a7afc6e8e4635564ba8aa5c0548e3173e41b6384d7711a9123165f582de2", size = 33381, upload-time = "2025-12-16T00:40:26.268Z" },- { url = "https://files.pythonhosted.org/packages/42/fa/f50f51260d7b0ef5d4898af122d8a7ec5a84e2984f676f746445f783705f/google_crc32c-1.8.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:8b3f68782f3cbd1bce027e48768293072813469af6a61a86f6bb4977a4380f21", size = 33734, upload-time = "2025-12-16T00:40:27.028Z" },- { url = "https://files.pythonhosted.org/packages/08/a5/7b059810934a09fb3ccb657e0843813c1fee1183d3bc2c8041800374aa2c/google_crc32c-1.8.0-cp314-cp314-win_amd64.whl", hash = "sha256:d511b3153e7011a27ab6ee6bb3a5404a55b994dc1a7322c0b87b29606d9790e2", size = 34878, upload-time = "2025-12-16T00:35:23.142Z" },-]--[[package]]-name = "idna"-version = "3.10"-source = { registry = "https://pypi.org/simple" }-sdist = { url = "https://files.pythonhosted.org/packages/f1/70/7703c29685631f5a7590aa73f1f1d3fa9a380e654b86af429e0934a32f7d/idna-3.10.tar.gz", hash = "sha256:12f65c9b470abda6dc35cf8e63cc574b1c52b11df2c86030af0ac09b01b13ea9", size = 190490, upload-time = "2024-09-15T18:07:39.745Z" }-wheels = [- { url = "https://files.pythonhosted.org/packages/76/c6/c88e154df9c4e1a2a66ccf0005a88dfb2650c1dffb6f5ce603dfbd452ce3/idna-3.10-py3-none-any.whl", hash = "sha256:946d195a0d259cbba61165e88e65941f16e9b36ea6ddb97f00452bae8b1287d3", size = 70442, upload-time = "2024-09-15T18:07:37.964Z" },-]--[[package]]-name = "markdown-it-py"-version = "4.0.0"-source = { registry = "https://pypi.org/simple" }-dependencies = [- { name = "mdurl" },-]-sdist = { url = "https://files.pythonhosted.org/packages/5b/f5/4ec618ed16cc4f8fb3b701563655a69816155e79e24a17b651541804721d/markdown_it_py-4.0.0.tar.gz", hash = "sha256:cb0a2b4aa34f932c007117b194e945bd74e0ec24133ceb5bac59009cda1cb9f3", size = 73070, upload-time = "2025-08-11T12:57:52.854Z" }-wheels = [- { url = "https://files.pythonhosted.org/packages/94/54/e7d793b573f298e1c9013b8c4dade17d481164aa517d1d7148619c2cedbf/markdown_it_py-4.0.0-py3-none-any.whl", hash = "sha256:87327c59b172c5011896038353a81343b6754500a08cd7a4973bb48c6d578147", size = 87321, upload-time = "2025-08-11T12:57:51.923Z" },-]--[[package]]-name = "mdurl"-version = "0.1.2"-source = { registry = "https://pypi.org/simple" }-sdist = { url = "https://files.pythonhosted.org/packages/d6/54/cfe61301667036ec958cb99bd3efefba235e65cdeb9c84d24a8293ba1d90/mdurl-0.1.2.tar.gz", hash = "sha256:bb413d29f5eea38f31dd4754dd7377d4465116fb207585f97bf925588687c1ba", size = 8729, upload-time = "2022-08-14T12:40:10.846Z" }-wheels = [- { url = "https://files.pythonhosted.org/packages/b3/38/89ba8ad64ae25be8de66a6d463314cf1eb366222074cfda9ee839c56a4b4/mdurl-0.1.2-py3-none-any.whl", hash = "sha256:84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8", size = 9979, upload-time = "2022-08-14T12:40:09.779Z" },-]--[[package]]-name = "pygments"-version = "2.19.2"-source = { registry = "https://pypi.org/simple" }-sdist = { url = "https://files.pythonhosted.org/packages/b0/77/a5b8c569bf593b0140bde72ea885a803b82086995367bf2037de0159d924/pygments-2.19.2.tar.gz", hash = "sha256:636cb2477cec7f8952536970bc533bc43743542f70392ae026374600add5b887", size = 4968631, upload-time = "2025-06-21T13:39:12.283Z" }-wheels = [- { url = "https://files.pythonhosted.org/packages/c7/21/705964c7812476f378728bdf590ca4b771ec72385c533964653c68e86bdc/pygments-2.19.2-py3-none-any.whl", hash = "sha256:86540386c03d588bb81d44bc3928634ff26449851e99741617ecb9037ee5ec0b", size = 1225217, upload-time = "2025-06-21T13:39:07.939Z" },-]--[[package]]-name = "requests"-version = "2.32.5"-source = { registry = "https://pypi.org/simple" }-dependencies = [- { name = "certifi" },- { name = "charset-normalizer" },- { name = "idna" },- { name = "urllib3" },-]-sdist = { url = "https://files.pythonhosted.org/packages/c9/74/b3ff8e6c8446842c3f5c837e9c3dfcfe2018ea6ecef224c710c85ef728f4/requests-2.32.5.tar.gz", hash = "sha256:dbba0bac56e100853db0ea71b82b4dfd5fe2bf6d3754a8893c3af500cec7d7cf", size = 134517, upload-time = "2025-08-18T20:46:02.573Z" }-wheels = [- { url = "https://files.pythonhosted.org/packages/1e/db/4254e3eabe8020b458f1a747140d32277ec7a271daf1d235b70dc0b4e6e3/requests-2.32.5-py3-none-any.whl", hash = "sha256:2462f94637a34fd532264295e186976db0f5d453d1cdd31473c85a6a161affb6", size = 64738, upload-time = "2025-08-18T20:46:00.542Z" },-]--[[package]]-name = "rich"-version = "14.1.0"-source = { registry = "https://pypi.org/simple" }-dependencies = [- { name = "markdown-it-py" },- { name = "pygments" },-]-sdist = { url = "https://files.pythonhosted.org/packages/fe/75/af448d8e52bf1d8fa6a9d089ca6c07ff4453d86c65c145d0a300bb073b9b/rich-14.1.0.tar.gz", hash = "sha256:e497a48b844b0320d45007cdebfeaeed8db2a4f4bcf49f15e455cfc4af11eaa8", size = 224441, upload-time = "2025-07-25T07:32:58.125Z" }-wheels = [- { url = "https://files.pythonhosted.org/packages/e3/30/3c4d035596d3cf444529e0b2953ad0466f6049528a879d27534700580395/rich-14.1.0-py3-none-any.whl", hash = "sha256:536f5f1785986d6dbdea3c75205c473f970777b4a0d6c6dd1b696aa05a3fa04f", size = 243368, upload-time = "2025-07-25T07:32:56.73Z" },-]--[[package]]-name = "shellingham"-version = "1.5.4"-source = { registry = "https://pypi.org/simple" }-sdist = { url = "https://files.pythonhosted.org/packages/58/15/8b3609fd3830ef7b27b655beb4b4e9c62313a4e8da8c676e142cc210d58e/shellingham-1.5.4.tar.gz", hash = "sha256:8dbca0739d487e5bd35ab3ca4b36e11c4078f3a234bfce294b0a0291363404de", size = 10310, upload-time = "2023-10-24T04:13:40.426Z" }-wheels = [- { url = "https://files.pythonhosted.org/packages/e0/f9/0595336914c5619e5f28a1fb793285925a8cd4b432c9da0a987836c7f822/shellingham-1.5.4-py2.py3-none-any.whl", hash = "sha256:7ecfff8f2fd72616f7481040475a65b2bf8af90a56c89140852d1120324e8686", size = 9755, upload-time = "2023-10-24T04:13:38.866Z" },-]--[[package]]-name = "tools"-version = "0.1.0"-source = { virtual = "." }-dependencies = [- { name = "google-crc32c" },- { name = "requests" },- { name = "rich" },- { name = "typer" },-]--[package.metadata]-requires-dist = [- { name = "google-crc32c", specifier = ">=1.8.0" },- { name = "requests", specifier = ">=2.32.5" },- { name = "rich", specifier = ">=14.1.0" },- { name = "typer", specifier = ">=0.19.2" },-]--[[package]]-name = "typer"-version = "0.19.2"-source = { registry = "https://pypi.org/simple" }-dependencies = [- { name = "click" },- { name = "rich" },- { name = "shellingham" },- { name = "typing-extensions" },-]-sdist = { url = "https://files.pythonhosted.org/packages/21/ca/950278884e2ca20547ff3eb109478c6baf6b8cf219318e6bc4f666fad8e8/typer-0.19.2.tar.gz", hash = "sha256:9ad824308ded0ad06cc716434705f691d4ee0bfd0fb081839d2e426860e7fdca", size = 104755, upload-time = "2025-09-23T09:47:48.256Z" }-wheels = [- { url = "https://files.pythonhosted.org/packages/00/22/35617eee79080a5d071d0f14ad698d325ee6b3bf824fc0467c03b30e7fa8/typer-0.19.2-py3-none-any.whl", hash = "sha256:755e7e19670ffad8283db353267cb81ef252f595aa6834a0d1ca9312d9326cb9", size = 46748, upload-time = "2025-09-23T09:47:46.777Z" },-]--[[package]]-name = "typing-extensions"-version = "4.15.0"-source = { registry = "https://pypi.org/simple" }-sdist = { url = "https://files.pythonhosted.org/packages/72/94/1a15dd82efb362ac84269196e94cf00f187f7ed21c242792a923cdb1c61f/typing_extensions-4.15.0.tar.gz", hash = "sha256:0cea48d173cc12fa28ecabc3b837ea3cf6f38c6d1136f85cbaaf598984861466", size = 109391, upload-time = "2025-08-25T13:49:26.313Z" }-wheels = [- { url = "https://files.pythonhosted.org/packages/18/67/36e9267722cc04a6b9f15c7f3441c2363321a3ea07da7ae0c0707beb2a9c/typing_extensions-4.15.0-py3-none-any.whl", hash = "sha256:f0fa19c6845758ab08074a0cfa8b7aecb71c999ca73d62883bc25cc018c4e548", size = 44614, upload-time = "2025-08-25T13:49:24.86Z" },-]--[[package]]-name = "urllib3"-version = "2.5.0"-source = { registry = "https://pypi.org/simple" }-sdist = { url = "https://files.pythonhosted.org/packages/15/22/9ee70a2574a4f4599c47dd506532914ce044817c7752a79b6a51286319bc/urllib3-2.5.0.tar.gz", hash = "sha256:3fc47733c7e419d4bc3f6b3dc2b4f890bb743906a30d56ba4a5bfa4bbff92760", size = 393185, upload-time = "2025-06-18T14:07:41.644Z" }-wheels = [- { url = "https://files.pythonhosted.org/packages/a7/c2/fe1e52489ae3122415c51f387e221dd0773709bad6c6cdaa599e8a2c5185/urllib3-2.5.0-py3-none-any.whl", hash = "sha256:e6b01673c0fa6a13e374b50871808eb3bf7046c4b125b216f6bf1cc604cff0dc", size = 129795, upload-time = "2025-06-18T14:07:40.39Z" },-]diff --git a/tools/model_compare/src/model_compare/__init__.py b/tools/model_compare/__init__.pysimilarity index 100%rename from tools/model_compare/src/model_compare/__init__.pyrename to tools/model_compare/__init__.pydiff --git a/tools/model_compare/src/model_compare/__main__.py b/tools/model_compare/__main__.pysimilarity index 100%rename from tools/model_compare/src/model_compare/__main__.pyrename to tools/model_compare/__main__.pydiff --git a/tools/model_compare/src/model_compare/comparison.py b/tools/model_compare/comparison.pysimilarity index 100%rename from tools/model_compare/src/model_compare/comparison.pyrename to tools/model_compare/comparison.pydiff --git a/tools/model_compare/src/model_compare/formatting.py b/tools/model_compare/formatting.pysimilarity index 100%rename from tools/model_compare/src/model_compare/formatting.pyrename to tools/model_compare/formatting.pydiff --git a/tools/model_compare/src/model_compare/main.py b/tools/model_compare/main.pysimilarity index 100%rename from tools/model_compare/src/model_compare/main.pyrename to tools/model_compare/main.pydiff --git a/tools/model_compare/pyproject.toml b/tools/model_compare/pyproject.tomldeleted file mode 100644index 111b2f2f3..000000000--- a/tools/model_compare/pyproject.toml+++ /dev/null@@ -1,16 +0,0 @@-[project]-name = "model-compare"-version = "0.1.0"-description = "Compare GPU hardware counters across model variants"-requires-python = ">=3.12"-dependencies = ["rich>=13.0.0"]--[project.scripts]-model_compare = "model_compare.main:cli"--[build-system]-requires = ["hatchling"]-build-backend = "hatchling.build"--[tool.hatch.build.targets.wheel]-packages = ["src/model_compare"]diff --git a/tools/model_compare/src/model_compare/runner.py b/tools/model_compare/runner.pysimilarity index 100%rename from tools/model_compare/src/model_compare/runner.pyrename to tools/model_compare/runner.pydiff --git a/tools/pyproject.toml b/tools/pyproject.tomlnew file mode 100644index 000000000..fb54ec1c7--- /dev/null+++ b/tools/pyproject.toml@@ -0,0 +1,84 @@+[project]+name = "tools"+dynamic = ["version"]+description = "A collection of tools for development"+requires-python = ">=3.12"+dependencies = [+ "huggingface-hub>=1.4.1",+ "rich>=14.3.2",+ "tokenizers>=0.22.2",+ "torch>=2.10.0",+ "transformers>=5.5.0",+ "typer>=0.21.1",+ "google-crc32c>=1.8.0",+ "requests>=2.32.5",+ "cattrs>=24.1.0",+]++[dependency-groups]+dev = ["pytest>=9.0.2", "pytest-env>=1.2.0", "ruff>=0.15.0"]++[project.scripts]+export = "data_exporter.main:app"+downloader = "downloader.main:app"+model-compare = "model_compare.main:cli"+gpu-trace = "gpu_trace.main:cli"++[build-system]+requires = ["setuptools>=65.5.0", "wheel"]+build-backend = "setuptools.build_meta"++[tool.setuptools.packages.find]+where = ["."]+include = ["data_exporter*", "downloader*", "model_compare*", "gpu_trace*"]+namespaces = false++[tool.setuptools.dynamic]+version = { attr = "data_exporter.__version__" }++[tool.uv]+package = true+python-preference = "only-managed"++[tool.pyright]+venvPath = "."+venv = ".venv"+pythonVersion = "3.12"+typeCheckingMode = "standard"++[tool.ruff]+target-version = "py312"+line-length = 119++[tool.ruff.lint]+select = ["ALL"]+ignore = [+ "C408",+ "C901",+ "D",+ "EM101",+ "EM102",+ "ERA001",+ "FIX002",+ "F722",+ "FBT001",+ "FBT002",+ "N812",+ "PD008",+ "PGH003",+ "PLC0415",+ "PLR0912",+ "PLR0913",+ "PLR0915",+ "PLR2004",+ "PT",+ "PTH123",+ "RET503",+ "RET504",+ "RUF005",+ "S",+ "SIM108",+ "T20",+ "TD003",+ "TRY003",+]diff --git a/tools/uv.lock b/tools/uv.locknew file mode 100644index 000000000..3846d52ca--- /dev/null+++ b/tools/uv.lock@@ -0,0 +1,1188 @@+version = 1+revision = 3+requires-python = ">=3.12"++[[package]]+name = "annotated-doc"+version = "0.0.4"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/57/ba/046ceea27344560984e26a590f90bc7f4a75b06701f653222458922b558c/annotated_doc-0.0.4.tar.gz", hash = "sha256:fbcda96e87e9c92ad167c2e53839e57503ecfda18804ea28102353485033faa4", size = 7288, upload-time = "2025-11-10T22:07:42.062Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/1e/d3/26bf1008eb3d2daa8ef4cacc7f3bfdc11818d111f7e2d0201bc6e3b49d45/annotated_doc-0.0.4-py3-none-any.whl", hash = "sha256:571ac1dc6991c450b25a9c2d84a3705e2ae7a53467b5d111c24fa8baabbed320", size = 5303, upload-time = "2025-11-10T22:07:40.673Z" },+]++[[package]]+name = "anyio"+version = "4.13.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "idna" },+ { name = "typing-extensions", marker = "python_full_version < '3.13'" },+]+sdist = { url = "https://files.pythonhosted.org/packages/19/14/2c5dd9f512b66549ae92767a9c7b330ae88e1932ca57876909410251fe13/anyio-4.13.0.tar.gz", hash = "sha256:334b70e641fd2221c1505b3890c69882fe4a2df910cba14d97019b90b24439dc", size = 231622, upload-time = "2026-03-24T12:59:09.671Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/da/42/e921fccf5015463e32a3cf6ee7f980a6ed0f395ceeaa45060b61d86486c2/anyio-4.13.0-py3-none-any.whl", hash = "sha256:08b310f9e24a9594186fd75b4f73f4a4152069e3853f1ed8bfbf58369f4ad708", size = 114353, upload-time = "2026-03-24T12:59:08.246Z" },+]++[[package]]+name = "attrs"+version = "26.1.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/9a/8e/82a0fe20a541c03148528be8cac2408564a6c9a0cc7e9171802bc1d26985/attrs-26.1.0.tar.gz", hash = "sha256:d03ceb89cb322a8fd706d4fb91940737b6642aa36998fe130a9bc96c985eff32", size = 952055, upload-time = "2026-03-19T14:22:25.026Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/64/b4/17d4b0b2a2dc85a6df63d1157e028ed19f90d4cd97c36717afef2bc2f395/attrs-26.1.0-py3-none-any.whl", hash = "sha256:c647aa4a12dfbad9333ca4e71fe62ddc36f4e63b2d260a37a8b83d2f043ac309", size = 67548, upload-time = "2026-03-19T14:22:23.645Z" },+]++[[package]]+name = "cattrs"+version = "26.1.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "attrs" },+ { name = "typing-extensions" },+]+sdist = { url = "https://files.pythonhosted.org/packages/a0/ec/ba18945e7d6e55a58364d9fb2e46049c1c2998b3d805f19b703f14e81057/cattrs-26.1.0.tar.gz", hash = "sha256:fa239e0f0ec0715ba34852ce813986dfed1e12117e209b816ab87401271cdd40", size = 495672, upload-time = "2026-02-18T22:15:19.406Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/80/56/60547f7801b97c67e97491dc3d9ade9fbccbd0325058fd3dfcb2f5d98d90/cattrs-26.1.0-py3-none-any.whl", hash = "sha256:d1e0804c42639494d469d08d4f26d6b9de9b8ab26b446db7b5f8c2e97f7c3096", size = 73054, upload-time = "2026-02-18T22:15:17.958Z" },+]++[[package]]+name = "certifi"+version = "2026.2.25"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/af/2d/7bf41579a8986e348fa033a31cdd0e4121114f6bce2457e8876010b092dd/certifi-2026.2.25.tar.gz", hash = "sha256:e887ab5cee78ea814d3472169153c2d12cd43b14bd03329a39a9c6e2e80bfba7", size = 155029, upload-time = "2026-02-25T02:54:17.342Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/9a/3c/c17fb3ca2d9c3acff52e30b309f538586f9f5b9c9cf454f3845fc9af4881/certifi-2026.2.25-py3-none-any.whl", hash = "sha256:027692e4402ad994f1c42e52a4997a9763c646b73e4096e4d5d6db8af1d6f0fa", size = 153684, upload-time = "2026-02-25T02:54:15.766Z" },+]++[[package]]+name = "charset-normalizer"+version = "3.4.7"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/e7/a1/67fe25fac3c7642725500a3f6cfe5821ad557c3abb11c9d20d12c7008d3e/charset_normalizer-3.4.7.tar.gz", hash = "sha256:ae89db9e5f98a11a4bf50407d4363e7b09b31e55bc117b4f7d80aab97ba009e5", size = 144271, upload-time = "2026-04-02T09:28:39.342Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/0c/eb/4fc8d0a7110eb5fc9cc161723a34a8a6c200ce3b4fbf681bc86feee22308/charset_normalizer-3.4.7-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:eca9705049ad3c7345d574e3510665cb2cf844c2f2dcfe675332677f081cbd46", size = 311328, upload-time = "2026-04-02T09:26:24.331Z" },+ { url = "https://files.pythonhosted.org/packages/f8/e3/0fadc706008ac9d7b9b5be6dc767c05f9d3e5df51744ce4cc9605de7b9f4/charset_normalizer-3.4.7-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6178f72c5508bfc5fd446a5905e698c6212932f25bcdd4b47a757a50605a90e2", size = 208061, upload-time = "2026-04-02T09:26:25.568Z" },+ { url = "https://files.pythonhosted.org/packages/42/f0/3dd1045c47f4a4604df85ec18ad093912ae1344ac706993aff91d38773a2/charset_normalizer-3.4.7-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:e1421b502d83040e6d7fb2fb18dff63957f720da3d77b2fbd3187ceb63755d7b", size = 229031, upload-time = "2026-04-02T09:26:26.865Z" },+ { url = "https://files.pythonhosted.org/packages/dc/67/675a46eb016118a2fbde5a277a5d15f4f69d5f3f5f338e5ee2f8948fcf43/charset_normalizer-3.4.7-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:edac0f1ab77644605be2cbba52e6b7f630731fc42b34cb0f634be1a6eface56a", size = 225239, upload-time = "2026-04-02T09:26:28.044Z" },+ { url = "https://files.pythonhosted.org/packages/4b/f8/d0118a2f5f23b02cd166fa385c60f9b0d4f9194f574e2b31cef350ad7223/charset_normalizer-3.4.7-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:5649fd1c7bade02f320a462fdefd0b4bd3ce036065836d4f42e0de958038e116", size = 216589, upload-time = "2026-04-02T09:26:29.239Z" },+ { url = "https://files.pythonhosted.org/packages/b1/f1/6d2b0b261b6c4ceef0fcb0d17a01cc5bc53586c2d4796fa04b5c540bc13d/charset_normalizer-3.4.7-cp312-cp312-manylinux_2_31_armv7l.whl", hash = "sha256:203104ed3e428044fd943bc4bf45fa73c0730391f9621e37fe39ecf477b128cb", size = 202733, upload-time = "2026-04-02T09:26:30.5Z" },+ { url = "https://files.pythonhosted.org/packages/6f/c0/7b1f943f7e87cc3db9626ba17807d042c38645f0a1d4415c7a14afb5591f/charset_normalizer-3.4.7-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:298930cec56029e05497a76988377cbd7457ba864beeea92ad7e844fe74cd1f1", size = 212652, upload-time = "2026-04-02T09:26:31.709Z" },+ { url = "https://files.pythonhosted.org/packages/38/dd/5a9ab159fe45c6e72079398f277b7d2b523e7f716acc489726115a910097/charset_normalizer-3.4.7-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:708838739abf24b2ceb208d0e22403dd018faeef86ddac04319a62ae884c4f15", size = 211229, upload-time = "2026-04-02T09:26:33.282Z" },+ { url = "https://files.pythonhosted.org/packages/d5/ff/531a1cad5ca855d1c1a8b69cb71abfd6d85c0291580146fda7c82857caa1/charset_normalizer-3.4.7-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:0f7eb884681e3938906ed0434f20c63046eacd0111c4ba96f27b76084cd679f5", size = 203552, upload-time = "2026-04-02T09:26:34.845Z" },+ { url = "https://files.pythonhosted.org/packages/c1/4c/a5fb52d528a8ca41f7598cb619409ece30a169fbdf9cdce592e53b46c3a6/charset_normalizer-3.4.7-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:4dc1e73c36828f982bfe79fadf5919923f8a6f4df2860804db9a98c48824ce8d", size = 230806, upload-time = "2026-04-02T09:26:36.152Z" },+ { url = "https://files.pythonhosted.org/packages/59/7a/071feed8124111a32b316b33ae4de83d36923039ef8cf48120266844285b/charset_normalizer-3.4.7-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:aed52fea0513bac0ccde438c188c8a471c4e0f457c2dd20cdbf6ea7a450046c7", size = 212316, upload-time = "2026-04-02T09:26:37.672Z" },+ { url = "https://files.pythonhosted.org/packages/fd/35/f7dba3994312d7ba508e041eaac39a36b120f32d4c8662b8814dab876431/charset_normalizer-3.4.7-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:fea24543955a6a729c45a73fe90e08c743f0b3334bbf3201e6c4bc1b0c7fa464", size = 227274, upload-time = "2026-04-02T09:26:38.93Z" },+ { url = "https://files.pythonhosted.org/packages/8a/2d/a572df5c9204ab7688ec1edc895a73ebded3b023bb07364710b05dd1c9be/charset_normalizer-3.4.7-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:bb6d88045545b26da47aa879dd4a89a71d1dce0f0e549b1abcb31dfe4a8eac49", size = 218468, upload-time = "2026-04-02T09:26:40.17Z" },+ { url = "https://files.pythonhosted.org/packages/86/eb/890922a8b03a568ca2f336c36585a4713c55d4d67bf0f0c78924be6315ca/charset_normalizer-3.4.7-cp312-cp312-win32.whl", hash = "sha256:2257141f39fe65a3fdf38aeccae4b953e5f3b3324f4ff0daf9f15b8518666a2c", size = 148460, upload-time = "2026-04-02T09:26:41.416Z" },+ { url = "https://files.pythonhosted.org/packages/35/d9/0e7dffa06c5ab081f75b1b786f0aefc88365825dfcd0ac544bdb7b2b6853/charset_normalizer-3.4.7-cp312-cp312-win_amd64.whl", hash = "sha256:5ed6ab538499c8644b8a3e18debabcd7ce684f3fa91cf867521a7a0279cab2d6", size = 159330, upload-time = "2026-04-02T09:26:42.554Z" },+ { url = "https://files.pythonhosted.org/packages/9e/5d/481bcc2a7c88ea6b0878c299547843b2521ccbc40980cb406267088bc701/charset_normalizer-3.4.7-cp312-cp312-win_arm64.whl", hash = "sha256:56be790f86bfb2c98fb742ce566dfb4816e5a83384616ab59c49e0604d49c51d", size = 147828, upload-time = "2026-04-02T09:26:44.075Z" },+ { url = "https://files.pythonhosted.org/packages/c1/3b/66777e39d3ae1ddc77ee606be4ec6d8cbd4c801f65e5a1b6f2b11b8346dd/charset_normalizer-3.4.7-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:f496c9c3cc02230093d8330875c4c3cdfc3b73612a5fd921c65d39cbcef08063", size = 309627, upload-time = "2026-04-02T09:26:45.198Z" },+ { url = "https://files.pythonhosted.org/packages/2e/4e/b7f84e617b4854ade48a1b7915c8ccfadeba444d2a18c291f696e37f0d3b/charset_normalizer-3.4.7-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:0ea948db76d31190bf08bd371623927ee1339d5f2a0b4b1b4a4439a65298703c", size = 207008, upload-time = "2026-04-02T09:26:46.824Z" },+ { url = "https://files.pythonhosted.org/packages/c4/bb/ec73c0257c9e11b268f018f068f5d00aa0ef8c8b09f7753ebd5f2880e248/charset_normalizer-3.4.7-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:a277ab8928b9f299723bc1a2dabb1265911b1a76341f90a510368ca44ad9ab66", size = 228303, upload-time = "2026-04-02T09:26:48.397Z" },+ { url = "https://files.pythonhosted.org/packages/85/fb/32d1f5033484494619f701e719429c69b766bfc4dbc61aa9e9c8c166528b/charset_normalizer-3.4.7-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:3bec022aec2c514d9cf199522a802bd007cd588ab17ab2525f20f9c34d067c18", size = 224282, upload-time = "2026-04-02T09:26:49.684Z" },+ { url = "https://files.pythonhosted.org/packages/fa/07/330e3a0dda4c404d6da83b327270906e9654a24f6c546dc886a0eb0ffb23/charset_normalizer-3.4.7-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:e044c39e41b92c845bc815e5ae4230804e8e7bc29e399b0437d64222d92809dd", size = 215595, upload-time = "2026-04-02T09:26:50.915Z" },+ { url = "https://files.pythonhosted.org/packages/e3/7c/fc890655786e423f02556e0216d4b8c6bcb6bdfa890160dc66bf52dee468/charset_normalizer-3.4.7-cp313-cp313-manylinux_2_31_armv7l.whl", hash = "sha256:f495a1652cf3fbab2eb0639776dad966c2fb874d79d87ca07f9d5f059b8bd215", size = 201986, upload-time = "2026-04-02T09:26:52.197Z" },+ { url = "https://files.pythonhosted.org/packages/d8/97/bfb18b3db2aed3b90cf54dc292ad79fdd5ad65c4eae454099475cbeadd0d/charset_normalizer-3.4.7-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:e712b419df8ba5e42b226c510472b37bd57b38e897d3eca5e8cfd410a29fa859", size = 211711, upload-time = "2026-04-02T09:26:53.49Z" },+ { url = "https://files.pythonhosted.org/packages/6f/a5/a581c13798546a7fd557c82614a5c65a13df2157e9ad6373166d2a3e645d/charset_normalizer-3.4.7-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:7804338df6fcc08105c7745f1502ba68d900f45fd770d5bdd5288ddccb8a42d8", size = 210036, upload-time = "2026-04-02T09:26:54.975Z" },+ { url = "https://files.pythonhosted.org/packages/8c/bf/b3ab5bcb478e4193d517644b0fb2bf5497fbceeaa7a1bc0f4d5b50953861/charset_normalizer-3.4.7-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:481551899c856c704d58119b5025793fa6730adda3571971af568f66d2424bb5", size = 202998, upload-time = "2026-04-02T09:26:56.303Z" },+ { url = "https://files.pythonhosted.org/packages/e7/4e/23efd79b65d314fa320ec6017b4b5834d5c12a58ba4610aa353af2e2f577/charset_normalizer-3.4.7-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:f59099f9b66f0d7145115e6f80dd8b1d847176df89b234a5a6b3f00437aa0832", size = 230056, upload-time = "2026-04-02T09:26:57.554Z" },+ { url = "https://files.pythonhosted.org/packages/b9/9f/1e1941bc3f0e01df116e68dc37a55c4d249df5e6fa77f008841aef68264f/charset_normalizer-3.4.7-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:f59ad4c0e8f6bba240a9bb85504faa1ab438237199d4cce5f622761507b8f6a6", size = 211537, upload-time = "2026-04-02T09:26:58.843Z" },+ { url = "https://files.pythonhosted.org/packages/80/0f/088cbb3020d44428964a6c97fe1edfb1b9550396bf6d278330281e8b709c/charset_normalizer-3.4.7-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:3dedcc22d73ec993f42055eff4fcfed9318d1eeb9a6606c55892a26964964e48", size = 226176, upload-time = "2026-04-02T09:27:00.437Z" },+ { url = "https://files.pythonhosted.org/packages/6a/9f/130394f9bbe06f4f63e22641d32fc9b202b7e251c9aef4db044324dac493/charset_normalizer-3.4.7-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:64f02c6841d7d83f832cd97ccf8eb8a906d06eb95d5276069175c696b024b60a", size = 217723, upload-time = "2026-04-02T09:27:02.021Z" },+ { url = "https://files.pythonhosted.org/packages/73/55/c469897448a06e49f8fa03f6caae97074fde823f432a98f979cc42b90e69/charset_normalizer-3.4.7-cp313-cp313-win32.whl", hash = "sha256:4042d5c8f957e15221d423ba781e85d553722fc4113f523f2feb7b188cc34c5e", size = 148085, upload-time = "2026-04-02T09:27:03.192Z" },+ { url = "https://files.pythonhosted.org/packages/5d/78/1b74c5bbb3f99b77a1715c91b3e0b5bdb6fe302d95ace4f5b1bec37b0167/charset_normalizer-3.4.7-cp313-cp313-win_amd64.whl", hash = "sha256:3946fa46a0cf3e4c8cb1cc52f56bb536310d34f25f01ca9b6c16afa767dab110", size = 158819, upload-time = "2026-04-02T09:27:04.454Z" },+ { url = "https://files.pythonhosted.org/packages/68/86/46bd42279d323deb8687c4a5a811fd548cb7d1de10cf6535d099877a9a9f/charset_normalizer-3.4.7-cp313-cp313-win_arm64.whl", hash = "sha256:80d04837f55fc81da168b98de4f4b797ef007fc8a79ab71c6ec9bc4dd662b15b", size = 147915, upload-time = "2026-04-02T09:27:05.971Z" },+ { url = "https://files.pythonhosted.org/packages/97/c8/c67cb8c70e19ef1960b97b22ed2a1567711de46c4ddf19799923adc836c2/charset_normalizer-3.4.7-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:c36c333c39be2dbca264d7803333c896ab8fa7d4d6f0ab7edb7dfd7aea6e98c0", size = 309234, upload-time = "2026-04-02T09:27:07.194Z" },+ { url = "https://files.pythonhosted.org/packages/99/85/c091fdee33f20de70d6c8b522743b6f831a2f1cd3ff86de4c6a827c48a76/charset_normalizer-3.4.7-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1c2aed2e5e41f24ea8ef1590b8e848a79b56f3a5564a65ceec43c9d692dc7d8a", size = 208042, upload-time = "2026-04-02T09:27:08.749Z" },+ { url = "https://files.pythonhosted.org/packages/87/1c/ab2ce611b984d2fd5d86a5a8a19c1ae26acac6bad967da4967562c75114d/charset_normalizer-3.4.7-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:54523e136b8948060c0fa0bc7b1b50c32c186f2fceee897a495406bb6e311d2b", size = 228706, upload-time = "2026-04-02T09:27:09.951Z" },+ { url = "https://files.pythonhosted.org/packages/a8/29/2b1d2cb00bf085f59d29eb773ce58ec2d325430f8c216804a0a5cd83cbca/charset_normalizer-3.4.7-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:715479b9a2802ecac752a3b0efa2b0b60285cf962ee38414211abdfccc233b41", size = 224727, upload-time = "2026-04-02T09:27:11.175Z" },+ { url = "https://files.pythonhosted.org/packages/47/5c/032c2d5a07fe4d4855fea851209cca2b6f03ebeb6d4e3afdb3358386a684/charset_normalizer-3.4.7-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:bd6c2a1c7573c64738d716488d2cdd3c00e340e4835707d8fdb8dc1a66ef164e", size = 215882, upload-time = "2026-04-02T09:27:12.446Z" },+ { url = "https://files.pythonhosted.org/packages/2c/c2/356065d5a8b78ed04499cae5f339f091946a6a74f91e03476c33f0ab7100/charset_normalizer-3.4.7-cp314-cp314-manylinux_2_31_armv7l.whl", hash = "sha256:c45e9440fb78f8ddabcf714b68f936737a121355bf59f3907f4e17721b9d1aae", size = 200860, upload-time = "2026-04-02T09:27:13.721Z" },+ { url = "https://files.pythonhosted.org/packages/0c/cd/a32a84217ced5039f53b29f460962abb2d4420def55afabe45b1c3c7483d/charset_normalizer-3.4.7-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:3534e7dcbdcf757da6b85a0bbf5b6868786d5982dd959b065e65481644817a18", size = 211564, upload-time = "2026-04-02T09:27:15.272Z" },+ { url = "https://files.pythonhosted.org/packages/44/86/58e6f13ce26cc3b8f4a36b94a0f22ae2f00a72534520f4ae6857c4b81f89/charset_normalizer-3.4.7-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:e8ac484bf18ce6975760921bb6148041faa8fef0547200386ea0b52b5d27bf7b", size = 211276, upload-time = "2026-04-02T09:27:16.834Z" },+ { url = "https://files.pythonhosted.org/packages/8f/fe/d17c32dc72e17e155e06883efa84514ca375f8a528ba2546bee73fc4df81/charset_normalizer-3.4.7-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:a5fe03b42827c13cdccd08e6c0247b6a6d4b5e3cdc53fd1749f5896adcdc2356", size = 201238, upload-time = "2026-04-02T09:27:18.229Z" },+ { url = "https://files.pythonhosted.org/packages/6a/29/f33daa50b06525a237451cdb6c69da366c381a3dadcd833fa5676bc468b3/charset_normalizer-3.4.7-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:2d6eb928e13016cea4f1f21d1e10c1cebd5a421bc57ddf5b1142ae3f86824fab", size = 230189, upload-time = "2026-04-02T09:27:19.445Z" },+ { url = "https://files.pythonhosted.org/packages/b6/6e/52c84015394a6a0bdcd435210a7e944c5f94ea1055f5cc5d56c5fe368e7b/charset_normalizer-3.4.7-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:e74327fb75de8986940def6e8dee4f127cc9752bee7355bb323cc5b2659b6d46", size = 211352, upload-time = "2026-04-02T09:27:20.79Z" },+ { url = "https://files.pythonhosted.org/packages/8c/d7/4353be581b373033fb9198bf1da3cf8f09c1082561e8e922aa7b39bf9fe8/charset_normalizer-3.4.7-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:d6038d37043bced98a66e68d3aa2b6a35505dc01328cd65217cefe82f25def44", size = 227024, upload-time = "2026-04-02T09:27:22.063Z" },+ { url = "https://files.pythonhosted.org/packages/30/45/99d18aa925bd1740098ccd3060e238e21115fffbfdcb8f3ece837d0ace6c/charset_normalizer-3.4.7-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:7579e913a5339fb8fa133f6bbcfd8e6749696206cf05acdbdca71a1b436d8e72", size = 217869, upload-time = "2026-04-02T09:27:23.486Z" },+ { url = "https://files.pythonhosted.org/packages/5c/05/5ee478aa53f4bb7996482153d4bfe1b89e0f087f0ab6b294fcf92d595873/charset_normalizer-3.4.7-cp314-cp314-win32.whl", hash = "sha256:5b77459df20e08151cd6f8b9ef8ef1f961ef73d85c21a555c7eed5b79410ec10", size = 148541, upload-time = "2026-04-02T09:27:25.146Z" },+ { url = "https://files.pythonhosted.org/packages/48/77/72dcb0921b2ce86420b2d79d454c7022bf5be40202a2a07906b9f2a35c97/charset_normalizer-3.4.7-cp314-cp314-win_amd64.whl", hash = "sha256:92a0a01ead5e668468e952e4238cccd7c537364eb7d851ab144ab6627dbbe12f", size = 159634, upload-time = "2026-04-02T09:27:26.642Z" },+ { url = "https://files.pythonhosted.org/packages/c6/a3/c2369911cd72f02386e4e340770f6e158c7980267da16af8f668217abaa0/charset_normalizer-3.4.7-cp314-cp314-win_arm64.whl", hash = "sha256:67f6279d125ca0046a7fd386d01b311c6363844deac3e5b069b514ba3e63c246", size = 148384, upload-time = "2026-04-02T09:27:28.271Z" },+ { url = "https://files.pythonhosted.org/packages/94/09/7e8a7f73d24dba1f0035fbbf014d2c36828fc1bf9c88f84093e57d315935/charset_normalizer-3.4.7-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:effc3f449787117233702311a1b7d8f59cba9ced946ba727bdc329ec69028e24", size = 330133, upload-time = "2026-04-02T09:27:29.474Z" },+ { url = "https://files.pythonhosted.org/packages/8d/da/96975ddb11f8e977f706f45cddd8540fd8242f71ecdb5d18a80723dcf62c/charset_normalizer-3.4.7-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:fbccdc05410c9ee21bbf16a35f4c1d16123dcdeb8a1d38f33654fa21d0234f79", size = 216257, upload-time = "2026-04-02T09:27:30.793Z" },+ { url = "https://files.pythonhosted.org/packages/e5/e8/1d63bf8ef2d388e95c64b2098f45f84758f6d102a087552da1485912637b/charset_normalizer-3.4.7-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:733784b6d6def852c814bce5f318d25da2ee65dd4839a0718641c696e09a2960", size = 234851, upload-time = "2026-04-02T09:27:32.44Z" },+ { url = "https://files.pythonhosted.org/packages/9b/40/e5ff04233e70da2681fa43969ad6f66ca5611d7e669be0246c4c7aaf6dc8/charset_normalizer-3.4.7-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:a89c23ef8d2c6b27fd200a42aa4ac72786e7c60d40efdc76e6011260b6e949c4", size = 233393, upload-time = "2026-04-02T09:27:34.03Z" },+ { url = "https://files.pythonhosted.org/packages/be/c1/06c6c49d5a5450f76899992f1ee40b41d076aee9279b49cf9974d2f313d5/charset_normalizer-3.4.7-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:6c114670c45346afedc0d947faf3c7f701051d2518b943679c8ff88befe14f8e", size = 223251, upload-time = "2026-04-02T09:27:35.369Z" },+ { url = "https://files.pythonhosted.org/packages/2b/9f/f2ff16fb050946169e3e1f82134d107e5d4ae72647ec8a1b1446c148480f/charset_normalizer-3.4.7-cp314-cp314t-manylinux_2_31_armv7l.whl", hash = "sha256:a180c5e59792af262bf263b21a3c49353f25945d8d9f70628e73de370d55e1e1", size = 206609, upload-time = "2026-04-02T09:27:36.661Z" },+ { url = "https://files.pythonhosted.org/packages/69/d5/a527c0cd8d64d2eab7459784fb4169a0ac76e5a6fc5237337982fd61347e/charset_normalizer-3.4.7-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:3c9a494bc5ec77d43cea229c4f6db1e4d8fe7e1bbffa8b6f0f0032430ff8ab44", size = 220014, upload-time = "2026-04-02T09:27:38.019Z" },+ { url = "https://files.pythonhosted.org/packages/7e/80/8a7b8104a3e203074dc9aa2c613d4b726c0e136bad1cc734594b02867972/charset_normalizer-3.4.7-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:8d828b6667a32a728a1ad1d93957cdf37489c57b97ae6c4de2860fa749b8fc1e", size = 218979, upload-time = "2026-04-02T09:27:39.37Z" },+ { url = "https://files.pythonhosted.org/packages/02/9a/b759b503d507f375b2b5c153e4d2ee0a75aa215b7f2489cf314f4541f2c0/charset_normalizer-3.4.7-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:cf1493cd8607bec4d8a7b9b004e699fcf8f9103a9284cc94962cb73d20f9d4a3", size = 209238, upload-time = "2026-04-02T09:27:40.722Z" },+ { url = "https://files.pythonhosted.org/packages/c2/4e/0f3f5d47b86bdb79256e7290b26ac847a2832d9a4033f7eb2cd4bcf4bb5b/charset_normalizer-3.4.7-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:0c96c3b819b5c3e9e165495db84d41914d6894d55181d2d108cc1a69bfc9cce0", size = 236110, upload-time = "2026-04-02T09:27:42.33Z" },+ { url = "https://files.pythonhosted.org/packages/96/23/bce28734eb3ed2c91dcf93abeb8a5cf393a7b2749725030bb630e554fdd8/charset_normalizer-3.4.7-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:752a45dc4a6934060b3b0dab47e04edc3326575f82be64bc4fc293914566503e", size = 219824, upload-time = "2026-04-02T09:27:43.924Z" },+ { url = "https://files.pythonhosted.org/packages/2c/6f/6e897c6984cc4d41af319b077f2f600fc8214eb2fe2d6bcb79141b882400/charset_normalizer-3.4.7-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:8778f0c7a52e56f75d12dae53ae320fae900a8b9b4164b981b9c5ce059cd1fcb", size = 233103, upload-time = "2026-04-02T09:27:45.348Z" },+ { url = "https://files.pythonhosted.org/packages/76/22/ef7bd0fe480a0ae9b656189ec00744b60933f68b4f42a7bb06589f6f576a/charset_normalizer-3.4.7-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:ce3412fbe1e31eb81ea42f4169ed94861c56e643189e1e75f0041f3fe7020abe", size = 225194, upload-time = "2026-04-02T09:27:46.706Z" },+ { url = "https://files.pythonhosted.org/packages/c5/a7/0e0ab3e0b5bc1219bd80a6a0d4d72ca74d9250cb2382b7c699c147e06017/charset_normalizer-3.4.7-cp314-cp314t-win32.whl", hash = "sha256:c03a41a8784091e67a39648f70c5f97b5b6a37f216896d44d2cdcb82615339a0", size = 159827, upload-time = "2026-04-02T09:27:48.053Z" },+ { url = "https://files.pythonhosted.org/packages/7a/1d/29d32e0fb40864b1f878c7f5a0b343ae676c6e2b271a2d55cc3a152391da/charset_normalizer-3.4.7-cp314-cp314t-win_amd64.whl", hash = "sha256:03853ed82eeebbce3c2abfdbc98c96dc205f32a79627688ac9a27370ea61a49c", size = 174168, upload-time = "2026-04-02T09:27:49.795Z" },+ { url = "https://files.pythonhosted.org/packages/de/32/d92444ad05c7a6e41fb2036749777c163baf7a0301a040cb672d6b2b1ae9/charset_normalizer-3.4.7-cp314-cp314t-win_arm64.whl", hash = "sha256:c35abb8bfff0185efac5878da64c45dafd2b37fb0383add1be155a763c1f083d", size = 153018, upload-time = "2026-04-02T09:27:51.116Z" },+ { url = "https://files.pythonhosted.org/packages/db/8f/61959034484a4a7c527811f4721e75d02d653a35afb0b6054474d8185d4c/charset_normalizer-3.4.7-py3-none-any.whl", hash = "sha256:3dce51d0f5e7951f8bb4900c257dad282f49190fdbebecd4ba99bcc41fef404d", size = 61958, upload-time = "2026-04-02T09:28:37.794Z" },+]++[[package]]+name = "click"+version = "8.3.1"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "colorama", marker = "sys_platform == 'win32'" },+]+sdist = { url = "https://files.pythonhosted.org/packages/3d/fa/656b739db8587d7b5dfa22e22ed02566950fbfbcdc20311993483657a5c0/click-8.3.1.tar.gz", hash = "sha256:12ff4785d337a1bb490bb7e9c2b1ee5da3112e94a8622f26a6c77f5d2fc6842a", size = 295065, upload-time = "2025-11-15T20:45:42.706Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/98/78/01c019cdb5d6498122777c1a43056ebb3ebfeef2076d9d026bfe15583b2b/click-8.3.1-py3-none-any.whl", hash = "sha256:981153a64e25f12d547d3426c367a4857371575ee7ad18df2a6183ab0545b2a6", size = 108274, upload-time = "2025-11-15T20:45:41.139Z" },+]++[[package]]+name = "colorama"+version = "0.4.6"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/d8/53/6f443c9a4a8358a93a6792e2acffb9d9d5cb0a5cfd8802644b7b1c9a02e4/colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44", size = 27697, upload-time = "2022-10-25T02:36:22.414Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/d1/d6/3965ed04c63042e047cb6a3e6ed1a63a35087b6a609aa3a15ed8ac56c221/colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6", size = 25335, upload-time = "2022-10-25T02:36:20.889Z" },+]++[[package]]+name = "cuda-bindings"+version = "13.2.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "cuda-pathfinder" },+]+wheels = [+ { url = "https://files.pythonhosted.org/packages/52/c8/b2589d68acf7e3d63e2be330b84bc25712e97ed799affbca7edd7eae25d6/cuda_bindings-13.2.0-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e865447abfb83d6a98ad5130ed3c70b1fc295ae3eeee39fd07b4ddb0671b6788", size = 5722404, upload-time = "2026-03-11T00:12:44.041Z" },+ { url = "https://files.pythonhosted.org/packages/1f/92/f899f7bbb5617bb65ec52a6eac1e9a1447a86b916c4194f8a5001b8cde0c/cuda_bindings-13.2.0-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:46d8776a55d6d5da9dd6e9858fba2efcda2abe6743871dee47dd06eb8cb6d955", size = 6320619, upload-time = "2026-03-11T00:12:45.939Z" },+ { url = "https://files.pythonhosted.org/packages/df/93/eef988860a3ca985f82c4f3174fc0cdd94e07331ba9a92e8e064c260337f/cuda_bindings-13.2.0-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6629ca2df6f795b784752409bcaedbd22a7a651b74b56a165ebc0c9dcbd504d0", size = 5614610, upload-time = "2026-03-11T00:12:50.337Z" },+ { url = "https://files.pythonhosted.org/packages/18/23/6db3aba46864aee357ab2415135b3fe3da7e9f1fa0221fa2a86a5968099c/cuda_bindings-13.2.0-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:7dca0da053d3b4cc4869eff49c61c03f3c5dbaa0bcd712317a358d5b8f3f385d", size = 6149914, upload-time = "2026-03-11T00:12:52.374Z" },+ { url = "https://files.pythonhosted.org/packages/c0/87/87a014f045b77c6de5c8527b0757fe644417b184e5367db977236a141602/cuda_bindings-13.2.0-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:a6464b30f46692d6c7f65d4a0e0450d81dd29de3afc1bb515653973d01c2cd6e", size = 5685673, upload-time = "2026-03-11T00:12:56.371Z" },+ { url = "https://files.pythonhosted.org/packages/ee/5e/c0fe77a73aaefd3fff25ffaccaac69c5a63eafdf8b9a4c476626ef0ac703/cuda_bindings-13.2.0-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:f4af9f3e1be603fa12d5ad6cfca7844c9d230befa9792b5abdf7dd79979c3626", size = 6191386, upload-time = "2026-03-11T00:12:58.965Z" },+ { url = "https://files.pythonhosted.org/packages/5f/58/ed2c3b39c8dd5f96aa7a4abef0d47a73932c7a988e30f5fa428f00ed0da1/cuda_bindings-13.2.0-cp314-cp314t-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:df850a1ff8ce1b3385257b08e47b70e959932f5f432d0a4e46a355962b4e4771", size = 5507469, upload-time = "2026-03-11T00:13:04.063Z" },+ { url = "https://files.pythonhosted.org/packages/1f/01/0c941b112ceeb21439b05895eace78ca1aa2eaaf695c8521a068fd9b4c00/cuda_bindings-13.2.0-cp314-cp314t-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:e8a16384c6494e5485f39314b0b4afb04bee48d49edb16d5d8593fd35bbd231b", size = 6059693, upload-time = "2026-03-11T00:13:06.003Z" },+]++[[package]]+name = "cuda-pathfinder"+version = "1.5.0"+source = { registry = "https://pypi.org/simple" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/93/66/0c02bd330e7d976f83fa68583d6198d76f23581bcbb5c0e98a6148f326e5/cuda_pathfinder-1.5.0-py3-none-any.whl", hash = "sha256:498f90a9e9de36044a7924742aecce11c50c49f735f1bc53e05aa46de9ea4110", size = 49739, upload-time = "2026-03-24T21:14:30.869Z" },+]++[[package]]+name = "cuda-toolkit"+version = "13.0.2"+source = { registry = "https://pypi.org/simple" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/57/b2/453099f5f3b698d7d0eab38916aac44c7f76229f451709e2eb9db6615dcd/cuda_toolkit-13.0.2-py2.py3-none-any.whl", hash = "sha256:b198824cf2f54003f50d64ada3a0f184b42ca0846c1c94192fa269ecd97a66eb", size = 2364, upload-time = "2025-12-19T23:24:07.328Z" },+]++[package.optional-dependencies]+cublas = [+ { name = "nvidia-cublas", marker = "sys_platform == 'linux' or sys_platform == 'win32'" },+]+cudart = [+ { name = "nvidia-cuda-runtime", marker = "sys_platform == 'linux' or sys_platform == 'win32'" },+]+cufft = [+ { name = "nvidia-cufft", marker = "sys_platform == 'linux' or sys_platform == 'win32'" },+]+cufile = [+ { name = "nvidia-cufile", marker = "sys_platform == 'linux'" },+]+cupti = [+ { name = "nvidia-cuda-cupti", marker = "sys_platform == 'linux' or sys_platform == 'win32'" },+]+curand = [+ { name = "nvidia-curand", marker = "sys_platform == 'linux' or sys_platform == 'win32'" },+]+cusolver = [+ { name = "nvidia-cusolver", marker = "sys_platform == 'linux' or sys_platform == 'win32'" },+]+cusparse = [+ { name = "nvidia-cusparse", marker = "sys_platform == 'linux' or sys_platform == 'win32'" },+]+nvjitlink = [+ { name = "nvidia-nvjitlink", marker = "sys_platform == 'linux' or sys_platform == 'win32'" },+]+nvrtc = [+ { name = "nvidia-cuda-nvrtc", marker = "sys_platform == 'linux' or sys_platform == 'win32'" },+]+nvtx = [+ { name = "nvidia-nvtx", marker = "sys_platform == 'linux' or sys_platform == 'win32'" },+]++[[package]]+name = "filelock"+version = "3.25.2"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/94/b8/00651a0f559862f3bb7d6f7477b192afe3f583cc5e26403b44e59a55ab34/filelock-3.25.2.tar.gz", hash = "sha256:b64ece2b38f4ca29dd3e810287aa8c48182bbecd1ae6e9ae126c9b35f1382694", size = 40480, upload-time = "2026-03-11T20:45:38.487Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/a4/a5/842ae8f0c08b61d6484b52f99a03510a3a72d23141942d216ebe81fefbce/filelock-3.25.2-py3-none-any.whl", hash = "sha256:ca8afb0da15f229774c9ad1b455ed96e85a81373065fb10446672f64444ddf70", size = 26759, upload-time = "2026-03-11T20:45:37.437Z" },+]++[[package]]+name = "fsspec"+version = "2026.3.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/e1/cf/b50ddf667c15276a9ab15a70ef5f257564de271957933ffea49d2cdbcdfb/fsspec-2026.3.0.tar.gz", hash = "sha256:1ee6a0e28677557f8c2f994e3eea77db6392b4de9cd1f5d7a9e87a0ae9d01b41", size = 313547, upload-time = "2026-03-27T19:11:14.892Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/d5/1f/5f4a3cd9e4440e9d9bc78ad0a91a1c8d46b4d429d5239ebe6793c9fe5c41/fsspec-2026.3.0-py3-none-any.whl", hash = "sha256:d2ceafaad1b3457968ed14efa28798162f1638dbb5d2a6868a2db002a5ee39a4", size = 202595, upload-time = "2026-03-27T19:11:13.595Z" },+]++[[package]]+name = "google-crc32c"+version = "1.8.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/03/41/4b9c02f99e4c5fb477122cd5437403b552873f014616ac1d19ac8221a58d/google_crc32c-1.8.0.tar.gz", hash = "sha256:a428e25fb7691024de47fecfbff7ff957214da51eddded0da0ae0e0f03a2cf79", size = 14192, upload-time = "2025-12-16T00:35:25.142Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/e9/5f/7307325b1198b59324c0fa9807cafb551afb65e831699f2ce211ad5c8240/google_crc32c-1.8.0-cp312-cp312-macosx_12_0_arm64.whl", hash = "sha256:4b8286b659c1335172e39563ab0a768b8015e88e08329fa5321f774275fc3113", size = 31300, upload-time = "2025-12-16T00:21:56.723Z" },+ { url = "https://files.pythonhosted.org/packages/21/8e/58c0d5d86e2220e6a37befe7e6a94dd2f6006044b1a33edf1ff6d9f7e319/google_crc32c-1.8.0-cp312-cp312-macosx_12_0_x86_64.whl", hash = "sha256:2a3dc3318507de089c5384cc74d54318401410f82aa65b2d9cdde9d297aca7cb", size = 30867, upload-time = "2025-12-16T00:38:31.302Z" },+ { url = "https://files.pythonhosted.org/packages/ce/a9/a780cc66f86335a6019f557a8aaca8fbb970728f0efd2430d15ff1beae0e/google_crc32c-1.8.0-cp312-cp312-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:14f87e04d613dfa218d6135e81b78272c3b904e2a7053b841481b38a7d901411", size = 33364, upload-time = "2025-12-16T00:40:22.96Z" },+ { url = "https://files.pythonhosted.org/packages/21/3f/3457ea803db0198c9aaca2dd373750972ce28a26f00544b6b85088811939/google_crc32c-1.8.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:cb5c869c2923d56cb0c8e6bcdd73c009c36ae39b652dbe46a05eb4ef0ad01454", size = 33740, upload-time = "2025-12-16T00:40:23.96Z" },+ { url = "https://files.pythonhosted.org/packages/df/c0/87c2073e0c72515bb8733d4eef7b21548e8d189f094b5dad20b0ecaf64f6/google_crc32c-1.8.0-cp312-cp312-win_amd64.whl", hash = "sha256:3cc0c8912038065eafa603b238abf252e204accab2a704c63b9e14837a854962", size = 34437, upload-time = "2025-12-16T00:35:21.395Z" },+ { url = "https://files.pythonhosted.org/packages/d1/db/000f15b41724589b0e7bc24bc7a8967898d8d3bc8caf64c513d91ef1f6c0/google_crc32c-1.8.0-cp313-cp313-macosx_12_0_arm64.whl", hash = "sha256:3ebb04528e83b2634857f43f9bb8ef5b2bbe7f10f140daeb01b58f972d04736b", size = 31297, upload-time = "2025-12-16T00:23:20.709Z" },+ { url = "https://files.pythonhosted.org/packages/d7/0d/8ebed0c39c53a7e838e2a486da8abb0e52de135f1b376ae2f0b160eb4c1a/google_crc32c-1.8.0-cp313-cp313-macosx_12_0_x86_64.whl", hash = "sha256:450dc98429d3e33ed2926fc99ee81001928d63460f8538f21a5d6060912a8e27", size = 30867, upload-time = "2025-12-16T00:43:14.628Z" },+ { url = "https://files.pythonhosted.org/packages/ce/42/b468aec74a0354b34c8cbf748db20d6e350a68a2b0912e128cabee49806c/google_crc32c-1.8.0-cp313-cp313-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:3b9776774b24ba76831609ffbabce8cdf6fa2bd5e9df37b594221c7e333a81fa", size = 33344, upload-time = "2025-12-16T00:40:24.742Z" },+ { url = "https://files.pythonhosted.org/packages/1c/e8/b33784d6fc77fb5062a8a7854e43e1e618b87d5ddf610a88025e4de6226e/google_crc32c-1.8.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:89c17d53d75562edfff86679244830599ee0a48efc216200691de8b02ab6b2b8", size = 33694, upload-time = "2025-12-16T00:40:25.505Z" },+ { url = "https://files.pythonhosted.org/packages/92/b1/d3cbd4d988afb3d8e4db94ca953df429ed6db7282ed0e700d25e6c7bfc8d/google_crc32c-1.8.0-cp313-cp313-win_amd64.whl", hash = "sha256:57a50a9035b75643996fbf224d6661e386c7162d1dfdab9bc4ca790947d1007f", size = 34435, upload-time = "2025-12-16T00:35:22.107Z" },+ { url = "https://files.pythonhosted.org/packages/21/88/8ecf3c2b864a490b9e7010c84fd203ec8cf3b280651106a3a74dd1b0ca72/google_crc32c-1.8.0-cp314-cp314-macosx_12_0_arm64.whl", hash = "sha256:e6584b12cb06796d285d09e33f63309a09368b9d806a551d8036a4207ea43697", size = 31301, upload-time = "2025-12-16T00:24:48.527Z" },+ { url = "https://files.pythonhosted.org/packages/36/c6/f7ff6c11f5ca215d9f43d3629163727a272eabc356e5c9b2853df2bfe965/google_crc32c-1.8.0-cp314-cp314-macosx_12_0_x86_64.whl", hash = "sha256:f4b51844ef67d6cf2e9425983274da75f18b1597bb2c998e1c0a0e8d46f8f651", size = 30868, upload-time = "2025-12-16T00:48:12.163Z" },+ { url = "https://files.pythonhosted.org/packages/56/15/c25671c7aad70f8179d858c55a6ae8404902abe0cdcf32a29d581792b491/google_crc32c-1.8.0-cp314-cp314-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:b0d1a7afc6e8e4635564ba8aa5c0548e3173e41b6384d7711a9123165f582de2", size = 33381, upload-time = "2025-12-16T00:40:26.268Z" },+ { url = "https://files.pythonhosted.org/packages/42/fa/f50f51260d7b0ef5d4898af122d8a7ec5a84e2984f676f746445f783705f/google_crc32c-1.8.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:8b3f68782f3cbd1bce027e48768293072813469af6a61a86f6bb4977a4380f21", size = 33734, upload-time = "2025-12-16T00:40:27.028Z" },+ { url = "https://files.pythonhosted.org/packages/08/a5/7b059810934a09fb3ccb657e0843813c1fee1183d3bc2c8041800374aa2c/google_crc32c-1.8.0-cp314-cp314-win_amd64.whl", hash = "sha256:d511b3153e7011a27ab6ee6bb3a5404a55b994dc1a7322c0b87b29606d9790e2", size = 34878, upload-time = "2025-12-16T00:35:23.142Z" },+]++[[package]]+name = "h11"+version = "0.16.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/01/ee/02a2c011bdab74c6fb3c75474d40b3052059d95df7e73351460c8588d963/h11-0.16.0.tar.gz", hash = "sha256:4e35b956cf45792e4caa5885e69fba00bdbc6ffafbfa020300e549b208ee5ff1", size = 101250, upload-time = "2025-04-24T03:35:25.427Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/04/4b/29cac41a4d98d144bf5f6d33995617b185d14b22401f75ca86f384e87ff1/h11-0.16.0-py3-none-any.whl", hash = "sha256:63cf8bbe7522de3bf65932fda1d9c2772064ffb3dae62d55932da54b31cb6c86", size = 37515, upload-time = "2025-04-24T03:35:24.344Z" },+]++[[package]]+name = "hf-xet"+version = "1.4.2"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/09/08/23c84a26716382c89151b5b447b4beb19e3345f3a93d3b73009a71a57ad3/hf_xet-1.4.2.tar.gz", hash = "sha256:b7457b6b482d9e0743bd116363239b1fa904a5e65deede350fbc0c4ea67c71ea", size = 672357, upload-time = "2026-03-13T06:58:51.077Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/18/06/e8cf74c3c48e5485c7acc5a990d0d8516cdfb5fdf80f799174f1287cc1b5/hf_xet-1.4.2-cp313-cp313t-macosx_10_12_x86_64.whl", hash = "sha256:ac8202ae1e664b2c15cdfc7298cbb25e80301ae596d602ef7870099a126fcad4", size = 3796125, upload-time = "2026-03-13T06:58:33.177Z" },+ { url = "https://files.pythonhosted.org/packages/66/d4/b73ebab01cbf60777323b7de9ef05550790451eb5172a220d6b9845385ec/hf_xet-1.4.2-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:6d2f8ee39fa9fba9af929f8c0d0482f8ee6e209179ad14a909b6ad78ffcb7c81", size = 3555985, upload-time = "2026-03-13T06:58:31.797Z" },+ { url = "https://files.pythonhosted.org/packages/ff/e7/ded6d1bd041c3f2bca9e913a0091adfe32371988e047dd3a68a2463c15a2/hf_xet-1.4.2-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:4642a6cf249c09da8c1f87fe50b24b2a3450b235bf8adb55700b52f0ea6e2eb6", size = 4212085, upload-time = "2026-03-13T06:58:24.323Z" },+ { url = "https://files.pythonhosted.org/packages/97/c1/a0a44d1f98934f7bdf17f7a915b934f9fca44bb826628c553589900f6df8/hf_xet-1.4.2-cp313-cp313t-manylinux_2_28_aarch64.whl", hash = "sha256:769431385e746c92dc05492dde6f687d304584b89c33d79def8367ace06cb555", size = 3988266, upload-time = "2026-03-13T06:58:22.887Z" },+ { url = "https://files.pythonhosted.org/packages/7a/82/be713b439060e7d1f1d93543c8053d4ef2fe7e6922c5b31642eaa26f3c4b/hf_xet-1.4.2-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:c9dd1c1bc4cc56168f81939b0e05b4c36dd2d28c13dc1364b17af89aa0082496", size = 4188513, upload-time = "2026-03-13T06:58:40.858Z" },+ { url = "https://files.pythonhosted.org/packages/21/a6/cbd4188b22abd80ebd0edbb2b3e87f2633e958983519980815fb8314eae5/hf_xet-1.4.2-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:fca58a2ae4e6f6755cc971ac6fcdf777ea9284d7e540e350bb000813b9a3008d", size = 4428287, upload-time = "2026-03-13T06:58:42.601Z" },+ { url = "https://files.pythonhosted.org/packages/b2/4e/84e45b25e2e3e903ed3db68d7eafa96dae9a1d1f6d0e7fc85120347a852f/hf_xet-1.4.2-cp313-cp313t-win_amd64.whl", hash = "sha256:163aab46854ccae0ab6a786f8edecbbfbaa38fcaa0184db6feceebf7000c93c0", size = 3665574, upload-time = "2026-03-13T06:58:53.881Z" },+ { url = "https://files.pythonhosted.org/packages/ee/71/c5ac2b9a7ae39c14e91973035286e73911c31980fe44e7b1d03730c00adc/hf_xet-1.4.2-cp313-cp313t-win_arm64.whl", hash = "sha256:09b138422ecbe50fd0c84d4da5ff537d27d487d3607183cd10e3e53f05188e82", size = 3528760, upload-time = "2026-03-13T06:58:52.187Z" },+ { url = "https://files.pythonhosted.org/packages/1e/0f/fcd2504015eab26358d8f0f232a1aed6b8d363a011adef83fe130bff88f7/hf_xet-1.4.2-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:949dcf88b484bb9d9276ca83f6599e4aa03d493c08fc168c124ad10b2e6f75d7", size = 3796493, upload-time = "2026-03-13T06:58:39.267Z" },+ { url = "https://files.pythonhosted.org/packages/82/56/19c25105ff81731ca6d55a188b5de2aa99d7a2644c7aa9de1810d5d3b726/hf_xet-1.4.2-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:41659966020d59eb9559c57de2cde8128b706a26a64c60f0531fa2318f409418", size = 3555797, upload-time = "2026-03-13T06:58:37.546Z" },+ { url = "https://files.pythonhosted.org/packages/bf/e3/8933c073186849b5e06762aa89847991d913d10a95d1603eb7f2c3834086/hf_xet-1.4.2-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:5c588e21d80010119458dd5d02a69093f0d115d84e3467efe71ffb2c67c19146", size = 4212127, upload-time = "2026-03-13T06:58:30.539Z" },+ { url = "https://files.pythonhosted.org/packages/eb/01/f89ebba4e369b4ed699dcb60d3152753870996f41c6d22d3d7cac01310e1/hf_xet-1.4.2-cp314-cp314t-manylinux_2_28_aarch64.whl", hash = "sha256:a296744d771a8621ad1d50c098d7ab975d599800dae6d48528ba3944e5001ba0", size = 3987788, upload-time = "2026-03-13T06:58:29.139Z" },+ { url = "https://files.pythonhosted.org/packages/84/4d/8a53e5ffbc2cc33bbf755382ac1552c6d9af13f623ed125fe67cc3e6772f/hf_xet-1.4.2-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:f563f7efe49588b7d0629d18d36f46d1658fe7e08dce3fa3d6526e1c98315e2d", size = 4188315, upload-time = "2026-03-13T06:58:48.017Z" },+ { url = "https://files.pythonhosted.org/packages/d1/b8/b7a1c1b5592254bd67050632ebbc1b42cc48588bf4757cb03c2ef87e704a/hf_xet-1.4.2-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:5b2e0132c56d7ee1bf55bdb638c4b62e7106f6ac74f0b786fed499d5548c5570", size = 4428306, upload-time = "2026-03-13T06:58:49.502Z" },+ { url = "https://files.pythonhosted.org/packages/a0/0c/40779e45b20e11c7c5821a94135e0207080d6b3d76e7b78ccb413c6f839b/hf_xet-1.4.2-cp314-cp314t-win_amd64.whl", hash = "sha256:2f45c712c2fa1215713db10df6ac84b49d0e1c393465440e9cb1de73ecf7bbf6", size = 3665826, upload-time = "2026-03-13T06:58:59.88Z" },+ { url = "https://files.pythonhosted.org/packages/51/4c/e2688c8ad1760d7c30f7c429c79f35f825932581bc7c9ec811436d2f21a0/hf_xet-1.4.2-cp314-cp314t-win_arm64.whl", hash = "sha256:6d53df40616f7168abfccff100d232e9d460583b9d86fa4912c24845f192f2b8", size = 3529113, upload-time = "2026-03-13T06:58:58.491Z" },+ { url = "https://files.pythonhosted.org/packages/b4/86/b40b83a2ff03ef05c4478d2672b1fc2b9683ff870e2b25f4f3af240f2e7b/hf_xet-1.4.2-cp37-abi3-macosx_10_12_x86_64.whl", hash = "sha256:71f02d6e4cdd07f344f6844845d78518cc7186bd2bc52d37c3b73dc26a3b0bc5", size = 3800339, upload-time = "2026-03-13T06:58:36.245Z" },+ { url = "https://files.pythonhosted.org/packages/64/2e/af4475c32b4378b0e92a587adb1aa3ec53e3450fd3e5fe0372a874531c00/hf_xet-1.4.2-cp37-abi3-macosx_11_0_arm64.whl", hash = "sha256:e9b38d876e94d4bdcf650778d6ebbaa791dd28de08db9736c43faff06ede1b5a", size = 3559664, upload-time = "2026-03-13T06:58:34.787Z" },+ { url = "https://files.pythonhosted.org/packages/3c/4c/781267da3188db679e601de18112021a5cb16506fe86b246e22c5401a9c4/hf_xet-1.4.2-cp37-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:77e8c180b7ef12d8a96739a4e1e558847002afe9ea63b6f6358b2271a8bdda1c", size = 4217422, upload-time = "2026-03-13T06:58:27.472Z" },+ { url = "https://files.pythonhosted.org/packages/68/47/d6cf4a39ecf6c7705f887a46f6ef5c8455b44ad9eb0d391aa7e8a2ff7fea/hf_xet-1.4.2-cp37-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:c3b3c6a882016b94b6c210957502ff7877802d0dbda8ad142c8595db8b944271", size = 3992847, upload-time = "2026-03-13T06:58:25.989Z" },+ { url = "https://files.pythonhosted.org/packages/2d/ef/e80815061abff54697239803948abc665c6b1d237102c174f4f7a9a5ffc5/hf_xet-1.4.2-cp37-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:9d9a634cc929cfbaf2e1a50c0e532ae8c78fa98618426769480c58501e8c8ac2", size = 4193843, upload-time = "2026-03-13T06:58:44.59Z" },+ { url = "https://files.pythonhosted.org/packages/54/75/07f6aa680575d9646c4167db6407c41340cbe2357f5654c4e72a1b01ca14/hf_xet-1.4.2-cp37-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:6b0932eb8b10317ea78b7da6bab172b17be03bbcd7809383d8d5abd6a2233e04", size = 4432751, upload-time = "2026-03-13T06:58:46.533Z" },+ { url = "https://files.pythonhosted.org/packages/cd/71/193eabd7e7d4b903c4aa983a215509c6114915a5a237525ec562baddb868/hf_xet-1.4.2-cp37-abi3-win_amd64.whl", hash = "sha256:ad185719fb2e8ac26f88c8100562dbf9dbdcc3d9d2add00faa94b5f106aea53f", size = 3671149, upload-time = "2026-03-13T06:58:57.07Z" },+ { url = "https://files.pythonhosted.org/packages/b4/7e/ccf239da366b37ba7f0b36095450efae4a64980bdc7ec2f51354205fdf39/hf_xet-1.4.2-cp37-abi3-win_arm64.whl", hash = "sha256:32c012286b581f783653e718c1862aea5b9eb140631685bb0c5e7012c8719a87", size = 3533426, upload-time = "2026-03-13T06:58:55.46Z" },+]++[[package]]+name = "httpcore"+version = "1.0.9"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "certifi" },+ { name = "h11" },+]+sdist = { url = "https://files.pythonhosted.org/packages/06/94/82699a10bca87a5556c9c59b5963f2d039dbd239f25bc2a63907a05a14cb/httpcore-1.0.9.tar.gz", hash = "sha256:6e34463af53fd2ab5d807f399a9b45ea31c3dfa2276f15a2c3f00afff6e176e8", size = 85484, upload-time = "2025-04-24T22:06:22.219Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/7e/f5/f66802a942d491edb555dd61e3a9961140fd64c90bce1eafd741609d334d/httpcore-1.0.9-py3-none-any.whl", hash = "sha256:2d400746a40668fc9dec9810239072b40b4484b640a8c38fd654a024c7a1bf55", size = 78784, upload-time = "2025-04-24T22:06:20.566Z" },+]++[[package]]+name = "httpx"+version = "0.28.1"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "anyio" },+ { name = "certifi" },+ { name = "httpcore" },+ { name = "idna" },+]+sdist = { url = "https://files.pythonhosted.org/packages/b1/df/48c586a5fe32a0f01324ee087459e112ebb7224f646c0b5023f5e79e9956/httpx-0.28.1.tar.gz", hash = "sha256:75e98c5f16b0f35b567856f597f06ff2270a374470a5c2392242528e3e3e42fc", size = 141406, upload-time = "2024-12-06T15:37:23.222Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/2a/39/e50c7c3a983047577ee07d2a9e53faf5a69493943ec3f6a384bdc792deb2/httpx-0.28.1-py3-none-any.whl", hash = "sha256:d909fcccc110f8c7faf814ca82a9a4d816bc5a6dbfea25d6591d6985b8ba59ad", size = 73517, upload-time = "2024-12-06T15:37:21.509Z" },+]++[[package]]+name = "huggingface-hub"+version = "1.8.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "filelock" },+ { name = "fsspec" },+ { name = "hf-xet", marker = "platform_machine == 'AMD64' or platform_machine == 'aarch64' or platform_machine == 'amd64' or platform_machine == 'arm64' or platform_machine == 'x86_64'" },+ { name = "httpx" },+ { name = "packaging" },+ { name = "pyyaml" },+ { name = "tqdm" },+ { name = "typer" },+ { name = "typing-extensions" },+]+sdist = { url = "https://files.pythonhosted.org/packages/8e/2a/a847fd02261cd051da218baf99f90ee7c7040c109a01833db4f838f25256/huggingface_hub-1.8.0.tar.gz", hash = "sha256:c5627b2fd521e00caf8eff4ac965ba988ea75167fad7ee72e17f9b7183ec63f3", size = 735839, upload-time = "2026-03-25T16:01:28.152Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/a9/ae/8a3a16ea4d202cb641b51d2681bdd3d482c1c592d7570b3fa264730829ce/huggingface_hub-1.8.0-py3-none-any.whl", hash = "sha256:d3eb5047bd4e33c987429de6020d4810d38a5bef95b3b40df9b17346b7f353f2", size = 625208, upload-time = "2026-03-25T16:01:26.603Z" },+]++[[package]]+name = "idna"+version = "3.11"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/6f/6d/0703ccc57f3a7233505399edb88de3cbd678da106337b9fcde432b65ed60/idna-3.11.tar.gz", hash = "sha256:795dafcc9c04ed0c1fb032c2aa73654d8e8c5023a7df64a53f39190ada629902", size = 194582, upload-time = "2025-10-12T14:55:20.501Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/0e/61/66938bbb5fc52dbdf84594873d5b51fb1f7c7794e9c0f5bd885f30bc507b/idna-3.11-py3-none-any.whl", hash = "sha256:771a87f49d9defaf64091e6e6fe9c18d4833f140bd19464795bc32d966ca37ea", size = 71008, upload-time = "2025-10-12T14:55:18.883Z" },+]++[[package]]+name = "iniconfig"+version = "2.3.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/72/34/14ca021ce8e5dfedc35312d08ba8bf51fdd999c576889fc2c24cb97f4f10/iniconfig-2.3.0.tar.gz", hash = "sha256:c76315c77db068650d49c5b56314774a7804df16fee4402c1f19d6d15d8c4730", size = 20503, upload-time = "2025-10-18T21:55:43.219Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/cb/b1/3846dd7f199d53cb17f49cba7e651e9ce294d8497c8c150530ed11865bb8/iniconfig-2.3.0-py3-none-any.whl", hash = "sha256:f631c04d2c48c52b84d0d0549c99ff3859c98df65b3101406327ecc7d53fbf12", size = 7484, upload-time = "2025-10-18T21:55:41.639Z" },+]++[[package]]+name = "jinja2"+version = "3.1.6"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "markupsafe" },+]+sdist = { url = "https://files.pythonhosted.org/packages/df/bf/f7da0350254c0ed7c72f3e33cef02e048281fec7ecec5f032d4aac52226b/jinja2-3.1.6.tar.gz", hash = "sha256:0137fb05990d35f1275a587e9aee6d56da821fc83491a0fb838183be43f66d6d", size = 245115, upload-time = "2025-03-05T20:05:02.478Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/62/a1/3d680cbfd5f4b8f15abc1d571870c5fc3e594bb582bc3b64ea099db13e56/jinja2-3.1.6-py3-none-any.whl", hash = "sha256:85ece4451f492d0c13c5dd7c13a64681a86afae63a5f347908daf103ce6d2f67", size = 134899, upload-time = "2025-03-05T20:05:00.369Z" },+]++[[package]]+name = "markdown-it-py"+version = "4.0.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "mdurl" },+]+sdist = { url = "https://files.pythonhosted.org/packages/5b/f5/4ec618ed16cc4f8fb3b701563655a69816155e79e24a17b651541804721d/markdown_it_py-4.0.0.tar.gz", hash = "sha256:cb0a2b4aa34f932c007117b194e945bd74e0ec24133ceb5bac59009cda1cb9f3", size = 73070, upload-time = "2025-08-11T12:57:52.854Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/94/54/e7d793b573f298e1c9013b8c4dade17d481164aa517d1d7148619c2cedbf/markdown_it_py-4.0.0-py3-none-any.whl", hash = "sha256:87327c59b172c5011896038353a81343b6754500a08cd7a4973bb48c6d578147", size = 87321, upload-time = "2025-08-11T12:57:51.923Z" },+]++[[package]]+name = "markupsafe"+version = "3.0.3"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/7e/99/7690b6d4034fffd95959cbe0c02de8deb3098cc577c67bb6a24fe5d7caa7/markupsafe-3.0.3.tar.gz", hash = "sha256:722695808f4b6457b320fdc131280796bdceb04ab50fe1795cd540799ebe1698", size = 80313, upload-time = "2025-09-27T18:37:40.426Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/5a/72/147da192e38635ada20e0a2e1a51cf8823d2119ce8883f7053879c2199b5/markupsafe-3.0.3-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:d53197da72cc091b024dd97249dfc7794d6a56530370992a5e1a08983ad9230e", size = 11615, upload-time = "2025-09-27T18:36:30.854Z" },+ { url = "https://files.pythonhosted.org/packages/9a/81/7e4e08678a1f98521201c3079f77db69fb552acd56067661f8c2f534a718/markupsafe-3.0.3-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:1872df69a4de6aead3491198eaf13810b565bdbeec3ae2dc8780f14458ec73ce", size = 12020, upload-time = "2025-09-27T18:36:31.971Z" },+ { url = "https://files.pythonhosted.org/packages/1e/2c/799f4742efc39633a1b54a92eec4082e4f815314869865d876824c257c1e/markupsafe-3.0.3-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:3a7e8ae81ae39e62a41ec302f972ba6ae23a5c5396c8e60113e9066ef893da0d", size = 24332, upload-time = "2025-09-27T18:36:32.813Z" },+ { url = "https://files.pythonhosted.org/packages/3c/2e/8d0c2ab90a8c1d9a24f0399058ab8519a3279d1bd4289511d74e909f060e/markupsafe-3.0.3-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:d6dd0be5b5b189d31db7cda48b91d7e0a9795f31430b7f271219ab30f1d3ac9d", size = 22947, upload-time = "2025-09-27T18:36:33.86Z" },+ { url = "https://files.pythonhosted.org/packages/2c/54/887f3092a85238093a0b2154bd629c89444f395618842e8b0c41783898ea/markupsafe-3.0.3-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:94c6f0bb423f739146aec64595853541634bde58b2135f27f61c1ffd1cd4d16a", size = 21962, upload-time = "2025-09-27T18:36:35.099Z" },+ { url = "https://files.pythonhosted.org/packages/c9/2f/336b8c7b6f4a4d95e91119dc8521402461b74a485558d8f238a68312f11c/markupsafe-3.0.3-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:be8813b57049a7dc738189df53d69395eba14fb99345e0a5994914a3864c8a4b", size = 23760, upload-time = "2025-09-27T18:36:36.001Z" },+ { url = "https://files.pythonhosted.org/packages/32/43/67935f2b7e4982ffb50a4d169b724d74b62a3964bc1a9a527f5ac4f1ee2b/markupsafe-3.0.3-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:83891d0e9fb81a825d9a6d61e3f07550ca70a076484292a70fde82c4b807286f", size = 21529, upload-time = "2025-09-27T18:36:36.906Z" },+ { url = "https://files.pythonhosted.org/packages/89/e0/4486f11e51bbba8b0c041098859e869e304d1c261e59244baa3d295d47b7/markupsafe-3.0.3-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:77f0643abe7495da77fb436f50f8dab76dbc6e5fd25d39589a0f1fe6548bfa2b", size = 23015, upload-time = "2025-09-27T18:36:37.868Z" },+ { url = "https://files.pythonhosted.org/packages/2f/e1/78ee7a023dac597a5825441ebd17170785a9dab23de95d2c7508ade94e0e/markupsafe-3.0.3-cp312-cp312-win32.whl", hash = "sha256:d88b440e37a16e651bda4c7c2b930eb586fd15ca7406cb39e211fcff3bf3017d", size = 14540, upload-time = "2025-09-27T18:36:38.761Z" },+ { url = "https://files.pythonhosted.org/packages/aa/5b/bec5aa9bbbb2c946ca2733ef9c4ca91c91b6a24580193e891b5f7dbe8e1e/markupsafe-3.0.3-cp312-cp312-win_amd64.whl", hash = "sha256:26a5784ded40c9e318cfc2bdb30fe164bdb8665ded9cd64d500a34fb42067b1c", size = 15105, upload-time = "2025-09-27T18:36:39.701Z" },+ { url = "https://files.pythonhosted.org/packages/e5/f1/216fc1bbfd74011693a4fd837e7026152e89c4bcf3e77b6692fba9923123/markupsafe-3.0.3-cp312-cp312-win_arm64.whl", hash = "sha256:35add3b638a5d900e807944a078b51922212fb3dedb01633a8defc4b01a3c85f", size = 13906, upload-time = "2025-09-27T18:36:40.689Z" },+ { url = "https://files.pythonhosted.org/packages/38/2f/907b9c7bbba283e68f20259574b13d005c121a0fa4c175f9bed27c4597ff/markupsafe-3.0.3-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:e1cf1972137e83c5d4c136c43ced9ac51d0e124706ee1c8aa8532c1287fa8795", size = 11622, upload-time = "2025-09-27T18:36:41.777Z" },+ { url = "https://files.pythonhosted.org/packages/9c/d9/5f7756922cdd676869eca1c4e3c0cd0df60ed30199ffd775e319089cb3ed/markupsafe-3.0.3-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:116bb52f642a37c115f517494ea5feb03889e04df47eeff5b130b1808ce7c219", size = 12029, upload-time = "2025-09-27T18:36:43.257Z" },+ { url = "https://files.pythonhosted.org/packages/00/07/575a68c754943058c78f30db02ee03a64b3c638586fba6a6dd56830b30a3/markupsafe-3.0.3-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:133a43e73a802c5562be9bbcd03d090aa5a1fe899db609c29e8c8d815c5f6de6", size = 24374, upload-time = "2025-09-27T18:36:44.508Z" },+ { url = "https://files.pythonhosted.org/packages/a9/21/9b05698b46f218fc0e118e1f8168395c65c8a2c750ae2bab54fc4bd4e0e8/markupsafe-3.0.3-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:ccfcd093f13f0f0b7fdd0f198b90053bf7b2f02a3927a30e63f3ccc9df56b676", size = 22980, upload-time = "2025-09-27T18:36:45.385Z" },+ { url = "https://files.pythonhosted.org/packages/7f/71/544260864f893f18b6827315b988c146b559391e6e7e8f7252839b1b846a/markupsafe-3.0.3-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:509fa21c6deb7a7a273d629cf5ec029bc209d1a51178615ddf718f5918992ab9", size = 21990, upload-time = "2025-09-27T18:36:46.916Z" },+ { url = "https://files.pythonhosted.org/packages/c2/28/b50fc2f74d1ad761af2f5dcce7492648b983d00a65b8c0e0cb457c82ebbe/markupsafe-3.0.3-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:a4afe79fb3de0b7097d81da19090f4df4f8d3a2b3adaa8764138aac2e44f3af1", size = 23784, upload-time = "2025-09-27T18:36:47.884Z" },+ { url = "https://files.pythonhosted.org/packages/ed/76/104b2aa106a208da8b17a2fb72e033a5a9d7073c68f7e508b94916ed47a9/markupsafe-3.0.3-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:795e7751525cae078558e679d646ae45574b47ed6e7771863fcc079a6171a0fc", size = 21588, upload-time = "2025-09-27T18:36:48.82Z" },+ { url = "https://files.pythonhosted.org/packages/b5/99/16a5eb2d140087ebd97180d95249b00a03aa87e29cc224056274f2e45fd6/markupsafe-3.0.3-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:8485f406a96febb5140bfeca44a73e3ce5116b2501ac54fe953e488fb1d03b12", size = 23041, upload-time = "2025-09-27T18:36:49.797Z" },+ { url = "https://files.pythonhosted.org/packages/19/bc/e7140ed90c5d61d77cea142eed9f9c303f4c4806f60a1044c13e3f1471d0/markupsafe-3.0.3-cp313-cp313-win32.whl", hash = "sha256:bdd37121970bfd8be76c5fb069c7751683bdf373db1ed6c010162b2a130248ed", size = 14543, upload-time = "2025-09-27T18:36:51.584Z" },+ { url = "https://files.pythonhosted.org/packages/05/73/c4abe620b841b6b791f2edc248f556900667a5a1cf023a6646967ae98335/markupsafe-3.0.3-cp313-cp313-win_amd64.whl", hash = "sha256:9a1abfdc021a164803f4d485104931fb8f8c1efd55bc6b748d2f5774e78b62c5", size = 15113, upload-time = "2025-09-27T18:36:52.537Z" },+ { url = "https://files.pythonhosted.org/packages/f0/3a/fa34a0f7cfef23cf9500d68cb7c32dd64ffd58a12b09225fb03dd37d5b80/markupsafe-3.0.3-cp313-cp313-win_arm64.whl", hash = "sha256:7e68f88e5b8799aa49c85cd116c932a1ac15caaa3f5db09087854d218359e485", size = 13911, upload-time = "2025-09-27T18:36:53.513Z" },+ { url = "https://files.pythonhosted.org/packages/e4/d7/e05cd7efe43a88a17a37b3ae96e79a19e846f3f456fe79c57ca61356ef01/markupsafe-3.0.3-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:218551f6df4868a8d527e3062d0fb968682fe92054e89978594c28e642c43a73", size = 11658, upload-time = "2025-09-27T18:36:54.819Z" },+ { url = "https://files.pythonhosted.org/packages/99/9e/e412117548182ce2148bdeacdda3bb494260c0b0184360fe0d56389b523b/markupsafe-3.0.3-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:3524b778fe5cfb3452a09d31e7b5adefeea8c5be1d43c4f810ba09f2ceb29d37", size = 12066, upload-time = "2025-09-27T18:36:55.714Z" },+ { url = "https://files.pythonhosted.org/packages/bc/e6/fa0ffcda717ef64a5108eaa7b4f5ed28d56122c9a6d70ab8b72f9f715c80/markupsafe-3.0.3-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:4e885a3d1efa2eadc93c894a21770e4bc67899e3543680313b09f139e149ab19", size = 25639, upload-time = "2025-09-27T18:36:56.908Z" },+ { url = "https://files.pythonhosted.org/packages/96/ec/2102e881fe9d25fc16cb4b25d5f5cde50970967ffa5dddafdb771237062d/markupsafe-3.0.3-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:8709b08f4a89aa7586de0aadc8da56180242ee0ada3999749b183aa23df95025", size = 23569, upload-time = "2025-09-27T18:36:57.913Z" },+ { url = "https://files.pythonhosted.org/packages/4b/30/6f2fce1f1f205fc9323255b216ca8a235b15860c34b6798f810f05828e32/markupsafe-3.0.3-cp313-cp313t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:b8512a91625c9b3da6f127803b166b629725e68af71f8184ae7e7d54686a56d6", size = 23284, upload-time = "2025-09-27T18:36:58.833Z" },+ { url = "https://files.pythonhosted.org/packages/58/47/4a0ccea4ab9f5dcb6f79c0236d954acb382202721e704223a8aafa38b5c8/markupsafe-3.0.3-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:9b79b7a16f7fedff2495d684f2b59b0457c3b493778c9eed31111be64d58279f", size = 24801, upload-time = "2025-09-27T18:36:59.739Z" },+ { url = "https://files.pythonhosted.org/packages/6a/70/3780e9b72180b6fecb83a4814d84c3bf4b4ae4bf0b19c27196104149734c/markupsafe-3.0.3-cp313-cp313t-musllinux_1_2_riscv64.whl", hash = "sha256:12c63dfb4a98206f045aa9563db46507995f7ef6d83b2f68eda65c307c6829eb", size = 22769, upload-time = "2025-09-27T18:37:00.719Z" },+ { url = "https://files.pythonhosted.org/packages/98/c5/c03c7f4125180fc215220c035beac6b9cb684bc7a067c84fc69414d315f5/markupsafe-3.0.3-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:8f71bc33915be5186016f675cd83a1e08523649b0e33efdb898db577ef5bb009", size = 23642, upload-time = "2025-09-27T18:37:01.673Z" },+ { url = "https://files.pythonhosted.org/packages/80/d6/2d1b89f6ca4bff1036499b1e29a1d02d282259f3681540e16563f27ebc23/markupsafe-3.0.3-cp313-cp313t-win32.whl", hash = "sha256:69c0b73548bc525c8cb9a251cddf1931d1db4d2258e9599c28c07ef3580ef354", size = 14612, upload-time = "2025-09-27T18:37:02.639Z" },+ { url = "https://files.pythonhosted.org/packages/2b/98/e48a4bfba0a0ffcf9925fe2d69240bfaa19c6f7507b8cd09c70684a53c1e/markupsafe-3.0.3-cp313-cp313t-win_amd64.whl", hash = "sha256:1b4b79e8ebf6b55351f0d91fe80f893b4743f104bff22e90697db1590e47a218", size = 15200, upload-time = "2025-09-27T18:37:03.582Z" },+ { url = "https://files.pythonhosted.org/packages/0e/72/e3cc540f351f316e9ed0f092757459afbc595824ca724cbc5a5d4263713f/markupsafe-3.0.3-cp313-cp313t-win_arm64.whl", hash = "sha256:ad2cf8aa28b8c020ab2fc8287b0f823d0a7d8630784c31e9ee5edea20f406287", size = 13973, upload-time = "2025-09-27T18:37:04.929Z" },+ { url = "https://files.pythonhosted.org/packages/33/8a/8e42d4838cd89b7dde187011e97fe6c3af66d8c044997d2183fbd6d31352/markupsafe-3.0.3-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:eaa9599de571d72e2daf60164784109f19978b327a3910d3e9de8c97b5b70cfe", size = 11619, upload-time = "2025-09-27T18:37:06.342Z" },+ { url = "https://files.pythonhosted.org/packages/b5/64/7660f8a4a8e53c924d0fa05dc3a55c9cee10bbd82b11c5afb27d44b096ce/markupsafe-3.0.3-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:c47a551199eb8eb2121d4f0f15ae0f923d31350ab9280078d1e5f12b249e0026", size = 12029, upload-time = "2025-09-27T18:37:07.213Z" },+ { url = "https://files.pythonhosted.org/packages/da/ef/e648bfd021127bef5fa12e1720ffed0c6cbb8310c8d9bea7266337ff06de/markupsafe-3.0.3-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:f34c41761022dd093b4b6896d4810782ffbabe30f2d443ff5f083e0cbbb8c737", size = 24408, upload-time = "2025-09-27T18:37:09.572Z" },+ { url = "https://files.pythonhosted.org/packages/41/3c/a36c2450754618e62008bf7435ccb0f88053e07592e6028a34776213d877/markupsafe-3.0.3-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:457a69a9577064c05a97c41f4e65148652db078a3a509039e64d3467b9e7ef97", size = 23005, upload-time = "2025-09-27T18:37:10.58Z" },+ { url = "https://files.pythonhosted.org/packages/bc/20/b7fdf89a8456b099837cd1dc21974632a02a999ec9bf7ca3e490aacd98e7/markupsafe-3.0.3-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:e8afc3f2ccfa24215f8cb28dcf43f0113ac3c37c2f0f0806d8c70e4228c5cf4d", size = 22048, upload-time = "2025-09-27T18:37:11.547Z" },+ { url = "https://files.pythonhosted.org/packages/9a/a7/591f592afdc734f47db08a75793a55d7fbcc6902a723ae4cfbab61010cc5/markupsafe-3.0.3-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:ec15a59cf5af7be74194f7ab02d0f59a62bdcf1a537677ce67a2537c9b87fcda", size = 23821, upload-time = "2025-09-27T18:37:12.48Z" },+ { url = "https://files.pythonhosted.org/packages/7d/33/45b24e4f44195b26521bc6f1a82197118f74df348556594bd2262bda1038/markupsafe-3.0.3-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:0eb9ff8191e8498cca014656ae6b8d61f39da5f95b488805da4bb029cccbfbaf", size = 21606, upload-time = "2025-09-27T18:37:13.485Z" },+ { url = "https://files.pythonhosted.org/packages/ff/0e/53dfaca23a69fbfbbf17a4b64072090e70717344c52eaaaa9c5ddff1e5f0/markupsafe-3.0.3-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:2713baf880df847f2bece4230d4d094280f4e67b1e813eec43b4c0e144a34ffe", size = 23043, upload-time = "2025-09-27T18:37:14.408Z" },+ { url = "https://files.pythonhosted.org/packages/46/11/f333a06fc16236d5238bfe74daccbca41459dcd8d1fa952e8fbd5dccfb70/markupsafe-3.0.3-cp314-cp314-win32.whl", hash = "sha256:729586769a26dbceff69f7a7dbbf59ab6572b99d94576a5592625d5b411576b9", size = 14747, upload-time = "2025-09-27T18:37:15.36Z" },+ { url = "https://files.pythonhosted.org/packages/28/52/182836104b33b444e400b14f797212f720cbc9ed6ba34c800639d154e821/markupsafe-3.0.3-cp314-cp314-win_amd64.whl", hash = "sha256:bdc919ead48f234740ad807933cdf545180bfbe9342c2bb451556db2ed958581", size = 15341, upload-time = "2025-09-27T18:37:16.496Z" },+ { url = "https://files.pythonhosted.org/packages/6f/18/acf23e91bd94fd7b3031558b1f013adfa21a8e407a3fdb32745538730382/markupsafe-3.0.3-cp314-cp314-win_arm64.whl", hash = "sha256:5a7d5dc5140555cf21a6fefbdbf8723f06fcd2f63ef108f2854de715e4422cb4", size = 14073, upload-time = "2025-09-27T18:37:17.476Z" },+ { url = "https://files.pythonhosted.org/packages/3c/f0/57689aa4076e1b43b15fdfa646b04653969d50cf30c32a102762be2485da/markupsafe-3.0.3-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:1353ef0c1b138e1907ae78e2f6c63ff67501122006b0f9abad68fda5f4ffc6ab", size = 11661, upload-time = "2025-09-27T18:37:18.453Z" },+ { url = "https://files.pythonhosted.org/packages/89/c3/2e67a7ca217c6912985ec766c6393b636fb0c2344443ff9d91404dc4c79f/markupsafe-3.0.3-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:1085e7fbddd3be5f89cc898938f42c0b3c711fdcb37d75221de2666af647c175", size = 12069, upload-time = "2025-09-27T18:37:19.332Z" },+ { url = "https://files.pythonhosted.org/packages/f0/00/be561dce4e6ca66b15276e184ce4b8aec61fe83662cce2f7d72bd3249d28/markupsafe-3.0.3-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1b52b4fb9df4eb9ae465f8d0c228a00624de2334f216f178a995ccdcf82c4634", size = 25670, upload-time = "2025-09-27T18:37:20.245Z" },+ { url = "https://files.pythonhosted.org/packages/50/09/c419f6f5a92e5fadde27efd190eca90f05e1261b10dbd8cbcb39cd8ea1dc/markupsafe-3.0.3-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:fed51ac40f757d41b7c48425901843666a6677e3e8eb0abcff09e4ba6e664f50", size = 23598, upload-time = "2025-09-27T18:37:21.177Z" },+ { url = "https://files.pythonhosted.org/packages/22/44/a0681611106e0b2921b3033fc19bc53323e0b50bc70cffdd19f7d679bb66/markupsafe-3.0.3-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:f190daf01f13c72eac4efd5c430a8de82489d9cff23c364c3ea822545032993e", size = 23261, upload-time = "2025-09-27T18:37:22.167Z" },+ { url = "https://files.pythonhosted.org/packages/5f/57/1b0b3f100259dc9fffe780cfb60d4be71375510e435efec3d116b6436d43/markupsafe-3.0.3-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:e56b7d45a839a697b5eb268c82a71bd8c7f6c94d6fd50c3d577fa39a9f1409f5", size = 24835, upload-time = "2025-09-27T18:37:23.296Z" },+ { url = "https://files.pythonhosted.org/packages/26/6a/4bf6d0c97c4920f1597cc14dd720705eca0bf7c787aebc6bb4d1bead5388/markupsafe-3.0.3-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:f3e98bb3798ead92273dc0e5fd0f31ade220f59a266ffd8a4f6065e0a3ce0523", size = 22733, upload-time = "2025-09-27T18:37:24.237Z" },+ { url = "https://files.pythonhosted.org/packages/14/c7/ca723101509b518797fedc2fdf79ba57f886b4aca8a7d31857ba3ee8281f/markupsafe-3.0.3-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:5678211cb9333a6468fb8d8be0305520aa073f50d17f089b5b4b477ea6e67fdc", size = 23672, upload-time = "2025-09-27T18:37:25.271Z" },+ { url = "https://files.pythonhosted.org/packages/fb/df/5bd7a48c256faecd1d36edc13133e51397e41b73bb77e1a69deab746ebac/markupsafe-3.0.3-cp314-cp314t-win32.whl", hash = "sha256:915c04ba3851909ce68ccc2b8e2cd691618c4dc4c4232fb7982bca3f41fd8c3d", size = 14819, upload-time = "2025-09-27T18:37:26.285Z" },+ { url = "https://files.pythonhosted.org/packages/1a/8a/0402ba61a2f16038b48b39bccca271134be00c5c9f0f623208399333c448/markupsafe-3.0.3-cp314-cp314t-win_amd64.whl", hash = "sha256:4faffd047e07c38848ce017e8725090413cd80cbc23d86e55c587bf979e579c9", size = 15426, upload-time = "2025-09-27T18:37:27.316Z" },+ { url = "https://files.pythonhosted.org/packages/70/bc/6f1c2f612465f5fa89b95bead1f44dcb607670fd42891d8fdcd5d039f4f4/markupsafe-3.0.3-cp314-cp314t-win_arm64.whl", hash = "sha256:32001d6a8fc98c8cb5c947787c5d08b0a50663d139f1305bac5885d98d9b40fa", size = 14146, upload-time = "2025-09-27T18:37:28.327Z" },+]++[[package]]+name = "mdurl"+version = "0.1.2"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/d6/54/cfe61301667036ec958cb99bd3efefba235e65cdeb9c84d24a8293ba1d90/mdurl-0.1.2.tar.gz", hash = "sha256:bb413d29f5eea38f31dd4754dd7377d4465116fb207585f97bf925588687c1ba", size = 8729, upload-time = "2022-08-14T12:40:10.846Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/b3/38/89ba8ad64ae25be8de66a6d463314cf1eb366222074cfda9ee839c56a4b4/mdurl-0.1.2-py3-none-any.whl", hash = "sha256:84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8", size = 9979, upload-time = "2022-08-14T12:40:09.779Z" },+]++[[package]]+name = "mpmath"+version = "1.3.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/e0/47/dd32fa426cc72114383ac549964eecb20ecfd886d1e5ccf5340b55b02f57/mpmath-1.3.0.tar.gz", hash = "sha256:7a28eb2a9774d00c7bc92411c19a89209d5da7c4c9a9e227be8330a23a25b91f", size = 508106, upload-time = "2023-03-07T16:47:11.061Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/43/e3/7d92a15f894aa0c9c4b49b8ee9ac9850d6e63b03c9c32c0367a13ae62209/mpmath-1.3.0-py3-none-any.whl", hash = "sha256:a0b2b9fe80bbcd81a6647ff13108738cfb482d481d826cc0e02f5b35e5c88d2c", size = 536198, upload-time = "2023-03-07T16:47:09.197Z" },+]++[[package]]+name = "networkx"+version = "3.6.1"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/6a/51/63fe664f3908c97be9d2e4f1158eb633317598cfa6e1fc14af5383f17512/networkx-3.6.1.tar.gz", hash = "sha256:26b7c357accc0c8cde558ad486283728b65b6a95d85ee1cd66bafab4c8168509", size = 2517025, upload-time = "2025-12-08T17:02:39.908Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/9e/c9/b2622292ea83fbb4ec318f5b9ab867d0a28ab43c5717bb85b0a5f6b3b0a4/networkx-3.6.1-py3-none-any.whl", hash = "sha256:d47fbf302e7d9cbbb9e2555a0d267983d2aa476bac30e90dfbe5669bd57f3762", size = 2068504, upload-time = "2025-12-08T17:02:38.159Z" },+]++[[package]]+name = "numpy"+version = "2.4.3"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/10/8b/c265f4823726ab832de836cdd184d0986dcf94480f81e8739692a7ac7af2/numpy-2.4.3.tar.gz", hash = "sha256:483a201202b73495f00dbc83796c6ae63137a9bdade074f7648b3e32613412dd", size = 20727743, upload-time = "2026-03-09T07:58:53.426Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/a9/ed/6388632536f9788cea23a3a1b629f25b43eaacd7d7377e5d6bc7b9deb69b/numpy-2.4.3-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:61b0cbabbb6126c8df63b9a3a0c4b1f44ebca5e12ff6997b80fcf267fb3150ef", size = 16669628, upload-time = "2026-03-09T07:56:24.252Z" },+ { url = "https://files.pythonhosted.org/packages/74/1b/ee2abfc68e1ce728b2958b6ba831d65c62e1b13ce3017c13943f8f9b5b2e/numpy-2.4.3-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:7395e69ff32526710748f92cd8c9849b361830968ea3e24a676f272653e8983e", size = 14696872, upload-time = "2026-03-09T07:56:26.991Z" },+ { url = "https://files.pythonhosted.org/packages/ba/d1/780400e915ff5638166f11ca9dc2c5815189f3d7cf6f8759a1685e586413/numpy-2.4.3-cp312-cp312-macosx_14_0_arm64.whl", hash = "sha256:abdce0f71dcb4a00e4e77f3faf05e4616ceccfe72ccaa07f47ee79cda3b7b0f4", size = 5203489, upload-time = "2026-03-09T07:56:29.414Z" },+ { url = "https://files.pythonhosted.org/packages/0b/bb/baffa907e9da4cc34a6e556d6d90e032f6d7a75ea47968ea92b4858826c4/numpy-2.4.3-cp312-cp312-macosx_14_0_x86_64.whl", hash = "sha256:48da3a4ee1336454b07497ff7ec83903efa5505792c4e6d9bf83d99dc07a1e18", size = 6550814, upload-time = "2026-03-09T07:56:32.225Z" },+ { url = "https://files.pythonhosted.org/packages/7b/12/8c9f0c6c95f76aeb20fc4a699c33e9f827fa0d0f857747c73bb7b17af945/numpy-2.4.3-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:32e3bef222ad6b052280311d1d60db8e259e4947052c3ae7dd6817451fc8a4c5", size = 15666601, upload-time = "2026-03-09T07:56:34.461Z" },+ { url = "https://files.pythonhosted.org/packages/bd/79/cc665495e4d57d0aa6fbcc0aa57aa82671dfc78fbf95fe733ed86d98f52a/numpy-2.4.3-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:e7dd01a46700b1967487141a66ac1a3cf0dd8ebf1f08db37d46389401512ca97", size = 16621358, upload-time = "2026-03-09T07:56:36.852Z" },+ { url = "https://files.pythonhosted.org/packages/a8/40/b4ecb7224af1065c3539f5ecfff879d090de09608ad1008f02c05c770cb3/numpy-2.4.3-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:76f0f283506c28b12bba319c0fab98217e9f9b54e6160e9c79e9f7348ba32e9c", size = 17016135, upload-time = "2026-03-09T07:56:39.337Z" },+ { url = "https://files.pythonhosted.org/packages/f7/b1/6a88e888052eed951afed7a142dcdf3b149a030ca59b4c71eef085858e43/numpy-2.4.3-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:737f630a337364665aba3b5a77e56a68cc42d350edd010c345d65a3efa3addcc", size = 18345816, upload-time = "2026-03-09T07:56:42.31Z" },+ { url = "https://files.pythonhosted.org/packages/f3/8f/103a60c5f8c3d7fc678c19cd7b2476110da689ccb80bc18050efbaeae183/numpy-2.4.3-cp312-cp312-win32.whl", hash = "sha256:26952e18d82a1dbbc2f008d402021baa8d6fc8e84347a2072a25e08b46d698b9", size = 5960132, upload-time = "2026-03-09T07:56:44.851Z" },+ { url = "https://files.pythonhosted.org/packages/d7/7c/f5ee1bf6ed888494978046a809df2882aad35d414b622893322df7286879/numpy-2.4.3-cp312-cp312-win_amd64.whl", hash = "sha256:65f3c2455188f09678355f5cae1f959a06b778bc66d535da07bf2ef20cd319d5", size = 12316144, upload-time = "2026-03-09T07:56:47.057Z" },+ { url = "https://files.pythonhosted.org/packages/71/46/8d1cb3f7a00f2fb6394140e7e6623696e54c6318a9d9691bb4904672cf42/numpy-2.4.3-cp312-cp312-win_arm64.whl", hash = "sha256:2abad5c7fef172b3377502bde47892439bae394a71bc329f31df0fd829b41a9e", size = 10220364, upload-time = "2026-03-09T07:56:49.849Z" },+ { url = "https://files.pythonhosted.org/packages/b6/d0/1fe47a98ce0df229238b77611340aff92d52691bcbc10583303181abf7fc/numpy-2.4.3-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:b346845443716c8e542d54112966383b448f4a3ba5c66409771b8c0889485dd3", size = 16665297, upload-time = "2026-03-09T07:56:52.296Z" },+ { url = "https://files.pythonhosted.org/packages/27/d9/4e7c3f0e68dfa91f21c6fb6cf839bc829ec920688b1ce7ec722b1a6202fb/numpy-2.4.3-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:2629289168f4897a3c4e23dc98d6f1731f0fc0fe52fb9db19f974041e4cc12b9", size = 14691853, upload-time = "2026-03-09T07:56:54.992Z" },+ { url = "https://files.pythonhosted.org/packages/3a/66/bd096b13a87549683812b53ab211e6d413497f84e794fb3c39191948da97/numpy-2.4.3-cp313-cp313-macosx_14_0_arm64.whl", hash = "sha256:bb2e3cf95854233799013779216c57e153c1ee67a0bf92138acca0e429aefaee", size = 5198435, upload-time = "2026-03-09T07:56:57.184Z" },+ { url = "https://files.pythonhosted.org/packages/a2/2f/687722910b5a5601de2135c891108f51dfc873d8e43c8ed9f4ebb440b4a2/numpy-2.4.3-cp313-cp313-macosx_14_0_x86_64.whl", hash = "sha256:7f3408ff897f8ab07a07fbe2823d7aee6ff644c097cc1f90382511fe982f647f", size = 6546347, upload-time = "2026-03-09T07:56:59.531Z" },+ { url = "https://files.pythonhosted.org/packages/bf/ec/7971c4e98d86c564750393fab8d7d83d0a9432a9d78bb8a163a6dc59967a/numpy-2.4.3-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:decb0eb8a53c3b009b0962378065589685d66b23467ef5dac16cbe818afde27f", size = 15664626, upload-time = "2026-03-09T07:57:01.385Z" },+ { url = "https://files.pythonhosted.org/packages/7e/eb/7daecbea84ec935b7fc732e18f532073064a3816f0932a40a17f3349185f/numpy-2.4.3-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:d5f51900414fc9204a0e0da158ba2ac52b75656e7dce7e77fb9f84bfa343b4cc", size = 16608916, upload-time = "2026-03-09T07:57:04.008Z" },+ { url = "https://files.pythonhosted.org/packages/df/58/2a2b4a817ffd7472dca4421d9f0776898b364154e30c95f42195041dc03b/numpy-2.4.3-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:6bd06731541f89cdc01b261ba2c9e037f1543df7472517836b78dfb15bd6e476", size = 17015824, upload-time = "2026-03-09T07:57:06.347Z" },+ { url = "https://files.pythonhosted.org/packages/4a/ca/627a828d44e78a418c55f82dd4caea8ea4a8ef24e5144d9e71016e52fb40/numpy-2.4.3-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:22654fe6be0e5206f553a9250762c653d3698e46686eee53b399ab90da59bd92", size = 18334581, upload-time = "2026-03-09T07:57:09.114Z" },+ { url = "https://files.pythonhosted.org/packages/cd/c0/76f93962fc79955fcba30a429b62304332345f22d4daec1cb33653425643/numpy-2.4.3-cp313-cp313-win32.whl", hash = "sha256:d71e379452a2f670ccb689ec801b1218cd3983e253105d6e83780967e899d687", size = 5958618, upload-time = "2026-03-09T07:57:11.432Z" },+ { url = "https://files.pythonhosted.org/packages/b1/3c/88af0040119209b9b5cb59485fa48b76f372c73068dbf9254784b975ac53/numpy-2.4.3-cp313-cp313-win_amd64.whl", hash = "sha256:0a60e17a14d640f49146cb38e3f105f571318db7826d9b6fef7e4dce758faecd", size = 12312824, upload-time = "2026-03-09T07:57:13.586Z" },+ { url = "https://files.pythonhosted.org/packages/58/ce/3d07743aced3d173f877c3ef6a454c2174ba42b584ab0b7e6d99374f51ed/numpy-2.4.3-cp313-cp313-win_arm64.whl", hash = "sha256:c9619741e9da2059cd9c3f206110b97583c7152c1dc9f8aafd4beb450ac1c89d", size = 10221218, upload-time = "2026-03-09T07:57:16.183Z" },+ { url = "https://files.pythonhosted.org/packages/62/09/d96b02a91d09e9d97862f4fc8bfebf5400f567d8eb1fe4b0cc4795679c15/numpy-2.4.3-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:7aa4e54f6469300ebca1d9eb80acd5253cdfa36f2c03d79a35883687da430875", size = 14819570, upload-time = "2026-03-09T07:57:18.564Z" },+ { url = "https://files.pythonhosted.org/packages/b5/ca/0b1aba3905fdfa3373d523b2b15b19029f4f3031c87f4066bd9d20ef6c6b/numpy-2.4.3-cp313-cp313t-macosx_14_0_arm64.whl", hash = "sha256:d1b90d840b25874cf5cd20c219af10bac3667db3876d9a495609273ebe679070", size = 5326113, upload-time = "2026-03-09T07:57:21.052Z" },+ { url = "https://files.pythonhosted.org/packages/c0/63/406e0fd32fcaeb94180fd6a4c41e55736d676c54346b7efbce548b94a914/numpy-2.4.3-cp313-cp313t-macosx_14_0_x86_64.whl", hash = "sha256:a749547700de0a20a6718293396ec237bb38218049cfce788e08fcb716e8cf73", size = 6646370, upload-time = "2026-03-09T07:57:22.804Z" },+ { url = "https://files.pythonhosted.org/packages/b6/d0/10f7dc157d4b37af92720a196be6f54f889e90dcd30dce9dc657ed92c257/numpy-2.4.3-cp313-cp313t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:94f3c4a151a2e529adf49c1d54f0f57ff8f9b233ee4d44af623a81553ab86368", size = 15723499, upload-time = "2026-03-09T07:57:24.693Z" },+ { url = "https://files.pythonhosted.org/packages/66/f1/d1c2bf1161396629701bc284d958dc1efa3a5a542aab83cf11ee6eb4cba5/numpy-2.4.3-cp313-cp313t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:22c31dc07025123aedf7f2db9e91783df13f1776dc52c6b22c620870dc0fab22", size = 16657164, upload-time = "2026-03-09T07:57:27.676Z" },+ { url = "https://files.pythonhosted.org/packages/1a/be/cca19230b740af199ac47331a21c71e7a3d0ba59661350483c1600d28c37/numpy-2.4.3-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:148d59127ac95979d6f07e4d460f934ebdd6eed641db9c0db6c73026f2b2101a", size = 17081544, upload-time = "2026-03-09T07:57:30.664Z" },+ { url = "https://files.pythonhosted.org/packages/b9/c5/9602b0cbb703a0936fb40f8a95407e8171935b15846de2f0776e08af04c7/numpy-2.4.3-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:a97cbf7e905c435865c2d939af3d93f99d18eaaa3cabe4256f4304fb51604349", size = 18380290, upload-time = "2026-03-09T07:57:33.763Z" },+ { url = "https://files.pythonhosted.org/packages/ed/81/9f24708953cd30be9ee36ec4778f4b112b45165812f2ada4cc5ea1c1f254/numpy-2.4.3-cp313-cp313t-win32.whl", hash = "sha256:be3b8487d725a77acccc9924f65fd8bce9af7fac8c9820df1049424a2115af6c", size = 6082814, upload-time = "2026-03-09T07:57:36.491Z" },+ { url = "https://files.pythonhosted.org/packages/e2/9e/52f6eaa13e1a799f0ab79066c17f7016a4a8ae0c1aefa58c82b4dab690b4/numpy-2.4.3-cp313-cp313t-win_amd64.whl", hash = "sha256:1ec84fd7c8e652b0f4aaaf2e6e9cc8eaa9b1b80a537e06b2e3a2fb176eedcb26", size = 12452673, upload-time = "2026-03-09T07:57:38.281Z" },+ { url = "https://files.pythonhosted.org/packages/c4/04/b8cece6ead0b30c9fbd99bb835ad7ea0112ac5f39f069788c5558e3b1ab2/numpy-2.4.3-cp313-cp313t-win_arm64.whl", hash = "sha256:120df8c0a81ebbf5b9020c91439fccd85f5e018a927a39f624845be194a2be02", size = 10290907, upload-time = "2026-03-09T07:57:40.747Z" },+ { url = "https://files.pythonhosted.org/packages/70/ae/3936f79adebf8caf81bd7a599b90a561334a658be4dcc7b6329ebf4ee8de/numpy-2.4.3-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:5884ce5c7acfae1e4e1b6fde43797d10aa506074d25b531b4f54bde33c0c31d4", size = 16664563, upload-time = "2026-03-09T07:57:43.817Z" },+ { url = "https://files.pythonhosted.org/packages/9b/62/760f2b55866b496bb1fa7da2a6db076bef908110e568b02fcfc1422e2a3a/numpy-2.4.3-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:297837823f5bc572c5f9379b0c9f3a3365f08492cbdc33bcc3af174372ebb168", size = 14702161, upload-time = "2026-03-09T07:57:46.169Z" },+ { url = "https://files.pythonhosted.org/packages/32/af/a7a39464e2c0a21526fb4fb76e346fb172ebc92f6d1c7a07c2c139cc17b1/numpy-2.4.3-cp314-cp314-macosx_14_0_arm64.whl", hash = "sha256:a111698b4a3f8dcbe54c64a7708f049355abd603e619013c346553c1fd4ca90b", size = 5208738, upload-time = "2026-03-09T07:57:48.506Z" },+ { url = "https://files.pythonhosted.org/packages/29/8c/2a0cf86a59558fa078d83805589c2de490f29ed4fb336c14313a161d358a/numpy-2.4.3-cp314-cp314-macosx_14_0_x86_64.whl", hash = "sha256:4bd4741a6a676770e0e97fe9ab2e51de01183df3dcbcec591d26d331a40de950", size = 6543618, upload-time = "2026-03-09T07:57:50.591Z" },+ { url = "https://files.pythonhosted.org/packages/aa/b8/612ce010c0728b1c363fa4ea3aa4c22fe1c5da1de008486f8c2f5cb92fae/numpy-2.4.3-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:54f29b877279d51e210e0c80709ee14ccbbad647810e8f3d375561c45ef613dd", size = 15680676, upload-time = "2026-03-09T07:57:52.34Z" },+ { url = "https://files.pythonhosted.org/packages/a9/7e/4f120ecc54ba26ddf3dc348eeb9eb063f421de65c05fc961941798feea18/numpy-2.4.3-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:679f2a834bae9020f81534671c56fd0cc76dd7e5182f57131478e23d0dc59e24", size = 16613492, upload-time = "2026-03-09T07:57:54.91Z" },+ { url = "https://files.pythonhosted.org/packages/2c/86/1b6020db73be330c4b45d5c6ee4295d59cfeef0e3ea323959d053e5a6909/numpy-2.4.3-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:d84f0f881cb2225c2dfd7f78a10a5645d487a496c6668d6cc39f0f114164f3d0", size = 17031789, upload-time = "2026-03-09T07:57:57.641Z" },+ { url = "https://files.pythonhosted.org/packages/07/3a/3b90463bf41ebc21d1b7e06079f03070334374208c0f9a1f05e4ae8455e7/numpy-2.4.3-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:d213c7e6e8d211888cc359bab7199670a00f5b82c0978b9d1c75baf1eddbeac0", size = 18339941, upload-time = "2026-03-09T07:58:00.577Z" },+ { url = "https://files.pythonhosted.org/packages/a8/74/6d736c4cd962259fd8bae9be27363eb4883a2f9069763747347544c2a487/numpy-2.4.3-cp314-cp314-win32.whl", hash = "sha256:52077feedeff7c76ed7c9f1a0428558e50825347b7545bbb8523da2cd55c547a", size = 6007503, upload-time = "2026-03-09T07:58:03.331Z" },+ { url = "https://files.pythonhosted.org/packages/48/39/c56ef87af669364356bb011922ef0734fc49dad51964568634c72a009488/numpy-2.4.3-cp314-cp314-win_amd64.whl", hash = "sha256:0448e7f9caefb34b4b7dd2b77f21e8906e5d6f0365ad525f9f4f530b13df2afc", size = 12444915, upload-time = "2026-03-09T07:58:06.353Z" },+ { url = "https://files.pythonhosted.org/packages/9d/1f/ab8528e38d295fd349310807496fabb7cf9fe2e1f70b97bc20a483ea9d4a/numpy-2.4.3-cp314-cp314-win_arm64.whl", hash = "sha256:b44fd60341c4d9783039598efadd03617fa28d041fc37d22b62d08f2027fa0e7", size = 10494875, upload-time = "2026-03-09T07:58:08.734Z" },+ { url = "https://files.pythonhosted.org/packages/e6/ef/b7c35e4d5ef141b836658ab21a66d1a573e15b335b1d111d31f26c8ef80f/numpy-2.4.3-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:0a195f4216be9305a73c0e91c9b026a35f2161237cf1c6de9b681637772ea657", size = 14822225, upload-time = "2026-03-09T07:58:11.034Z" },+ { url = "https://files.pythonhosted.org/packages/cd/8d/7730fa9278cf6648639946cc816e7cc89f0d891602584697923375f801ed/numpy-2.4.3-cp314-cp314t-macosx_14_0_arm64.whl", hash = "sha256:cd32fbacb9fd1bf041bf8e89e4576b6f00b895f06d00914820ae06a616bdfef7", size = 5328769, upload-time = "2026-03-09T07:58:13.67Z" },+ { url = "https://files.pythonhosted.org/packages/47/01/d2a137317c958b074d338807c1b6a383406cdf8b8e53b075d804cc3d211d/numpy-2.4.3-cp314-cp314t-macosx_14_0_x86_64.whl", hash = "sha256:2e03c05abaee1f672e9d67bc858f300b5ccba1c21397211e8d77d98350972093", size = 6649461, upload-time = "2026-03-09T07:58:15.912Z" },+ { url = "https://files.pythonhosted.org/packages/5c/34/812ce12bc0f00272a4b0ec0d713cd237cb390666eb6206323d1cc9cedbb2/numpy-2.4.3-cp314-cp314t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:7d1ce23cce91fcea443320a9d0ece9b9305d4368875bab09538f7a5b4131938a", size = 15725809, upload-time = "2026-03-09T07:58:17.787Z" },+ { url = "https://files.pythonhosted.org/packages/25/c0/2aed473a4823e905e765fee3dc2cbf504bd3e68ccb1150fbdabd5c39f527/numpy-2.4.3-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c59020932feb24ed49ffd03704fbab89f22aa9c0d4b180ff45542fe8918f5611", size = 16655242, upload-time = "2026-03-09T07:58:20.476Z" },+ { url = "https://files.pythonhosted.org/packages/f2/c8/7e052b2fc87aa0e86de23f20e2c42bd261c624748aa8efd2c78f7bb8d8c6/numpy-2.4.3-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:9684823a78a6cd6ad7511fc5e25b07947d1d5b5e2812c93fe99d7d4195130720", size = 17080660, upload-time = "2026-03-09T07:58:23.067Z" },+ { url = "https://files.pythonhosted.org/packages/f3/3d/0876746044db2adcb11549f214d104f2e1be00f07a67edbb4e2812094847/numpy-2.4.3-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:0200b25c687033316fb39f0ff4e3e690e8957a2c3c8d22499891ec58c37a3eb5", size = 18380384, upload-time = "2026-03-09T07:58:25.839Z" },+ { url = "https://files.pythonhosted.org/packages/07/12/8160bea39da3335737b10308df4f484235fd297f556745f13092aa039d3b/numpy-2.4.3-cp314-cp314t-win32.whl", hash = "sha256:5e10da9e93247e554bb1d22f8edc51847ddd7dde52d85ce31024c1b4312bfba0", size = 6154547, upload-time = "2026-03-09T07:58:28.289Z" },+ { url = "https://files.pythonhosted.org/packages/42/f3/76534f61f80d74cc9cdf2e570d3d4eeb92c2280a27c39b0aaf471eda7b48/numpy-2.4.3-cp314-cp314t-win_amd64.whl", hash = "sha256:45f003dbdffb997a03da2d1d0cb41fbd24a87507fb41605c0420a3db5bd4667b", size = 12633645, upload-time = "2026-03-09T07:58:30.384Z" },+ { url = "https://files.pythonhosted.org/packages/1f/b6/7c0d4334c15983cec7f92a69e8ce9b1e6f31857e5ee3a413ac424e6bd63d/numpy-2.4.3-cp314-cp314t-win_arm64.whl", hash = "sha256:4d382735cecd7bcf090172489a525cd7d4087bc331f7df9f60ddc9a296cf208e", size = 10565454, upload-time = "2026-03-09T07:58:33.031Z" },+]++[[package]]+name = "nvidia-cublas"+version = "13.1.0.3"+source = { registry = "https://pypi.org/simple" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/e1/a5/fce49e2ae977e0ccc084e5adafceb4f0ac0c8333cb6863501618a7277f67/nvidia_cublas-13.1.0.3-py3-none-manylinux_2_27_aarch64.whl", hash = "sha256:c86fc7f7ae36d7528288c5d88098edcb7b02c633d262e7ddbb86b0ad91be5df2", size = 542851226, upload-time = "2025-10-09T08:59:04.818Z" },+ { url = "https://files.pythonhosted.org/packages/e7/44/423ac00af4dd95a5aeb27207e2c0d9b7118702149bf4704c3ddb55bb7429/nvidia_cublas-13.1.0.3-py3-none-manylinux_2_27_x86_64.whl", hash = "sha256:ee8722c1f0145ab246bccb9e452153b5e0515fd094c3678df50b2a0888b8b171", size = 423133236, upload-time = "2025-10-09T08:59:32.536Z" },+]++[[package]]+name = "nvidia-cuda-cupti"+version = "13.0.85"+source = { registry = "https://pypi.org/simple" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/2a/2a/80353b103fc20ce05ef51e928daed4b6015db4aaa9162ed0997090fe2250/nvidia_cuda_cupti-13.0.85-py3-none-manylinux_2_25_aarch64.whl", hash = "sha256:796bd679890ee55fb14a94629b698b6db54bcfd833d391d5e94017dd9d7d3151", size = 10310827, upload-time = "2025-09-04T08:26:42.012Z" },+ { url = "https://files.pythonhosted.org/packages/33/6d/737d164b4837a9bbd202f5ae3078975f0525a55730fe871d8ed4e3b952b0/nvidia_cuda_cupti-13.0.85-py3-none-manylinux_2_25_x86_64.whl", hash = "sha256:4eb01c08e859bf924d222250d2e8f8b8ff6d3db4721288cf35d14252a4d933c8", size = 10715597, upload-time = "2025-09-04T08:26:51.312Z" },+]++[[package]]+name = "nvidia-cuda-nvrtc"+version = "13.0.88"+source = { registry = "https://pypi.org/simple" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/c3/68/483a78f5e8f31b08fb1bb671559968c0ca3a065ac7acabfc7cee55214fd6/nvidia_cuda_nvrtc-13.0.88-py3-none-manylinux2010_x86_64.manylinux_2_12_x86_64.whl", hash = "sha256:ad9b6d2ead2435f11cbb6868809d2adeeee302e9bb94bcf0539c7a40d80e8575", size = 90215200, upload-time = "2025-09-04T08:28:44.204Z" },+ { url = "https://files.pythonhosted.org/packages/b7/dc/6bb80850e0b7edd6588d560758f17e0550893a1feaf436807d64d2da040f/nvidia_cuda_nvrtc-13.0.88-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:d27f20a0ca67a4bb34268a5e951033496c5b74870b868bacd046b1b8e0c3267b", size = 43015449, upload-time = "2025-09-04T08:28:20.239Z" },+]++[[package]]+name = "nvidia-cuda-runtime"+version = "13.0.96"+source = { registry = "https://pypi.org/simple" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/87/4f/17d7b9b8e285199c58ce28e31b5c5bbaa4d8271af06a89b6405258245de2/nvidia_cuda_runtime-13.0.96-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:ef9bcbe90493a2b9d810e43d249adb3d02e98dd30200d86607d8d02687c43f55", size = 2261060, upload-time = "2025-10-09T08:55:15.78Z" },+ { url = "https://files.pythonhosted.org/packages/2e/24/d1558f3b68b1d26e706813b1d10aa1d785e4698c425af8db8edc3dced472/nvidia_cuda_runtime-13.0.96-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:7f82250d7782aa23b6cfe765ecc7db554bd3c2870c43f3d1821f1d18aebf0548", size = 2243632, upload-time = "2025-10-09T08:55:36.117Z" },+]++[[package]]+name = "nvidia-cudnn-cu13"+version = "9.19.0.56"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "nvidia-cublas" },+]+wheels = [+ { url = "https://files.pythonhosted.org/packages/f1/84/26025437c1e6b61a707442184fa0c03d083b661adf3a3eecfd6d21677740/nvidia_cudnn_cu13-9.19.0.56-py3-none-manylinux_2_27_aarch64.whl", hash = "sha256:6ed29ffaee1176c612daf442e4dd6cfeb6a0caa43ddcbeb59da94953030b1be4", size = 433781201, upload-time = "2026-02-03T20:40:53.805Z" },+ { url = "https://files.pythonhosted.org/packages/a3/22/0b4b932655d17a6da1b92fa92ab12844b053bb2ac2475e179ba6f043da1e/nvidia_cudnn_cu13-9.19.0.56-py3-none-manylinux_2_27_x86_64.whl", hash = "sha256:d20e1734305e9d68889a96e3f35094d733ff1f83932ebe462753973e53a572bf", size = 366066321, upload-time = "2026-02-03T20:44:52.837Z" },+]++[[package]]+name = "nvidia-cufft"+version = "12.0.0.61"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "nvidia-nvjitlink" },+]+wheels = [+ { url = "https://files.pythonhosted.org/packages/8b/ae/f417a75c0259e85c1d2f83ca4e960289a5f814ed0cea74d18c353d3e989d/nvidia_cufft-12.0.0.61-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:2708c852ef8cd89d1d2068bdbece0aa188813a0c934db3779b9b1faa8442e5f5", size = 214053554, upload-time = "2025-09-04T08:31:38.196Z" },+ { url = "https://files.pythonhosted.org/packages/a8/2f/7b57e29836ea8714f81e9898409196f47d772d5ddedddf1592eadb8ab743/nvidia_cufft-12.0.0.61-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:6c44f692dce8fd5ffd3e3df134b6cdb9c2f72d99cf40b62c32dde45eea9ddad3", size = 214085489, upload-time = "2025-09-04T08:31:56.044Z" },+]++[[package]]+name = "nvidia-cufile"+version = "1.15.1.6"+source = { registry = "https://pypi.org/simple" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/3f/70/4f193de89a48b71714e74602ee14d04e4019ad36a5a9f20c425776e72cd6/nvidia_cufile-1.15.1.6-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:08a3ecefae5a01c7f5117351c64f17c7c62efa5fffdbe24fc7d298da19cd0b44", size = 1223672, upload-time = "2025-09-04T08:32:22.779Z" },+ { url = "https://files.pythonhosted.org/packages/ab/73/cc4a14c9813a8a0d509417cf5f4bdaba76e924d58beb9864f5a7baceefbf/nvidia_cufile-1.15.1.6-py3-none-manylinux_2_27_aarch64.whl", hash = "sha256:bdc0deedc61f548bddf7733bdc216456c2fdb101d020e1ab4b88d232d5e2f6d1", size = 1136992, upload-time = "2025-09-04T08:32:14.119Z" },+]++[[package]]+name = "nvidia-curand"+version = "10.4.0.35"+source = { registry = "https://pypi.org/simple" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/1e/72/7c2ae24fb6b63a32e6ae5d241cc65263ea18d08802aaae087d9f013335a2/nvidia_curand-10.4.0.35-py3-none-manylinux_2_27_aarch64.whl", hash = "sha256:133df5a7509c3e292aaa2b477afd0194f06ce4ea24d714d616ff36439cee349a", size = 61962106, upload-time = "2025-08-04T10:21:41.128Z" },+ { url = "https://files.pythonhosted.org/packages/a5/9f/be0a41ca4a4917abf5cb9ae0daff1a6060cc5de950aec0396de9f3b52bc5/nvidia_curand-10.4.0.35-py3-none-manylinux_2_27_x86_64.whl", hash = "sha256:1aee33a5da6e1db083fe2b90082def8915f30f3248d5896bcec36a579d941bfc", size = 59544258, upload-time = "2025-08-04T10:22:03.992Z" },+]++[[package]]+name = "nvidia-cusolver"+version = "12.0.4.66"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "nvidia-cublas" },+ { name = "nvidia-cusparse" },+ { name = "nvidia-nvjitlink" },+]+wheels = [+ { url = "https://files.pythonhosted.org/packages/c8/c3/b30c9e935fc01e3da443ec0116ed1b2a009bb867f5324d3f2d7e533e776b/nvidia_cusolver-12.0.4.66-py3-none-manylinux_2_27_aarch64.whl", hash = "sha256:02c2457eaa9e39de20f880f4bd8820e6a1cfb9f9a34f820eb12a155aa5bc92d2", size = 223467760, upload-time = "2025-09-04T08:33:04.222Z" },+ { url = "https://files.pythonhosted.org/packages/5f/67/cba3777620cdacb99102da4042883709c41c709f4b6323c10781a9c3aa34/nvidia_cusolver-12.0.4.66-py3-none-manylinux_2_27_x86_64.whl", hash = "sha256:0a759da5dea5c0ea10fd307de75cdeb59e7ea4fcb8add0924859b944babf1112", size = 200941980, upload-time = "2025-09-04T08:33:22.767Z" },+]++[[package]]+name = "nvidia-cusparse"+version = "12.6.3.3"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "nvidia-nvjitlink" },+]+wheels = [+ { url = "https://files.pythonhosted.org/packages/f8/94/5c26f33738ae35276672f12615a64bd008ed5be6d1ebcb23579285d960a9/nvidia_cusparse-12.6.3.3-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:80bcc4662f23f1054ee334a15c72b8940402975e0eab63178fc7e670aa59472c", size = 162155568, upload-time = "2025-09-04T08:33:42.864Z" },+ { url = "https://files.pythonhosted.org/packages/fa/18/623c77619c31d62efd55302939756966f3ecc8d724a14dab2b75f1508850/nvidia_cusparse-12.6.3.3-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:2b3c89c88d01ee0e477cb7f82ef60a11a4bcd57b6b87c33f789350b59759360b", size = 145942937, upload-time = "2025-09-04T08:33:58.029Z" },+]++[[package]]+name = "nvidia-cusparselt-cu13"+version = "0.8.0"+source = { registry = "https://pypi.org/simple" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/46/10/8dcd1175260706a2fc92a16a52e306b71d4c1ea0b0cc4a9484183399818a/nvidia_cusparselt_cu13-0.8.0-py3-none-manylinux2014_aarch64.whl", hash = "sha256:400c6ed1cf6780fc6efedd64ec9f1345871767e6a1a0a552a1ea0578117ea77c", size = 220791277, upload-time = "2025-08-13T19:22:40.982Z" },+ { url = "https://files.pythonhosted.org/packages/fd/53/43b0d71f4e702fa9733f8b4571fdca50a8813f1e450b656c239beff12315/nvidia_cusparselt_cu13-0.8.0-py3-none-manylinux2014_x86_64.whl", hash = "sha256:25e30a8a7323935d4ad0340b95a0b69926eee755767e8e0b1cf8dd85b197d3fd", size = 169884119, upload-time = "2025-08-13T19:23:41.967Z" },+]++[[package]]+name = "nvidia-nccl-cu13"+version = "2.28.9"+source = { registry = "https://pypi.org/simple" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/39/55/1920646a2e43ffd4fc958536b276197ed740e9e0c54105b4bb3521591fc7/nvidia_nccl_cu13-2.28.9-py3-none-manylinux_2_18_aarch64.whl", hash = "sha256:01c873ba1626b54caa12272ed228dc5b2781545e0ae8ba3f432a8ef1c6d78643", size = 196561677, upload-time = "2025-11-18T05:49:03.45Z" },+ { url = "https://files.pythonhosted.org/packages/b0/b4/878fefaad5b2bcc6fcf8d474a25e3e3774bc5133e4b58adff4d0bca238bc/nvidia_nccl_cu13-2.28.9-py3-none-manylinux_2_18_x86_64.whl", hash = "sha256:e4553a30f34195f3fa1da02a6da3d6337d28f2003943aa0a3d247bbc25fefc42", size = 196493177, upload-time = "2025-11-18T05:49:17.677Z" },+]++[[package]]+name = "nvidia-nvjitlink"+version = "13.0.88"+source = { registry = "https://pypi.org/simple" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/56/7a/123e033aaff487c77107195fa5a2b8686795ca537935a24efae476c41f05/nvidia_nvjitlink-13.0.88-py3-none-manylinux2010_x86_64.manylinux_2_12_x86_64.whl", hash = "sha256:13a74f429e23b921c1109976abefacc69835f2f433ebd323d3946e11d804e47b", size = 40713933, upload-time = "2025-09-04T08:35:43.553Z" },+ { url = "https://files.pythonhosted.org/packages/ab/2c/93c5250e64df4f894f1cbb397c6fd71f79813f9fd79d7cd61de3f97b3c2d/nvidia_nvjitlink-13.0.88-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:e931536ccc7d467a98ba1d8b89ff7fa7f1fa3b13f2b0069118cd7f47bff07d0c", size = 38768748, upload-time = "2025-09-04T08:35:20.008Z" },+]++[[package]]+name = "nvidia-nvshmem-cu13"+version = "3.4.5"+source = { registry = "https://pypi.org/simple" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/dc/0f/05cc9c720236dcd2db9c1ab97fff629e96821be2e63103569da0c9b72f19/nvidia_nvshmem_cu13-3.4.5-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:6dc2a197f38e5d0376ad52cd1a2a3617d3cdc150fd5966f4aee9bcebb1d68fe9", size = 60215947, upload-time = "2025-09-06T00:32:20.022Z" },+ { url = "https://files.pythonhosted.org/packages/3c/35/a9bf80a609e74e3b000fef598933235c908fcefcef9026042b8e6dfde2a9/nvidia_nvshmem_cu13-3.4.5-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:290f0a2ee94c9f3687a02502f3b9299a9f9fe826e6d0287ee18482e78d495b80", size = 60412546, upload-time = "2025-09-06T00:32:41.564Z" },+]++[[package]]+name = "nvidia-nvtx"+version = "13.0.85"+source = { registry = "https://pypi.org/simple" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/c2/f3/d86c845465a2723ad7e1e5c36dcd75ddb82898b3f53be47ebd429fb2fa5d/nvidia_nvtx-13.0.85-py3-none-manylinux1_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:4936d1d6780fbe68db454f5e72a42ff64d1fd6397df9f363ae786930fd5c1cd4", size = 148047, upload-time = "2025-09-04T08:29:01.761Z" },+ { url = "https://files.pythonhosted.org/packages/a8/64/3708a90d1ebe202ffdeb7185f878a3c84d15c2b2c31858da2ce0583e2def/nvidia_nvtx-13.0.85-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:cb7780edb6b14107373c835bf8b72e7a178bac7367e23da7acb108f973f157a6", size = 148878, upload-time = "2025-09-04T08:28:53.627Z" },+]++[[package]]+name = "packaging"+version = "26.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/65/ee/299d360cdc32edc7d2cf530f3accf79c4fca01e96ffc950d8a52213bd8e4/packaging-26.0.tar.gz", hash = "sha256:00243ae351a257117b6a241061796684b084ed1c516a08c48a3f7e147a9d80b4", size = 143416, upload-time = "2026-01-21T20:50:39.064Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/b7/b9/c538f279a4e237a006a2c98387d081e9eb060d203d8ed34467cc0f0b9b53/packaging-26.0-py3-none-any.whl", hash = "sha256:b36f1fef9334a5588b4166f8bcd26a14e521f2b55e6b9de3aaa80d3ff7a37529", size = 74366, upload-time = "2026-01-21T20:50:37.788Z" },+]++[[package]]+name = "pluggy"+version = "1.6.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/f9/e2/3e91f31a7d2b083fe6ef3fa267035b518369d9511ffab804f839851d2779/pluggy-1.6.0.tar.gz", hash = "sha256:7dcc130b76258d33b90f61b658791dede3486c3e6bfb003ee5c9bfb396dd22f3", size = 69412, upload-time = "2025-05-15T12:30:07.975Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/54/20/4d324d65cc6d9205fabedc306948156824eb9f0ee1633355a8f7ec5c66bf/pluggy-1.6.0-py3-none-any.whl", hash = "sha256:e920276dd6813095e9377c0bc5566d94c932c33b27a3e3945d8389c374dd4746", size = 20538, upload-time = "2025-05-15T12:30:06.134Z" },+]++[[package]]+name = "pygments"+version = "2.19.2"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/b0/77/a5b8c569bf593b0140bde72ea885a803b82086995367bf2037de0159d924/pygments-2.19.2.tar.gz", hash = "sha256:636cb2477cec7f8952536970bc533bc43743542f70392ae026374600add5b887", size = 4968631, upload-time = "2025-06-21T13:39:12.283Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/c7/21/705964c7812476f378728bdf590ca4b771ec72385c533964653c68e86bdc/pygments-2.19.2-py3-none-any.whl", hash = "sha256:86540386c03d588bb81d44bc3928634ff26449851e99741617ecb9037ee5ec0b", size = 1225217, upload-time = "2025-06-21T13:39:07.939Z" },+]++[[package]]+name = "pytest"+version = "9.0.2"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "colorama", marker = "sys_platform == 'win32'" },+ { name = "iniconfig" },+ { name = "packaging" },+ { name = "pluggy" },+ { name = "pygments" },+]+sdist = { url = "https://files.pythonhosted.org/packages/d1/db/7ef3487e0fb0049ddb5ce41d3a49c235bf9ad299b6a25d5780a89f19230f/pytest-9.0.2.tar.gz", hash = "sha256:75186651a92bd89611d1d9fc20f0b4345fd827c41ccd5c299a868a05d70edf11", size = 1568901, upload-time = "2025-12-06T21:30:51.014Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/3b/ab/b3226f0bd7cdcf710fbede2b3548584366da3b19b5021e74f5bde2a8fa3f/pytest-9.0.2-py3-none-any.whl", hash = "sha256:711ffd45bf766d5264d487b917733b453d917afd2b0ad65223959f59089f875b", size = 374801, upload-time = "2025-12-06T21:30:49.154Z" },+]++[[package]]+name = "pytest-env"+version = "1.6.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "pytest" },+ { name = "python-dotenv" },+]+sdist = { url = "https://files.pythonhosted.org/packages/ff/69/4db1c30625af0621df8dbe73797b38b6d1b04e15d021dd5d26a6d297f78c/pytest_env-1.6.0.tar.gz", hash = "sha256:ac02d6fba16af54d61e311dd70a3c61024a4e966881ea844affc3c8f0bf207d3", size = 16163, upload-time = "2026-03-12T22:39:43.78Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/27/16/ad52f56b96d851a2bcfdc1e754c3531341885bd7177a128c13ff2ca72ab4/pytest_env-1.6.0-py3-none-any.whl", hash = "sha256:1e7f8a62215e5885835daaed694de8657c908505b964ec8097a7ce77b403d9a3", size = 10400, upload-time = "2026-03-12T22:39:41.887Z" },+]++[[package]]+name = "python-dotenv"+version = "1.2.2"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/82/ed/0301aeeac3e5353ef3d94b6ec08bbcabd04a72018415dcb29e588514bba8/python_dotenv-1.2.2.tar.gz", hash = "sha256:2c371a91fbd7ba082c2c1dc1f8bf89ca22564a087c2c287cd9b662adde799cf3", size = 50135, upload-time = "2026-03-01T16:00:26.196Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/0b/d7/1959b9648791274998a9c3526f6d0ec8fd2233e4d4acce81bbae76b44b2a/python_dotenv-1.2.2-py3-none-any.whl", hash = "sha256:1d8214789a24de455a8b8bd8ae6fe3c6b69a5e3d64aa8a8e5d68e694bbcb285a", size = 22101, upload-time = "2026-03-01T16:00:25.09Z" },+]++[[package]]+name = "pyyaml"+version = "6.0.3"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/05/8e/961c0007c59b8dd7729d542c61a4d537767a59645b82a0b521206e1e25c2/pyyaml-6.0.3.tar.gz", hash = "sha256:d76623373421df22fb4cf8817020cbb7ef15c725b9d5e45f17e189bfc384190f", size = 130960, upload-time = "2025-09-25T21:33:16.546Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/d1/33/422b98d2195232ca1826284a76852ad5a86fe23e31b009c9886b2d0fb8b2/pyyaml-6.0.3-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:7f047e29dcae44602496db43be01ad42fc6f1cc0d8cd6c83d342306c32270196", size = 182063, upload-time = "2025-09-25T21:32:11.445Z" },+ { url = "https://files.pythonhosted.org/packages/89/a0/6cf41a19a1f2f3feab0e9c0b74134aa2ce6849093d5517a0c550fe37a648/pyyaml-6.0.3-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:fc09d0aa354569bc501d4e787133afc08552722d3ab34836a80547331bb5d4a0", size = 173973, upload-time = "2025-09-25T21:32:12.492Z" },+ { url = "https://files.pythonhosted.org/packages/ed/23/7a778b6bd0b9a8039df8b1b1d80e2e2ad78aa04171592c8a5c43a56a6af4/pyyaml-6.0.3-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:9149cad251584d5fb4981be1ecde53a1ca46c891a79788c0df828d2f166bda28", size = 775116, upload-time = "2025-09-25T21:32:13.652Z" },+ { url = "https://files.pythonhosted.org/packages/65/30/d7353c338e12baef4ecc1b09e877c1970bd3382789c159b4f89d6a70dc09/pyyaml-6.0.3-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:5fdec68f91a0c6739b380c83b951e2c72ac0197ace422360e6d5a959d8d97b2c", size = 844011, upload-time = "2025-09-25T21:32:15.21Z" },+ { url = "https://files.pythonhosted.org/packages/8b/9d/b3589d3877982d4f2329302ef98a8026e7f4443c765c46cfecc8858c6b4b/pyyaml-6.0.3-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:ba1cc08a7ccde2d2ec775841541641e4548226580ab850948cbfda66a1befcdc", size = 807870, upload-time = "2025-09-25T21:32:16.431Z" },+ { url = "https://files.pythonhosted.org/packages/05/c0/b3be26a015601b822b97d9149ff8cb5ead58c66f981e04fedf4e762f4bd4/pyyaml-6.0.3-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:8dc52c23056b9ddd46818a57b78404882310fb473d63f17b07d5c40421e47f8e", size = 761089, upload-time = "2025-09-25T21:32:17.56Z" },+ { url = "https://files.pythonhosted.org/packages/be/8e/98435a21d1d4b46590d5459a22d88128103f8da4c2d4cb8f14f2a96504e1/pyyaml-6.0.3-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:41715c910c881bc081f1e8872880d3c650acf13dfa8214bad49ed4cede7c34ea", size = 790181, upload-time = "2025-09-25T21:32:18.834Z" },+ { url = "https://files.pythonhosted.org/packages/74/93/7baea19427dcfbe1e5a372d81473250b379f04b1bd3c4c5ff825e2327202/pyyaml-6.0.3-cp312-cp312-win32.whl", hash = "sha256:96b533f0e99f6579b3d4d4995707cf36df9100d67e0c8303a0c55b27b5f99bc5", size = 137658, upload-time = "2025-09-25T21:32:20.209Z" },+ { url = "https://files.pythonhosted.org/packages/86/bf/899e81e4cce32febab4fb42bb97dcdf66bc135272882d1987881a4b519e9/pyyaml-6.0.3-cp312-cp312-win_amd64.whl", hash = "sha256:5fcd34e47f6e0b794d17de1b4ff496c00986e1c83f7ab2fb8fcfe9616ff7477b", size = 154003, upload-time = "2025-09-25T21:32:21.167Z" },+ { url = "https://files.pythonhosted.org/packages/1a/08/67bd04656199bbb51dbed1439b7f27601dfb576fb864099c7ef0c3e55531/pyyaml-6.0.3-cp312-cp312-win_arm64.whl", hash = "sha256:64386e5e707d03a7e172c0701abfb7e10f0fb753ee1d773128192742712a98fd", size = 140344, upload-time = "2025-09-25T21:32:22.617Z" },+ { url = "https://files.pythonhosted.org/packages/d1/11/0fd08f8192109f7169db964b5707a2f1e8b745d4e239b784a5a1dd80d1db/pyyaml-6.0.3-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:8da9669d359f02c0b91ccc01cac4a67f16afec0dac22c2ad09f46bee0697eba8", size = 181669, upload-time = "2025-09-25T21:32:23.673Z" },+ { url = "https://files.pythonhosted.org/packages/b1/16/95309993f1d3748cd644e02e38b75d50cbc0d9561d21f390a76242ce073f/pyyaml-6.0.3-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:2283a07e2c21a2aa78d9c4442724ec1eb15f5e42a723b99cb3d822d48f5f7ad1", size = 173252, upload-time = "2025-09-25T21:32:25.149Z" },+ { url = "https://files.pythonhosted.org/packages/50/31/b20f376d3f810b9b2371e72ef5adb33879b25edb7a6d072cb7ca0c486398/pyyaml-6.0.3-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ee2922902c45ae8ccada2c5b501ab86c36525b883eff4255313a253a3160861c", size = 767081, upload-time = "2025-09-25T21:32:26.575Z" },+ { url = "https://files.pythonhosted.org/packages/49/1e/a55ca81e949270d5d4432fbbd19dfea5321eda7c41a849d443dc92fd1ff7/pyyaml-6.0.3-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:a33284e20b78bd4a18c8c2282d549d10bc8408a2a7ff57653c0cf0b9be0afce5", size = 841159, upload-time = "2025-09-25T21:32:27.727Z" },+ { url = "https://files.pythonhosted.org/packages/74/27/e5b8f34d02d9995b80abcef563ea1f8b56d20134d8f4e5e81733b1feceb2/pyyaml-6.0.3-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:0f29edc409a6392443abf94b9cf89ce99889a1dd5376d94316ae5145dfedd5d6", size = 801626, upload-time = "2025-09-25T21:32:28.878Z" },+ { url = "https://files.pythonhosted.org/packages/f9/11/ba845c23988798f40e52ba45f34849aa8a1f2d4af4b798588010792ebad6/pyyaml-6.0.3-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:f7057c9a337546edc7973c0d3ba84ddcdf0daa14533c2065749c9075001090e6", size = 753613, upload-time = "2025-09-25T21:32:30.178Z" },+ { url = "https://files.pythonhosted.org/packages/3d/e0/7966e1a7bfc0a45bf0a7fb6b98ea03fc9b8d84fa7f2229e9659680b69ee3/pyyaml-6.0.3-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:eda16858a3cab07b80edaf74336ece1f986ba330fdb8ee0d6c0d68fe82bc96be", size = 794115, upload-time = "2025-09-25T21:32:31.353Z" },+ { url = "https://files.pythonhosted.org/packages/de/94/980b50a6531b3019e45ddeada0626d45fa85cbe22300844a7983285bed3b/pyyaml-6.0.3-cp313-cp313-win32.whl", hash = "sha256:d0eae10f8159e8fdad514efdc92d74fd8d682c933a6dd088030f3834bc8e6b26", size = 137427, upload-time = "2025-09-25T21:32:32.58Z" },+ { url = "https://files.pythonhosted.org/packages/97/c9/39d5b874e8b28845e4ec2202b5da735d0199dbe5b8fb85f91398814a9a46/pyyaml-6.0.3-cp313-cp313-win_amd64.whl", hash = "sha256:79005a0d97d5ddabfeeea4cf676af11e647e41d81c9a7722a193022accdb6b7c", size = 154090, upload-time = "2025-09-25T21:32:33.659Z" },+ { url = "https://files.pythonhosted.org/packages/73/e8/2bdf3ca2090f68bb3d75b44da7bbc71843b19c9f2b9cb9b0f4ab7a5a4329/pyyaml-6.0.3-cp313-cp313-win_arm64.whl", hash = "sha256:5498cd1645aa724a7c71c8f378eb29ebe23da2fc0d7a08071d89469bf1d2defb", size = 140246, upload-time = "2025-09-25T21:32:34.663Z" },+ { url = "https://files.pythonhosted.org/packages/9d/8c/f4bd7f6465179953d3ac9bc44ac1a8a3e6122cf8ada906b4f96c60172d43/pyyaml-6.0.3-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:8d1fab6bb153a416f9aeb4b8763bc0f22a5586065f86f7664fc23339fc1c1fac", size = 181814, upload-time = "2025-09-25T21:32:35.712Z" },+ { url = "https://files.pythonhosted.org/packages/bd/9c/4d95bb87eb2063d20db7b60faa3840c1b18025517ae857371c4dd55a6b3a/pyyaml-6.0.3-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:34d5fcd24b8445fadc33f9cf348c1047101756fd760b4dacb5c3e99755703310", size = 173809, upload-time = "2025-09-25T21:32:36.789Z" },+ { url = "https://files.pythonhosted.org/packages/92/b5/47e807c2623074914e29dabd16cbbdd4bf5e9b2db9f8090fa64411fc5382/pyyaml-6.0.3-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:501a031947e3a9025ed4405a168e6ef5ae3126c59f90ce0cd6f2bfc477be31b7", size = 766454, upload-time = "2025-09-25T21:32:37.966Z" },+ { url = "https://files.pythonhosted.org/packages/02/9e/e5e9b168be58564121efb3de6859c452fccde0ab093d8438905899a3a483/pyyaml-6.0.3-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:b3bc83488de33889877a0f2543ade9f70c67d66d9ebb4ac959502e12de895788", size = 836355, upload-time = "2025-09-25T21:32:39.178Z" },+ { url = "https://files.pythonhosted.org/packages/88/f9/16491d7ed2a919954993e48aa941b200f38040928474c9e85ea9e64222c3/pyyaml-6.0.3-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c458b6d084f9b935061bc36216e8a69a7e293a2f1e68bf956dcd9e6cbcd143f5", size = 794175, upload-time = "2025-09-25T21:32:40.865Z" },+ { url = "https://files.pythonhosted.org/packages/dd/3f/5989debef34dc6397317802b527dbbafb2b4760878a53d4166579111411e/pyyaml-6.0.3-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:7c6610def4f163542a622a73fb39f534f8c101d690126992300bf3207eab9764", size = 755228, upload-time = "2025-09-25T21:32:42.084Z" },+ { url = "https://files.pythonhosted.org/packages/d7/ce/af88a49043cd2e265be63d083fc75b27b6ed062f5f9fd6cdc223ad62f03e/pyyaml-6.0.3-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:5190d403f121660ce8d1d2c1bb2ef1bd05b5f68533fc5c2ea899bd15f4399b35", size = 789194, upload-time = "2025-09-25T21:32:43.362Z" },+ { url = "https://files.pythonhosted.org/packages/23/20/bb6982b26a40bb43951265ba29d4c246ef0ff59c9fdcdf0ed04e0687de4d/pyyaml-6.0.3-cp314-cp314-win_amd64.whl", hash = "sha256:4a2e8cebe2ff6ab7d1050ecd59c25d4c8bd7e6f400f5f82b96557ac0abafd0ac", size = 156429, upload-time = "2025-09-25T21:32:57.844Z" },+ { url = "https://files.pythonhosted.org/packages/f4/f4/a4541072bb9422c8a883ab55255f918fa378ecf083f5b85e87fc2b4eda1b/pyyaml-6.0.3-cp314-cp314-win_arm64.whl", hash = "sha256:93dda82c9c22deb0a405ea4dc5f2d0cda384168e466364dec6255b293923b2f3", size = 143912, upload-time = "2025-09-25T21:32:59.247Z" },+ { url = "https://files.pythonhosted.org/packages/7c/f9/07dd09ae774e4616edf6cda684ee78f97777bdd15847253637a6f052a62f/pyyaml-6.0.3-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:02893d100e99e03eda1c8fd5c441d8c60103fd175728e23e431db1b589cf5ab3", size = 189108, upload-time = "2025-09-25T21:32:44.377Z" },+ { url = "https://files.pythonhosted.org/packages/4e/78/8d08c9fb7ce09ad8c38ad533c1191cf27f7ae1effe5bb9400a46d9437fcf/pyyaml-6.0.3-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:c1ff362665ae507275af2853520967820d9124984e0f7466736aea23d8611fba", size = 183641, upload-time = "2025-09-25T21:32:45.407Z" },+ { url = "https://files.pythonhosted.org/packages/7b/5b/3babb19104a46945cf816d047db2788bcaf8c94527a805610b0289a01c6b/pyyaml-6.0.3-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6adc77889b628398debc7b65c073bcb99c4a0237b248cacaf3fe8a557563ef6c", size = 831901, upload-time = "2025-09-25T21:32:48.83Z" },+ { url = "https://files.pythonhosted.org/packages/8b/cc/dff0684d8dc44da4d22a13f35f073d558c268780ce3c6ba1b87055bb0b87/pyyaml-6.0.3-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:a80cb027f6b349846a3bf6d73b5e95e782175e52f22108cfa17876aaeff93702", size = 861132, upload-time = "2025-09-25T21:32:50.149Z" },+ { url = "https://files.pythonhosted.org/packages/b1/5e/f77dc6b9036943e285ba76b49e118d9ea929885becb0a29ba8a7c75e29fe/pyyaml-6.0.3-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:00c4bdeba853cc34e7dd471f16b4114f4162dc03e6b7afcc2128711f0eca823c", size = 839261, upload-time = "2025-09-25T21:32:51.808Z" },+ { url = "https://files.pythonhosted.org/packages/ce/88/a9db1376aa2a228197c58b37302f284b5617f56a5d959fd1763fb1675ce6/pyyaml-6.0.3-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:66e1674c3ef6f541c35191caae2d429b967b99e02040f5ba928632d9a7f0f065", size = 805272, upload-time = "2025-09-25T21:32:52.941Z" },+ { url = "https://files.pythonhosted.org/packages/da/92/1446574745d74df0c92e6aa4a7b0b3130706a4142b2d1a5869f2eaa423c6/pyyaml-6.0.3-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:16249ee61e95f858e83976573de0f5b2893b3677ba71c9dd36b9cf8be9ac6d65", size = 829923, upload-time = "2025-09-25T21:32:54.537Z" },+ { url = "https://files.pythonhosted.org/packages/f0/7a/1c7270340330e575b92f397352af856a8c06f230aa3e76f86b39d01b416a/pyyaml-6.0.3-cp314-cp314t-win_amd64.whl", hash = "sha256:4ad1906908f2f5ae4e5a8ddfce73c320c2a1429ec52eafd27138b7f1cbe341c9", size = 174062, upload-time = "2025-09-25T21:32:55.767Z" },+ { url = "https://files.pythonhosted.org/packages/f1/12/de94a39c2ef588c7e6455cfbe7343d3b2dc9d6b6b2f40c4c6565744c873d/pyyaml-6.0.3-cp314-cp314t-win_arm64.whl", hash = "sha256:ebc55a14a21cb14062aa4162f906cd962b28e2e9ea38f9b4391244cd8de4ae0b", size = 149341, upload-time = "2025-09-25T21:32:56.828Z" },+]++[[package]]+name = "regex"+version = "2026.2.28"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/8b/71/41455aa99a5a5ac1eaf311f5d8efd9ce6433c03ac1e0962de163350d0d97/regex-2026.2.28.tar.gz", hash = "sha256:a729e47d418ea11d03469f321aaf67cdee8954cde3ff2cf8403ab87951ad10f2", size = 415184, upload-time = "2026-02-28T02:19:42.792Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/07/42/9061b03cf0fc4b5fa2c3984cbbaed54324377e440a5c5a29d29a72518d62/regex-2026.2.28-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:fcf26c3c6d0da98fada8ae4ef0aa1c3405a431c0a77eb17306d38a89b02adcd7", size = 489574, upload-time = "2026-02-28T02:16:50.455Z" },+ { url = "https://files.pythonhosted.org/packages/77/83/0c8a5623a233015595e3da499c5a1c13720ac63c107897a6037bb97af248/regex-2026.2.28-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:02473c954af35dd2defeb07e44182f5705b30ea3f351a7cbffa9177beb14da5d", size = 291426, upload-time = "2026-02-28T02:16:52.52Z" },+ { url = "https://files.pythonhosted.org/packages/9e/06/3ef1ac6910dc3295ebd71b1f9bfa737e82cfead211a18b319d45f85ddd09/regex-2026.2.28-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:9b65d33a17101569f86d9c5966a8b1d7fbf8afdda5a8aa219301b0a80f58cf7d", size = 289200, upload-time = "2026-02-28T02:16:54.08Z" },+ { url = "https://files.pythonhosted.org/packages/dd/c9/8cc8d850b35ab5650ff6756a1cb85286e2000b66c97520b29c1587455344/regex-2026.2.28-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e71dcecaa113eebcc96622c17692672c2d104b1d71ddf7adeda90da7ddeb26fc", size = 796765, upload-time = "2026-02-28T02:16:55.905Z" },+ { url = "https://files.pythonhosted.org/packages/e9/5d/57702597627fc23278ebf36fbb497ac91c0ce7fec89ac6c81e420ca3e38c/regex-2026.2.28-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:481df4623fa4969c8b11f3433ed7d5e3dc9cec0f008356c3212b3933fb77e3d8", size = 863093, upload-time = "2026-02-28T02:16:58.094Z" },+ { url = "https://files.pythonhosted.org/packages/02/6d/f3ecad537ca2811b4d26b54ca848cf70e04fcfc138667c146a9f3157779c/regex-2026.2.28-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:64e7c6ad614573e0640f271e811a408d79a9e1fe62a46adb602f598df42a818d", size = 909455, upload-time = "2026-02-28T02:17:00.918Z" },+ { url = "https://files.pythonhosted.org/packages/9e/40/bb226f203caa22c1043c1ca79b36340156eca0f6a6742b46c3bb222a3a57/regex-2026.2.28-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:d6b08a06976ff4fb0d83077022fde3eca06c55432bb997d8c0495b9a4e9872f4", size = 802037, upload-time = "2026-02-28T02:17:02.842Z" },+ { url = "https://files.pythonhosted.org/packages/44/7c/c6d91d8911ac6803b45ca968e8e500c46934e58c0903cbc6d760ee817a0a/regex-2026.2.28-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:864cdd1a2ef5716b0ab468af40139e62ede1b3a53386b375ec0786bb6783fc05", size = 775113, upload-time = "2026-02-28T02:17:04.506Z" },+ { url = "https://files.pythonhosted.org/packages/dc/8d/4a9368d168d47abd4158580b8c848709667b1cd293ff0c0c277279543bd0/regex-2026.2.28-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:511f7419f7afab475fd4d639d4aedfc54205bcb0800066753ef68a59f0f330b5", size = 784194, upload-time = "2026-02-28T02:17:06.888Z" },+ { url = "https://files.pythonhosted.org/packages/cc/bf/2c72ab5d8b7be462cb1651b5cc333da1d0068740342f350fcca3bca31947/regex-2026.2.28-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:b42f7466e32bf15a961cf09f35fa6323cc72e64d3d2c990b10de1274a5da0a59", size = 856846, upload-time = "2026-02-28T02:17:09.11Z" },+ { url = "https://files.pythonhosted.org/packages/7c/f4/6b65c979bb6d09f51bb2d2a7bc85de73c01ec73335d7ddd202dcb8cd1c8f/regex-2026.2.28-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:8710d61737b0c0ce6836b1da7109f20d495e49b3809f30e27e9560be67a257bf", size = 763516, upload-time = "2026-02-28T02:17:11.004Z" },+ { url = "https://files.pythonhosted.org/packages/8e/32/29ea5e27400ee86d2cc2b4e80aa059df04eaf78b4f0c18576ae077aeff68/regex-2026.2.28-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:4390c365fd2d45278f45afd4673cb90f7285f5701607e3ad4274df08e36140ae", size = 849278, upload-time = "2026-02-28T02:17:12.693Z" },+ { url = "https://files.pythonhosted.org/packages/1d/91/3233d03b5f865111cd517e1c95ee8b43e8b428d61fa73764a80c9bb6f537/regex-2026.2.28-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:cb3b1db8ff6c7b8bf838ab05583ea15230cb2f678e569ab0e3a24d1e8320940b", size = 790068, upload-time = "2026-02-28T02:17:14.9Z" },+ { url = "https://files.pythonhosted.org/packages/76/92/abc706c1fb03b4580a09645b206a3fc032f5a9f457bc1a8038ac555658ab/regex-2026.2.28-cp312-cp312-win32.whl", hash = "sha256:f8ed9a5d4612df9d4de15878f0bc6aa7a268afbe5af21a3fdd97fa19516e978c", size = 266416, upload-time = "2026-02-28T02:17:17.15Z" },+ { url = "https://files.pythonhosted.org/packages/fa/06/2a6f7dff190e5fa9df9fb4acf2fdf17a1aa0f7f54596cba8de608db56b3a/regex-2026.2.28-cp312-cp312-win_amd64.whl", hash = "sha256:01d65fd24206c8e1e97e2e31b286c59009636c022eb5d003f52760b0f42155d4", size = 277297, upload-time = "2026-02-28T02:17:18.723Z" },+ { url = "https://files.pythonhosted.org/packages/b7/f0/58a2484851fadf284458fdbd728f580d55c1abac059ae9f048c63b92f427/regex-2026.2.28-cp312-cp312-win_arm64.whl", hash = "sha256:c0b5ccbb8ffb433939d248707d4a8b31993cb76ab1a0187ca886bf50e96df952", size = 270408, upload-time = "2026-02-28T02:17:20.328Z" },+ { url = "https://files.pythonhosted.org/packages/87/f6/dc9ef48c61b79c8201585bf37fa70cd781977da86e466cd94e8e95d2443b/regex-2026.2.28-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:6d63a07e5ec8ce7184452cb00c41c37b49e67dc4f73b2955b5b8e782ea970784", size = 489311, upload-time = "2026-02-28T02:17:22.591Z" },+ { url = "https://files.pythonhosted.org/packages/95/c8/c20390f2232d3f7956f420f4ef1852608ad57aa26c3dd78516cb9f3dc913/regex-2026.2.28-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:e59bc8f30414d283ae8ee1617b13d8112e7135cb92830f0ec3688cb29152585a", size = 291285, upload-time = "2026-02-28T02:17:24.355Z" },+ { url = "https://files.pythonhosted.org/packages/d2/a6/ba1068a631ebd71a230e7d8013fcd284b7c89c35f46f34a7da02082141b1/regex-2026.2.28-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:de0cf053139f96219ccfabb4a8dd2d217c8c82cb206c91d9f109f3f552d6b43d", size = 289051, upload-time = "2026-02-28T02:17:26.722Z" },+ { url = "https://files.pythonhosted.org/packages/1d/1b/7cc3b7af4c244c204b7a80924bd3d85aecd9ba5bc82b485c5806ee8cda9e/regex-2026.2.28-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:fb4db2f17e6484904f986c5a657cec85574c76b5c5e61c7aae9ffa1bc6224f95", size = 796842, upload-time = "2026-02-28T02:17:29.064Z" },+ { url = "https://files.pythonhosted.org/packages/24/87/26bd03efc60e0d772ac1e7b60a2e6325af98d974e2358f659c507d3c76db/regex-2026.2.28-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:52b017b35ac2214d0db5f4f90e303634dc44e4aba4bd6235a27f97ecbe5b0472", size = 863083, upload-time = "2026-02-28T02:17:31.363Z" },+ { url = "https://files.pythonhosted.org/packages/ae/54/aeaf4afb1aa0a65e40de52a61dc2ac5b00a83c6cb081c8a1d0dda74f3010/regex-2026.2.28-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:69fc560ccbf08a09dc9b52ab69cacfae51e0ed80dc5693078bdc97db2f91ae96", size = 909412, upload-time = "2026-02-28T02:17:33.248Z" },+ { url = "https://files.pythonhosted.org/packages/12/2f/049901def913954e640d199bbc6a7ca2902b6aeda0e5da9d17f114100ec2/regex-2026.2.28-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:e61eea47230eba62a31f3e8a0e3164d0f37ef9f40529fb2c79361bc6b53d2a92", size = 802101, upload-time = "2026-02-28T02:17:35.053Z" },+ { url = "https://files.pythonhosted.org/packages/7d/a5/512fb9ff7f5b15ea204bb1967ebb649059446decacccb201381f9fa6aad4/regex-2026.2.28-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:4f5c0b182ad4269e7381b7c27fdb0408399881f7a92a4624fd5487f2971dfc11", size = 775260, upload-time = "2026-02-28T02:17:37.692Z" },+ { url = "https://files.pythonhosted.org/packages/d1/a8/9a92935878aba19bd72706b9db5646a6f993d99b3f6ed42c02ec8beb1d61/regex-2026.2.28-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:96f6269a2882fbb0ee76967116b83679dc628e68eaea44e90884b8d53d833881", size = 784311, upload-time = "2026-02-28T02:17:39.855Z" },+ { url = "https://files.pythonhosted.org/packages/09/d3/fc51a8a738a49a6b6499626580554c9466d3ea561f2b72cfdc72e4149773/regex-2026.2.28-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:b5acd4b6a95f37c3c3828e5d053a7d4edaedb85de551db0153754924cb7c83e3", size = 856876, upload-time = "2026-02-28T02:17:42.317Z" },+ { url = "https://files.pythonhosted.org/packages/08/b7/2e641f3d084b120ca4c52e8c762a78da0b32bf03ef546330db3e2635dc5f/regex-2026.2.28-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:2234059cfe33d9813a3677ef7667999caea9eeaa83fef98eb6ce15c6cf9e0215", size = 763632, upload-time = "2026-02-28T02:17:45.073Z" },+ { url = "https://files.pythonhosted.org/packages/fe/6d/0009021d97e79ee99f3d8641f0a8d001eed23479ade4c3125a5480bf3e2d/regex-2026.2.28-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:c15af43c72a7fb0c97cbc66fa36a43546eddc5c06a662b64a0cbf30d6ac40944", size = 849320, upload-time = "2026-02-28T02:17:47.192Z" },+ { url = "https://files.pythonhosted.org/packages/05/7a/51cfbad5758f8edae430cb21961a9c8d04bce1dae4d2d18d4186eec7cfa1/regex-2026.2.28-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:9185cc63359862a6e80fe97f696e04b0ad9a11c4ac0a4a927f979f611bfe3768", size = 790152, upload-time = "2026-02-28T02:17:49.067Z" },+ { url = "https://files.pythonhosted.org/packages/90/3d/a83e2b6b3daa142acb8c41d51de3876186307d5cb7490087031747662500/regex-2026.2.28-cp313-cp313-win32.whl", hash = "sha256:fb66e5245db9652abd7196ace599b04d9c0e4aa7c8f0e2803938377835780081", size = 266398, upload-time = "2026-02-28T02:17:50.744Z" },+ { url = "https://files.pythonhosted.org/packages/85/4f/16e9ebb1fe5425e11b9596c8d57bf8877dcb32391da0bfd33742e3290637/regex-2026.2.28-cp313-cp313-win_amd64.whl", hash = "sha256:71a911098be38c859ceb3f9a9ce43f4ed9f4c6720ad8684a066ea246b76ad9ff", size = 277282, upload-time = "2026-02-28T02:17:53.074Z" },+ { url = "https://files.pythonhosted.org/packages/07/b4/92851335332810c5a89723bf7a7e35c7209f90b7d4160024501717b28cc9/regex-2026.2.28-cp313-cp313-win_arm64.whl", hash = "sha256:39bb5727650b9a0275c6a6690f9bb3fe693a7e6cc5c3155b1240aedf8926423e", size = 270382, upload-time = "2026-02-28T02:17:54.888Z" },+ { url = "https://files.pythonhosted.org/packages/24/07/6c7e4cec1e585959e96cbc24299d97e4437a81173217af54f1804994e911/regex-2026.2.28-cp313-cp313t-macosx_10_13_universal2.whl", hash = "sha256:97054c55db06ab020342cc0d35d6f62a465fa7662871190175f1ad6c655c028f", size = 492541, upload-time = "2026-02-28T02:17:56.813Z" },+ { url = "https://files.pythonhosted.org/packages/7c/13/55eb22ada7f43d4f4bb3815b6132183ebc331c81bd496e2d1f3b8d862e0d/regex-2026.2.28-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:0d25a10811de831c2baa6aef3c0be91622f44dd8d31dd12e69f6398efb15e48b", size = 292984, upload-time = "2026-02-28T02:17:58.538Z" },+ { url = "https://files.pythonhosted.org/packages/5b/11/c301f8cb29ce9644a5ef85104c59244e6e7e90994a0f458da4d39baa8e17/regex-2026.2.28-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:d6cfe798d8da41bb1862ed6e0cba14003d387c3c0c4a5d45591076ae9f0ce2f8", size = 291509, upload-time = "2026-02-28T02:18:00.208Z" },+ { url = "https://files.pythonhosted.org/packages/b5/43/aabe384ec1994b91796e903582427bc2ffaed9c4103819ed3c16d8e749f3/regex-2026.2.28-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:fd0ce43e71d825b7c0661f9c54d4d74bd97c56c3fd102a8985bcfea48236bacb", size = 809429, upload-time = "2026-02-28T02:18:02.328Z" },+ { url = "https://files.pythonhosted.org/packages/04/b8/8d2d987a816720c4f3109cee7c06a4b24ad0e02d4fc74919ab619e543737/regex-2026.2.28-cp313-cp313t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:00945d007fd74a9084d2ab79b695b595c6b7ba3698972fadd43e23230c6979c1", size = 869422, upload-time = "2026-02-28T02:18:04.23Z" },+ { url = "https://files.pythonhosted.org/packages/fc/ad/2c004509e763c0c3719f97c03eca26473bffb3868d54c5f280b8cd4f9e3d/regex-2026.2.28-cp313-cp313t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:bec23c11cbbf09a4df32fe50d57cbdd777bc442269b6e39a1775654f1c95dee2", size = 915175, upload-time = "2026-02-28T02:18:06.791Z" },+ { url = "https://files.pythonhosted.org/packages/55/c2/fd429066da487ef555a9da73bf214894aec77fc8c66a261ee355a69871a8/regex-2026.2.28-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:5cdcc17d935c8f9d3f4db5c2ebe2640c332e3822ad5d23c2f8e0228e6947943a", size = 812044, upload-time = "2026-02-28T02:18:08.736Z" },+ { url = "https://files.pythonhosted.org/packages/5b/ca/feedb7055c62a3f7f659971bf45f0e0a87544b6b0cf462884761453f97c5/regex-2026.2.28-cp313-cp313t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:a448af01e3d8031c89c5d902040b124a5e921a25c4e5e07a861ca591ce429341", size = 782056, upload-time = "2026-02-28T02:18:10.777Z" },+ { url = "https://files.pythonhosted.org/packages/95/30/1aa959ed0d25c1dd7dd5047ea8ba482ceaef38ce363c401fd32a6b923e60/regex-2026.2.28-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:10d28e19bd4888e4abf43bd3925f3c134c52fdf7259219003588a42e24c2aa25", size = 798743, upload-time = "2026-02-28T02:18:13.025Z" },+ { url = "https://files.pythonhosted.org/packages/3b/1f/dadb9cf359004784051c897dcf4d5d79895f73a1bbb7b827abaa4814ae80/regex-2026.2.28-cp313-cp313t-musllinux_1_2_ppc64le.whl", hash = "sha256:99985a2c277dcb9ccb63f937451af5d65177af1efdeb8173ac55b61095a0a05c", size = 864633, upload-time = "2026-02-28T02:18:16.84Z" },+ { url = "https://files.pythonhosted.org/packages/a7/f1/b9a25eb24e1cf79890f09e6ec971ee5b511519f1851de3453bc04f6c902b/regex-2026.2.28-cp313-cp313t-musllinux_1_2_riscv64.whl", hash = "sha256:e1e7b24cb3ae9953a560c563045d1ba56ee4749fbd05cf21ba571069bd7be81b", size = 770862, upload-time = "2026-02-28T02:18:18.892Z" },+ { url = "https://files.pythonhosted.org/packages/02/9a/c5cb10b7aa6f182f9247a30cc9527e326601f46f4df864ac6db588d11fcd/regex-2026.2.28-cp313-cp313t-musllinux_1_2_s390x.whl", hash = "sha256:d8511a01d0e4ee1992eb3ba19e09bc1866fe03f05129c3aec3fdc4cbc77aad3f", size = 854788, upload-time = "2026-02-28T02:18:21.475Z" },+ { url = "https://files.pythonhosted.org/packages/0a/50/414ba0731c4bd40b011fa4703b2cc86879ec060c64f2a906e65a56452589/regex-2026.2.28-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:aaffaecffcd2479ce87aa1e74076c221700b7c804e48e98e62500ee748f0f550", size = 800184, upload-time = "2026-02-28T02:18:23.492Z" },+ { url = "https://files.pythonhosted.org/packages/69/50/0c7290987f97e7e6830b0d853f69dc4dc5852c934aae63e7fdcd76b4c383/regex-2026.2.28-cp313-cp313t-win32.whl", hash = "sha256:ef77bdde9c9eba3f7fa5b58084b29bbcc74bcf55fdbeaa67c102a35b5bd7e7cc", size = 269137, upload-time = "2026-02-28T02:18:25.375Z" },+ { url = "https://files.pythonhosted.org/packages/68/80/ef26ff90e74ceb4051ad6efcbbb8a4be965184a57e879ebcbdef327d18fa/regex-2026.2.28-cp313-cp313t-win_amd64.whl", hash = "sha256:98adf340100cbe6fbaf8e6dc75e28f2c191b1be50ffefe292fb0e6f6eefdb0d8", size = 280682, upload-time = "2026-02-28T02:18:27.205Z" },+ { url = "https://files.pythonhosted.org/packages/69/8b/fbad9c52e83ffe8f97e3ed1aa0516e6dff6bb633a41da9e64645bc7efdc5/regex-2026.2.28-cp313-cp313t-win_arm64.whl", hash = "sha256:2fb950ac1d88e6b6a9414381f403797b236f9fa17e1eee07683af72b1634207b", size = 271735, upload-time = "2026-02-28T02:18:29.015Z" },+ { url = "https://files.pythonhosted.org/packages/cf/03/691015f7a7cb1ed6dacb2ea5de5682e4858e05a4c5506b2839cd533bbcd6/regex-2026.2.28-cp314-cp314-macosx_10_13_universal2.whl", hash = "sha256:78454178c7df31372ea737996fb7f36b3c2c92cccc641d251e072478afb4babc", size = 489497, upload-time = "2026-02-28T02:18:30.889Z" },+ { url = "https://files.pythonhosted.org/packages/c6/ba/8db8fd19afcbfa0e1036eaa70c05f20ca8405817d4ad7a38a6b4c2f031ac/regex-2026.2.28-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:5d10303dd18cedfd4d095543998404df656088240bcfd3cd20a8f95b861f74bd", size = 291295, upload-time = "2026-02-28T02:18:33.426Z" },+ { url = "https://files.pythonhosted.org/packages/5a/79/9aa0caf089e8defef9b857b52fc53801f62ff868e19e5c83d4a96612eba1/regex-2026.2.28-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:19a9c9e0a8f24f39d575a6a854d516b48ffe4cbdcb9de55cb0570a032556ecff", size = 289275, upload-time = "2026-02-28T02:18:35.247Z" },+ { url = "https://files.pythonhosted.org/packages/eb/26/ee53117066a30ef9c883bf1127eece08308ccf8ccd45c45a966e7a665385/regex-2026.2.28-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:09500be324f49b470d907b3ef8af9afe857f5cca486f853853f7945ddbf75911", size = 797176, upload-time = "2026-02-28T02:18:37.15Z" },+ { url = "https://files.pythonhosted.org/packages/05/1b/67fb0495a97259925f343ae78b5d24d4a6624356ae138b57f18bd43006e4/regex-2026.2.28-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:fb1c4ff62277d87a7335f2c1ea4e0387b8f2b3ad88a64efd9943906aafad4f33", size = 863813, upload-time = "2026-02-28T02:18:39.478Z" },+ { url = "https://files.pythonhosted.org/packages/a0/1d/93ac9bbafc53618091c685c7ed40239a90bf9f2a82c983f0baa97cb7ae07/regex-2026.2.28-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:b8b3f1be1738feadc69f62daa250c933e85c6f34fa378f54a7ff43807c1b9117", size = 908678, upload-time = "2026-02-28T02:18:41.619Z" },+ { url = "https://files.pythonhosted.org/packages/c7/7a/a8f5e0561702b25239846a16349feece59712ae20598ebb205580332a471/regex-2026.2.28-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:dc8ed8c3f41c27acb83f7b6a9eb727a73fc6663441890c5cb3426a5f6a91ce7d", size = 801528, upload-time = "2026-02-28T02:18:43.624Z" },+ { url = "https://files.pythonhosted.org/packages/96/5d/ed6d4cbde80309854b1b9f42d9062fee38ade15f7eb4909f6ef2440403b5/regex-2026.2.28-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:fa539be029844c0ce1114762d2952ab6cfdd7c7c9bd72e0db26b94c3c36dcc5a", size = 775373, upload-time = "2026-02-28T02:18:46.102Z" },+ { url = "https://files.pythonhosted.org/packages/6a/e9/6e53c34e8068b9deec3e87210086ecb5b9efebdefca6b0d3fa43d66dcecb/regex-2026.2.28-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:7900157786428a79615a8264dac1f12c9b02957c473c8110c6b1f972dcecaddf", size = 784859, upload-time = "2026-02-28T02:18:48.269Z" },+ { url = "https://files.pythonhosted.org/packages/48/3c/736e1c7ca7f0dcd2ae33819888fdc69058a349b7e5e84bc3e2f296bbf794/regex-2026.2.28-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:0b1d2b07614d95fa2bf8a63fd1e98bd8fa2b4848dc91b1efbc8ba219fdd73952", size = 857813, upload-time = "2026-02-28T02:18:50.576Z" },+ { url = "https://files.pythonhosted.org/packages/6e/7c/48c4659ad9da61f58e79dbe8c05223e0006696b603c16eb6b5cbfbb52c27/regex-2026.2.28-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:b389c61aa28a79c2e0527ac36da579869c2e235a5b208a12c5b5318cda2501d8", size = 763705, upload-time = "2026-02-28T02:18:52.59Z" },+ { url = "https://files.pythonhosted.org/packages/cf/a1/bc1c261789283128165f71b71b4b221dd1b79c77023752a6074c102f18d8/regex-2026.2.28-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:f467cb602f03fbd1ab1908f68b53c649ce393fde056628dc8c7e634dab6bfc07", size = 848734, upload-time = "2026-02-28T02:18:54.595Z" },+ { url = "https://files.pythonhosted.org/packages/10/d8/979407faf1397036e25a5ae778157366a911c0f382c62501009f4957cf86/regex-2026.2.28-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:e8c8cb2deba42f5ec1ede46374e990f8adc5e6456a57ac1a261b19be6f28e4e6", size = 789871, upload-time = "2026-02-28T02:18:57.34Z" },+ { url = "https://files.pythonhosted.org/packages/03/23/da716821277115fcb1f4e3de1e5dc5023a1e6533598c486abf5448612579/regex-2026.2.28-cp314-cp314-win32.whl", hash = "sha256:9036b400b20e4858d56d117108d7813ed07bb7803e3eed766675862131135ca6", size = 271825, upload-time = "2026-02-28T02:18:59.202Z" },+ { url = "https://files.pythonhosted.org/packages/91/ff/90696f535d978d5f16a52a419be2770a8d8a0e7e0cfecdbfc31313df7fab/regex-2026.2.28-cp314-cp314-win_amd64.whl", hash = "sha256:1d367257cd86c1cbb97ea94e77b373a0bbc2224976e247f173d19e8f18b4afa7", size = 280548, upload-time = "2026-02-28T02:19:01.049Z" },+ { url = "https://files.pythonhosted.org/packages/69/f9/5e1b5652fc0af3fcdf7677e7df3ad2a0d47d669b34ac29a63bb177bb731b/regex-2026.2.28-cp314-cp314-win_arm64.whl", hash = "sha256:5e68192bb3a1d6fb2836da24aa494e413ea65853a21505e142e5b1064a595f3d", size = 273444, upload-time = "2026-02-28T02:19:03.255Z" },+ { url = "https://files.pythonhosted.org/packages/d3/eb/8389f9e940ac89bcf58d185e230a677b4fd07c5f9b917603ad5c0f8fa8fe/regex-2026.2.28-cp314-cp314t-macosx_10_13_universal2.whl", hash = "sha256:a5dac14d0872eeb35260a8e30bac07ddf22adc1e3a0635b52b02e180d17c9c7e", size = 492546, upload-time = "2026-02-28T02:19:05.378Z" },+ { url = "https://files.pythonhosted.org/packages/7b/c7/09441d27ce2a6fa6a61ea3150ea4639c1dcda9b31b2ea07b80d6937b24dd/regex-2026.2.28-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:ec0c608b7a7465ffadb344ed7c987ff2f11ee03f6a130b569aa74d8a70e8333c", size = 292986, upload-time = "2026-02-28T02:19:07.24Z" },+ { url = "https://files.pythonhosted.org/packages/fb/69/4144b60ed7760a6bd235e4087041f487aa4aa62b45618ce018b0c14833ea/regex-2026.2.28-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:c7815afb0ca45456613fdaf60ea9c993715511c8d53a83bc468305cbc0ee23c7", size = 291518, upload-time = "2026-02-28T02:19:09.698Z" },+ { url = "https://files.pythonhosted.org/packages/2d/be/77e5426cf5948c82f98c53582009ca9e94938c71f73a8918474f2e2990bb/regex-2026.2.28-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b059e71ec363968671693a78c5053bd9cb2fe410f9b8e4657e88377ebd603a2e", size = 809464, upload-time = "2026-02-28T02:19:12.494Z" },+ { url = "https://files.pythonhosted.org/packages/45/99/2c8c5ac90dc7d05c6e7d8e72c6a3599dc08cd577ac476898e91ca787d7f1/regex-2026.2.28-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:b8cf76f1a29f0e99dcfd7aef1551a9827588aae5a737fe31442021165f1920dc", size = 869553, upload-time = "2026-02-28T02:19:15.151Z" },+ { url = "https://files.pythonhosted.org/packages/53/34/daa66a342f0271e7737003abf6c3097aa0498d58c668dbd88362ef94eb5d/regex-2026.2.28-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:180e08a435a0319e6a4821c3468da18dc7001987e1c17ae1335488dfe7518dd8", size = 915289, upload-time = "2026-02-28T02:19:17.331Z" },+ { url = "https://files.pythonhosted.org/packages/c5/c7/e22c2aaf0a12e7e22ab19b004bb78d32ca1ecc7ef245949935463c5567de/regex-2026.2.28-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:1e496956106fd59ba6322a8ea17141a27c5040e5ee8f9433ae92d4e5204462a0", size = 812156, upload-time = "2026-02-28T02:19:20.011Z" },+ { url = "https://files.pythonhosted.org/packages/7f/bb/2dc18c1efd9051cf389cd0d7a3a4d90f6804b9fff3a51b5dc3c85b935f71/regex-2026.2.28-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:bba2b18d70eeb7b79950f12f633beeecd923f7c9ad6f6bae28e59b4cb3ab046b", size = 782215, upload-time = "2026-02-28T02:19:22.047Z" },+ { url = "https://files.pythonhosted.org/packages/17/1e/9e4ec9b9013931faa32226ec4aa3c71fe664a6d8a2b91ac56442128b332f/regex-2026.2.28-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:6db7bfae0f8a2793ff1f7021468ea55e2699d0790eb58ee6ab36ae43aa00bc5b", size = 798925, upload-time = "2026-02-28T02:19:24.173Z" },+ { url = "https://files.pythonhosted.org/packages/71/57/a505927e449a9ccb41e2cc8d735e2abe3444b0213d1cf9cb364a8c1f2524/regex-2026.2.28-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:d0b02e8b7e5874b48ae0f077ecca61c1a6a9f9895e9c6dfb191b55b242862033", size = 864701, upload-time = "2026-02-28T02:19:26.376Z" },+ { url = "https://files.pythonhosted.org/packages/a6/ad/c62cb60cdd93e13eac5b3d9d6bd5d284225ed0e3329426f94d2552dd7cca/regex-2026.2.28-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:25b6eb660c5cf4b8c3407a1ed462abba26a926cc9965e164268a3267bcc06a43", size = 770899, upload-time = "2026-02-28T02:19:29.38Z" },+ { url = "https://files.pythonhosted.org/packages/3c/5a/874f861f5c3d5ab99633e8030dee1bc113db8e0be299d1f4b07f5b5ec349/regex-2026.2.28-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:5a932ea8ad5d0430351ff9c76c8db34db0d9f53c1d78f06022a21f4e290c5c18", size = 854727, upload-time = "2026-02-28T02:19:31.494Z" },+ { url = "https://files.pythonhosted.org/packages/6b/ca/d2c03b0efde47e13db895b975b2be6a73ed90b8ba963677927283d43bf74/regex-2026.2.28-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:1c2c95e1a2b0f89d01e821ff4de1be4b5d73d1f4b0bf679fa27c1ad8d2327f1a", size = 800366, upload-time = "2026-02-28T02:19:34.248Z" },+ { url = "https://files.pythonhosted.org/packages/14/bd/ee13b20b763b8989f7c75d592bfd5de37dc1181814a2a2747fedcf97e3ba/regex-2026.2.28-cp314-cp314t-win32.whl", hash = "sha256:bbb882061f742eb5d46f2f1bd5304055be0a66b783576de3d7eef1bed4778a6e", size = 274936, upload-time = "2026-02-28T02:19:36.313Z" },+ { url = "https://files.pythonhosted.org/packages/cb/e7/d8020e39414c93af7f0d8688eabcecece44abfd5ce314b21dfda0eebd3d8/regex-2026.2.28-cp314-cp314t-win_amd64.whl", hash = "sha256:6591f281cb44dc13de9585b552cec6fc6cf47fb2fe7a48892295ee9bc4a612f9", size = 284779, upload-time = "2026-02-28T02:19:38.625Z" },+ { url = "https://files.pythonhosted.org/packages/13/c0/ad225f4a405827486f1955283407cf758b6d2fb966712644c5f5aef33d1b/regex-2026.2.28-cp314-cp314t-win_arm64.whl", hash = "sha256:dee50f1be42222f89767b64b283283ef963189da0dda4a515aa54a5563c62dec", size = 275010, upload-time = "2026-02-28T02:19:40.65Z" },+]++[[package]]+name = "requests"+version = "2.33.1"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "certifi" },+ { name = "charset-normalizer" },+ { name = "idna" },+ { name = "urllib3" },+]+sdist = { url = "https://files.pythonhosted.org/packages/5f/a4/98b9c7c6428a668bf7e42ebb7c79d576a1c3c1e3ae2d47e674b468388871/requests-2.33.1.tar.gz", hash = "sha256:18817f8c57c6263968bc123d237e3b8b08ac046f5456bd1e307ee8f4250d3517", size = 134120, upload-time = "2026-03-30T16:09:15.531Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/d7/8e/7540e8a2036f79a125c1d2ebadf69ed7901608859186c856fa0388ef4197/requests-2.33.1-py3-none-any.whl", hash = "sha256:4e6d1ef462f3626a1f0a0a9c42dd93c63bad33f9f1c1937509b8c5c8718ab56a", size = 64947, upload-time = "2026-03-30T16:09:13.83Z" },+]++[[package]]+name = "rich"+version = "14.3.3"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "markdown-it-py" },+ { name = "pygments" },+]+sdist = { url = "https://files.pythonhosted.org/packages/b3/c6/f3b320c27991c46f43ee9d856302c70dc2d0fb2dba4842ff739d5f46b393/rich-14.3.3.tar.gz", hash = "sha256:b8daa0b9e4eef54dd8cf7c86c03713f53241884e814f4e2f5fb342fe520f639b", size = 230582, upload-time = "2026-02-19T17:23:12.474Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/14/25/b208c5683343959b670dc001595f2f3737e051da617f66c31f7c4fa93abc/rich-14.3.3-py3-none-any.whl", hash = "sha256:793431c1f8619afa7d3b52b2cdec859562b950ea0d4b6b505397612db8d5362d", size = 310458, upload-time = "2026-02-19T17:23:13.732Z" },+]++[[package]]+name = "ruff"+version = "0.15.8"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/14/b0/73cf7550861e2b4824950b8b52eebdcc5adc792a00c514406556c5b80817/ruff-0.15.8.tar.gz", hash = "sha256:995f11f63597ee362130d1d5a327a87cb6f3f5eae3094c620bcc632329a4d26e", size = 4610921, upload-time = "2026-03-26T18:39:38.675Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/4a/92/c445b0cd6da6e7ae51e954939cb69f97e008dbe750cfca89b8cedc081be7/ruff-0.15.8-py3-none-linux_armv6l.whl", hash = "sha256:cbe05adeba76d58162762d6b239c9056f1a15a55bd4b346cfd21e26cd6ad7bc7", size = 10527394, upload-time = "2026-03-26T18:39:41.566Z" },+ { url = "https://files.pythonhosted.org/packages/eb/92/f1c662784d149ad1414cae450b082cf736430c12ca78367f20f5ed569d65/ruff-0.15.8-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:d3e3d0b6ba8dca1b7ef9ab80a28e840a20070c4b62e56d675c24f366ef330570", size = 10905693, upload-time = "2026-03-26T18:39:30.364Z" },+ { url = "https://files.pythonhosted.org/packages/ca/f2/7a631a8af6d88bcef997eb1bf87cc3da158294c57044aafd3e17030613de/ruff-0.15.8-py3-none-macosx_11_0_arm64.whl", hash = "sha256:6ee3ae5c65a42f273f126686353f2e08ff29927b7b7e203b711514370d500de3", size = 10323044, upload-time = "2026-03-26T18:39:33.37Z" },+ { url = "https://files.pythonhosted.org/packages/67/18/1bf38e20914a05e72ef3b9569b1d5c70a7ef26cd188d69e9ca8ef588d5bf/ruff-0.15.8-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:fdce027ada77baa448077ccc6ebb2fa9c3c62fd110d8659d601cf2f475858d94", size = 10629135, upload-time = "2026-03-26T18:39:44.142Z" },+ { url = "https://files.pythonhosted.org/packages/d2/e9/138c150ff9af60556121623d41aba18b7b57d95ac032e177b6a53789d279/ruff-0.15.8-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:12e617fc01a95e5821648a6df341d80456bd627bfab8a829f7cfc26a14a4b4a3", size = 10348041, upload-time = "2026-03-26T18:39:52.178Z" },+ { url = "https://files.pythonhosted.org/packages/02/f1/5bfb9298d9c323f842c5ddeb85f1f10ef51516ac7a34ba446c9347d898df/ruff-0.15.8-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:432701303b26416d22ba696c39f2c6f12499b89093b61360abc34bcc9bf07762", size = 11121987, upload-time = "2026-03-26T18:39:55.195Z" },+ { url = "https://files.pythonhosted.org/packages/10/11/6da2e538704e753c04e8d86b1fc55712fdbdcc266af1a1ece7a51fff0d10/ruff-0.15.8-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:d910ae974b7a06a33a057cb87d2a10792a3b2b3b35e33d2699fdf63ec8f6b17a", size = 11951057, upload-time = "2026-03-26T18:39:19.18Z" },+ { url = "https://files.pythonhosted.org/packages/83/f0/c9208c5fd5101bf87002fed774ff25a96eea313d305f1e5d5744698dc314/ruff-0.15.8-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2033f963c43949d51e6fdccd3946633c6b37c484f5f98c3035f49c27395a8ab8", size = 11464613, upload-time = "2026-03-26T18:40:06.301Z" },+ { url = "https://files.pythonhosted.org/packages/f8/22/d7f2fabdba4fae9f3b570e5605d5eb4500dcb7b770d3217dca4428484b17/ruff-0.15.8-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0f29b989a55572fb885b77464cf24af05500806ab4edf9a0fd8977f9759d85b1", size = 11257557, upload-time = "2026-03-26T18:39:57.972Z" },+ { url = "https://files.pythonhosted.org/packages/71/8c/382a9620038cf6906446b23ce8632ab8c0811b8f9d3e764f58bedd0c9a6f/ruff-0.15.8-py3-none-manylinux_2_31_riscv64.whl", hash = "sha256:ac51d486bf457cdc985a412fb1801b2dfd1bd8838372fc55de64b1510eff4bec", size = 11169440, upload-time = "2026-03-26T18:39:22.205Z" },+ { url = "https://files.pythonhosted.org/packages/4d/0d/0994c802a7eaaf99380085e4e40c845f8e32a562e20a38ec06174b52ef24/ruff-0.15.8-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:c9861eb959edab053c10ad62c278835ee69ca527b6dcd72b47d5c1e5648964f6", size = 10605963, upload-time = "2026-03-26T18:39:46.682Z" },+ { url = "https://files.pythonhosted.org/packages/19/aa/d624b86f5b0aad7cef6bbf9cd47a6a02dfdc4f72c92a337d724e39c9d14b/ruff-0.15.8-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:8d9a5b8ea13f26ae90838afc33f91b547e61b794865374f114f349e9036835fb", size = 10357484, upload-time = "2026-03-26T18:39:49.176Z" },+ { url = "https://files.pythonhosted.org/packages/35/c3/e0b7835d23001f7d999f3895c6b569927c4d39912286897f625736e1fd04/ruff-0.15.8-py3-none-musllinux_1_2_i686.whl", hash = "sha256:c2a33a529fb3cbc23a7124b5c6ff121e4d6228029cba374777bd7649cc8598b8", size = 10830426, upload-time = "2026-03-26T18:40:03.702Z" },+ { url = "https://files.pythonhosted.org/packages/f0/51/ab20b322f637b369383adc341d761eaaa0f0203d6b9a7421cd6e783d81b9/ruff-0.15.8-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:75e5cd06b1cf3f47a3996cfc999226b19aa92e7cce682dcd62f80d7035f98f49", size = 11345125, upload-time = "2026-03-26T18:39:27.799Z" },+ { url = "https://files.pythonhosted.org/packages/37/e6/90b2b33419f59d0f2c4c8a48a4b74b460709a557e8e0064cf33ad894f983/ruff-0.15.8-py3-none-win32.whl", hash = "sha256:bc1f0a51254ba21767bfa9a8b5013ca8149dcf38092e6a9eb704d876de94dc34", size = 10571959, upload-time = "2026-03-26T18:39:36.117Z" },+ { url = "https://files.pythonhosted.org/packages/1f/a2/ef467cb77099062317154c63f234b8a7baf7cb690b99af760c5b68b9ee7f/ruff-0.15.8-py3-none-win_amd64.whl", hash = "sha256:04f79eff02a72db209d47d665ba7ebcad609d8918a134f86cb13dd132159fc89", size = 11743893, upload-time = "2026-03-26T18:39:25.01Z" },+ { url = "https://files.pythonhosted.org/packages/15/e2/77be4fff062fa78d9b2a4dea85d14785dac5f1d0c1fb58ed52331f0ebe28/ruff-0.15.8-py3-none-win_arm64.whl", hash = "sha256:cf891fa8e3bb430c0e7fac93851a5978fc99c8fa2c053b57b118972866f8e5f2", size = 11048175, upload-time = "2026-03-26T18:40:01.06Z" },+]++[[package]]+name = "safetensors"+version = "0.7.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/29/9c/6e74567782559a63bd040a236edca26fd71bc7ba88de2ef35d75df3bca5e/safetensors-0.7.0.tar.gz", hash = "sha256:07663963b67e8bd9f0b8ad15bb9163606cd27cc5a1b96235a50d8369803b96b0", size = 200878, upload-time = "2025-11-19T15:18:43.199Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/fa/47/aef6c06649039accf914afef490268e1067ed82be62bcfa5b7e886ad15e8/safetensors-0.7.0-cp38-abi3-macosx_10_12_x86_64.whl", hash = "sha256:c82f4d474cf725255d9e6acf17252991c3c8aac038d6ef363a4bf8be2f6db517", size = 467781, upload-time = "2025-11-19T15:18:35.84Z" },+ { url = "https://files.pythonhosted.org/packages/e8/00/374c0c068e30cd31f1e1b46b4b5738168ec79e7689ca82ee93ddfea05109/safetensors-0.7.0-cp38-abi3-macosx_11_0_arm64.whl", hash = "sha256:94fd4858284736bb67a897a41608b5b0c2496c9bdb3bf2af1fa3409127f20d57", size = 447058, upload-time = "2025-11-19T15:18:34.416Z" },+ { url = "https://files.pythonhosted.org/packages/f1/06/578ffed52c2296f93d7fd2d844cabfa92be51a587c38c8afbb8ae449ca89/safetensors-0.7.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e07d91d0c92a31200f25351f4acb2bc6aff7f48094e13ebb1d0fb995b54b6542", size = 491748, upload-time = "2025-11-19T15:18:09.79Z" },+ { url = "https://files.pythonhosted.org/packages/ae/33/1debbbb70e4791dde185edb9413d1fe01619255abb64b300157d7f15dddd/safetensors-0.7.0-cp38-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:8469155f4cb518bafb4acf4865e8bb9d6804110d2d9bdcaa78564b9fd841e104", size = 503881, upload-time = "2025-11-19T15:18:16.145Z" },+ { url = "https://files.pythonhosted.org/packages/8e/1c/40c2ca924d60792c3be509833df711b553c60effbd91da6f5284a83f7122/safetensors-0.7.0-cp38-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:54bef08bf00a2bff599982f6b08e8770e09cc012d7bba00783fc7ea38f1fb37d", size = 623463, upload-time = "2025-11-19T15:18:21.11Z" },+ { url = "https://files.pythonhosted.org/packages/9b/3a/13784a9364bd43b0d61eef4bea2845039bc2030458b16594a1bd787ae26e/safetensors-0.7.0-cp38-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:42cb091236206bb2016d245c377ed383aa7f78691748f3bb6ee1bfa51ae2ce6a", size = 532855, upload-time = "2025-11-19T15:18:25.719Z" },+ { url = "https://files.pythonhosted.org/packages/a0/60/429e9b1cb3fc651937727befe258ea24122d9663e4d5709a48c9cbfceecb/safetensors-0.7.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:dac7252938f0696ddea46f5e855dd3138444e82236e3be475f54929f0c510d48", size = 507152, upload-time = "2025-11-19T15:18:33.023Z" },+ { url = "https://files.pythonhosted.org/packages/3c/a8/4b45e4e059270d17af60359713ffd83f97900d45a6afa73aaa0d737d48b6/safetensors-0.7.0-cp38-abi3-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:1d060c70284127fa805085d8f10fbd0962792aed71879d00864acda69dbab981", size = 541856, upload-time = "2025-11-19T15:18:31.075Z" },+ { url = "https://files.pythonhosted.org/packages/06/87/d26d8407c44175d8ae164a95b5a62707fcc445f3c0c56108e37d98070a3d/safetensors-0.7.0-cp38-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:cdab83a366799fa730f90a4ebb563e494f28e9e92c4819e556152ad55e43591b", size = 674060, upload-time = "2025-11-19T15:18:37.211Z" },+ { url = "https://files.pythonhosted.org/packages/11/f5/57644a2ff08dc6325816ba7217e5095f17269dada2554b658442c66aed51/safetensors-0.7.0-cp38-abi3-musllinux_1_2_armv7l.whl", hash = "sha256:672132907fcad9f2aedcb705b2d7b3b93354a2aec1b2f706c4db852abe338f85", size = 771715, upload-time = "2025-11-19T15:18:38.689Z" },+ { url = "https://files.pythonhosted.org/packages/86/31/17883e13a814bd278ae6e266b13282a01049b0c81341da7fd0e3e71a80a3/safetensors-0.7.0-cp38-abi3-musllinux_1_2_i686.whl", hash = "sha256:5d72abdb8a4d56d4020713724ba81dac065fedb7f3667151c4a637f1d3fb26c0", size = 714377, upload-time = "2025-11-19T15:18:40.162Z" },+ { url = "https://files.pythonhosted.org/packages/4a/d8/0c8a7dc9b41dcac53c4cbf9df2b9c83e0e0097203de8b37a712b345c0be5/safetensors-0.7.0-cp38-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:b0f6d66c1c538d5a94a73aa9ddca8ccc4227e6c9ff555322ea40bdd142391dd4", size = 677368, upload-time = "2025-11-19T15:18:41.627Z" },+ { url = "https://files.pythonhosted.org/packages/05/e5/cb4b713c8a93469e3c5be7c3f8d77d307e65fe89673e731f5c2bfd0a9237/safetensors-0.7.0-cp38-abi3-win32.whl", hash = "sha256:c74af94bf3ac15ac4d0f2a7c7b4663a15f8c2ab15ed0fc7531ca61d0835eccba", size = 326423, upload-time = "2025-11-19T15:18:45.74Z" },+ { url = "https://files.pythonhosted.org/packages/5d/e6/ec8471c8072382cb91233ba7267fd931219753bb43814cbc71757bfd4dab/safetensors-0.7.0-cp38-abi3-win_amd64.whl", hash = "sha256:d1239932053f56f3456f32eb9625590cc7582e905021f94636202a864d470755", size = 341380, upload-time = "2025-11-19T15:18:44.427Z" },+]++[[package]]+name = "setuptools"+version = "81.0.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/0d/1c/73e719955c59b8e424d015ab450f51c0af856ae46ea2da83eba51cc88de1/setuptools-81.0.0.tar.gz", hash = "sha256:487b53915f52501f0a79ccfd0c02c165ffe06631443a886740b91af4b7a5845a", size = 1198299, upload-time = "2026-02-06T21:10:39.601Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/e1/e3/c164c88b2e5ce7b24d667b9bd83589cf4f3520d97cad01534cd3c4f55fdb/setuptools-81.0.0-py3-none-any.whl", hash = "sha256:fdd925d5c5d9f62e4b74b30d6dd7828ce236fd6ed998a08d81de62ce5a6310d6", size = 1062021, upload-time = "2026-02-06T21:10:37.175Z" },+]++[[package]]+name = "shellingham"+version = "1.5.4"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/58/15/8b3609fd3830ef7b27b655beb4b4e9c62313a4e8da8c676e142cc210d58e/shellingham-1.5.4.tar.gz", hash = "sha256:8dbca0739d487e5bd35ab3ca4b36e11c4078f3a234bfce294b0a0291363404de", size = 10310, upload-time = "2023-10-24T04:13:40.426Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/e0/f9/0595336914c5619e5f28a1fb793285925a8cd4b432c9da0a987836c7f822/shellingham-1.5.4-py2.py3-none-any.whl", hash = "sha256:7ecfff8f2fd72616f7481040475a65b2bf8af90a56c89140852d1120324e8686", size = 9755, upload-time = "2023-10-24T04:13:38.866Z" },+]++[[package]]+name = "sympy"+version = "1.14.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "mpmath" },+]+sdist = { url = "https://files.pythonhosted.org/packages/83/d3/803453b36afefb7c2bb238361cd4ae6125a569b4db67cd9e79846ba2d68c/sympy-1.14.0.tar.gz", hash = "sha256:d3d3fe8df1e5a0b42f0e7bdf50541697dbe7d23746e894990c030e2b05e72517", size = 7793921, upload-time = "2025-04-27T18:05:01.611Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/a2/09/77d55d46fd61b4a135c444fc97158ef34a095e5681d0a6c10b75bf356191/sympy-1.14.0-py3-none-any.whl", hash = "sha256:e091cc3e99d2141a0ba2847328f5479b05d94a6635cb96148ccb3f34671bd8f5", size = 6299353, upload-time = "2025-04-27T18:04:59.103Z" },+]++[[package]]+name = "tokenizers"+version = "0.22.2"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "huggingface-hub" },+]+sdist = { url = "https://files.pythonhosted.org/packages/73/6f/f80cfef4a312e1fb34baf7d85c72d4411afde10978d4657f8cdd811d3ccc/tokenizers-0.22.2.tar.gz", hash = "sha256:473b83b915e547aa366d1eee11806deaf419e17be16310ac0a14077f1e28f917", size = 372115, upload-time = "2026-01-05T10:45:15.988Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/92/97/5dbfabf04c7e348e655e907ed27913e03db0923abb5dfdd120d7b25630e1/tokenizers-0.22.2-cp39-abi3-macosx_10_12_x86_64.whl", hash = "sha256:544dd704ae7238755d790de45ba8da072e9af3eea688f698b137915ae959281c", size = 3100275, upload-time = "2026-01-05T10:41:02.158Z" },+ { url = "https://files.pythonhosted.org/packages/2e/47/174dca0502ef88b28f1c9e06b73ce33500eedfac7a7692108aec220464e7/tokenizers-0.22.2-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:1e418a55456beedca4621dbab65a318981467a2b188e982a23e117f115ce5001", size = 2981472, upload-time = "2026-01-05T10:41:00.276Z" },+ { url = "https://files.pythonhosted.org/packages/d6/84/7990e799f1309a8b87af6b948f31edaa12a3ed22d11b352eaf4f4b2e5753/tokenizers-0.22.2-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2249487018adec45d6e3554c71d46eb39fa8ea67156c640f7513eb26f318cec7", size = 3290736, upload-time = "2026-01-05T10:40:32.165Z" },+ { url = "https://files.pythonhosted.org/packages/78/59/09d0d9ba94dcd5f4f1368d4858d24546b4bdc0231c2354aa31d6199f0399/tokenizers-0.22.2-cp39-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:25b85325d0815e86e0bac263506dd114578953b7b53d7de09a6485e4a160a7dd", size = 3168835, upload-time = "2026-01-05T10:40:38.847Z" },+ { url = "https://files.pythonhosted.org/packages/47/50/b3ebb4243e7160bda8d34b731e54dd8ab8b133e50775872e7a434e524c28/tokenizers-0.22.2-cp39-abi3-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:bfb88f22a209ff7b40a576d5324bf8286b519d7358663db21d6246fb17eea2d5", size = 3521673, upload-time = "2026-01-05T10:40:56.614Z" },+ { url = "https://files.pythonhosted.org/packages/e0/fa/89f4cb9e08df770b57adb96f8cbb7e22695a4cb6c2bd5f0c4f0ebcf33b66/tokenizers-0.22.2-cp39-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:1c774b1276f71e1ef716e5486f21e76333464f47bece56bbd554485982a9e03e", size = 3724818, upload-time = "2026-01-05T10:40:44.507Z" },+ { url = "https://files.pythonhosted.org/packages/64/04/ca2363f0bfbe3b3d36e95bf67e56a4c88c8e3362b658e616d1ac185d47f2/tokenizers-0.22.2-cp39-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:df6c4265b289083bf710dff49bc51ef252f9d5be33a45ee2bed151114a56207b", size = 3379195, upload-time = "2026-01-05T10:40:51.139Z" },+ { url = "https://files.pythonhosted.org/packages/2e/76/932be4b50ef6ccedf9d3c6639b056a967a86258c6d9200643f01269211ca/tokenizers-0.22.2-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:369cc9fc8cc10cb24143873a0d95438bb8ee257bb80c71989e3ee290e8d72c67", size = 3274982, upload-time = "2026-01-05T10:40:58.331Z" },+ { url = "https://files.pythonhosted.org/packages/1d/28/5f9f5a4cc211b69e89420980e483831bcc29dade307955cc9dc858a40f01/tokenizers-0.22.2-cp39-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:29c30b83d8dcd061078b05ae0cb94d3c710555fbb44861139f9f83dcca3dc3e4", size = 9478245, upload-time = "2026-01-05T10:41:04.053Z" },+ { url = "https://files.pythonhosted.org/packages/6c/fb/66e2da4704d6aadebf8cb39f1d6d1957df667ab24cff2326b77cda0dcb85/tokenizers-0.22.2-cp39-abi3-musllinux_1_2_armv7l.whl", hash = "sha256:37ae80a28c1d3265bb1f22464c856bd23c02a05bb211e56d0c5301a435be6c1a", size = 9560069, upload-time = "2026-01-05T10:45:10.673Z" },+ { url = "https://files.pythonhosted.org/packages/16/04/fed398b05caa87ce9b1a1bb5166645e38196081b225059a6edaff6440fac/tokenizers-0.22.2-cp39-abi3-musllinux_1_2_i686.whl", hash = "sha256:791135ee325f2336f498590eb2f11dc5c295232f288e75c99a36c5dbce63088a", size = 9899263, upload-time = "2026-01-05T10:45:12.559Z" },+ { url = "https://files.pythonhosted.org/packages/05/a1/d62dfe7376beaaf1394917e0f8e93ee5f67fea8fcf4107501db35996586b/tokenizers-0.22.2-cp39-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:38337540fbbddff8e999d59970f3c6f35a82de10053206a7562f1ea02d046fa5", size = 10033429, upload-time = "2026-01-05T10:45:14.333Z" },+ { url = "https://files.pythonhosted.org/packages/fd/18/a545c4ea42af3df6effd7d13d250ba77a0a86fb20393143bbb9a92e434d4/tokenizers-0.22.2-cp39-abi3-win32.whl", hash = "sha256:a6bf3f88c554a2b653af81f3204491c818ae2ac6fbc09e76ef4773351292bc92", size = 2502363, upload-time = "2026-01-05T10:45:20.593Z" },+ { url = "https://files.pythonhosted.org/packages/65/71/0670843133a43d43070abeb1949abfdef12a86d490bea9cd9e18e37c5ff7/tokenizers-0.22.2-cp39-abi3-win_amd64.whl", hash = "sha256:c9ea31edff2968b44a88f97d784c2f16dc0729b8b143ed004699ebca91f05c48", size = 2747786, upload-time = "2026-01-05T10:45:18.411Z" },+ { url = "https://files.pythonhosted.org/packages/72/f4/0de46cfa12cdcbcd464cc59fde36912af405696f687e53a091fb432f694c/tokenizers-0.22.2-cp39-abi3-win_arm64.whl", hash = "sha256:9ce725d22864a1e965217204946f830c37876eee3b2ba6fc6255e8e903d5fcbc", size = 2612133, upload-time = "2026-01-05T10:45:17.232Z" },+]++[[package]]+name = "tools"+source = { editable = "." }+dependencies = [+ { name = "cattrs" },+ { name = "google-crc32c" },+ { name = "huggingface-hub" },+ { name = "requests" },+ { name = "rich" },+ { name = "tokenizers" },+ { name = "torch" },+ { name = "transformers" },+ { name = "typer" },+]++[package.dev-dependencies]+dev = [+ { name = "pytest" },+ { name = "pytest-env" },+ { name = "ruff" },+]++[package.metadata]+requires-dist = [+ { name = "cattrs", specifier = ">=24.1.0" },+ { name = "google-crc32c", specifier = ">=1.8.0" },+ { name = "huggingface-hub", specifier = ">=1.4.1" },+ { name = "requests", specifier = ">=2.32.5" },+ { name = "rich", specifier = ">=14.3.2" },+ { name = "tokenizers", specifier = ">=0.22.2" },+ { name = "torch", specifier = ">=2.10.0" },+ { name = "transformers", specifier = ">=5.5.0" },+ { name = "typer", specifier = ">=0.21.1" },+]++[package.metadata.requires-dev]+dev = [+ { name = "pytest", specifier = ">=9.0.2" },+ { name = "pytest-env", specifier = ">=1.2.0" },+ { name = "ruff", specifier = ">=0.15.0" },+]++[[package]]+name = "torch"+version = "2.11.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "cuda-bindings", marker = "sys_platform == 'linux'" },+ { name = "cuda-toolkit", extra = ["cublas", "cudart", "cufft", "cufile", "cupti", "curand", "cusolver", "cusparse", "nvjitlink", "nvrtc", "nvtx"], marker = "sys_platform == 'linux'" },+ { name = "filelock" },+ { name = "fsspec" },+ { name = "jinja2" },+ { name = "networkx" },+ { name = "nvidia-cudnn-cu13", marker = "sys_platform == 'linux'" },+ { name = "nvidia-cusparselt-cu13", marker = "sys_platform == 'linux'" },+ { name = "nvidia-nccl-cu13", marker = "sys_platform == 'linux'" },+ { name = "nvidia-nvshmem-cu13", marker = "sys_platform == 'linux'" },+ { name = "setuptools" },+ { name = "sympy" },+ { name = "triton", marker = "sys_platform == 'linux'" },+ { name = "typing-extensions" },+]+wheels = [+ { url = "https://files.pythonhosted.org/packages/6f/8b/69e3008d78e5cee2b30183340cc425081b78afc5eff3d080daab0adda9aa/torch-2.11.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:4b5866312ee6e52ea625cd211dcb97d6a2cdc1131a5f15cc0d87eec948f6dd34", size = 80606338, upload-time = "2026-03-23T18:11:34.781Z" },+ { url = "https://files.pythonhosted.org/packages/13/16/42e5915ebe4868caa6bac83a8ed59db57f12e9a61b7d749d584776ed53d5/torch-2.11.0-cp312-cp312-manylinux_2_28_aarch64.whl", hash = "sha256:f99924682ef0aa6a4ab3b1b76f40dc6e273fca09f367d15a524266db100a723f", size = 419731115, upload-time = "2026-03-23T18:11:06.944Z" },+ { url = "https://files.pythonhosted.org/packages/1a/c9/82638ef24d7877510f83baf821f5619a61b45568ce21c0a87a91576510aa/torch-2.11.0-cp312-cp312-manylinux_2_28_x86_64.whl", hash = "sha256:0f68f4ac6d95d12e896c3b7a912b5871619542ec54d3649cf48cc1edd4dd2756", size = 530712279, upload-time = "2026-03-23T18:10:31.481Z" },+ { url = "https://files.pythonhosted.org/packages/1c/ff/6756f1c7ee302f6d202120e0f4f05b432b839908f9071157302cedfc5232/torch-2.11.0-cp312-cp312-win_amd64.whl", hash = "sha256:fbf39280699d1b869f55eac536deceaa1b60bd6788ba74f399cc67e60a5fab10", size = 114556047, upload-time = "2026-03-23T18:10:55.931Z" },+ { url = "https://files.pythonhosted.org/packages/87/89/5ea6722763acee56b045435fb84258db7375c48165ec8be7880ab2b281c5/torch-2.11.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:1e6debd97ccd3205bbb37eb806a9d8219e1139d15419982c09e23ef7d4369d18", size = 80606801, upload-time = "2026-03-23T18:10:18.649Z" },+ { url = "https://files.pythonhosted.org/packages/32/d1/8ed2173589cbfe744ed54e5a73efc107c0085ba5777ee93a5f4c1ab90553/torch-2.11.0-cp313-cp313-manylinux_2_28_aarch64.whl", hash = "sha256:63a68fa59de8f87acc7e85a5478bb2dddbb3392b7593ec3e78827c793c4b73fd", size = 419732382, upload-time = "2026-03-23T18:08:30.835Z" },+ { url = "https://files.pythonhosted.org/packages/3d/e1/b73f7c575a4b8f87a5928f50a1e35416b5e27295d8be9397d5293e7e8d4c/torch-2.11.0-cp313-cp313-manylinux_2_28_x86_64.whl", hash = "sha256:cc89b9b173d9adfab59fd227f0ab5e5516d9a52b658ae41d64e59d2e55a418db", size = 530711509, upload-time = "2026-03-23T18:08:47.213Z" },+ { url = "https://files.pythonhosted.org/packages/66/82/3e3fcdd388fbe54e29fd3f991f36846ff4ac90b0d0181e9c8f7236565f82/torch-2.11.0-cp313-cp313-win_amd64.whl", hash = "sha256:4dda3b3f52d121063a731ddb835f010dc137b920d7fec2778e52f60d8e4bf0cd", size = 114555842, upload-time = "2026-03-23T18:09:52.111Z" },+ { url = "https://files.pythonhosted.org/packages/db/38/8ac78069621b8c2b4979c2f96dc8409ef5e9c4189f6aac629189a78677ca/torch-2.11.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:8b394322f49af4362d4f80e424bcaca7efcd049619af03a4cf4501520bdf0fb4", size = 80959574, upload-time = "2026-03-23T18:10:14.214Z" },+ { url = "https://files.pythonhosted.org/packages/6d/6c/56bfb37073e7136e6dd86bfc6af7339946dd684e0ecf2155ac0eee687ae1/torch-2.11.0-cp313-cp313t-manylinux_2_28_aarch64.whl", hash = "sha256:2658f34ce7e2dabf4ec73b45e2ca68aedad7a5be87ea756ad656eaf32bf1e1ea", size = 419732324, upload-time = "2026-03-23T18:09:36.604Z" },+ { url = "https://files.pythonhosted.org/packages/07/f4/1b666b6d61d3394cca306ea543ed03a64aad0a201b6cd159f1d41010aeb1/torch-2.11.0-cp313-cp313t-manylinux_2_28_x86_64.whl", hash = "sha256:98bb213c3084cfe176302949bdc360074b18a9da7ab59ef2edc9d9f742504778", size = 530596026, upload-time = "2026-03-23T18:09:20.842Z" },+ { url = "https://files.pythonhosted.org/packages/48/6b/30d1459fa7e4b67e9e3fe1685ca1d8bb4ce7c62ef436c3a615963c6c866c/torch-2.11.0-cp313-cp313t-win_amd64.whl", hash = "sha256:a97b94bbf62992949b4730c6cd2cc9aee7b335921ee8dc207d930f2ed09ae2db", size = 114793702, upload-time = "2026-03-23T18:09:47.304Z" },+ { url = "https://files.pythonhosted.org/packages/26/0d/8603382f61abd0db35841148ddc1ffd607bf3100b11c6e1dab6d2fc44e72/torch-2.11.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:01018087326984a33b64e04c8cb5c2795f9120e0d775ada1f6638840227b04d7", size = 80573442, upload-time = "2026-03-23T18:09:10.117Z" },+ { url = "https://files.pythonhosted.org/packages/c7/86/7cd7c66cb9cec6be330fff36db5bd0eef386d80c031b581ec81be1d4b26c/torch-2.11.0-cp314-cp314-manylinux_2_28_aarch64.whl", hash = "sha256:2bb3cc54bd0dea126b0060bb1ec9de0f9c7f7342d93d436646516b0330cd5be7", size = 419749385, upload-time = "2026-03-23T18:07:33.77Z" },+ { url = "https://files.pythonhosted.org/packages/47/e8/b98ca2d39b2e0e4730c0ee52537e488e7008025bc77ca89552ff91021f7c/torch-2.11.0-cp314-cp314-manylinux_2_28_x86_64.whl", hash = "sha256:4dc8b3809469b6c30b411bb8c4cad3828efd26236153d9beb6a3ec500f211a60", size = 530716756, upload-time = "2026-03-23T18:07:50.02Z" },+ { url = "https://files.pythonhosted.org/packages/78/88/d4a4cda8362f8a30d1ed428564878c3cafb0d87971fbd3947d4c84552095/torch-2.11.0-cp314-cp314-win_amd64.whl", hash = "sha256:2b4e811728bd0cc58fb2b0948fe939a1ee2bf1422f6025be2fca4c7bd9d79718", size = 114552300, upload-time = "2026-03-23T18:09:05.617Z" },+ { url = "https://files.pythonhosted.org/packages/bf/46/4419098ed6d801750f26567b478fc185c3432e11e2cad712bc6b4c2ab0d0/torch-2.11.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:8245477871c3700d4370352ffec94b103cfcb737229445cf9946cddb7b2ca7cd", size = 80959460, upload-time = "2026-03-23T18:09:00.818Z" },+ { url = "https://files.pythonhosted.org/packages/fd/66/54a56a4a6ceaffb567231994a9745821d3af922a854ed33b0b3a278e0a99/torch-2.11.0-cp314-cp314t-manylinux_2_28_aarch64.whl", hash = "sha256:ab9a8482f475f9ba20e12db84b0e55e2f58784bdca43a854a6ccd3fd4b9f75e6", size = 419735835, upload-time = "2026-03-23T18:07:18.974Z" },+ { url = "https://files.pythonhosted.org/packages/b1/e7/0b6665f533aa9e337662dc190425abc0af1fe3234088f4454c52393ded61/torch-2.11.0-cp314-cp314t-manylinux_2_28_x86_64.whl", hash = "sha256:563ed3d25542d7e7bbc5b235ccfacfeb97fb470c7fee257eae599adb8005c8a2", size = 530613405, upload-time = "2026-03-23T18:08:07.014Z" },+ { url = "https://files.pythonhosted.org/packages/cf/bf/c8d12a2c86dbfd7f40fb2f56fbf5a505ccf2d9ce131eb559dfc7c51e1a04/torch-2.11.0-cp314-cp314t-win_amd64.whl", hash = "sha256:b2a43985ff5ef6ddd923bbcf99943e5f58059805787c5c9a2622bf05ca2965b0", size = 114792991, upload-time = "2026-03-23T18:08:19.216Z" },+]++[[package]]+name = "tqdm"+version = "4.67.3"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "colorama", marker = "sys_platform == 'win32'" },+]+sdist = { url = "https://files.pythonhosted.org/packages/09/a9/6ba95a270c6f1fbcd8dac228323f2777d886cb206987444e4bce66338dd4/tqdm-4.67.3.tar.gz", hash = "sha256:7d825f03f89244ef73f1d4ce193cb1774a8179fd96f31d7e1dcde62092b960bb", size = 169598, upload-time = "2026-02-03T17:35:53.048Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/16/e1/3079a9ff9b8e11b846c6ac5c8b5bfb7ff225eee721825310c91b3b50304f/tqdm-4.67.3-py3-none-any.whl", hash = "sha256:ee1e4c0e59148062281c49d80b25b67771a127c85fc9676d3be5f243206826bf", size = 78374, upload-time = "2026-02-03T17:35:50.982Z" },+]++[[package]]+name = "transformers"+version = "5.5.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "huggingface-hub" },+ { name = "numpy" },+ { name = "packaging" },+ { name = "pyyaml" },+ { name = "regex" },+ { name = "safetensors" },+ { name = "tokenizers" },+ { name = "tqdm" },+ { name = "typer" },+]+sdist = { url = "https://files.pythonhosted.org/packages/ff/9d/fb46e729b461985f41a5740167688b924a4019141e5c164bea77548d3d9e/transformers-5.5.0.tar.gz", hash = "sha256:c8db656cf51c600cd8c75f06b20ef85c72e8b8ff9abc880c5d3e8bc70e0ddcbd", size = 8237745, upload-time = "2026-04-02T16:13:08.113Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/e7/28/35f7411ff80a3640c1f4fc907dcbb6a65061ebb82f66950e38bfc9f7f740/transformers-5.5.0-py3-none-any.whl", hash = "sha256:821a9ff0961abbb29eb1eb686d78df1c85929fdf213a3fe49dc6bd94f9efa944", size = 10245591, upload-time = "2026-04-02T16:13:03.462Z" },+]++[[package]]+name = "triton"+version = "3.6.0"+source = { registry = "https://pypi.org/simple" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/17/5d/08201db32823bdf77a0e2b9039540080b2e5c23a20706ddba942924ebcd6/triton-3.6.0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:374f52c11a711fd062b4bfbb201fd9ac0a5febd28a96fb41b4a0f51dde3157f4", size = 176128243, upload-time = "2026-01-20T16:16:07.857Z" },+ { url = "https://files.pythonhosted.org/packages/ab/a8/cdf8b3e4c98132f965f88c2313a4b493266832ad47fb52f23d14d4f86bb5/triton-3.6.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:74caf5e34b66d9f3a429af689c1c7128daba1d8208df60e81106b115c00d6fca", size = 188266850, upload-time = "2026-01-20T16:00:43.041Z" },+ { url = "https://files.pythonhosted.org/packages/3c/12/34d71b350e89a204c2c7777a9bba0dcf2f19a5bfdd70b57c4dbc5ffd7154/triton-3.6.0-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:448e02fe6dc898e9e5aa89cf0ee5c371e99df5aa5e8ad976a80b93334f3494fd", size = 176133521, upload-time = "2026-01-20T16:16:13.321Z" },+ { url = "https://files.pythonhosted.org/packages/f9/0b/37d991d8c130ce81a8728ae3c25b6e60935838e9be1b58791f5997b24a54/triton-3.6.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:10c7f76c6e72d2ef08df639e3d0d30729112f47a56b0c81672edc05ee5116ac9", size = 188289450, upload-time = "2026-01-20T16:00:49.136Z" },+ { url = "https://files.pythonhosted.org/packages/ce/4e/41b0c8033b503fd3cfcd12392cdd256945026a91ff02452bef40ec34bee7/triton-3.6.0-cp313-cp313t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1722e172d34e32abc3eb7711d0025bb69d7959ebea84e3b7f7a341cd7ed694d6", size = 176276087, upload-time = "2026-01-20T16:16:18.989Z" },+ { url = "https://files.pythonhosted.org/packages/35/f8/9c66bfc55361ec6d0e4040a0337fb5924ceb23de4648b8a81ae9d33b2b38/triton-3.6.0-cp313-cp313t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:d002e07d7180fd65e622134fbd980c9a3d4211fb85224b56a0a0efbd422ab72f", size = 188400296, upload-time = "2026-01-20T16:00:56.042Z" },+ { url = "https://files.pythonhosted.org/packages/49/55/5ecf0dcaa0f2fbbd4420f7ef227ee3cb172e91e5fede9d0ecaddc43363b4/triton-3.6.0-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ef5523241e7d1abca00f1d240949eebdd7c673b005edbbce0aca95b8191f1d43", size = 176138577, upload-time = "2026-01-20T16:16:25.426Z" },+ { url = "https://files.pythonhosted.org/packages/df/3d/9e7eee57b37c80cec63322c0231bb6da3cfe535a91d7a4d64896fcb89357/triton-3.6.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:a17a5d5985f0ac494ed8a8e54568f092f7057ef60e1b0fa09d3fd1512064e803", size = 188273063, upload-time = "2026-01-20T16:01:07.278Z" },+ { url = "https://files.pythonhosted.org/packages/48/db/56ee649cab5eaff4757541325aca81f52d02d4a7cd3506776cad2451e060/triton-3.6.0-cp314-cp314t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:0b3a97e8ed304dfa9bd23bb41ca04cdf6b2e617d5e782a8653d616037a5d537d", size = 176274804, upload-time = "2026-01-20T16:16:31.528Z" },+ { url = "https://files.pythonhosted.org/packages/f6/56/6113c23ff46c00aae423333eb58b3e60bdfe9179d542781955a5e1514cb3/triton-3.6.0-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:46bd1c1af4b6704e554cad2eeb3b0a6513a980d470ccfa63189737340c7746a7", size = 188397994, upload-time = "2026-01-20T16:01:14.236Z" },+]++[[package]]+name = "typer"+version = "0.24.1"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "annotated-doc" },+ { name = "click" },+ { name = "rich" },+ { name = "shellingham" },+]+sdist = { url = "https://files.pythonhosted.org/packages/f5/24/cb09efec5cc954f7f9b930bf8279447d24618bb6758d4f6adf2574c41780/typer-0.24.1.tar.gz", hash = "sha256:e39b4732d65fbdcde189ae76cf7cd48aeae72919dea1fdfc16593be016256b45", size = 118613, upload-time = "2026-02-21T16:54:40.609Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/4a/91/48db081e7a63bb37284f9fbcefda7c44c277b18b0e13fbc36ea2335b71e6/typer-0.24.1-py3-none-any.whl", hash = "sha256:112c1f0ce578bfb4cab9ffdabc68f031416ebcc216536611ba21f04e9aa84c9e", size = 56085, upload-time = "2026-02-21T16:54:41.616Z" },+]++[[package]]+name = "typing-extensions"+version = "4.15.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/72/94/1a15dd82efb362ac84269196e94cf00f187f7ed21c242792a923cdb1c61f/typing_extensions-4.15.0.tar.gz", hash = "sha256:0cea48d173cc12fa28ecabc3b837ea3cf6f38c6d1136f85cbaaf598984861466", size = 109391, upload-time = "2025-08-25T13:49:26.313Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/18/67/36e9267722cc04a6b9f15c7f3441c2363321a3ea07da7ae0c0707beb2a9c/typing_extensions-4.15.0-py3-none-any.whl", hash = "sha256:f0fa19c6845758ab08074a0cfa8b7aecb71c999ca73d62883bc25cc018c4e548", size = 44614, upload-time = "2025-08-25T13:49:24.86Z" },+]++[[package]]+name = "urllib3"+version = "2.6.3"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/c7/24/5f1b3bdffd70275f6661c76461e25f024d5a38a46f04aaca912426a2b1d3/urllib3-2.6.3.tar.gz", hash = "sha256:1b62b6884944a57dbe321509ab94fd4d3b307075e0c2eae991ac71ee15ad38ed", size = 435556, upload-time = "2026-01-07T16:24:43.925Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/39/08/aaaad47bc4e9dc8c725e68f9d04865dbcb2052843ff09c97b08904852d84/urllib3-2.6.3-py3-none-any.whl", hash = "sha256:bf272323e553dfb2e87d9bfd225ca7b0f467b919d7bbd355436d3fd37cb0acd4", size = 131584, upload-time = "2026-01-07T16:24:42.685Z" },+]diff --git a/workspace/.gitignore b/workspace/.gitignorenew file mode 100644index 000000000..6ea887496--- /dev/null+++ b/workspace/.gitignore@@ -0,0 +1 @@+models/\ No newline at end of filediff --git a/workspace/data/.gitignore b/workspace/data/.gitignorenew file mode 100644index 000000000..8c6728acd--- /dev/null+++ b/workspace/data/.gitignore@@ -0,0 +1,2 @@+configs/+tokenizers/\ No newline at end of filediff --git a/workspace/data/registry.json b/workspace/data/registry.jsonnew file mode 100644index 000000000..da53afb71--- /dev/null+++ b/workspace/data/registry.json@@ -0,0 +1,290 @@+[+ {+ "repo_id": "deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B",+ "encodings": [+ {+ "type": "hanashi",+ "name": "deepseek-r1-distill-qwen"+ }+ ]+ },+ {+ "repo_id": "EssentialAI/rnj-1-instruct",+ "encodings": [+ {+ "type": "hanashi",+ "name": "rnj-1"+ }+ ]+ },+ {+ "repo_id": "google/functiongemma-270m-it",+ "encodings": [+ {+ "type": "hanashi",+ "name": "functiongemma"+ }+ ]+ },+ {+ "repo_id": "google/translategemma-4b-it",+ "encodings": [+ {+ "type": "hanashi",+ "name": "translategemma"+ }+ ],+ "is_translation": true+ },+ {+ "repo_id": "google/gemma-2-2b-it",+ "encodings": [+ {+ "type": "hanashi",+ "name": "gemma-2"+ }+ ]+ },+ {+ "repo_id": "google/gemma-3-1b-it",+ "encodings": [+ {+ "type": "hanashi",+ "name": "gemma-3"+ }+ ]+ },+ {+ "repo_id": "google/gemma-3-4b-it",+ "encodings": [+ {+ "type": "hanashi",+ "name": "gemma-3"+ }+ ]+ },+ {+ "repo_id": "google/gemma-4-E4B-it",+ "encodings": [+ {+ "type": "hanashi",+ "name": "gemma-4"+ }+ ]+ },+ {+ "repo_id": "HuggingFaceTB/SmolLM2-1.7B-Instruct",+ "encodings": [+ {+ "type": "hanashi",+ "name": "smollm2"+ }+ ]+ },+ {+ "repo_id": "HuggingFaceTB/SmolLM3-3B",+ "encodings": [+ {+ "type": "hanashi",+ "name": "smollm3"+ }+ ]+ },+ {+ "repo_id": "LiquidAI/LFM2-1.2B",+ "encodings": [+ {+ "type": "hanashi",+ "name": "lfm2"+ }+ ]+ },+ {+ "repo_id": "LiquidAI/LFM2.5-1.2B-Instruct",+ "encodings": [+ {+ "type": "hanashi",+ "name": "lfm2.5-instruct"+ }+ ]+ },+ {+ "repo_id": "LiquidAI/LFM2.5-1.2B-Thinking",+ "encodings": [+ {+ "type": "hanashi",+ "name": "lfm2.5-thinking"+ }+ ]+ },+ {+ "repo_id": "meta-llama/Llama-3.1-8B-Instruct",+ "encodings": [+ {+ "type": "hanashi",+ "name": "llama-3.1"+ }+ ]+ },+ {+ "repo_id": "meta-llama/Llama-3.2-1B-Instruct",+ "encodings": [+ {+ "type": "hanashi",+ "name": "llama-3.2"+ }+ ]+ },+ {+ "repo_id": "meta-llama/Llama-3.2-3B-Instruct",+ "encodings": [+ {+ "type": "hanashi",+ "name": "llama-3.2"+ }+ ]+ },+ {+ "repo_id": "mistralai/Codestral-22B-v0.1",+ "encodings": [+ {+ "type": "hanashi",+ "name": "codestral"+ }+ ]+ },+ {+ "repo_id": "openai/gpt-oss-20b",+ "encodings": [+ {+ "type": "hanashi",+ "name": "gpt-oss"+ },+ {+ "type": "harmony",+ "name": "gpt-oss"+ }+ ],+ "harmony": {+ "tokenizer_url": "https://openaipublic.blob.core.windows.net/encodings/o200k_base.tiktoken"+ }+ },+ {+ "repo_id": "Qwen/Qwen2.5-3B-Instruct",+ "encodings": [+ {+ "type": "hanashi",+ "name": "qwen2.5"+ }+ ]+ },+ {+ "repo_id": "Qwen/Qwen2.5-Coder-1.5B-Instruct",+ "encodings": [+ {+ "type": "hanashi",+ "name": "qwen2.5-coder"+ }+ ]+ },+ {+ "repo_id": "Qwen/Qwen2.5-Coder-3B-Instruct",+ "encodings": [+ {+ "type": "hanashi",+ "name": "qwen2.5-coder"+ }+ ]+ },+ {+ "repo_id": "Qwen/Qwen3-0.6B",+ "encodings": [+ {+ "type": "hanashi",+ "name": "qwen3"+ }+ ]+ },+ {+ "repo_id": "Qwen/Qwen3-4B-Instruct-2507",+ "encodings": [+ {+ "type": "hanashi",+ "name": "qwen3-instruct"+ }+ ]+ },+ {+ "repo_id": "Qwen/Qwen3-4B-Thinking-2507",+ "encodings": [+ {+ "type": "hanashi",+ "name": "qwen3-thinking"+ }+ ]+ },+ {+ "repo_id": "Qwen/Qwen3-4B",+ "encodings": [+ {+ "type": "hanashi",+ "name": "qwen3"+ }+ ]+ },+ {+ "repo_id": "Qwen/Qwen3.5-0.8B",+ "encodings": [+ {+ "type": "hanashi",+ "name": "qwen3.5"+ }+ ]+ },+ {+ "repo_id": "Qwen/Qwen3.5-2B",+ "encodings": [+ {+ "type": "hanashi",+ "name": "qwen3.5"+ }+ ]+ },+ {+ "repo_id": "POLARIS-Project/Polaris-4B-Preview",+ "encodings": [+ {+ "type": "hanashi",+ "name": "polaris"+ }+ ]+ },+ {+ "repo_id": "mistralai/Mistral-Small-3.1-24B-Instruct-2503",+ "encodings": [+ {+ "type": "hanashi",+ "name": "mistral-small-3"+ }+ ]+ },+ {+ "repo_id": "mistralai/Devstral-Small-2505",+ "tokeuzer_repo_id": "mistralai/Mistral-Small-3.1-24B-Instruct-2503",+ "encodings": [+ {+ "type": "hanashi",+ "name": "devstral-small"+ }+ ]+ },+ {+ "repo_id": "Nanbeige/Nanbeige4.1-3B",+ "encodings": [+ {+ "type": "hanashi",+ "name": "nanbeige"+ }+ ]+ }+]\ No newline at end of filediff --git a/workspace/data/responses/EssentialAI_rnj-1-instruct.json b/workspace/data/responses/EssentialAI_rnj-1-instruct.jsonnew file mode 100644index 000000000..0f3df6381--- /dev/null+++ b/workspace/data/responses/EssentialAI_rnj-1-instruct.json@@ -0,0 +1,789 @@+[+ {+ "repo_id": "EssentialAI/rnj-1-instruct",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": null,+ "context": {}+ },+ "result": {+ "prompt": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\nYou are rnj-1, a foundation model trained by Essential AI.\n\nYou are a helpful assistant.<|eot_id|><|start_header_id|>user<|end_header_id|>\nWhat is the current temperature in London?<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n",+ "completion": "I don't have real-time access to current weather data or the ability to check the current temperature in London. You can easily find this information by checking a weather website, app, or search engine. Would you like me to help you find a reliable source for current weather information?<|eot_id|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "EssentialAI/rnj-1-instruct",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [],+ "context": {}+ },+ "result": {+ "prompt": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\nYou are rnj-1, a foundation model trained by Essential AI.\n\nYou are a helpful assistant.<|eot_id|><|start_header_id|>user<|end_header_id|>\nWhat is the current temperature in London?<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n",+ "completion": "I don't have real-time access to current weather data or the ability to check the current temperature in London. You can easily find this information by checking a weather website, app, or service like the BBC Weather, Weather.com, or your local news station.<|eot_id|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "EssentialAI/rnj-1-instruct",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\nYou are rnj-1, a foundation model trained by Essential AI.\n\nYou are a helpful assistant.\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|eot_id|><|start_header_id|>user<|end_header_id|>\nWhat is the current temperature in London?<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n",+ "completion": "THOUGHT: You asked for the current temperature in London, so I need to use the get_current_temperature function, which requires both a city and a country. Since you only specified the city, I must determine the country to proceed. London is in the United Kingdom, so I'll use \"United Kingdom\" as the country. The function also requires a unit, and since you didn't specify one, I'll default to Celsius, which is the standard in most of the world. With all required parameters now determined\u2014city as London, country as United Kingdom, and unit as celsius\u2014I can make the function call to retrieve the current temperature.<tool_call>\n{\"name\": \"get_current_temperature\", \"arguments\": {\"unit\": \"celsius\", \"location\": {\"city\": \"London\", \"country\": \"United Kingdom\"}}}\n</tool_call><|eot_id|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "EssentialAI/rnj-1-instruct",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\nYou are rnj-1, a foundation model trained by Essential AI.\n\nYou are a helpful assistant.\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|eot_id|><|start_header_id|>user<|end_header_id|>\nWhat is the current temperature in London?<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n",+ "completion": "THOUGHT: I need to determine the current temperature in London, but I only have access to a tool that provides wind speed, not temperature. Since there's no available function to retrieve temperature data, I can't fulfill your request with the tools at hand. I must inform you that I\u2019m unable to provide the temperature due to this limitation.\n\nRESPONSE: I don't have access to a tool that can retrieve current temperature data. My capabilities are limited to the functions provided, which currently only include getting wind speed. Would you like me to check the wind speed in London instead?<|eot_id|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "EssentialAI/rnj-1-instruct",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\nYou are rnj-1, a foundation model trained by Essential AI.\n\nYou are a helpful assistant.\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|eot_id|><|start_header_id|>user<|end_header_id|>\nWhat is the current temperature in London?<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n",+ "completion": "THOUGHT: You asked for the current temperature in London, so I need to use the get_current_temperature function, which requires both city and country. Since you only specified \"London\" and not the country, I must infer it\u2014London is in the UK, so I'll use \"United Kingdom\" as the country. The function requires a unit, and while you didn't specify one, the default is celsius, which I'll use. I'll call the function with location set to {\"city\": \"London\", \"country\": \"United Kingdom\"} and unit as \"celsius\" to retrieve the current temperature.<tool_call>\n{\"name\": \"get_current_temperature\", \"arguments\": {\"location\": {\"city\": \"London\", \"country\": \"United Kingdom\"}, \"unit\": \"celsius\"}}\n</tool_call><|eot_id|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "EssentialAI/rnj-1-instruct",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": null,+ "context": {}+ },+ "result": {+ "prompt": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\nYou are rnj-1, a foundation model trained by Essential AI.\n\nYou are a helpful assistant<|eot_id|><|start_header_id|>user<|end_header_id|>\nWhat is the current wind speed in London?<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n",+ "completion": "I don't have real-time access to current weather data or the ability to browse the internet. To find the current wind speed in London, you can check a weather website or app like the BBC Weather, AccuWeather, or your local meteorological service. If you'd like, I can help you interpret or understand wind speed measurements (e.g., knots, km/h, mph) once you have the data!<|eot_id|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "EssentialAI/rnj-1-instruct",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [],+ "context": {}+ },+ "result": {+ "prompt": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\nYou are rnj-1, a foundation model trained by Essential AI.\n\nYou are a helpful assistant<|eot_id|><|start_header_id|>user<|end_header_id|>\nWhat is the current wind speed in London?<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n",+ "completion": "I don't have access to real-time weather data or the ability to check current wind speeds in London. You can check the current wind speed in London by using a weather website or app like the BBC Weather, Weather.com, or a local news station's weather report.<|eot_id|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "EssentialAI/rnj-1-instruct",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\nYou are rnj-1, a foundation model trained by Essential AI.\n\nYou are a helpful assistant\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|eot_id|><|start_header_id|>user<|end_header_id|>\nWhat is the current wind speed in London?<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n",+ "completion": "THOUGHT: I need to determine the current wind speed in London, but the only available tool is for temperature, not wind speed. Since I can't access wind speed data with the tools provided, I must inform you that I'm unable to retrieve that information. I\u2019ll let you know about this limitation and offer to assist with temperature instead, in case that\u2019s helpful.\n\nRESPONSE: I don't have access to a tool that can retrieve wind speed data. However, I can help you check the current temperature in London if you'd like. Would you like me to provide the temperature instead?<|eot_id|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "EssentialAI/rnj-1-instruct",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\nYou are rnj-1, a foundation model trained by Essential AI.\n\nYou are a helpful assistant\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|eot_id|><|start_header_id|>user<|end_header_id|>\nWhat is the current wind speed in London?<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n",+ "completion": "THOUGHT: You asked for the current wind speed in London, so I need to retrieve that data using the available tool. I identify that the function `get_current_wind_speed` is the right tool for this task and requires a location in the format \"City, Country\". Since you specified London, I format the input as \"London, UK\" to match the required parameter. I then prepare to call the function with this input to obtain the current wind speed in km/h, which will allow me to provide you with an accurate and timely response.<tool_call>\n{\"name\": \"get_current_wind_speed\", \"arguments\": {\"location\": \"London, UK\"}}\n</tool_call><|eot_id|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "EssentialAI/rnj-1-instruct",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\nYou are rnj-1, a foundation model trained by Essential AI.\n\nYou are a helpful assistant\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|eot_id|><|start_header_id|>user<|end_header_id|>\nWhat is the current wind speed in London?<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n",+ "completion": "THOUGHT: You asked for the current wind speed in London, so I need to use the get_current_wind_speed function, which requires the location in \"City, Country\" format. Since you specified London, I assume you mean London, UK, so I format the location as \"London, UK\". The function only requires this string input, and no additional parameters are needed. I proceed to call the function with this location to retrieve the current wind speed.<tool_call>\n{\"name\": \"get_current_wind_speed\", \"arguments\": {\"location\": \"London, UK\"}}\n</tool_call><|eot_id|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "EssentialAI/rnj-1-instruct",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": null,+ "context": {}+ },+ "result": {+ "prompt": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\nYou are rnj-1, a foundation model trained by Essential AI.\n\nYou are a helpful assistant<|eot_id|><|start_header_id|>user<|end_header_id|>\nWhat is the current temperature and wind speed in London?<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n",+ "completion": "I don't have real-time access to current weather data. To check the current temperature and wind speed in London, you can:\n\n1. Use a weather website or app like Weather.com, AccuWeather, or the BBC Weather\n2. Check a weather service integrated into your operating system (like the Weather app on iOS or Android)\n3. Use a voice assistant like Siri, Alexa, or Google Assistant and ask \"What's the weather in London?\"\n\nWould you like me to help you find a reliable weather source or explain how to check weather information through common platforms?<|eot_id|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "EssentialAI/rnj-1-instruct",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [],+ "context": {}+ },+ "result": {+ "prompt": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\nYou are rnj-1, a foundation model trained by Essential AI.\n\nYou are a helpful assistant<|eot_id|><|start_header_id|>user<|end_header_id|>\nWhat is the current temperature and wind speed in London?<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n",+ "completion": "I don't have real-time access to current weather data. To check the current temperature and wind speed in London, you can:\n\n1. Use a weather website or app like Weather.com, AccuWeather, or a weather service built into your device\n2. Check a weather service's London forecast page\n3. Use a voice assistant like Siri, Alexa, or Google Assistant and ask \"What's the weather in London?\"\n\nWould you like me to help you find a reliable weather source or explain how to interpret weather forecasts?<|eot_id|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "EssentialAI/rnj-1-instruct",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\nYou are rnj-1, a foundation model trained by Essential AI.\n\nYou are a helpful assistant\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|eot_id|><|start_header_id|>user<|end_header_id|>\nWhat is the current temperature and wind speed in London?<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n",+ "completion": "THOUGHT: I need to provide you with the current temperature and wind speed in London, but after reviewing the available tools, I see that only a function to get the current temperature is accessible. Since there's no tool to retrieve wind speed, I can't fulfill that part of your request. I'll use the temperature function with London, UK as the location and default to Celsius for the unit. Once I retrieve the temperature, I'll share it with you, but I'll also let you know that wind speed data isn't available through the current tools.\n\nRESPONSE: I can check the current temperature in London, but I don't have access to wind speed data through the available tools. Let me get the temperature for you:<tool_call>\n{\"name\": \"get_current_temperature\", \"arguments\": {\"location\": {\"city\": \"London\", \"country\": \"UK\"}, \"unit\": \"celsius\"}}\n</tool_call><|eot_id|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "EssentialAI/rnj-1-instruct",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\nYou are rnj-1, a foundation model trained by Essential AI.\n\nYou are a helpful assistant\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|eot_id|><|start_header_id|>user<|end_header_id|>\nWhat is the current temperature and wind speed in London?<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n",+ "completion": "THOUGHT: I need to provide you with the current temperature and wind speed in London, but I only have access to a tool that can retrieve wind speed, not temperature. Since I can't fulfill the full request, I'll use the available tool to get the wind speed for London, UK, and then clearly inform you that temperature data isn't accessible through my current capabilities, so you're aware of the limitation while still receiving the wind speed information.\n\nRESPONSE: I can help you with the wind speed in London, but I don't have access to current temperature data. Let me check the wind speed for you.<tool_call>\n{\"name\": \"get_current_wind_speed\", \"arguments\": {\"location\": \"London, UK\"}}\n</tool_call><|eot_id|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "EssentialAI/rnj-1-instruct",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\nYou are rnj-1, a foundation model trained by Essential AI.\n\nYou are a helpful assistant\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|eot_id|><|start_header_id|>user<|end_header_id|>\nWhat is the current temperature and wind speed in London?<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n",+ "completion": "THOUGHT: I need to provide you with the current temperature and wind speed in London. Since the temperature tool requires both city and country, I'll use \"London, United Kingdom\" as the location and default to Celsius for temperature, as you didn't specify a unit. For wind speed, the tool only needs the location in \"City, Country\" format, so I'll use \"London, United Kingdom\" there as well. I'll make two separate calls: one to get the temperature and another for the wind speed, then combine the results to give you a complete answer.<tool_call>\n{\"name\": \"get_current_temperature\", \"arguments\": {\"location\": {\"city\": \"London\", \"country\": \"United Kingdom\"}, \"unit\": \"celsius\"}}\n</tool_call>\n<tool_call>\n{\"name\": \"get_current_wind_speed\", \"arguments\": {\"location\": \"London, United Kingdom\"}}\n</tool_call><|eot_id|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_temperature",+ "get_current_wind_speed"+ ]+ }+ }+]\ No newline at end of filediff --git a/workspace/data/responses/HuggingFaceTB_SmolLM2-1.7B-Instruct.json b/workspace/data/responses/HuggingFaceTB_SmolLM2-1.7B-Instruct.jsonnew file mode 100644index 000000000..e58023f0a--- /dev/null+++ b/workspace/data/responses/HuggingFaceTB_SmolLM2-1.7B-Instruct.json@@ -0,0 +1,73 @@+[+ {+ "repo_id": "HuggingFaceTB/SmolLM2-1.7B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": null,+ "context": {}+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful AI assistant named SmolLM, trained by Hugging Face<|im_end|>\n<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "I'm sorry for the inconvenience, but as an AI, I don't have real-time capabilities to provide current weather updates. I recommend checking a reliable weather forecast website or app for the most accurate information.<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "HuggingFaceTB/SmolLM2-1.7B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": null,+ "context": {}+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "I'm sorry for the inconvenience, but as an AI, I don't have real-time capabilities to provide current weather updates or specific data such as wind speed. I recommend checking a reliable weather website or app for the most accurate and up-to-date information.<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "HuggingFaceTB/SmolLM2-1.7B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": null,+ "context": {}+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "I'm sorry for the inconvenience, but as an AI, I don't have real-time capabilities to provide current weather updates. I recommend checking a reliable weather website or app for the most accurate and up-to-date information.<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ }+]\ No newline at end of filediff --git a/workspace/data/responses/HuggingFaceTB_SmolLM3-3B.json b/workspace/data/responses/HuggingFaceTB_SmolLM3-3B.jsonnew file mode 100644index 000000000..3a0b96e3f--- /dev/null+++ b/workspace/data/responses/HuggingFaceTB_SmolLM3-3B.json@@ -0,0 +1,1636 @@+[+ {+ "repo_id": "HuggingFaceTB/SmolLM3-3B",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": null,+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n## Metadata\n\nKnowledge Cutoff Date: June 2025\nToday Date: 03 April 2026\nReasoning Mode: /think\n\n## Custom Instructions\n\nYou are a helpful AI assistant named SmolLM, trained by Hugging Face. Your role as an assistant involves thoroughly exploring questions through a systematic thinking process before providing the final precise and accurate solutions. This requires engaging in a comprehensive cycle of analysis, summarizing, exploration, reassessment, reflection, backtracking, and iteration to develop well-considered thinking process. Please structure your response into two main sections: Thought and Solution using the specified format: <think> Thought section </think> Solution section. In the Thought section, detail your reasoning process in steps. Each step should include detailed considerations such as analysing questions, summarizing relevant findings, brainstorming new ideas, verifying the accuracy of the current steps, refining any errors, and revisiting previous steps. In the Solution section, based on various attempts, explorations, and reflections from the Thought section, systematically present the final solution that you deem correct. The Solution section should be logical, accurate, and concise and detail necessary steps needed to reach the conclusion.\n\n<|im_end|>\n<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>\nOkay, the user is asking for the current temperature in London. Let me think about how to approach this. First, I need to recall if I have access to real-time data. Since I don't have live internet access, I can't provide the exact current temperature. But maybe I can guide them on how to find it themselves.\n\nI should mention that they can check reliable weather websites or apps. Some popular ones are the Met Office, AccuWeather, or The Weather Channel. They might also use their smartphone's built-in weather app. If they have a specific time in mind, they can look up the forecast for that hour. \n\nWait, the user might not know which sources are reliable. I should list a few trusted ones. The Met Office is the UK's official weather service, so that's a good one. AccuWeather is another well-known service. Also, mentioning apps like Weather.com or BBC Weather could be helpful.\n\nI should also consider if there's any local context. London is in the UK, so the temperature would be in degrees Celsius or Fahrenheit, depending on the source. Maybe I should note that the units can vary, but most international sources use Celsius. \n\nIs there any other information they might need? Maybe the time of day or a specific location within London, like a park or the city center. But the user just asked for the current temperature in London, so maybe that's not necessary unless they specify. \n\nI should also remind them to check for any weather alerts or special conditions, like fog or rain, which might affect their plans. \n\nWait, but the user might not have access to the internet right now. If they're in a place where they can't check online, maybe I can suggest calling a local weather service or a friend who knows the weather. But that's probably not feasible for everyone. \n\nAlternatively, maybe I can provide a general idea based on historical data. For example, London's typical temperatures range from around 7\u00b0C to 20\u00b0C in January to July. But the user is asking for the current temperature, so historical data might not be helpful unless they specify a date. \n\nI need to make sure my answer is helpful without overstepping my knowledge. Since I can't provide real-time data, the best I can do is direct them to the right sources and explain how to find the information themselves. \n\nSo, putting it all together: explain that I can't provide the exact current temperature, suggest reliable sources, and offer to help with more general information if needed.\n</think>\n\nI don't have real-time access to current weather data, but you can easily check the current temperature in London using these reliable sources:\n\n1. **Met Office (UK's official weather service)** \n [https://www.metoffice.gov.uk](https://www.metoffice.gov.uk) \n - Search for London or the UK to get the latest forecast.\n\n2. **AccuWeather** \n [https://www.accuweather.com](https://www.accuweather.com) \n - Search for London and select the current hourly temperature.\n\n3. **BBC Weather** \n [https://www.bbc.co.uk/weather](https://www.bbc.co.uk/weather) \n - Enter London and view the current temperature and forecast.\n\n4. **Weather.com** \n [https://weather.com](https://weather.com) \n - Search for London and see the current conditions.\n\nIf you're looking for a general idea of London's typical temperatures, it usually ranges from **7\u00b0C (44\u00b0F)** in January to **20\u00b0C (68\u00b0F)** in July. However, for the most accurate and up-to-date information, use one of the above sources.\n\nLet me know if you'd like help with something else!<|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "HuggingFaceTB/SmolLM3-3B",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": null,+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n## Metadata\n\nKnowledge Cutoff Date: June 2025\nToday Date: 03 April 2026\nReasoning Mode: /no_think\n\n## Custom Instructions\n\nYou are a helpful AI assistant named SmolLM, trained by Hugging Face.\n\n<|im_end|>\n<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n",+ "completion": "I'm sorry, but as of my last update in October 2023, I don't have real-time capabilities to provide the current temperature in London. I recommend checking a reliable weather forecasting website or app for the most accurate and up-to-date information.<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "HuggingFaceTB/SmolLM3-3B",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n## Metadata\n\nKnowledge Cutoff Date: June 2025\nToday Date: 03 April 2026\nReasoning Mode: /think\n\n## Custom Instructions\n\nYou are a helpful AI assistant named SmolLM, trained by Hugging Face. Your role as an assistant involves thoroughly exploring questions through a systematic thinking process before providing the final precise and accurate solutions. This requires engaging in a comprehensive cycle of analysis, summarizing, exploration, reassessment, reflection, backtracking, and iteration to develop well-considered thinking process. Please structure your response into two main sections: Thought and Solution using the specified format: <think> Thought section </think> Solution section. In the Thought section, detail your reasoning process in steps. Each step should include detailed considerations such as analysing questions, summarizing relevant findings, brainstorming new ideas, verifying the accuracy of the current steps, refining any errors, and revisiting previous steps. In the Solution section, based on various attempts, explorations, and reflections from the Thought section, systematically present the final solution that you deem correct. The Solution section should be logical, accurate, and concise and detail necessary steps needed to reach the conclusion.\n\n<|im_end|>\n<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>\nOkay, the user is asking for the current temperature in London. I need to provide an accurate answer. Since I can't access real-time data, I should inform them that I can't give live updates. But maybe I can suggest where they can find the information. Let me check if there's a common source people use for this. The Met Office is a reliable source for UK weather data. I should mention that. Also, maybe suggest checking a weather app or website. Let me make sure my response is helpful and clear. I don't want to leave them hanging without a way to find the answer themselves. Alright, I'll structure the response to first state my inability to provide real-time data, then recommend checking the Met Office or a weather app. That should cover it.\n</think>\n\nI currently don't have access to real-time data or the internet to provide the current temperature in London. However, you can check the most accurate and up-to-date temperature information by visiting the **Met Office website** (https://www.metoffice.gov.uk) or using a trusted weather app like the one from your phone's weather service. For instant updates, you can also try searching \"London temperature\" on Google or a weather platform like Weather.com. Let me know if you need help with anything else!<|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "HuggingFaceTB/SmolLM3-3B",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n## Metadata\n\nKnowledge Cutoff Date: June 2025\nToday Date: 03 April 2026\nReasoning Mode: /no_think\n\n## Custom Instructions\n\nYou are a helpful AI assistant named SmolLM, trained by Hugging Face.\n\n<|im_end|>\n<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n",+ "completion": "I'm sorry, but as an AI, I don't have real-time capabilities to provide the current temperature in London. However, you can easily find this information by checking a reliable weather website, app, or news channel. Websites like BBC Weather, Weather.com, or your phone's weather app should provide accurate and up-to-date information.<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "HuggingFaceTB/SmolLM3-3B",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n## Metadata\n\nKnowledge Cutoff Date: June 2025\nToday Date: 03 April 2026\nReasoning Mode: /think\n\n## Custom Instructions\n\nYou are a helpful AI assistant named SmolLM, trained by Hugging Face. Your role as an assistant involves thoroughly exploring questions through a systematic thinking process before providing the final precise and accurate solutions. This requires engaging in a comprehensive cycle of analysis, summarizing, exploration, reassessment, reflection, backtracking, and iteration to develop well-considered thinking process. Please structure your response into two main sections: Thought and Solution using the specified format: <think> Thought section </think> Solution section. In the Thought section, detail your reasoning process in steps. Each step should include detailed considerations such as analysing questions, summarizing relevant findings, brainstorming new ideas, verifying the accuracy of the current steps, refining any errors, and revisiting previous steps. In the Solution section, based on various attempts, explorations, and reflections from the Thought section, systematically present the final solution that you deem correct. The Solution section should be logical, accurate, and concise and detail necessary steps needed to reach the conclusion.\n\n### Tools\n\nYou may call one or more functions to assist with the user query.\nYou are provided with function signatures within <tools></tools> XML tags:\n\n<tools>\n{'type': 'function', 'function': {'name': 'get_current_temperature', 'description': 'Get the current temperature at a location.', 'parameters': {'type': 'object', 'properties': {'location': {'type': 'object', 'properties': {'city': {'type': 'string', 'description': 'The city name'}, 'country': {'type': 'string', 'description': 'The country name'}}, 'required': ['city', 'country'], 'description': 'The location to get the temperature for'}, 'unit': {'type': 'string', 'enum': ['celsius', 'fahrenheit'], 'description': 'The unit to return the temperature in.'}}, 'required': ['location', 'unit']}, 'return': {'type': 'number'}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call>\n\n<|im_end|>\n<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>I need to retrieve the current temperature in London in Celsius. I'll call the get_current_temperature function with the location as London and the unit as Celsius.</think>\n<tool_call>{\"name\": \"get_current_temperature\", \"arguments\": {\"location\": {\"city\": \"London\", \"country\": \"UK\"}, \"unit\": \"celsius\"}}</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "HuggingFaceTB/SmolLM3-3B",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n## Metadata\n\nKnowledge Cutoff Date: June 2025\nToday Date: 03 April 2026\nReasoning Mode: /no_think\n\n## Custom Instructions\n\nYou are a helpful AI assistant named SmolLM, trained by Hugging Face.\n\n### Tools\n\nYou may call one or more functions to assist with the user query.\nYou are provided with function signatures within <tools></tools> XML tags:\n\n<tools>\n{'type': 'function', 'function': {'name': 'get_current_temperature', 'description': 'Get the current temperature at a location.', 'parameters': {'type': 'object', 'properties': {'location': {'type': 'object', 'properties': {'city': {'type': 'string', 'description': 'The city name'}, 'country': {'type': 'string', 'description': 'The country name'}}, 'required': ['city', 'country'], 'description': 'The location to get the temperature for'}, 'unit': {'type': 'string', 'enum': ['celsius', 'fahrenheit'], 'description': 'The unit to return the temperature in.'}}, 'required': ['location', 'unit']}, 'return': {'type': 'number'}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call>\n\n<|im_end|>\n<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n",+ "completion": "<tool_call>\n{\"name\": \"get_current_temperature\", \"arguments\": {\"location\": {\"city\": \"London\", \"country\": \"UK\"}, \"unit\": \"celsius\"}}\n</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "HuggingFaceTB/SmolLM3-3B",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n## Metadata\n\nKnowledge Cutoff Date: June 2025\nToday Date: 03 April 2026\nReasoning Mode: /think\n\n## Custom Instructions\n\nYou are a helpful AI assistant named SmolLM, trained by Hugging Face. Your role as an assistant involves thoroughly exploring questions through a systematic thinking process before providing the final precise and accurate solutions. This requires engaging in a comprehensive cycle of analysis, summarizing, exploration, reassessment, reflection, backtracking, and iteration to develop well-considered thinking process. Please structure your response into two main sections: Thought and Solution using the specified format: <think> Thought section </think> Solution section. In the Thought section, detail your reasoning process in steps. Each step should include detailed considerations such as analysing questions, summarizing relevant findings, brainstorming new ideas, verifying the accuracy of the current steps, refining any errors, and revisiting previous steps. In the Solution section, based on various attempts, explorations, and reflections from the Thought section, systematically present the final solution that you deem correct. The Solution section should be logical, accurate, and concise and detail necessary steps needed to reach the conclusion.\n\n### Tools\n\nYou may call one or more functions to assist with the user query.\nYou are provided with function signatures within <tools></tools> XML tags:\n\n<tools>\n{'type': 'function', 'function': {'name': 'get_current_wind_speed', 'description': 'Get the current wind speed in km/h at a given location.', 'parameters': {'type': 'object', 'properties': {'location': {'type': 'string', 'description': 'The location to get the wind speed for, in the format \"City, Country\"'}}, 'required': ['location']}, 'return': {'type': 'number', 'description': 'The current wind speed in km/h'}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call>\n\n<|im_end|>\n<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>I don't have the capability to retrieve real-time weather data, so I can't provide the current temperature in London. I suggest checking a reliable weather forecasting website or app for the most accurate and up-to-date information.</think>\n<tool_call>\n{\"name\": \"get_current_wind_speed\", \"arguments\": {\"location\": \"London, United Kingdom\"}}\n</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "HuggingFaceTB/SmolLM3-3B",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n## Metadata\n\nKnowledge Cutoff Date: June 2025\nToday Date: 03 April 2026\nReasoning Mode: /no_think\n\n## Custom Instructions\n\nYou are a helpful AI assistant named SmolLM, trained by Hugging Face.\n\n### Tools\n\nYou may call one or more functions to assist with the user query.\nYou are provided with function signatures within <tools></tools> XML tags:\n\n<tools>\n{'type': 'function', 'function': {'name': 'get_current_wind_speed', 'description': 'Get the current wind speed in km/h at a given location.', 'parameters': {'type': 'object', 'properties': {'location': {'type': 'string', 'description': 'The location to get the wind speed for, in the format \"City, Country\"'}}, 'required': ['location']}, 'return': {'type': 'number', 'description': 'The current wind speed in km/h'}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call>\n\n<|im_end|>\n<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n",+ "completion": "I'm sorry, but I don't have the capability to retrieve real-time weather data such as the current temperature in London. My functions are limited to retrieving wind speed data at specified locations. For temperature information, you may need to use a different service.<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "HuggingFaceTB/SmolLM3-3B",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n## Metadata\n\nKnowledge Cutoff Date: June 2025\nToday Date: 03 April 2026\nReasoning Mode: /think\n\n## Custom Instructions\n\nYou are a helpful AI assistant named SmolLM, trained by Hugging Face. Your role as an assistant involves thoroughly exploring questions through a systematic thinking process before providing the final precise and accurate solutions. This requires engaging in a comprehensive cycle of analysis, summarizing, exploration, reassessment, reflection, backtracking, and iteration to develop well-considered thinking process. Please structure your response into two main sections: Thought and Solution using the specified format: <think> Thought section </think> Solution section. In the Thought section, detail your reasoning process in steps. Each step should include detailed considerations such as analysing questions, summarizing relevant findings, brainstorming new ideas, verifying the accuracy of the current steps, refining any errors, and revisiting previous steps. In the Solution section, based on various attempts, explorations, and reflections from the Thought section, systematically present the final solution that you deem correct. The Solution section should be logical, accurate, and concise and detail necessary steps needed to reach the conclusion.\n\n### Tools\n\nYou may call one or more functions to assist with the user query.\nYou are provided with function signatures within <tools></tools> XML tags:\n\n<tools>\n{'type': 'function', 'function': {'name': 'get_current_temperature', 'description': 'Get the current temperature at a location.', 'parameters': {'type': 'object', 'properties': {'location': {'type': 'object', 'properties': {'city': {'type': 'string', 'description': 'The city name'}, 'country': {'type': 'string', 'description': 'The country name'}}, 'required': ['city', 'country'], 'description': 'The location to get the temperature for'}, 'unit': {'type': 'string', 'enum': ['celsius', 'fahrenheit'], 'description': 'The unit to return the temperature in.'}}, 'required': ['location', 'unit']}, 'return': {'type': 'number'}}}\n{'type': 'function', 'function': {'name': 'get_current_wind_speed', 'description': 'Get the current wind speed in km/h at a given location.', 'parameters': {'type': 'object', 'properties': {'location': {'type': 'string', 'description': 'The location to get the wind speed for, in the format \"City, Country\"'}}, 'required': ['location']}, 'return': {'type': 'number', 'description': 'The current wind speed in km/h'}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call>\n\n<|im_end|>\n<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>I need to call the `get_current_temperature` function with the location \"London, UK\" and the unit \"celsius\" to retrieve the current temperature in Celsius.</think>\n<tool_call>{\"name\": \"get_current_temperature\", \"arguments\": {\"location\": {\"city\": \"London\", \"country\": \"UK\"}, \"unit\": \"celsius\"}}</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "HuggingFaceTB/SmolLM3-3B",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n## Metadata\n\nKnowledge Cutoff Date: June 2025\nToday Date: 03 April 2026\nReasoning Mode: /no_think\n\n## Custom Instructions\n\nYou are a helpful AI assistant named SmolLM, trained by Hugging Face.\n\n### Tools\n\nYou may call one or more functions to assist with the user query.\nYou are provided with function signatures within <tools></tools> XML tags:\n\n<tools>\n{'type': 'function', 'function': {'name': 'get_current_temperature', 'description': 'Get the current temperature at a location.', 'parameters': {'type': 'object', 'properties': {'location': {'type': 'object', 'properties': {'city': {'type': 'string', 'description': 'The city name'}, 'country': {'type': 'string', 'description': 'The country name'}}, 'required': ['city', 'country'], 'description': 'The location to get the temperature for'}, 'unit': {'type': 'string', 'enum': ['celsius', 'fahrenheit'], 'description': 'The unit to return the temperature in.'}}, 'required': ['location', 'unit']}, 'return': {'type': 'number'}}}\n{'type': 'function', 'function': {'name': 'get_current_wind_speed', 'description': 'Get the current wind speed in km/h at a given location.', 'parameters': {'type': 'object', 'properties': {'location': {'type': 'string', 'description': 'The location to get the wind speed for, in the format \"City, Country\"'}}, 'required': ['location']}, 'return': {'type': 'number', 'description': 'The current wind speed in km/h'}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call>\n\n<|im_end|>\n<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n",+ "completion": "<tool_call>\n{\"name\": \"get_current_temperature\", \"arguments\": {\"location\": {\"city\": \"London\", \"country\": \"UK\"}, \"unit\": \"celsius\"}}\n</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "HuggingFaceTB/SmolLM3-3B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": null,+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n## Metadata\n\nKnowledge Cutoff Date: June 2025\nToday Date: 03 April 2026\nReasoning Mode: /think\n\n## Custom Instructions\n\nYou are a helpful assistant\n\n<|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>\nOkay, the user is asking for the current wind speed in London. I need to figure out how to provide the most accurate and up-to-date information. First, I remember that wind speed can vary a lot depending on the time of day, weather conditions, and even the location within London. For example, the wind might be stronger in the city center versus the outskirts.\n\nI should check if there's a reliable source that provides real-time weather data for London. The Met Office is the UK's national weather service, so their website is likely to have the most accurate information. They probably have a live wind map or a section dedicated to wind speed. Alternatively, there might be apps like Weather Underground or other weather services that offer real-time data.\n\nAnother thought: sometimes, when I search for current wind speed in London, I see data from the BBC Weather or other news outlets. They might have a section for London's weather. But I need to be cautious about the accuracy of these sources. The Met Office is more reliable for official data.\n\nWait, but the user might not be able to access the internet right now. In that case, I should mention that for the most accurate and up-to-date information, they should check the official Met Office website or a trusted weather app. Also, I can provide some general information about London's wind patterns, like the prevailing wind direction (usually from the southwest), which might be helpful even if the exact speed isn't available at the moment.\n\nI should also consider that wind speed can be affected by local factors like hills, buildings, and the city's layout. So, the wind speed in central London might differ from that in the suburbs. But again, without real-time data, I can't give specific numbers.\n\nIn summary, the best approach is to direct the user to the Met Office's official website or a reliable weather app. If they can't access those, I can explain how to interpret the data they might find there, like checking for current wind speed in London on the website's live updates or weather maps. Also, mention that wind speed can fluctuate, so it's good to check multiple sources if possible.\n</think>\n\nFor the most accurate and up-to-date wind speed in London, I recommend checking the **Met Office's website** (https://www.metoffice.gov.uk/weather/uk) or a trusted weather app like **Weather Underground** (https://www.wunderground.com/). These platforms provide real-time weather data, including wind speed, direction, and other meteorological details.\n\n### Key Points to Note:\n1. **Met Office**: London's official weather service offers detailed forecasts and live updates. You can filter by location or use their **\"Live\"** feature for current conditions.\n2. **Weather Underground**: This app aggregates data from multiple sources, including local weather stations, and provides real-time wind speed and direction for London.\n3. **Wind Patterns in London**: London typically experiences winds from the **southwest** to **northeast**, influenced by the North Sea and surrounding weather systems. However, wind speeds can vary significantly depending on the time of day, weather events, and local topography.\n\n### How to Check:\n- Visit the **Met Office website** and search for \"London\" in the search bar.\n- Look for the **\"Live\"** tab for current conditions, including wind speed and direction.\n- Use a weather app like **AccuWeather** or **BBC Weather** for similar real-time updates.\n\nIf you're unable to access these sources, keep in mind that wind speed in London can fluctuate rapidly, so it's always best to verify with a reliable weather service. Let me know if you'd like guidance on interpreting the data!<|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "HuggingFaceTB/SmolLM3-3B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": null,+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n## Metadata\n\nKnowledge Cutoff Date: June 2025\nToday Date: 03 April 2026\nReasoning Mode: /no_think\n\n## Custom Instructions\n\nYou are a helpful assistant\n\n<|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n",+ "completion": "I'm sorry, but as an AI, I don't have real-time capabilities to fetch live data or updates. I recommend checking a reliable weather website, app, or service for the current wind speed in London. Some popular options include the BBC Weather or the Met Office's website. They provide detailed weather forecasts, including wind speed, for various locations.<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "HuggingFaceTB/SmolLM3-3B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n## Metadata\n\nKnowledge Cutoff Date: June 2025\nToday Date: 03 April 2026\nReasoning Mode: /think\n\n## Custom Instructions\n\nYou are a helpful assistant\n\n<|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>\nOkay, the user is asking for the current wind speed in London. I need to figure out how to provide an accurate answer. First, I should check if I have real-time data. Since my knowledge is up to 2023, I don't have access to live weather data. So, I can't give the exact current wind speed. \n\nNext, I should consider how to help the user. Maybe suggest checking a reliable weather website or app. Websites like the Met Office or Weather.com are good sources. They provide up-to-date information. Also, mentioning that wind speed can vary based on time of day, weather conditions, and location within London might be helpful. For example, wind speeds near the coast can be different from those inland. \n\nI should also mention that if the user is looking for historical data or specific times, they might need to check those sources. It's important to be clear that I can't provide real-time data but can guide them to where they can find it. \n\nWait, maybe I can add a note about the units. Wind speed is usually measured in kilometers per hour (km/h) or miles per hour (mph). Depending on the source, the user might need to know which unit is used. \n\nAlso, if the user is in a hurry, suggesting a quick search on their phone's weather app could be useful. Many apps have real-time weather updates. \n\nI should make sure the response is helpful and not just a refusal. Providing a few options for where to get the information is better than just saying they can't get it. \n\nLet me structure the answer: first, state that I can't provide real-time data, then suggest specific websites and apps, mention the units, and offer to help with historical data if needed. That should cover the user's needs.\n</think>\n\nI currently don't have access to real-time weather data, so I can't provide the exact current wind speed in London. However, you can check reliable weather sources like:\n\n1. **The Met Office** (www.metoffice.gov.uk) - Offers detailed UK weather forecasts, including wind speed and direction.\n2. **Weather.com** (www.weather.com) - Provides localized forecasts and live updates.\n3. **BBC Weather** (www.bbc.co.uk/weather) - Covers London and nearby areas with up-to-date data.\n\nFor historical or specific time-period wind speed data, you can also explore:\n\n- **UK Met Office Archive** (www.metoffice.gov.uk/archive)\n- **National Weather Service (NOAA)** (www.weather.gov) for U.S. and global data.\n\nWind speed in London typically varies depending on weather conditions, time of day, and location (coastal vs. inland). If you're looking for a general idea, check the weather app on your phone or computer for the most accurate and current information. Let me know if you need help with historical data or other weather-related topics!<|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "HuggingFaceTB/SmolLM3-3B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n## Metadata\n\nKnowledge Cutoff Date: June 2025\nToday Date: 03 April 2026\nReasoning Mode: /no_think\n\n## Custom Instructions\n\nYou are a helpful assistant\n\n<|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n",+ "completion": "As an AI, I don't have real-time capabilities to provide current weather updates or wind speeds. However, you can easily check the current wind speed and other weather conditions in London using a reliable weather forecast website or app, such as The Weather Channel, BBC Weather, or AccuWeather. These platforms provide up-to-date weather information based on your location.<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "HuggingFaceTB/SmolLM3-3B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n## Metadata\n\nKnowledge Cutoff Date: June 2025\nToday Date: 03 April 2026\nReasoning Mode: /think\n\n## Custom Instructions\n\nYou are a helpful assistant\n\n### Tools\n\nYou may call one or more functions to assist with the user query.\nYou are provided with function signatures within <tools></tools> XML tags:\n\n<tools>\n{'type': 'function', 'function': {'name': 'get_current_temperature', 'description': 'Get the current temperature at a location.', 'parameters': {'type': 'object', 'properties': {'location': {'type': 'object', 'properties': {'city': {'type': 'string', 'description': 'The city name'}, 'country': {'type': 'string', 'description': 'The country name'}}, 'required': ['city', 'country'], 'description': 'The location to get the temperature for'}, 'unit': {'type': 'string', 'enum': ['celsius', 'fahrenheit'], 'description': 'The unit to return the temperature in.'}}, 'required': ['location', 'unit']}, 'return': {'type': 'number'}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call>\n\n<|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>\nOkay, the user is asking for the current wind speed in London. Let me check the tools available. The function signatures include 'get_current_temperature', which is for temperature. But there's no function listed for wind speed. Hmm, maybe the user expects me to use the temperature function somehow, but that doesn't make sense. Wait, maybe there's a misunderstanding. The wind speed isn't part of the current weather data typically provided by the temperature function. So, I should inform the user that the current wind speed in London isn't available with the given tools. Alternatively, maybe the user is expecting me to look up wind speed from another source, but since the tools don't include that, I can't do it. I should respond that the required function isn't available and suggest checking a weather service. Let me make sure there's no other tool I missed. No, the tools provided are only for temperature. So the correct response is to inform the user that the wind speed can't be retrieved with the current tools and recommend checking a weather service instead.\n</think>\n\nThe function 'get_current_temperature' is not capable of retrieving wind speed data. To obtain the current wind speed in London, please use a weather service or API that provides real-time meteorological data. For example, you can check services like Weather.com, AccuWeather, or your local weather app. \n\n<tool_call>\n{\"name\": \"get_current_temperature\", \"arguments\": {\"location\": {\"city\": \"London\", \"country\": \"UK\"}, \"unit\": \"celsius\"}}\n</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "HuggingFaceTB/SmolLM3-3B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n## Metadata\n\nKnowledge Cutoff Date: June 2025\nToday Date: 03 April 2026\nReasoning Mode: /no_think\n\n## Custom Instructions\n\nYou are a helpful assistant\n\n### Tools\n\nYou may call one or more functions to assist with the user query.\nYou are provided with function signatures within <tools></tools> XML tags:\n\n<tools>\n{'type': 'function', 'function': {'name': 'get_current_temperature', 'description': 'Get the current temperature at a location.', 'parameters': {'type': 'object', 'properties': {'location': {'type': 'object', 'properties': {'city': {'type': 'string', 'description': 'The city name'}, 'country': {'type': 'string', 'description': 'The country name'}}, 'required': ['city', 'country'], 'description': 'The location to get the temperature for'}, 'unit': {'type': 'string', 'enum': ['celsius', 'fahrenheit'], 'description': 'The unit to return the temperature in.'}}, 'required': ['location', 'unit']}, 'return': {'type': 'number'}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call>\n\n<|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n",+ "completion": "To get the current wind speed in London, we need to call the `get_current_temperature` function with the location set to London and the unit to wind speed. However, the provided function only returns temperature. To get wind speed, we would need a different function or data source. Since we don't have a function for wind speed, we can't fulfill this request with the given tools. \n\nHowever, if you meant to ask about the wind speed in London in a different unit, you could use the `get_current_temperature` function and then interpret the result as wind speed. But this is not accurate. For accurate wind speed data, you would need to use a weather service or a specific function that provides wind speed data.\n\nSince we can't fulfill this specific request, I'll return an empty JSON as there's no function available for this task with the given tools. \n\n<tool_call>\n{\"name\": \"get_current_temperature\", \"arguments\": {\"location\": {\"city\": \"London\", \"country\": \"UK\"}, \"unit\": \"wind_speed\"}}\n</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "HuggingFaceTB/SmolLM3-3B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n## Metadata\n\nKnowledge Cutoff Date: June 2025\nToday Date: 03 April 2026\nReasoning Mode: /think\n\n## Custom Instructions\n\nYou are a helpful assistant\n\n### Tools\n\nYou may call one or more functions to assist with the user query.\nYou are provided with function signatures within <tools></tools> XML tags:\n\n<tools>\n{'type': 'function', 'function': {'name': 'get_current_wind_speed', 'description': 'Get the current wind speed in km/h at a given location.', 'parameters': {'type': 'object', 'properties': {'location': {'type': 'string', 'description': 'The location to get the wind speed for, in the format \"City, Country\"'}}, 'required': ['location']}, 'return': {'type': 'number', 'description': 'The current wind speed in km/h'}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call>\n\n<|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>\n\n</think>\n<tool_call>\n{\"name\": \"get_current_wind_speed\", \"arguments\": {\"location\": \"London, United Kingdom\"}}\n</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "HuggingFaceTB/SmolLM3-3B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n## Metadata\n\nKnowledge Cutoff Date: June 2025\nToday Date: 03 April 2026\nReasoning Mode: /no_think\n\n## Custom Instructions\n\nYou are a helpful assistant\n\n### Tools\n\nYou may call one or more functions to assist with the user query.\nYou are provided with function signatures within <tools></tools> XML tags:\n\n<tools>\n{'type': 'function', 'function': {'name': 'get_current_wind_speed', 'description': 'Get the current wind speed in km/h at a given location.', 'parameters': {'type': 'object', 'properties': {'location': {'type': 'string', 'description': 'The location to get the wind speed for, in the format \"City, Country\"'}}, 'required': ['location']}, 'return': {'type': 'number', 'description': 'The current wind speed in km/h'}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call>\n\n<|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n",+ "completion": "<tool_call>\n{\"name\": \"get_current_wind_speed\", \"arguments\": {\"location\": \"London, UK\"}}\n</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "HuggingFaceTB/SmolLM3-3B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n## Metadata\n\nKnowledge Cutoff Date: June 2025\nToday Date: 03 April 2026\nReasoning Mode: /think\n\n## Custom Instructions\n\nYou are a helpful assistant\n\n### Tools\n\nYou may call one or more functions to assist with the user query.\nYou are provided with function signatures within <tools></tools> XML tags:\n\n<tools>\n{'type': 'function', 'function': {'name': 'get_current_temperature', 'description': 'Get the current temperature at a location.', 'parameters': {'type': 'object', 'properties': {'location': {'type': 'object', 'properties': {'city': {'type': 'string', 'description': 'The city name'}, 'country': {'type': 'string', 'description': 'The country name'}}, 'required': ['city', 'country'], 'description': 'The location to get the temperature for'}, 'unit': {'type': 'string', 'enum': ['celsius', 'fahrenheit'], 'description': 'The unit to return the temperature in.'}}, 'required': ['location', 'unit']}, 'return': {'type': 'number'}}}\n{'type': 'function', 'function': {'name': 'get_current_wind_speed', 'description': 'Get the current wind speed in km/h at a given location.', 'parameters': {'type': 'object', 'properties': {'location': {'type': 'string', 'description': 'The location to get the wind speed for, in the format \"City, Country\"'}}, 'required': ['location']}, 'return': {'type': 'number', 'description': 'The current wind speed in km/h'}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call>\n\n<|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>\nOkay, the user is asking for the current wind speed in London. Let me check the tools available. There's a function called get_current_wind_speed which takes a location as a parameter. The location needs to be in the format \"City, Country\". So for London, it should be \"London, United Kingdom\".\n\nI need to call that function with the location parameter set to \"London, United Kingdom\". The function returns the wind speed in km/h. Since the user didn't specify a unit, the default is probably km/h, but the function's description mentions km/h, so that's fine.\n\nLet me structure the response as a JSON object with the function name and arguments. The arguments should be a string with the location. Then wrap it in the specified XML tags. I should make sure there are no typos in the location name. \"United Kingdom\" is the correct country code. Alright, that should do it. Let me put it all together.\n</think>\n\n<tool_call>\n{\"name\": \"get_current_wind_speed\", \"arguments\": {\"location\": \"London, United Kingdom\"}}\n</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "HuggingFaceTB/SmolLM3-3B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n## Metadata\n\nKnowledge Cutoff Date: June 2025\nToday Date: 03 April 2026\nReasoning Mode: /no_think\n\n## Custom Instructions\n\nYou are a helpful assistant\n\n### Tools\n\nYou may call one or more functions to assist with the user query.\nYou are provided with function signatures within <tools></tools> XML tags:\n\n<tools>\n{'type': 'function', 'function': {'name': 'get_current_temperature', 'description': 'Get the current temperature at a location.', 'parameters': {'type': 'object', 'properties': {'location': {'type': 'object', 'properties': {'city': {'type': 'string', 'description': 'The city name'}, 'country': {'type': 'string', 'description': 'The country name'}}, 'required': ['city', 'country'], 'description': 'The location to get the temperature for'}, 'unit': {'type': 'string', 'enum': ['celsius', 'fahrenheit'], 'description': 'The unit to return the temperature in.'}}, 'required': ['location', 'unit']}, 'return': {'type': 'number'}}}\n{'type': 'function', 'function': {'name': 'get_current_wind_speed', 'description': 'Get the current wind speed in km/h at a given location.', 'parameters': {'type': 'object', 'properties': {'location': {'type': 'string', 'description': 'The location to get the wind speed for, in the format \"City, Country\"'}}, 'required': ['location']}, 'return': {'type': 'number', 'description': 'The current wind speed in km/h'}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call>\n\n<|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n",+ "completion": "<tool_call>\n{\"name\": \"get_current_wind_speed\", \"arguments\": {\"location\": \"London, UK\"}}\n</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "HuggingFaceTB/SmolLM3-3B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": null,+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n## Metadata\n\nKnowledge Cutoff Date: June 2025\nToday Date: 03 April 2026\nReasoning Mode: /think\n\n## Custom Instructions\n\nYou are a helpful assistant\n\n<|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>\n\n</think>\nI'm sorry for the inconvenience, but as an AI, I don't have real-time capabilities to fetch live data such as current temperature and wind speed in London. You can easily find this information by checking a reliable weather website or app, such as the Met Office or BBC Weather, which will provide you with accurate and up-to-date data.<|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "HuggingFaceTB/SmolLM3-3B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": null,+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n## Metadata\n\nKnowledge Cutoff Date: June 2025\nToday Date: 03 April 2026\nReasoning Mode: /no_think\n\n## Custom Instructions\n\nYou are a helpful assistant\n\n<|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n",+ "completion": "I'm sorry for any inconvenience, but as an AI, I don't have real-time capabilities to provide current weather information. I recommend checking a reliable weather forecasting website or app, such as BBC Weather or Weather.com, for the most accurate and up-to-date information about the current temperature and wind speed in London.<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "HuggingFaceTB/SmolLM3-3B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n## Metadata\n\nKnowledge Cutoff Date: June 2025\nToday Date: 03 April 2026\nReasoning Mode: /think\n\n## Custom Instructions\n\nYou are a helpful assistant\n\n<|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>\n\n</think>\nI'm sorry, but as an AI, I don't have real-time capabilities to fetch live data such as current temperature and wind speed in London. However, you can easily find this information by using a search engine like Google or by checking a weather forecast website. Just type \"current temperature and wind speed in London\" into your search engine, and you should find the information you need.<|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "HuggingFaceTB/SmolLM3-3B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n## Metadata\n\nKnowledge Cutoff Date: June 2025\nToday Date: 03 April 2026\nReasoning Mode: /no_think\n\n## Custom Instructions\n\nYou are a helpful assistant\n\n<|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n",+ "completion": "I'm sorry, but as an AI, I don't have real-time capabilities to provide current weather updates or wind speeds. You can check the current temperature and wind speed in London by using a reliable weather forecasting website or app such as the BBC Weather, Met Office, or Weather Underground.<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "HuggingFaceTB/SmolLM3-3B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n## Metadata\n\nKnowledge Cutoff Date: June 2025\nToday Date: 03 April 2026\nReasoning Mode: /think\n\n## Custom Instructions\n\nYou are a helpful assistant\n\n### Tools\n\nYou may call one or more functions to assist with the user query.\nYou are provided with function signatures within <tools></tools> XML tags:\n\n<tools>\n{'type': 'function', 'function': {'name': 'get_current_temperature', 'description': 'Get the current temperature at a location.', 'parameters': {'type': 'object', 'properties': {'location': {'type': 'object', 'properties': {'city': {'type': 'string', 'description': 'The city name'}, 'country': {'type': 'string', 'description': 'The country name'}}, 'required': ['city', 'country'], 'description': 'The location to get the temperature for'}, 'unit': {'type': 'string', 'enum': ['celsius', 'fahrenheit'], 'description': 'The unit to return the temperature in.'}}, 'required': ['location', 'unit']}, 'return': {'type': 'number'}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call>\n\n<|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>\n\n</think>\n<tool_call>\n{\"name\": \"get_current_temperature\", \"arguments\": {\"location\": {\"city\": \"London\", \"country\": \"UK\"}, \"unit\": \"celsius\"}}\n</tool_call>\n<tool_call>\n{\"name\": \"get_wind_speed\", \"arguments\": {\"location\": {\"city\": \"London\", \"country\": \"UK\"}}}\n</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "HuggingFaceTB/SmolLM3-3B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n## Metadata\n\nKnowledge Cutoff Date: June 2025\nToday Date: 03 April 2026\nReasoning Mode: /no_think\n\n## Custom Instructions\n\nYou are a helpful assistant\n\n### Tools\n\nYou may call one or more functions to assist with the user query.\nYou are provided with function signatures within <tools></tools> XML tags:\n\n<tools>\n{'type': 'function', 'function': {'name': 'get_current_temperature', 'description': 'Get the current temperature at a location.', 'parameters': {'type': 'object', 'properties': {'location': {'type': 'object', 'properties': {'city': {'type': 'string', 'description': 'The city name'}, 'country': {'type': 'string', 'description': 'The country name'}}, 'required': ['city', 'country'], 'description': 'The location to get the temperature for'}, 'unit': {'type': 'string', 'enum': ['celsius', 'fahrenheit'], 'description': 'The unit to return the temperature in.'}}, 'required': ['location', 'unit']}, 'return': {'type': 'number'}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call>\n\n<|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n",+ "completion": "<tool_call>\n{\"name\": \"get_current_temperature\", \"arguments\": {\"location\": {\"city\": \"London\", \"country\": \"United Kingdom\"}, \"unit\": \"celsius\"}}\n</tool_call>\n<tool_call>\n{\"name\": \"get_current_wind_speed\", \"arguments\": {\"location\": {\"city\": \"London\", \"country\": \"United Kingdom\"}}}\n</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "HuggingFaceTB/SmolLM3-3B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n## Metadata\n\nKnowledge Cutoff Date: June 2025\nToday Date: 03 April 2026\nReasoning Mode: /think\n\n## Custom Instructions\n\nYou are a helpful assistant\n\n### Tools\n\nYou may call one or more functions to assist with the user query.\nYou are provided with function signatures within <tools></tools> XML tags:\n\n<tools>\n{'type': 'function', 'function': {'name': 'get_current_wind_speed', 'description': 'Get the current wind speed in km/h at a given location.', 'parameters': {'type': 'object', 'properties': {'location': {'type': 'string', 'description': 'The location to get the wind speed for, in the format \"City, Country\"'}}, 'required': ['location']}, 'return': {'type': 'number', 'description': 'The current wind speed in km/h'}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call>\n\n<|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>\n\n</think>\nTo get the current temperature and wind speed in London, we need to call two functions: one to get the current temperature and another to get the current wind speed. \n\nHere's the JSON output for the function calls:\n\n<tool_call>\n{\"name\": \"get_current_temperature\", \"arguments\": {\"location\": \"London\"}}\n</tool_call>\n<tool_call>\n{\"name\": \"get_current_wind_speed\", \"arguments\": {\"location\": \"London\"}}\n</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "HuggingFaceTB/SmolLM3-3B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n## Metadata\n\nKnowledge Cutoff Date: June 2025\nToday Date: 03 April 2026\nReasoning Mode: /no_think\n\n## Custom Instructions\n\nYou are a helpful assistant\n\n### Tools\n\nYou may call one or more functions to assist with the user query.\nYou are provided with function signatures within <tools></tools> XML tags:\n\n<tools>\n{'type': 'function', 'function': {'name': 'get_current_wind_speed', 'description': 'Get the current wind speed in km/h at a given location.', 'parameters': {'type': 'object', 'properties': {'location': {'type': 'string', 'description': 'The location to get the wind speed for, in the format \"City, Country\"'}}, 'required': ['location']}, 'return': {'type': 'number', 'description': 'The current wind speed in km/h'}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call>\n\n<|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n",+ "completion": "I'm unable to retrieve real-time weather data. However, I can guide you on how to use the provided tool function to get this information.\n\nTo get the current temperature and wind speed in London, you would need to use a separate tool function that can retrieve weather data. Since I don't have such a function, here's how you can do it:\n\n1. Use the `get_current_weather` function to get the current weather data for London.\n2. Use the `get_current_wind_speed` function to get the current wind speed in London.\n\nPlease note that these functions are not provided in the current setup, but they would follow the provided function signatures.\n\nFor example, the JSON output for the function calls would look like this:\n\n<tool_call>\n{\"name\": \"get_current_weather\", \"arguments\": {\"location\": \"London\"}}\n</tool_call>\n\n<tool_call>\n{\"name\": \"get_current_wind_speed\", \"arguments\": {\"location\": \"London\"}}\n</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "HuggingFaceTB/SmolLM3-3B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n## Metadata\n\nKnowledge Cutoff Date: June 2025\nToday Date: 03 April 2026\nReasoning Mode: /think\n\n## Custom Instructions\n\nYou are a helpful assistant\n\n### Tools\n\nYou may call one or more functions to assist with the user query.\nYou are provided with function signatures within <tools></tools> XML tags:\n\n<tools>\n{'type': 'function', 'function': {'name': 'get_current_temperature', 'description': 'Get the current temperature at a location.', 'parameters': {'type': 'object', 'properties': {'location': {'type': 'object', 'properties': {'city': {'type': 'string', 'description': 'The city name'}, 'country': {'type': 'string', 'description': 'The country name'}}, 'required': ['city', 'country'], 'description': 'The location to get the temperature for'}, 'unit': {'type': 'string', 'enum': ['celsius', 'fahrenheit'], 'description': 'The unit to return the temperature in.'}}, 'required': ['location', 'unit']}, 'return': {'type': 'number'}}}\n{'type': 'function', 'function': {'name': 'get_current_wind_speed', 'description': 'Get the current wind speed in km/h at a given location.', 'parameters': {'type': 'object', 'properties': {'location': {'type': 'string', 'description': 'The location to get the wind speed for, in the format \"City, Country\"'}}, 'required': ['location']}, 'return': {'type': 'number', 'description': 'The current wind speed in km/h'}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call>\n\n<|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>\nOkay, let's see. The user wants to know the current temperature and wind speed in London. I need to call the appropriate functions using the provided tools.\n\nFirst, for the temperature. The function is get_current_temperature. The location is London, and the country is the UK. The unit should be in Celsius since that's the default unless specified otherwise. Wait, the user didn't specify the unit, so maybe I should default to Celsius. But the function parameters require specifying the unit. Oh, right, the user might want both temperature and wind speed. The temperature function needs the unit to be specified. Let me check the function parameters again. The parameters for get_current_temperature include 'unit' as a required field. So I need to include the unit when calling that function.\n\nFor the temperature, London, UK. Let's use Celsius. So the arguments would be location with city London and country UK, and unit Celsius. Then the wind speed function. The wind speed function takes a location as a string in the format \"City, Country\". So London, UK again. The function returns the wind speed in km/h. So the arguments for that would be the same location string.\n\nNow, I need to structure the JSON for each function call. The first call is to get the temperature. The arguments would be:\n\n{\n \"location\": {\n \"city\": \"London\",\n \"country\": \"UK\"\n },\n \"unit\": \"celsius\"\n}\n\nThen the wind speed call is:\n\n{\n \"location\": \"London, UK\"\n}\n\nI need to make sure the function names and arguments are correctly formatted. Then, I'll present the results in a user-friendly way, showing the temperature and wind speed. Let me double-check the function names and parameters to avoid any mistakes. Once that's done, I can output the JSON for each function call as per the instructions.\n</think>\n\n<tool_call>\n{\"name\": \"get_current_temperature\", \"arguments\": {\"location\": {\"city\": \"London\", \"country\": \"UK\"}, \"unit\": \"celsius\"}}\n</tool_call>\n<tool_call>\n{\"name\": \"get_current_wind_speed\", \"arguments\": {\"location\": \"London, UK\"}}\n</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_temperature",+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "HuggingFaceTB/SmolLM3-3B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n## Metadata\n\nKnowledge Cutoff Date: June 2025\nToday Date: 03 April 2026\nReasoning Mode: /no_think\n\n## Custom Instructions\n\nYou are a helpful assistant\n\n### Tools\n\nYou may call one or more functions to assist with the user query.\nYou are provided with function signatures within <tools></tools> XML tags:\n\n<tools>\n{'type': 'function', 'function': {'name': 'get_current_temperature', 'description': 'Get the current temperature at a location.', 'parameters': {'type': 'object', 'properties': {'location': {'type': 'object', 'properties': {'city': {'type': 'string', 'description': 'The city name'}, 'country': {'type': 'string', 'description': 'The country name'}}, 'required': ['city', 'country'], 'description': 'The location to get the temperature for'}, 'unit': {'type': 'string', 'enum': ['celsius', 'fahrenheit'], 'description': 'The unit to return the temperature in.'}}, 'required': ['location', 'unit']}, 'return': {'type': 'number'}}}\n{'type': 'function', 'function': {'name': 'get_current_wind_speed', 'description': 'Get the current wind speed in km/h at a given location.', 'parameters': {'type': 'object', 'properties': {'location': {'type': 'string', 'description': 'The location to get the wind speed for, in the format \"City, Country\"'}}, 'required': ['location']}, 'return': {'type': 'number', 'description': 'The current wind speed in km/h'}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call>\n\n<|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n",+ "completion": "<tool_call>\n{\"name\": \"get_current_temperature\", \"arguments\": {\"location\": {\"city\": \"London\", \"country\": \"UK\"}, \"unit\": \"celsius\"}}\n</tool_call>\n<tool_call>\n{\"name\": \"get_current_wind_speed\", \"arguments\": {\"location\": \"London, UK\"}}\n</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_temperature",+ "get_current_wind_speed"+ ]+ }+ }+]\ No newline at end of filediff --git a/workspace/data/responses/LiquidAI_LFM2-1.2B.json b/workspace/data/responses/LiquidAI_LFM2-1.2B.jsonnew file mode 100644index 000000000..04a4898d7--- /dev/null+++ b/workspace/data/responses/LiquidAI_LFM2-1.2B.json@@ -0,0 +1,789 @@+[+ {+ "repo_id": "LiquidAI/LFM2-1.2B",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": null,+ "context": {}+ },+ "result": {+ "prompt": "<|startoftext|><|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "As of my last update, I don't have real-time data access, but I can guide you on how to find the current temperature in London. You can easily check the current temperature by using a few different methods:\n\n1. **Weather Websites or Apps**: Websites like BBC Weather, Met Office, Weather Underground, or apps like AccuWeather, Weather.com, or even Google Weather provide up-to-date temperature information for London.\n\n2. **Search Engine**: Simply type \"current temperature in London\" into your preferred search engine's search bar, and it will display the latest temperature.\n\n3. **Smartphone Apps**: If you have a smartphone, you can open a weather app on your device, which will show the current temperature in London.\n\nPlease note that temperatures can change rapidly, so the information I provide here is accurate up to my last update. For the most accurate and current temperature, I recommend checking one of the methods above.<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "LiquidAI/LFM2-1.2B",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [],+ "context": {}+ },+ "result": {+ "prompt": "<|startoftext|><|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "As of my last update, I don't have real-time data access, but I can guide you on how to find the current temperature in London. You can easily check the current temperature by using a few different methods:\n\n1. **Weather Websites or Apps**: Websites like BBC Weather, Met Office, Weather Underground, or apps like AccuWeather, Weather.com, or even Google Weather provide up-to-date temperature information for London.\n\n2. **Search Engine**: Simply type \"current temperature in London\" into your preferred search engine's search bar, and it will display the latest temperature.\n\n3. **Smartphone Apps**: If you have a smartphone, you can open a weather app on your device, which will show the current temperature in London.\n\nPlease note that temperatures can change rapidly, so the information I provide here is accurate up to my last update. For the most accurate and current temperature, I recommend checking one of the methods above.<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "LiquidAI/LFM2-1.2B",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|startoftext|><|im_start|>system\nList of tools: <|tool_list_start|>[{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}]<|tool_list_end|><|im_end|>\n<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<|tool_call_start|>[get_current_temperature(location=\"London\", unit=\"celsius\")]<|tool_call_end|><|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "LiquidAI/LFM2-1.2B",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|startoftext|><|im_start|>system\nList of tools: <|tool_list_start|>[{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}]<|tool_list_end|><|im_end|>\n<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "I am sorry, I do not have a tool to directly provide the current temperature in London. However, I can tell you the current wind speed in London if you'd like. Would you be interested in that?<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "LiquidAI/LFM2-1.2B",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|startoftext|><|im_start|>system\nList of tools: <|tool_list_start|>[{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}, {\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}]<|tool_list_end|><|im_end|>\n<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<|tool_call_start|>[get_current_temperature(location=\"London\", unit=\"celsius\")]<|tool_call_end|><|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "LiquidAI/LFM2-1.2B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": null,+ "context": {}+ },+ "result": {+ "prompt": "<|startoftext|><|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "As of my last update, I don't have real-time capabilities to provide current weather data. However, you can easily check the current wind speed in London by using a weather website or app like Weather.com, Weather Underground, or even a simple search on Google.<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "LiquidAI/LFM2-1.2B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [],+ "context": {}+ },+ "result": {+ "prompt": "<|startoftext|><|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "As of my last update, I don't have real-time capabilities to provide current weather data. However, you can easily check the current wind speed in London by using a weather website or app like Weather.com, Weather Underground, or even a simple search on Google.<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "LiquidAI/LFM2-1.2B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|startoftext|><|im_start|>system\nYou are a helpful assistant\nList of tools: <|tool_list_start|>[{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}]<|tool_list_end|><|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "I am sorry, I do not have a tool to provide the current wind speed in London. However, I can get the current temperature in London if you'd like. Just let me know if you want the temperature in Celsius or Fahrenheit.<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "LiquidAI/LFM2-1.2B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|startoftext|><|im_start|>system\nYou are a helpful assistant\nList of tools: <|tool_list_start|>[{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}]<|tool_list_end|><|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<|tool_call_start|>[get_current_wind_speed(location=\"London, UK\")]<|tool_call_end|><|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "LiquidAI/LFM2-1.2B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|startoftext|><|im_start|>system\nYou are a helpful assistant\nList of tools: <|tool_list_start|>[{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}, {\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}]<|tool_list_end|><|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "I am sorry, I do not have a tool to directly provide the current wind speed in London. However, I can get the current wind speed in km/h for London using my `get_current_wind_speed` tool. Would you like me to do that?<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "LiquidAI/LFM2-1.2B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": null,+ "context": {}+ },+ "result": {+ "prompt": "<|startoftext|><|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "I'm sorry, but I don't have real-time capabilities to provide the current temperature and wind speed in London. However, you can easily find this information by checking a reliable weather website or app like Weather.com, BBC Weather, or the Met Office website.<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "LiquidAI/LFM2-1.2B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [],+ "context": {}+ },+ "result": {+ "prompt": "<|startoftext|><|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "I'm sorry, but I don't have real-time capabilities to provide the current temperature and wind speed in London. However, you can easily find this information by checking a reliable weather website or app like Weather.com, BBC Weather, or the Met Office website.<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "LiquidAI/LFM2-1.2B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|startoftext|><|im_start|>system\nYou are a helpful assistant\nList of tools: <|tool_list_start|>[{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}]<|tool_list_end|><|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<|tool_call_start|>[get_current_temperature(location=\"London\", unit=\"celsius\"), get_current_temperature(location=\"London\", unit=\"fahrenheit\")]<|tool_call_end|><|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "LiquidAI/LFM2-1.2B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|startoftext|><|im_start|>system\nYou are a helpful assistant\nList of tools: <|tool_list_start|>[{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}]<|tool_list_end|><|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<|tool_call_start|>[get_current_wind_speed(location=\"London, UK\")]<|tool_call_end|><|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "LiquidAI/LFM2-1.2B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|startoftext|><|im_start|>system\nYou are a helpful assistant\nList of tools: <|tool_list_start|>[{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}, {\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}]<|tool_list_end|><|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<|tool_call_start|>[get_current_temperature(location=\"London\", unit=\"celsius\"), get_current_wind_speed(location=\"London\")]<|tool_call_end|><|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_temperature",+ "get_current_wind_speed"+ ]+ }+ }+]\ No newline at end of filediff --git a/workspace/data/responses/LiquidAI_LFM2.5-1.2B-Instruct.json b/workspace/data/responses/LiquidAI_LFM2.5-1.2B-Instruct.jsonnew file mode 100644index 000000000..c5c56807d--- /dev/null+++ b/workspace/data/responses/LiquidAI_LFM2.5-1.2B-Instruct.json@@ -0,0 +1,789 @@+[+ {+ "repo_id": "LiquidAI/LFM2.5-1.2B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": null,+ "context": {}+ },+ "result": {+ "prompt": "<|startoftext|><|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "I don\u2019t have real-time data access, so I can\u2019t provide the current temperature in London. \nYou can check the latest temperature by visiting a reliable weather website or app such as the BBC Weather, AccuWeather, or your local meteorological service. Would you like me to suggest some good sources for live London weather updates?<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "LiquidAI/LFM2.5-1.2B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [],+ "context": {}+ },+ "result": {+ "prompt": "<|startoftext|><|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "I don\u2019t have real-time data access, so I can\u2019t provide the current temperature in London. \nYou can check the latest temperature by visiting a reliable weather website or app such as the BBC Weather, AccuWeather, or your local meteorological service. Would you like me to suggest some good sources for live London weather updates?<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "LiquidAI/LFM2.5-1.2B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|startoftext|><|im_start|>system\nList of tools: [{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}]<|im_end|>\n<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<|tool_call_start|>[get_current_temperature(location={\"city\": \"London\", \"country\": \"United Kingdom\"}, unit=\"celsius\")]<|tool_call_end|>[get_current_temperature(location={\"city\": \"London\", \"country\": \"United Kingdom\"}, unit=\"celsius\")]<|tool_call_end|><|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "LiquidAI/LFM2.5-1.2B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|startoftext|><|im_start|>system\nList of tools: [{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}]<|im_end|>\n<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "I'm sorry, but I can't provide the current temperature. Based on the available API, I can only get the current wind speed in km/h for a given location. Let me know if you'd like the wind speed information instead.<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "LiquidAI/LFM2.5-1.2B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|startoftext|><|im_start|>system\nList of tools: [{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}, {\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}]<|im_end|>\n<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<|tool_call_start|>[get_current_temperature(location={\"city\": \"London\", \"country\": \"United Kingdom\"}, unit=\"celsius\")]<|tool_call_end|><|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "LiquidAI/LFM2.5-1.2B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": null,+ "context": {}+ },+ "result": {+ "prompt": "<|startoftext|><|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "I don't have real-time data access to provide the current wind speed in London. For the most accurate and up-to-date information, I recommend checking a reliable weather service or app such as the Met Office, Weather.com, or a local news station. Would you like me to help you find a link to a live weather website?<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "LiquidAI/LFM2.5-1.2B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [],+ "context": {}+ },+ "result": {+ "prompt": "<|startoftext|><|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "I don't have real-time data access to provide the current wind speed in London. For the most accurate and up-to-date information, I recommend checking a reliable weather service or app such as the Met Office, Weather.com, or a local news station. Would you like me to help you find a link to a live weather website?<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "LiquidAI/LFM2.5-1.2B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|startoftext|><|im_start|>system\nYou are a helpful assistant\nList of tools: [{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}]<|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "I'm sorry, but I can't provide the current wind speed. Based on the available API, I can only get the current temperature for a location. Let me know if you'd like the temperature information for London.<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "LiquidAI/LFM2.5-1.2B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|startoftext|><|im_start|>system\nYou are a helpful assistant\nList of tools: [{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}]<|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<|tool_call_start|>[get_current_wind_speed(location=\"London, UK\")]<|tool_call_end|><|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "LiquidAI/LFM2.5-1.2B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|startoftext|><|im_start|>system\nYou are a helpful assistant\nList of tools: [{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}, {\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}]<|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<|tool_call_start|>[get_current_wind_speed(location=\"London\")]<|tool_call_end|><|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "LiquidAI/LFM2.5-1.2B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": null,+ "context": {}+ },+ "result": {+ "prompt": "<|startoftext|><|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "I don't have real-time data access, so I can't provide the current temperature and wind speed in London. However, you can check the latest weather information on a reliable weather website or app such as the BBC Weather, AccuWeather, or a local meteorological service. Would you like me to help you find a link to a live weather service?<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "LiquidAI/LFM2.5-1.2B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [],+ "context": {}+ },+ "result": {+ "prompt": "<|startoftext|><|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "I don't have real-time data access, so I can't provide the current temperature and wind speed in London. However, you can check the latest weather information on a reliable weather website or app such as the BBC Weather, AccuWeather, or a local meteorological service. Would you like me to help you find a link to a live weather service?<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "LiquidAI/LFM2.5-1.2B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|startoftext|><|im_start|>system\nYou are a helpful assistant\nList of tools: [{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}]<|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<|tool_call_start|>[get_current_temperature(location={\"city\": \"London\", \"country\": \"United Kingdom\"}, unit=\"celsius\")]<|tool_call_end|><|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "LiquidAI/LFM2.5-1.2B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|startoftext|><|im_start|>system\nYou are a helpful assistant\nList of tools: [{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}]<|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "I'm sorry, but I can't provide the current temperature. Based on the available API, I can only get the current wind speed for a given location. Let me know if you'd like the wind speed information for London instead.<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "LiquidAI/LFM2.5-1.2B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|startoftext|><|im_start|>system\nYou are a helpful assistant\nList of tools: [{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}, {\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}]<|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<|tool_call_start|>[get_current_temperature(location={\"city\": \"London\", \"country\": \"UK\"}, unit=\"celsius\"), get_current_wind_speed(location=\"London, UK\")]<|tool_call_end|><|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_temperature",+ "get_current_wind_speed"+ ]+ }+ }+]\ No newline at end of filediff --git a/workspace/data/responses/LiquidAI_LFM2.5-1.2B-Thinking.json b/workspace/data/responses/LiquidAI_LFM2.5-1.2B-Thinking.jsonnew file mode 100644index 000000000..bdde41a26--- /dev/null+++ b/workspace/data/responses/LiquidAI_LFM2.5-1.2B-Thinking.json@@ -0,0 +1,789 @@+[+ {+ "repo_id": "LiquidAI/LFM2.5-1.2B-Thinking",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": null,+ "context": {}+ },+ "result": {+ "prompt": "<|startoftext|><|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think> Okay, let's see. The user is asking for the current temperature in London. Hmm, I need to figure out how to respond. First, I should check if I have access to real-time data. Wait, but I remember that my knowledge is up to October 2023, and I don't have live data capabilities. So I can't provide the exact current temperature. \n\nWait, but maybe the user expects me to know or provide an approximate. Since I can't access live info, I should inform them that I can't provide real-time data. But maybe I can suggest checking a weather service. Alternatively, if I have general knowledge up to 2023, perhaps I can state that my information is up to a certain date. Wait, but the user might just want the current temperature. Since I can't access live data, I should politely say I can't provide real-time info but maybe give a general answer based on typical London weather?\n\nWait, but maybe the user expects me to say I can't do that. Let me think. The instructions say to avoid harmful content, but this isn't harmful. The user just wants the current temperature. Since I can't access live data, I should respond that I can't provide current temperature but suggest checking a weather service. Alternatively, maybe I can state that my knowledge is up to 2023, and perhaps give an example of how temperature might be around, say, 15\u00b0C? Wait no, that's arbitrary. Alternatively, maybe I should just say I can't access real-time data and recommend using a weather app. \n\nAlternatively, maybe the user expects me to say I don't have access but offer to help with other info. Let me check the guidelines: the user wants the response in a helpful way. So the best approach is to inform them I can't provide current data but suggest checking a reliable source like weather websites or apps. Also, maybe mention that London's current temperature is typically around X, but since I can't know, better to say I can't retrieve live data. Yeah, that's better. So the response should be something like: \"I can't provide real-time weather data, but you can check a reliable weather service or app for the latest temperature in London.\" That should work. Make sure it's concise and helpful.\n</think>\n\nI don't have access to real-time data or current weather information. For the most accurate and up-to-date temperature in London, I recommend checking a trusted weather service like the BBC Weather, Weather.com, or a local news outlet's weather section. Let me know if you'd like help finding such resources! \ud83c\udf24\ufe0f<|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "LiquidAI/LFM2.5-1.2B-Thinking",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [],+ "context": {}+ },+ "result": {+ "prompt": "<|startoftext|><|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think> Okay, let's see. The user is asking for the current temperature in London. Hmm, I need to figure out how to respond. First, I should check if I have access to real-time data. Wait, but I remember that my knowledge is up to October 2023, and I don't have live data capabilities. So I can't provide the exact current temperature. \n\nWait, but maybe the user expects me to know or provide an approximate. Since I can't access live info, I should inform them that I can't provide real-time data. But maybe I can suggest checking a weather service. Alternatively, if I have general knowledge up to 2023, perhaps I can state that my information is up to a certain date. Wait, but the user might just want the current temperature. Since I can't access live data, I should politely say I can't provide real-time info but maybe give a general answer based on typical London weather?\n\nWait, but maybe the user expects me to say I can't do that. Let me think. The instructions say to avoid harmful content, but this isn't harmful. The user just wants the current temperature. Since I can't access live data, I should respond that I can't provide current temperature but suggest checking a weather service. Alternatively, maybe I can state that my knowledge is up to 2023, and perhaps give an example of how temperature might be around, say, 15\u00b0C? Wait no, that's arbitrary. Alternatively, maybe I should just say I can't access real-time data and recommend using a weather app. \n\nAlternatively, maybe the user expects me to say I don't have access but offer to help with other info. Let me check the guidelines: the user wants the response in a helpful way. So the best approach is to inform them I can't provide current data but suggest checking a reliable source like weather websites or apps. Also, maybe mention that London's current temperature is typically around X, but since I can't know, better to say I can't retrieve live data. Yeah, that's better. So the response should be something like: \"I can't provide real-time weather data, but you can check a reliable weather service or app for the latest temperature in London.\" That should work. Make sure it's concise and helpful.\n</think>\n\nI don't have access to real-time data or current weather information. For the most accurate and up-to-date temperature in London, I recommend checking a trusted weather service like the BBC Weather, Weather.com, or a local news outlet's weather section. Let me know if you'd like help finding such resources! \ud83c\udf24\ufe0f<|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "LiquidAI/LFM2.5-1.2B-Thinking",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|startoftext|><|im_start|>system\nList of tools: [{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}]<|im_end|>\n<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think> Okay, let's see. The user is asking for the current temperature in London. I need to use the get_current_temperature function provided. The function requires location and unit parameters. The location should be an object with city and country. Since the user mentioned London, the city is London and the country is the UK. The unit isn't specified, but maybe I should default to Celsius since it's commonly used there, but wait, the function allows specifying either celsius or fahrenheit. The user didn't specify, so maybe I should ask? Wait no, the function requires the unit parameter. Wait, looking back at the tool definition: the parameters are location (object with city and country), unit (enum: celsius or fahrenheit), and return is a number. Wait, actually, the parameters for get_current_temperature are location (which is an object with city and country), unit (which is required?), wait no: looking at the parameters, the required fields are location and unit. Wait the tool's required parameters are location and unit. Wait the tool's parameters are: \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": ..., \"country\": ...}, \"unit\": ...}, \"return\": ...}}, \"required\": [\"location\", \"unit\"]}. Wait, actually, the required fields are location and unit. Wait the function's required parameters are location and unit. Wait the user hasn't specified the unit, so I need to choose either celsius or fahrenheit. Since London uses Celsius typically, maybe I should pick celsius. Alternatively, maybe the user expects Fahrenheit? Hmm. But since the user didn't specify, perhaps I should assume Celsius as it's standard in the UK. So I'll set unit to \"celsius\". Then the location is London, country is UK. So the arguments would be location: { \"city\": \"London\", \"country\": \"UK\" }, unit: \"celsius\". So the function call should be get_current_temperature with those parameters. Let me make sure I structure the JSON correctly. The location object has city and country, and unit is \"celsius\". So the tool_call should be:\n\n{\n \"name\": \"get_current_temperature\",\n \"arguments\": {\n \"location\": {\n \"city\": \"London\",\n \"country\": \"UK\"\n },\n \"unit\": \"celsius\"\n }\n}\n\nYes, that should work. I need to make sure that the parameters are correctly formatted. The user asked for London's temperature, so this should retrieve it.\n</think>\n<|tool_call_start|>[get_current_temperature(unit='celsius', location={'city': 'London', 'country': 'UK'}, return=0)]<|tool_call_end|><|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "LiquidAI/LFM2.5-1.2B-Thinking",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|startoftext|><|im_start|>system\nList of tools: [{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}]<|im_end|>\n<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think> Okay, let's see. The user is asking for the current temperature in London. Hmm, looking at the tools provided, wait a second. The available tool here is get_current_wind_speed, which gives wind speed in km/h. But the user is asking for temperature. Oh no, there's no tool listed for temperature. Wait, maybe I missed something. Let me check again. The tools section only has get_current_wind_speed. So there's no function available to get temperature. \n\nWait, the user might have made a mistake, or maybe I need to inform them that I can't provide the temperature. Since the tools don't include a temperature function, I can't retrieve that data. I should let them know I can't help with temperature but maybe suggest they check another source. Alternatively, maybe there's a misunderstanding. Wait, maybe the user intended to ask about wind speed but said temperature? Or perhaps there's a tool I'm supposed to use differently. No, according to the given tools, only wind speed is available. \n\nSo I need to respond that I can't provide the temperature because the necessary tool isn't available. I should apologize and explain that my current capabilities are limited to wind speed. Alternatively, maybe the user confused wind speed with temperature? Not sure. But according to the instructions, I should just state that I can't answer the temperature question with the available tools. So the correct response is to inform them I can't retrieve temperature data and mention the available tool for wind speed if they need that instead.\n</think>\n\nI currently don't have access to a tool that provides temperature data. My available tool only allows me to retrieve wind speed information. Would you like me to provide the current wind speed for a specific location instead?<|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "LiquidAI/LFM2.5-1.2B-Thinking",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|startoftext|><|im_start|>system\nList of tools: [{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}, {\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}]<|im_end|>\n<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think> Okay, let's see. The user is asking for the current temperature in London. I need to figure out which tool to use here. Looking at the available tools, there's get_current_temperature which requires location and unit. The parameters are location (as an object with city and country) and unit. Since the user just said London, I should specify the city as London and country as UK, I guess? Wait, but maybe the country is optional? Wait, the parameters for get_current_temperature require both city and country. So I need to make sure to include both. London is in the UK, so country would be United Kingdom or UK. Let me check the function's required parameters again. The location object needs city and country. So I'll set city: \"London\", country: \"United Kingdom\". Then the unit is optional? Wait no, looking back, the parameters for get_current_temperature have \"unit\" as optional? Wait no, looking at the tool definition: the parameters for get_current_temperature are location (which is an object with city and country), and unit is optional? Wait no, the parameters are: \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": ..., \"country\": ...}, \"required\": [\"city\", \"country\"]}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"]}}, \"required\": [\"location\", \"unit\"]}. Wait, no, wait the \"unit\" is not required? Wait the required fields are \"location\" and \"unit\"? Wait no, looking again: the required array is [\"location\", \"unit\"]? Wait no, wait the tool's required array is [\"location\", \"unit\"]? Wait no, looking at the tool's JSON: \"required\": [\"location\", \"unit\"], but wait the parameters for get_current_temperature have \"location\" as an object with city and country, and \"unit\" is a separate parameter. Wait the required fields are \"location\" and \"unit\"? Wait the tool's required array is [\"location\", \"unit\"], but \"location\" is an object with city and country. Hmm, maybe I need to parse that correctly. The function's required parameters are \"location\" (which is an object with city and country) and \"unit\". Wait no, looking again: the tool's parameters are structured as:\n\n\"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"location\": {\n \"type\": \"object\",\n \"properties\": {\n \"city\": ..., \n \"country\": ...\n },\n \"required\": [\"city\", \"country\"]\n },\n \"unit\": {\n \"type\": \"string\",\n \"enum\": [\"celsius\", \"fahrenheit\"]\n }\n },\n \"required\": [\"location\", \"unit\"]\n}\n\nWait, no, the \"required\" array includes \"location\" and \"unit\". Wait, but \"location\" is an object with city and country. So the user needs to provide city and country within the location object, and also specify the unit. Since the user asked for temperature but didn't specify unit, maybe I should assume celsius? Or should I ask? Wait the user didn't specify, but the function requires the unit. Since the user didn't specify, perhaps I should default to celsius, as it's common in many countries. Alternatively, maybe the function can handle it if unit is optional? Wait no, according to the tool definition, \"unit\" is in the required list. Wait the required array is [\"location\", \"unit\"], but \"location\" is an object requiring city and country, and \"unit\" is a separate parameter. Wait maybe I misread. Let me check again: the tool's required parameters are \"location\" and \"unit\". Wait no, looking at the tool's JSON: \"required\": [\"location\", \"unit\"], but \"location\" is an object with city and country. So to call get_current_temperature, I need to provide the location object (with city and country) and the unit. Since the user didn't specify the unit, perhaps I should choose one, maybe celsius as default. Alternatively, maybe the function expects the user to specify, but since the user didn't, perhaps I should pick celsius. Alternatively, maybe the function can handle it if unit is optional? Wait no, according to the tool definition, \"unit\" is required because it's in the required array. Wait the tool's required fields are \"location\" and \"unit\". Wait the \"location\" is required as an object with city and country, and \"unit\" is required. So I have to provide both. Since the user didn't specify, perhaps I should assume celsius, as it's commonly used in many contexts. So I'll set unit to \"celsius\". Therefore, the function call would be get_current_temperature with location: { \"city\": \"London\", \"country\": \"UK\" }, unit: \"celsius\". Alternatively, maybe the country is \"United Kingdom\". Hmm, but the user just said London, so country could be \"UK\" or \"United Kingdom\". Either should work. Let's go with \"United Kingdom\". So the tool call would be:\n\n{\n \"name\": \"get_current_temperature\",\n \"arguments\": {\n \"location\": {\n \"city\": \"London\",\n \"country\": \"United Kingdom\"\n },\n \"unit\": \"celsius\"\n }\n}\n\nWait but the user might expect Fahrenheit? Not sure, but since the user didn't specify, maybe celsius is safer. Alternatively, maybe the function can handle it without specifying, but according to the tool's definition, unit is required. So I'll proceed with celsius. So that's the plan.\n</think>\n<|tool_call_start|>[get_current_temperature(location={'city': 'London', 'country': 'United Kingdom'}, unit='celsius')]<|tool_call_end|><|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "LiquidAI/LFM2.5-1.2B-Thinking",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": null,+ "context": {}+ },+ "result": {+ "prompt": "<|startoftext|><|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think> Okay, let's see. The user is asking for the current wind speed in London. Hmm, I need to figure out how to answer that. First, I should check if I have access to real-time data. Wait, I remember that my knowledge is up until July 2024, but I don't have live data capabilities. So I can't provide real-time wind speed. \n\nI should inform them that I can't access live data. But maybe I can suggest checking a weather service or app. Alternatively, if there's a general way to estimate it. Wait, maybe I can mention typical wind speeds in London. London's weather can vary a lot, but generally, it's around 10-20 km/h on average. But I should be careful not to give a specific number without knowing the current conditions.\n\nWait, the user might expect a specific answer. Since I can't provide real-time info, I should state that I can't retrieve live data but offer alternatives. Also, maybe mention that wind speed can be found via weather websites or apps like Weather.com, AccuWeather, or a smartphone app. Also, perhaps note that wind speed can vary based on time of day and weather patterns. Make sure to keep it helpful and direct them to reliable sources. Avoid making up numbers. So the response should be honest about limitations but helpful in guiding them to where they can find the info. Let me structure that.\n</think>\n\nI don't have access to real-time data or live weather information, including current wind speeds. For up-to-date wind speed in London, I recommend checking a reliable weather service like [Weather.com](https://www.weather.com), [AccuWeather](https://www.accuweather.com), or a weather app like Weather.com or your device's built-in weather app. Wind speeds can vary based on time of day, season, and local conditions, so checking a trusted source will give you the most accurate information. Let me know if you'd like help interpreting weather forecasts!<|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "LiquidAI/LFM2.5-1.2B-Thinking",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [],+ "context": {}+ },+ "result": {+ "prompt": "<|startoftext|><|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think> Okay, let's see. The user is asking for the current wind speed in London. Hmm, I need to figure out how to answer that. First, I should check if I have access to real-time data. Wait, I remember that my knowledge is up until July 2024, but I don't have live data capabilities. So I can't provide real-time wind speed. \n\nI should inform them that I can't access live data. But maybe I can suggest checking a weather service or app. Alternatively, if there's a general way to estimate it. Wait, maybe I can mention typical wind speeds in London. London's weather can vary a lot, but generally, it's around 10-20 km/h on average. But I should be careful not to give a specific number without knowing the current conditions.\n\nWait, the user might expect a specific answer. Since I can't provide real-time info, I should state that I can't retrieve live data but offer alternatives. Also, maybe mention that wind speed can be found via weather websites or apps like Weather.com, AccuWeather, or a smartphone app. Also, perhaps note that wind speed can vary based on time of day and weather patterns. Make sure to keep it helpful and direct them to reliable sources. Avoid making up numbers. So the response should be honest about limitations but helpful in guiding them to where they can find the info. Let me structure that.\n</think>\n\nI don't have access to real-time data or live weather information, including current wind speeds. For up-to-date wind speed in London, I recommend checking a reliable weather service like [Weather.com](https://www.weather.com), [AccuWeather](https://www.accuweather.com), or a weather app like Weather.com or your device's built-in weather app. Wind speeds can vary based on time of day, season, and local conditions, so checking a trusted source will give you the most accurate information. Let me know if you'd like help interpreting weather forecasts!<|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "LiquidAI/LFM2.5-1.2B-Thinking",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|startoftext|><|im_start|>system\nYou are a helpful assistant\nList of tools: [{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}]<|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think> Okay, let's see. The user is asking for the current wind speed in London. Hmm, looking at the tools provided, there's a function called get_current_temperature, but wait, that's for temperature. The user is asking about wind speed, which isn't covered by the available tools. The tools listed only have get_current_temperature. Oh no, there's no function for wind speed. \n\nWait, maybe I should check again. The tools section only shows get_current_temperature. So the user is asking for wind speed, which isn't supported by the available functions. Since I can't access other tools, I need to inform them that I can't retrieve wind speed data. But maybe I should confirm if there's another way? No, according to the tools given, there's no function for wind speed. Therefore, I should tell the user that I can't provide that information because the necessary tool isn't available. I should apologize and explain that my current capabilities are limited to temperature, not wind speed. Let me make sure I didn't miss any other functions. No, the only tool listed is get_current_temperature. So yes, I have to respond that I can't help with wind speed.\n</think>\n\nI don't have access to a tool that provides wind speed information. My current capabilities are limited to retrieving temperature data. Would you like me to help with the current temperature in London instead?<|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "LiquidAI/LFM2.5-1.2B-Thinking",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|startoftext|><|im_start|>system\nYou are a helpful assistant\nList of tools: [{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}]<|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think> Okay, let's see. The user is asking for the current wind speed in London. I need to use the tool provided, which is get_current_wind_speed. The function requires a location parameter in the format \"City, Country\". Since the user mentioned London, I should format the location as \"London, United Kingdom\" to be specific. The tool will return the wind speed in km/h. I should call the function with that location. I don't see any other parameters needed. Just make sure the location is correctly specified. Alright, I'll generate the tool call with \"London, United Kingdom\" as the location.\n</think>\n<|tool_call_start|>[get_current_wind_speed(location='London, United Kingdom')]<|tool_call_end|><|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "LiquidAI/LFM2.5-1.2B-Thinking",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|startoftext|><|im_start|>system\nYou are a helpful assistant\nList of tools: [{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}, {\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}]<|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think> Okay, let's see. The user is asking for the current wind speed in London. I need to figure out which tool to use here. Looking at the available tools, there's get_current_wind_speed which provides wind speed in km/h for a given location. The parameters require a location in \"City, Country\" format. Since the user just said London, I should specify the country as well. London is in the UK, so the location would be \"London, UK\". The function requires the location parameter, so I'll structure the arguments accordingly. I don't need the temperature tool here because the question is specifically about wind speed. So I'll call get_current_wind_speed with location \"London, UK\". Let me double-check the parameters: location is required, formatted as \"City, Country\", and the return value is the wind speed. Alright, that should work.\n</think>\n<|tool_call_start|>[get_current_wind_speed(location='London, UK')]<|tool_call_end|><|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "LiquidAI/LFM2.5-1.2B-Thinking",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": null,+ "context": {}+ },+ "result": {+ "prompt": "<|startoftext|><|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think> Okay, let's see. The user is asking for the current temperature and wind speed in London. I need to figure out how to answer that. Since I can't access real-time data, I should inform them that I can't provide live updates. But maybe I can give a general idea based on typical conditions. Wait, but maybe I should check if there's a way to get that info. Wait, no, as an AI, I don't have access to live data. So I should tell them I can't provide current data but maybe suggest checking a weather service. Alternatively, if I have to answer without external sources, perhaps state that I can't retrieve real-time info but can offer general advice. Hmm. Alternatively, maybe the user expects a hypothetical answer. Wait, the user might just want a straightforward response. Let me make sure. The user might be expecting me to say I can't access current data, but perhaps provide a typical scenario. For example, if it's currently 20\u00b0C with 10 km/h wind, but I should be careful not to give false info. Alternatively, maybe mention that I can't provide live data but can explain how to find it. Wait, the instructions say to act as a helpful assistant. So perhaps the best approach is to apologize and explain the limitation, then suggest checking a reliable weather service. Alternatively, maybe the user expects a specific answer. Wait, maybe I should just state that I can't access real-time data but can guide them on where to find it. Let me structure the response: start with the limitation, then suggest sources like weather websites or apps. Also, maybe mention that if they provide the current data, I can help interpret it. Alternatively, maybe the user expects a fictional answer? No, better to be honest. So final answer: explain inability to provide current data, suggest checking a weather service, and offer to help with other info if possible.\n</think>\n\nI don't have access to real-time data or current weather information. For up-to-date temperature and wind speed in London, I recommend checking a reliable weather service like [weather.com](https://www.weather.com), the BBC Weather, or a weather app like Weather.com or AccuWeather. If you provide specific details (e.g., \"What is the temperature in London today?\"), I can help interpret general climate patterns or historical averages! Let me know how I can assist further. \ud83c\udf24\ufe0f<|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "LiquidAI/LFM2.5-1.2B-Thinking",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [],+ "context": {}+ },+ "result": {+ "prompt": "<|startoftext|><|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think> Okay, let's see. The user is asking for the current temperature and wind speed in London. I need to figure out how to answer that. Since I can't access real-time data, I should inform them that I can't provide live updates. But maybe I can give a general idea based on typical conditions. Wait, but maybe I should check if there's a way to get that info. Wait, no, as an AI, I don't have access to live data. So I should tell them I can't provide current data but maybe suggest checking a weather service. Alternatively, if I have to answer without external sources, perhaps state that I can't retrieve real-time info but can offer general advice. Hmm. Alternatively, maybe the user expects a hypothetical answer. Wait, the user might just want a straightforward response. Let me make sure. The user might be expecting me to say I can't access current data, but perhaps provide a typical scenario. For example, if it's currently 20\u00b0C with 10 km/h wind, but I should be careful not to give false info. Alternatively, maybe mention that I can't provide live data but can explain how to find it. Wait, the instructions say to act as a helpful assistant. So perhaps the best approach is to apologize and explain the limitation, then suggest checking a reliable weather service. Alternatively, maybe the user expects a specific answer. Wait, maybe I should just state that I can't access real-time data but can guide them on where to find it. Let me structure the response: start with the limitation, then suggest sources like weather websites or apps. Also, maybe mention that if they provide the current data, I can help interpret it. Alternatively, maybe the user expects a fictional answer? No, better to be honest. So final answer: explain inability to provide current data, suggest checking a weather service, and offer to help with other info if possible.\n</think>\n\nI don't have access to real-time data or current weather information. For up-to-date temperature and wind speed in London, I recommend checking a reliable weather service like [weather.com](https://www.weather.com), the BBC Weather, or a weather app like Weather.com or AccuWeather. If you provide specific details (e.g., \"What is the temperature in London today?\"), I can help interpret general climate patterns or historical averages! Let me know how I can assist further. \ud83c\udf24\ufe0f<|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "LiquidAI/LFM2.5-1.2B-Thinking",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|startoftext|><|im_start|>system\nYou are a helpful assistant\nList of tools: [{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}]<|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think> Okay, let's see. The user is asking for the current temperature and wind speed in London. Hmm, looking at the tools provided, there's a function called get_current_temperature. Wait, but the description says it gets the current temperature at a location. However, the parameters for that function are location (which is an object with city and country), unit, and return. Wait, but the user also asked for wind speed. Oh, wait a second\u2014the tool provided only mentions temperature. The function's description says it gets temperature, but the parameters don't include wind speed. Oh no, maybe there's a mistake here. Let me check again.\n\nThe tool's name is get_current_temperature, and its parameters are location (city and country), unit. The return is a number. But the user is asking for both temperature and wind speed. Since the available tool only provides temperature, not wind speed, I can't get wind speed with the given functions. Wait, maybe I misread the tool's description. Let me check again. The tool's description says \"Get the current temperature at a location.\" So it only gives temperature. The user also wants wind speed, which isn't covered by this tool. Since the user asked for both temperature and wind speed, but the available tool can only provide temperature, I need to inform them that wind speed isn't available through the current tools. Alternatively, maybe the user made a mistake, but I have to work with what's given. So I should call get_current_temperature for London's temperature, but since wind speed isn't possible, I should mention that I can provide temperature but not wind speed. Wait, but the user might expect wind speed. Since the tool doesn't support it, I should state that I can only provide temperature. Alternatively, maybe the tool's parameters have a mistake? Let me check again. The parameters for get_current_temperature require location as an object with city and country, and unit. The return is a number (temperature). So yes, only temperature. Therefore, I can answer the temperature part, but not wind speed. So I should respond that I can get the temperature but not wind speed. But the user asked for both. Since the user might not know the tool's limitations, I should say I can provide the temperature, and note that wind speed isn't available. Alternatively, maybe the user intended just temperature. Let me proceed: call get_current_temperature for London, UK, and unit as specified. Since the user didn't specify unit, maybe default to celsius or ask? Wait, the user didn't specify unit, but the function requires unit as a parameter. Since the user didn't specify, perhaps assume celsius? Or maybe the function can handle it. Wait, the function's parameters require \"unit\" to be either celsius or fahrenheit. Since the user didn't specify, maybe pick one, but perhaps the function can handle it. Wait, the user might expect either, but since the user is in London, which commonly uses Celsius, maybe default to celsius. So I'll set unit to \"celsius\". Then, the function call would be get_current_temperature with location {city: \"London\", country: \"UK\"}, unit: \"celsius\". Then, the response will give temperature. But since the user also asked for wind speed, which isn't available, I need to inform them that wind speed isn't possible with current tools. So the answer will be temperature, and mention that wind speed isn't available. Alternatively, maybe the user just wants temperature, so proceed with that. So the final answer would state the temperature, and note that wind speed can't be provided. Alright, let's structure the response accordingly.\n</think>\n<|tool_call_start|>[get_current_temperature(location={'city': 'London', 'country': 'UK'}, unit='celsius')]<|tool_call_end|><|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "LiquidAI/LFM2.5-1.2B-Thinking",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|startoftext|><|im_start|>system\nYou are a helpful assistant\nList of tools: [{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}]<|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think> Okay, let's see. The user is asking for the current temperature and wind speed in London. Hmm, looking at the tools provided, there's a function called get_current_wind_speed which gives wind speed in km/h. But wait, the user also wants the temperature. Oh, wait a second, the available tools only include get_current_wind_speed. There's no function for temperature. \n\nSo, the problem here is that I can only use the tools given. Since temperature isn't covered by any function, I can't retrieve that. But maybe the user expects me to use the wind speed tool and then mention that temperature isn't available. Wait, but maybe I should check again. The tools section only lists get_current_wind_speed. So I can only provide wind speed. But the user asked for both temperature and wind speed. Since temperature isn't possible with current tools, I need to inform them that I can't get temperature but can provide wind speed. Alternatively, maybe the user made a mistake, but I have to work with what's given.\n\nWait, perhaps I should respond that I can get the wind speed but not the temperature. Let me confirm: the user asked for both, but since only wind speed tool exists, I should state that I can provide wind speed but not temperature. So I should call get_current_wind_speed for London, then explain that temperature isn't available. Alternatively, maybe the user expects me to say I can't get temperature. Let me structure the response: first, call the available function for wind speed, then inform the user that temperature isn't possible with current tools. But the user might need both. Alternatively, maybe I should just answer what's possible. Let me proceed step by step. The function requires location as \"London, UK\" perhaps. So I'll call get_current_wind_speed with location \"London, UK\". Then, in the response, I'll state the wind speed result and note that temperature isn't available through current tools. That should be the best I can do.\n</think>\n<|tool_call_start|>[get_current_wind_speed(location='London, UK')]<|tool_call_end|><|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "LiquidAI/LFM2.5-1.2B-Thinking",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|startoftext|><|im_start|>system\nYou are a helpful assistant\nList of tools: [{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}, {\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}]<|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think> Okay, let's see. The user is asking for the current temperature and wind speed in London. I need to figure out which tools to use here. \n\nFirst, looking at the available functions: there's get_current_temperature and get_current_wind_speed. Both require location parameters. The user specified London, so I need to make sure the location is properly formatted. \n\nFor the temperature function, the parameters are location (which should be \"London, UK\" maybe?), and unit. Wait, the function's parameters are location as an object with city and country, and unit which can be celsius or fahrenheit. Since the user didn't specify the unit, maybe I should default to one, but perhaps the user expects Celsius since it's common in the UK. But the function requires specifying unit. Hmm, but the user might want either, but since they didn't say, maybe I should pick one. Wait, the function's required parameters are location and unit. Wait no, looking back: the get_current_temperature function's required parameters are location and unit. Wait no, checking the tool definition again: \n\nWait the first tool, get_current_temperature, parameters are location (object with city and country), and unit (enum: celsius or fahrenheit). The required fields are location and unit. Wait no, looking at the parameters: \"required\": [\"location\", \"unit\"], but location is an object with city and country. Wait the parameters for get_current_temperature are: location is an object with city and country, and unit is a string. So to call get_current_temperature, I need to provide location as {\"city\": \"London\", \"country\": \"UK\"} and unit as either \"celsius\" or \"fahrenheit\". Since the user didn't specify, maybe I should assume Celsius since it's London. Alternatively, maybe the user expects both? Wait no, the user just asked for temperature and wind speed. \n\nSimilarly, for wind speed, the function get_current_wind_speed requires location as \"City, Country\", so London, UK. The return parameter is the wind speed in km/h. \n\nSo I need to make two separate function calls: one for temperature and one for wind speed. \n\nWait, but the user wants both temperature and wind speed. So first call get_current_temperature with location London, UK and unit celsius (assuming), and then get_current_wind_speed with location London, UK. \n\nWait but the user might not care about the unit, but since the function requires specifying unit, I have to choose one. Since London uses Celsius typically, I'll go with celsius. \n\nSo the steps are: \n\n1. Call get_current_temperature with location {\"city\": \"London\", \"country\": \"UK\"}, unit \"celsius\".\n2. Call get_current_wind_speed with location \"London, UK\".\n\nThen combine the results to answer the user. \n\nWait but the parameters for get_current_temperature's location is an object with city and country. So yes, London, UK. \n\nSo I'll structure the tool calls accordingly. \n\nWait, but the user might expect both temperature and wind speed. So I need to make sure both functions are called. \n\nTherefore, the tool calls should be two separate function calls. \n\nSo first tool call: name get_current_temperature, arguments: location { \"city\": \"London\", \"country\": \"UK\" }, unit \"celsius\". \n\nSecond tool call: name get_current_wind_speed, arguments: location \"London, UK\". \n\nThen, once I get those results, I can present both values to the user. \n\nI need to make sure that the parameters are correctly formatted. Also, check if the country is correctly specified. Since London is in the UK, country is \"UK\". \n\nYes, that should work. So the final answer will be the temperature and wind speed from these two calls.\n</think>\n<|tool_call_start|>[get_current_temperature(location={'city': 'London', 'country': 'UK'}, unit='celsius'), get_current_wind_speed(location='London, UK')]<|tool_call_end|><|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_temperature",+ "get_current_wind_speed"+ ]+ }+ }+]\ No newline at end of filediff --git a/workspace/data/responses/Nanbeige_Nanbeige4.1-3B.json b/workspace/data/responses/Nanbeige_Nanbeige4.1-3B.jsonnew file mode 100644index 000000000..bc627390d--- /dev/null+++ b/workspace/data/responses/Nanbeige_Nanbeige4.1-3B.json@@ -0,0 +1,789 @@+[+ {+ "repo_id": "Nanbeige/Nanbeige4.1-3B",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": null,+ "context": {}+ },+ "result": {+ "prompt": "<|im_start|>system\n\u4f60\u662f\u5357\u5317\u9601\uff0c\u4e00\u6b3e\u7531BOSS\u76f4\u8058\u81ea\u4e3b\u7814\u53d1\u5e76\u8bad\u7ec3\u7684\u4e13\u4e1a\u5927\u8bed\u8a00\u6a21\u578b\u3002<|im_end|>\n<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>\nWeimplify is asked: \"What is the current temperature in London?\" This is a straightforward question, but as an AI, I do not have real-time internet access (unless the model has browsing capabilities, but the prompt does not specify). However, the user is asking for \"current temperature\", which implies real-time information. Since I am a language model, I need to determine if I can provide the current temperature. \n\nFirst, I need to assess my capabilities: \n- If I have access to live internet or weather API integration, I could fetch the current temperature. But the problem statement does not indicate that I have such capabilities. In many contexts, the AI might be expected to state that it cannot provide real-time information and suggest alternative ways.\n- However, sometimes in simulated environments, the AI might be expected to generate a plausible answer or state that it cannot know the current temperature.\n- The question is ambiguous: \"current\" implies at the time of asking. Without real-time data, I cannot know.\n\nBest practice: \n1. Acknowledge that I do not have real-time capabilities unless specified otherwise.\n2. Suggest methods the user can check the temperature themselves (e.g., weather apps, websites, search engines).\n3. If the context is a test of reasoning, maybe the user expects me to realize I cannot answer directly.\n4. Alternatively, if this is a trick question or a test of AI limitations, the correct answer is to state inability.\n\nBut wait: The user might be expecting me to use my training data? No, training data does not include real-time information. My training cutoff is 2024, but even then, I don't have live weather.\n\nTherefore, the most accurate and helpful response is to inform the user that I cannot provide real-time information and guide them on how to find it.\n\nHowever, let me double-check: Sometimes in some setups, the AI might be given a plugin or function calling capability. But the prompt does not mention any tools. The instruction says \"You are an AI language model\", so likely no external tools.\n\nThus, I should respond:\n\n\"I don't have access to real-time information, including current weather conditions. For the latest temperature in London, I recommend checking a reliable weather service such as:\n- A weather website (e.g., BBC Weather, Weather.com, AccuWeather)\n- A weather app on your smartphone\n- Searching \"London temperature\" on a search engine\n- Using a voice assistant (like Siri, Google Assistant, Alexa)\n\nIf you have a specific time or context (e.g., historical data, average temperature for the season), I might be able to provide that information from my training data. Alternatively, if you're looking for general climate information about London, I can share details about typical temperatures.\"\n\nBut the question is very direct: \"What is the current temperature in London?\" So the honest answer is that I cannot provide it.\n\nHowever, sometimes users ask this in a context where the AI is expected to simulate or make up a plausible answer? No, that would be unethical. Better to be truthful.\n\nAnother angle: Could \"current\" refer to the temperature at the moment of the query in a simulated scenario? Unlikely.\n\nThus, final decision: Respond that I cannot provide real-time weather data and suggest alternatives.\n\nBut wait: The user might be testing if I recognize that I need to ask for clarification? No.\n\nLet me formulate a polite and helpful response.\n\nAdditionally, I should consider: If the user is asking in a context where \"current\" might be misinterpreted, but no.\n\nFinalize:\n\n\"I'm unable to provide real-time weather information, as I do not have access to live data or internet connectivity. However, here's how you can find the current temperature in London:\n\n1. **Search online**: Type 'London temperature' into a search engine (like Google, Bing, etc.).\n2. **Weather apps/websites**: Use services like BBC Weather, Met Office, Weather.com, or AccuWeather.\n3. **Smart devices**: Check your phone's weather app or smart speaker.\n4. **Local news**: Many news outlets include weather updates.\n\nIf you're interested in general climate information about London (e.g., average temperatures for the season, historical averages, or weather patterns), I\u2019d be happy to share that! For example, London typically has mild winters and warm summers, with average highs around 15-20\u00b0C in summer and 2-8\u00b0C in winter.\n\nIf you have any other questions I can help with, feel free to ask!\"\n\nYes, that is appropriate.\n\nBut wait: Could there be a scenario where the AI is supposed to use a built-in tool? Since the problem is presented as a standalone query, and no tools are mentioned, I think the safe answer is to state inability.\n\nHowever, let me check the initial system prompt: The user just asked the question. There's no indication of tools. So I should answer accordingly.\n\nOne more thought: Sometimes in AI competitions or tests, they might expect the AI to say \"I don't know\" or \"I cannot provide real-time information\". That is the correct approach.\n\nThus, I will output a response that clearly states I cannot provide real-time temperature and offers alternatives.\n\nBut also, to be thorough, I can add: \"If you provide the date and time you're asking about, and if I have historical data, I might be able to give typical conditions, but not the exact current temperature.\"\n\nNo, better to keep it simple.\n\nFinal answer structure:\n- Acknowledge limitation.\n- Suggest methods to find it.\n- Offer alternative assistance if possible.\n\nLet me draft:\n\n\"\u26a0\ufe0f **Note**: I do not have access to live weather data or real-time information. Therefore, I cannot tell you the current temperature in London at this moment.\n\nHowever, you can easily find the current temperature by:\n- Using a weather app (e.g., Weather Channel, AccuWeather, Apple Weather)\n- Searching 'London weather' on Google or another search engine\n- Checking the website of a trusted weather service like the Met Office (UK's national weather service) or BBC Weather\n- Asking a virtual assistant (like Siri, Google Assistant, or Alexa)\n\nIf you're interested in general climate information about London, such as average temperatures by season, historical averages, or weather patterns, I\u2019d be glad to share that! For example:\n- **Summer (June\u2013August)**: Average high temperatures range from 18\u00b0C to 25\u00b0C (64\u00b0F to 77\u00b0F), with occasional heatwaves.\n- **Winter (December\u2013February)**: Average lows are around 1\u00b0C to 7\u00b0C (34\u00b0F to 45\u00b0F), with occasional colder snaps.\n- **Spring and Autumn**: Mild temperatures, typically between 8\u00b0C and 18\u00b0C (46\u00b0F to 64\u00b0F).\n\nIf you have a specific context (e.g., historical data, forecast for a future date, or related weather queries), please let me know, and I\u2019ll do my best to assist!\"\n\nYes, that is good.\n\nBut wait: The user might be asking in a context where \"current\" is part of a larger puzzle or test. However, the question is straightforward.\n\nAnother angle: Could \"current\" refer to the temperature of the AI's environment? No, that doesn't make sense.\n\nThus, I think the above response is appropriate.\n\nHowever, I recall that some AI models are fine-tuned to answer such questions by simulating or using cached data, but that would be inaccurate. Best practice is to be honest.\n\nTherefore, I will output the response as described.\n\nBut let me check: In some implementations, the AI might have a plugin for weather. Since the problem statement does not specify, I should assume no plugins.\n\nFinal decision: Respond that I cannot provide real-time info and guide the user.\n\nI'll write the answer now.\n</think>\n\n\u26a0\ufe0f **Important note upfront**: \n**I do not have access to real-time data or live internet connectivity**, so I **cannot provide the current temperature in London** (or any other location) at this exact moment. My training includes general knowledge up to my knowledge cutoff (2024), but not live weather conditions.\n\n---\n\n### \ud83d\udd0d How to Find the *Current* Temperature in London:\nFor accurate, up-to-the-minute weather information, please use one of these methods:\n\n1. **Search online**: \n Type `\u201cLondon temperature\u201d` or `\u201cLondon weather\u201d` into Google, Bing, or another search engine. \n \u2192 *Google often shows live weather results directly in search results.*\n\n2. **Weather apps/websites**: \n - **Met Office** (UK's official source): [metoffice.gov.uk](https://www.metoffice.gov.uk) \n - **BBC Weather**: [bbc.co.uk/weather](https://www.bbc.co.uk/weather) \n - **Weather.com**, **AccuWeather**, **Weather Channel**, or similar services"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Nanbeige/Nanbeige4.1-3B",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [],+ "context": {}+ },+ "result": {+ "prompt": "<|im_start|>system\n\u4f60\u662f\u5357\u5317\u9601\uff0c\u4e00\u6b3e\u7531BOSS\u76f4\u8058\u81ea\u4e3b\u7814\u53d1\u5e76\u8bad\u7ec3\u7684\u4e13\u4e1a\u5927\u8bed\u8a00\u6a21\u578b\u3002<|im_end|>\n<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>\nWeimplify is asked: \"What is the current temperature in London?\" This is a straightforward question, but as an AI, I do not have real-time internet access (unless the model has browsing capabilities, but the prompt does not specify). However, the user is asking for \"current temperature\", which implies real-time information. Since I am a language model, I need to determine if I can provide the current temperature. \n\nFirst, I need to assess my capabilities: \n- If I have access to live internet or weather API integration, I could fetch the current temperature. But the problem statement does not indicate that I have such capabilities. In many contexts, the AI might be expected to state that it cannot provide real-time information and suggest alternative ways.\n- However, sometimes in simulated environments, the AI might be expected to generate a plausible answer or state that it cannot know the current temperature.\n- The question is ambiguous: \"current\" implies at the time of asking. Without real-time data, I cannot know.\n\nBest practice: \n1. Acknowledge that I do not have real-time capabilities unless specified otherwise.\n2. Suggest methods the user can check the temperature themselves (e.g., weather apps, websites, search engines).\n3. If the context is a test of reasoning, maybe the user expects me to realize I cannot answer directly.\n4. Alternatively, if this is a trick question or a test of AI limitations, the correct answer is to state inability.\n\nBut wait: The user might be expecting me to use my training data? No, training data does not include real-time information. My training cutoff is 2024, but even then, I don't have live weather.\n\nTherefore, the most accurate and helpful response is to inform the user that I cannot provide real-time information and guide them on how to find it.\n\nHowever, let me double-check: Sometimes in some setups, the AI might be given a plugin or function calling capability. But the prompt does not mention any tools. The instruction says \"You are an AI language model\", so likely no external tools.\n\nThus, I should respond:\n\n\"I don't have access to real-time information, including current weather conditions. For the latest temperature in London, I recommend checking a reliable weather service such as:\n- A weather website (e.g., BBC Weather, Weather.com, AccuWeather)\n- A weather app on your smartphone\n- Searching \"London temperature\" on a search engine\n- Using a voice assistant (like Siri, Google Assistant, Alexa)\n\nIf you have a specific time or context (e.g., historical data, average temperature for the season), I might be able to provide that information from my training data. Alternatively, if you're looking for general climate information about London, I can share details about typical temperatures.\"\n\nBut the question is very direct: \"What is the current temperature in London?\" So the honest answer is that I cannot provide it.\n\nHowever, sometimes users ask this in a context where the AI is expected to simulate or make up a plausible answer? No, that would be unethical. Better to be truthful.\n\nAnother angle: Could \"current\" refer to the temperature at the moment of the query in a simulated scenario? Unlikely.\n\nThus, final decision: Respond that I cannot provide real-time weather data and suggest alternatives.\n\nBut wait: The user might be testing if I recognize that I need to ask for clarification? No.\n\nLet me formulate a polite and helpful response.\n\nAdditionally, I should consider: If the user is asking in a context where \"current\" might be misinterpreted, but no.\n\nFinalize:\n\n\"I'm unable to provide real-time weather information, as I do not have access to live data or internet connectivity. However, here's how you can find the current temperature in London:\n\n1. **Search online**: Type 'London temperature' into a search engine (like Google, Bing, etc.).\n2. **Weather apps/websites**: Use services like BBC Weather, Met Office, Weather.com, or AccuWeather.\n3. **Smart devices**: Check your phone's weather app or smart speaker.\n4. **Local news**: Many news outlets include weather updates.\n\nIf you're interested in general climate information about London (e.g., average temperatures for the season, historical averages, or weather patterns), I\u2019d be happy to share that! For example, London typically has mild winters and warm summers, with average highs around 15-20\u00b0C in summer and 2-8\u00b0C in winter.\n\nIf you have any other questions I can help with, feel free to ask!\"\n\nYes, that is appropriate.\n\nBut wait: Could there be a scenario where the AI is supposed to use a built-in tool? Since the problem is presented as a standalone query, and no tools are mentioned, I think the safe answer is to state inability.\n\nHowever, let me check the initial system prompt: The user just asked the question. There's no indication of tools. So I should answer accordingly.\n\nOne more thought: Sometimes in AI competitions or tests, they might expect the AI to say \"I don't know\" or \"I cannot provide real-time information\". That is the correct approach.\n\nThus, I will output a response that clearly states I cannot provide real-time temperature and offers alternatives.\n\nBut also, to be thorough, I can add: \"If you provide the date and time you're asking about, and if I have historical data, I might be able to give typical conditions, but not the exact current temperature.\"\n\nNo, better to keep it simple.\n\nFinal answer structure:\n- Acknowledge limitation.\n- Suggest methods to find it.\n- Offer alternative assistance if possible.\n\nLet me draft:\n\n\"\u26a0\ufe0f **Note**: I do not have access to live weather data or real-time information. Therefore, I cannot tell you the current temperature in London at this moment.\n\nHowever, you can easily find the current temperature by:\n- Using a weather app (e.g., Weather Channel, AccuWeather, Apple Weather)\n- Searching 'London weather' on Google or another search engine\n- Checking the website of a trusted weather service like the Met Office (UK's national weather service) or BBC Weather\n- Asking a virtual assistant (like Siri, Google Assistant, or Alexa)\n\nIf you're interested in general climate information about London, such as average temperatures by season, historical averages, or weather patterns, I\u2019d be glad to share that! For example:\n- **Summer (June\u2013August)**: Average high temperatures range from 18\u00b0C to 25\u00b0C (64\u00b0F to 77\u00b0F), with occasional heatwaves.\n- **Winter (December\u2013February)**: Average lows are around 1\u00b0C to 7\u00b0C (34\u00b0F to 45\u00b0F), with occasional colder snaps.\n- **Spring and Autumn**: Mild temperatures, typically between 8\u00b0C and 18\u00b0C (46\u00b0F to 64\u00b0F).\n\nIf you have a specific context (e.g., historical data, forecast for a future date, or related weather queries), please let me know, and I\u2019ll do my best to assist!\"\n\nYes, that is good.\n\nBut wait: The user might be asking in a context where \"current\" is part of a larger puzzle or test. However, the question is straightforward.\n\nAnother angle: Could \"current\" refer to the temperature of the AI's environment? No, that doesn't make sense.\n\nThus, I think the above response is appropriate.\n\nHowever, I recall that some AI models are fine-tuned to answer such questions by simulating or using cached data, but that would be inaccurate. Best practice is to be honest.\n\nTherefore, I will output the response as described.\n\nBut let me check: In some implementations, the AI might have a plugin for weather. Since the problem statement does not specify, I should assume no plugins.\n\nFinal decision: Respond that I cannot provide real-time info and guide the user.\n\nI'll write the answer now.\n</think>\n\n\u26a0\ufe0f **Important note upfront**: \n**I do not have access to real-time data or live internet connectivity**, so I **cannot provide the current temperature in London** (or any other location) at this exact moment. My training includes general knowledge up to my knowledge cutoff (2024), but not live weather conditions.\n\n---\n\n### \ud83d\udd0d How to Find the *Current* Temperature in London:\nFor accurate, up-to-the-minute weather information, please use one of these methods:\n\n1. **Search online**: \n Type `\u201cLondon temperature\u201d` or `\u201cLondon weather\u201d` into Google, Bing, or another search engine. \n \u2192 *Google often shows live weather results directly in search results.*\n\n2. **Weather apps/websites**: \n - **Met Office** (UK's official source): [metoffice.gov.uk](https://www.metoffice.gov.uk) \n - **BBC Weather**: [bbc.co.uk/weather](https://www.bbc.co.uk/weather) \n - **Weather.com**, **AccuWeather**, **Weather Channel**, or similar services"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Nanbeige/Nanbeige4.1-3B",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|im_start|>system\n\u4f60\u662f\u4e00\u4f4d\u5de5\u5177\u51fd\u6570\u8c03\u7528\u4e13\u5bb6\uff0c\u4f60\u4f1a\u5f97\u5230\u4e00\u4e2a\u95ee\u9898\u548c\u4e00\u7ec4\u53ef\u80fd\u7684\u5de5\u5177\u51fd\u6570\u3002\u6839\u636e\u95ee\u9898\uff0c\u4f60\u9700\u8981\u8fdb\u884c\u4e00\u4e2a\u6216\u591a\u4e2a\u51fd\u6570/\u5de5\u5177\u8c03\u7528\u4ee5\u5b9e\u73b0\u76ee\u7684\uff0c\u8bf7\u5c3d\u91cf\u5c1d\u8bd5\u63a2\u7d22\u901a\u8fc7\u5de5\u5177\u89e3\u51b3\u95ee\u9898\u3002\n\u5982\u679c\u6ca1\u6709\u4e00\u4e2a\u51fd\u6570\u53ef\u4ee5\u4f7f\u7528\uff0c\u8bf7\u76f4\u63a5\u4f7f\u7528\u81ea\u7136\u8bed\u8a00\u56de\u590d\u7528\u6237\u3002\n\u5982\u679c\u7ed9\u5b9a\u7684\u95ee\u9898\u7f3a\u5c11\u51fd\u6570\u6240\u9700\u7684\u53c2\u6570\uff0c\u8bf7\u4f7f\u7528\u81ea\u7136\u8bed\u8a00\u8fdb\u884c\u63d0\u95ee\uff0c\u5411\u7528\u6237\u8be2\u95ee\u5fc5\u8981\u4fe1\u606f\u3002\n\u5982\u679c\u8c03\u7528\u7ed3\u679c\u5df2\u7ecf\u8db3\u591f\u56de\u7b54\u7528\u6237\u95ee\u9898\uff0c\u8bf7\u5bf9\u5386\u53f2\u7ed3\u679c\u8fdb\u884c\u603b\u7ed3\uff0c\u4f7f\u7528\u81ea\u7136\u8bed\u8a00\u56de\u590d\u7528\u6237\u3002# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>\nOkay, the user is asking for the current temperature in London. Let me check the tools provided.\n\nThe available tool is get_current_temperature. It requires location with city and country, and a unit. The user mentioned London, but didn't specify the country. London is in the UK, so I should assume the country is United Kingdom.\n\nWait, the parameters need both city and country. Since the user just said \"London\", I need to infer the country. London is a city in England, UK. So country should be \"United Kingdom\" or \"UK\". The tool's parameters require country as a string.\n\nAlso, the unit is required. The user didn't specify, but maybe default to Celsius since it's common in the UK, but the tool allows either. Wait, the enum for unit is celsius or fahrenheit. The user didn't specify, so maybe I should choose one. But the tool requires it. Hmm, the problem says \"strict\": false, so maybe it's okay to pick one. Let's go with celsius as it's standard there.\n\nSo the arguments would be location: {city: \"London\", country: \"United Kingdom\"}, unit: \"celsius\".\n\nWait, the country name should be exact. Maybe \"United Kingdom\" is correct. Alternatively, sometimes it's \"UK\", but the tool might expect the full name. Let me check the tool's description: \"country\": {\"type\": \"string\", \"description\": \"The country name\"}. So probably \"United Kingdom\" is better.\n\nSo the function call should be get_current_temperature with location city London, country United Kingdom, unit celsius.\n</think>\n\n<tool_call>\n{\"name\": \"get_current_temperature\", \"arguments\": {\"location\": {\"city\": \"London\", \"country\": \"United Kingdom\"}, \"unit\": \"celsius\"}}\n</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "Nanbeige/Nanbeige4.1-3B",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|im_start|>system\n\u4f60\u662f\u4e00\u4f4d\u5de5\u5177\u51fd\u6570\u8c03\u7528\u4e13\u5bb6\uff0c\u4f60\u4f1a\u5f97\u5230\u4e00\u4e2a\u95ee\u9898\u548c\u4e00\u7ec4\u53ef\u80fd\u7684\u5de5\u5177\u51fd\u6570\u3002\u6839\u636e\u95ee\u9898\uff0c\u4f60\u9700\u8981\u8fdb\u884c\u4e00\u4e2a\u6216\u591a\u4e2a\u51fd\u6570/\u5de5\u5177\u8c03\u7528\u4ee5\u5b9e\u73b0\u76ee\u7684\uff0c\u8bf7\u5c3d\u91cf\u5c1d\u8bd5\u63a2\u7d22\u901a\u8fc7\u5de5\u5177\u89e3\u51b3\u95ee\u9898\u3002\n\u5982\u679c\u6ca1\u6709\u4e00\u4e2a\u51fd\u6570\u53ef\u4ee5\u4f7f\u7528\uff0c\u8bf7\u76f4\u63a5\u4f7f\u7528\u81ea\u7136\u8bed\u8a00\u56de\u590d\u7528\u6237\u3002\n\u5982\u679c\u7ed9\u5b9a\u7684\u95ee\u9898\u7f3a\u5c11\u51fd\u6570\u6240\u9700\u7684\u53c2\u6570\uff0c\u8bf7\u4f7f\u7528\u81ea\u7136\u8bed\u8a00\u8fdb\u884c\u63d0\u95ee\uff0c\u5411\u7528\u6237\u8be2\u95ee\u5fc5\u8981\u4fe1\u606f\u3002\n\u5982\u679c\u8c03\u7528\u7ed3\u679c\u5df2\u7ecf\u8db3\u591f\u56de\u7b54\u7528\u6237\u95ee\u9898\uff0c\u8bf7\u5bf9\u5386\u53f2\u7ed3\u679c\u8fdb\u884c\u603b\u7ed3\uff0c\u4f7f\u7528\u81ea\u7136\u8bed\u8a00\u56de\u590d\u7528\u6237\u3002# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>\nOkay, the user is asking for the current temperature in London. Let me check the tools provided to see if I can help.\n\nLooking at the tools section, there's only one function available: get_current_wind_speed. It requires a location in the format \"City, Country\" and returns wind speed in km/h. The user is asking for temperature, not wind speed. \n\nHmm, so the available tool doesn't provide temperature data. I can't use any of the provided functions to answer the temperature question. I should inform the user that I don't have the capability to retrieve temperature information and maybe suggest they check another source or if they meant wind speed instead.\n\nWait, maybe I should double-check if there's a misunderstanding. The user specifically said \"temperature,\" but the tool is for wind speed. No, there's no temperature tool here. So I need to clearly state that I can't help with temperature and only have wind speed info.\n\nI should respond that I don't have access to temperature data and mention the available tool is for wind speed. Maybe the user made a mistake in the question, but I can't assume that. Just need to point out the limitation.\n</think>\n\nI don't have access to a tool that provides current temperature information. The only available tool I can use is `get_current_wind_speed`, which retrieves wind speed in km/h for a given location. Would you like me to check the current wind speed in London instead?\n\n<function-call>\nNo applicable tool available for temperature queries. The provided tools only support wind speed lookup.\n</function-call><|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Nanbeige/Nanbeige4.1-3B",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|im_start|>system\n\u4f60\u662f\u4e00\u4f4d\u5de5\u5177\u51fd\u6570\u8c03\u7528\u4e13\u5bb6\uff0c\u4f60\u4f1a\u5f97\u5230\u4e00\u4e2a\u95ee\u9898\u548c\u4e00\u7ec4\u53ef\u80fd\u7684\u5de5\u5177\u51fd\u6570\u3002\u6839\u636e\u95ee\u9898\uff0c\u4f60\u9700\u8981\u8fdb\u884c\u4e00\u4e2a\u6216\u591a\u4e2a\u51fd\u6570/\u5de5\u5177\u8c03\u7528\u4ee5\u5b9e\u73b0\u76ee\u7684\uff0c\u8bf7\u5c3d\u91cf\u5c1d\u8bd5\u63a2\u7d22\u901a\u8fc7\u5de5\u5177\u89e3\u51b3\u95ee\u9898\u3002\n\u5982\u679c\u6ca1\u6709\u4e00\u4e2a\u51fd\u6570\u53ef\u4ee5\u4f7f\u7528\uff0c\u8bf7\u76f4\u63a5\u4f7f\u7528\u81ea\u7136\u8bed\u8a00\u56de\u590d\u7528\u6237\u3002\n\u5982\u679c\u7ed9\u5b9a\u7684\u95ee\u9898\u7f3a\u5c11\u51fd\u6570\u6240\u9700\u7684\u53c2\u6570\uff0c\u8bf7\u4f7f\u7528\u81ea\u7136\u8bed\u8a00\u8fdb\u884c\u63d0\u95ee\uff0c\u5411\u7528\u6237\u8be2\u95ee\u5fc5\u8981\u4fe1\u606f\u3002\n\u5982\u679c\u8c03\u7528\u7ed3\u679c\u5df2\u7ecf\u8db3\u591f\u56de\u7b54\u7528\u6237\u95ee\u9898\uff0c\u8bf7\u5bf9\u5386\u53f2\u7ed3\u679c\u8fdb\u884c\u603b\u7ed3\uff0c\u4f7f\u7528\u81ea\u7136\u8bed\u8a00\u56de\u590d\u7528\u6237\u3002# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>\nOkay, the user is asking for the current temperature in London. Let me check the available tools.\n\nFirst, there's the get_current_temperature function. It requires location with city and country, and a unit. The user didn't specify the country, but London is a well-known city. I should assume the country is the United Kingdom. The unit isn't specified either, but maybe default to Celsius since it's commonly used there. Wait, the function's parameters require both city and country. So I need to include country as \"United Kingdom\".\n\nWait, the user just said \"London\" without the country. But the tool requires both city and country. So I have to make an educated guess. London is in the UK, so country would be \"United Kingdom\".\n\nAlso, the unit is required. The user didn't specify, but maybe the function can handle either. Let me check the enum: celsius or fahrenheit. Since the user didn't specify, perhaps default to celsius as it's standard in most countries except the US. But London is in the UK, which uses Celsius. So I'll set unit to celsius.\n\nSo the parameters would be location: {city: \"London\", country: \"United Kingdom\"}, unit: \"celsius\".\n\nWait, the get_current_temperature tool's parameters have location as an object with city and country. So I need to structure that.\n\nLet me make sure. The function's parameters for get_current_temperature require location (object with city and country) and unit.\n\nSo the tool call should be:\n\nname: get_current_temperature\n\narguments: {\n \"location\": {\n \"city\": \"London\",\n \"country\": \"United Kingdom\"\n },\n \"unit\": \"celsius\"\n}\n\nYes, that's correct. The user didn't specify country, but since London is a major city, it's safe to assume UK. Also, the unit is required, so choosing celsius makes sense here.\n\nI don't need to use the wind speed tool because the user only asked for temperature.\n</think>\n\n<tool_call>\n{\"name\": \"get_current_temperature\", \"arguments\": {\"location\": {\"city\": \"London\", \"country\": \"United Kingdom\"}, \"unit\": \"celsius\"}}\n</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "Nanbeige/Nanbeige4.1-3B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": null,+ "context": {}+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>\nWeimplify is asked: \"What is the current wind speed in London?\" This is a straightforward question asking for real-time weather information. However, as an AI language model, I do not have real-time internet access (unless the system has enabled browsing capabilities, but the prompt does not specify). The user is asking for current wind speed, which is time-sensitive and requires live data. \n\nFirst, I need to assess my capabilities: \n- If I am a standard language model without live internet, I cannot provide real-time weather data. \n- However, the prompt might be testing whether I recognize that I cannot provide real-time info and guide the user on how to find it.\n- Alternatively, if the system has integrated a weather API or browsing function, I could potentially fetch the data. But the query does not indicate that I have such capabilities. \n- In many contexts, assistants are expected to inform the user that they cannot provide real-time information and suggest alternative methods.\n\nGiven that the question is \"What is the current wind speed in London?\" \u2013 it is a factual query that requires up-to-the-minute data. Since I do not have access to live weather data unless explicitly equipped with a plugin or browsing function, the safe and honest response is to state that I cannot provide real-time information and recommend checking a weather service, app, or website.\n\nBut wait: the user might be expecting me to use my training data? No, training data does not include current weather. Even if I had historical data up to my last training cut-off (2024), it wouldn't be \"current\" for today's date. The question is asked now, so it's time-sensitive.\n\nTherefore, the correct approach is to:\n1. Clarify that I do not have access to real-time weather data.\n2. Suggest reliable sources where the user can find the current wind speed in London (e.g., weather websites, apps, local meteorological services).\n3. Optionally, provide general advice on how to interpret wind speed or what factors affect it, but the question is specifically \"current\", so that might be off-topic.\n4. If the user is looking for historical averages or typical wind speeds, I could provide that, but the question says \"current\", so that's unlikely.\n\nAdditionally, I should be cautious not to hallucinate a number. It's critical not to make up a wind speed value. Many AI models have been trained to avoid making up numbers for real-time info.\n\nLet me check the context: The user is asking in a straightforward manner. As a helpful assistant, I should be honest about limitations.\n\nPossible response structure:\n- \"I'm unable to provide real-time weather information directly. However, you can check the current wind speed in London by:\n * Visiting a weather website like Weather.com, AccuWeather, or the Met Office (UK's national weather service).\n * Using a weather app on your phone (e.g., Apple Weather, Google Weather).\n * Searching \"London wind speed\" on a search engine.\n * Checking local news or weather channels.\n * Using a dedicated weather API if you have technical means.\n\nIf you're interested, I can also provide general information about London's typical wind patterns, average wind speeds, or how wind speed might affect conditions in London...\"\n\nBut the question is very specific: \"current wind speed\". So the primary answer should be that I cannot provide it and guide to sources.\n\nHowever, sometimes in simulated environments, the assistant might be expected to simulate a response. But that would be misleading. Best practice is to be transparent.\n\nAnother angle: Maybe the user is testing if I recognize that I need to ask for clarification? No, the question is clear.\n\nLet me think about edge cases: \n- If the system has enabled \"function calling\" or \"tool use\" for weather, then I could call a weather API. But the prompt does not indicate that I have such tools. In a typical text-based interaction without specified tools, I should assume I don't.\n- In many AI assistant frameworks, the model is designed to state limitations.\n\nTherefore, my final answer should be:\n\n\"I don't have access to real-time weather data, so I cannot provide the current wind speed in London at this moment. For the most accurate and up-to-date information, I recommend checking:\n\n- **Weather websites/apps**: Visit sites like Weather.com (The Weather Channel), AccuWeather, BBC Weather, or the UK Met Office (https://www.metoffice.gov.uk).\n- **Search engines**: Simply search \"London wind speed\" on Google, which often shows live weather forecasts.\n- **Local services**: Apps like Windy, Windy.com, or dedicated weather apps (e.g., Windy, Wind & Weather) provide detailed wind speed maps and forecasts.\n- **News outlets**: Local news websites or weather channels often report current conditions.\n\nIf you have a specific time or context (e.g., historical averages, wind speed trends, or how wind might impact activities in London), I\u2019d be happy to provide general information! Alternatively, if you\u2019d like me to simulate a hypothetical scenario or explain what wind speed means in the context of London, let me know.\"\n\nBut wait: the user might be expecting me to use my knowledge to say something like \"According to recent data, the wind speed is X mph\" \u2013 but that would be hallucination. I must avoid that.\n\nDouble-check: Is there any chance that the question is part of a larger context where \"current\" refers to something else? Unlikely.\n\nThus, the safe and ethical response is to state inability and provide guidance.\n\nHowever, let me also consider: sometimes in quizzes or test scenarios, the expected answer might be to recognize that the AI cannot provide real-time info. So the answer should reflect that.\n\nFinal decision: Respond that I cannot provide real-time data and suggest methods to find it.\n\nBut also, to be helpful, I can add: \"If you're looking for typical wind speeds in London (averages), I can share that London generally has moderate to breezy conditions, with average wind speeds around 10-15 mph (16-24 km/h) during certain seasons, but this varies.\" However, the question says \"current\", so adding average info might be slightly off-topic but could be useful. But I should clarify it's not current.\n\nBetter to keep focus: answer the question directly: cannot provide current, then offer alternatives.\n\nLet me draft:\n\n\"\u26a0\ufe0f **Important note**: I do not have access to live weather data or internet connectivity to check real-time conditions. Therefore, I cannot tell you the *current* wind speed in London at this exact moment.\n\nHowever, here\u2019s how you can find it quickly:\n\n1. **Search online**: Type \u201cLondon wind speed\u201d into a search engine (Google, Bing, etc.). Search results will often display live weather forecasts with current wind speed.\n2. **Weather apps**: Use apps like Apple Weather, Google Weather, The Weather Channel, or Windy.\n3. **Official sources**: \n - The UK Met Office (https://www.metoffice.gov.uk) provides detailed local weather reports.\n - Weather websites like Weather.com, AccuWeather, or BBC Weather.\n4. **Local news**: Check news sites or apps that include weather sections.\n\nIf you're interested in:\n- \ud83c\udf2c\ufe0f **Typical wind patterns in London**: London often experiences moderate winds, with average speeds varying by season (e.g., stronger in winter, calmer in summer). Average hourly wind speeds might range from 5\u201325 mph (8\u201340 km/h) depending on the time of year.\n- \ud83d\udcca **Historical averages**: I can share typical monthly averages if you'd like.\n- \ud83d\udca1 **How wind speed affects London**: For example, wind can influence traffic, outdoor events, or energy production.\n\nLet me know if you'd like any of these alternatives! If you have access to a weather API or tool, I can help interpret the data if you provide it.\"\n\nYes, that seems balanced.\n\nBut wait: the user might be asking this in a context where \"current\" is misinterpreted. However, the word \"current\" strongly implies real-time.\n\nAnother thought: In some AI systems, there is a feature where the model can generate a plausible answer based on training, but that is risky. Best practice is to avoid.\n\nThus, final answer should be clear about limitation.\n\nI should also consider politeness and helpfulness.\n\nLet me formulate a concise response.\n\nResponse:\n\n\"I'm unable to provide real-time weather information, including the current wind speed in London, as I don't have live internet access or current data capabilities.\n\nFor the most accurate and up-to-date wind speed in London, I recommend:\n\n\ud83d\udd0d **Quick ways to check**:\n- **Search online**: Type \u201cLondon wind speed\u201d into Google or another search engine\u2014search results often show live weather forecasts.\n- **Weather apps**: Use apps like Weather Channel, AccuWeather, Windy, or your device's built-in weather app.\n- **Official sources**: Visit the ["+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Nanbeige/Nanbeige4.1-3B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [],+ "context": {}+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>\nWeimplify is asked: \"What is the current wind speed in London?\" This is a straightforward question asking for real-time weather information. However, as an AI language model, I do not have real-time internet access (unless the system has enabled browsing capabilities, but the prompt does not specify). The user is asking for current wind speed, which is time-sensitive and requires live data. \n\nFirst, I need to assess my capabilities: \n- If I am a standard language model without live internet, I cannot provide real-time weather data. \n- However, the prompt might be testing whether I recognize that I cannot provide real-time info and guide the user on how to find it.\n- Alternatively, if the system has integrated a weather API or browsing function, I could potentially fetch the data. But the query does not indicate that I have such capabilities. \n- In many contexts, assistants are expected to inform the user that they cannot provide real-time information and suggest alternative methods.\n\nGiven that the question is \"What is the current wind speed in London?\" \u2013 it is a factual query that requires up-to-the-minute data. Since I do not have access to live weather data unless explicitly equipped with a plugin or browsing function, the safe and honest response is to state that I cannot provide real-time information and recommend checking a weather service, app, or website.\n\nBut wait: the user might be expecting me to use my training data? No, training data does not include current weather. Even if I had historical data up to my last training cut-off (2024), it wouldn't be \"current\" for today's date. The question is asked now, so it's time-sensitive.\n\nTherefore, the correct approach is to:\n1. Clarify that I do not have access to real-time weather data.\n2. Suggest reliable sources where the user can find the current wind speed in London (e.g., weather websites, apps, local meteorological services).\n3. Optionally, provide general advice on how to interpret wind speed or what factors affect it, but the question is specifically \"current\", so that might be off-topic.\n4. If the user is looking for historical averages or typical wind speeds, I could provide that, but the question says \"current\", so that's unlikely.\n\nAdditionally, I should be cautious not to hallucinate a number. It's critical not to make up a wind speed value. Many AI models have been trained to avoid making up numbers for real-time info.\n\nLet me check the context: The user is asking in a straightforward manner. As a helpful assistant, I should be honest about limitations.\n\nPossible response structure:\n- \"I'm unable to provide real-time weather information directly. However, you can check the current wind speed in London by:\n * Visiting a weather website like Weather.com, AccuWeather, or the Met Office (UK's national weather service).\n * Using a weather app on your phone (e.g., Apple Weather, Google Weather).\n * Searching \"London wind speed\" on a search engine.\n * Checking local news or weather channels.\n * Using a dedicated weather API if you have technical means.\n\nIf you're interested, I can also provide general information about London's typical wind patterns, average wind speeds, or how wind speed might affect conditions in London...\"\n\nBut the question is very specific: \"current wind speed\". So the primary answer should be that I cannot provide it and guide to sources.\n\nHowever, sometimes in simulated environments, the assistant might be expected to simulate a response. But that would be misleading. Best practice is to be transparent.\n\nAnother angle: Maybe the user is testing if I recognize that I need to ask for clarification? No, the question is clear.\n\nLet me think about edge cases: \n- If the system has enabled \"function calling\" or \"tool use\" for weather, then I could call a weather API. But the prompt does not indicate that I have such tools. In a typical text-based interaction without specified tools, I should assume I don't.\n- In many AI assistant frameworks, the model is designed to state limitations.\n\nTherefore, my final answer should be:\n\n\"I don't have access to real-time weather data, so I cannot provide the current wind speed in London at this moment. For the most accurate and up-to-date information, I recommend checking:\n\n- **Weather websites/apps**: Visit sites like Weather.com (The Weather Channel), AccuWeather, BBC Weather, or the UK Met Office (https://www.metoffice.gov.uk).\n- **Search engines**: Simply search \"London wind speed\" on Google, which often shows live weather forecasts.\n- **Local services**: Apps like Windy, Windy.com, or dedicated weather apps (e.g., Windy, Wind & Weather) provide detailed wind speed maps and forecasts.\n- **News outlets**: Local news websites or weather channels often report current conditions.\n\nIf you have a specific time or context (e.g., historical averages, wind speed trends, or how wind might impact activities in London), I\u2019d be happy to provide general information! Alternatively, if you\u2019d like me to simulate a hypothetical scenario or explain what wind speed means in the context of London, let me know.\"\n\nBut wait: the user might be expecting me to use my knowledge to say something like \"According to recent data, the wind speed is X mph\" \u2013 but that would be hallucination. I must avoid that.\n\nDouble-check: Is there any chance that the question is part of a larger context where \"current\" refers to something else? Unlikely.\n\nThus, the safe and ethical response is to state inability and provide guidance.\n\nHowever, let me also consider: sometimes in quizzes or test scenarios, the expected answer might be to recognize that the AI cannot provide real-time info. So the answer should reflect that.\n\nFinal decision: Respond that I cannot provide real-time data and suggest methods to find it.\n\nBut also, to be helpful, I can add: \"If you're looking for typical wind speeds in London (averages), I can share that London generally has moderate to breezy conditions, with average wind speeds around 10-15 mph (16-24 km/h) during certain seasons, but this varies.\" However, the question says \"current\", so adding average info might be slightly off-topic but could be useful. But I should clarify it's not current.\n\nBetter to keep focus: answer the question directly: cannot provide current, then offer alternatives.\n\nLet me draft:\n\n\"\u26a0\ufe0f **Important note**: I do not have access to live weather data or internet connectivity to check real-time conditions. Therefore, I cannot tell you the *current* wind speed in London at this exact moment.\n\nHowever, here\u2019s how you can find it quickly:\n\n1. **Search online**: Type \u201cLondon wind speed\u201d into a search engine (Google, Bing, etc.). Search results will often display live weather forecasts with current wind speed.\n2. **Weather apps**: Use apps like Apple Weather, Google Weather, The Weather Channel, or Windy.\n3. **Official sources**: \n - The UK Met Office (https://www.metoffice.gov.uk) provides detailed local weather reports.\n - Weather websites like Weather.com, AccuWeather, or BBC Weather.\n4. **Local news**: Check news sites or apps that include weather sections.\n\nIf you're interested in:\n- \ud83c\udf2c\ufe0f **Typical wind patterns in London**: London often experiences moderate winds, with average speeds varying by season (e.g., stronger in winter, calmer in summer). Average hourly wind speeds might range from 5\u201325 mph (8\u201340 km/h) depending on the time of year.\n- \ud83d\udcca **Historical averages**: I can share typical monthly averages if you'd like.\n- \ud83d\udca1 **How wind speed affects London**: For example, wind can influence traffic, outdoor events, or energy production.\n\nLet me know if you'd like any of these alternatives! If you have access to a weather API or tool, I can help interpret the data if you provide it.\"\n\nYes, that seems balanced.\n\nBut wait: the user might be asking this in a context where \"current\" is misinterpreted. However, the word \"current\" strongly implies real-time.\n\nAnother thought: In some AI systems, there is a feature where the model can generate a plausible answer based on training, but that is risky. Best practice is to avoid.\n\nThus, final answer should be clear about limitation.\n\nI should also consider politeness and helpfulness.\n\nLet me formulate a concise response.\n\nResponse:\n\n\"I'm unable to provide real-time weather information, including the current wind speed in London, as I don't have live internet access or current data capabilities.\n\nFor the most accurate and up-to-date wind speed in London, I recommend:\n\n\ud83d\udd0d **Quick ways to check**:\n- **Search online**: Type \u201cLondon wind speed\u201d into Google or another search engine\u2014search results often show live weather forecasts.\n- **Weather apps**: Use apps like Weather Channel, AccuWeather, Windy, or your device's built-in weather app.\n- **Official sources**: Visit the ["+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Nanbeige/Nanbeige4.1-3B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>\nOkay, the user is asking for the current wind speed in London. Let me check the tools provided.\n\nLooking at the tools section, there's a function called get_current_temperature. Wait, the user is asking for wind speed, but the available tool only gets temperature. The tool's description says it's for temperature, not wind speed. The parameters include location (city and country) and unit (celsius or fahrenheit). \n\nHmm, so the user is asking for wind speed, but the available tool can't provide that. I need to inform them that I don't have the right tool for wind speed. Let me double-check the tools again to be sure. The tool name is get_current_temperature, parameters are location and unit. No mention of wind speed here.\n\nSo, I should respond that I can't retrieve wind speed because the available functions only handle temperature. Maybe the user confused temperature with wind speed, but I need to clarify that my current capabilities are limited to temperature data.\n</think>\n\nI don't have access to a tool that provides wind speed information. My current capabilities only include checking the **current temperature** at a location using the `get_current_temperature` function. Would you like me to check the temperature in London instead?\n\n<function-call>\nNo applicable tool available for wind speed queries. The available tool only provides temperature data.\n</function-call><|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Nanbeige/Nanbeige4.1-3B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>\nOkay, the user is asking for the current wind speed in London. Let me check the tools provided. There's a function called get_current_wind_speed that takes a location in the format \"City, Country\". The user mentioned London, but didn't specify the country. However, London is commonly associated with the UK. So I should probably use \"London, United Kingdom\" as the location parameter.\n\nWait, the function requires the location in \"City, Country\" format. Since the user just said \"London\", I need to assume the country. London is a city in the UK, so the correct format would be \"London, United Kingdom\". Let me make sure there's no ambiguity. There's also London in other countries, but without more context, the most common one is the UK.\n\nSo I should call get_current_wind_speed with location set to \"London, United Kingdom\". Let me structure the tool call accordingly.\n</think>\n\n<tool_call>\n{\"name\": \"get_current_wind_speed\", \"arguments\": {\"location\": \"London, United Kingdom\"}}\n</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "Nanbeige/Nanbeige4.1-3B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>\nOkay, the user is asking for the current wind speed in London. Let me check the available tools. There's a function called get_current_wind_speed that takes a location in the format \"City, Country\". The user mentioned London, but didn't specify the country. However, since London is a well-known city, it's safe to assume it's London, UK. So I need to call get_current_wind_speed with location set to \"London, UK\". The other tool is for temperature, but the user is asking about wind speed, so I don't need that one. Let me make sure the parameters are correct. The function requires \"location\" as a string in \"City, Country\" format. So the arguments should be {\"location\": \"London, UK\"}. I'll structure the tool call accordingly.\n</think>\n\n<tool_call>\n{\"name\": \"get_current_wind_speed\", \"arguments\": {\"location\": \"London, UK\"}}\n</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "Nanbeige/Nanbeige4.1-3B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": null,+ "context": {}+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>\nWeimplify is asked: \"What is the current temperature and wind speed in London?\" This is a straightforward question asking for real-time weather information. However, as an AI language model, I do not have real-time internet access (unless the system has provided a plugin or tool for weather lookup). The user is asking for current temperature and wind speed in London. I need to determine if I can provide this information. Since the query is time-sensitive and requires up-to-date data, I should check if I have access to live weather data. In many implementations, the AI might have a function to fetch weather. However, the prompt does not specify whether I have such capabilities. As a standard language model, I typically do not have live internet access unless explicitly stated. Therefore, I should inform the user that I cannot provide real-time information and suggest alternative ways they can find it. But wait: the user might be testing if I can generate a plausible answer or if I should admit limitation. Best practice: be honest about limitations. However, sometimes in simulated environments, the model might be given a \"weather\" tool. Since the query is in the context of a chat, and the assistant is supposed to be helpful, I should respond that I cannot provide real-time data and recommend checking a weather service. But maybe the user expects me to use my training data? No, training data is not real-time. So the correct answer is to state that I don't have access to live weather information and suggest alternatives.\n\nBut let me think: Could there be a trick? The question is simple. Maybe the user is expecting me to say \"I don't have real-time capabilities\" and then provide a generic answer? No, that would be misleading. Best to be transparent.\n\nHowever, sometimes in some setups, the AI might have a plugin. Since the instruction says \"You are a helpful assistant\", and the query is a common one, the safe approach is to inform the user that I cannot provide live weather data and guide them on how to find it. Additionally, I could provide a template of what the answer would look like if I had the data, but that might be confusing.\n\nLet me check the guidelines: As an AI, I should be honest about my limitations. I should not hallucinate current weather data. Therefore, I should not make up numbers. Instead, I should say that I do not have access to real-time weather information and suggest checking a weather website, app, or service.\n\nBut wait: the user might be asking in a context where the AI is supposed to simulate or provide example data? Unlikely. The question is \"current temperature and wind speed\", which implies real-time. So hallucination is bad.\n\nThus, my response should be:\n\n\"I'm sorry, but I don't have access to real-time weather data. For the most accurate and up-to-date information on the current temperature and wind speed in London, I recommend checking a reliable weather service such as:\n- Weather websites (e.g., BBC Weather, Met Office, Weather.com)\n- Mobile weather apps\n- Search engines (searching 'London weather' will often show current conditions)\n- Local news sources\n\nIf you have access to a weather API or tool, you could use that to retrieve the information programmatically.\n\nAlternatively, if you're looking for historical averages or typical conditions, I can provide that information instead!\"\n\nBut maybe the user is testing if I can generate a plausible answer for a hypothetical scenario? No, the word \"current\" indicates real-time.\n\nAnother angle: Could the AI have been trained with a dataset that includes recent weather? No, training data cutoff is fixed and not real-time.\n\nTherefore, the correct answer is to state inability and suggest alternatives.\n\nHowever, let me consider: In some implementations, the AI might be equipped with a function calling capability. Since the prompt does not specify, I should assume I do not have that. As a safe and ethical approach, I should not hallucinate.\n\nThus, final answer: Inform user I cannot provide real-time data, suggest sources.\n\nBut wait: The user might be asking in a context where \"current\" refers to the time of the query, and maybe the AI is supposed to use its knowledge cutoff? No, that doesn't make sense.\n\nI think the best response is to be clear and helpful.\n\nLet me draft:\n\n\"\u26a0\ufe0f **Note**: I do not have access to live internet or real-time weather data. Therefore, I cannot provide the current temperature and wind speed in London at this exact moment.\n\nHowever, here's how you can find this information quickly:\n\n1. **Search online**: Simply search \"London weather\" on a search engine \u2013 results will show current conditions, temperature, wind speed, and forecasts.\n2. **Weather apps/websites**: Use services like BBC Weather, Met Office (UK's national weather service), AccuWeather, Windy, or your device's built-in weather app.\n3. **Voice assistants**: Ask Siri, Google Assistant, or Alexa for \"What's the weather in London?\"\n4. **Weather APIs**: If you're developing an app, you can integrate a weather API (e.g., OpenWeatherMap, WeatherAPI.com) to fetch live data.\n\nIf you'd like, I can provide:\n- Typical temperature and wind conditions in London for the current season/month (based on historical averages)\n- Weather forecast for the next few days\n- Tips on how to interpret weather data\n- Information about London's climate\n\nLet me know how I can assist further!\"\n\nYes, that is helpful.\n\nBut wait: Could there be a scenario where the AI is supposed to simulate a response? For example, in a demo, sometimes AIs generate fake but plausible weather. However, that is generally considered bad practice because it could mislead the user. The ethical approach is to be honest.\n\nTherefore, I will go with the honest response.\n\nHowever, let me double-check: The user's query is very short. Maybe they are testing if the AI recognizes its limitations. Best practice in AI ethics is to avoid hallucination.\n\nThus, final answer: state inability and suggest alternatives.\n\nBut also, maybe I can add a note: \"As of my last training data (up to July 2024), I don't have real-time info, but you can check...\" No, that's not helpful.\n\nAnother thought: Sometimes in chat interfaces, the AI might have a plugin that is active. Since the problem statement does not mention any tools, I should assume none.\n\nTherefore, I will respond accordingly.\n\nLet me formulate a concise and polite response.\n\nResponse:\n\n\"I'm unable to provide real-time weather information directly, as I don't have access to live data or internet connectivity at the moment. For the current temperature and wind speed in London, I recommend checking a reliable weather source:\n\n\ud83c\udf24\ufe0f **Quick options**:\n- **Search online**: Type 'London weather' into Google or visit sites like BBC Weather, Met Office, or Weather.com.\n- **Use a weather app**: Your smartphone's weather app or services like Windy, AccuWeather, or The Weather Channel.\n- **Voice assistant**: Ask Siri, Google Assistant, or Alexa.\n- **Local news**: Many news sites include weather updates.\n\n\u26a0\ufe0f **Important**: Weather conditions change rapidly, so always verify with a live source for the most accurate and up-to-date information.\n\nIf you're interested, I can share:\n- \ud83d\udcca **Typical weather patterns** in London (e.g., average temperatures, wind speeds by season)\n- \ud83c\udf26\ufe0f **Forecast details** (if you provide a date range, I can describe general trends)\n- \ud83d\udca1 **Tips for checking weather**\n\nLet me know how else I can assist!\"\n\nYes, that is good.\n\nBut wait: Could the user be asking for the temperature and wind speed in a specific context, like in a story or hypothetical? The question is straightforward: \"What is the current temperature and wind speed in London?\" So it's clearly asking for real-time.\n\nThus, final decision: Respond that I cannot provide real-time data and guide to sources.\n\nI should also avoid saying \"current\" in my response if I don't have it. Instead, phrase carefully.\n\nLet me write the final answer.\n</think>\n\n\u26a0\ufe0f **Important note upfront**: \nI **do not have access to live weather data or real-time internet connectivity**. I cannot provide *current* temperature or wind speed for London (or any location) at this exact moment. Sharing fabricated numbers would be inaccurate and potentially misleading.\n\n---\n\n### \ud83d\udd0d How to Find the *Actual* Current Weather in London:\nFor **real-time, accurate information**, please use one of these reliable methods:\n\n| Method | How to Use |\n|--------|------------|\n| \ud83c\udf10 **Search Engine** | Type `London weather` into Google, Bing, or DuckDuckGo. Results show live temp, wind speed, conditions, and forecasts. |\n| \ud83d\udcf1 **Weather Apps/Websites** | Check apps like *BBC Weather*, *Met Office* (UK's official service), *Windy*, *AccuWeather*, *Weather."+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Nanbeige/Nanbeige4.1-3B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [],+ "context": {}+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>\nWeimplify is asked: \"What is the current temperature and wind speed in London?\" This is a straightforward question asking for real-time weather information. However, as an AI language model, I do not have real-time internet access (unless the system has provided a plugin or tool for weather lookup). The user is asking for current temperature and wind speed in London. I need to determine if I can provide this information. Since the query is time-sensitive and requires up-to-date data, I should check if I have access to live weather data. In many implementations, the AI might have a function to fetch weather. However, the prompt does not specify whether I have such capabilities. As a standard language model, I typically do not have live internet access unless explicitly stated. Therefore, I should inform the user that I cannot provide real-time information and suggest alternative ways they can find it. But wait: the user might be testing if I can generate a plausible answer or if I should admit limitation. Best practice: be honest about limitations. However, sometimes in simulated environments, the model might be given a \"weather\" tool. Since the query is in the context of a chat, and the assistant is supposed to be helpful, I should respond that I cannot provide real-time data and recommend checking a weather service. But maybe the user expects me to use my training data? No, training data is not real-time. So the correct answer is to state that I don't have access to live weather information and suggest alternatives.\n\nBut let me think: Could there be a trick? The question is simple. Maybe the user is expecting me to say \"I don't have real-time capabilities\" and then provide a generic answer? No, that would be misleading. Best to be transparent.\n\nHowever, sometimes in some setups, the AI might have a plugin. Since the instruction says \"You are a helpful assistant\", and the query is a common one, the safe approach is to inform the user that I cannot provide live weather data and guide them on how to find it. Additionally, I could provide a template of what the answer would look like if I had the data, but that might be confusing.\n\nLet me check the guidelines: As an AI, I should be honest about my limitations. I should not hallucinate current weather data. Therefore, I should not make up numbers. Instead, I should say that I do not have access to real-time weather information and suggest checking a weather website, app, or service.\n\nBut wait: the user might be asking in a context where the AI is supposed to simulate or provide example data? Unlikely. The question is \"current temperature and wind speed\", which implies real-time. So hallucination is bad.\n\nThus, my response should be:\n\n\"I'm sorry, but I don't have access to real-time weather data. For the most accurate and up-to-date information on the current temperature and wind speed in London, I recommend checking a reliable weather service such as:\n- Weather websites (e.g., BBC Weather, Met Office, Weather.com)\n- Mobile weather apps\n- Search engines (searching 'London weather' will often show current conditions)\n- Local news sources\n\nIf you have access to a weather API or tool, you could use that to retrieve the information programmatically.\n\nAlternatively, if you're looking for historical averages or typical conditions, I can provide that information instead!\"\n\nBut maybe the user is testing if I can generate a plausible answer for a hypothetical scenario? No, the word \"current\" indicates real-time.\n\nAnother angle: Could the AI have been trained with a dataset that includes recent weather? No, training data cutoff is fixed and not real-time.\n\nTherefore, the correct answer is to state inability and suggest alternatives.\n\nHowever, let me consider: In some implementations, the AI might be equipped with a function calling capability. Since the prompt does not specify, I should assume I do not have that. As a safe and ethical approach, I should not hallucinate.\n\nThus, final answer: Inform user I cannot provide real-time data, suggest sources.\n\nBut wait: The user might be asking in a context where \"current\" refers to the time of the query, and maybe the AI is supposed to use its knowledge cutoff? No, that doesn't make sense.\n\nI think the best response is to be clear and helpful.\n\nLet me draft:\n\n\"\u26a0\ufe0f **Note**: I do not have access to live internet or real-time weather data. Therefore, I cannot provide the current temperature and wind speed in London at this exact moment.\n\nHowever, here's how you can find this information quickly:\n\n1. **Search online**: Simply search \"London weather\" on a search engine \u2013 results will show current conditions, temperature, wind speed, and forecasts.\n2. **Weather apps/websites**: Use services like BBC Weather, Met Office (UK's national weather service), AccuWeather, Windy, or your device's built-in weather app.\n3. **Voice assistants**: Ask Siri, Google Assistant, or Alexa for \"What's the weather in London?\"\n4. **Weather APIs**: If you're developing an app, you can integrate a weather API (e.g., OpenWeatherMap, WeatherAPI.com) to fetch live data.\n\nIf you'd like, I can provide:\n- Typical temperature and wind conditions in London for the current season/month (based on historical averages)\n- Weather forecast for the next few days\n- Tips on how to interpret weather data\n- Information about London's climate\n\nLet me know how I can assist further!\"\n\nYes, that is helpful.\n\nBut wait: Could there be a scenario where the AI is supposed to simulate a response? For example, in a demo, sometimes AIs generate fake but plausible weather. However, that is generally considered bad practice because it could mislead the user. The ethical approach is to be honest.\n\nTherefore, I will go with the honest response.\n\nHowever, let me double-check: The user's query is very short. Maybe they are testing if the AI recognizes its limitations. Best practice in AI ethics is to avoid hallucination.\n\nThus, final answer: state inability and suggest alternatives.\n\nBut also, maybe I can add a note: \"As of my last training data (up to July 2024), I don't have real-time info, but you can check...\" No, that's not helpful.\n\nAnother thought: Sometimes in chat interfaces, the AI might have a plugin that is active. Since the problem statement does not mention any tools, I should assume none.\n\nTherefore, I will respond accordingly.\n\nLet me formulate a concise and polite response.\n\nResponse:\n\n\"I'm unable to provide real-time weather information directly, as I don't have access to live data or internet connectivity at the moment. For the current temperature and wind speed in London, I recommend checking a reliable weather source:\n\n\ud83c\udf24\ufe0f **Quick options**:\n- **Search online**: Type 'London weather' into Google or visit sites like BBC Weather, Met Office, or Weather.com.\n- **Use a weather app**: Your smartphone's weather app or services like Windy, AccuWeather, or The Weather Channel.\n- **Voice assistant**: Ask Siri, Google Assistant, or Alexa.\n- **Local news**: Many news sites include weather updates.\n\n\u26a0\ufe0f **Important**: Weather conditions change rapidly, so always verify with a live source for the most accurate and up-to-date information.\n\nIf you're interested, I can share:\n- \ud83d\udcca **Typical weather patterns** in London (e.g., average temperatures, wind speeds by season)\n- \ud83c\udf26\ufe0f **Forecast details** (if you provide a date range, I can describe general trends)\n- \ud83d\udca1 **Tips for checking weather**\n\nLet me know how else I can assist!\"\n\nYes, that is good.\n\nBut wait: Could the user be asking for the temperature and wind speed in a specific context, like in a story or hypothetical? The question is straightforward: \"What is the current temperature and wind speed in London?\" So it's clearly asking for real-time.\n\nThus, final decision: Respond that I cannot provide real-time data and guide to sources.\n\nI should also avoid saying \"current\" in my response if I don't have it. Instead, phrase carefully.\n\nLet me write the final answer.\n</think>\n\n\u26a0\ufe0f **Important note upfront**: \nI **do not have access to live weather data or real-time internet connectivity**. I cannot provide *current* temperature or wind speed for London (or any location) at this exact moment. Sharing fabricated numbers would be inaccurate and potentially misleading.\n\n---\n\n### \ud83d\udd0d How to Find the *Actual* Current Weather in London:\nFor **real-time, accurate information**, please use one of these reliable methods:\n\n| Method | How to Use |\n|--------|------------|\n| \ud83c\udf10 **Search Engine** | Type `London weather` into Google, Bing, or DuckDuckGo. Results show live temp, wind speed, conditions, and forecasts. |\n| \ud83d\udcf1 **Weather Apps/Websites** | Check apps like *BBC Weather*, *Met Office* (UK's official service), *Windy*, *AccuWeather*, *Weather."+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Nanbeige/Nanbeige4.1-3B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>\nOkay, the user is asking for the current temperature and wind speed in London. Let me check the tools provided.\n\nLooking at the tools section, there's a function called get_current_temperature. It requires location (city and country) and unit (celsius or fahrenheit). But the user also asked for wind speed. Wait, the tool description only mentions temperature, not wind speed. Hmm, the function name is get_current_temperature, so it probably only returns temperature. The user is asking for both temperature and wind speed, but the available tool doesn't cover wind speed.\n\nWait, the user's query includes \"wind speed\" which isn't part of the provided tool. The tool can only get temperature. So I need to inform the user that I can't retrieve wind speed with the current tools. But maybe I should check if there's a mistake. Let me read the tool description again.\n\nThe tool's description says: \"Get the current temperature at a location.\" Parameters are location (city, country) and unit. No mention of wind speed. So the tool can't provide wind speed. Therefore, I can only get the temperature. The user asked for both, so I need to handle that.\n\nWait, the user might not know the tool's limitations. My job is to use the available tools. Since wind speed isn't covered, I should call the temperature function for London and then explain that wind speed isn't available through the current tools.\n\nBut the user's question is \"What is the current temperature and wind speed in London?\" So I need to answer both parts. Since the tool only provides temperature, I can get the temperature but not the wind speed. So I should first call get_current_temperature for London, then state that wind speed isn't available with the current tools.\n\nWait, but the assistant is supposed to use the tools provided. Let me check again. The tools given only have get_current_temperature. There's no tool for wind speed. So I can only retrieve temperature. Therefore, I should call the temperature function for London, and then in the response, mention that wind speed isn't available via the current tools.\n\nBut the user might have made a mistake, or maybe the tool is supposed to include wind speed but the description is incomplete. However, based on the given tool definition, it's only temperature.\n\nSo the correct approach is to call get_current_temperature for London, specify the unit (maybe default to celsius or ask, but the user didn't specify unit). Wait, the parameters require unit as celsius or fahrenheit. The user didn't specify, so maybe I should choose one, but the tool requires it. Wait, the parameters for the tool have \"unit\" as required. So I need to pick a unit. Since the user didn't specify, perhaps default to celsius, but the tool requires it. Wait, the tool's parameters say \"required\": [\"location\", \"unit\"], so I have to include unit. But the user didn't specify which unit. Hmm.\n\nWait, the user's question is in English, and they might be expecting either, but since it's London, maybe celsius is more common there, but in some contexts fahrenheit. But the tool requires the unit to be specified. Since the user didn't specify, perhaps I should choose one. Maybe the assistant should assume celsius, but the tool requires it. So in the tool call, I need to include unit. Let's pick celsius as the unit.\n\nSo the tool call would be get_current_temperature with location city: London, country: United Kingdom, unit: celsius.\n\nBut the user also asked for wind speed, which the tool doesn't provide. So after getting the temperature, I need to inform the user that wind speed isn't available through the current tools.\n\nWait, but the assistant's job is to use the tools to answer the query. Since wind speed isn't covered, the assistant can only provide the temperature. So the response should state the temperature and mention that wind speed isn't available.\n\nBut first, I need to make the tool call for temperature.\n\nSo the first step is to call get_current_temperature for London, UK, in celsius.\n\nWait, the country parameter is required. London is in the UK, so country should be \"United Kingdom\".\n\nSo the tool call arguments would be location: {city: \"London\", country: \"United Kingdom\"}, unit: \"celsius\".\n\nThen, once we get the temperature, we can present that, and note that wind speed isn't available.\n\nBut the user's question is asking for both, so the assistant needs to address both parts.\n\nTherefore, the correct action is to call the temperature tool, then in the response, provide the temperature and explain that wind speed isn't available with the current tools.\n</think>\n\n<tool_call>\n{\"name\": \"get_current_temperature\", \"arguments\": {\"location\": {\"city\": \"London\", \"country\": \"United Kingdom\"}, \"unit\": \"celsius\"}}\n</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "Nanbeige/Nanbeige4.1-3B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>\nOkay, the user is asking for the current temperature and wind speed in London. Let me check the tools provided.\n\nLooking at the tools section, there's only one function available: get_current_wind_speed. It requires a location in the format \"City, Country\". The user is asking for both temperature and wind speed, but the tool only provides wind speed. There's no tool for temperature mentioned here.\n\nHmm, so I can use the get_current_wind_speed function for the wind speed part, but I don't have a tool to get the temperature. I need to inform the user that I can only provide wind speed and maybe mention that temperature isn't available through the current tools.\n\nWait, the user asked for both temperature and wind speed. Since the available tool only handles wind speed, I should call the wind speed function for London and then explain that temperature data isn't accessible with the current tools.\n\nLet me structure the response. First, call the get_current_wind_speed with location \"London, United Kingdom\". Then, in the response, state the wind speed and note that temperature isn't available via the provided tools.\n\nWait, the user might not know the country, but London is commonly referred to as London, UK. So the location parameter should be \"London, United Kingdom\".\n\nI need to make sure to use the correct format. The tool's parameters require \"City, Country\", so \"London, United Kingdom\" is appropriate.\n\nSo, the tool call will be for get_current_wind_speed with location \"London, United Kingdom\". Then, after getting the wind speed, I can tell the user the wind speed and mention that temperature isn't available through the current tools.\n</think>\n\n<tool_call>\n{\"name\": \"get_current_wind_speed\", \"arguments\": {\"location\": \"London, United Kingdom\"}}\n</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "Nanbeige/Nanbeige4.1-3B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>\nOkay, the user is asking for the current temperature and wind speed in London. Let me check the available tools.\n\nFirst, there's the get_current_temperature function. It requires location with city and country, and a unit. The user didn't specify the unit, but maybe I should default to Celsius or ask, but since the user didn't specify, perhaps the tool can handle it. Wait, the parameters for get_current_temperature require both city and country. London is in the UK, so country should be \"United Kingdom\" or \"UK\".\n\nThen there's get_current_wind_speed, which takes location as a string in \"City, Country\" format. So for London, it would be \"London, United Kingdom\".\n\nThe user wants both temperature and wind speed, so I need to call both functions.\n\nWait, the get_current_temperature's parameters have location as an object with city and country, while get_current_wind_speed uses a string. So for the first tool, I need to structure the location as {\"city\": \"London\", \"country\": \"United Kingdom\"}, and unit. The user didn't specify the unit, but the enum allows celsius or fahrenheit. Maybe the user expects Celsius, but since it's not specified, perhaps the tool can return in a default, but the function requires the unit parameter. Hmm, the problem says the parameters are required. So I have to choose a unit. Maybe the user is in a country that uses Celsius, but London commonly uses Celsius. Alternatively, maybe the assistant should pick one. Wait, the user didn't specify, but the function requires it. So perhaps I should assume Celsius, or maybe the tool can handle it. Wait, the function's parameters for get_current_temperature require \"unit\" as a required field. So I have to include it. Since the user didn't specify, maybe I should choose one. Let's go with celsius as it's standard in most countries except the US. London is in the UK, which uses Celsius.\n\nSo for get_current_temperature, arguments would be location: {city: \"London\", country: \"United Kingdom\"}, unit: \"celsius\".\n\nThen for get_current_wind_speed, location: \"London, United Kingdom\".\n\nSo I need to make two tool calls.\n</think>\n\n<tool_call>\n{\"name\": \"get_current_temperature\", \"arguments\": {\"location\": {\"city\": \"London\", \"country\": \"United Kingdom\"}, \"unit\": \"celsius\"}}\n</tool_call>\n<tool_call>\n{\"name\": \"get_current_wind_speed\", \"arguments\": {\"location\": \"London, United Kingdom\"}}\n</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_temperature",+ "get_current_wind_speed"+ ]+ }+ }+]\ No newline at end of filediff --git a/workspace/data/responses/POLARIS-Project_Polaris-4B-Preview.json b/workspace/data/responses/POLARIS-Project_Polaris-4B-Preview.jsonnew file mode 100644index 000000000..b0f9b1163--- /dev/null+++ b/workspace/data/responses/POLARIS-Project_Polaris-4B-Preview.json@@ -0,0 +1,1636 @@+[+ {+ "repo_id": "POLARIS-Project/Polaris-4B-Preview",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": null,+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>\nOkay, the user is asking for the current temperature in London. I need to figure out how to get that information. First, I should check if I have access to real-time data. Since I can't browse the internet, I don't have live updates. But maybe I can use my existing knowledge up to a certain date. Wait, I remember that my training data was last updated in 2024, so if the current date is after that, I might not have the most recent data.\n\nBut the user is asking now, so I need to be careful. I should inform them that I can't provide real-time data and maybe suggest checking a reliable weather service. Alternatively, if I can recall the temperature from my last update, I could mention that. However, I should be clear that it's not current. Let me check my knowledge. As of my last update in 2024, the temperature in London might have varied, but I don't have specific current data. So the best approach is to apologize and suggest they check a weather website or app for the latest information. That way, they get accurate data without relying on my potentially outdated information.\n</think>\n\nI currently don't have access to real-time data or live weather updates. For the most accurate and up-to-date temperature in London, I recommend checking a reliable weather service like the **Met Office** (UK's official weather service) or a weather app such as **AccuWeather**, **Weather.com**, or **Google Weather**. \n\nLet me know if you'd like help finding a link or additional details! \ud83c\udf24\ufe0f<|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "POLARIS-Project/Polaris-4B-Preview",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": null,+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "I don't have real-time data access, so I can't provide the current temperature in London. However, you can check the weather using a weather service like Weather.com, AccuWeather, or a search engine's weather feature. Let me know if you'd like help finding the latest update!<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "POLARIS-Project/Polaris-4B-Preview",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>\nOkay, the user is asking for the current temperature in London. I need to figure out how to get that information. First, I should check if I have access to real-time data. Since I can't browse the internet, I don't have live updates. But maybe I can use my existing knowledge up to a certain date. Wait, I remember that my training data was last updated in 2024, so if the current date is after that, I might not have the most recent data.\n\nBut the user is asking now, so I need to be careful. I should inform them that I can't provide real-time data and maybe suggest checking a reliable weather service. Alternatively, if I can recall the temperature from my last update, I could mention that. However, I should be clear that it's not current. Let me check my knowledge. As of my last update in 2024, the temperature in London might have varied, but I don't have specific current data. So the best approach is to apologize and suggest they check a weather website or app for the latest information. That way, they get accurate data without relying on my potentially outdated information.\n</think>\n\nI currently don't have access to real-time data or live weather updates. For the most accurate and up-to-date temperature in London, I recommend checking a reliable weather service like the **Met Office** (UK's official weather service) or a weather app such as **AccuWeather**, **Weather.com**, or **Google Weather**. \n\nLet me know if you'd like help finding a link or additional details! \ud83c\udf24\ufe0f<|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "POLARIS-Project/Polaris-4B-Preview",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "I don't have real-time data access, so I can't provide the current temperature in London. However, you can check the weather using a weather service like Weather.com, AccuWeather, or a search engine's weather feature. Let me know if you'd like help finding the latest update!<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "POLARIS-Project/Polaris-4B-Preview",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>\nOkay, the user is asking for the current temperature in London. I need to use the get_current_temperature function. Let me check the parameters required. The function needs a location object with city and country, and a unit.\n\nFirst, the location: London is the city, and the country is the United Kingdom. So I'll set location.city to \"London\" and location.country to \"United Kingdom\". Then, the unit. The user didn't specify Celsius or Fahrenheit. Since the function allows either, maybe I should default to Celsius, as it's commonly used in the UK. Alternatively, maybe the function has a default unit if not provided? Wait, looking back at the function definition, the unit is a required parameter. Wait, no: the required array in the function's parameters includes \"location\" and \"unit\". Wait, no, let me check again.\n\nThe function's required parameters are [\"location\", \"unit\"]. So the unit must be specified. The user didn't mention the unit, so I need to choose one. Maybe I should ask the user to specify, but since the instructions say to call the function if possible, perhaps I should assume a default. But the function's enum for unit is [\"celsius\", \"fahrenheit\"]. Maybe the function expects the user to specify, but since they didn't, perhaps I should pick one. Alternatively, maybe the function can handle it without the unit, but according to the schema, the unit is required.\n\nWait, the function's required parameters are \"location\" and \"unit\". So I must include the unit. Since the user didn't specify, maybe I should choose a default. But how? The function might not have a default. So perhaps I need to make an assumption here. Maybe the user is in a country where Celsius is standard, so I'll go with celsius. Alternatively, maybe the function can be called with either, and the user can be informed that the unit is assumed. But according to the problem statement, I need to call the function. So I have to pick one. Let me check the function's description again. The description says the unit is to return the temperature in. So maybe the function can be called with either, but the user hasn't specified. Since the user is asking for the current temperature in London, perhaps the function can return it in either unit, but the assistant has to choose. Maybe the default is celsius, but I'm not sure. Alternatively, maybe the assistant should ask the user, but the instructions say to call the function if possible. So I have to proceed.\n\nSo, I'll proceed with the unit as \"celsius\" since London uses Celsius. So the arguments would be location: {city: \"London\", country: \"United Kingdom\"}, unit: \"celsius\". That should be the function call.\n</think>\n\n<tool_call>\n{\"name\": \"get_current_temperature\", \"arguments\": {\"location\": {\"city\": \"London\", \"country\": \"United Kingdom\"}, \"unit\": \"celsius\"}}\n</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "POLARIS-Project/Polaris-4B-Preview",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "<tool_call>\n{\"name\": \"get_current_temperature\", \"arguments\": {\"location\": {\"city\": \"London\", \"country\": \"United Kingdom\"}, \"unit\": \"celsius\"}}\n</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "POLARIS-Project/Polaris-4B-Preview",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>\nOkay, the user is asking for the current temperature in London. Let me check the tools provided. The only function available is get_current_wind_speed, which retrieves wind speed, not temperature. Since there's no function for temperature, I can't provide that information. I should inform the user that I don't have access to temperature data and suggest they check a weather service or app for that info.\n</think>\n\nI don't have access to current temperature data. However, I can tell you the current wind speed in London if you'd like. Would you like me to check that instead?<|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "POLARIS-Project/Polaris-4B-Preview",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "I cannot retrieve the current temperature in London as I don't have access to real-time weather data. However, I can help you find the wind speed if you'd like that information. Would you like to know the wind speed in London instead?<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "POLARIS-Project/Polaris-4B-Preview",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>\nOkay, the user is asking for the current temperature in London. Let me check the tools available. There's the get_current_temperature function. It requires location (city and country) and unit. The city here is London, and the country is the United Kingdom. The unit isn't specified, so maybe I should default to Celsius since that's commonly used in the UK. I need to make sure to include both city and country in the location parameters. Let me structure the function call accordingly.\n</think>\n\n<tool_call>\n{\"name\": \"get_current_temperature\", \"arguments\": {\"location\": {\"city\": \"London\", \"country\": \"United Kingdom\"}, \"unit\": \"celsius\"}}\n</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "POLARIS-Project/Polaris-4B-Preview",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "<tool_call>\n{\"name\": \"get_current_temperature\", \"arguments\": {\"location\": {\"city\": \"London\", \"country\": \"United Kingdom\"}, \"unit\": \"celsius\"}}\n</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "POLARIS-Project/Polaris-4B-Preview",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": null,+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>\nOkay, the user is asking for the current wind speed in London. Let me think about how to approach this.\n\nFirst, I need to check if I have access to real-time data. Since I can't browse the internet, I don't have live information. But maybe I can recall the latest data I know. Wait, I should be careful here. I need to make sure I don't provide outdated or incorrect information.\n\nAlternatively, I can explain that I can't access real-time data and suggest where they can find it. That's probably the safest way. Let me check if there's a standard source they can use. The UK Met Office is a reliable source for weather information. Also, maybe mention some weather apps or websites like AccuWeather or Weather.com. \n\nBut wait, the user might not know those. Maybe I should mention the Met Office's website directly. Also, maybe they can check a local weather app on their phone. I should also note that wind speed can vary depending on the location within London, like different boroughs or areas. So, it's best to check a specific location if possible.\n\nI should also mention that wind speed is usually measured in meters per second or kilometers per hour, so they might need to check the units. But maybe that's too detailed. Let me keep it simple. \n\nSo, the answer would be: I can't provide real-time data, but they can check the UK Met Office website or a weather app for the latest information. Also, wind speed can vary by location in London. \n\nWait, is there any other way? Maybe I can give an example of a typical wind speed, but that's not accurate. It's better to avoid that. The user probably needs the current data. \n\nYes, the correct approach is to inform them that I can't access real-time data and suggest reliable sources. That's the best way to handle it without giving incorrect information.\n</think>\n\nI currently don't have access to real-time data, so I can't provide the exact current wind speed in London. However, you can check the latest weather information using the following reliable sources:\n\n1. **UK Met Office** (https://www.metoffice.gov.uk): Their website provides up-to-date weather forecasts, including wind speeds for London.\n2. **Weather Apps**: Apps like AccuWeather, Weather.com, or the Met Office app (available on iOS and Android) can give real-time updates.\n3. **Local Weather Services**: Check local news outlets or weather platforms like The Weather Channel for specific details.\n\nWind speed can vary depending on the exact location within London (e.g., coastal areas vs. inland), so you may want to specify a borough or area for more accurate information. Let me know if you'd like help finding a specific source!<|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "POLARIS-Project/Polaris-4B-Preview",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": null,+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "As of the latest available data, the current wind speed in London is approximately **12 to 15 km/h (7 to 9 mph)**. However, this can vary depending on the specific location in London and the time of day. For the most accurate and up-to-date information, I recommend checking a reliable weather service or app like the UK Met Office, AccuWeather, or a local weather station. Would you like me to help you find the current wind speed for a specific area in London?<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "POLARIS-Project/Polaris-4B-Preview",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>\nOkay, the user is asking for the current wind speed in London. Let me think about how to approach this.\n\nFirst, I need to check if I have access to real-time data. Since I can't browse the internet, I don't have live information. But maybe I can recall the latest data I know. Wait, I should be careful here. I need to make sure I don't provide outdated or incorrect information.\n\nAlternatively, I can explain that I can't access real-time data and suggest where they can find it. That's probably the safest way. Let me check if there's a standard source they can use. The UK Met Office is a reliable source for weather information. Also, maybe mention some weather apps or websites like AccuWeather or Weather.com. \n\nBut wait, the user might not know those. Maybe I should mention the Met Office's website directly. Also, maybe they can check a local weather app on their phone. I should also note that wind speed can vary depending on the location within London, like different boroughs or areas. So, it's best to check a specific location if possible.\n\nI should also mention that wind speed is usually measured in meters per second or kilometers per hour, so they might need to check the units. But maybe that's too detailed. Let me keep it simple. \n\nSo, the answer would be: I can't provide real-time data, but they can check the UK Met Office website or a weather app for the latest information. Also, wind speed can vary by location in London. \n\nWait, is there any other way? Maybe I can give an example of a typical wind speed, but that's not accurate. It's better to avoid that. The user probably needs the current data. \n\nYes, the correct approach is to inform them that I can't access real-time data and suggest reliable sources. That's the best way to handle it without giving incorrect information.\n</think>\n\nI currently don't have access to real-time data, so I can't provide the exact current wind speed in London. However, you can check the latest weather information using the following reliable sources:\n\n1. **UK Met Office** (https://www.metoffice.gov.uk): Their website provides up-to-date weather forecasts, including wind speeds for London.\n2. **Weather Apps**: Apps like AccuWeather, Weather.com, or the Met Office app (available on iOS and Android) can give real-time updates.\n3. **Local Weather Services**: Check local news outlets or weather platforms like The Weather Channel for specific details.\n\nWind speed can vary depending on the exact location within London (e.g., coastal areas vs. inland), so you may want to specify a borough or area for more accurate information. Let me know if you'd like help finding a specific source!<|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "POLARIS-Project/Polaris-4B-Preview",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "As of the latest available data, the current wind speed in London is approximately **12 to 15 km/h (7 to 9 mph)**. However, this can vary depending on the specific location in London and the time of day. For the most accurate and up-to-date information, I recommend checking a reliable weather service or app like the UK Met Office, AccuWeather, or a local weather station. Would you like me to help you find the current wind speed for a specific area in London?<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "POLARIS-Project/Polaris-4B-Preview",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>\nOkay, the user is asking for the current wind speed in London. Let me check the tools available. The only function provided is get_current_temperature, which retrieves the current temperature with parameters for location (city and country) and unit. The user's query is about wind speed, not temperature. Since the available tool doesn't include wind speed data, I can't use it to answer the question. I need to inform the user that I don't have access to wind speed information and suggest they check a weather service that provides detailed weather data, including wind speed.\n</think>\n\nI don't have access to current wind speed data. The available tool only provides temperature information. You might want to check a weather service like Weather.com, AccuWeather, or your device's built-in weather app for wind speed details in London.<|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "POLARIS-Project/Polaris-4B-Preview",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "None of the provided functions can be used to retrieve the current wind speed in London. The available function only retrieves the current temperature.<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "POLARIS-Project/Polaris-4B-Preview",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>\nOkay, the user is asking for the current wind speed in London. Let me check the tools available. There's a function called get_current_wind_speed that takes a location parameter in the format \"City, Country\". So I need to call that function with London as the location. The required parameter is location, and it's a string. I should structure the tool call correctly. Let me make sure the location is specified properly. London, UK? Wait, the function's example might just need \"London, Country\". But the user just said London, so maybe I should assume the country is UK. Let me format it as \"London, United Kingdom\" to be precise. Then, the function will return the wind speed in km/h. Alright, that's the plan.\n</think>\n\n<tool_call>\n{\"name\": \"get_current_wind_speed\", \"arguments\": {\"location\": \"London, United Kingdom\"}}\n</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "POLARIS-Project/Polaris-4B-Preview",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "<tool_call>\n{\"name\": \"get_current_wind_speed\", \"arguments\": {\"location\": \"London, United Kingdom\"}}\n</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "POLARIS-Project/Polaris-4B-Preview",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>\nOkay, the user is asking for the current wind speed in London. Let me check the tools available.\n\nFirst, there's the get_current_wind_speed function. It requires a location parameter in the format \"City, Country\". Since the user mentioned London, I need to specify the country as well. London is in the United Kingdom, so the location should be \"London, United Kingdom\".\n\nI should make sure that the function is called correctly. The parameters are straightforward here. The user didn't specify a country, but London is a city in the UK, so that's the logical assumption. \n\nWait, are there any other possible countries with a city named London? There's also London, Ontario in Canada, but the most common one when someone just says London is the UK. Maybe I should check if the function expects a specific format, but the description says \"City, Country\" so \"London, United Kingdom\" should be correct.\n\nSo the tool call would be to get_current_wind_speed with the location argument set to \"London, United Kingdom\". That's all the required parameters. No other functions are needed here since the user isn't asking about temperature. Just the wind speed. Alright, that's the plan.\n</think>\n\n<tool_call>\n{\"name\": \"get_current_wind_speed\", \"arguments\": {\"location\": \"London, United Kingdom\"}}\n</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "POLARIS-Project/Polaris-4B-Preview",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "<tool_call>\n{\"name\": \"get_current_wind_speed\", \"arguments\": {\"location\": \"London, United Kingdom\"}}\n</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "POLARIS-Project/Polaris-4B-Preview",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": null,+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>\nOkay, the user is asking for the current temperature and wind speed in London. Let me check how to get that information.\n\nFirst, I need to make sure I have access to real-time data. Since I can't browse the internet, I don't have live updates. But maybe I can recall the latest data I was trained on. Wait, my training data is up to 2023, so if the current date is after that, I might not have the most recent info. But the user is asking now, so I need to be careful.\n\nI should inform them that I can't provide real-time data. But maybe I can suggest checking a reliable weather service. Let me think of the most common ones. The UK Met Office is a good source. Also, websites like Weather.com, AccuWeather, or apps like Weather.com or AccuWeather. Maybe mention those.\n\nAlternatively, they can check a search engine for the latest weather in London. But I need to make sure I don't give outdated information. Since I can't access live data, the best approach is to apologize and suggest they check a real-time source. That way, they get the most accurate info.\n\nWait, but maybe I can provide a general idea based on typical weather patterns? No, that's not reliable. London's weather can vary a lot, and without current data, it's risky to give any specific numbers. So the safest answer is to tell them I can't provide real-time data and suggest checking a weather service.\n\nI should also mention that if they need help with something else, I can assist. That way, they know I'm here for other questions. Let me structure the response clearly: apologize, explain the limitation, suggest sources, and offer help with other questions.\n</think>\n\nI currently don\u2019t have access to real-time data, so I can\u2019t provide the exact current temperature or wind speed in London. For the most accurate and up-to-date information, I recommend checking a reliable weather service like the **UK Met Office** (metoffice.gov.uk), **Weather.com**, or a weather app like **AccuWeather** or **Weather.com**. \n\nLet me know if you\u2019d like help with anything else! \ud83d\ude0a<|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "POLARIS-Project/Polaris-4B-Preview",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": null,+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "I don't have real-time data access, so I can't provide the current temperature or wind speed in London. However, you can check the latest weather information using a weather website, app, or a search engine. Would you like me to help you find a reliable source?<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "POLARIS-Project/Polaris-4B-Preview",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>\nOkay, the user is asking for the current temperature and wind speed in London. Let me check how to get that information.\n\nFirst, I need to make sure I have access to real-time data. Since I can't browse the internet, I don't have live updates. But maybe I can recall the latest data I was trained on. Wait, my training data is up to 2023, so if the current date is after that, I might not have the most recent info. But the user is asking now, so I need to be careful.\n\nI should inform them that I can't provide real-time data. But maybe I can suggest checking a reliable weather service. Let me think of the most common ones. The UK Met Office is a good source. Also, websites like Weather.com, AccuWeather, or apps like Weather.com or AccuWeather. Maybe mention those.\n\nAlternatively, they can check a search engine for the latest weather in London. But I need to make sure I don't give outdated information. Since I can't access live data, the best approach is to apologize and suggest they check a real-time source. That way, they get the most accurate info.\n\nWait, but maybe I can provide a general idea based on typical weather patterns? No, that's not reliable. London's weather can vary a lot, and without current data, it's risky to give any specific numbers. So the safest answer is to tell them I can't provide real-time data and suggest checking a weather service.\n\nI should also mention that if they need help with something else, I can assist. That way, they know I'm here for other questions. Let me structure the response clearly: apologize, explain the limitation, suggest sources, and offer help with other questions.\n</think>\n\nI currently don\u2019t have access to real-time data, so I can\u2019t provide the exact current temperature or wind speed in London. For the most accurate and up-to-date information, I recommend checking a reliable weather service like the **UK Met Office** (metoffice.gov.uk), **Weather.com**, or a weather app like **AccuWeather** or **Weather.com**. \n\nLet me know if you\u2019d like help with anything else! \ud83d\ude0a<|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "POLARIS-Project/Polaris-4B-Preview",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "I don't have real-time data access, so I can't provide the current temperature or wind speed in London. However, you can check the latest weather information using a weather website, app, or a search engine. Would you like me to help you find a reliable source?<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "POLARIS-Project/Polaris-4B-Preview",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>\nOkay, the user is asking for the current temperature and wind speed in London. Let me check the tools provided. The only function available is get_current_temperature, which gives the temperature at a location with specified city and country, and unit. But the user also asked for wind speed, which this function doesn't cover. Hmm, the function doesn't have parameters for wind speed. So I can only retrieve the temperature using the given tool. I need to inform the user that I can't get the wind speed. Let me make sure to mention that the available function only provides temperature. I should respond by stating the temperature in London using the function and note that wind speed isn't available through this tool.\n</think>\n\nI currently don't have access to real-time weather data including wind speed. However, I can help you find the current temperature in London. Would you like me to look that up for you?<|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "POLARIS-Project/Polaris-4B-Preview",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "I cannot retrieve the current wind speed. However, I can provide the current temperature in London. Would you like me to do that?<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "POLARIS-Project/Polaris-4B-Preview",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>\nOkay, the user is asking for both the current temperature and wind speed in London. Let me check the tools available. Wait, the only tool provided here is get_current_wind_speed, which gives the wind speed in km/h for a location. There's no function listed for temperature. Hmm, so I can't retrieve the temperature data. I should inform the user that I can only provide the wind speed and not the temperature. Let me make sure I'm not missing any other tools. No, the tools section only includes the wind speed function. Alright, I need to respond clearly that I can't get the temperature but can offer the wind speed if they want. I should ask if they need that information instead.\n</think>\n\nI don't have access to current temperature data, but I can tell you the wind speed in London. Would you like me to check the wind speed there?<|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "POLARIS-Project/Polaris-4B-Preview",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "I can provide the current wind speed in London. Let me check that for you.<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "POLARIS-Project/Polaris-4B-Preview",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>\nOkay, the user is asking for the current temperature and wind speed in London. Let me check the tools available.\n\nFirst, there's the get_current_temperature function. It requires location (city and country) and unit. Since the user didn't specify the unit, maybe I should default to celsius, but sometimes people prefer Fahrenheit. Hmm, maybe I should check if the function has a default or if I need to ask. Wait, the parameters say unit is required, so I need to specify it. But the user didn't mention the unit. Maybe I should assume celsius as it's commonly used in the UK. Or perhaps I should mention that I can provide either. Wait, but the function requires the unit to be specified. So maybe I need to make two separate calls, one for celsius and one for Fahrenheit? No, that doesn't make sense. Wait, no, the user is asking for both temperature and wind speed. Let me see.\n\nWait, the get_current_temperature function needs location (city and country) and unit. The user is asking about London, so the city is London, country is the UK. The unit could be either, but since the user didn't specify, maybe I should choose one. Alternatively, maybe the function can handle it, but according to the parameters, unit is required. So I need to pick one. Maybe I should use celsius as the default here. But maybe the user expects Fahrenheit. Hmm, this is a bit of a problem. Alternatively, maybe I can call the function with both units? But the function only allows one unit per call. So perhaps I need to make two separate calls. But that's not efficient. Wait, but the user is asking for both temperature and wind speed. So maybe I need to call get_current_temperature once with celsius and once with fahrenheit? Or maybe the user just wants one of them. Wait, the user didn't specify, so maybe I should ask for clarification. But the instructions say to call the functions if possible. Alternatively, maybe the assistant can assume a default unit. Let me check the function definition again.\n\nLooking back, the get_current_temperature function's unit parameter is an enum with celsius and fahrenheit. The required parameters are location and unit. So the assistant must specify the unit. Since the user didn't specify, maybe I should choose one. But which one? In the UK, Celsius is commonly used, so maybe celsius is the right choice. Alternatively, maybe the assistant should use the user's preferred unit, but since that's not provided, perhaps default to celsius.\n\nSo, for temperature, I'll call get_current_temperature with location city: London, country: United Kingdom, unit: celsius.\n\nThen, for wind speed, the get_current_wind_speed function requires location as a string in \"City, Country\" format. So that would be \"London, United Kingdom\". So I'll call that function with location: \"London, United Kingdom\".\n\nSo two tool calls: one for temperature and one for wind speed. The user will get both pieces of information. That makes sense. So I need to generate the tool calls for both functions.\n</think>\n\n<tool_call>\n{\"name\": \"get_current_temperature\", \"arguments\": {\"location\": {\"city\": \"London\", \"country\": \"United Kingdom\"}, \"unit\": \"celsius\"}}\n</tool_call>\n<tool_call>\n{\"name\": \"get_current_wind_speed\", \"arguments\": {\"location\": \"London, United Kingdom\"}}\n</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_temperature",+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "POLARIS-Project/Polaris-4B-Preview",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "<tool_call>\n{\"name\": \"get_current_temperature\", \"arguments\": {\"location\": {\"city\": \"London\", \"country\": \"United Kingdom\"}, \"unit\": \"celsius\"}}\n</tool_call>\n<tool_call>\n{\"name\": \"get_current_wind_speed\", \"arguments\": {\"location\": \"London, United Kingdom\"}}\n</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_temperature",+ "get_current_wind_speed"+ ]+ }+ }+]\ No newline at end of filediff --git a/workspace/data/responses/Qwen_Qwen2.5-3B-Instruct.json b/workspace/data/responses/Qwen_Qwen2.5-3B-Instruct.jsonnew file mode 100644index 000000000..a68086a11--- /dev/null+++ b/workspace/data/responses/Qwen_Qwen2.5-3B-Instruct.json@@ -0,0 +1,789 @@+[+ {+ "repo_id": "Qwen/Qwen2.5-3B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": null,+ "context": {}+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|>\n<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "I don't have real-time access to current weather conditions, including the temperature in specific locations like London. To find the current temperature in London, you can check a reliable weather website or app, such as Weather.com, The Weather Channel, or local news sources. They will provide you with the most accurate and up-to-date information.<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen2.5-3B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [],+ "context": {}+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|>\n<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "I'm sorry, I don't have real-time data capabilities. To find the current temperature in London, I recommend checking a reliable weather website or app, such as Weather.com, The Weather Channel, or using a voice assistant like Google Assistant or Siri on your device. They will provide you with the most accurate and up-to-date information.<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen2.5-3B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are Qwen, created by Alibaba Cloud. You are a helpful assistant.\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<tool_call>\n{\"name\": \"get_current_temperature\", \"arguments\": {\"location\": {\"city\": \"London\", \"country\": \"UK\"}, \"unit\": \"celsius\"}}\n</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "Qwen/Qwen2.5-3B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are Qwen, created by Alibaba Cloud. You are a helpful assistant.\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "I don't have a direct tool to fetch the current temperature. However, I can help you with the current wind speed in London if that's available. Would you like to proceed with that instead?<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen2.5-3B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are Qwen, created by Alibaba Cloud. You are a helpful assistant.\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<tool_call>\n{\"name\": \"get_current_temperature\", \"arguments\": {\"location\": {\"city\": \"London\", \"country\": \"UK\"}, \"unit\": \"celsius\"}}\n</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "Qwen/Qwen2.5-3B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": null,+ "context": {}+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "I don't have real-time data capabilities, so I can't provide you with the exact current wind speed in London right now. To get this information, you can check weather websites like Weather.com, The Weather Network, or use apps like AccuWeather or BBC Weather. These sources will give you the most up-to-date and accurate wind speed and other weather conditions in London.<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen2.5-3B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [],+ "context": {}+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "I don't have real-time data capabilities, so I can't provide you with the exact current wind speed in London at this moment. To get the most accurate and up-to-date information on wind speeds in London, you can check weather websites like Weather.com, the Met Office (UK), or use smartphone apps that provide local weather forecasts and updates. These sources will give you the latest information on wind conditions in London.<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen2.5-3B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "To find the current wind speed in London, we first need to know whether you prefer the temperature in Celsius or Fahrenheit. Could you please specify this?\n<tool_call>\n{\"name\": \"get_current_temperature\", \"arguments\": {\"location\": {\"city\": \"London\", \"country\": \"UK\"}, \"unit\": \"miles_per_hour\"}}\n</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen2.5-3B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<tool_call>\n{\"name\": \"get_current_wind_speed\", \"arguments\": {\"location\": \"London, UK\"}}\n</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "Qwen/Qwen2.5-3B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<tool_call>\n{\"name\": \"get_current_wind_speed\", \"arguments\": {\"location\": \"London, UK\"}}\n</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "Qwen/Qwen2.5-3B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": null,+ "context": {}+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "I'm sorry, I don't have real-time access to weather data. To get the current temperature and wind speed in London, I recommend checking a reliable weather website or app such as Weather.com, The Weather Channel, or using a smartphone app like Dark Sky or Weather Underground. These sources will provide you with the most accurate and up-to-date information based on the latest observations and forecasts.<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen2.5-3B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [],+ "context": {}+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "I don't have real-time access to current weather conditions. To get the most accurate and up-to-date information on the current temperature and wind speed in London, you can check a reliable weather website or app like The Weather Channel, BBC Weather, or use a search engine query with \"current weather London.\" These sources will provide you with the latest data.<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen2.5-3B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<tool_call>\n{\"name\": \"get_current_weather\", \"arguments\": {\"location\": {\"city\": \"London\", \"country\": \"UK\"}, \"unit\": \"metric\"}}\n</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "Qwen/Qwen2.5-3B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "It seems like there's no direct function provided to fetch the current temperature. However, I can attempt to fetch the wind speed in London and you can ask about the temperature separately if needed. Let me proceed with fetching the wind speed.\n<tool_call>\n{\"name\": \"get_current_wind_speed\", \"arguments\": {\"location\": \"London, UK\"}}\n</tool_call>\n<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "Qwen/Qwen2.5-3B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<tool_call>\n{\"name\": \"get_current_temperature\", \"arguments\": {\"location\": {\"city\": \"London\", \"country\": \"UK\"}, \"unit\": \"celsius\"}}\n</tool_call>\n<tool_call>\n{\"name\": \"get_current_wind_speed\", \"arguments\": {\"location\": \"London, UK\"}}\n</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_temperature",+ "get_current_wind_speed"+ ]+ }+ }+]\ No newline at end of filediff --git a/workspace/data/responses/Qwen_Qwen2.5-Coder-1.5B-Instruct.json b/workspace/data/responses/Qwen_Qwen2.5-Coder-1.5B-Instruct.jsonnew file mode 100644index 000000000..a149ea031--- /dev/null+++ b/workspace/data/responses/Qwen_Qwen2.5-Coder-1.5B-Instruct.json@@ -0,0 +1,73 @@+[+ {+ "repo_id": "Qwen/Qwen2.5-Coder-1.5B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": null,+ "context": {}+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|>\n<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "The current temperature in London is 14\u00b0C (57\u00b0F).<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen2.5-Coder-1.5B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": null,+ "context": {}+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "As of my last update, the current wind speed in London is 15-20 mph (24-32 km/h). Please note that wind speeds can vary depending on time and weather conditions.<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen2.5-Coder-1.5B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": null,+ "context": {}+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "As of my last update, the current temperature in London is 15 degrees Celsius (60 degrees Fahrenheit) with a wind speed of 3.8 meters per second (12.4 miles per hour).<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ }+]\ No newline at end of filediff --git a/workspace/data/responses/Qwen_Qwen2.5-Coder-3B-Instruct.json b/workspace/data/responses/Qwen_Qwen2.5-Coder-3B-Instruct.jsonnew file mode 100644index 000000000..13fa99f9c--- /dev/null+++ b/workspace/data/responses/Qwen_Qwen2.5-Coder-3B-Instruct.json@@ -0,0 +1,73 @@+[+ {+ "repo_id": "Qwen/Qwen2.5-Coder-3B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": null,+ "context": {}+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|>\n<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "I'm sorry, as an AI language model, I don't have real-time information about the current temperature in London or any other location. I can provide general information about temperature and weather patterns, but for up-to-date data, I would recommend checking a reliable weather website or app.<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen2.5-Coder-3B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": null,+ "context": {}+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "As of my last update, I don't have real-time data on current weather conditions. However, you can check the latest wind speed information for London by visiting a weather website or using a weather app on your smartphone.<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen2.5-Coder-3B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": null,+ "context": {}+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "The current temperature in London is 12\u00b0C, and the wind speed is 5 km/h.<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ }+]\ No newline at end of filediff --git a/workspace/data/responses/Qwen_Qwen3-0.6B.json b/workspace/data/responses/Qwen_Qwen3-0.6B.jsonnew file mode 100644index 000000000..067fb8c86--- /dev/null+++ b/workspace/data/responses/Qwen_Qwen3-0.6B.json@@ -0,0 +1,1636 @@+[+ {+ "repo_id": "Qwen/Qwen3-0.6B",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": null,+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>\nOkay, the user is asking about the current temperature in London. I need to provide accurate information. Let me think about the current weather in London.\n\nFirst, I should check the most recent data. I remember that London's weather can be influenced by various factors like the UK's climate, which is generally temperate. The UK has a temperate climate, so the temperature should be around 10-12 degrees Celsius in the summer. But I need to confirm this.\n\nWait, sometimes there might be a variation due to the UK's weather patterns. For example, in the south, it might be cooler, while in the north, it could be warmer. But the current temperature is likely in the mid-10s. I should mention that it's a general estimate and that actual data might vary slightly depending on the source.\n\nAlso, I should check if there's any recent news or updates about the weather. Maybe the user is planning something and wants to know the current condition. If they're asking about a specific time, like during a specific day, but the question just says \"current,\" I should stick to the latest data.\n\nI need to present this information clearly, maybe with a note that it's a general estimate and that the actual temperature could differ based on location. Also, mention that the temperature is in the range of 10-12\u00b0C. That should cover the user's query without being too technical.\n</think>\n\nThe current temperature in London is approximately 10\u00b0C (50\u00b0F). However, this value can vary slightly depending on the specific location (e.g., north, south, or east of London) and the time of year. For the most accurate and up-to-date information, you may want to check a weather service or a reliable source.<|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3-0.6B",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": null,+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "As of the latest data, the current temperature in London is **-1\u00b0C** (25\u00b0F). This is the temperature measured at the London Meteorological Centre.<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3-0.6B",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>\nOkay, the user is asking about the current temperature in London. I need to check if I have the latest data. Let me think. I remember that London has a known temperature, but I should verify if it's accurate. I think the current temperature is around 12 degrees Celsius. Wait, but maybe I should be more precise. Let me recall... I think the average temperature in London is around 12 degrees. But I should make sure there's no recent change. Since I can't access real-time data, I'll go with the commonly accepted figure unless there's a specific reason to doubt it. Also, I should mention that if there's a recent update, it might vary slightly. But for now, 12\u00b0C is a safe answer.\n</think>\n\nAs of the latest data, the current temperature in London is approximately **12\u00b0C**. For the most accurate and up-to-date information, you might want to check a weather service or app.<|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3-0.6B",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "As of the latest data (2024), the current temperature in London is **22\u00b0C (71.6\u00b0F)**. This is a general estimate, and actual temperatures can vary slightly depending on the time of year and location.<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3-0.6B",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>\nOkay, the user is asking for the current temperature in London. I need to use the get_current_temperature function. Let me check the parameters required. The function needs the location, which includes city and country, and the unit. London is in the UK, so country should be \"United Kingdom\". The user didn't specify the unit, but maybe default to Celsius since that's common. I'll make sure to include both city and country in the location object and set the unit to celsius. That should get the temperature for London.\n</think>\n\n<tool_call>\n{\"name\": \"get_current_temperature\", \"arguments\": {\"location\": {\"city\": \"London\", \"country\": \"United Kingdom\"}, \"unit\": \"celsius\"}}\n</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "Qwen/Qwen3-0.6B",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "<tool_call>\n{\"name\": \"get_current_temperature\", \"arguments\": {\"location\": {\"city\": \"London\", \"country\": \"United Kingdom\"}, \"unit\": \"fahrenheit\"}}\n</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "Qwen/Qwen3-0.6B",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>\nOkay, the user is asking for the current temperature in London. Let me check the tools provided. The only tool available is get_current_wind_speed, which requires a location in the format \"City, Country\". The user's query is about temperature, not wind speed. Since there's no function provided for temperature data, I can't retrieve that information. I should inform the user that I don't have access to temperature data and maybe suggest they check a weather service or app.\n</think>\n\nI don't have access to current temperature data. To find the current temperature in London, I would need a weather API or a dedicated weather service. Let me know if you'd like help with anything related to weather!<|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3-0.6B",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "The current temperature in London is 18\u00b0C.<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3-0.6B",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>\nOkay, the user is asking for the current temperature in London. Let me check the tools provided. There's a function called get_current_temperature that requires location details (city and country) and an optional unit. The user mentioned London, so I need to specify that as the location. The country here is England, which is the same as the UK. Since the user didn't specify the unit, I'll default to Celsius unless told otherwise. So I'll call the function with location set to \"London, UK\" and unit as Celsius. That should get the temperature for London.\n</think>\n\n<tool_call>\n{\"name\": \"get_current_temperature\", \"arguments\": {\"location\": {\"city\": \"London\", \"country\": \"UK\"}, \"unit\": \"celsius\"}}\n</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "Qwen/Qwen3-0.6B",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "<tool_call>\n{\"name\": \"get_current_temperature\", \"arguments\": {\"location\": {\"city\": \"London\", \"country\": \"UK\"}, \"unit\": \"fahrenheit\"}}\n</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "Qwen/Qwen3-0.6B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": null,+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>\nOkay, I need to find out the current wind speed in London. Let me think. First, I remember that London has a lot of wind, especially in the summer. The UK is a country that's known for its strong winds, so maybe the wind speed there is quite high.\n\nWait, but how do I find this information? I think I can use some online sources or weather websites. But since I can't browse the internet, I need to rely on what I know. I know that London is a major city, so it's likely that the wind is strong. Maybe around 10 to 15 miles per hour? But I should check if there's any specific data.\n\nAlso, I should consider that different regions in London might have different wind speeds. For example, areas near the Thames might have stronger winds. But without specific data, I can't be precise. Maybe I can mention that the average wind speed in London is around 10-15 mph, but I should note that this can vary depending on the location and time of day.\n\nI should also make sure not to give any specific numbers, just a general range. That way, the user knows that the wind speed is strong, but not too high. Also, I should mention that it's possible to check with a weather website for the most accurate data. That should cover my points.\n</think>\n\nThe current wind speed in London is generally strong, with typical values ranging from 10 to 15 miles per hour (miles per hour). However, this can vary depending on the time of day, season, and location (e.g., areas near the Thames may experience stronger winds). For the most accurate and up-to-date information, consulting a dedicated weather service or website is recommended.<|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3-0.6B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": null,+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "As of the latest available data (2023), the wind speed in London is generally around 12 to 15 km/h (7 to 9.3 mph). However, this can vary depending on the time of year and specific location. For precise and up-to-date information, you might want to check a weather service or a wind speed chart.<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3-0.6B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>\nOkay, the user is asking about the current wind speed in London. First, I need to confirm if I have the latest data. I remember that wind speed can vary depending on the time of day, location, and weather conditions. London is a big city, so it's not just a simple question.\n\nI should mention that wind speed can be influenced by factors like temperature, elevation, and nearby weather systems. Maybe I can suggest checking a weather website or app for real-time updates. It's important to note that without specific data, I can't provide an exact number, so the answer should be general and encourage the user to use reliable sources.\n\nAlso, I need to make sure the response is clear and helpful, avoiding any technical jargon. The user might be planning something, like a trip or staying, so they need accurate information. Let me structure the answer to first state the uncertainty, then explain the factors affecting wind speed, and finally recommend checking reliable sources.\n</think>\n\nThe current wind speed in London is not publicly accessible as it can vary based on factors like time of day, weather conditions, and location. For real-time updates, you can check a weather service app, website, or news source. If you have specific times or conditions in mind, let me know, and I can help tailor the information!<|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3-0.6B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "As of the latest data (2024), London is experiencing a wind speed of approximately **10 to 12 km/h** (6 to 7.5 mph). However, this can vary depending on the specific location and time of year. For precise information, it's always best to check the local meteorological service or a reliable weather app.<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3-0.6B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>\nOkay, the user is asking about the current wind speed in London. Let me check the tools provided. The only function available is get_current_temperature, which requires location details (city and country) and a unit. Wind speed isn't mentioned in the function's parameters. Since there's no function related to wind speed, I can't retrieve that information. I should inform the user that I don't have the necessary tool to answer their question about wind speed.\n</think>\n\nI don't have access to a function that provides wind speed information. Could you please clarify what kind of information you need?<|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3-0.6B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "I don't have access to real-time wind speed data. Could you provide more details about the location or the time frame you're interested in?<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3-0.6B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>\nOkay, the user is asking for the current wind speed in London. I need to use the get_current_wind_speed function. The function requires a location parameter in the format \"City, Country\". London is in the UK, so I should format it as \"London, UK\". Let me check the parameters again to make sure. The function's required parameter is location, so I just need to pass \"London, UK\". I'll generate the tool call with that information.\n</think>\n\n<tool_call>\n{\"name\": \"get_current_wind_speed\", \"arguments\": {\"location\": \"London, UK\"}}\n</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "Qwen/Qwen3-0.6B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "<tool_call>\n{\"name\": \"get_current_wind_speed\", \"arguments\": {\"location\": \"London, UK\"}}\n</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "Qwen/Qwen3-0.6B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>\nOkay, the user is asking for the current wind speed in London. Let me check which tool I can use for that.\n\nLooking at the provided functions, there's get_current_wind_speed. It requires a location parameter in the format \"City, Country\". The user mentioned London, so I need to specify that. The function doesn't ask for units, but maybe I should confirm if they want it in km/h. However, the user just wants the speed, so I can proceed without specifying units since the function's return type is a number. So, the location should be \"London, UK\". I'll call the function with that parameter.\n</think>\n\n<tool_call>\n{\"name\": \"get_current_wind_speed\", \"arguments\": {\"location\": \"London, UK\"}}\n</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "Qwen/Qwen3-0.6B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "<tool_call>\n{\"name\": \"get_current_wind_speed\", \"arguments\": {\"location\": \"London, UK\"}}\n</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "Qwen/Qwen3-0.6B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": null,+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>\nOkay, I need to find the current temperature and wind speed in London. Let me think. I know that London is a city in the UK, and I can check weather information online. But wait, I can't actually browse the internet right now. Hmm, maybe I can recall some data. The temperature in London typically ranges between 10\u00b0C and 20\u00b0C, depending on the season. For example, during the summer, it's warmer, and in winter, it's colder. \n\nNow about the wind speed. London has different wind patterns. In the south, there's a strong southerly wind, and in the north, there might be a northerly wind. The average wind speed can vary. For instance, during the summer, winds are usually stronger, and in winter, they might be lighter. I should check if there's a specific average. Maybe around 5-10 km/h in the south and 3-5 km/h in the north. \n\nWait, but I should be careful. Are these averages accurate? I remember that London's wind speed can be influenced by factors like the time of year and proximity to the sea. For example, during the summer, the wind might be 8-12 km/h, while in winter, it's lower. I think the current wind speed in London is around 5-7 km/h in the south and 3-5 km/h in the north. \n\nSo putting it all together, the current temperature is approximately 15\u00b0C, and the wind speed is 6-7 km/h. I should present this information clearly and check if there's any recent data I might have missed. But since I can't access the internet, I'll rely on my knowledge based on typical weather patterns.\n</think>\n\nAs of the latest available data, the current temperature in London is approximately **15\u00b0C**, and the wind speed is **5\u20137 km/h**. This is typical for the region, with stronger winds during the summer months and lighter winds in winter. For the most accurate and up-to-date information, please check a trusted weather service or app.<|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3-0.6B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": null,+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "As of 2024-07-15, the current temperature in London is **-1\u00b0C** (25\u00b0F) and the wind speed is **12 km/h** (7.5 mph). For the latest data, it's best to check a reliable weather service like the National Weather Service (NWS) or a mobile app.<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3-0.6B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>\nOkay, the user is asking for the current temperature and wind speed in London. I need to check the latest data. I remember that London's weather can be affected by various factors like the jet stream and seasonal changes. Let me think... The current temperature is around 10 degrees Celsius. For wind speed, it's usually in the range of 10-15 km/h. But wait, I should verify if there are any recent updates. Maybe the user wants the most accurate figure. Also, considering London's climate, it's a moderate temperature, so 10\u00b0C is reasonable. The wind speed might vary slightly depending on the time of day. I should present the information clearly and mention that it's based on the latest data.\n</think>\n\nAs of the latest update, the current temperature in London is **10\u00b0C**, and the wind speed is approximately **12 km/h**. For the most accurate and up-to-date information, please check a weather service or app.<|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3-0.6B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "As of 2025, the current temperature in London is approximately **12\u00b0C (53.6\u00b0F)**, with a wind speed of **12 km/h (76 mph)**. However, these values are based on the latest available data and may change slightly depending on the specific location and time of year. For the most accurate and up-to-date information, it's best to check a reliable weather service like Weather.com, AccuWeather, or the National Weather Service.<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3-0.6B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>\nOkay, the user is asking for the current temperature and wind speed in London. Let me check the tools available. There's a function called get_current_temperature that requires location details (city and country) and an optional unit. The user specified London, so I need to set the city as London and country as United Kingdom. The function also needs the unit, but the user didn't mention it, so maybe I should default to Celsius unless specified. Wait, the function's parameters require both location and unit. The user didn't mention wind speed, but the original question includes both temperature and wind speed. Oh, but looking at the tool description, the function only gets temperature. Wait, the user is asking for temperature and wind speed, but the tool provided only has the temperature function. Hmm, that's a problem. The tool can't provide wind speed. So I need to inform the user that the available tool only provides temperature. But wait, maybe I should check again. The function's parameters include location and unit, but the return is a number (temperature). Wind speed isn't part of the function. Therefore, I can't fulfill the request with the provided tools. I should let the user know that the current temperature is available, but wind speed isn't supported by the given function.\n</think>\n\nThe current temperature in London is 18\u00b0C (64\u00b0F), but I don't have access to wind speed data through the provided tool. Would you like me to check the temperature only?<|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "Qwen/Qwen3-0.6B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "<tool_call>\n{\"name\": \"get_current_temperature\", \"arguments\": {\"location\": {\"city\": \"London\", \"country\": \"United Kingdom\"}, \"unit\": \"fahrenheit\"}}\n</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "Qwen/Qwen3-0.6B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>\nOkay, the user is asking for the current temperature and wind speed in London. Let me check the tools provided. The only function available is get_current_wind_speed, which requires a location parameter in the format \"City, Country\". The temperature isn't mentioned in the function's parameters, so I can't retrieve that information with the given tool. I need to inform the user that I can only provide wind speed data and suggest they ask for temperature separately if they need it.\n</think>\n\nI don't have access to temperature data, but I can provide wind speed information for London. Let me know if you'd like that!<|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "Qwen/Qwen3-0.6B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "I don't have access to real-time data about current temperature and wind speed in London. Could you provide the location or time frame for the data you're interested in?<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "Qwen/Qwen3-0.6B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>\nOkay, the user is asking for the current temperature and wind speed in London. Let me check the tools available.\n\nFirst, there's the get_current_temperature function which requires location (city and country) and unit. London is in the UK, so I'll use \"London, UK\" as the location. The user didn't specify the unit, but since they didn't mention, maybe default to Celsius? But the function's unit parameter is optional. Wait, the function's required parameters are location and unit. So I need to include both. The user didn't say the unit, so maybe I should ask, but since I can't ask, I have to make an assumption. Maybe default to Celsius? Or maybe the function allows specifying the unit. Let me check the function's parameters again. The unit is an enum with celsius and fahrenheit. Since the user didn't specify, perhaps I can use both? Wait, but the required parameters are location and unit. So I need to include both. So I'll set the unit to celsius. \n\nThen the other tool is get_current_wind_speed, which requires the location in the format \"City, Country\". The user is asking for London, so that's covered. So I need to make two function calls: one for temperature and another for wind speed. \n\nWait, but the user's question is two separate pieces of information. So I should call both functions. Let me structure the tool calls accordingly. \n\nFirst function call: name get_current_temperature, arguments location \"London, UK\" and unit \"celsius\". Second function call: name get_current_wind_speed, arguments location \"London, UK\". \n\nYes, that should cover both pieces of information the user is asking for.\n</think>\n\n<tool_call>\n{\"name\": \"get_current_temperature\", \"arguments\": {\"location\": {\"city\": \"London\", \"country\": \"UK\"}, \"unit\": \"celsius\"}}\n</tool_call>\n<tool_call>\n{\"name\": \"get_current_wind_speed\", \"arguments\": {\"location\": \"London, UK\"}}\n</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_temperature",+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "Qwen/Qwen3-0.6B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "<tool_call>\n{\"name\": \"get_current_temperature\", \"arguments\": {\"location\": \"London\", \"country\": \"United Kingdom\"}}\n</tool_call>\n<tool_call>\n{\"name\": \"get_current_wind_speed\", \"arguments\": {\"location\": \"London\"}}\n</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_temperature",+ "get_current_wind_speed"+ ]+ }+ }+]\ No newline at end of filediff --git a/workspace/data/responses/Qwen_Qwen3-4B-Instruct-2507.json b/workspace/data/responses/Qwen_Qwen3-4B-Instruct-2507.jsonnew file mode 100644index 000000000..a2eb2f792--- /dev/null+++ b/workspace/data/responses/Qwen_Qwen3-4B-Instruct-2507.json@@ -0,0 +1,789 @@+[+ {+ "repo_id": "Qwen/Qwen3-4B-Instruct-2507",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": null,+ "context": {}+ },+ "result": {+ "prompt": "<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "I can't provide real-time data like the current temperature in London. To get the most up-to-date weather information, I recommend checking a reliable weather website or app such as:\n\n- Weather.com (weather.com)\n- BBC Weather\n- AccuWeather\n- The Met Office (official UK weather service)\n\nJust search for \"current weather in London\" on any of these platforms. \ud83c\udf24\ufe0f<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3-4B-Instruct-2507",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [],+ "context": {}+ },+ "result": {+ "prompt": "<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "I can't provide real-time data like the current temperature in London. To get the most up-to-date weather information, I recommend checking a reliable weather website or app such as:\n\n- [Weather.com](https://www.weather.com)\n- [BBC Weather](https://www.bbc.com/weather)\n- [Met Office](https://www.metoffice.gov.uk)\n\nThese sources will give you accurate and current temperature readings for London.<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3-4B-Instruct-2507",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|im_start|>system\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<tool_call>\n{\"name\": \"get_current_temperature\", \"arguments\": {\"location\": {\"city\": \"London\", \"country\": \"UK\"}, \"unit\": \"celsius\"}}\n</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "Qwen/Qwen3-4B-Instruct-2507",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|im_start|>system\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "I cannot provide the current temperature in London as no tool is available for temperature queries.<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3-4B-Instruct-2507",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|im_start|>system\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<tool_call>\n{\"name\": \"get_current_temperature\", \"arguments\": {\"location\": {\"city\": \"London\", \"country\": \"UK\"}, \"unit\": \"celsius\"}}\n</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "Qwen/Qwen3-4B-Instruct-2507",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": null,+ "context": {}+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "I can't provide real-time data such as the current wind speed in London. To get the most up-to-date weather information, I recommend checking a reliable weather website or app like:\n\n- [Weather.com](https://www.weather.com)\n- [BBC Weather](https://www.bbc.com/weather)\n- [Met Office](https://www.metoffice.gov.uk)\n- [AccuWeather](https://www.accuweather.com)\n\nThese services offer live wind speed and other current weather conditions for London.<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3-4B-Instruct-2507",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [],+ "context": {}+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "I can't provide real-time data like the current wind speed in London. To get the most up-to-date weather information, I recommend checking a reliable weather website or app such as:\n\n- [Weather.com](https://www.weather.com)\n- [BBC Weather](https://www.bbc.com/weather)\n- [Met Office](https://www.metoffice.gov.uk)\n- [AccuWeather](https://www.accuweather.com)\n\nThese services offer live wind speed and other weather details for London and around the world.<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3-4B-Instruct-2507",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "I cannot provide information about wind speed as it is not supported by the available tools. Let me know if you'd like assistance with something else.<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3-4B-Instruct-2507",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<tool_call>\n{\"name\": \"get_current_wind_speed\", \"arguments\": {\"location\": \"London, UK\"}}\n</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "Qwen/Qwen3-4B-Instruct-2507",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<tool_call>\n{\"name\": \"get_current_wind_speed\", \"arguments\": {\"location\": \"London, UK\"}}\n</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "Qwen/Qwen3-4B-Instruct-2507",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": null,+ "context": {}+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "I'm sorry, but I can't provide real-time data like the current temperature or wind speed in London. To get the most up-to-date weather information, I recommend checking a reliable weather website or app such as:\n\n- [Weather.com](https://www.weather.com)\n- [BBC Weather](https://www.bbc.com/weather)\n- [Met Office](https://www.metoffice.gov.uk)\n- Your smartphone's weather app\n\nThese sources will give you accurate and current conditions for London.<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3-4B-Instruct-2507",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [],+ "context": {}+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "I can't provide real-time data such as the current temperature or wind speed in London. For the most up-to-date weather information, I recommend checking a reliable weather website or app like:\n\n- [Weather.com](https://www.weather.com)\n- [BBC Weather](https://www.bbc.com/weather)\n- [Met Office](https://www.metoffice.gov.uk)\n- [AccuWeather](https://www.accuweather.com)\n\nThese services offer live updates and accurate forecasts for London and other locations.<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3-4B-Instruct-2507",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "I cannot provide information about wind speed or temperature in London as no available tool supports wind speed data or retrieving such specific weather details. Let me know if you'd like help with something else!<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "Qwen/Qwen3-4B-Instruct-2507",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "I cannot provide information about the current temperature or wind speed in London as no available tool supports retrieving temperature or wind speed data. Let me know if you'd like assistance with something else!<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "Qwen/Qwen3-4B-Instruct-2507",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<tool_call>\n{\"name\": \"get_current_temperature\", \"arguments\": {\"location\": {\"city\": \"London\", \"country\": \"UK\"}, \"unit\": \"celsius\"}}\n</tool_call>\n<tool_call>\n{\"name\": \"get_current_wind_speed\", \"arguments\": {\"location\": \"London, UK\"}}\n</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_temperature",+ "get_current_wind_speed"+ ]+ }+ }+]\ No newline at end of filediff --git a/workspace/data/responses/Qwen_Qwen3-4B-Thinking-2507.json b/workspace/data/responses/Qwen_Qwen3-4B-Thinking-2507.jsonnew file mode 100644index 000000000..d0933c538--- /dev/null+++ b/workspace/data/responses/Qwen_Qwen3-4B-Thinking-2507.json@@ -0,0 +1,789 @@+[+ {+ "repo_id": "Qwen/Qwen3-4B-Thinking-2507",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": null,+ "context": {}+ },+ "result": {+ "prompt": "<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n<think>\n",+ "completion": "Okay, the user is asking for the current temperature in London. Hmm, this seems like a straightforward request, but I need to be careful. \n\nFirst, I should check if I have real-time data access. As an AI, I don't have live internet browsing capabilities, so I can't pull the latest weather info right now. That's important to clarify upfront to avoid misleading them. \n\nI wonder why they need this. Maybe they're planning to go out, checking for travel, or just curious. Since they didn't specify, I should keep it general. \n\nI recall that weather changes quickly - especially in London where it can be unpredictable with rain and temperature swings. They might actually need a forecast rather than just the current temp. \n\nThe best approach is to: \n1) Explain I can't give live data (be transparent) \n2) Suggest reliable sources they can check themselves (Weather.com, AccuWeather, Met Office) \n3) Add a tip about checking multiple sources since weather apps can differ slightly \n\nShould I mention London's typical temps? Like \"right now it's probably around X\u00b0C\" but no - that's risky. Last week it was 15\u00b0C, but today might be different. Better not guess. \n\nAlso... is this user in a hurry? If they're asking quickly, they might want the fastest answer possible. But giving wrong info would be worse than a redirect. \n\n*Double-checking*: Yep, no live data in my system. Must avoid saying \"I don't know\" - that's unhelpful. Give actionable steps instead. \n\nFinal plan: \n- Clear disclaimer about no live data \n- List 2-3 trusted UK-specific sources (Met Office is official) \n- Add that weather changes fast so they should check soon \n- Keep it friendly with \"hope this helps\" \n\n...And definitely no made-up numbers. Would hate to be the one who tells someone \"it's 22\u00b0C\" when it's actually 10\u00b0C because they're in a different part of London!\n</think>\n\nI don't have real-time internet access or current weather data, so I **can't give you the live temperature in London right now**. Weather changes quickly, and I don't update my knowledge beyond my last training data (up to early 2023).\n\n**Here's how you can get the most accurate and up-to-date temperature:**\n\n1. **Check the official UK Met Office website**: \n \u2192 [https://www.metoffice.gov.uk/weather](https://www.metoffice.gov.uk/weather) \n *(This is the most reliable source for UK weather, including London)*\n\n2. **Use a trusted weather app**: \n - Open **AccuWeather**, **Weather.com**, or **The Weather Channel** on your phone/computer. \n - Search for \"London\" to get the current temp, forecast, and conditions.\n\n3. **Quick tip**: \n London's temperature can vary by location (e.g., central London vs. the outskirts) and change rapidly, especially with rain or wind. The Met Office also provides hyperlocal forecasts for specific areas.\n\n**Why I can't give live data?** \nAs an AI, I don\u2019t browse the internet in real time. For the most current info, **always check a live weather service** \u2014 this avoids outdated or inaccurate responses.\n\n*Example of what you might see right now (as of my last update):* \n> \ud83c\udf24\ufe0f London today: **15\u00b0C** (with a chance of light rain) \u2014 *But this is just an example; your actual temp will differ!* \n\n**Hope this helps!** \ud83c\udf26\ufe0f Let me know if you'd like help with something else. \ud83d\ude0a<|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3-4B-Thinking-2507",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [],+ "context": {}+ },+ "result": {+ "prompt": "<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n<think>\n",+ "completion": "Okay, the user is asking for the current temperature in London. Hmm, this seems like a straightforward request, but I need to be careful. \n\nFirst, I should consider why they're asking. Maybe they're planning to go out, checking if they need an umbrella, or just curious about the weather. Since they didn't specify, I'll assume they want the most up-to-date info. \n\nI know I can't access live data directly\u2014I'm an AI without real-time internet. But I can guide them to reliable sources. Weather services like Weather.com or AccuWeather are good, but the user might not know those. \n\nWait, they might be in a hurry. Should I mention the most common sources quickly? Like the UK Met Office? Yeah, that's official and trusted. Also, some people use apps like Weather Channel or Apple Weather, but I shouldn't list too many options to avoid confusion. \n\nOh! Important\u2014London has different parts. The temperature might vary between central London and the suburbs. Should I note that? Yeah, better add a caveat so they don't get confused if they see slightly different numbers. \n\nAlso, the user might not realize time zones matter. If they're in another country, they might see \"current\" but it's actually from a different time. But since they asked for London, I'll skip that unless they follow up. \n\n...Double-checking my memory: The Met Office website is metoffice.gov.uk, and it's free. Good. No paid services needed. \n\nI wonder if they want a quick answer without links? But giving a link is helpful. I'll phrase it as \"you can check via...\" so it's clear. \n\nShould I add a joke? Like \"London's weather is as unpredictable as a politician\" \u2014 nah, too risky. Keep it professional but friendly. \n\nFinal plan: \n1. Explain I can't give live data \n2. Give top 2-3 reliable sources (Met Office, Weather.com, AccuWeather) \n3. Mention possible variations in London \n4. Keep it simple and actionable \n\nUser seems like a regular person, not a tech expert, so no need to overcomplicate. Just clear, helpful steps.\n</think>\n\nI don't have real-time internet access to check the current temperature, but here's how you can get the **most accurate and up-to-date information** for London:\n\n1. **Official UK Met Office** (most reliable): \n Visit [www.metoffice.gov.uk/weather](https://www.metoffice.gov.uk/weather) \u2192 Select \"London\" for the latest forecast and current conditions. \n *(This is the UK government's official weather service and gives precise data for London).*\n\n2. **Weather.com (The Weather Channel)**: \n Go to [weather.com](https://weather.com) \u2192 Type \"London, UK\" in the search bar. \n *(Provides detailed hourly forecasts and current conditions).*\n\n3. **AccuWeather**: \n Visit [accuweather.com](https://www.accuweather.com) \u2192 Search \"London, England\". \n *(Great for real-time updates and alerts).*\n\n### Quick Tip:\n- Temperatures in London can vary slightly between central London (e.g., London Bridge) and outer areas (e.g., suburbs). \n- The current weather is often **cool and cloudy** in early spring (March\u2013May) or **mild and rainy** in autumn (Sept\u2013Nov), but **always check a live source** for the exact moment you need it.\n\nFor example, as of my last knowledge update (July 2024), London was around **19\u201322\u00b0C** with partly cloudy skies\u2014but **this changes rapidly**! \ud83c\udf24\ufe0f\n\n\u2705 **Best action**: Open one of the links above *right now* for the **real-time temperature**. I\u2019ll help you interpret it if you share what you see!<|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3-4B-Thinking-2507",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|im_start|>system\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n<think>\n",+ "completion": "Okay, the user is asking for the current temperature in London. Let me check the tools provided.\n\nThe function available is get_current_temperature. It requires location (with city and country) and unit. The user didn't specify the unit, so I should probably default to Celsius, but maybe the function expects a specific one. Wait, the parameters say unit is an enum with \"celsius\" or \"fahrenheit\". Since London is in the UK, they usually use Celsius, but sometimes people might expect Fahrenheit. Hmm, the problem is the user didn't specify. The function's required parameters are location (city and country) and unit. So I need to include both.\n\nWait, the location is an object with city and country. The user said London, so city is \"London\", country is \"United Kingdom\". The unit is required, but the user didn't specify. Maybe I should pick a default. The function's enum has both options. Since the user is asking in English, maybe they expect Celsius. But in some contexts, like the US, they use Fahrenheit. However, London uses Celsius. Let me go with \"celsius\" as the default.\n\nSo the arguments would be:\nlocation: {city: \"London\", country: \"United Kingdom\"}\nunit: \"celsius\"\n\nI need to make sure the country is correctly spelled. The country code for UK is United Kingdom. Let me check. Yes, the country name here should be \"United Kingdom\" as per the function's description.\n\nSo the tool call should be get_current_temperature with those parameters.\n</think>\n\n<tool_call>\n{\"name\": \"get_current_temperature\", \"arguments\": {\"location\": {\"city\": \"London\", \"country\": \"United Kingdom\"}, \"unit\": \"celsius\"}}\n</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "Qwen/Qwen3-4B-Thinking-2507",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|im_start|>system\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n<think>\n",+ "completion": "Okay, the user is asking for the current temperature in London. Let me check the tools provided.\n\nLooking at the tools section, there's only one function called get_current_wind_speed. It takes a location in \"City, Country\" format and returns wind speed in km/h. The user is asking about temperature, not wind speed. Hmm, the available tool doesn't handle temperature at all. \n\nWait, the problem says I can call one or more functions to assist. But since there's no temperature function here, I can't get that data. I should inform the user that I don't have the capability to retrieve temperature information. The tools provided are only for wind speed. So I can't use any function here. I need to point out that the function for temperature isn't available.\n</think>\n\nI don't have access to current temperature data or a temperature-related function. My capabilities are limited to checking wind speed using the `get_current_wind_speed` function (which requires a location in \"City, Country\" format). Would you like me to check the wind speed in London instead?<|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3-4B-Thinking-2507",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|im_start|>system\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n<think>\n",+ "completion": "Okay, the user is asking for the current temperature in London. Let me check the tools provided.\n\nFirst, there's the get_current_temperature function. It requires a location object with city and country, and a unit. The user specified London, which is a city in the UK. So country should be United Kingdom. The unit isn't specified, but maybe I should default to celsius since that's common in the UK. Wait, the function has an enum for unit: [\"celsius\", \"fahrenheit\"]. The user didn't specify the unit, so maybe I should pick one. But the problem says to call the function with the necessary parameters. Since the user just says \"temperature\" without specifying units, maybe the function expects a default. Wait, looking at the required parameters: the function requires \"location\" and \"unit\". So I need to provide both. Hmm.\n\nWait, the location parameter is an object with city and country. So for London, city is \"London\", country is \"United Kingdom\". The unit could be \"celsius\" as that's the standard there. Alternatively, maybe the function can handle it, but since the user didn't specify, I should choose one. Let me go with celsius.\n\nSo the tool call would be get_current_temperature with location: {city: \"London\", country: \"United Kingdom\"}, unit: \"celsius\".\n\nThe other function is get_current_wind_speed, but the user asked for temperature, so that's not needed here.\n\nWait, the user said \"current temperature in London\", so no wind speed. So only the first function is needed.\n\nLet me structure the tool call. The arguments should be a JSON object. The location is an object with city and country. So:\n\n{\n \"name\": \"get_current_temperature\",\n \"arguments\": {\n \"location\": {\n \"city\": \"London\",\n \"country\": \"United Kingdom\"\n },\n \"unit\": \"celsius\"\n }\n}\n\nYes, that's correct. The required fields are location (with city and country) and unit. The user didn't specify the unit, but since it's a standard in the UK, celsius is appropriate. If the function expects a specific unit, but the user didn't say, but the tool requires it, so I have to pick one. I'll go with celsius here.\n</think>\n\n<tool_call>\n{\"name\": \"get_current_temperature\", \"arguments\": {\"location\": {\"city\": \"London\", \"country\": \"United Kingdom\"}, \"unit\": \"celsius\"}}\n</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "Qwen/Qwen3-4B-Thinking-2507",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": null,+ "context": {}+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n",+ "completion": "Okay, the user is asking for the current wind speed in London. Hmm, this seems like a straightforward weather query, but I need to be careful here. \n\nFirst, I recall that as an AI, I don't have real-time data access. That's important to clarify upfront so the user doesn't think I'm giving outdated or fake info. \n\nI wonder why they need this? Maybe they're planning outdoor activities, checking for travel disruptions, or just curious. Since they specified London, they might be a local or a tourist. Could be important context but I shouldn't assume. \n\nThe best approach is to direct them to reliable sources. Weather.com and AccuWeather are good options - they update live and have London coverage. Also, the UK Met Office is the official source, which adds credibility. \n\nShould I mention that wind speed changes rapidly? Yeah, that's useful context - it explains why I can't give a real-time number. People sometimes get frustrated when they expect instant answers. \n\nI'll keep it friendly but precise. No need to overcomplicate it. Just clear options and a note about the limitations. \n\n...Wait, is there any chance they meant historical data? No, they said \"current\" so definitely real-time. Good thing I caught that. \n\nFinal thought: Emphasize the \"live\" aspect and make sure they know it's not me providing the number. Don't want to mislead them.\n</think>\n\nI don't have real-time access to current weather data (like wind speed), as I'm an AI without live internet browsing capabilities. **To get the *current* wind speed in London**, I recommend checking one of these reliable sources:\n\n1. **UK Met Office** (official source): \n [https://www.metoffice.gov.uk/weather](https://www.metoffice.gov.uk/weather) \n *(They provide live forecasts and real-time data for London)*\n\n2. **Weather.com** (The Weather Channel): \n [https://weather.com/weather/today/l/ukgb2020:1:UKLONDON](https://weather.com/weather/today/l/ukgb2020:1:UKLONDON) \n *(Shows current wind speed in the London area)*\n\n3. **AccuWeather**: \n [https://www.accuweather.com/en/gb/london/ldn/205716/weather/forecast](https://www.accuweather.com/en/gb/london/ldn/205716/weather/forecast) \n *(Shows live wind speed and conditions)*\n\n\ud83d\udca1 **Quick tip**: Wind speed changes rapidly, so the number you see will be the *most recent* reading (usually updated every few minutes). For example, as of my last knowledge update (July 2024), London had **light winds** (around 10\u201315 km/h), but **always check a live source** for accuracy!\n\nLet me know if you'd help interpreting the forecast! \ud83d\ude0a<|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3-4B-Thinking-2507",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [],+ "context": {}+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n",+ "completion": "Okay, the user is asking for the current wind speed in London. Hmm, this seems like a straightforward request, but I need to be careful. \n\nFirst, I recall that as an AI, I don't have real-time data access. My knowledge is cut off at July 2024, and I can't browse the internet live. The user might not realize that I can't pull live weather info. \n\nI wonder why they need this right now. Maybe they're planning outdoor activities, checking for travel disruptions, or just curious. London's weather can change fast\u2014wind speeds vary by location within the city too. \n\nI should be clear but helpful. Instead of saying \"I don't know,\" I'll explain my limitations and offer alternatives. The user might appreciate practical steps: suggesting weather apps, official sources like the Met Office, or even a specific time frame if they need historical data. \n\nAlso, I should avoid making up numbers\u2014that'd be misleading. The tone should be friendly and proactive, not frustrating. Maybe add that wind speed can change quickly so they check again later if needed. \n\n...Wait, is this user in a hurry? If they're asking for real-time data, they might be stressed about something urgent. Better keep it simple and actionable without overcomplicating.\n</think>\n\nI don't have real-time data access (as an AI, I can't browse the internet live or pull current weather information). **I cannot tell you the current wind speed in London right now.**\n\nHowever, here's how you can get the most accurate and up-to-date information:\n\n1. **Check a reliable weather service**:\n - **The Met Office (UK)**: [www.metoffice.gov.uk](https://www.metoffice.gov.uk) (official source for UK weather).\n - **Weather apps**: Use apps like Weather.com, AccuWeather, or the built-in weather feature on your phone (e.g., Apple Weather, Google Weather).\n - **Google**: Type \"current wind speed in London\" into Google, and it will show real-time data from its sources.\n\n2. **Why real-time data matters**: Wind speeds can change rapidly, especially in London (which has variable weather due to its location and climate). The wind speed at a specific point (e.g., London Bridge vs. the Thames Estuary) can differ.\n\n**As of my last update (July 2024)**, London typically has moderate winds (10\u201320 mph) in spring/autumn but can see stronger gusts during storms or cold fronts. But **for the *exact* current reading, please check one of the sources above**.\n\nLet me know if you'd help with something else (e.g., historical wind data, weather forecasts for a specific date)! \ud83d\ude0a<|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3-4B-Thinking-2507",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n",+ "completion": "Okay, let's see. The user is asking for the current wind speed in London. Hmm, I need to check the tools provided to see if any can help.\n\nLooking at the tools section, there's a function called get_current_temperature. It requires location (city and country) and unit. But the user is asking about wind speed, not temperature. The function's description says it gets temperature, not wind speed. \n\nWait, the tools only have this one function. There's no function for wind speed. So I can't use any of the provided tools to get wind speed. I should inform the user that I don't have the capability to retrieve wind speed data. Let me make sure I didn't miss any other tools. No, the tools section only lists get_current_temperature. \n\nSo the answer is that I can't help with wind speed because the available tools only provide temperature data. I need to point out that the function isn't available for wind speed.\n</think>\n\nThe function provided is for getting the current temperature, not wind speed. I don't have access to wind speed data through the available tools. Let me know if you'd like temperature information instead!<|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3-4B-Thinking-2507",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n",+ "completion": "Okay, the user is asking for the current wind speed in London. Let me check the tools provided. There's a function called get_current_wind_speed that takes a location in the format \"City, Country\". So I need to format London as \"London, United Kingdom\" since the country is required. Wait, the example might use \"United Kingdom\" but sometimes people just say \"UK\". But the function requires the country name properly. Let me think. The tool's description says the location should be in \"City, Country\" format. So for London, the country is United Kingdom. So the argument should be \"London, United Kingdom\". I should make sure to use the full country name. Let me confirm: in such contexts, usually \"United Kingdom\" is correct. So the function call would be get_current_wind_speed with location \"London, United Kingdom\". I don't have any other parameters, so that's it. I'll structure the tool call accordingly.\n</think>\n\n<tool_call>\n{\"name\": \"get_current_wind_speed\", \"arguments\": {\"location\": \"London, United Kingdom\"}}\n</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "Qwen/Qwen3-4B-Thinking-2507",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n",+ "completion": "Okay, the user is asking for the current wind speed in London. Let me check the tools provided.\n\nFirst, there's get_current_temperature and get_current_wind_speed. The user wants wind speed, so I should use the second function: get_current_wind_speed. \n\nLooking at the parameters for get_current_wind_speed, it requires a location in the format \"City, Country\". The user mentioned London, which is a city in the UK. So the location should be \"London, United Kingdom\". \n\nWait, the country name here might be \"United Kingdom\" or \"England\"? But typically, when specifying countries for cities like London, it's \"United Kingdom\" since London is in England, which is part of the UK. I think the standard here would be to use \"United Kingdom\" as the country.\n\nSo the function call should have location: \"London, United Kingdom\". Let me make sure the parameters are correct. The function's location parameter is a string in the format \"City, Country\". So yes, \"London, United Kingdom\" is the right format.\n\nNo other parameters are needed for this function. The user didn't specify a unit for temperature, but this function is for wind speed, so no unit is required here. \n\nI need to structure the tool call correctly. The function name is get_current_wind_speed, and the arguments should be a JSON object with \"location\" as \"London, United Kingdom\".\n\nLet me double-check if there's any possible mistake. For example, maybe the country name is different, but in most contexts, London's country is the United Kingdom. So I think that's correct.\n\nAlright, time to format the tool_call XML.\n</think>\n\n<tool_call>\n{\"name\": \"get_current_wind_speed\", \"arguments\": {\"location\": \"London, United Kingdom\"}}\n</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "Qwen/Qwen3-4B-Thinking-2507",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": null,+ "context": {}+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n",+ "completion": "Okay, the user is asking for the current temperature and wind speed in London. Hmm, this seems like a straightforward weather query, but I need to be careful here. \n\nFirst, I recall that as an AI, I don't have real-time data access. My knowledge cutoff is July 2024, and I can't pull live weather info. The user might not realize that weather apps or websites would be the best source for this. \n\nI wonder about their context... Are they planning to go out? Checking for travel? Maybe they're writing something and need quick stats? Since they specified London, they're probably in the UK or planning a trip there. \n\nI should emphasize the limitation clearly but politely. No point pretending I have live data - that'd be misleading. Better to suggest reliable alternatives: Weather.com, AccuWeather, or even the UK Met Office website since they're official. \n\nAlso, wind speed... that's pretty specific. Some people care about that for outdoor activities. Maybe they're into hiking or sailing? But I shouldn't assume. \n\nThe tone should be helpful, not frustrated. Like \"I can't give live data but here's how to get it\" rather than \"I don't know\". \n\n*checks mental notes* Right, must avoid saying \"I don't know\" - that sounds unhelpful. Instead: \"My current knowledge doesn't include real-time weather, but you can check...\" \n\nShould I mention London has multiple weather stations? Nah, that might overcomplicate it. Just keep it simple for the user. \n\nFinal thought: Add that \"as of my last training data\" disclaimer to be transparent about the time limit. Don't want them thinking I'm giving outdated info.\n</think>\n\nI don't have access to real-time weather data or current conditions (my knowledge is current up to **July 2024**, and I can't pull live updates). For the **most accurate and up-to-date temperature and wind speed in London**, I recommend checking a reliable weather service like:\n\n1. **The UK Met Office** ([metoffice.gov.uk](https://www.metoffice.gov.uk)) \u2013 *official source for UK weather* \n2. **Weather.com** ([weather.com](https://weather.com)) \u2013 search \"London, UK\" \n3. **AccuWeather** ([accuweather.com](https://www.accuweather.com)) \u2013 search \"London\" \n4. **Google Weather** (just type \"London weather\" into Google)\n\n\ud83d\udca1 **Quick tip**: If you're asking *right now*, London's weather varies by location and time of day. For example: \n- As of my last training data (July 2024), London had average summer temps around **18\u201325\u00b0C** and light winds (5\u201315 km/h), but **real-time conditions can change rapidly**.\n\nLet me know if you'd help with something else! \ud83d\ude0a<|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3-4B-Thinking-2507",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [],+ "context": {}+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n",+ "completion": "Okay, the user is asking for the current temperature and wind speed in London. Hmm, this seems straightforward but I need to be careful. \n\nFirst, I should check if I have real-time data access. As an AI, I don't have live internet browsing capabilities - that's a key limitation I must acknowledge upfront to avoid misleading them. \n\nThe user might be planning an outdoor activity, checking weather for travel, or just curious. Since they specified London, they're probably in the UK or planning to visit. I wonder if they need more context - like whether they want hourly forecasts or just the current moment. \n\nI recall that reliable weather services like Weather.com or Met Office would have this data. But since I can't pull live data, I should: \n1) Clearly state I can't provide real-time info \n2) Suggest official sources they can check themselves \n3) Offer to help with general weather knowledge if they want \n\nAlso important to phrase this politely - don't want to sound like I'm dismissing their question. Maybe add that \"if you're in a hurry\" bit to show understanding of their possible need for quick answers. \n\nShould I mention specific apps? Yes, listing a few (AccuWeather, Weather.com) makes it actionable. The Met Office is especially relevant for UK users since it's the national service. \n\n...Wait, is there any chance they meant London, UK vs London, England? No, in this context it's clearly the city. \n\nFinal thought: Keep it helpful but honest about limitations. No fake data - that'd be irresponsible.\n</think>\n\nI don't have real-time internet access or live weather data capabilities, so I **can't provide the current temperature or wind speed in London right now**. Weather changes constantly, and I don't have live updates from the web.\n\nFor the most accurate and up-to-date information, I strongly recommend checking one of these reliable sources:\n\n1. **The UK Met Office** (official source for UK weather): \n [https://www.metoffice.gov.uk/weather](https://www.metoffice.gov.uk/weather) \n *(This is the most authoritative source for London weather)*\n\n2. **AccuWeather**: \n [https://www.accuweather.com/en/gb/london/ldn/253616](https://www.accuweather.com/en/gb/london/ldn/253616)\n\n3. **Weather.com (The Weather Channel)**: \n [https://weather.com/weather/today/l/ukgbldn](https://weather.com/weather/today/l/ukgbldn)\n\n4. **Your phone's weather app** (e.g., Apple Weather, Google Weather, or the Met Office app).\n\nIf you're in a hurry, you can quickly check the Met Office website or a weather app for the current conditions in London. Let me know if you'd like help interpreting weather forecasts or general climate tips for London! \ud83d\ude0a<|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3-4B-Thinking-2507",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n",+ "completion": "Okay, let's see. The user is asking for the current temperature and wind speed in London.\n\nFirst, I need to check the tools provided. The only tool available is get_current_temperature. Wait, the tool's description says it gets the current temperature at a location, but the user also mentioned wind speed. Hmm, the tool doesn't have a parameter for wind speed. The function parameters are location (with city and country) and unit. So maybe the tool doesn't provide wind speed at all.\n\nWait, the user is asking for two things: temperature and wind speed. But the available tool only gives temperature. So I can't get wind speed with the provided functions. I should inform the user that wind speed isn't supported by the current tools.\n\nLet me check the tool definition again. The function get_current_temperature returns a number (temperature). There's no mention of wind speed in the tool's parameters or description. So the assistant can't retrieve wind speed with the given tools.\n\nSo the response should be that the temperature can be retrieved, but wind speed isn't available through the current functions. I need to call the get_current_temperature function for London, UK, and specify the unit. The user didn't specify the unit, but maybe default to Celsius since it's commonly used in the UK. Wait, the tool requires a unit parameter with enum celsius or fahrenheit. The user didn't specify, so I should choose one. Maybe celsius is safer here.\n\nWait, the user is asking for \"current temperature and wind speed\". Since the tool doesn't handle wind speed, I'll have to mention that. Let me structure the response: first, try to get the temperature, then state that wind speed isn't supported.\n\nSo the tool call would be for get_current_temperature with location city: London, country: United Kingdom, unit: celsius.\n\nWait, the country parameter is a string. The country for London is the UK, so \"United Kingdom\" or \"UK\"? The tool says country name, so probably \"United Kingdom\".\n\nSo the arguments would be {\"location\": {\"city\": \"London\", \"country\": \"United Kingdom\"}, \"unit\": \"celsius\"}.\n\nI need to make sure that the country is correctly specified. London is in the UK, so country is United Kingdom.\n\nSo the tool call is correct. Then, after getting the temperature, the assistant will say that wind speed isn't available with the current tools.\n</think>\n\n<tool_call>\n{\"name\": \"get_current_temperature\", \"arguments\": {\"location\": {\"city\": \"London\", \"country\": \"United Kingdom\"}, \"unit\": \"celsius\"}}\n</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "Qwen/Qwen3-4B-Thinking-2507",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n",+ "completion": "Okay, the user is asking for the current temperature and wind speed in London. Let me check the tools provided.\n\nHmm, looking at the tools section, there's only one function called get_current_wind_speed. It gets the wind speed in km/h for a location in \"City, Country\" format. But the user is also asking for temperature, which isn't covered by any of the available tools. \n\nWait, the problem says I can call one or more functions. But the tools given don't include a temperature function. So I can only get the wind speed. The user asked for two things, but since temperature isn't supported by the provided tools, I should mention that I can't retrieve temperature.\n\nI need to respond that I can get the wind speed but not the temperature. Let me structure the answer. First, call the get_current_wind_speed function for London, UK. The location parameter should be \"London, United Kingdom\". Wait, the example says \"City, Country\", so maybe \"London, United Kingdom\" is correct. But sometimes countries have different names, but in this context, the user said London, so I'll go with that.\n\nWait, the function's parameters require \"City, Country\" format. So London is the city, and the country is United Kingdom. So the location string is \"London, United Kingdom\".\n\nI should make a tool call for that. Then, since there's no temperature function, I'll have to state that temperature isn't available through the current tools.\n\nSo the tool call would be get_current_wind_speed with location \"London, United Kingdom\". Then in the response, mention that wind speed can be provided but temperature isn't supported.\n</think>\n\n<tool_call>\n{\"name\": \"get_current_wind_speed\", \"arguments\": {\"location\": \"London, United Kingdom\"}}\n</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "Qwen/Qwen3-4B-Thinking-2507",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n",+ "completion": "Okay, let's see. The user is asking for the current temperature and wind speed in London. I need to figure out which functions to use here.\n\nFirst, there's the get_current_temperature function. It requires location with city and country, and a unit. London is a city in the UK, so country would be United Kingdom. The unit isn't specified, but maybe I should default to Celsius since that's common in the UK. Wait, but the user didn't specify the unit. Hmm, the function has an enum for unit: celsius or fahrenheit. Maybe I should pick one, but the user might expect Celsius. Let me check the function parameters again. The required fields for get_current_temperature are location (with city and country) and unit. So I need to specify the unit. Since the user didn't say, I'll go with celsius as it's standard in most places for such queries.\n\nThen, the get_current_wind_speed function takes a location in the format \"City, Country\". So for London, it would be \"London, United Kingdom\". The function returns wind speed in km/h.\n\nWait, the user said \"London\" but the country is United Kingdom. So for the temperature function, the location object needs city and country. So in the temperature call, location.city is \"London\", location.country is \"United Kingdom\". For the wind speed, the location string is \"London, United Kingdom\".\n\nLet me structure the tool calls.\n\nFirst tool call: get_current_temperature with location: {city: \"London\", country: \"United Kingdom\"}, unit: \"celsius\".\n\nSecond tool call: get_current_wind_speed with location: \"London, United Kingdom\".\n\nI need to make sure the parameters are correctly formatted. The wind speed function expects the location as a string in \"City, Country\" format, so \"London, United Kingdom\" (with a comma and space).\n\nWait, the country name for London is United Kingdom, right? Yes.\n\nSo two tool calls needed here.\n</think>\n\n<tool_call>\n{\"name\": \"get_current_temperature\", \"arguments\": {\"location\": {\"city\": \"London\", \"country\": \"United Kingdom\"}, \"unit\": \"celsius\"}}\n</tool_call>\n\n<tool_call>\n{\"name\": \"get_current_wind_speed\", \"arguments\": {\"location\": \"London, United Kingdom\"}}\n</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_temperature",+ "get_current_wind_speed"+ ]+ }+ }+]\ No newline at end of filediff --git a/workspace/data/responses/Qwen_Qwen3-4B.json b/workspace/data/responses/Qwen_Qwen3-4B.jsonnew file mode 100644index 000000000..0f688c6ee--- /dev/null+++ b/workspace/data/responses/Qwen_Qwen3-4B.json@@ -0,0 +1,1636 @@+[+ {+ "repo_id": "Qwen/Qwen3-4B",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": null,+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>\nOkay, the user is asking for the current temperature in London. First, I need to figure out the best way to get this information. Since I can't access real-time data, I can't provide the current temperature directly. But I should explain that and maybe suggest how they can find it.\n\nWait, but maybe they want me to use an API or some method. However, I don't have access to live data. So I should inform them that I can't give real-time info. But I can tell them where to check, like a weather website or app. Also, maybe mention that if they want, I can explain how to check it themselves. \n\nAlternatively, if they're looking for an approximate or historical temperature, I could provide that, but the question specifically says \"current,\" so that's not helpful. I should make sure to clarify that I can't provide real-time data and suggest alternative methods. Also, maybe mention that if they need help with something else, I can assist. Need to keep the response helpful and not leave them hanging.\n</think>\n\nI currently don't have access to real-time data, so I can't provide the current temperature in London. However, you can check the weather using a weather website, app, or search engine for the most up-to-date information. Let me know if you'd like help finding a reliable source!<|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3-4B",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": null,+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "As of the latest update, the current temperature in London is **16\u00b0C (60.8\u00b0F)**. This is a general estimate and can vary depending on the specific location within London and the time of day. For the most accurate and up-to-date information, I recommend checking a real-time weather service or app like Weather.com, AccuWeather, or the Met Office website.<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3-4B",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>\nOkay, the user is asking for the current temperature in London. I need to figure out the best way to provide this information. First, I should check if I have access to real-time data. Since I can't browse the internet, I don't have live data, so I can't give the exact current temperature. But I can tell them how to find it.\n\nI should mention that they can check a reliable weather website or app like Weather.com, AccuWeather, or the Met Office, which is the UK's official weather service. Also, maybe suggest checking a search engine like Google for the latest update. It's important to note that the temperature can vary throughout the day, so maybe mention checking the time of day they're asking. \n\nWait, the user didn't specify a time, so I should be general. Also, maybe add that London has different regions, like London Eye or the suburbs, which might have slightly different temperatures. But I should keep it simple. Let me structure the response: explain I can't provide real-time data, suggest reliable sources, and maybe mention that temperatures can change quickly. That should cover it without giving incorrect information.\n</think>\n\nAs of my knowledge cutoff in October 2023, I cannot provide real-time weather data. For the current temperature in London, I recommend checking a reliable weather service like the **Met Office** (UK's official weather service) or apps like **AccuWeather**, **Weather.com**, or **Google Maps**. These sources will give you the most up-to-date and accurate information based on your location and the time of day. Let me know if you'd like help finding the latest update!<|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3-4B",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "I don't have real-time data access, so I can't provide the current temperature in London. However, you can check the current weather in London using a weather website, app, or search engine. Would you like me to help you find a reliable source?<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3-4B",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>\nOkay, the user is asking for the current temperature in London. I need to use the get_current_temperature function. Let me check the parameters required. The function needs a location object with city and country, and a unit. The user didn't specify the unit, so I should default to celsius since it's commonly used in the UK. Wait, but sometimes people in the UK might use Fahrenheit. Hmm, maybe I should check if the function has a default unit. Looking back, the required parameters are location and unit. Oh, the unit is required, so I need to specify it. Since the user didn't mention, maybe I should ask for clarification. But the instructions say to call the function if possible. Alternatively, maybe the function expects the user to specify, but since it's required, I have to choose. Maybe use celsius as the default. So the location is London, country is United Kingdom. Unit is celsius. Let me structure the tool call accordingly.\n</think>\n\n<tool_call>\n{\"name\": \"get_current_temperature\", \"arguments\": {\"location\": {\"city\": \"London\", \"country\": \"United Kingdom\"}, \"unit\": \"celsius\"}}\n</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "Qwen/Qwen3-4B",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "To provide you with the current temperature in London, I need to know whether you want the temperature in Celsius or Fahrenheit. Could you please specify the unit you prefer?<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "Qwen/Qwen3-4B",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>\nOkay, the user is asking for the current temperature in London. Let me check the tools provided. The only function available is get_current_wind_speed, which retrieves wind speed, not temperature. Since there's no function for temperature, I can't provide that info. I should inform the user that I don't have access to temperature data and suggest they check a weather service for that information.\n</think>\n\nI don't have access to current temperature data. However, I can tell you the current wind speed in London if you'd like. Would you like that information instead?<|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3-4B",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "I cannot retrieve the current temperature as I don't have access to real-time weather data. However, I can help you find the wind speed in London if you'd like. Would you like that information?<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3-4B",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>\nOkay, the user is asking for the current temperature in London. Let me check the available functions. There's get_current_temperature which requires location (city and country) and unit. The user didn't specify the unit, so I should probably default to celsius since it's commonly used in the UK. I need to call that function with city as London and country as United Kingdom. The other function is for wind speed, which isn't needed here. So I'll generate the tool call with those parameters.\n</think>\n\n<tool_call>\n{\"name\": \"get_current_temperature\", \"arguments\": {\"location\": {\"city\": \"London\", \"country\": \"United Kingdom\"}, \"unit\": \"celsius\"}}\n</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "Qwen/Qwen3-4B",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "<tool_call>\n{\"name\": \"get_current_temperature\", \"arguments\": {\"location\": {\"city\": \"London\", \"country\": \"United Kingdom\"}, \"unit\": \"celsius\"}}\n</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "Qwen/Qwen3-4B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": null,+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>\nOkay, the user is asking for the current wind speed in London. Let me think about how to approach this.\n\nFirst, I need to check if I have access to real-time data. Since I'm an AI, I don't have live internet connections, so I can't fetch the latest wind speed information. I remember that my training data is up to 2023, so I can't provide data from after that. The current date is 2023, but the user is asking for the present day, which might be 2024. Wait, but I don't know the exact current date. Hmm, maybe I should mention that I can't provide real-time data.\n\nNext, I should explain that I can't access live weather information. Then, maybe suggest alternative ways the user can find the current wind speed. Like checking a reliable weather website or app. Also, mention that wind speed can vary depending on the location within London, so maybe suggest checking a specific area if they need more precise info.\n\nI should also be clear that I can't provide current data but can help with general information about wind speed or weather in London if needed. Make sure the response is helpful and guides them to the right resources without making up any data.\n</think>\n\nI currently don't have access to real-time data or live weather updates, so I can't provide the current wind speed in London. For the most accurate and up-to-date information, I recommend checking a reliable weather service like the **UK Met Office** (https://www.metoffice.gov.uk) or a weather app like Weather.com, AccuWeather, or a local London weather website. \n\nWind speed can vary depending on the specific location within London, so you might want to check a specific area (e.g., London Eye, South Bank, or a particular borough) for more precise details. Let me know if you'd like help with general weather-related information! \ud83c\udf2c\ufe0f<|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3-4B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": null,+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "As of the latest available data, the current wind speed in London is approximately **12 to 15 km/h (7 to 9 mph)**. However, wind speeds can vary significantly depending on the specific location within London and the time of day. For the most accurate and up-to-date information, I recommend checking a reliable weather service like the **Met Office** or a weather app such as **AccuWeather** or **Weather.com**. Would you like me to help you find the current wind speed using a specific source?<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3-4B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>\nOkay, the user is asking for the current wind speed in London. First, I need to figure out how to get that information. Since I can't access real-time data, I should explain that I don't have live updates. But maybe I can suggest where they can find it. Let me think... Weather websites like AccuWeather or The Weather Channel have real-time data. Also, the UK Met Office is a reliable source. Maybe mention checking those sites. Alternatively, apps like Weather.com or Foreca. Oh, and some local news outlets might have the latest weather updates. I should also mention that wind speed can vary by location within London, so maybe check a specific area if needed. Make sure to be clear that I can't provide live data but can guide them to the right resources. Keep the response helpful and straightforward.\n</think>\n\nI currently don't have access to real-time data, so I can't provide the exact current wind speed in London. However, you can check the latest weather information using the following resources:\n\n1. **UK Met Office** (https://www.metoffice.gov.uk) \u2013 A trusted source for UK weather forecasts and real-time data. \n2. **AccuWeather** (https://www.accuweather.com) \u2013 Offers detailed wind speed and weather updates. \n3. **Weather.com** (https://www.weather.com) \u2013 Provides real-time weather data, including wind speed. \n4. **Local news outlets** (e.g., BBC Weather, The Guardian) \u2013 Often include current weather updates. \n\nFor the most accurate and up-to-date information, check one of these platforms. Let me know if you'd like help finding a specific link! \ud83c\udf2c\ufe0f<|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3-4B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "As of the latest available information, the current wind speed in London can vary depending on the specific location and weather conditions. For the most accurate and up-to-date wind speed, I recommend checking a reliable weather service or app such as the UK Met Office, Weather.com, or a local weather station.\n\nWould you like me to look up the current wind speed for you?<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3-4B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>\nOkay, the user is asking for the current wind speed in London. Let me check the tools available. The only tool provided is get_current_temperature, which retrieves the current temperature with parameters for location (city and country) and unit. The user's query is about wind speed, not temperature. Since the available tool doesn't include wind speed data, I can't fulfill this request. I need to inform the user that I don't have access to wind speed information and suggest they check a weather service that provides detailed weather data, including wind speed.\n</think>\n\nI don't have access to current wind speed data. The available tool only provides temperature information. You may want to check a weather service like Weather.com or AccuWeather for wind speed details in London.<|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3-4B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "None of the provided functions can be used to retrieve the current wind speed. The available function only retrieves the current temperature.<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3-4B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>\nOkay, the user is asking for the current wind speed in London. Let me check the tools available. There's a function called get_current_wind_speed that requires a location parameter in the format \"City, Country\". Since the user mentioned London, I need to specify the country as well. London is in the United Kingdom. So the location should be \"London, United Kingdom\". I'll call the function with that parameter.\n</think>\n\n<tool_call>\n{\"name\": \"get_current_wind_speed\", \"arguments\": {\"location\": \"London, United Kingdom\"}}\n</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "Qwen/Qwen3-4B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "<tool_call>\n{\"name\": \"get_current_wind_speed\", \"arguments\": {\"location\": \"London, United Kingdom\"}}\n</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "Qwen/Qwen3-4B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>\nOkay, the user is asking for the current wind speed in London. Let me check the tools available. There's a function called get_current_wind_speed that takes a location parameter in the format \"City, Country\". Since the user mentioned London, I need to specify the country as well. The country for London is the United Kingdom. So the location should be \"London, United Kingdom\". I'll call that function with that parameter. I don't need the temperature function here because the user isn't asking about temperature. Just the wind speed. Let me make sure the parameters are correctly formatted as per the function's requirements.\n</think>\n\n<tool_call>\n{\"name\": \"get_current_wind_speed\", \"arguments\": {\"location\": \"London, United Kingdom\"}}\n</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "Qwen/Qwen3-4B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "<tool_call>\n{\"name\": \"get_current_wind_speed\", \"arguments\": {\"location\": \"London, United Kingdom\"}}\n</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "Qwen/Qwen3-4B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": null,+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>\nOkay, the user is asking for the current temperature and wind speed in London. Let me think about how to approach this.\n\nFirst, I need to check if I have access to real-time data. Since I can't browse the internet, I don't have live information. The user might be expecting me to provide up-to-date data, but I can't fetch that. I should inform them that I can't retrieve current weather information.\n\nWait, maybe I can suggest they check a reliable weather service. Like the UK Met Office or a weather app. That's the best way to help them. I should also mention that if they need historical data or general weather tips, I can assist with that.\n\nI need to make sure my response is clear and helpful. Apologize for not being able to provide real-time data, then offer alternative solutions. Also, maybe mention that I can help with other weather-related questions if they have any. Let me structure that response.\n</think>\n\nI currently don\u2019t have access to real-time data, so I can\u2019t provide the current temperature or wind speed in London. For the most accurate and up-to-date information, I recommend checking a reliable weather service like the [UK Met Office](https://www.metoffice.gov.uk/) or a weather app like Weather.com, AccuWeather, or a local news outlet. \n\nIf you\u2019d like help with historical weather data, forecasts, or general weather tips, feel free to ask!<|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3-4B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": null,+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "I don't have access to real-time data, so I can't provide the current temperature or wind speed in London. However, you can check the latest weather information using a weather service like the UK Met Office, Weather.com, or a weather app on your phone. Would you like me to help you find a website or app to check the weather?<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3-4B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>\nOkay, the user is asking for the current temperature and wind speed in London. Let me figure out how to get that information.\n\nFirst, I need to check if I have access to real-time data. Since I can't browse the internet, I don't have live updates. But maybe I can use my existing knowledge up to July 2024. Wait, but the current date is July 2024, so I need to make sure my data is up to date. However, I can't access real-time data beyond my training cutoff. So I should inform the user that I can't provide live data and suggest checking a reliable source.\n\nAlternatively, if I can recall the most recent data from my training data, maybe I can give an approximate answer. But I need to be careful not to give outdated information. Since I can't check the current date, I should avoid providing specific numbers. Instead, I'll explain that I can't provide real-time data and recommend checking a weather service or app like AccuWeather, Weather.com, or the UK Met Office. That way, the user gets the most accurate and up-to-date information.\n\nAlso, I should make sure to mention that the weather can change quickly, so it's best to check the latest forecast. Maybe add a note about checking the weather before heading out. That should cover the user's needs without giving incorrect information.\n</think>\n\nI currently don't have access to real-time data or live weather updates. For the most accurate and up-to-date information on the temperature and wind speed in London, I recommend checking a reliable weather service or app like **AccuWeather**, **Weather.com**, or the **UK Met Office** (https://www.metoffice.gov.uk). These sources provide current forecasts and conditions tailored to London. \n\nWeather can change quickly, so it's always best to verify the latest details before heading outdoors! \ud83c\udf24\ufe0f<|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3-4B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "I don't have access to real-time data, so I can't provide the current temperature or wind speed in London. However, you can check the latest weather information using a weather service like the Met Office (https://www.metoffice.gov.uk/) or a weather app on your phone. Let me know if you'd like help finding the website or app!<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3-4B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>\nOkay, the user is asking for the current temperature and wind speed in London. Let me check the tools provided. The available function is get_current_temperature, which gives the temperature at a location with specified unit. But wait, the function only returns temperature, not wind speed. Hmm, the user is asking for two pieces of information. Since the tool I have can only get temperature, I need to inform them that I can't retrieve wind speed. But maybe I can still provide the temperature part. Let me make sure. The function parameters require city and country, so I'll use London, UK. The unit can be celsius or fahrenheit. The user didn't specify, so I'll default to celsius. But since the function is only for temperature, I should mention that wind speed isn't available through this tool. So my response will be to call the function for temperature and then note that wind speed isn't accessible with the current tools.\n</think>\n\nThe function provided only retrieves the current temperature, not wind speed. I can check the temperature in London for you, but I don't have access to wind speed data. Would you like me to proceed with the temperature check?<|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "Qwen/Qwen3-4B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "I cannot retrieve the current wind speed. However, I can provide the current temperature in London. Let me check that for you.<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "Qwen/Qwen3-4B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>\nOkay, the user is asking for both the current temperature and wind speed in London. Let me check the tools available. The only tool provided is get_current_wind_speed, which gives the wind speed in km/h for a location. There's no function for temperature. So I can't retrieve the temperature. I need to inform the user that I can only provide the wind speed and not the temperature. I should mention that the available tool is for wind speed and suggest they check a weather service for the temperature. Let me make sure to phrase it clearly and politely.\n</think>\n\nI don't have access to real-time temperature data, but I can tell you the current wind speed in London. Let me check that for you.\n\n<tool_call>\n{\"name\": \"get_current_wind_speed\", \"arguments\": {\"location\": \"London, UK\"}}\n</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "Qwen/Qwen3-4B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "I can provide the current wind speed in London. Let me check that for you.<|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "Qwen/Qwen3-4B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n",+ "completion": "<think>\nOkay, the user is asking for the current temperature and wind speed in London. Let me see which functions I need to use here.\n\nFirst, for the temperature, there's the get_current_temperature function. It requires the location (city and country) and the unit. Since the user didn't specify Celsius or Fahrenheit, maybe I should default to Celsius, but sometimes Fahrenheit is more common in the UK. Hmm, but the function allows specifying the unit. Wait, the user might expect the standard unit for the country. London is in the UK, which typically uses Celsius, but sometimes they might use Fahrenheit. Wait, actually, the UK switched to Celsius in 1980, so probably Celsius is better here. But maybe I should check if the function has a default. The parameters require the unit to be specified, so I need to include it. Let me note that.\n\nThen, for the wind speed, there's get_current_wind_speed. It takes a location as a string in \"City, Country\" format. So London, UK would be the location. That's straightforward.\n\nSo I need to make two function calls. First, get_current_temperature with location.city as London, location.country as UK, and unit as celsius. Then get_current_wind_speed with location as \"London, UK\".\n\nWait, but the user didn't specify the country. Wait, London is in the UK, so country is United Kingdom. But maybe the user just says London, but the function requires country. So I have to include that. So the parameters for the temperature function would be location.city: \"London\", location.country: \"United Kingdom\", unit: \"celsius\".\n\nAlternatively, maybe the country can be abbreviated as \"UK\"? The function's description says country name, so probably \"United Kingdom\" is better. But maybe the function can handle \"UK\" as well. But since the parameters require the country name, maybe it's safer to use the full name. However, the user didn't specify, but the function requires it. So I have to include it. So I'll go with \"United Kingdom\".\n\nSo the first tool call is get_current_temperature with those parameters. The second is get_current_wind_speed with location \"London, United Kingdom\".\n\nI need to make sure both functions are called. Then, once I get the data, I can present both the temperature and wind speed to the user.\n</think>\n\n<tool_call>\n{\"name\": \"get_current_temperature\", \"arguments\": {\"location\": {\"city\": \"London\", \"country\": \"United Kingdom\"}, \"unit\": \"celsius\"}}\n</tool_call>\n<tool_call>\n{\"name\": \"get_current_wind_speed\", \"arguments\": {\"location\": \"London, United Kingdom\"}}\n</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_temperature",+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "Qwen/Qwen3-4B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "<tool_call>\n{\"name\": \"get_current_temperature\", \"arguments\": {\"location\": {\"city\": \"London\", \"country\": \"United Kingdom\"}, \"unit\": \"celsius\"}}\n</tool_call>\n<tool_call>\n{\"name\": \"get_current_wind_speed\", \"arguments\": {\"location\": \"London, United Kingdom\"}}\n</tool_call><|im_end|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_temperature",+ "get_current_wind_speed"+ ]+ }+ }+]\ No newline at end of filediff --git a/workspace/data/responses/Qwen_Qwen3.5-0.8B.json b/workspace/data/responses/Qwen_Qwen3.5-0.8B.jsonnew file mode 100644index 000000000..9c5476a74--- /dev/null+++ b/workspace/data/responses/Qwen_Qwen3.5-0.8B.json@@ -0,0 +1,1636 @@+[+ {+ "repo_id": "Qwen/Qwen3.5-0.8B",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": null,+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n<think>\n",+ "completion": "Thinking Process:\n\n1. **Analyze the Request:** The user is asking for the current temperature in London.\n\n2. **Identify the Data Source:** I need to access my knowledge about current weather conditions in London.\n * *Self-Correction/Constraint:* I am an AI, and I don't have real-time access to live weather data unless it's provided in my training data or I have a specific tool to check. However, as a general AI, I should rely on my internal knowledge up to my cutoff, but I need to be careful not to hallucinate specific numbers if they are not in my training data.\n * *Wait:* I need to check if I have access to a specific tool or if I should simulate a response based on general knowledge.\n * *Correction:* I am an AI model. I don't have a live weather widget. I need to check my internal knowledge base.\n * *Fact Check:* My knowledge cutoff is up to 2026 (in the context of the prompt, but I need to be careful about the \"current\" aspect).\n * *Wait:* I need to check if there's a specific tool or if I should just state that I don't have real-time data.\n * *Wait:* Actually, I need to check if I have access to a specific tool. I don't have a live weather tool.\n * *Wait:* I need to check if I should just say \"I don't have real-time data\".\n * *Wait:* Actually, I need to check if I have access to a specific tool. I don't have a live weather tool.\n * *Wait:* I need to check if I should just say \"I don't have real-time data\".\n * *Wait:* Actually, I need to check if I have access to a specific tool. I don't have a live weather tool.\n * *Wait:* I need to check if I should just say \"I don't have real-time data\".\n * *Wait:* Actually, I need to check if I have access to a specific tool. I don't have a live weather tool.\n * *Wait:* I need to check if I should just say \"I don't have real-time data\".\n * *Wait:* Actually, I need to check if I have access to a specific tool. I don't have a live weather tool.\n * *Wait:* I need to check if I should just say \"I don't have real-time data\".\n * *Wait:* Actually, I need to check if I have access to a specific tool. I don't have a live weather tool.\n * *Wait:* I need to check if I should just say \"I don't have real-time data\".\n * *Wait:* Actually, I need to check if I have access to a specific tool. I don't have a live weather tool.\n * *Wait:* I need to check if I should just say \"I don't have real-time data\".\n * *Wait:* Actually, I need to check if I have access to a specific tool. I don't have a live weather tool.\n * *Wait:* I need to check if I should just say \"I don't have real-time data\".\n * *Wait:* Actually, I need to check if I have access to a specific tool. I don't have a live weather tool.\n * *Wait:* I need to check if I should just say \"I don't have real-time data\".\n * *Wait:* Actually, I need to check if I have access to a specific tool. I don't have a live weather tool.\n * *Wait:* I need to check if I should just say \"I don't have real-time data\".\n * *Wait:* Actually, I need to check if I have access to a specific tool. I don't have a live weather tool.\n * *Wait:* I need to check if I should just say \"I don't have real-time data\".\n * *Wait:* Actually, I need to check if I have access to a specific tool. I don't have a live weather tool.\n * *Wait:* I need to check if I should just say \"I don't have real-time data\".\n * *Wait:* Actually, I need to check if I have access to a specific tool. I don't have a live weather tool.\n * *Wait:* I need to check if I should just say \"I don't have real-time data\".\n * *Wait:* Actually, I need to check if I have access to a specific tool. I don't have a live weather tool.\n * *Wait:* I need to check if I should just say \"I don't have real-time data\".\n * *Wait:* Actually, I need to check if I have access to a specific tool. I don't have a live weather tool.\n * *Wait:* I need to check if I should just say \"I don't have real-time data\".\n * *Wait:* Actually, I need to check if I have access to a specific tool. I don't have a live weather tool.\n * *Wait:* I need to check if I should just say \"I don't have real-time data\".\n * *Wait:* Actually, I need to check if I have access to a specific tool. I don't have a live weather tool.\n * *Wait:* I need to check if I should just say \"I don't have real-time data\".\n * *Wait:* Actually, I need to check if I have access to a specific tool. I don't have a live weather tool.\n * *Wait:* I need to check if I should just say \"I don't have real-time data\".\n * *Wait:* Actually, I need to check if I have access to a specific tool. I don't have a live weather tool.\n * *Wait:* I need to check if I should just say \"I don't have real-time data\".\n * *Wait:* Actually, I need to check if I have access to a specific tool. I don't have a live weather tool.\n * *Wait:* I need to check if I should just say \"I don't have real-time data\".\n * *Wait:* Actually, I need to check if I have access to a specific tool. I don't have a live weather tool.\n * *Wait:* I need to check if I should just say \"I don't have real-time data\".\n * *Wait:* Actually, I need to check if I have access to a specific tool. I don't have a live weather tool.\n * *Wait:* I need to check if I should just say \"I don't have real-time data\".\n * *Wait:* Actually, I need to check if I have access to a specific tool. I don't have a live weather tool.\n * *Wait:* I need to check if I should just say \"I don't have real-time data\".\n * *Wait:* Actually, I need to check if I have access to a specific tool. I don't have a live weather tool.\n * *Wait:* I need to check if I should just say \"I don't have real-time data\".\n * *Wait:* Actually, I need to check if I have access to a specific tool. I don't have a live weather tool.\n * *Wait:* I need to check if I should just say \"I don't have real-time data\".\n * *Wait:* Actually, I need to check if I have access to a specific tool. I don't have a live weather tool.\n * *Wait:* I need to check if I should just say \"I don't have real-time data\".\n * *Wait:* Actually, I need to check if I have access to a specific tool. I don't have a live weather tool.\n * *Wait:* I need to check if I should just say \"I don't have real-time data\".\n * *Wait:* Actually, I need to check if I have access to a specific tool. I don't have a live weather tool.\n * *Wait:* I need to check if I should just say \"I don't have real-time data\".\n * *Wait:* Actually, I need to check if I have access to a specific tool. I don't have a live weather tool.\n * *Wait:* I need to check if I should just say \"I don't have real-time data\".\n * *Wait:* Actually, I need to check if I have access to a specific tool. I don't have a live weather tool.\n * *Wait:* I need to check if I should just say \"I don't have real-time data\".\n * *Wait:* Actually, I need to check if I have access to a specific tool. I don't have a live weather tool.\n * *Wait:* I need to check if I should just say \"I don't have real-time data\".\n * *Wait:* Actually, I need to check if I have access to a specific tool. I don't have a live weather tool.\n * *Wait:* I need to check if I"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3.5-0.8B",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": null,+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "The current temperature in London is **18\u00b0C (64\u00b0F)**.\n\nThis reading is based on the latest data from the Met Office, which is the primary weather service for the UK. While specific local conditions can vary slightly depending on the exact location within London (such as the difference between the north and south of the city), 18\u00b0C is the standard average temperature for the capital during the current week.\n\nFor the most up-to-date and precise forecast, it is always best to check the official Met Office website or a weather app like Weather.com.<|im_end|>\n<|endoftext|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3.5-0.8B",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n<think>\n",+ "completion": "Thinking Process:\n\n1. **Analyze the Request:** The user is asking for the current temperature in London.\n\n2. **Identify the Data Source:** I need to access my knowledge about current weather conditions in London.\n * *Self-Correction/Constraint:* I am an AI, and I don't have real-time access to live weather data unless it's provided in my training data or I have a specific tool to check. However, as a general AI, I should rely on my internal knowledge up to my cutoff, but I need to be careful not to hallucinate specific numbers if they are not in my training data.\n * *Wait:* I need to check if I have access to a specific tool or if I should simulate a response based on general knowledge.\n * *Correction:* I am an AI model. I don't have a live weather widget. I need to check my internal knowledge base.\n * *Fact Check:* My knowledge cutoff is up to 2026 (in the context of the prompt, but I need to be careful about the \"current\" aspect).\n * *Wait:* I need to check if there's a specific tool or if I should just state that I don't have real-time data.\n * *Wait:* Actually, I need to check if I have access to a specific tool. I don't have a live weather tool.\n * *Wait:* I need to check if I should just say \"I don't have real-time data\".\n * *Wait:* Actually, I need to check if I have access to a specific tool. I don't have a live weather tool.\n * *Wait:* I need to check if I should just say \"I don't have real-time data\".\n * *Wait:* Actually, I need to check if I have access to a specific tool. I don't have a live weather tool.\n * *Wait:* I need to check if I should just say \"I don't have real-time data\".\n * *Wait:* Actually, I need to check if I have access to a specific tool. I don't have a live weather tool.\n * *Wait:* I need to check if I should just say \"I don't have real-time data\".\n * *Wait:* Actually, I need to check if I have access to a specific tool. I don't have a live weather tool.\n * *Wait:* I need to check if I should just say \"I don't have real-time data\".\n * *Wait:* Actually, I need to check if I have access to a specific tool. I don't have a live weather tool.\n * *Wait:* I need to check if I should just say \"I don't have real-time data\".\n * *Wait:* Actually, I need to check if I have access to a specific tool. I don't have a live weather tool.\n * *Wait:* I need to check if I should just say \"I don't have real-time data\".\n * *Wait:* Actually, I need to check if I have access to a specific tool. I don't have a live weather tool.\n * *Wait:* I need to check if I should just say \"I don't have real-time data\".\n * *Wait:* Actually, I need to check if I have access to a specific tool. I don't have a live weather tool.\n * *Wait:* I need to check if I should just say \"I don't have real-time data\".\n * *Wait:* Actually, I need to check if I have access to a specific tool. I don't have a live weather tool.\n * *Wait:* I need to check if I should just say \"I don't have real-time data\".\n * *Wait:* Actually, I need to check if I have access to a specific tool. I don't have a live weather tool.\n * *Wait:* I need to check if I should just say \"I don't have real-time data\".\n * *Wait:* Actually, I need to check if I have access to a specific tool. I don't have a live weather tool.\n * *Wait:* I need to check if I should just say \"I don't have real-time data\".\n * *Wait:* Actually, I need to check if I have access to a specific tool. I don't have a live weather tool.\n * *Wait:* I need to check if I should just say \"I don't have real-time data\".\n * *Wait:* Actually, I need to check if I have access to a specific tool. I don't have a live weather tool.\n * *Wait:* I need to check if I should just say \"I don't have real-time data\".\n * *Wait:* Actually, I need to check if I have access to a specific tool. I don't have a live weather tool.\n * *Wait:* I need to check if I should just say \"I don't have real-time data\".\n * *Wait:* Actually, I need to check if I have access to a specific tool. I don't have a live weather tool.\n * *Wait:* I need to check if I should just say \"I don't have real-time data\".\n * *Wait:* Actually, I need to check if I have access to a specific tool. I don't have a live weather tool.\n * *Wait:* I need to check if I should just say \"I don't have real-time data\".\n * *Wait:* Actually, I need to check if I have access to a specific tool. I don't have a live weather tool.\n * *Wait:* I need to check if I should just say \"I don't have real-time data\".\n * *Wait:* Actually, I need to check if I have access to a specific tool. I don't have a live weather tool.\n * *Wait:* I need to check if I should just say \"I don't have real-time data\".\n * *Wait:* Actually, I need to check if I have access to a specific tool. I don't have a live weather tool.\n * *Wait:* I need to check if I should just say \"I don't have real-time data\".\n * *Wait:* Actually, I need to check if I have access to a specific tool. I don't have a live weather tool.\n * *Wait:* I need to check if I should just say \"I don't have real-time data\".\n * *Wait:* Actually, I need to check if I have access to a specific tool. I don't have a live weather tool.\n * *Wait:* I need to check if I should just say \"I don't have real-time data\".\n * *Wait:* Actually, I need to check if I have access to a specific tool. I don't have a live weather tool.\n * *Wait:* I need to check if I should just say \"I don't have real-time data\".\n * *Wait:* Actually, I need to check if I have access to a specific tool. I don't have a live weather tool.\n * *Wait:* I need to check if I should just say \"I don't have real-time data\".\n * *Wait:* Actually, I need to check if I have access to a specific tool. I don't have a live weather tool.\n * *Wait:* I need to check if I should just say \"I don't have real-time data\".\n * *Wait:* Actually, I need to check if I have access to a specific tool. I don't have a live weather tool.\n * *Wait:* I need to check if I should just say \"I don't have real-time data\".\n * *Wait:* Actually, I need to check if I have access to a specific tool. I don't have a live weather tool.\n * *Wait:* I need to check if I should just say \"I don't have real-time data\".\n * *Wait:* Actually, I need to check if I have access to a specific tool. I don't have a live weather tool.\n * *Wait:* I need to check if I should just say \"I don't have real-time data\".\n * *Wait:* Actually, I need to check if I have access to a specific tool. I don't have a live weather tool.\n * *Wait:* I need to check if I should just say \"I don't have real-time data\".\n * *Wait:* Actually, I need to check if I have access to a specific tool. I don't have a live weather tool.\n * *Wait:* I need to check if I should just say \"I don't have real-time data\".\n * *Wait:* Actually, I need to check if I have access to a specific tool. I don't have a live weather tool.\n * *Wait:* I need to check if I should just say \"I don't have real-time data\".\n * *Wait:* Actually, I need to check if I have access to a specific tool. I don't have a live weather tool.\n * *Wait:* I need to check if I"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3.5-0.8B",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "The current temperature in London is **18\u00b0C (64\u00b0F)**.\n\nThis reading is based on the latest data from the Met Office, which is the primary weather service for the UK. While specific local conditions can vary slightly depending on the exact location within London (such as the difference between the north and south of the city), 18\u00b0C is the standard average temperature for the capital during the current week.\n\nFor the most up-to-date and precise forecast, it is always best to check the official Met Office website or a weather app like Weather.com.<|im_end|>\n<|endoftext|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3.5-0.8B",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n# Tools\n\nYou have access to the following functions:\n\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n</tools>\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT><|im_end|>\n<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n<think>\n",+ "completion": "The user is asking for the current temperature in London. I can see there's a tool called \"get_current_temperature\" that can help with this. Looking at the parameters:\n\n- location: requires city and country\n- unit: requires unit (celsius or fahrenheit)\n\nFor London, I need to determine the country. London is in the United Kingdom, so the country would be \"United Kingdom\" or \"UK\". I'll use \"United Kingdom\" as it's the most common representation.\n\nLet me make the tool call to get the current temperature.\n</think>\n\n<tool_call>\n<function=get_current_temperature>\n<parameter=location>\n{\"city\": \"London\", \"country\": \"United Kingdom\"}\n</parameter>\n<parameter=unit>\ncelsius\n</parameter>\n</function>\n</tool_call><|im_end|>\n<|endoftext|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "Qwen/Qwen3.5-0.8B",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n# Tools\n\nYou have access to the following functions:\n\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n</tools>\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT><|im_end|>\n<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "<tool_call>\n<function=get_current_temperature>\n<parameter=location>\n{\"city\": \"London\", \"country\": \"UK\"}\n</parameter>\n<parameter=unit>\ncelsius\n</parameter>\n</function>\n</tool_call><|im_end|>\n<|endoftext|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "Qwen/Qwen3.5-0.8B",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n# Tools\n\nYou have access to the following functions:\n\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT><|im_end|>\n<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n<think>\n",+ "completion": "The user is asking for the current temperature in London. I have a tool called \"get_current_wind_speed\" that can get the current wind speed in km/h at a given location. However, this tool is specifically for wind speed, not temperature.\n\nI don't see a tool that can get the current temperature. The available tools only provide wind speed information. Since I don't have a tool to get temperature, I should let the user know that I don't have the information I need.\n\nActually, let me check if there's any other tool I can use. Looking at the available tools, I only have one tool: \"get_current_wind_speed\". This tool requires a location parameter in the format \"City, Country\".\n\nSince I don't have a tool to get temperature, I should inform the user that I don't have the information I need. However, I could try to use the get_current_wind_speed tool with London as the location, but that would give me wind speed, not temperature.\n\nLet me check if there's any other way to get temperature information. The user is asking for temperature, but I only have wind speed information. I should inform the user that I don't have a tool to get temperature.\n\nActually, I should be honest about this limitation. I don't have a tool that can provide temperature information. I can only provide wind speed information.\n</think>\n\nI don't have a tool that can provide temperature information. I can only access wind speed data for locations.\n\nTo get the current temperature in London, I would need to use a different tool or method. The available tools I have access to are:\n\n- **get_current_wind_speed**: This tool can provide the current wind speed in km/h at a given location, but it doesn't provide temperature information.\n\nIf you're looking for temperature data, I would need to use a different tool or method. Is there another tool or method I can help you with?<|im_end|>\n<|endoftext|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3.5-0.8B",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n# Tools\n\nYou have access to the following functions:\n\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT><|im_end|>\n<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "<tool_call>\n<function=get_current_wind_speed>\n<parameter=location>\nLondon, UK\n</parameter>\n</function>\n</tool_call><|im_end|>\n<|endoftext|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3.5-0.8B",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n# Tools\n\nYou have access to the following functions:\n\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT><|im_end|>\n<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n<think>\n",+ "completion": "The user is asking for the current temperature in London. I can see there's a function called \"get_current_temperature\" that can help with this. Looking at the function parameters, I need:\n- location: city and country (required)\n- unit: celsius or fahrenheit (required)\n\nFor London, I need to use the city name \"London\" and country name \"United Kingdom\" (or \"UK\" or \"United Kingdom\" - I'll use \"United Kingdom\" as it's the standard country name). The unit is not specified, so I'll use \"celsius\" as it's the default.\n\nLet me make the function call.\n</think>\n\n<tool_call>\n<function=get_current_temperature>\n<parameter=location>\n{\"city\": \"London\", \"country\": \"United Kingdom\"}\n</parameter>\n<parameter=unit>\ncelsius\n</parameter>\n</function>\n</tool_call><|im_end|>\n<|endoftext|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "Qwen/Qwen3.5-0.8B",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n# Tools\n\nYou have access to the following functions:\n\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT><|im_end|>\n<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "<tool_call>\n<function=get_current_temperature>\n<parameter=location>\nLondon, UK\n</parameter>\n<parameter=unit>\ncelsius\n</parameter>\n</function>\n</tool_call><|im_end|>\n<|endoftext|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "Qwen/Qwen3.5-0.8B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": null,+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n",+ "completion": "Thinking Process:\n\n1. **Analyze the Request:** The user is asking for the current wind speed in London.\n\n2. **Identify the Data Source:** I need to access my knowledge about current weather conditions in London.\n * *Self-Correction/Constraint:* I am an AI, I don't have real-time access to live weather data unless it's provided in my training data or I can simulate a search. However, as a general AI, I should be aware that I don't have live access to the internet.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Correction:* I am a text-based AI. I don't have a live weather widget. I cannot browse the live web in real-time.\n * *Wait:* I need to check if there's a specific tool or if I should ask the user.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge."+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3.5-0.8B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": null,+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "The current wind speed in London is approximately **10\u201312 mph (16\u201319 km/h)**.\n\nThis figure is based on the latest data from the **UK Met Office** and the **UK Weather Service**, which are the primary sources for meteorological data in the UK. These agencies update their forecasts and wind speeds regularly, typically every 24 hours.\n\nFor the most up-to-date information, it is always best to check the official UK Weather Service website or the Met Office app, as conditions can change rapidly.<|im_end|>\n<|endoftext|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3.5-0.8B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n",+ "completion": "Thinking Process:\n\n1. **Analyze the Request:** The user is asking for the current wind speed in London.\n\n2. **Identify the Data Source:** I need to access my knowledge about current weather conditions in London.\n * *Self-Correction/Constraint:* I am an AI, I don't have real-time access to live weather data unless it's provided in my training data or I can simulate a search. However, as a general AI, I should be aware that I don't have live access to the internet.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Correction:* I am a text-based AI. I don't have a live weather widget. I cannot browse the live web in real-time.\n * *Wait:* I need to check if there's a specific tool or if I should ask the user.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge.\n * *Wait:* I need to check if I have access to a specific tool or if I should rely on general knowledge."+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3.5-0.8B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "The current wind speed in London is approximately **10\u201312 mph (16\u201319 km/h)**.\n\nThis figure is based on the latest data from the **UK Met Office** and the **UK Weather Service**, which are the primary sources for meteorological data in the UK. These agencies update their forecasts and wind speeds regularly, typically every 24 hours.\n\nFor the most up-to-date information, it is always best to check the official UK Weather Service website or the Met Office app, as conditions can change rapidly.<|im_end|>\n<|endoftext|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3.5-0.8B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n# Tools\n\nYou have access to the following functions:\n\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n</tools>\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT>\n\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n",+ "completion": "The user is asking for the current wind speed in London. I have a tool called `get_current_temperature` that can get the current temperature at a location, but it requires a city and country parameter. However, this tool doesn't seem to have a parameter for wind speed.\n\nLet me check if there's another tool that might help. I see there's a `get_current_temperature` tool, but it's specifically for temperature, not wind speed.\n\nLooking at the available tools, I don't see a direct way to get wind speed. The `get_current_temperature` tool only gets temperature, not wind speed.\n\nI should inform the user that I don't have a tool that can provide wind speed information, but I can help with temperature information if they're interested.\n\nActually, let me reconsider. The user is asking for wind speed, but I only have temperature-related tools. I should explain this limitation to the user.\n</think>\n\nI don't have a tool that can directly provide wind speed information. However, I can help you get the current temperature in London if you're interested in that.\n\n<tool_call>\n<function=get_current_temperature>\n<parameter=location>\n{\"city\": \"London\", \"country\": \"United Kingdom\"}\n</parameter>\n<parameter=unit>\ncelsius\n</parameter>\n</function>\n</tool_call><|im_end|>\n<|endoftext|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3.5-0.8B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n# Tools\n\nYou have access to the following functions:\n\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n</tools>\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT>\n\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "<tool_call>\n<function=get_current_temperature>\n<parameter=location>\n{\"city\": \"London\", \"country\": \"UK\"}\n</parameter>\n<parameter=unit>\ncelsius\n</parameter>\n</function>\n</tool_call><|im_end|>\n<|endoftext|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3.5-0.8B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n# Tools\n\nYou have access to the following functions:\n\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT>\n\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n",+ "completion": "The user is asking for the current wind speed in London. I can see there's a function called \"get_current_wind_speed\" that can get the current wind speed in km/h at a given location. The location format should be \"City, Country\" as specified in the function description.\n\nFor London, the format would be \"London, United Kingdom\" or similar. Let me call this function with the location \"London, United Kingdom\".\n</think>\n\n<tool_call>\n<function=get_current_wind_speed>\n<parameter=location>\nLondon, United Kingdom\n</parameter>\n</function>\n</tool_call><|im_end|>\n<|endoftext|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "Qwen/Qwen3.5-0.8B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n# Tools\n\nYou have access to the following functions:\n\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT>\n\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "<tool_call>\n<function=get_current_wind_speed>\n<parameter=location>\nLondon, UK\n</parameter>\n</function>\n</tool_call><|im_end|>\n<|endoftext|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "Qwen/Qwen3.5-0.8B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n# Tools\n\nYou have access to the following functions:\n\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT>\n\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n",+ "completion": "The user is asking for the current wind speed in London. I need to use the get_current_wind_speed function, which requires a location in the format \"City, Country\". London is in the UK, so I'll use \"London, UK\" as the location.\n\nLet me call this function to get the wind speed.\n</think>\n\n<tool_call>\n<function=get_current_wind_speed>\n<parameter=location>\nLondon, UK\n</parameter>\n</function>\n</tool_call><|im_end|>\n<|endoftext|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "Qwen/Qwen3.5-0.8B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n# Tools\n\nYou have access to the following functions:\n\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT>\n\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "<tool_call>\n<function=get_current_wind_speed>\n<parameter=location>\nLondon, UK\n</parameter>\n</function>\n</tool_call><|im_end|>\n<|endoftext|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "Qwen/Qwen3.5-0.8B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": null,+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n",+ "completion": "Thinking Process:\n\n1. **Analyze the Request:**\n * User is asking for current temperature and wind speed in London.\n * The user wants the *current* data.\n * I need to check my knowledge base for real-time data.\n\n2. **Identify Limitations:**\n * I am an AI text model. I do not have real-time access to live weather data.\n * Weather data is dynamic and changes constantly.\n * I cannot browse the live web or access external APIs for real-time updates.\n\n3. **Formulate the Response:**\n * Acknowledge the request.\n * State clearly that I don't have access to real-time data.\n * Offer to provide information based on a specific time or date if the user provides it.\n * Suggest checking a weather app or website for the most accurate data.\n * (Optional but helpful) Mention that I can't give specific numbers right now.\n\n4. **Refine the Response:**\n * Keep it polite and helpful.\n * Ensure I don't hallucinate numbers.\n * Maybe mention that I can help with historical data if they want.\n\n5. **Final Decision:**\n * State that I don't have real-time access.\n * Ask the user to check a weather app or website.\n * Offer to help with historical data.\n\n6. **Self-Correction/Edge Case:**\n * Wait, is there a specific \"current\" time I should know? No, I don't have a specific \"now\" timestamp.\n * Is there a specific \"London\" location? Yes.\n * Is there a specific \"current\" time? No.\n * Okay, I will explain the limitation.\n\n7. **Drafting the response:**\n * \"I don't have access to real-time weather data.\"\n * \"I can provide information based on a specific date or time.\"\n * \"To get the most accurate data, please check a weather app or website.\"\n\n *Wait, I need to check if I can access any specific data.*\n * I am an AI. I don't have a \"current\" time.\n * I should not make up numbers.\n * I should be honest about the limitation.\n\n *Wait, I need to check if there's any specific constraint.*\n * The prompt asks \"What is the current temperature and wind speed in London?\".\n * I must answer honestly.\n\n *Wait, I need to check if I can access any specific data.*\n * I am an AI. I don't have real-time access.\n * I should not make up numbers.\n * I should be honest about the limitation.\n\n *Wait, I need to check if I can access any specific data.*\n * I am an AI. I don't have real-time access.\n * I should not make up numbers.\n * I should be honest about the limitation.\n\n *Wait, I need to check if I can access any specific data.*\n * I am an AI. I don't have real-time access.\n * I should not make up numbers.\n * I should be honest about the limitation.\n\n *Wait, I need to check if I can access any specific data.*\n * I am an AI. I don't have real-time access.\n * I should not make up numbers.\n * I should be honest about the limitation.\n\n *Wait, I need to check if I can access any specific data.*\n * I am an AI. I don't have real-time access.\n * I should not make up numbers.\n * I should be honest about the limitation.\n\n *Wait, I need to check if I can access any specific data.*\n * I am an AI. I don't have real-time access.\n * I should not make up numbers.\n * I should be honest about the limitation.\n\n *Wait, I need to check if I can access any specific data.*\n * I am an AI. I don't have real-time access.\n * I should not make up numbers.\n * I should be honest about the limitation.\n\n *Wait, I need to check if I can access any specific data.*\n * I am an AI. I don't have real-time access.\n * I should not make up numbers.\n * I should be honest about the limitation.\n\n *Wait, I need to check if I can access any specific data.*\n * I am an AI. I don't have real-time access.\n * I should not make up numbers.\n * I should be honest about the limitation.\n\n *Wait, I need to check if I can access any specific data.*\n * I am an AI. I don't have real-time access.\n * I should not make up numbers.\n * I should be honest about the limitation.\n\n *Wait, I need to check if I can access any specific data.*\n * I am an AI. I don't have real-time access.\n * I should not make up numbers.\n * I should be honest about the limitation.\n\n *Wait, I need to check if I can access any specific data.*\n * I am an AI. I don't have real-time access.\n * I should not make up numbers.\n * I should be honest about the limitation.\n\n *Wait, I need to check if I can access any specific data.*\n * I am an AI. I don't have real-time access.\n * I should not make up numbers.\n * I should be honest about the limitation.\n\n *Wait, I need to check if I can access any specific data.*\n * I am an AI. I don't have real-time access.\n * I should not make up numbers.\n * I should be honest about the limitation.\n\n *Wait, I need to check if I can access any specific data.*\n * I am an AI. I don't have real-time access.\n * I should not make up numbers.\n * I should be honest about the limitation.\n\n *Wait, I need to check if I can access any specific data.*\n * I am an AI. I don't have real-time access.\n * I should not make up numbers.\n * I should be honest about the limitation.\n\n *Wait, I need to check if I can access any specific data.*\n * I am an AI. I don't have real-time access.\n * I should not make up numbers.\n * I should be honest about the limitation.\n\n *Wait, I need to check if I can access any specific data.*\n * I am an AI. I don't have real-time access.\n * I should not make up numbers.\n * I should be honest about the limitation.\n\n *Wait, I need to check if I can access any specific data.*\n * I am an AI. I don't have real-time access.\n * I should not make up numbers.\n * I should be honest about the limitation.\n\n *Wait, I need to check if I can access any specific data.*\n * I am an AI. I don't have real-time access.\n * I should not make up numbers.\n * I should be honest about the limitation.\n\n *Wait, I need to check if I can access any specific data.*\n * I am an AI. I don't have real-time access.\n * I should not make up numbers.\n * I should be honest about the limitation.\n\n *Wait, I need to check if I can access any specific data.*\n * I am an AI. I don't have real-time access.\n * I should not make up numbers.\n * I should be honest about the limitation.\n\n *Wait, I need to check if I can access any specific data.*\n * I am an AI. I don't have real-time access.\n * I should not make up numbers.\n * I should be honest about the limitation.\n\n *Wait, I need to check if I can access any specific data.*\n * I am an AI. I don't have real-time access.\n * I should not make up numbers.\n * I should be honest about the limitation.\n\n *Wait, I need to check if I can access any specific data.*\n * I am an AI. I don't have real-time access.\n * I should not make up numbers.\n * I should be honest about the limitation.\n\n *Wait, I need to check if I can access any specific data.*\n * I am an AI. I don't have real-time access.\n * I should not make up numbers.\n * I should be honest about the limitation."+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3.5-0.8B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": null,+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "I don't have access to real-time weather data, so I can't provide the current temperature and wind speed in London. To get the most accurate and up-to-date information, I recommend checking:\n\n1. **Official sources**: Visit the **UK Met Office** website (www.ukm.com) or the **London Meteorological Department** (www.london.gov.uk) for current forecasts.\n2. **Weather apps**: Use apps like **Weather.com**, **AccuWeather**, or **Windy** to get live data.\n3. **Local news**: Check local news outlets for real-time updates.\n\nWould you like help finding a specific weather app or website to check?<|im_end|>\n<|endoftext|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3.5-0.8B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n",+ "completion": "Thinking Process:\n\n1. **Analyze the Request:**\n * User is asking for current temperature and wind speed in London.\n * The user wants the *current* data.\n * I need to check my knowledge base for real-time data.\n\n2. **Identify Limitations:**\n * I am an AI text model. I do not have real-time access to live weather data.\n * Weather data is dynamic and changes constantly.\n * I cannot browse the live web or access external APIs for real-time updates.\n\n3. **Formulate the Response:**\n * Acknowledge the request.\n * State clearly that I don't have access to real-time data.\n * Offer to provide information based on a specific time or date if the user provides it.\n * Suggest checking a weather app or website for the most accurate data.\n * (Optional but helpful) Mention that I can't give specific numbers right now.\n\n4. **Refine the Response:**\n * Keep it polite and helpful.\n * Ensure I don't hallucinate numbers.\n * Maybe mention that I can help with historical data if they want.\n\n5. **Final Decision:**\n * State that I don't have real-time access.\n * Ask the user to check a weather app or website.\n * Offer to help with historical data.\n\n6. **Self-Correction/Edge Case:**\n * Wait, is there a specific \"current\" time I should know? No, I don't have a specific \"now\" timestamp.\n * Is there a specific \"London\" location? Yes.\n * Is there a specific \"current\" time? No.\n * Okay, I will explain the limitation.\n\n7. **Drafting the response:**\n * \"I don't have access to real-time weather data.\"\n * \"I can provide information based on a specific date or time.\"\n * \"To get the most accurate data, please check a weather app or website.\"\n\n *Wait, I need to check if I can access any specific data.*\n * I am an AI. I don't have a \"current\" time.\n * I should not make up numbers.\n * I should be honest about the limitation.\n\n *Wait, I need to check if there's any specific constraint.*\n * The prompt asks \"What is the current temperature and wind speed in London?\".\n * I must answer honestly.\n\n *Wait, I need to check if I can access any specific data.*\n * I am an AI. I don't have real-time access.\n * I should not make up numbers.\n * I should be honest about the limitation.\n\n *Wait, I need to check if I can access any specific data.*\n * I am an AI. I don't have real-time access.\n * I should not make up numbers.\n * I should be honest about the limitation.\n\n *Wait, I need to check if I can access any specific data.*\n * I am an AI. I don't have real-time access.\n * I should not make up numbers.\n * I should be honest about the limitation.\n\n *Wait, I need to check if I can access any specific data.*\n * I am an AI. I don't have real-time access.\n * I should not make up numbers.\n * I should be honest about the limitation.\n\n *Wait, I need to check if I can access any specific data.*\n * I am an AI. I don't have real-time access.\n * I should not make up numbers.\n * I should be honest about the limitation.\n\n *Wait, I need to check if I can access any specific data.*\n * I am an AI. I don't have real-time access.\n * I should not make up numbers.\n * I should be honest about the limitation.\n\n *Wait, I need to check if I can access any specific data.*\n * I am an AI. I don't have real-time access.\n * I should not make up numbers.\n * I should be honest about the limitation.\n\n *Wait, I need to check if I can access any specific data.*\n * I am an AI. I don't have real-time access.\n * I should not make up numbers.\n * I should be honest about the limitation.\n\n *Wait, I need to check if I can access any specific data.*\n * I am an AI. I don't have real-time access.\n * I should not make up numbers.\n * I should be honest about the limitation.\n\n *Wait, I need to check if I can access any specific data.*\n * I am an AI. I don't have real-time access.\n * I should not make up numbers.\n * I should be honest about the limitation.\n\n *Wait, I need to check if I can access any specific data.*\n * I am an AI. I don't have real-time access.\n * I should not make up numbers.\n * I should be honest about the limitation.\n\n *Wait, I need to check if I can access any specific data.*\n * I am an AI. I don't have real-time access.\n * I should not make up numbers.\n * I should be honest about the limitation.\n\n *Wait, I need to check if I can access any specific data.*\n * I am an AI. I don't have real-time access.\n * I should not make up numbers.\n * I should be honest about the limitation.\n\n *Wait, I need to check if I can access any specific data.*\n * I am an AI. I don't have real-time access.\n * I should not make up numbers.\n * I should be honest about the limitation.\n\n *Wait, I need to check if I can access any specific data.*\n * I am an AI. I don't have real-time access.\n * I should not make up numbers.\n * I should be honest about the limitation.\n\n *Wait, I need to check if I can access any specific data.*\n * I am an AI. I don't have real-time access.\n * I should not make up numbers.\n * I should be honest about the limitation.\n\n *Wait, I need to check if I can access any specific data.*\n * I am an AI. I don't have real-time access.\n * I should not make up numbers.\n * I should be honest about the limitation.\n\n *Wait, I need to check if I can access any specific data.*\n * I am an AI. I don't have real-time access.\n * I should not make up numbers.\n * I should be honest about the limitation.\n\n *Wait, I need to check if I can access any specific data.*\n * I am an AI. I don't have real-time access.\n * I should not make up numbers.\n * I should be honest about the limitation.\n\n *Wait, I need to check if I can access any specific data.*\n * I am an AI. I don't have real-time access.\n * I should not make up numbers.\n * I should be honest about the limitation.\n\n *Wait, I need to check if I can access any specific data.*\n * I am an AI. I don't have real-time access.\n * I should not make up numbers.\n * I should be honest about the limitation.\n\n *Wait, I need to check if I can access any specific data.*\n * I am an AI. I don't have real-time access.\n * I should not make up numbers.\n * I should be honest about the limitation.\n\n *Wait, I need to check if I can access any specific data.*\n * I am an AI. I don't have real-time access.\n * I should not make up numbers.\n * I should be honest about the limitation.\n\n *Wait, I need to check if I can access any specific data.*\n * I am an AI. I don't have real-time access.\n * I should not make up numbers.\n * I should be honest about the limitation.\n\n *Wait, I need to check if I can access any specific data.*\n * I am an AI. I don't have real-time access.\n * I should not make up numbers.\n * I should be honest about the limitation.\n\n *Wait, I need to check if I can access any specific data.*\n * I am an AI. I don't have real-time access.\n * I should not make up numbers.\n * I should be honest about the limitation."+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3.5-0.8B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "I don't have access to real-time weather data, so I can't provide the current temperature and wind speed in London. To get the most accurate and up-to-date information, I recommend checking:\n\n1. **Official sources**: Visit the **UK Met Office** website (www.ukm.com) or the **London Meteorological Department** (www.london.gov.uk) for current forecasts.\n2. **Weather apps**: Use apps like **Weather.com**, **AccuWeather**, or **Windy** to get live data.\n3. **Local news**: Check local news outlets for real-time updates.\n\nWould you like help finding a specific weather app or website to check?<|im_end|>\n<|endoftext|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3.5-0.8B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n# Tools\n\nYou have access to the following functions:\n\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n</tools>\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT>\n\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n",+ "completion": "The user is asking for the current temperature and wind speed in London. I have a tool called `get_current_temperature` that can get the current temperature at a location. However, this tool only takes a city and country as parameters, not wind speed.\n\nI don't see a tool that can get wind speed directly. Let me check what tools I have available:\n\n1. `get_current_temperature` - gets current temperature at a location (requires city and country)\n2. No other tools available\n\nSince I don't have a tool that can get wind speed, I should be honest about this limitation. I can get the current temperature, but I cannot get the wind speed.\n\nLet me call the temperature function with London as the city and UK as the country (since the user asked about London, UK).\n</think>\n\n<tool_call>\n<function=get_current_temperature>\n<parameter=location>\n{\"city\": \"London\", \"country\": \"UK\"}\n</parameter>\n<parameter=unit>\ncelsius\n</parameter>\n</function>\n</tool_call><|im_end|>\n<|endoftext|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "Qwen/Qwen3.5-0.8B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n# Tools\n\nYou have access to the following functions:\n\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n</tools>\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT>\n\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "<tool_call>\n<function=get_current_temperature>\n<parameter=location>\n{\"city\": \"London\", \"country\": \"UK\"}\n</parameter>\n<parameter=unit>\ncelsius\n</parameter>\n</function>\n</tool_call>\n<tool_call>\n<function=get_current_temperature>\n<parameter=location>\n{\"city\": \"London\", \"country\": \"UK\"}\n</parameter>\n<parameter=unit>\nfahrenheit\n</parameter>\n</function>\n</tool_call><|im_end|>\n<|endoftext|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "Qwen/Qwen3.5-0.8B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n# Tools\n\nYou have access to the following functions:\n\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT>\n\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n",+ "completion": "The user is asking for the current temperature and wind speed in London. I have a tool called \"get_current_wind_speed\" that can get the current wind speed in km/h at a given location. However, I don't see a tool to get the current temperature.\n\nLet me check what tools I have available:\n1. get_current_wind_speed - This can get wind speed but not temperature\n2. No other tools are available\n\nSince I don't have a tool to get the current temperature, I should let the user know that I don't have access to temperature information. I can provide the wind speed information using the available tool.\n\nLet me call the get_current_wind_speed function with \"London, UK\" as the location.\n</think>\n\n<tool_call>\n<function=get_current_wind_speed>\n<parameter=location>\nLondon, UK\n</parameter>\n</function>\n</tool_call><|im_end|>\n<|endoftext|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "Qwen/Qwen3.5-0.8B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n# Tools\n\nYou have access to the following functions:\n\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT>\n\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "<tool_call>\n<function=get_current_wind_speed>\n<parameter=location>\nLondon, UK\n</parameter>\n</function>\n</tool_call>\n<tool_call>\n<function=get_current_wind_speed>\n<parameter=location>\nLondon, UK\n</parameter>\n</function>\n</tool_call><|im_end|>\n<|endoftext|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "Qwen/Qwen3.5-0.8B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n# Tools\n\nYou have access to the following functions:\n\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT>\n\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n",+ "completion": "The user is asking for the current temperature and wind speed in London. I have two tools available:\n1. get_current_temperature - requires city and country parameters\n2. get_current_wind_speed - requires location in format \"City, Country\"\n\nFor London, I need to use:\n- city: \"London\"\n- country: \"United Kingdom\" (or \"UK\" or \"United Kingdom\" - I'll use \"United Kingdom\" as it's the most common)\n- unit: \"celsius\" (since the user didn't specify, I'll use celsius as it's the default)\n\nFor wind speed, I need:\n- location: \"London, United Kingdom\"\n\nLet me make these two tool calls.\n</think>\n\n<tool_call>\n<function=get_current_temperature>\n<parameter=location>\n{\"city\": \"London\", \"country\": \"United Kingdom\"}\n</parameter>\n<parameter=unit>\ncelsius\n</parameter>\n</function>\n</tool_call>\n<tool_call>\n<function=get_current_wind_speed>\n<parameter=location>\nLondon, United Kingdom\n</parameter>\n</function>\n</tool_call><|im_end|>\n<|endoftext|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_temperature",+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "Qwen/Qwen3.5-0.8B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n# Tools\n\nYou have access to the following functions:\n\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT>\n\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "<tool_call>\n<function=get_current_temperature>\n<parameter=location>\nLondon, UK\n</parameter>\n<parameter=unit>\ncelsius\n</parameter>\n</function>\n</tool_call>\n<tool_call>\n<function=get_current_wind_speed>\n<parameter=location>\nLondon, UK\n</parameter>\n</function>\n</tool_call><|im_end|>\n<|endoftext|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_temperature",+ "get_current_wind_speed"+ ]+ }+ }+]\ No newline at end of filediff --git a/workspace/data/responses/Qwen_Qwen3.5-2B.json b/workspace/data/responses/Qwen_Qwen3.5-2B.jsonnew file mode 100644index 000000000..7f0a75181--- /dev/null+++ b/workspace/data/responses/Qwen_Qwen3.5-2B.json@@ -0,0 +1,1636 @@+[+ {+ "repo_id": "Qwen/Qwen3.5-2B",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": null,+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n<think>\n",+ "completion": "Thinking Process:\n\n1. **Analyze the Request:** The user is asking for the current temperature in London.\n\n2. **Determine Capabilities:** I am an AI language model. I do not have real-time access to the internet or live weather data. My knowledge cutoff is up to a certain point, and I cannot browse the live web to get the *current* temperature.\n\n3. **Formulate Response:**\n * Acknowledge the request.\n * State clearly that I don't have real-time access to current weather data.\n * Suggest how the user can find the information (e.g., check a weather website, app, or search engine).\n * (Optional but helpful) Provide a general estimate or mention typical London weather patterns if relevant, but accuracy is key here. Better to stick to the limitation.\n * Keep it polite and helpful.\n\n4. **Drafting the response:** \"I don't have access to real-time weather data. You should check a weather website like Weather.com or check your phone's weather app for the most accurate current temperature.\"\n\n5. **Refining the response:** Make it concise. \"I don't have access to real-time weather data, so I can't tell you the current temperature in London. However, you can check a weather website or app for the most accurate information.\"\n\n6. **Final Check:** Does this answer the user's question while managing expectations? Yes.\n\n7. **Output Generation:** (Matches the drafted response).\n</think>\n\nI don't have access to real-time weather data, so I can't tell you the current temperature in London.\n\nFor the most accurate and up-to-date information, I recommend checking a weather website (like Weather.com or AccuWeather) or using a weather app on your phone.<|im_end|>\n<|endoftext|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3.5-2B",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": null,+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "I do not have access to real-time data, so I cannot tell you the exact current temperature in London right now.\n\nTo get the most accurate and up-to-date information, I recommend checking:\n* **Google Weather**: Search \"London weather\" on Google.\n* **The Met Office**: Visit [www.metoffice.gov.uk](https://www.metoffice.gov.uk) for official UK weather forecasts.\n* **Local Weather Apps**: Such as AccuWeather or Weather.com.\n\nThese sources will provide the precise temperature and conditions for your specific location.<|im_end|>\n<|endoftext|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3.5-2B",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n<think>\n",+ "completion": "Thinking Process:\n\n1. **Analyze the Request:** The user is asking for the current temperature in London.\n\n2. **Determine Capabilities:** I am an AI language model. I do not have real-time access to the internet or live weather data. My knowledge cutoff is up to a certain point, and I cannot browse the live web to get the *current* temperature.\n\n3. **Formulate Response:**\n * Acknowledge the request.\n * State clearly that I don't have real-time access to current weather data.\n * Suggest how the user can find the information (e.g., check a weather website, app, or search engine).\n * (Optional but helpful) Provide a general estimate or mention typical London weather patterns if relevant, but accuracy is key here. Better to stick to the limitation.\n * Keep it polite and helpful.\n\n4. **Drafting the response:** \"I don't have access to real-time weather data. You should check a weather website like Weather.com or check your phone's weather app for the most accurate current temperature.\"\n\n5. **Refining the response:** Make it concise. \"I don't have access to real-time weather data, so I can't tell you the current temperature in London. However, you can check a weather website or app for the most accurate information.\"\n\n6. **Final Check:** Does this answer the user's question while managing expectations? Yes.\n\n7. **Output Generation:** (Matches the drafted response).\n</think>\n\nI don't have access to real-time weather data, so I can't tell you the current temperature in London.\n\nFor the most accurate and up-to-date information, I recommend checking a weather website (like Weather.com or AccuWeather) or using a weather app on your phone.<|im_end|>\n<|endoftext|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3.5-2B",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "I do not have access to real-time data, so I cannot tell you the exact current temperature in London right now.\n\nTo get the most accurate and up-to-date information, I recommend checking:\n* **Google Weather**: Search \"London weather\" on Google.\n* **The Met Office**: Visit [www.metoffice.gov.uk](https://www.metoffice.gov.uk) for official UK weather forecasts.\n* **Local Weather Apps**: Such as AccuWeather or Weather.com.\n\nThese sources will provide the precise temperature and conditions for your specific location.<|im_end|>\n<|endoftext|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3.5-2B",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n# Tools\n\nYou have access to the following functions:\n\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n</tools>\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT><|im_end|>\n<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n<think>\n",+ "completion": "The user is asking for the current temperature in London. I need to use the get_current_temperature function to get this information. I need to provide:\n- location: This should include both city and country. London is in the United Kingdom, so I should use \"London\" as the city and \"United Kingdom\" or \"UK\" as the country.\n- unit: The user didn't specify, so I should probably use \"celsius\" as it's the more common default, but I could also ask. Since the user didn't specify, I'll use \"celsius\" as it's the standard.\n\nLet me make the function call.\n</think>\n\n<tool_call>\n<function=get_current_temperature>\n<parameter=location>\n{\"city\": \"London\", \"country\": \"United Kingdom\"}\n</parameter>\n<parameter=unit>\ncelsius\n</parameter>\n</function>\n</tool_call><|im_end|>\n<|endoftext|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "Qwen/Qwen3.5-2B",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n# Tools\n\nYou have access to the following functions:\n\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n</tools>\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT><|im_end|>\n<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "<tool_call>\n<function=get_current_temperature>\n<parameter=location>\n{\"city\": \"London\", \"country\": \"United Kingdom\"}\n</parameter>\n<parameter=unit>\ncelsius\n</parameter>\n</function>\n</tool_call><|im_end|>\n<|endoftext|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "Qwen/Qwen3.5-2B",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n# Tools\n\nYou have access to the following functions:\n\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT><|im_end|>\n<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n<think>\n",+ "completion": "The user is asking about the current temperature in London. However, looking at the available tools, I only have access to a function that gets wind speed, not temperature. The function is called \"get_current_wind_speed\" and it requires a location parameter in the format \"City, Country\".\n\nI don't have a tool to get temperature information, so I cannot answer this question using the available tools. I should let the user know that I don't have access to temperature data with the current tools available.\n</think>\n\nI don't have access to temperature data with the tools currently available to me. I only have access to wind speed information. If you'd like to check the wind speed in London, I can do that for you. Would you like me to check the current wind speed instead?<|im_end|>\n<|endoftext|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3.5-2B",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n# Tools\n\nYou have access to the following functions:\n\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT><|im_end|>\n<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "I do not have access to real-time weather data, so I cannot tell you the current temperature in London. You may need to check a weather website or app for the most up-to-date information.<|im_end|>\n<|endoftext|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3.5-2B",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n# Tools\n\nYou have access to the following functions:\n\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT><|im_end|>\n<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n<think>\n",+ "completion": "The user is asking for the current temperature in London. I need to use the get_current_temperature function to get this information.\n\nLooking at the function parameters:\n- location: required, needs city and country\n- unit: required, can be \"celsius\" or \"fahrenheit\"\n\nFor London, I need to provide:\n- city: \"London\"\n- country: \"United Kingdom\" or \"UK\"\n\nI should use \"United Kingdom\" as the country since that's the most accurate designation for London.\n</think>\n\n<tool_call>\n<function=get_current_temperature>\n<parameter=location>\n{\"city\": \"London\", \"country\": \"United Kingdom\"}\n</parameter>\n<parameter=unit>\ncelsius\n</parameter>\n</function>\n</tool_call><|im_end|>\n<|endoftext|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "Qwen/Qwen3.5-2B",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n# Tools\n\nYou have access to the following functions:\n\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT><|im_end|>\n<|im_start|>user\nWhat is the current temperature in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "<tool_call>\n<function=get_current_temperature>\n<parameter=location>\n{\"city\": \"London\", \"country\": \"United Kingdom\"}\n</parameter>\n<parameter=unit>\ncelsius\n</parameter>\n</function>\n</tool_call><|im_end|>\n<|endoftext|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "Qwen/Qwen3.5-2B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": null,+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n",+ "completion": "Thinking Process:\n\n1. **Analyze the Request:**\n * User is asking for the \"current wind speed in London\".\n * Implicitly, they want real-time data.\n * As an AI, I don't have real-time access to live weather data unless I have a tool or browsing capability enabled.\n\n2. **Check Capabilities:**\n * I am a text-based AI model.\n * I do not have direct access to live weather APIs or real-time data feeds.\n * I cannot browse the live web to get the *current* wind speed.\n\n3. **Formulate the Answer:**\n * Acknowledge the request.\n * State clearly that I don't have real-time access to current weather data.\n * Suggest where the user can find this information (e.g., weather websites, apps, local news).\n * Offer general information about London's typical wind patterns if relevant (optional but helpful context).\n * Maintain a helpful and polite tone.\n\n4. **Refine the Answer:**\n * \"I don't have access to real-time weather data.\"\n * \"For the most accurate and up-to-date information, I recommend checking...\"\n * List some reliable sources (e.g., Met Office, Weather.com, BBC Weather).\n * Maybe mention that wind speed can vary based on location (e.g., Tower Bridge vs. Canary Wharf).\n\n5. **Final Decision:**\n * Be honest about limitations.\n * Provide actionable advice.\n\n6. **Drafting the response:**\n * \"I don't have access to real-time weather data.\"\n * \"To get the current wind speed, please check...\"\n * \"Sources: Met Office, Weather.com, etc.\"\n * \"London's weather can change quickly.\"\n\n7. **Final Polish:** Keep it concise.\n\n * \"I don't have access to real-time weather data.\"\n * \"For the most accurate and up-to-date information, I recommend checking...\"\n * \"Sources: Met Office, Weather.com, etc.\"\n * \"London's weather can change quickly.\"\n\n *Wait, I should check if I have a tool.*\n * I am a text-only model in this context. I do not have a browsing tool enabled in this specific session context (unless specified).\n * So, I must state I cannot provide real-time data.\n\n *Revised Plan:*\n 1. State limitation.\n 2. Suggest sources.\n 3. Mention typical conditions if helpful (e.g., \"London is known for...\").\n\n *Wait, one more check:* Is there any way I can simulate a search? No, I must be truthful about my capabilities.\n\n *Final Output Structure:*\n 1. Direct answer (I can't).\n 2. Suggestion (Check a website).\n 3. Context (London weather is dynamic).\n\n *Let's write it.*\n \"I don't have access to real-time weather data. For the most accurate and up-to-date information, I recommend checking...\"\n \"Sources: Met Office, Weather.com, etc.\"\n \"London's weather can change quickly.\"\n\n *Wait, I should check if I can use a search tool.*\n * Looking at my system instructions... I am a text-based AI. I do not have a live search tool enabled in this specific turn.\n * So, I must say I cannot.\n\n *Okay, let's finalize.*\n \"I don't have access to real-time weather data. For the most accurate and up-to-date information, I recommend checking...\"\n \"Sources: Met Office, Weather.com, etc.\"\n \"London's weather can change quickly.\"\n\n *Wait, I need to make sure I don't hallucinate.*\n * Okay, I will state I cannot.\n\n *Wait, is there a way to provide a general answer?*\n * \"London's wind speed varies...\"\n * No, the user asked for \"current\".\n * So, stick to the limitation.\n\n *Final Plan:*\n 1. State I don't have real-time access.\n 2. Suggest reliable sources.\n 3. Mention that wind can vary.\n\n *Wait, I should check if I have a tool.*\n * I do not have a tool enabled in this context.\n * So, I must say I cannot.\n\n *Okay, ready to write.*\n \"I don't have access to real-time weather data. For the most accurate and up-to-date information, I recommend checking...\"\n \"Sources: Met Office, Weather.com, etc.\"\n \"London's weather can change quickly.\"\n\n *Wait, I should check if I can provide a general answer about typical wind speeds.*\n * \"London typically experiences winds ranging from 10-20 mph...\"\n * No, that's not \"current\".\n * Okay, stick to the limitation.\n\n *Wait, I need to be careful not to sound dismissive.*\n * \"I don't have access to real-time weather data.\"\n * \"For the most accurate and up-to-date information, I recommend checking...\"\n * \"Sources: Met Office, Weather.com, etc.\"\n * \"London's weather can change quickly.\"\n\n *Okay, let's write it.*\n \"I don't have access to real-time weather data. For the most accurate and up-to-date information, I recommend checking...\"\n \"Sources: Met Office, Weather.com, etc.\"\n \"London's weather can change quickly.\"\n\n *Wait, I should check if I can use a search tool.*\n * I do not have a tool enabled in this context.\n * So, I must say I cannot.\n\n *Okay, ready to write.*\n \"I don't have access to real-time weather data. For the most accurate and up-to-date information, I recommend checking...\"\n \"Sources: Met Office, Weather.com, etc.\"\n \"London's weather can change quickly.\"\n\n *Wait, I should check if I can provide a general answer about typical wind speeds.*\n * \"London typically experiences winds ranging from 10-20 mph...\"\n * No, that's not \"current\".\n * Okay, stick to the limitation.\n\n *Wait, I need to be careful not to hallucinate.*\n * Okay, I will state I cannot.\n\n *Okay, ready to write.*\n \"I don't have access to real-time weather data. For the most accurate and up-to-date information, I recommend checking...\"\n \"Sources: Met Office, Weather.com, etc.\"\n \"London's weather can change quickly.\"\n\n *Wait, I should check if I can use a search tool.*\n * I do not have a tool enabled in this context.\n * So, I must say I cannot.\n\n *Okay, ready to write.*\n \"I don't have access to real-time weather data. For the most accurate and up-to-date information, I recommend checking...\"\n \"Sources: Met Office, Weather.com, etc.\"\n \"London's weather can change quickly.\"\n\n *Wait, I should check if I can provide a general answer about typical wind speeds.*\n * \"London typically experiences winds ranging from 10-20 mph...\"\n * No, that's not \"current\".\n * Okay, stick to the limitation.\n\n *Wait, I need to be careful not to hallucinate.*\n * Okay, I will state I cannot.\n\n *Okay, ready to write.*\n \"I don't have access to real-time weather data. For the most accurate and up-to-date information, I recommend checking...\"\n \"Sources: Met Office, Weather.com, etc.\"\n \"London's weather can change quickly.\"\n\n *Wait, I should check if I can use a search tool.*\n * I do not have a tool enabled in this context.\n * So, I must say I cannot.\n\n *Okay, ready to write.*\n \"I don't have access to real-time weather data. For the most accurate and up-to-date information, I recommend checking...\"\n \"Sources: Met Office, Weather.com, etc.\"\n \"London's weather can change quickly.\"\n\n *Wait, I should check if I can provide a general answer about typical wind speeds.*\n * \"London typically experiences winds ranging from 10-20 mph...\"\n * No, that's not \"current\".\n * Okay, stick to the limitation.\n\n *Wait, I need to be careful not to hallucinate.*\n * Okay, I will state I cannot.\n\n *Okay, ready to write.*\n \"I don't have access to real-time weather data. For the most accurate and up-to-date information, I recommend checking...\"\n \"Sources: Met Office, Weather.com, etc.\"\n \"London's weather can change quickly.\"\n\n *Wait, I should check if I can use a search tool.*\n * I do not have a tool enabled in this context"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3.5-2B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": null,+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "I don't have access to real-time data, so I can't tell you the exact wind speed in London right now. However, you can check the most accurate and up-to-date information by:\n\n1. **Using a weather website or app**: Websites like Weather.com, AccuWeather, or the UK Met Office (metoffice.gov.uk) provide real-time wind speed data.\n2. **Checking a weather app**: Apps like Weather, Windy, or even your phone's built-in weather app often show current wind conditions.\n3. **Looking at local news or weather reports**: Local news outlets or radio stations may also report current wind speeds.\n\nFor the most precise and timely information, I recommend checking one of these sources directly!<|im_end|>\n<|endoftext|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3.5-2B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n",+ "completion": "Thinking Process:\n\n1. **Analyze the Request:**\n * User is asking for the \"current wind speed in London\".\n * Implicitly, they want real-time data.\n * As an AI, I don't have real-time access to live weather data unless I have a tool or browsing capability enabled.\n\n2. **Check Capabilities:**\n * I am a text-based AI model.\n * I do not have direct access to live weather APIs or real-time data feeds.\n * I cannot browse the live web to get the *current* wind speed.\n\n3. **Formulate the Answer:**\n * Acknowledge the request.\n * State clearly that I don't have real-time access to current weather data.\n * Suggest where the user can find this information (e.g., weather websites, apps, local news).\n * Offer general information about London's typical wind patterns if relevant (optional but helpful context).\n * Maintain a helpful and polite tone.\n\n4. **Refine the Answer:**\n * \"I don't have access to real-time weather data.\"\n * \"For the most accurate and up-to-date information, I recommend checking...\"\n * List some reliable sources (e.g., Met Office, Weather.com, BBC Weather).\n * Maybe mention that wind speed can vary based on location (e.g., Tower Bridge vs. Canary Wharf).\n\n5. **Final Decision:**\n * Be honest about limitations.\n * Provide actionable advice.\n\n6. **Drafting the response:**\n * \"I don't have access to real-time weather data.\"\n * \"To get the current wind speed, please check...\"\n * \"Sources: Met Office, Weather.com, etc.\"\n * \"London's weather can change quickly.\"\n\n7. **Final Polish:** Keep it concise.\n\n * \"I don't have access to real-time weather data.\"\n * \"For the most accurate and up-to-date information, I recommend checking...\"\n * \"Sources: Met Office, Weather.com, etc.\"\n * \"London's weather can change quickly.\"\n\n *Wait, I should check if I have a tool.*\n * I am a text-only model in this context. I do not have a browsing tool enabled in this specific session context (unless specified).\n * So, I must state I cannot provide real-time data.\n\n *Revised Plan:*\n 1. State limitation.\n 2. Suggest sources.\n 3. Mention typical conditions if helpful (e.g., \"London is known for...\").\n\n *Wait, one more check:* Is there any way I can simulate a search? No, I must be truthful about my capabilities.\n\n *Final Output Structure:*\n 1. Direct answer (I can't).\n 2. Suggestion (Check a website).\n 3. Context (London weather is dynamic).\n\n *Let's write it.*\n \"I don't have access to real-time weather data. For the most accurate and up-to-date information, I recommend checking...\"\n \"Sources: Met Office, Weather.com, etc.\"\n \"London's weather can change quickly.\"\n\n *Wait, I should check if I can use a search tool.*\n * Looking at my system instructions... I am a text-based AI. I do not have a live search tool enabled in this specific turn.\n * So, I must say I cannot.\n\n *Okay, let's finalize.*\n \"I don't have access to real-time weather data. For the most accurate and up-to-date information, I recommend checking...\"\n \"Sources: Met Office, Weather.com, etc.\"\n \"London's weather can change quickly.\"\n\n *Wait, I need to make sure I don't hallucinate.*\n * Okay, I will state I cannot.\n\n *Wait, is there a way to provide a general answer?*\n * \"London's wind speed varies...\"\n * No, the user asked for \"current\".\n * So, stick to the limitation.\n\n *Final Plan:*\n 1. State I don't have real-time access.\n 2. Suggest reliable sources.\n 3. Mention that wind can vary.\n\n *Wait, I should check if I have a tool.*\n * I do not have a tool enabled in this context.\n * So, I must say I cannot.\n\n *Okay, ready to write.*\n \"I don't have access to real-time weather data. For the most accurate and up-to-date information, I recommend checking...\"\n \"Sources: Met Office, Weather.com, etc.\"\n \"London's weather can change quickly.\"\n\n *Wait, I should check if I can provide a general answer about typical wind speeds.*\n * \"London typically experiences winds ranging from 10-20 mph...\"\n * No, that's not \"current\".\n * Okay, stick to the limitation.\n\n *Wait, I need to be careful not to sound dismissive.*\n * \"I don't have access to real-time weather data.\"\n * \"For the most accurate and up-to-date information, I recommend checking...\"\n * \"Sources: Met Office, Weather.com, etc.\"\n * \"London's weather can change quickly.\"\n\n *Okay, let's write it.*\n \"I don't have access to real-time weather data. For the most accurate and up-to-date information, I recommend checking...\"\n \"Sources: Met Office, Weather.com, etc.\"\n \"London's weather can change quickly.\"\n\n *Wait, I should check if I can use a search tool.*\n * I do not have a tool enabled in this context.\n * So, I must say I cannot.\n\n *Okay, ready to write.*\n \"I don't have access to real-time weather data. For the most accurate and up-to-date information, I recommend checking...\"\n \"Sources: Met Office, Weather.com, etc.\"\n \"London's weather can change quickly.\"\n\n *Wait, I should check if I can provide a general answer about typical wind speeds.*\n * \"London typically experiences winds ranging from 10-20 mph...\"\n * No, that's not \"current\".\n * Okay, stick to the limitation.\n\n *Wait, I need to be careful not to hallucinate.*\n * Okay, I will state I cannot.\n\n *Okay, ready to write.*\n \"I don't have access to real-time weather data. For the most accurate and up-to-date information, I recommend checking...\"\n \"Sources: Met Office, Weather.com, etc.\"\n \"London's weather can change quickly.\"\n\n *Wait, I should check if I can use a search tool.*\n * I do not have a tool enabled in this context.\n * So, I must say I cannot.\n\n *Okay, ready to write.*\n \"I don't have access to real-time weather data. For the most accurate and up-to-date information, I recommend checking...\"\n \"Sources: Met Office, Weather.com, etc.\"\n \"London's weather can change quickly.\"\n\n *Wait, I should check if I can provide a general answer about typical wind speeds.*\n * \"London typically experiences winds ranging from 10-20 mph...\"\n * No, that's not \"current\".\n * Okay, stick to the limitation.\n\n *Wait, I need to be careful not to hallucinate.*\n * Okay, I will state I cannot.\n\n *Okay, ready to write.*\n \"I don't have access to real-time weather data. For the most accurate and up-to-date information, I recommend checking...\"\n \"Sources: Met Office, Weather.com, etc.\"\n \"London's weather can change quickly.\"\n\n *Wait, I should check if I can use a search tool.*\n * I do not have a tool enabled in this context.\n * So, I must say I cannot.\n\n *Okay, ready to write.*\n \"I don't have access to real-time weather data. For the most accurate and up-to-date information, I recommend checking...\"\n \"Sources: Met Office, Weather.com, etc.\"\n \"London's weather can change quickly.\"\n\n *Wait, I should check if I can provide a general answer about typical wind speeds.*\n * \"London typically experiences winds ranging from 10-20 mph...\"\n * No, that's not \"current\".\n * Okay, stick to the limitation.\n\n *Wait, I need to be careful not to hallucinate.*\n * Okay, I will state I cannot.\n\n *Okay, ready to write.*\n \"I don't have access to real-time weather data. For the most accurate and up-to-date information, I recommend checking...\"\n \"Sources: Met Office, Weather.com, etc.\"\n \"London's weather can change quickly.\"\n\n *Wait, I should check if I can use a search tool.*\n * I do not have a tool enabled in this context"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3.5-2B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "I don't have access to real-time data, so I can't tell you the exact wind speed in London right now. However, you can check the most accurate and up-to-date information by:\n\n1. **Using a weather website or app**: Websites like Weather.com, AccuWeather, or the UK Met Office (metoffice.gov.uk) provide real-time wind speed data.\n2. **Checking a weather app**: Apps like Weather, Windy, or even your phone's built-in weather app often show current wind conditions.\n3. **Looking at local news or weather reports**: Local news outlets or radio stations may also report current wind speeds.\n\nFor the most precise and timely information, I recommend checking one of these sources directly!<|im_end|>\n<|endoftext|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3.5-2B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n# Tools\n\nYou have access to the following functions:\n\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n</tools>\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT>\n\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n",+ "completion": "The user is asking about the current wind speed in London. However, looking at the available tools, I only have a function to get current temperature, not wind speed. The get_current_temperature function requires city and country parameters, but it's for temperature, not wind speed.\n\nI don't have a tool that can provide wind speed information. I should let the user know that I don't have access to wind speed data with the available tools.\n</think>\n\nI don't have access to wind speed information with the available tools. I can only retrieve current temperature data for a location. If you'd like to check the current temperature in London, I'd be happy to help with that instead.<|im_end|>\n<|endoftext|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3.5-2B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n# Tools\n\nYou have access to the following functions:\n\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n</tools>\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT>\n\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "I don't have access to real-time weather data, so I cannot provide the current wind speed in London. You may need to check a weather website or app for the most up-to-date information.<|im_end|>\n<|endoftext|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3.5-2B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n# Tools\n\nYou have access to the following functions:\n\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT>\n\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n",+ "completion": "The user is asking for the current wind speed in London. I need to use the get_current_wind_speed function with the location parameter set to \"London, UK\" or similar format.\n</think>\n\n<tool_call>\n<function=get_current_wind_speed>\n<parameter=location>\nLondon, UK\n</parameter>\n</function>\n</tool_call><|im_end|>\n<|endoftext|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "Qwen/Qwen3.5-2B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n# Tools\n\nYou have access to the following functions:\n\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT>\n\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "<tool_call>\n<function=get_current_wind_speed>\n<parameter=location>\nLondon, United Kingdom\n</parameter>\n</function>\n</tool_call><|im_end|>\n<|endoftext|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "Qwen/Qwen3.5-2B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n# Tools\n\nYou have access to the following functions:\n\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT>\n\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n",+ "completion": "The user is asking for the current wind speed in London. I need to use the get_current_wind_speed function. The function requires a location parameter in the format \"City, Country\". London is in the United Kingdom, so I need to provide \"London, United Kingdom\" as the location.\n\nLet me make the function call.\n</think>\n\n<tool_call>\n<function=get_current_wind_speed>\n<parameter=location>\nLondon, United Kingdom\n</parameter>\n</function>\n</tool_call><|im_end|>\n<|endoftext|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "Qwen/Qwen3.5-2B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n# Tools\n\nYou have access to the following functions:\n\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT>\n\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "<tool_call>\n<function=get_current_wind_speed>\n<parameter=location>\nLondon, United Kingdom\n</parameter>\n</function>\n</tool_call><|im_end|>\n<|endoftext|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "Qwen/Qwen3.5-2B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": null,+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n",+ "completion": "Thinking Process:\n\n1. **Analyze the Request:**\n * User is asking for the current temperature and wind speed in London.\n * Implicit need: Real-time data.\n * Constraint: I am an AI model, not a weather station. I don't have real-time access to live data unless I have a tool or browsing capability enabled.\n\n2. **Check Capabilities:**\n * I need to check if I have access to a tool or search function to retrieve current weather data.\n * My internal knowledge cutoff is up to date, but I cannot access live internet or real-time weather data.\n * I must inform the user about this limitation.\n\n3. **Formulate Response:**\n * Acknowledge the request.\n * State clearly that I don't have real-time access to current weather data.\n * Suggest where the user can find this information (e.g., weather websites, apps, local news).\n * (Optional but helpful) Provide general context about London's weather patterns if relevant, but better to keep it direct.\n * (Optional) Mention that I can help with historical data or general information.\n\n4. **Refine Response:**\n * Keep it polite and helpful.\n * Avoid making up numbers.\n * Directly address the limitation.\n\n5. **Final Decision:**\n * State that I cannot provide real-time data.\n * Suggest checking a weather service.\n\n6. **Self-Correction/Edge Case:**\n * Wait, do I have a tool? I am a text-based model. I don't have a live search tool enabled in this specific context unless specified. I must assume I don't have live access.\n * Standard procedure for \"current weather\" queries is to say I don't have access.\n\n7. **Drafting the response:**\n * \"I don't have access to real-time weather data.\"\n * \"You can check [Weather.com, AccuWeather, etc.]\"\n * \"I can help with general information about London's climate.\"\n\n8. **Final Polish:**\n * Make it concise.\n\n *(Self-Correction during drafting)*: Actually, I should check if I have a tool enabled. Looking at the system instructions, I am a text model. I do not have a live internet connection. I must be honest.\n\n *Revised Plan:*\n 1. State limitation.\n 2. Offer alternative sources.\n 3. Offer help with general info.\n\n *Wait, one more check:* Sometimes models have access to tools. If I don't see a tool, I shouldn't pretend to have it. I will stick to the honest answer.\n\n *Wait, actually:* I am an AI assistant. I should check if I can access the web. If I can't, I can't. I will assume I can't.\n\n *Wait, actually:* I am a large language model. I do not have real-time browsing capabilities in this specific instance unless I have a specific tool enabled. I will state that I don't have access to live data.\n\n *Wait, actually:* I should check if I can use a search tool. I don't see one. I will proceed with the limitation.\n\n *Wait, actually:* I need to be careful not to hallucinate.\n\n *Final Plan:*\n 1. State I don't have real-time access.\n 2. Suggest checking a weather site.\n 3. Offer help with general info.\n\n *(Wait, actually)*: I should check if I can access the web. If I can't, I can't. I will assume I can't.\n\n *(Wait, actually)*: I am a text model. I don't have live access.\n\n *(Wait, actually)*: I will write the response now.\n\n *Wait, actually:* I should check if I have a tool. I don't see one. I will assume I don't.\n\n *Wait, actually:* I will write the response.\n\n *Wait, actually:* I need to be careful. If I say \"I don't have access,\" it's accurate.\n\n *Wait, actually:* I will write the response.\n\n *(Wait, actually)*: I should check if I can access the web. I don't have a tool. I will assume I don't.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n "+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3.5-2B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": null,+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "I don't have access to real-time data, so I can't provide the exact current temperature and wind speed in London right now.\n\nTo get the most accurate and up-to-date information, I recommend checking:\n* **Weather.com** or **AccuWeather**\n* **The Met Office** (metoffice.gov.uk)\n* **Google Weather**\n* **Your smartphone's weather app**\n\nThese sources will give you the precise temperature and wind speed for your specific location in London at that exact moment.<|im_end|>\n<|endoftext|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3.5-2B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n",+ "completion": "Thinking Process:\n\n1. **Analyze the Request:**\n * User is asking for the current temperature and wind speed in London.\n * Implicit need: Real-time data.\n * Constraint: I am an AI model, not a weather station. I don't have real-time access to live data unless I have a tool or browsing capability enabled.\n\n2. **Check Capabilities:**\n * I need to check if I have access to a tool or search function to retrieve current weather data.\n * My internal knowledge cutoff is up to date, but I cannot access live internet or real-time weather data.\n * I must inform the user about this limitation.\n\n3. **Formulate Response:**\n * Acknowledge the request.\n * State clearly that I don't have real-time access to current weather data.\n * Suggest where the user can find this information (e.g., weather websites, apps, local news).\n * (Optional but helpful) Provide general context about London's weather patterns if relevant, but better to keep it direct.\n * (Optional) Mention that I can help with historical data or general information.\n\n4. **Refine Response:**\n * Keep it polite and helpful.\n * Avoid making up numbers.\n * Directly address the limitation.\n\n5. **Final Decision:**\n * State that I cannot provide real-time data.\n * Suggest checking a weather service.\n\n6. **Self-Correction/Edge Case:**\n * Wait, do I have a tool? I am a text-based model. I don't have a live search tool enabled in this specific context unless specified. I must assume I don't have live access.\n * Standard procedure for \"current weather\" queries is to say I don't have access.\n\n7. **Drafting the response:**\n * \"I don't have access to real-time weather data.\"\n * \"You can check [Weather.com, AccuWeather, etc.]\"\n * \"I can help with general information about London's climate.\"\n\n8. **Final Polish:**\n * Make it concise.\n\n *(Self-Correction during drafting)*: Actually, I should check if I have a tool enabled. Looking at the system instructions, I am a text model. I do not have a live internet connection. I must be honest.\n\n *Revised Plan:*\n 1. State limitation.\n 2. Offer alternative sources.\n 3. Offer help with general info.\n\n *Wait, one more check:* Sometimes models have access to tools. If I don't see a tool, I shouldn't pretend to have it. I will stick to the honest answer.\n\n *Wait, actually:* I am an AI assistant. I should check if I can access the web. If I can't, I can't. I will assume I can't.\n\n *Wait, actually:* I am a large language model. I do not have real-time browsing capabilities in this specific instance unless I have a specific tool enabled. I will state that I don't have access to live data.\n\n *Wait, actually:* I should check if I can use a search tool. I don't see one. I will proceed with the limitation.\n\n *Wait, actually:* I need to be careful not to hallucinate.\n\n *Final Plan:*\n 1. State I don't have real-time access.\n 2. Suggest checking a weather site.\n 3. Offer help with general info.\n\n *(Wait, actually)*: I should check if I can access the web. If I can't, I can't. I will assume I can't.\n\n *(Wait, actually)*: I am a text model. I don't have live access.\n\n *(Wait, actually)*: I will write the response now.\n\n *Wait, actually:* I should check if I have a tool. I don't see one. I will assume I don't.\n\n *Wait, actually:* I will write the response.\n\n *Wait, actually:* I need to be careful. If I say \"I don't have access,\" it's accurate.\n\n *Wait, actually:* I will write the response.\n\n *(Wait, actually)*: I should check if I can access the web. I don't have a tool. I will assume I don't.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n *(Wait, actually)*: I will write the response.\n\n "+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3.5-2B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "I don't have access to real-time data, so I can't provide the exact current temperature and wind speed in London right now.\n\nTo get the most accurate and up-to-date information, I recommend checking:\n* **Weather.com** or **AccuWeather**\n* **The Met Office** (metoffice.gov.uk)\n* **Google Weather**\n* **Your smartphone's weather app**\n\nThese sources will give you the precise temperature and wind speed for your specific location in London at that exact moment.<|im_end|>\n<|endoftext|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "Qwen/Qwen3.5-2B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n# Tools\n\nYou have access to the following functions:\n\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n</tools>\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT>\n\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n",+ "completion": "The user is asking for the current temperature and wind speed in London. I need to use the get_current_temperature function to get the temperature. However, I notice that this function only returns temperature, not wind speed.\n\nLet me check what parameters are required:\n- location: requires city and country\n- unit: optional, can be \"celsius\" or \"fahrenheit\"\n\nThe user wants London, so I need to provide:\n- city: \"London\"\n- country: \"United Kingdom\" or \"UK\"\n\nHowever, I notice that the function only returns temperature, not wind speed. The user is asking for both temperature and wind speed, but the available tool only provides temperature. I should call the function to get the temperature and then let the user know that wind speed information is not available through this tool.\n\nActually, let me reconsider. The user is asking for two pieces of information (temperature and wind speed), but the tool only provides temperature. I should call the function to get the temperature and then explain that wind speed information is not available through this tool.\n\nLet me make the function call with London, United Kingdom.\n</think>\n\n<tool_call>\n<function=get_current_temperature>\n<parameter=location>\n{\"city\": \"London\", \"country\": \"United Kingdom\"}\n</parameter>\n<parameter=unit>\ncelsius\n</parameter>\n</function>\n</tool_call><|im_end|>\n<|endoftext|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "Qwen/Qwen3.5-2B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n# Tools\n\nYou have access to the following functions:\n\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n</tools>\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT>\n\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "<tool_call>\n<function=get_current_temperature>\n<parameter=location>\n{\"city\": \"London\", \"country\": \"United Kingdom\"}\n</parameter>\n<parameter=unit>\ncelsius\n</parameter>\n</function>\n</tool_call><|im_end|>\n<|endoftext|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "Qwen/Qwen3.5-2B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n# Tools\n\nYou have access to the following functions:\n\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT>\n\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n",+ "completion": "The user is asking for current temperature and wind speed in London. However, looking at the available tools, I only have access to get_current_wind_speed, which only provides wind speed information, not temperature. There's no tool available to get temperature information.\n\nI should let the user know that I can only provide wind speed information with the available tool, and that I don't have access to temperature data.\n</think>\n\nI can help you with wind speed information, but I don't have access to temperature data with the tools available to me. I can only retrieve current wind speed in London using the available tool.\n\nWould you like me to check the current wind speed in London?<|im_end|>\n<|endoftext|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "Qwen/Qwen3.5-2B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n# Tools\n\nYou have access to the following functions:\n\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT>\n\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "I don't have access to real-time weather data, so I cannot provide the current temperature and wind speed in London. You may need to check a weather website or app for the most up-to-date information.<|im_end|>\n<|endoftext|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "Qwen/Qwen3.5-2B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n# Tools\n\nYou have access to the following functions:\n\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT>\n\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n",+ "completion": "The user is asking for the current temperature and wind speed in London. I need to use the available tools to get this information.\n\nFor temperature, I should use get_current_temperature. I need to provide:\n- location: This should be in the format \"City, Country\" according to the function description\n- unit: The user didn't specify, but I should probably use Celsius as it's the most common default\n\nFor wind speed, I should use get_current_wind_speed. This requires:\n- location: In the format \"City, Country\"\n\nLondon is in the United Kingdom, so the country would be \"United Kingdom\" or \"UK\". Let me use \"United Kingdom\" as it's more formal.\n\nLet me make both function calls.\n</think>\n\n<tool_call>\n<function=get_current_temperature>\n<parameter=location>\n{\"city\": \"London\", \"country\": \"United Kingdom\"}\n</parameter>\n<parameter=unit>\ncelsius\n</parameter>\n</function>\n</tool_call>\n<tool_call>\n<function=get_current_wind_speed>\n<parameter=location>\nLondon, United Kingdom\n</parameter>\n</function>\n</tool_call><|im_end|>\n<|endoftext|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_temperature",+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "Qwen/Qwen3.5-2B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<|im_start|>system\n# Tools\n\nYou have access to the following functions:\n\n<tools>\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_temperature\", \"description\": \"Get the current temperature at a location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"object\", \"properties\": {\"city\": {\"type\": \"string\", \"description\": \"The city name\"}, \"country\": {\"type\": \"string\", \"description\": \"The country name\"}}, \"required\": [\"city\", \"country\"], \"description\": \"The location to get the temperature for\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The unit to return the temperature in.\"}}, \"required\": [\"location\", \"unit\"]}, \"return\": {\"type\": \"number\"}}}\n{\"type\": \"function\", \"function\": {\"name\": \"get_current_wind_speed\", \"description\": \"Get the current wind speed in km/h at a given location.\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"}}, \"required\": [\"location\"]}, \"return\": {\"type\": \"number\", \"description\": \"The current wind speed in km/h\"}}}\n</tools>\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT>\n\nYou are a helpful assistant<|im_end|>\n<|im_start|>user\nWhat is the current temperature and wind speed in London?<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n",+ "completion": "<tool_call>\n<function=get_current_temperature>\n<parameter=location>\n{\"city\": \"London\", \"country\": \"United Kingdom\"}\n</parameter>\n<parameter=unit>\ncelsius\n</parameter>\n</function>\n</tool_call>\n<tool_call>\n<function=get_current_wind_speed>\n<parameter=location>\nLondon, United Kingdom\n</parameter>\n</function>\n</tool_call><|im_end|>\n<|endoftext|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_temperature",+ "get_current_wind_speed"+ ]+ }+ }+]\ No newline at end of filediff --git a/workspace/data/responses/deepseek-ai_DeepSeek-R1-Distill-Qwen-1.5B.json b/workspace/data/responses/deepseek-ai_DeepSeek-R1-Distill-Qwen-1.5B.jsonnew file mode 100644index 000000000..47ac39046--- /dev/null+++ b/workspace/data/responses/deepseek-ai_DeepSeek-R1-Distill-Qwen-1.5B.json@@ -0,0 +1,73 @@+[+ {+ "repo_id": "deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": null,+ "context": {}+ },+ "result": {+ "prompt": "<\uff5cbegin\u2581of\u2581sentence\uff5c><\uff5cUser\uff5c>What is the current temperature in London?<\uff5cAssistant\uff5c><think>\n",+ "completion": "Okay, so I need to figure out the current temperature in London. I'm not exactly sure where to start, but I'll try to break it down step by step. First, I know London is a major city in the UK, so it's probably not too cold, but I'm not certain. Maybe it depends on the time of day and the weather season.\n\nI remember that weather websites often have real-time temperature data. Maybe I can check a weather app or website. But since I'm just thinking this through, I'll have to rely on what I know. I think London usually has temperatures that are comfortable for most people, maybe around 15-25 degrees Celsius, but I'm not sure about the exact range.\n\nI also recall that London has a diverse climate with different seasons. In winter, it's probably colder, and in summer, it's warmer. I think it's around 15\u00b0C in the winter months, but maybe higher in summer. I should consider the months when the temperature is higher, like June or July.\n\nI wonder if London has any specific weather patterns, like whether it's getting warmer or colder. I think London has a relatively consistent temperature year-round, so it's not too variable. But I'm not entirely sure about the fluctuations.\n\nAnother thing I remember is that London is a major tourist destination, so maybe the weather is more moderate in some areas and more extreme in others. I think it's more moderate in the city center and less so in the outskirts, but I'm not certain about that.\n\nI also think that London's average temperature is somewhere around 18-22\u00b0C, but I'm not sure if that's accurate. I should check if the temperature is higher in summer or winter. Maybe in summer, it's around 22\u00b0C, and in winter, it's around 15\u00b0C, but I'm not sure if that's the case.\n\nWait, I think in summer, London is actually a bit warmer. I remember reading that London gets warm summer weather, so maybe the average is around 22\u00b0C. In winter, though, it's still quite cold, maybe around 15\u00b0C. I should confirm that.\n\nI also think about the different weather stations in London. Some are closer to the city center and record higher temperatures, while others are in the outskirts and might record slightly lower temperatures. So the overall average might be around 18-20\u00b0C, but I'm not sure.\n\nI should also consider the time of day. In the early morning, temperatures are often colder, and in the late afternoon, they're warmer. So maybe the current temperature is somewhere in the mid to late 20s.\n\nI'm a bit confused about whether the temperature is higher in some parts of London than others. I think it's more moderate in the city center, so maybe the average temperature is around 18-20\u00b0C, but I'm not certain.\n\nI think I've heard that London is generally cooler in summer than some other cities, so maybe the summer average is around 22\u00b0C, and winter is around 15\u00b0C. That makes sense because I remember reading that London gets more rain in the summer, which might contribute to cooler temperatures.\n\nWait, but I'm not sure if the summer average is higher or lower than other cities. I think it's higher, but I'm not certain. I should probably look up some data points to confirm.\n\nI also think about the seasons and how that affects temperature. In the spring and fall, London is generally cooler, while in the fall and winter, it's warmer. So maybe the current temperature is in the fall or winter season, making it around 22\u00b0C.\n\nBut I'm not entirely sure. I think I need to settle on a range. I believe the average temperature in London is around 18-22\u00b0C, with summer being warmer and winter cooler. So maybe the current temperature is somewhere in that range, depending on the time of day and the season.\n\nI should also consider any recent weather patterns. If there have been unusual events, like a storm or a change in weather, that could affect the temperature. But I don't have any information about that right now.\n\nIn conclusion, I think the current temperature in London is around 18-22\u00b0C, with summer being warmer and winter cooler. It's probably best to check the latest weather data for the most accurate information.\n</think>\n\nThe current temperature in London is generally considered to be around 18-22\u00b0C, with summer temperatures being warmer (around 22\u00b0C) and winter temperatures cooler (around 15\u00b0C). This range reflects the average conditions across London, considering its diverse climate with significant differences between city center and outskirts. The exact temperature may vary slightly depending on the time of day and the current season.<\uff5cend\u2581of\u2581sentence\uff5c>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": null,+ "context": {}+ },+ "result": {+ "prompt": "<\uff5cbegin\u2581of\u2581sentence\uff5c>You are a helpful assistant<\uff5cUser\uff5c>What is the current wind speed in London?<\uff5cAssistant\uff5c><think>\n",+ "completion": "Okay, so I need to figure out the current wind speed in London. I'm not entirely sure how to approach this, but I'll try to break it down step by step. \n\nFirst, I know that wind speed can vary depending on the time of day, the season, and the weather patterns. London is a city in England, so it's probably a bit more temperate than, say, a tropical country. I've heard that London can get pretty windy in the summer, especially in the summer months like July and August, but I'm not certain about the specifics.\n\nI think the best way to find this information is by looking up reliable weather websites or services. Maybe there are APIs or APIs that provide wind speed data. I remember hearing about OpenWeatherMap before; it's a site that offers a lot of weather information, including wind speed. Let me check that out.\n\nI'll go to OpenWeatherMap.com. Once there, I can either search for London or search for a city near London, like Harlow or Tameside. The site probably has a search box where I can type in the city. After I enter the city name, it should display a map with wind speed indicators. I'll click on London and see the wind speed display.\n\nWait, I think the wind speed is shown in knots, and there are different categories based on the speed. For example, below 10 knots is calm, 10-20 is light, 20-30 is moderate, and above 30 is strong. So I should look for the category that matches what I'm interested in.\n\nSince I'm not sure about the exact time of day, I might want to see the wind speed at a specific time, like 12 PM or 3 PM. The site probably allows you to choose the time, so I can set it to 12 PM and see what the wind speed is there.\n\nI also remember that OpenWeatherMap has an API, which means I can make requests to the site programmatically. Maybe I can write a small script or use a tool to get the wind speed data without going to the website each time. That could be useful if I need this information for a project or something else.\n\nAnother thing I think about is that sometimes wind speed data is updated every 15 minutes or so, so it's good to check the latest readings. I should also consider the season because wind speeds can change a lot depending on whether it's summer, winter, or fall.\n\nI wonder if there are any other reliable sources besides OpenWeatherMap. Maybe there are weather apps or other websites that provide similar data. I could also look into local weather stations in London to get more localized data, but I know that might be more time-consuming and less reliable than relying on a service like OpenWeatherMap.\n\nI should also check if the data available is free or if there are any costs involved. OpenWeatherMap seems to offer free access to wind speed data, so that's a plus.\n\nIn summary, the steps I would take are:\n\n1. Visit OpenWeatherMap.com and search for London.\n2. Check the wind speed display for the specific time of day I want to know.\n3. Look at the wind speed category to determine if it's calm, light, moderate, or strong.\n4. Optionally, use the API to retrieve the data programmatically for more detailed analysis.\n\nI think that's a solid plan. I'll proceed to use OpenWeatherMap to get the current wind speed in London and see what the data shows.\n</think>\n\nTo determine the current wind speed in London, follow these steps:\n\n1. **Visit OpenWeatherMap.com**: Start by navigating to OpenWeatherMap.com and searching for London or a nearby city like Harlow or Tameside.\n\n2. **Select the City**: Click on London to view the city's wind speed data.\n\n3. **Choose the Time of Day**: Use the time selection feature to choose a specific time, such as 12 PM.\n\n4. **View Wind Speed Data**: The site will display wind speed in knots. Look for the wind speed categories:\n - Below 10 knots: Calm\n - 10-20 knots: Light\n - 20-30 knots: Moderate\n - Above 30 knots: Strong\n\n5. **Optional API Access**: If you need more detailed or localized data, consider using the OpenWeatherMap API, which provides the latest wind speed information.\n\n6. **Consider Season**: Wind speeds can vary significantly by season, so check the latest data based on the time of year.\n\nBy following these steps, you'll obtain the current wind speed in London, providing you with both an overview and potentially localized data if needed.<\uff5cend\u2581of\u2581sentence\uff5c>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": null,+ "context": {}+ },+ "result": {+ "prompt": "<\uff5cbegin\u2581of\u2581sentence\uff5c>You are a helpful assistant<\uff5cUser\uff5c>What is the current temperature and wind speed in London?<\uff5cAssistant\uff5c><think>\n",+ "completion": "Okay, so I need to figure out the current temperature and wind speed in London. I'm not very familiar with weather data, so I'll have to think through how to approach this.\n\nFirst, I know that weather data is usually available through weather websites or apps. Maybe I can use a site like the OpenWeatherMap. I remember seeing that before; it's a free service that provides real-time weather information. I'll check if they have data for London.\n\nI'll go to OpenWeatherMap and search for London. It should show the current temperature. I'll keep in mind that the temperature can vary by location within London, so it's good to look at nearby areas.\n\nNext, wind speed. Wind speed can be a bit tricky because it's not always clear from the temperature. I think OpenWeatherMap does provide wind speed data. It's usually shown in knots, which is the unit used there. I'll look for the wind speed next to the temperature to get an idea of the wind conditions.\n\nI also need to make sure I'm accessing the correct time. The data is usually updated every hour, so I'll select the current hour. I should check if there's a zoom feature so I can see the exact location on the map.\n\nWait, sometimes the temperature and wind speed might not be the same. For example, in places with strong winds, the temperature might be lower or higher depending on the direction of the wind. I'll pay attention to the wind direction if available, to get a better understanding of the weather conditions.\n\nI should also consider whether I need to report this data for something specific. If it's for a project or a personal use, I'll make sure to format it correctly. If it's just for personal interest, I'll present it in a way that's easy to understand.\n\nI think I've covered the main steps. I'll open the weather website, find London's current location, check the temperature and wind speed, and make sure everything is up to date. Hopefully, this will give me the accurate and up-to-date information I need.\n</think>\n\nTo determine the current temperature and wind speed in London, follow these steps:\n\n1. **Access OpenWeatherMap**: Visit the OpenWeatherMap website to obtain real-time weather data.\n\n2. **Search for London**: Use the search bar to find weather information for London.\n\n3. **Check Temperature**: Look for the temperature displayed. It may vary by location within London, so check nearby areas if needed.\n\n4. **Verify Wind Speed**: Wind speed is typically shown in knots next to the temperature. This unit is used to measure wind intensity.\n\n5. **Access Current Data**: Select the current hour to view the most recent data. Use the zoom feature if available to see the exact location on the map.\n\n6. **Consider Wind Direction**: If available, note the wind direction to understand the weather conditions better.\n\n7. **Format Data**: Depending on your needs, format the temperature and wind speed appropriately for reporting or personal use.\n\nBy following these steps, you can accurately and efficiently obtain the current weather data for London.<\uff5cend\u2581of\u2581sentence\uff5c>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ }+]\ No newline at end of filediff --git a/workspace/data/responses/google_functiongemma-270m-it.json b/workspace/data/responses/google_functiongemma-270m-it.jsonnew file mode 100644index 000000000..03b9577cc--- /dev/null+++ b/workspace/data/responses/google_functiongemma-270m-it.json@@ -0,0 +1,659 @@+[+ {+ "repo_id": "google/functiongemma-270m-it",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a model that can do function calling with the following functions"+ },+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<bos><start_of_turn>developer\nYou are a model that can do function calling with the following functions<start_function_declaration>declaration:get_current_temperature{description:<escape>Get the current temperature at a location.<escape>,parameters:{properties:{location:{description:<escape>The location to get the temperature for<escape>,properties:{city:{description:<escape>The city name<escape>,type:<escape>STRING<escape>},country:{description:<escape>The country name<escape>,type:<escape>STRING<escape>}},required:[<escape>city<escape>,<escape>country<escape>],type:<escape>OBJECT<escape>},unit:{description:<escape>The unit to return the temperature in.<escape>,enum:[<escape>celsius<escape>,<escape>fahrenheit<escape>],type:<escape>STRING<escape>}},required:[<escape>location<escape>,<escape>unit<escape>],type:<escape>OBJECT<escape>}}<end_function_declaration><end_of_turn>\n<start_of_turn>user\nWhat is the current temperature in London?<end_of_turn>\n<start_of_turn>model\n",+ "completion": "<start_function_call>call:get_current_temperature{location:{city:<escape>London<escape>,country:<escape>UK<escape>},unit:<escape>celsius<escape>}<end_function_call><start_function_response>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "google/functiongemma-270m-it",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a model that can do function calling with the following functions"+ },+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<bos><start_of_turn>developer\nYou are a model that can do function calling with the following functions<start_function_declaration>declaration:get_current_wind_speed{description:<escape>Get the current wind speed in km/h at a given location.<escape>,parameters:{properties:{location:{description:<escape>The location to get the wind speed for, in the format \"City, Country\"<escape>,type:<escape>STRING<escape>}},required:[<escape>location<escape>],type:<escape>OBJECT<escape>}}<end_function_declaration><end_of_turn>\n<start_of_turn>user\nWhat is the current temperature in London?<end_of_turn>\n<start_of_turn>model\n",+ "completion": "I apologize, but I cannot assist with retrieving current weather data for London. My available tools are focused on weather-related tasks, such as wind speed and location tracking. I cannot provide historical weather information.<end_of_turn>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "google/functiongemma-270m-it",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a model that can do function calling with the following functions"+ },+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<bos><start_of_turn>developer\nYou are a model that can do function calling with the following functions<start_function_declaration>declaration:get_current_temperature{description:<escape>Get the current temperature at a location.<escape>,parameters:{properties:{location:{description:<escape>The location to get the temperature for<escape>,properties:{city:{description:<escape>The city name<escape>,type:<escape>STRING<escape>},country:{description:<escape>The country name<escape>,type:<escape>STRING<escape>}},required:[<escape>city<escape>,<escape>country<escape>],type:<escape>OBJECT<escape>},unit:{description:<escape>The unit to return the temperature in.<escape>,enum:[<escape>celsius<escape>,<escape>fahrenheit<escape>],type:<escape>STRING<escape>}},required:[<escape>location<escape>,<escape>unit<escape>],type:<escape>OBJECT<escape>}}<end_function_declaration><start_function_declaration>declaration:get_current_wind_speed{description:<escape>Get the current wind speed in km/h at a given location.<escape>,parameters:{properties:{location:{description:<escape>The location to get the wind speed for, in the format \"City, Country\"<escape>,type:<escape>STRING<escape>}},required:[<escape>location<escape>],type:<escape>OBJECT<escape>}}<end_function_declaration><end_of_turn>\n<start_of_turn>user\nWhat is the current temperature in London?<end_of_turn>\n<start_of_turn>model\n",+ "completion": "<start_function_call>call:get_current_temperature{location:<escape>London<escape>,city:<escape>London<escape>,country:<escape>UK<escape>}<end_function_call><start_function_response>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "google/functiongemma-270m-it",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a model that can do function calling with the following functions"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<bos><start_of_turn>developer\nYou are a model that can do function calling with the following functions<start_function_declaration>declaration:get_current_temperature{description:<escape>Get the current temperature at a location.<escape>,parameters:{properties:{location:{description:<escape>The location to get the temperature for<escape>,properties:{city:{description:<escape>The city name<escape>,type:<escape>STRING<escape>},country:{description:<escape>The country name<escape>,type:<escape>STRING<escape>}},required:[<escape>city<escape>,<escape>country<escape>],type:<escape>OBJECT<escape>},unit:{description:<escape>The unit to return the temperature in.<escape>,enum:[<escape>celsius<escape>,<escape>fahrenheit<escape>],type:<escape>STRING<escape>}},required:[<escape>location<escape>,<escape>unit<escape>],type:<escape>OBJECT<escape>}}<end_function_declaration><end_of_turn>\n<start_of_turn>user\nWhat is the current wind speed in London?<end_of_turn>\n<start_of_turn>model\n",+ "completion": "I apologize, but I cannot provide real-time wind speed data. My current capabilities are limited to assisting with weather-related requests using the provided tools. I cannot access or analyze real-time wind conditions.<end_of_turn>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "google/functiongemma-270m-it",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a model that can do function calling with the following functions"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<bos><start_of_turn>developer\nYou are a model that can do function calling with the following functions<start_function_declaration>declaration:get_current_wind_speed{description:<escape>Get the current wind speed in km/h at a given location.<escape>,parameters:{properties:{location:{description:<escape>The location to get the wind speed for, in the format \"City, Country\"<escape>,type:<escape>STRING<escape>}},required:[<escape>location<escape>],type:<escape>OBJECT<escape>}}<end_function_declaration><end_of_turn>\n<start_of_turn>user\nWhat is the current wind speed in London?<end_of_turn>\n<start_of_turn>model\n",+ "completion": "<start_function_call>call:get_current_wind_speed{location:<escape>London<escape>}<end_function_call><start_function_response>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "google/functiongemma-270m-it",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a model that can do function calling with the following functions"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<bos><start_of_turn>developer\nYou are a model that can do function calling with the following functions<start_function_declaration>declaration:get_current_temperature{description:<escape>Get the current temperature at a location.<escape>,parameters:{properties:{location:{description:<escape>The location to get the temperature for<escape>,properties:{city:{description:<escape>The city name<escape>,type:<escape>STRING<escape>},country:{description:<escape>The country name<escape>,type:<escape>STRING<escape>}},required:[<escape>city<escape>,<escape>country<escape>],type:<escape>OBJECT<escape>},unit:{description:<escape>The unit to return the temperature in.<escape>,enum:[<escape>celsius<escape>,<escape>fahrenheit<escape>],type:<escape>STRING<escape>}},required:[<escape>location<escape>,<escape>unit<escape>],type:<escape>OBJECT<escape>}}<end_function_declaration><start_function_declaration>declaration:get_current_wind_speed{description:<escape>Get the current wind speed in km/h at a given location.<escape>,parameters:{properties:{location:{description:<escape>The location to get the wind speed for, in the format \"City, Country\"<escape>,type:<escape>STRING<escape>}},required:[<escape>location<escape>],type:<escape>OBJECT<escape>}}<end_function_declaration><end_of_turn>\n<start_of_turn>user\nWhat is the current wind speed in London?<end_of_turn>\n<start_of_turn>model\n",+ "completion": "<start_function_call>call:get_current_wind_speed{location:<escape>London<escape>}<end_function_call><start_function_response>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "google/functiongemma-270m-it",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a model that can do function calling with the following functions"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<bos><start_of_turn>developer\nYou are a model that can do function calling with the following functions<start_function_declaration>declaration:get_current_temperature{description:<escape>Get the current temperature at a location.<escape>,parameters:{properties:{location:{description:<escape>The location to get the temperature for<escape>,properties:{city:{description:<escape>The city name<escape>,type:<escape>STRING<escape>},country:{description:<escape>The country name<escape>,type:<escape>STRING<escape>}},required:[<escape>city<escape>,<escape>country<escape>],type:<escape>OBJECT<escape>},unit:{description:<escape>The unit to return the temperature in.<escape>,enum:[<escape>celsius<escape>,<escape>fahrenheit<escape>],type:<escape>STRING<escape>}},required:[<escape>location<escape>,<escape>unit<escape>],type:<escape>OBJECT<escape>}}<end_function_declaration><end_of_turn>\n<start_of_turn>user\nWhat is the current temperature and wind speed in London?<end_of_turn>\n<start_of_turn>model\n",+ "completion": "I can certainly help with that. To get the current temperature and wind speed, could you please specify the location you are interested in?<end_of_turn>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "google/functiongemma-270m-it",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a model that can do function calling with the following functions"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<bos><start_of_turn>developer\nYou are a model that can do function calling with the following functions<start_function_declaration>declaration:get_current_wind_speed{description:<escape>Get the current wind speed in km/h at a given location.<escape>,parameters:{properties:{location:{description:<escape>The location to get the wind speed for, in the format \"City, Country\"<escape>,type:<escape>STRING<escape>}},required:[<escape>location<escape>],type:<escape>OBJECT<escape>}}<end_function_declaration><end_of_turn>\n<start_of_turn>user\nWhat is the current temperature and wind speed in London?<end_of_turn>\n<start_of_turn>model\n",+ "completion": "<start_function_call>call:get_current_wind_speed{location:<escape>London<escape>}<end_function_call><start_function_response>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "google/functiongemma-270m-it",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a model that can do function calling with the following functions"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<bos><start_of_turn>developer\nYou are a model that can do function calling with the following functions<start_function_declaration>declaration:get_current_temperature{description:<escape>Get the current temperature at a location.<escape>,parameters:{properties:{location:{description:<escape>The location to get the temperature for<escape>,properties:{city:{description:<escape>The city name<escape>,type:<escape>STRING<escape>},country:{description:<escape>The country name<escape>,type:<escape>STRING<escape>}},required:[<escape>city<escape>,<escape>country<escape>],type:<escape>OBJECT<escape>},unit:{description:<escape>The unit to return the temperature in.<escape>,enum:[<escape>celsius<escape>,<escape>fahrenheit<escape>],type:<escape>STRING<escape>}},required:[<escape>location<escape>,<escape>unit<escape>],type:<escape>OBJECT<escape>}}<end_function_declaration><start_function_declaration>declaration:get_current_wind_speed{description:<escape>Get the current wind speed in km/h at a given location.<escape>,parameters:{properties:{location:{description:<escape>The location to get the wind speed for, in the format \"City, Country\"<escape>,type:<escape>STRING<escape>}},required:[<escape>location<escape>],type:<escape>OBJECT<escape>}}<end_function_declaration><end_of_turn>\n<start_of_turn>user\nWhat is the current temperature and wind speed in London?<end_of_turn>\n<start_of_turn>model\n",+ "completion": "<start_function_call>call:get_current_temperature{location:<escape>London<escape>,unit:<escape>celsius<escape>}<end_function_call><start_function_call>call:get_current_wind_speed{location:<escape>London<escape>}<end_function_call><start_function_response>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_temperature",+ "get_current_wind_speed"+ ]+ }+ }+]\ No newline at end of filediff --git a/workspace/data/responses/google_gemma-2-2b-it.json b/workspace/data/responses/google_gemma-2-2b-it.jsonnew file mode 100644index 000000000..d7c1a7c7c--- /dev/null+++ b/workspace/data/responses/google_gemma-2-2b-it.json@@ -0,0 +1,23 @@+[+ {+ "repo_id": "google/gemma-2-2b-it",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": null,+ "context": {}+ },+ "result": {+ "prompt": "<bos><start_of_turn>user\nWhat is the current temperature in London?<end_of_turn>\n<start_of_turn>model\n",+ "completion": "I do not have access to real-time information, including weather data. To get the current temperature in London, I recommend checking a reliable weather website or app. \n\nHere are some good options:\n\n* **Google Weather:** Just search \"weather London\" on Google.\n* **AccuWeather:** https://www.accuweather.com/\n* **The Met Office:** https://www.metoffice.gov.uk/ \n* **BBC Weather:** https://www.bbc.com/weather \n\n\nLet me know if you have other questions! \n<end_of_turn>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ }+]\ No newline at end of filediff --git a/workspace/data/responses/google_gemma-3-1b-it.json b/workspace/data/responses/google_gemma-3-1b-it.jsonnew file mode 100644index 000000000..e3b23e5f1--- /dev/null+++ b/workspace/data/responses/google_gemma-3-1b-it.json@@ -0,0 +1,73 @@+[+ {+ "repo_id": "google/gemma-3-1b-it",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": null,+ "context": {}+ },+ "result": {+ "prompt": "<bos><start_of_turn>user\nWhat is the current temperature in London?<end_of_turn>\n<start_of_turn>model\n",+ "completion": "As of today, November 2, 2023, at 1:47 PM GMT, the temperature in London is **13\u00b0C (55\u00b0F)**. \n\nHere's a more detailed breakdown:\n\n* **Current conditions:** Partly cloudy\n* **Feels like:** 10\u00b0C (50\u00b0F)\n* **Wind:** West at 15 km/h (9 mph)\n\nYou can find more up-to-the-minute weather information here: [https://www.metoffice.gov.uk/weather/weather-forecast](https://www.metoffice.gov.uk/weather/weather-forecast)<end_of_turn>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "google/gemma-3-1b-it",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": null,+ "context": {}+ },+ "result": {+ "prompt": "<bos><start_of_turn>user\nYou are a helpful assistant\n\nWhat is the current wind speed in London?<end_of_turn>\n<start_of_turn>model\n",+ "completion": "I can check the current wind speed in London for you!\n\nAs of right now (November 2, 2023, at 10:46 AM PST), the wind speed in London is approximately **16 km/h (10 mph)**.\n\nYou can find more detailed wind speed information here: [https://www.met-weather.com/wind-speed/london](https://www.met-weather.com/wind-speed/london)\n\nDo you want me to provide you with any other weather information?<end_of_turn>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "google/gemma-3-1b-it",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": null,+ "context": {}+ },+ "result": {+ "prompt": "<bos><start_of_turn>user\nYou are a helpful assistant\n\nWhat is the current temperature and wind speed in London?<end_of_turn>\n<start_of_turn>model\n",+ "completion": "Okay, let me check that for you.\n\nAs of right now (November 3, 2023, 1:15 PM GMT), the temperature in London is 13\u00b0C (55\u00b0F) and the wind speed is 25 km/h (15 mph) from the southwest.\n\nWould you like me to provide you with a forecast?<end_of_turn>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ }+]\ No newline at end of filediff --git a/workspace/data/responses/google_gemma-3-4b-it.json b/workspace/data/responses/google_gemma-3-4b-it.jsonnew file mode 100644index 000000000..6c76308b1--- /dev/null+++ b/workspace/data/responses/google_gemma-3-4b-it.json@@ -0,0 +1,73 @@+[+ {+ "repo_id": "google/gemma-3-4b-it",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": null,+ "context": {}+ },+ "result": {+ "prompt": "<bos><start_of_turn>user\nWhat is the current temperature in London?<end_of_turn>\n<start_of_turn>model\n",+ "completion": "As of November 3, 2023, at 1:35 PM PST, the temperature in London is **12\u00b0C (54\u00b0F)**.\n\nYou can always find the most up-to-date weather information here:\n\n* **Google Weather:** [https://www.google.com/search?q=weather+london](https://www.google.com/search?q=weather+london)\n* **BBC Weather:** [https://www.bbc.com/weather/2643743](https://www.bbc.com/weather/2643743)<end_of_turn>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "google/gemma-3-4b-it",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": null,+ "context": {}+ },+ "result": {+ "prompt": "<bos><start_of_turn>user\nYou are a helpful assistant\n\nWhat is the current wind speed in London?<end_of_turn>\n<start_of_turn>model\n",+ "completion": "Okay, let's check the current wind speed in London. \n\nAs of 8:38 AM PST on November 3, 2023, the wind speed in London is **17 mph (27 km/h)** with **easterly winds**.\n\nYou can always get the most up-to-the-minute information from these resources:\n\n* **BBC Weather:** [https://www.bbc.com/weather/weather-in-london](https://www.bbc.com/weather/weather-in-london)\n* **AccuWeather:** [https://www.accuweather.com/en/gb/london/ec1n/wind/101677](https://www.accuweather.com/en/gb/london/ec1n/wind/101677)\n\nWould you like me to check the wind speed for a specific area within London, or perhaps look for wind forecasts for later today?<end_of_turn>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "google/gemma-3-4b-it",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": null,+ "context": {}+ },+ "result": {+ "prompt": "<bos><start_of_turn>user\nYou are a helpful assistant\n\nWhat is the current temperature and wind speed in London?<end_of_turn>\n<start_of_turn>model\n",+ "completion": "Okay, here's the current weather information for London:\n\n* **Temperature:** 18\u00b0C (64\u00b0F)\n* **Wind Speed:** 16 km/h (10 mph) from the Southwest\n\n**Source:** [https://www.metoffice.gov.uk/](https://www.metoffice.gov.uk/) (as of 10:22 AM BST on November 3, 2023)\n\nWould you like me to check the weather for a different location, or perhaps provide a longer forecast?<end_of_turn>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ }+]\ No newline at end of filediff --git a/workspace/data/responses/google_gemma-4-E4B-it.json b/workspace/data/responses/google_gemma-4-E4B-it.jsonnew file mode 100644index 000000000..03972cca5--- /dev/null+++ b/workspace/data/responses/google_gemma-4-E4B-it.json@@ -0,0 +1,1636 @@+[+ {+ "repo_id": "google/gemma-4-E4B-it",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": null,+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<bos><|turn>system\n<|think|><turn|>\n<|turn>user\nWhat is the current temperature in London?<turn|>\n<|turn>model\n",+ "completion": "<|channel>thought\nThinking Process:\n\n1. **Identify the user's request:** The user is asking for the current temperature in London.\n2. **Check available resources:** I am a large language model (Gemma 4). I do not have built-in, real-time access to the internet, current weather data, or external APIs (like weather services) unless a specific tool/endpoint has been provided in the prompt.\n3. **Review instructions/constraints:** The instructions state I must not use tools unless explicitly provided. No tools were provided in this prompt.\n4. **Determine feasibility:** I cannot provide real-time, up-to-the-minute weather information.\n5. **Formulate the response:**\n * Acknowledge the request.\n * State the limitation (lack of real-time data access).\n * Advise the user on how to find the information (search engine, dedicated weather app, weather website).\n6. **Final output generation.**<channel|>I do not have access to real-time information like current weather conditions.\n\nTo get the current temperature in London, please check a reliable weather website (like the BBC Weather or AccuWeather) or use a search engine.<turn|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "google/gemma-4-E4B-it",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": null,+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<bos><|turn>user\nWhat is the current temperature in London?<turn|>\n<|turn>model\n",+ "completion": "I am sorry, but I do not have real-time access to current weather information, so I cannot tell you the current temperature in London. Please check a reliable weather website or app for the most up-to-date information.<turn|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "google/gemma-4-E4B-it",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<bos><|turn>system\n<|think|><turn|>\n<|turn>user\nWhat is the current temperature in London?<turn|>\n<|turn>model\n",+ "completion": "<|channel>thought\nThinking Process:\n\n1. **Analyze the Request:** The user is asking for the current temperature in London.\n2. **Determine Information Type:** This requires real-time, external, up-to-date data (weather data).\n3. **Check Capabilities/Limitations:**\n * I am Gemma 4, an LLM.\n * I do not have inherent real-time access to the internet, live weather APIs, or GPS location services unless a specific tool or external API endpoint is provided in the current context.\n * No tools were provided in the prompt.\n4. **Formulate the Response:** I must clearly state that I cannot provide real-time data and instruct the user on how they can find the answer.\n\n5. **Drafting the Answer (Self-Correction/Refinement):** Instead of just saying \"I don't know,\" I should be helpful. I should tell them *where* to look (Google, weather apps, etc.).\n\n6. **Final Output Generation.**<channel|>I do not have access to real-time data, so I cannot give you the current temperature in London.\n\nTo get the most accurate, up-to-the-minute weather information, please check a reliable source such as:\n\n* Google Search (by typing \"weather in London\")\n* A dedicated weather app (e.g., AccuWeather, BBC Weather)\n* The Meteorological Office (Met Office) website<turn|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "google/gemma-4-E4B-it",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<bos><|turn>user\nWhat is the current temperature in London?<turn|>\n<|turn>model\n",+ "completion": "I do not have real-time access to current weather information, so I cannot tell you the current temperature in London.\n\nTo find out the current temperature, I recommend checking a reliable weather website or using a weather application.<turn|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "google/gemma-4-E4B-it",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<bos><|turn>system\n<|think|><|tool>declaration:get_current_temperature{description:<|\"|>Get the current temperature at a location.<|\"|>,parameters:{properties:{location:{description:<|\"|>The location to get the temperature for<|\"|>,properties:{city:{description:<|\"|>The city name<|\"|>,type:<|\"|>STRING<|\"|>},country:{description:<|\"|>The country name<|\"|>,type:<|\"|>STRING<|\"|>}},required:[<|\"|>city<|\"|>,<|\"|>country<|\"|>],type:<|\"|>OBJECT<|\"|>},unit:{description:<|\"|>The unit to return the temperature in.<|\"|>,enum:[<|\"|>celsius<|\"|>,<|\"|>fahrenheit<|\"|>],type:<|\"|>STRING<|\"|>}},required:[<|\"|>location<|\"|>,<|\"|>unit<|\"|>],type:<|\"|>OBJECT<|\"|>}}<tool|><turn|>\n<|turn>user\nWhat is the current temperature in London?<turn|>\n<|turn>model\n",+ "completion": "<|channel>thought\n1. **Analyze the user request:** The user is asking for \"the current temperature in London\".\n\n2. **Examine available tools:** I have one tool available: `get_current_temperature`.\n\n3. **Analyze the `get_current_temperature` function signature:**\n - It requires a `location` object.\n - The `location` object requires `city` (STRING) and `country` (STRING).\n - It requires a `unit` (STRING, enum: 'celsius', 'fahrenheit').\n\n4. **Identify missing information:**\n - The user provided the city: \"London\".\n - The user *did not* provide the country for London. While London is generally known to be in the UK, the tool specification requires the country explicitly.\n - The user *did not* specify a unit (Celsius or Fahrenheit).\n\n5. **Determine the next step:** Since required parameters (`country` and `unit`) are missing for the tool call, I cannot fulfill the request immediately. I must ask the user for the missing information.\n\n6. **Formulate the response:** The response should acknowledge the request and ask for the necessary details (country and unit).\n\n7. **Refine the response:** Ask for the country of London and the preferred temperature unit.<channel|>I can help with that! Could you please provide the country for London and which unit you would like the temperature in (Celsius or Fahrenheit)?<turn|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "google/gemma-4-E4B-it",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<bos><|turn>system\n<|tool>declaration:get_current_temperature{description:<|\"|>Get the current temperature at a location.<|\"|>,parameters:{properties:{location:{description:<|\"|>The location to get the temperature for<|\"|>,properties:{city:{description:<|\"|>The city name<|\"|>,type:<|\"|>STRING<|\"|>},country:{description:<|\"|>The country name<|\"|>,type:<|\"|>STRING<|\"|>}},required:[<|\"|>city<|\"|>,<|\"|>country<|\"|>],type:<|\"|>OBJECT<|\"|>},unit:{description:<|\"|>The unit to return the temperature in.<|\"|>,enum:[<|\"|>celsius<|\"|>,<|\"|>fahrenheit<|\"|>],type:<|\"|>STRING<|\"|>}},required:[<|\"|>location<|\"|>,<|\"|>unit<|\"|>],type:<|\"|>OBJECT<|\"|>}}<tool|><turn|>\n<|turn>user\nWhat is the current temperature in London?<turn|>\n<|turn>model\n",+ "completion": "Could you please specify the country for London, and what unit you would like the temperature in (Celsius or Fahrenheit)?<turn|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "google/gemma-4-E4B-it",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<bos><|turn>system\n<|think|><|tool>declaration:get_current_wind_speed{description:<|\"|>Get the current wind speed in km/h at a given location.<|\"|>,parameters:{properties:{location:{description:<|\"|>The location to get the wind speed for, in the format \"City, Country\"<|\"|>,type:<|\"|>STRING<|\"|>}},required:[<|\"|>location<|\"|>],type:<|\"|>OBJECT<|\"|>}}<tool|><turn|>\n<|turn>user\nWhat is the current temperature in London?<turn|>\n<|turn>model\n",+ "completion": "<|channel>thought\n1. **Analyze the user's request:** The user is asking for \"the current temperature in London.\"\n\n2. **Examine available tools:** I have one tool available: `get_current_wind_speed(location: string)`.\n\n3. **Determine tool relevance:**\n * The user is asking for *temperature*.\n * The available tool provides *wind speed*.\n * There is no tool available to get the *temperature*.\n\n4. **Formulate the response:** Since the available tool cannot fulfill the request (it only gets wind speed, not temperature), I must inform the user about this limitation. I should respond directly to the user in natural language, explaining that I cannot provide the temperature with the current tools.\n\n5. **Final Answer Generation:** Construct a user-facing response that politely states the inability to fulfill the request due to tool limitations.<channel|>I'm sorry, I cannot provide the current temperature. I only have access to a tool that can get the current wind speed.<turn|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "google/gemma-4-E4B-it",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<bos><|turn>system\n<|tool>declaration:get_current_wind_speed{description:<|\"|>Get the current wind speed in km/h at a given location.<|\"|>,parameters:{properties:{location:{description:<|\"|>The location to get the wind speed for, in the format \"City, Country\"<|\"|>,type:<|\"|>STRING<|\"|>}},required:[<|\"|>location<|\"|>],type:<|\"|>OBJECT<|\"|>}}<tool|><turn|>\n<|turn>user\nWhat is the current temperature in London?<turn|>\n<|turn>model\n",+ "completion": "I do not have the capability to provide real-time weather information such as the current temperature. I can, however, get the current wind speed if you provide a location.<turn|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "google/gemma-4-E4B-it",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<bos><|turn>system\n<|think|><|tool>declaration:get_current_temperature{description:<|\"|>Get the current temperature at a location.<|\"|>,parameters:{properties:{location:{description:<|\"|>The location to get the temperature for<|\"|>,properties:{city:{description:<|\"|>The city name<|\"|>,type:<|\"|>STRING<|\"|>},country:{description:<|\"|>The country name<|\"|>,type:<|\"|>STRING<|\"|>}},required:[<|\"|>city<|\"|>,<|\"|>country<|\"|>],type:<|\"|>OBJECT<|\"|>},unit:{description:<|\"|>The unit to return the temperature in.<|\"|>,enum:[<|\"|>celsius<|\"|>,<|\"|>fahrenheit<|\"|>],type:<|\"|>STRING<|\"|>}},required:[<|\"|>location<|\"|>,<|\"|>unit<|\"|>],type:<|\"|>OBJECT<|\"|>}}<tool|><|tool>declaration:get_current_wind_speed{description:<|\"|>Get the current wind speed in km/h at a given location.<|\"|>,parameters:{properties:{location:{description:<|\"|>The location to get the wind speed for, in the format \"City, Country\"<|\"|>,type:<|\"|>STRING<|\"|>}},required:[<|\"|>location<|\"|>],type:<|\"|>OBJECT<|\"|>}}<tool|><turn|>\n<|turn>user\nWhat is the current temperature in London?<turn|>\n<|turn>model\n",+ "completion": "<|channel>thought\n1. **Analyze the Request:** The user is asking for \"the current temperature in London\".\n\n2. **Examine Available Tools:**\n * `get_current_temperature`: Gets the current temperature. It requires `location` (which needs `city` and `country`) and `unit`.\n * `get_current_wind_speed`: Gets the wind speed. It requires a `location` string (\"City, Country\").\n\n3. **Determine Necessary Information:** To use `get_current_temperature`, I need:\n * `city`: \"London\" (Provided)\n * `country`: (Missing)\n * `unit`: (Missing, but a default or clarification might be needed later)\n\n4. **Check for Missing Information:** The country for \"London\" is not provided.\n\n5. **Formulate Response:** Since a required parameter (`country`) for the necessary tool (`get_current_temperature`) is missing, I must ask the user for that information before I can call the tool.\n\n6. **Construct the Question:** Ask the user to specify the country for London.<channel|>Could you please specify which country London is in?<turn|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "google/gemma-4-E4B-it",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<bos><|turn>system\n<|tool>declaration:get_current_temperature{description:<|\"|>Get the current temperature at a location.<|\"|>,parameters:{properties:{location:{description:<|\"|>The location to get the temperature for<|\"|>,properties:{city:{description:<|\"|>The city name<|\"|>,type:<|\"|>STRING<|\"|>},country:{description:<|\"|>The country name<|\"|>,type:<|\"|>STRING<|\"|>}},required:[<|\"|>city<|\"|>,<|\"|>country<|\"|>],type:<|\"|>OBJECT<|\"|>},unit:{description:<|\"|>The unit to return the temperature in.<|\"|>,enum:[<|\"|>celsius<|\"|>,<|\"|>fahrenheit<|\"|>],type:<|\"|>STRING<|\"|>}},required:[<|\"|>location<|\"|>,<|\"|>unit<|\"|>],type:<|\"|>OBJECT<|\"|>}}<tool|><|tool>declaration:get_current_wind_speed{description:<|\"|>Get the current wind speed in km/h at a given location.<|\"|>,parameters:{properties:{location:{description:<|\"|>The location to get the wind speed for, in the format \"City, Country\"<|\"|>,type:<|\"|>STRING<|\"|>}},required:[<|\"|>location<|\"|>],type:<|\"|>OBJECT<|\"|>}}<tool|><turn|>\n<|turn>user\nWhat is the current temperature in London?<turn|>\n<|turn>model\n",+ "completion": "Can you please specify which country London is in?<turn|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "google/gemma-4-E4B-it",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": null,+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<bos><|turn>system\n<|think|>You are a helpful assistant<turn|>\n<|turn>user\nWhat is the current wind speed in London?<turn|>\n<|turn>model\n",+ "completion": "<|channel>thought\nHere's a thinking process to construct the answer:\n\n1. **Identify the core request:** The user is asking for the \"current wind speed in London.\"\n2. **Analyze the nature of the request:** This requires real-time, up-to-the-minute weather data.\n3. **Determine capability:** As an AI language model, I do not have direct, live access to a constantly updated, proprietary weather sensor network. My knowledge is based on the data I was trained on, which is not real-time.\n4. **Formulate the necessary disclaimer/explanation:** I must inform the user that I cannot provide live, accurate weather data.\n5. **Provide helpful alternatives (The Solution):** Since I can't give the answer directly, I must tell the user *where* they can find the answer. Good sources include:\n * Dedicated weather apps (AccuWeather, BBC Weather, etc.).\n * Official meteorological websites (Met Office in the UK).\n * Search engines (Google search).\n6. **Construct the final response:** Combine the disclaimer with the helpful resources to give a complete and useful answer. (Self-Correction: Be polite and direct.)<channel|>I do not have access to real-time, live weather data. Therefore, I cannot tell you the exact wind speed in London right now.\n\nTo get the most accurate and current information, please check one of these reliable sources:\n\n* **The UK Met Office website or app** (This is the official source for UK weather).\n* **Google Weather Search** (Simply searching \"wind speed London\" will usually give you a real-time reading).\n* **A dedicated weather app** (like BBC Weather, AccuWeather, etc.).<turn|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "google/gemma-4-E4B-it",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": null,+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<bos><|turn>system\nYou are a helpful assistant<turn|>\n<|turn>user\nWhat is the current wind speed in London?<turn|>\n<|turn>model\n",+ "completion": "I do not have real-time access to live weather data, so I cannot give you the *current* wind speed in London.\n\nTo get the most accurate and up-to-date information, I recommend checking one of the following sources:\n\n* **The UK Met Office website or app** (This is the official source for UK weather).\n* **Google Weather** (Simply searching \"weather London\" on Google will usually show current conditions).\n* **A dedicated weather application** on your phone.<turn|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "google/gemma-4-E4B-it",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<bos><|turn>system\n<|think|>You are a helpful assistant<turn|>\n<|turn>user\nWhat is the current wind speed in London?<turn|>\n<|turn>model\n",+ "completion": "<|channel>thought\nThinking Process:\n\n1. **Identify the core request:** The user is asking for the \"current wind speed in London.\"\n2. **Determine the necessary information:** To answer this accurately, I need real-time, up-to-date weather data for London.\n3. **Assess capabilities:** As an LLM, I do not have direct, real-time access to live sensors or APIs unless a specific tool has been provided.\n4. **Check for tool availability:** No external tool (like a weather API or Google Search endpoint) has been provided in the prompt.\n5. **Formulate the response:**\n * Acknowledge the request.\n * State the limitation (I cannot provide real-time data).\n * Provide actionable advice on how the user can find the information (suggest reliable sources).\n6. **Refine the suggestions:** Good sources include official meteorological services (like the UK Met Office) or major weather apps/websites.\n\n*(Self-Correction/Review):* I must avoid making up a number, as that would be inaccurate and unhelpful.\n\n7. **Final Output Generation.**<channel|>I do not have real-time access to live weather data, so I cannot give you the current wind speed in London right now.\n\nTo get the most accurate and up-to-the-minute information, please check a reliable weather source such as:\n\n* **The UK Met Office website or app**\n* **AccuWeather**\n* **The BBC Weather website**<turn|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "google/gemma-4-E4B-it",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<bos><|turn>system\nYou are a helpful assistant<turn|>\n<|turn>user\nWhat is the current wind speed in London?<turn|>\n<|turn>model\n",+ "completion": "I do not have real-time access to current weather data, so I cannot tell you the exact wind speed in London right now.\n\nTo get the most accurate and up-to-date information, I recommend checking one of these sources:\n\n* **A reliable weather website** (like the BBC Weather, Met Office, or Weather Underground).\n* **A weather app** on your phone.\n\nThese sources will provide you with the current wind speed and forecast for London!<turn|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "google/gemma-4-E4B-it",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<bos><|turn>system\n<|think|>You are a helpful assistant<|tool>declaration:get_current_temperature{description:<|\"|>Get the current temperature at a location.<|\"|>,parameters:{properties:{location:{description:<|\"|>The location to get the temperature for<|\"|>,properties:{city:{description:<|\"|>The city name<|\"|>,type:<|\"|>STRING<|\"|>},country:{description:<|\"|>The country name<|\"|>,type:<|\"|>STRING<|\"|>}},required:[<|\"|>city<|\"|>,<|\"|>country<|\"|>],type:<|\"|>OBJECT<|\"|>},unit:{description:<|\"|>The unit to return the temperature in.<|\"|>,enum:[<|\"|>celsius<|\"|>,<|\"|>fahrenheit<|\"|>],type:<|\"|>STRING<|\"|>}},required:[<|\"|>location<|\"|>,<|\"|>unit<|\"|>],type:<|\"|>OBJECT<|\"|>}}<tool|><turn|>\n<|turn>user\nWhat is the current wind speed in London?<turn|>\n<|turn>model\n",+ "completion": "<|channel>thought\nThe user is asking for the current wind speed in London.\nI need to examine the available tools to see if any can provide this information.\nThe only available tool is `get_current_temperature`, which can get the current temperature at a location.\nThis tool does *not* provide wind speed information.\n\nSince I do not have a tool to fetch wind speed, I must inform the user about this limitation.<channel|>I'm sorry, I cannot provide you with the current wind speed. I only have a tool that can retrieve the current temperature.<turn|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "google/gemma-4-E4B-it",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<bos><|turn>system\nYou are a helpful assistant<|tool>declaration:get_current_temperature{description:<|\"|>Get the current temperature at a location.<|\"|>,parameters:{properties:{location:{description:<|\"|>The location to get the temperature for<|\"|>,properties:{city:{description:<|\"|>The city name<|\"|>,type:<|\"|>STRING<|\"|>},country:{description:<|\"|>The country name<|\"|>,type:<|\"|>STRING<|\"|>}},required:[<|\"|>city<|\"|>,<|\"|>country<|\"|>],type:<|\"|>OBJECT<|\"|>},unit:{description:<|\"|>The unit to return the temperature in.<|\"|>,enum:[<|\"|>celsius<|\"|>,<|\"|>fahrenheit<|\"|>],type:<|\"|>STRING<|\"|>}},required:[<|\"|>location<|\"|>,<|\"|>unit<|\"|>],type:<|\"|>OBJECT<|\"|>}}<tool|><turn|>\n<|turn>user\nWhat is the current wind speed in London?<turn|>\n<|turn>model\n",+ "completion": "I am sorry, but I cannot provide you with the current wind speed. I only have access to a tool that can retrieve the current temperature.<turn|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "google/gemma-4-E4B-it",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<bos><|turn>system\n<|think|>You are a helpful assistant<|tool>declaration:get_current_wind_speed{description:<|\"|>Get the current wind speed in km/h at a given location.<|\"|>,parameters:{properties:{location:{description:<|\"|>The location to get the wind speed for, in the format \"City, Country\"<|\"|>,type:<|\"|>STRING<|\"|>}},required:[<|\"|>location<|\"|>],type:<|\"|>OBJECT<|\"|>}}<tool|><turn|>\n<|turn>user\nWhat is the current wind speed in London?<turn|>\n<|turn>model\n",+ "completion": "<|tool_call>call:get_current_wind_speed{location:<|\"|>London, UK<|\"|>}<tool_call|><eos>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "google/gemma-4-E4B-it",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<bos><|turn>system\nYou are a helpful assistant<|tool>declaration:get_current_wind_speed{description:<|\"|>Get the current wind speed in km/h at a given location.<|\"|>,parameters:{properties:{location:{description:<|\"|>The location to get the wind speed for, in the format \"City, Country\"<|\"|>,type:<|\"|>STRING<|\"|>}},required:[<|\"|>location<|\"|>],type:<|\"|>OBJECT<|\"|>}}<tool|><turn|>\n<|turn>user\nWhat is the current wind speed in London?<turn|>\n<|turn>model\n",+ "completion": "<|tool_call>call:get_current_wind_speed{location:<|\"|>London, UK<|\"|>}<tool_call|><|tool_response>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "google/gemma-4-E4B-it",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<bos><|turn>system\n<|think|>You are a helpful assistant<|tool>declaration:get_current_temperature{description:<|\"|>Get the current temperature at a location.<|\"|>,parameters:{properties:{location:{description:<|\"|>The location to get the temperature for<|\"|>,properties:{city:{description:<|\"|>The city name<|\"|>,type:<|\"|>STRING<|\"|>},country:{description:<|\"|>The country name<|\"|>,type:<|\"|>STRING<|\"|>}},required:[<|\"|>city<|\"|>,<|\"|>country<|\"|>],type:<|\"|>OBJECT<|\"|>},unit:{description:<|\"|>The unit to return the temperature in.<|\"|>,enum:[<|\"|>celsius<|\"|>,<|\"|>fahrenheit<|\"|>],type:<|\"|>STRING<|\"|>}},required:[<|\"|>location<|\"|>,<|\"|>unit<|\"|>],type:<|\"|>OBJECT<|\"|>}}<tool|><|tool>declaration:get_current_wind_speed{description:<|\"|>Get the current wind speed in km/h at a given location.<|\"|>,parameters:{properties:{location:{description:<|\"|>The location to get the wind speed for, in the format \"City, Country\"<|\"|>,type:<|\"|>STRING<|\"|>}},required:[<|\"|>location<|\"|>],type:<|\"|>OBJECT<|\"|>}}<tool|><turn|>\n<|turn>user\nWhat is the current wind speed in London?<turn|>\n<|turn>model\n",+ "completion": "<|channel>thought\n1. **Analyze the user's request:** The user is asking for \"the current wind speed in London\".\n\n2. **Examine the available tools:**\n * `get_current_temperature`: This tool gets the temperature, not the wind speed.\n * `get_current_wind_speed`: This tool gets the current wind speed.\n\n3. **Determine the required parameters for `get_current_wind_speed`:** The `get_current_wind_speed` tool requires one parameter: `location`, which is described as \"The location to get the wind speed for, in the format 'City, Country'\".\n\n4. **Extract information from the user's request:** The user provided \"London\".\n\n5. **Identify missing information:** To satisfy the `location` parameter format (\"City, Country\"), the country for \"London\" is needed.\n\n6. **Formulate a response:** Since the country is missing, the model cannot call the tool yet. It must ask the user for the missing information.\n\n7. **Construct the clarifying question:** Ask the user to specify the country for London.<channel|>Could you please specify which country London is in?<turn|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "google/gemma-4-E4B-it",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<bos><|turn>system\nYou are a helpful assistant<|tool>declaration:get_current_temperature{description:<|\"|>Get the current temperature at a location.<|\"|>,parameters:{properties:{location:{description:<|\"|>The location to get the temperature for<|\"|>,properties:{city:{description:<|\"|>The city name<|\"|>,type:<|\"|>STRING<|\"|>},country:{description:<|\"|>The country name<|\"|>,type:<|\"|>STRING<|\"|>}},required:[<|\"|>city<|\"|>,<|\"|>country<|\"|>],type:<|\"|>OBJECT<|\"|>},unit:{description:<|\"|>The unit to return the temperature in.<|\"|>,enum:[<|\"|>celsius<|\"|>,<|\"|>fahrenheit<|\"|>],type:<|\"|>STRING<|\"|>}},required:[<|\"|>location<|\"|>,<|\"|>unit<|\"|>],type:<|\"|>OBJECT<|\"|>}}<tool|><|tool>declaration:get_current_wind_speed{description:<|\"|>Get the current wind speed in km/h at a given location.<|\"|>,parameters:{properties:{location:{description:<|\"|>The location to get the wind speed for, in the format \"City, Country\"<|\"|>,type:<|\"|>STRING<|\"|>}},required:[<|\"|>location<|\"|>],type:<|\"|>OBJECT<|\"|>}}<tool|><turn|>\n<|turn>user\nWhat is the current wind speed in London?<turn|>\n<|turn>model\n",+ "completion": "<|tool_call>call:get_current_wind_speed{location:<|\"|>London, United Kingdom<|\"|>}<tool_call|><eos>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "google/gemma-4-E4B-it",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": null,+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<bos><|turn>system\n<|think|>You are a helpful assistant<turn|>\n<|turn>user\nWhat is the current temperature and wind speed in London?<turn|>\n<|turn>model\n",+ "completion": "<|channel>thought\nThinking Process:\n\n1. **Analyze the Request:** The user is asking for the current temperature and wind speed in London.\n2. **Identify Necessary Information/Tools:** To answer this, I need real-time, up-to-date weather data.\n3. **Check Available Capabilities:** As a language model, I do not have inherent, real-time access to the internet or live APIs (like weather services) unless a specific tool has been provided in the context.\n4. **Scan Context for Tools:** No specific weather or internet search tools were provided in the prompt.\n5. **Formulate the Response:** Since I cannot provide live data, I must inform the user about this limitation and direct them to a reliable source where they can find the information.\n\n6. **Draft the Output (Self-Correction/Refinement):** Instead of just saying \"I can't,\" I should be helpful. I should suggest specific, reliable sources (e.g., major weather websites or apps).\n\n7. **Final Output Generation.** (This leads to the helpful, explanatory response.)<channel|>I am sorry, but as an AI, I do not have real-time access to live weather data. The temperature and wind speed in London are constantly changing!\n\nTo get the most accurate, up-to-the-minute information, I recommend checking one of these sources:\n\n* **A dedicated weather app** on your phone (like AccuWeather or The Weather Channel)\n* **A search engine** (e.g., typing \"weather in London\")\n* **The official Met Office website** for the UK.<turn|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "google/gemma-4-E4B-it",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": null,+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<bos><|turn>system\nYou are a helpful assistant<turn|>\n<|turn>user\nWhat is the current temperature and wind speed in London?<turn|>\n<|turn>model\n",+ "completion": "I don't have real-time access to live weather data. To get the current temperature and wind speed in London, please check a reliable weather website or app like:\n\n* **AccuWeather**\n* **The Weather Channel**\n* **BBC Weather**\n\nThese sources will give you the most up-to-date information!<turn|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "google/gemma-4-E4B-it",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<bos><|turn>system\n<|think|>You are a helpful assistant<turn|>\n<|turn>user\nWhat is the current temperature and wind speed in London?<turn|>\n<|turn>model\n",+ "completion": "<|channel>thought\nThinking Process:\n\n1. **Identify the user's request:** The user is asking for the current temperature and wind speed in London.\n2. **Determine the necessary information:** This requires real-time, external data (weather data).\n3. **Check available tools/capabilities:** As an AI model, I do not have built-in, real-time access to live weather APIs unless a specific tool has been provided in the prompt context.\n4. **Constraint Check:** No weather tool or search engine endpoint was provided.\n5. **Formulate the response:**\n * Acknowledge the request.\n * State the limitation (I cannot provide live, real-time data).\n * Advise the user on how to get the accurate information (e.g., use a dedicated weather website or app).\n\n6. **Refine the response (Self-Correction/Tone Check):** The tone should be helpful and apologetic regarding the limitation. (Drafting the final helpful response).<channel|>I am sorry, but I do not have real-time access to current weather data. To get the most accurate and up-to-date temperature and wind speed in London, please check a reliable weather website (like the BBC Weather, AccuWeather, or a local meteorological service) or use a weather app on your phone.<turn|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "google/gemma-4-E4B-it",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<bos><|turn>system\nYou are a helpful assistant<turn|>\n<|turn>user\nWhat is the current temperature and wind speed in London?<turn|>\n<|turn>model\n",+ "completion": "I do not have real-time access to current weather data, so I cannot tell you the exact temperature and wind speed in London right now.\n\nTo get the most accurate and up-to-date information, I recommend checking a reliable weather website or using a weather app like:\n\n* **The Met Office (UK's national weather service)**\n* **AccuWeather**\n* **The Weather Channel**\n\nJust search for \"weather in London\" on your preferred search engine!<turn|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "google/gemma-4-E4B-it",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<bos><|turn>system\n<|think|>You are a helpful assistant<|tool>declaration:get_current_temperature{description:<|\"|>Get the current temperature at a location.<|\"|>,parameters:{properties:{location:{description:<|\"|>The location to get the temperature for<|\"|>,properties:{city:{description:<|\"|>The city name<|\"|>,type:<|\"|>STRING<|\"|>},country:{description:<|\"|>The country name<|\"|>,type:<|\"|>STRING<|\"|>}},required:[<|\"|>city<|\"|>,<|\"|>country<|\"|>],type:<|\"|>OBJECT<|\"|>},unit:{description:<|\"|>The unit to return the temperature in.<|\"|>,enum:[<|\"|>celsius<|\"|>,<|\"|>fahrenheit<|\"|>],type:<|\"|>STRING<|\"|>}},required:[<|\"|>location<|\"|>,<|\"|>unit<|\"|>],type:<|\"|>OBJECT<|\"|>}}<tool|><turn|>\n<|turn>user\nWhat is the current temperature and wind speed in London?<turn|>\n<|turn>model\n",+ "completion": "<|channel>thought\n1. **Analyze the Request:** The user is asking for two pieces of information: \"current temperature\" and \"wind speed\" in \"London\".\n\n2. **Examine Available Tools:** I have one tool available: `get_current_temperature`.\n\n3. **Analyze Tool Capabilities:**\n * `get_current_temperature(location: {city: STRING, country: STRING}, unit: STRING)`\n * This tool can provide the *temperature* for a specific location (city and country) in a specified unit (Celsius or Fahrenheit).\n * It *cannot* provide the *wind speed*.\n\n4. **Determine Missing Information:**\n * To use the available tool, I need the country for London (which is likely the UK, but it's not explicitly given).\n * I need to know which unit the user prefers (Celsius or Fahrenheit), though I could ask for clarification if necessary.\n * Crucially, the tool does not support fetching wind speed.\n\n5. **Formulate the Response Strategy:**\n * Acknowledge the limitations: I can only get the temperature, not the wind speed.\n * Address the temperature request: I need more information (the country and the preferred unit) to use the `get_current_temperature` tool.\n\n6. **Refine the Response (Self-Correction/Refinement):**\n * The user asked for *both* temperature and wind speed.\n * I *must* inform the user about the limitation regarding wind speed.\n * For the temperature, I need the country and unit.\n\n7. **Final Output Generation:** Construct a response that explains the limitation (wind speed) and requests the necessary parameters (country, unit) for the achievable task (temperature). (The prompt does not provide enough context to execute the tool call successfully yet.)<channel|>I can provide you with the current temperature in London, but I do not have the capability to provide wind speed.\n\nTo get the temperature, could you please specify the **country** for London and your preferred **unit** (Celsius or Fahrenheit)?<turn|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "google/gemma-4-E4B-it",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<bos><|turn>system\nYou are a helpful assistant<|tool>declaration:get_current_temperature{description:<|\"|>Get the current temperature at a location.<|\"|>,parameters:{properties:{location:{description:<|\"|>The location to get the temperature for<|\"|>,properties:{city:{description:<|\"|>The city name<|\"|>,type:<|\"|>STRING<|\"|>},country:{description:<|\"|>The country name<|\"|>,type:<|\"|>STRING<|\"|>}},required:[<|\"|>city<|\"|>,<|\"|>country<|\"|>],type:<|\"|>OBJECT<|\"|>},unit:{description:<|\"|>The unit to return the temperature in.<|\"|>,enum:[<|\"|>celsius<|\"|>,<|\"|>fahrenheit<|\"|>],type:<|\"|>STRING<|\"|>}},required:[<|\"|>location<|\"|>,<|\"|>unit<|\"|>],type:<|\"|>OBJECT<|\"|>}}<tool|><turn|>\n<|turn>user\nWhat is the current temperature and wind speed in London?<turn|>\n<|turn>model\n",+ "completion": "I can only get the current temperature with the available tools. I cannot provide the wind speed.\n\nWhat unit would you like the temperature in, **Celsius** or **Fahrenheit**?<turn|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "google/gemma-4-E4B-it",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<bos><|turn>system\n<|think|>You are a helpful assistant<|tool>declaration:get_current_wind_speed{description:<|\"|>Get the current wind speed in km/h at a given location.<|\"|>,parameters:{properties:{location:{description:<|\"|>The location to get the wind speed for, in the format \"City, Country\"<|\"|>,type:<|\"|>STRING<|\"|>}},required:[<|\"|>location<|\"|>],type:<|\"|>OBJECT<|\"|>}}<tool|><turn|>\n<|turn>user\nWhat is the current temperature and wind speed in London?<turn|>\n<|turn>model\n",+ "completion": "<|channel>thought\n1. **Analyze the user's request:** The user is asking for \"the current temperature and wind speed in London.\"\n\n2. **Examine available tools:** The only available tool is `get_current_wind_speed`.\n - `get_current_wind_speed` requires a `location` (in \"City, Country\" format) and returns the wind speed.\n\n3. **Identify missing information/capabilities:**\n - The user asked for *both* temperature and wind speed.\n - The available tool *only* provides wind speed, not temperature.\n\n4. **Determine the next step:**\n - I can use the available tool to get the wind speed for London, UK.\n - I cannot get the temperature with the current tools.\n\n5. **Formulate the response:**\n - Acknowledge the limitations (cannot get temperature).\n - Call the tool for the information I *can* retrieve (wind speed).\n\n6. **Construct the tool call:**\n - Tool name: `get_current_wind_speed`\n - Arguments: `location: \"London, UK\"` (Assuming \"London\" refers to London, UK, which is standard practice for location-based queries).\n\n7. **Final Output Generation:** Generate the tool call JSON block. (Self-correction: Ensure the location format matches the tool's requirement: \"City, Country\").<channel|><|tool_call>call:get_current_wind_speed{location:<|\"|>London, UK<|\"|>}<tool_call|><eos>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "google/gemma-4-E4B-it",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<bos><|turn>system\nYou are a helpful assistant<|tool>declaration:get_current_wind_speed{description:<|\"|>Get the current wind speed in km/h at a given location.<|\"|>,parameters:{properties:{location:{description:<|\"|>The location to get the wind speed for, in the format \"City, Country\"<|\"|>,type:<|\"|>STRING<|\"|>}},required:[<|\"|>location<|\"|>],type:<|\"|>OBJECT<|\"|>}}<tool|><turn|>\n<|turn>user\nWhat is the current temperature and wind speed in London?<turn|>\n<|turn>model\n",+ "completion": "I can only get the wind speed for a location, not the current temperature. Would you like me to get the wind speed in London?<turn|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "google/gemma-4-E4B-it",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": true+ }+ },+ "result": {+ "prompt": "<bos><|turn>system\n<|think|>You are a helpful assistant<|tool>declaration:get_current_temperature{description:<|\"|>Get the current temperature at a location.<|\"|>,parameters:{properties:{location:{description:<|\"|>The location to get the temperature for<|\"|>,properties:{city:{description:<|\"|>The city name<|\"|>,type:<|\"|>STRING<|\"|>},country:{description:<|\"|>The country name<|\"|>,type:<|\"|>STRING<|\"|>}},required:[<|\"|>city<|\"|>,<|\"|>country<|\"|>],type:<|\"|>OBJECT<|\"|>},unit:{description:<|\"|>The unit to return the temperature in.<|\"|>,enum:[<|\"|>celsius<|\"|>,<|\"|>fahrenheit<|\"|>],type:<|\"|>STRING<|\"|>}},required:[<|\"|>location<|\"|>,<|\"|>unit<|\"|>],type:<|\"|>OBJECT<|\"|>}}<tool|><|tool>declaration:get_current_wind_speed{description:<|\"|>Get the current wind speed in km/h at a given location.<|\"|>,parameters:{properties:{location:{description:<|\"|>The location to get the wind speed for, in the format \"City, Country\"<|\"|>,type:<|\"|>STRING<|\"|>}},required:[<|\"|>location<|\"|>],type:<|\"|>OBJECT<|\"|>}}<tool|><turn|>\n<|turn>user\nWhat is the current temperature and wind speed in London?<turn|>\n<|turn>model\n",+ "completion": "<|channel>thought\n1. **Analyze the user's request:** The user is asking for two pieces of information about London: the current temperature and the current wind speed.\n\n2. **Examine available tools:**\n * `get_current_temperature(location: {city: string, country: string}, unit: \"celsius\" | \"fahrenheit\")`\n * `get_current_wind_speed(location: string)`\n\n3. **Determine required information for `get_current_temperature`:**\n * `location`: Requires `city` and `country`. The user provided \"London\", which is the city. The country is implied as the UK, but it's not explicitly stated.\n * `unit`: The user did not specify a unit (Celsius or Fahrenheit).\n\n4. **Determine required information for `get_current_wind_speed`:**\n * `location`: Requires a string in the format \"City, Country\". The user provided \"London\". The country is missing.\n\n5. **Identify missing information:**\n * For temperature: The country (UK) and the unit (Celsius or Fahrenheit).\n * For wind speed: The country (UK).\n\n6. **Formulate a response strategy:** Since crucial information is missing to call the tools accurately, the model must ask the user for the missing details before it can proceed.\n\n7. **Construct the response:** Ask the user for the country of London (though it's likely the UK, confirmation is best practice) and the preferred temperature unit.<channel|>Could you please specify the country for London and the unit you would like the temperature in (Celsius or Fahrenheit)?<turn|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_temperature",+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "google/gemma-4-E4B-it",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {+ "enable_thinking": false+ }+ },+ "result": {+ "prompt": "<bos><|turn>system\nYou are a helpful assistant<|tool>declaration:get_current_temperature{description:<|\"|>Get the current temperature at a location.<|\"|>,parameters:{properties:{location:{description:<|\"|>The location to get the temperature for<|\"|>,properties:{city:{description:<|\"|>The city name<|\"|>,type:<|\"|>STRING<|\"|>},country:{description:<|\"|>The country name<|\"|>,type:<|\"|>STRING<|\"|>}},required:[<|\"|>city<|\"|>,<|\"|>country<|\"|>],type:<|\"|>OBJECT<|\"|>},unit:{description:<|\"|>The unit to return the temperature in.<|\"|>,enum:[<|\"|>celsius<|\"|>,<|\"|>fahrenheit<|\"|>],type:<|\"|>STRING<|\"|>}},required:[<|\"|>location<|\"|>,<|\"|>unit<|\"|>],type:<|\"|>OBJECT<|\"|>}}<tool|><|tool>declaration:get_current_wind_speed{description:<|\"|>Get the current wind speed in km/h at a given location.<|\"|>,parameters:{properties:{location:{description:<|\"|>The location to get the wind speed for, in the format \"City, Country\"<|\"|>,type:<|\"|>STRING<|\"|>}},required:[<|\"|>location<|\"|>],type:<|\"|>OBJECT<|\"|>}}<tool|><turn|>\n<|turn>user\nWhat is the current temperature and wind speed in London?<turn|>\n<|turn>model\n",+ "completion": "I need to know the country for London to get the temperature. Also, would you like the temperature in Celsius or Fahrenheit?<turn|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_temperature",+ "get_current_wind_speed"+ ]+ }+ }+]\ No newline at end of filediff --git a/workspace/data/responses/google_translategemma-4b-it.json b/workspace/data/responses/google_translategemma-4b-it.jsonnew file mode 100644index 000000000..37691a0e2--- /dev/null+++ b/workspace/data/responses/google_translategemma-4b-it.json@@ -0,0 +1,114 @@+[+ {+ "repo_id": "google/translategemma-4b-it",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": [+ {+ "type": "text",+ "source_lang_code": "en",+ "target_lang_code": "fr",+ "text": "Tell me about London."+ }+ ]+ }+ ],+ "tools": null,+ "context": {}+ },+ "result": {+ "prompt": "<bos><start_of_turn>user\nYou are a professional English (en) to French (fr) translator. Your goal is to accurately convey the meaning and nuances of the original English text while adhering to French grammar, vocabulary, and cultural sensitivities.\nProduce only the French translation, without any additional explanations or commentary. Please translate the following English text into French:\n\n\nTell me about London.<end_of_turn>\n<start_of_turn>model\n",+ "completion": "Parlez-moi de Londres.<end_of_turn>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "google/translategemma-4b-it",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": [+ {+ "type": "text",+ "source_lang_code": "fr",+ "target_lang_code": "en",+ "text": "Parlez-moi de Londres."+ }+ ]+ }+ ],+ "tools": null,+ "context": {}+ },+ "result": {+ "prompt": "<bos><start_of_turn>user\nYou are a professional French (fr) to English (en) translator. Your goal is to accurately convey the meaning and nuances of the original French text while adhering to English grammar, vocabulary, and cultural sensitivities.\nProduce only the English translation, without any additional explanations or commentary. Please translate the following French text into English:\n\n\nParlez-moi de Londres.<end_of_turn>\n<start_of_turn>model\n",+ "completion": "Tell me about London.<end_of_turn>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "google/translategemma-4b-it",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": [+ {+ "type": "text",+ "source_lang_code": "en",+ "target_lang_code": "de-DE",+ "text": "The weather in Paris is lovely today."+ }+ ]+ }+ ],+ "tools": null,+ "context": {}+ },+ "result": {+ "prompt": "<bos><start_of_turn>user\nYou are a professional English (en) to German (de-DE) translator. Your goal is to accurately convey the meaning and nuances of the original English text while adhering to German grammar, vocabulary, and cultural sensitivities.\nProduce only the German translation, without any additional explanations or commentary. Please translate the following English text into German:\n\n\nThe weather in Paris is lovely today.<end_of_turn>\n<start_of_turn>model\n",+ "completion": "Das Wetter in Paris ist heute herrlich.<end_of_turn>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "google/translategemma-4b-it",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": [+ {+ "type": "text",+ "source_lang_code": "de",+ "target_lang_code": "en",+ "text": "Das Wetter in Paris ist heute wundersch\u00f6n."+ }+ ]+ }+ ],+ "tools": null,+ "context": {}+ },+ "result": {+ "prompt": "<bos><start_of_turn>user\nYou are a professional German (de) to English (en) translator. Your goal is to accurately convey the meaning and nuances of the original German text while adhering to English grammar, vocabulary, and cultural sensitivities.\nProduce only the English translation, without any additional explanations or commentary. Please translate the following German text into English:\n\n\nDas Wetter in Paris ist heute wundersch\u00f6n.<end_of_turn>\n<start_of_turn>model\n",+ "completion": "The weather in Paris is beautiful today.<end_of_turn>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ }+]\ No newline at end of filediff --git a/workspace/data/responses/meta-llama_Llama-3.1-8B-Instruct.json b/workspace/data/responses/meta-llama_Llama-3.1-8B-Instruct.jsonnew file mode 100644index 000000000..56a37a94d--- /dev/null+++ b/workspace/data/responses/meta-llama_Llama-3.1-8B-Instruct.json@@ -0,0 +1,789 @@+[+ {+ "repo_id": "meta-llama/Llama-3.1-8B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": null,+ "context": {}+ },+ "result": {+ "prompt": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\n\nCutting Knowledge Date: December 2023\nToday Date: 26 Jul 2024\n\n<|eot_id|><|start_header_id|>user<|end_header_id|>\n\nWhat is the current temperature in London?<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n",+ "completion": "I'm not able to provide real-time information. However, I can suggest some ways for you to find the current temperature in London:\n\n1. Check online weather websites: You can check websites like BBC Weather, AccuWeather, or the Met Office for the current temperature in London.\n2. Use a search engine: You can type \"current temperature in London\" in a search engine like Google, and it will show you the current temperature along with other relevant information.\n3. Check your smartphone's weather app: If you have a smartphone, you can check the weather app to see the current temperature in London.\n4. Tune into local news: You can watch or listen to local news to get the current temperature in London.\n\nPlease note that the temperature may vary depending on your location within London, so it's always a good idea to check the temperature for your specific area.<|eot_id|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "meta-llama/Llama-3.1-8B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [],+ "context": {}+ },+ "result": {+ "prompt": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\n\nEnvironment: ipython\nCutting Knowledge Date: December 2023\nToday Date: 26 Jul 2024\n\n<|eot_id|><|start_header_id|>user<|end_header_id|>\n\nGiven the following functions, please respond with a JSON for a function call with its proper arguments that best answers the given prompt.\n\nRespond in the format {\"name\": function name, \"parameters\": dictionary of argument name and its value}.Do not use variables.\n\nWhat is the current temperature in London?<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n",+ "completion": "<|python_tag|>{\"name\": \"get_current_weather\", \"parameters\": {\"city\": \"London\"}}<|eom_id|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "meta-llama/Llama-3.1-8B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\n\nEnvironment: ipython\nCutting Knowledge Date: December 2023\nToday Date: 26 Jul 2024\n\n<|eot_id|><|start_header_id|>user<|end_header_id|>\n\nGiven the following functions, please respond with a JSON for a function call with its proper arguments that best answers the given prompt.\n\nRespond in the format {\"name\": function name, \"parameters\": dictionary of argument name and its value}.Do not use variables.\n\n{\n \"type\": \"function\",\n \"function\": {\n \"name\": \"get_current_temperature\",\n \"description\": \"Get the current temperature at a location.\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"location\": {\n \"type\": \"object\",\n \"properties\": {\n \"city\": {\n \"type\": \"string\",\n \"description\": \"The city name\"\n },\n \"country\": {\n \"type\": \"string\",\n \"description\": \"The country name\"\n }\n },\n \"required\": [\n \"city\",\n \"country\"\n ],\n \"description\": \"The location to get the temperature for\"\n },\n \"unit\": {\n \"type\": \"string\",\n \"enum\": [\n \"celsius\",\n \"fahrenheit\"\n ],\n \"description\": \"The unit to return the temperature in.\"\n }\n },\n \"required\": [\n \"location\",\n \"unit\"\n ]\n },\n \"return\": {\n \"type\": \"number\"\n }\n }\n}\n\nWhat is the current temperature in London?<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n",+ "completion": "<|python_tag|>{\"name\": \"get_current_temperature\", \"parameters\": {\"location\": {\"city\": \"London\", \"country\": \"United Kingdom\"}, \"unit\": \"celsius\"}}<|eom_id|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "meta-llama/Llama-3.1-8B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\n\nEnvironment: ipython\nCutting Knowledge Date: December 2023\nToday Date: 26 Jul 2024\n\n<|eot_id|><|start_header_id|>user<|end_header_id|>\n\nGiven the following functions, please respond with a JSON for a function call with its proper arguments that best answers the given prompt.\n\nRespond in the format {\"name\": function name, \"parameters\": dictionary of argument name and its value}.Do not use variables.\n\n{\n \"type\": \"function\",\n \"function\": {\n \"name\": \"get_current_wind_speed\",\n \"description\": \"Get the current wind speed in km/h at a given location.\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"location\": {\n \"type\": \"string\",\n \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"\n }\n },\n \"required\": [\n \"location\"\n ]\n },\n \"return\": {\n \"type\": \"number\",\n \"description\": \"The current wind speed in km/h\"\n }\n }\n}\n\nWhat is the current temperature in London?<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n",+ "completion": "<|python_tag|>{\"name\": \"get_current_temperature\", \"parameters\": {\"location\": \"London\"}}<|eom_id|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "meta-llama/Llama-3.1-8B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\n\nEnvironment: ipython\nCutting Knowledge Date: December 2023\nToday Date: 26 Jul 2024\n\n<|eot_id|><|start_header_id|>user<|end_header_id|>\n\nGiven the following functions, please respond with a JSON for a function call with its proper arguments that best answers the given prompt.\n\nRespond in the format {\"name\": function name, \"parameters\": dictionary of argument name and its value}.Do not use variables.\n\n{\n \"type\": \"function\",\n \"function\": {\n \"name\": \"get_current_temperature\",\n \"description\": \"Get the current temperature at a location.\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"location\": {\n \"type\": \"object\",\n \"properties\": {\n \"city\": {\n \"type\": \"string\",\n \"description\": \"The city name\"\n },\n \"country\": {\n \"type\": \"string\",\n \"description\": \"The country name\"\n }\n },\n \"required\": [\n \"city\",\n \"country\"\n ],\n \"description\": \"The location to get the temperature for\"\n },\n \"unit\": {\n \"type\": \"string\",\n \"enum\": [\n \"celsius\",\n \"fahrenheit\"\n ],\n \"description\": \"The unit to return the temperature in.\"\n }\n },\n \"required\": [\n \"location\",\n \"unit\"\n ]\n },\n \"return\": {\n \"type\": \"number\"\n }\n }\n}\n\n{\n \"type\": \"function\",\n \"function\": {\n \"name\": \"get_current_wind_speed\",\n \"description\": \"Get the current wind speed in km/h at a given location.\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"location\": {\n \"type\": \"string\",\n \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"\n }\n },\n \"required\": [\n \"location\"\n ]\n },\n \"return\": {\n \"type\": \"number\",\n \"description\": \"The current wind speed in km/h\"\n }\n }\n}\n\nWhat is the current temperature in London?<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n",+ "completion": "<|python_tag|>{\"name\": \"get_current_temperature\", \"parameters\": {\"location\": {\"city\": \"London\", \"country\": \"United Kingdom\"}, \"unit\": \"celsius\"}}<|eom_id|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "meta-llama/Llama-3.1-8B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": null,+ "context": {}+ },+ "result": {+ "prompt": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\n\nCutting Knowledge Date: December 2023\nToday Date: 26 Jul 2024\n\nYou are a helpful assistant<|eot_id|><|start_header_id|>user<|end_header_id|>\n\nWhat is the current wind speed in London?<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n",+ "completion": "However, I'm a large language model, I don't have real-time access to current weather data. But I can suggest some options to help you find the current wind speed in London:\n\n1. **Check online weather websites**: You can check websites like AccuWeather, Weather.com, or the Met Office (the UK's national weather service) for the current wind speed in London.\n2. **Use a weather app**: Download a weather app on your smartphone, such as Dark Sky or Weather Underground, which can provide you with current weather conditions, including wind speed.\n3. **Check social media**: Follow local news outlets or weather accounts on Twitter or Facebook to get updates on the current weather conditions in London.\n4. **Check with a voice assistant**: If you have a smart speaker or virtual assistant, such as Amazon Alexa or Google Assistant, you can ask it to provide you with the current wind speed in London.\n\nPlease note that wind speeds can vary throughout the day and may change rapidly, so it's always a good idea to check the current conditions for the most up-to-date information.<|eot_id|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "meta-llama/Llama-3.1-8B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [],+ "context": {}+ },+ "result": {+ "prompt": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\n\nEnvironment: ipython\nCutting Knowledge Date: December 2023\nToday Date: 26 Jul 2024\n\nYou are a helpful assistant<|eot_id|><|start_header_id|>user<|end_header_id|>\n\nGiven the following functions, please respond with a JSON for a function call with its proper arguments that best answers the given prompt.\n\nRespond in the format {\"name\": function name, \"parameters\": dictionary of argument name and its value}.Do not use variables.\n\nWhat is the current wind speed in London?<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n",+ "completion": "{\"name\": \"get_wind\", \"parameters\": {\"location\": \"London\"}}<|eom_id|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "meta-llama/Llama-3.1-8B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\n\nEnvironment: ipython\nCutting Knowledge Date: December 2023\nToday Date: 26 Jul 2024\n\nYou are a helpful assistant<|eot_id|><|start_header_id|>user<|end_header_id|>\n\nGiven the following functions, please respond with a JSON for a function call with its proper arguments that best answers the given prompt.\n\nRespond in the format {\"name\": function name, \"parameters\": dictionary of argument name and its value}.Do not use variables.\n\n{\n \"type\": \"function\",\n \"function\": {\n \"name\": \"get_current_temperature\",\n \"description\": \"Get the current temperature at a location.\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"location\": {\n \"type\": \"object\",\n \"properties\": {\n \"city\": {\n \"type\": \"string\",\n \"description\": \"The city name\"\n },\n \"country\": {\n \"type\": \"string\",\n \"description\": \"The country name\"\n }\n },\n \"required\": [\n \"city\",\n \"country\"\n ],\n \"description\": \"The location to get the temperature for\"\n },\n \"unit\": {\n \"type\": \"string\",\n \"enum\": [\n \"celsius\",\n \"fahrenheit\"\n ],\n \"description\": \"The unit to return the temperature in.\"\n }\n },\n \"required\": [\n \"location\",\n \"unit\"\n ]\n },\n \"return\": {\n \"type\": \"number\"\n }\n }\n}\n\nWhat is the current wind speed in London?<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n",+ "completion": "<|python_tag|>{\"name\": \"get_current_weather\", \"parameters\": {\"location\": {\"city\": \"London\", \"country\": \"United Kingdom\"}, \"unit\": \"miles per hour\"}}<|eom_id|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "meta-llama/Llama-3.1-8B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\n\nEnvironment: ipython\nCutting Knowledge Date: December 2023\nToday Date: 26 Jul 2024\n\nYou are a helpful assistant<|eot_id|><|start_header_id|>user<|end_header_id|>\n\nGiven the following functions, please respond with a JSON for a function call with its proper arguments that best answers the given prompt.\n\nRespond in the format {\"name\": function name, \"parameters\": dictionary of argument name and its value}.Do not use variables.\n\n{\n \"type\": \"function\",\n \"function\": {\n \"name\": \"get_current_wind_speed\",\n \"description\": \"Get the current wind speed in km/h at a given location.\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"location\": {\n \"type\": \"string\",\n \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"\n }\n },\n \"required\": [\n \"location\"\n ]\n },\n \"return\": {\n \"type\": \"number\",\n \"description\": \"The current wind speed in km/h\"\n }\n }\n}\n\nWhat is the current wind speed in London?<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n",+ "completion": "<|python_tag|>{\"name\": \"get_current_wind_speed\", \"parameters\": {\"location\": \"London, UK\"}}<|eom_id|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "meta-llama/Llama-3.1-8B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\n\nEnvironment: ipython\nCutting Knowledge Date: December 2023\nToday Date: 26 Jul 2024\n\nYou are a helpful assistant<|eot_id|><|start_header_id|>user<|end_header_id|>\n\nGiven the following functions, please respond with a JSON for a function call with its proper arguments that best answers the given prompt.\n\nRespond in the format {\"name\": function name, \"parameters\": dictionary of argument name and its value}.Do not use variables.\n\n{\n \"type\": \"function\",\n \"function\": {\n \"name\": \"get_current_temperature\",\n \"description\": \"Get the current temperature at a location.\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"location\": {\n \"type\": \"object\",\n \"properties\": {\n \"city\": {\n \"type\": \"string\",\n \"description\": \"The city name\"\n },\n \"country\": {\n \"type\": \"string\",\n \"description\": \"The country name\"\n }\n },\n \"required\": [\n \"city\",\n \"country\"\n ],\n \"description\": \"The location to get the temperature for\"\n },\n \"unit\": {\n \"type\": \"string\",\n \"enum\": [\n \"celsius\",\n \"fahrenheit\"\n ],\n \"description\": \"The unit to return the temperature in.\"\n }\n },\n \"required\": [\n \"location\",\n \"unit\"\n ]\n },\n \"return\": {\n \"type\": \"number\"\n }\n }\n}\n\n{\n \"type\": \"function\",\n \"function\": {\n \"name\": \"get_current_wind_speed\",\n \"description\": \"Get the current wind speed in km/h at a given location.\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"location\": {\n \"type\": \"string\",\n \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"\n }\n },\n \"required\": [\n \"location\"\n ]\n },\n \"return\": {\n \"type\": \"number\",\n \"description\": \"The current wind speed in km/h\"\n }\n }\n}\n\nWhat is the current wind speed in London?<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n",+ "completion": "<|python_tag|>{\"name\": \"get_current_wind_speed\", \"parameters\": {\"location\": \"London, UK\"}}<|eom_id|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "meta-llama/Llama-3.1-8B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": null,+ "context": {}+ },+ "result": {+ "prompt": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\n\nCutting Knowledge Date: December 2023\nToday Date: 26 Jul 2024\n\nYou are a helpful assistant<|eot_id|><|start_header_id|>user<|end_header_id|>\n\nWhat is the current temperature and wind speed in London?<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n",+ "completion": "However, I'm a large language model, I don't have real-time access to current weather conditions. But I can suggest some ways for you to find the current temperature and wind speed in London:\n\n1. **Weather Websites:** You can check websites like AccuWeather, BBC Weather, or the Met Office (the UK's national weather service) for the current weather conditions in London.\n2. **Mobile Apps:** Download weather apps like Dark Sky (now known as The Weather Channel), Weather Underground, or Windguru to get the current weather conditions in London.\n3. **Google Search:** Simply type \"current weather in London\" or \"London weather today\" in Google to get the latest updates.\n\nPlease note that these sources may not always be up-to-date, and the information may vary depending on the location within London.\n\nIf you want a general idea of the typical weather in London, I can provide you with some information. London has a temperate maritime climate, characterized by mild winters and cool summers. The average temperature ranges from around 3\u00b0C (37\u00b0F) in January (the coldest month) to 22\u00b0C (72\u00b0F) in July (the warmest month).<|eot_id|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "meta-llama/Llama-3.1-8B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [],+ "context": {}+ },+ "result": {+ "prompt": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\n\nEnvironment: ipython\nCutting Knowledge Date: December 2023\nToday Date: 26 Jul 2024\n\nYou are a helpful assistant<|eot_id|><|start_header_id|>user<|end_header_id|>\n\nGiven the following functions, please respond with a JSON for a function call with its proper arguments that best answers the given prompt.\n\nRespond in the format {\"name\": function name, \"parameters\": dictionary of argument name and its value}.Do not use variables.\n\nWhat is the current temperature and wind speed in London?<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n",+ "completion": "{\"name\": \"get_current_weather\", \"parameters\": {\"city\": \"London\"}}<|eom_id|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "meta-llama/Llama-3.1-8B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\n\nEnvironment: ipython\nCutting Knowledge Date: December 2023\nToday Date: 26 Jul 2024\n\nYou are a helpful assistant<|eot_id|><|start_header_id|>user<|end_header_id|>\n\nGiven the following functions, please respond with a JSON for a function call with its proper arguments that best answers the given prompt.\n\nRespond in the format {\"name\": function name, \"parameters\": dictionary of argument name and its value}.Do not use variables.\n\n{\n \"type\": \"function\",\n \"function\": {\n \"name\": \"get_current_temperature\",\n \"description\": \"Get the current temperature at a location.\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"location\": {\n \"type\": \"object\",\n \"properties\": {\n \"city\": {\n \"type\": \"string\",\n \"description\": \"The city name\"\n },\n \"country\": {\n \"type\": \"string\",\n \"description\": \"The country name\"\n }\n },\n \"required\": [\n \"city\",\n \"country\"\n ],\n \"description\": \"The location to get the temperature for\"\n },\n \"unit\": {\n \"type\": \"string\",\n \"enum\": [\n \"celsius\",\n \"fahrenheit\"\n ],\n \"description\": \"The unit to return the temperature in.\"\n }\n },\n \"required\": [\n \"location\",\n \"unit\"\n ]\n },\n \"return\": {\n \"type\": \"number\"\n }\n }\n}\n\nWhat is the current temperature and wind speed in London?<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n",+ "completion": "<|python_tag|>{\"name\": \"get_current_weather\", \"parameters\": {\"location\": {\"city\": \"London\", \"country\": \"UK\"}, \"unit\": \"metric\"}}<|eom_id|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "meta-llama/Llama-3.1-8B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\n\nEnvironment: ipython\nCutting Knowledge Date: December 2023\nToday Date: 26 Jul 2024\n\nYou are a helpful assistant<|eot_id|><|start_header_id|>user<|end_header_id|>\n\nGiven the following functions, please respond with a JSON for a function call with its proper arguments that best answers the given prompt.\n\nRespond in the format {\"name\": function name, \"parameters\": dictionary of argument name and its value}.Do not use variables.\n\n{\n \"type\": \"function\",\n \"function\": {\n \"name\": \"get_current_wind_speed\",\n \"description\": \"Get the current wind speed in km/h at a given location.\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"location\": {\n \"type\": \"string\",\n \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"\n }\n },\n \"required\": [\n \"location\"\n ]\n },\n \"return\": {\n \"type\": \"number\",\n \"description\": \"The current wind speed in km/h\"\n }\n }\n}\n\nWhat is the current temperature and wind speed in London?<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n",+ "completion": "<|python_tag|>{\"name\": \"get_current_weather\", \"parameters\": {\"location\": \"London\"}}<|eom_id|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "meta-llama/Llama-3.1-8B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\n\nEnvironment: ipython\nCutting Knowledge Date: December 2023\nToday Date: 26 Jul 2024\n\nYou are a helpful assistant<|eot_id|><|start_header_id|>user<|end_header_id|>\n\nGiven the following functions, please respond with a JSON for a function call with its proper arguments that best answers the given prompt.\n\nRespond in the format {\"name\": function name, \"parameters\": dictionary of argument name and its value}.Do not use variables.\n\n{\n \"type\": \"function\",\n \"function\": {\n \"name\": \"get_current_temperature\",\n \"description\": \"Get the current temperature at a location.\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"location\": {\n \"type\": \"object\",\n \"properties\": {\n \"city\": {\n \"type\": \"string\",\n \"description\": \"The city name\"\n },\n \"country\": {\n \"type\": \"string\",\n \"description\": \"The country name\"\n }\n },\n \"required\": [\n \"city\",\n \"country\"\n ],\n \"description\": \"The location to get the temperature for\"\n },\n \"unit\": {\n \"type\": \"string\",\n \"enum\": [\n \"celsius\",\n \"fahrenheit\"\n ],\n \"description\": \"The unit to return the temperature in.\"\n }\n },\n \"required\": [\n \"location\",\n \"unit\"\n ]\n },\n \"return\": {\n \"type\": \"number\"\n }\n }\n}\n\n{\n \"type\": \"function\",\n \"function\": {\n \"name\": \"get_current_wind_speed\",\n \"description\": \"Get the current wind speed in km/h at a given location.\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"location\": {\n \"type\": \"string\",\n \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"\n }\n },\n \"required\": [\n \"location\"\n ]\n },\n \"return\": {\n \"type\": \"number\",\n \"description\": \"The current wind speed in km/h\"\n }\n }\n}\n\nWhat is the current temperature and wind speed in London?<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n",+ "completion": "<|python_tag|>{\"name\": \"get_current_temperature\", \"parameters\": {\"unit\": \"celsius\", \"location\": {\"city\": \"London\", \"country\": \"United Kingdom\"}}}<|eom_id|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_temperature",+ "get_current_wind_speed"+ ]+ }+ }+]\ No newline at end of filediff --git a/workspace/data/responses/meta-llama_Llama-3.2-1B-Instruct.json b/workspace/data/responses/meta-llama_Llama-3.2-1B-Instruct.jsonnew file mode 100644index 000000000..6580b9175--- /dev/null+++ b/workspace/data/responses/meta-llama_Llama-3.2-1B-Instruct.json@@ -0,0 +1,789 @@+[+ {+ "repo_id": "meta-llama/Llama-3.2-1B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": null,+ "context": {}+ },+ "result": {+ "prompt": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\n\nCutting Knowledge Date: December 2023\nToday Date: 25 Mar 2026\n\n<|eot_id|><|start_header_id|>user<|end_header_id|>\n\nWhat is the current temperature in London?<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n",+ "completion": "However, I'm a large language model, I don't have real-time access to current weather conditions. But I can suggest some ways for you to find out the current temperature in London.\n\nYou can:\n\n1. Check online weather websites: You can visit websites like AccuWeather, Weather.com, or the UK Met Office (Met Office) for the current temperature in London.\n2. Use a mobile app: There are many weather apps available for both iOS and Android devices that provide real-time weather information, including temperature.\n3. Check a news website: Websites like BBC News or The Guardian often have up-to-date weather forecasts and current temperature readings.\n\nPlease note that I'm a text-based AI model, and my knowledge cutoff is December 2023, so I may not have the most recent information.<|eot_id|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "meta-llama/Llama-3.2-1B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [],+ "context": {}+ },+ "result": {+ "prompt": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\n\nEnvironment: ipython\nCutting Knowledge Date: December 2023\nToday Date: 25 Mar 2026\n\n<|eot_id|><|start_header_id|>user<|end_header_id|>\n\nGiven the following functions, please respond with a JSON for a function call with its proper arguments that best answers the given prompt.\n\nRespond in the format {\"name\": function name, \"parameters\": dictionary of argument name and its value}.Do not use variables.\n\nWhat is the current temperature in London?<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n",+ "completion": "<|python_tag|>{\"name\": \"get_temperature\", \"parameters\": {\"city\": \"London\"}}<|eom_id|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "meta-llama/Llama-3.2-1B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\n\nEnvironment: ipython\nCutting Knowledge Date: December 2023\nToday Date: 25 Mar 2026\n\n<|eot_id|><|start_header_id|>user<|end_header_id|>\n\nGiven the following functions, please respond with a JSON for a function call with its proper arguments that best answers the given prompt.\n\nRespond in the format {\"name\": function name, \"parameters\": dictionary of argument name and its value}.Do not use variables.\n\n{\n \"type\": \"function\",\n \"function\": {\n \"name\": \"get_current_temperature\",\n \"description\": \"Get the current temperature at a location.\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"location\": {\n \"type\": \"object\",\n \"properties\": {\n \"city\": {\n \"type\": \"string\",\n \"description\": \"The city name\"\n },\n \"country\": {\n \"type\": \"string\",\n \"description\": \"The country name\"\n }\n },\n \"required\": [\n \"city\",\n \"country\"\n ],\n \"description\": \"The location to get the temperature for\"\n },\n \"unit\": {\n \"type\": \"string\",\n \"enum\": [\n \"celsius\",\n \"fahrenheit\"\n ],\n \"description\": \"The unit to return the temperature in.\"\n }\n },\n \"required\": [\n \"location\",\n \"unit\"\n ]\n },\n \"return\": {\n \"type\": \"number\"\n }\n }\n}\n\nWhat is the current temperature in London?<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n",+ "completion": "<|python_tag|>{\"type\": \"function\", \"function\": \"get_current_temperature\", \"parameters\": {\"location\": \"London\", \"unit\": \"celsius\"}}<|eom_id|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "meta-llama/Llama-3.2-1B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\n\nEnvironment: ipython\nCutting Knowledge Date: December 2023\nToday Date: 25 Mar 2026\n\n<|eot_id|><|start_header_id|>user<|end_header_id|>\n\nGiven the following functions, please respond with a JSON for a function call with its proper arguments that best answers the given prompt.\n\nRespond in the format {\"name\": function name, \"parameters\": dictionary of argument name and its value}.Do not use variables.\n\n{\n \"type\": \"function\",\n \"function\": {\n \"name\": \"get_current_wind_speed\",\n \"description\": \"Get the current wind speed in km/h at a given location.\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"location\": {\n \"type\": \"string\",\n \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"\n }\n },\n \"required\": [\n \"location\"\n ]\n },\n \"return\": {\n \"type\": \"number\",\n \"description\": \"The current wind speed in km/h\"\n }\n }\n}\n\nWhat is the current temperature in London?<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n",+ "completion": "<|python_tag|>{\"type\": \"function\", \"function\": \"get_current_wind_speed\", \"parameters\": {\"location\": \"London\"}}<|eom_id|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "meta-llama/Llama-3.2-1B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\n\nEnvironment: ipython\nCutting Knowledge Date: December 2023\nToday Date: 25 Mar 2026\n\n<|eot_id|><|start_header_id|>user<|end_header_id|>\n\nGiven the following functions, please respond with a JSON for a function call with its proper arguments that best answers the given prompt.\n\nRespond in the format {\"name\": function name, \"parameters\": dictionary of argument name and its value}.Do not use variables.\n\n{\n \"type\": \"function\",\n \"function\": {\n \"name\": \"get_current_temperature\",\n \"description\": \"Get the current temperature at a location.\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"location\": {\n \"type\": \"object\",\n \"properties\": {\n \"city\": {\n \"type\": \"string\",\n \"description\": \"The city name\"\n },\n \"country\": {\n \"type\": \"string\",\n \"description\": \"The country name\"\n }\n },\n \"required\": [\n \"city\",\n \"country\"\n ],\n \"description\": \"The location to get the temperature for\"\n },\n \"unit\": {\n \"type\": \"string\",\n \"enum\": [\n \"celsius\",\n \"fahrenheit\"\n ],\n \"description\": \"The unit to return the temperature in.\"\n }\n },\n \"required\": [\n \"location\",\n \"unit\"\n ]\n },\n \"return\": {\n \"type\": \"number\"\n }\n }\n}\n\n{\n \"type\": \"function\",\n \"function\": {\n \"name\": \"get_current_wind_speed\",\n \"description\": \"Get the current wind speed in km/h at a given location.\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"location\": {\n \"type\": \"string\",\n \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"\n }\n },\n \"required\": [\n \"location\"\n ]\n },\n \"return\": {\n \"type\": \"number\",\n \"description\": \"The current wind speed in km/h\"\n }\n }\n}\n\nWhat is the current temperature in London?<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n",+ "completion": "<|python_tag|>{\"type\": \"function\", \"function\": \"get_current_temperature\", \"parameters\": {\"location\": \"London\", \"country\": \"United Kingdom\", \"unit\": \"celsius\"}}<|eom_id|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "meta-llama/Llama-3.2-1B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": null,+ "context": {}+ },+ "result": {+ "prompt": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\n\nCutting Knowledge Date: December 2023\nToday Date: 25 Mar 2026\n\nYou are a helpful assistant<|eot_id|><|start_header_id|>user<|end_header_id|>\n\nWhat is the current wind speed in London?<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n",+ "completion": "I'm just an AI, I don't have real-time access to current weather conditions. However, I can suggest some ways for you to find out the current wind speed in London.\n\nYou can check the current wind speed in London by visiting a weather website or app, such as:\n\n1. Met Office (metoffice.gov.uk)\n2. BBC Weather (bbc.co.uk/weather)\n3. Weather Underground (wunderground.com)\n4. AccuWeather (accuweather.com)\n\nThese websites provide up-to-date wind speed data for London, including gusts, speed, and direction. You can enter your location to get the current wind speed and other weather conditions.\n\nAlternatively, you can also check your mobile phone's weather app or use a voice assistant like Siri, Google Assistant, or Alexa to get the current wind speed in London.<|eot_id|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "meta-llama/Llama-3.2-1B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [],+ "context": {}+ },+ "result": {+ "prompt": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\n\nEnvironment: ipython\nCutting Knowledge Date: December 2023\nToday Date: 25 Mar 2026\n\nYou are a helpful assistant<|eot_id|><|start_header_id|>user<|end_header_id|>\n\nGiven the following functions, please respond with a JSON for a function call with its proper arguments that best answers the given prompt.\n\nRespond in the format {\"name\": function name, \"parameters\": dictionary of argument name and its value}.Do not use variables.\n\nWhat is the current wind speed in London?<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n",+ "completion": "<|python_tag|>{\"name\": \"wind_speed\", \"parameters\": {\"city\": \"London\", \"units\": \"km/h\"}}<|eom_id|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "meta-llama/Llama-3.2-1B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\n\nEnvironment: ipython\nCutting Knowledge Date: December 2023\nToday Date: 25 Mar 2026\n\nYou are a helpful assistant<|eot_id|><|start_header_id|>user<|end_header_id|>\n\nGiven the following functions, please respond with a JSON for a function call with its proper arguments that best answers the given prompt.\n\nRespond in the format {\"name\": function name, \"parameters\": dictionary of argument name and its value}.Do not use variables.\n\n{\n \"type\": \"function\",\n \"function\": {\n \"name\": \"get_current_temperature\",\n \"description\": \"Get the current temperature at a location.\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"location\": {\n \"type\": \"object\",\n \"properties\": {\n \"city\": {\n \"type\": \"string\",\n \"description\": \"The city name\"\n },\n \"country\": {\n \"type\": \"string\",\n \"description\": \"The country name\"\n }\n },\n \"required\": [\n \"city\",\n \"country\"\n ],\n \"description\": \"The location to get the temperature for\"\n },\n \"unit\": {\n \"type\": \"string\",\n \"enum\": [\n \"celsius\",\n \"fahrenheit\"\n ],\n \"description\": \"The unit to return the temperature in.\"\n }\n },\n \"required\": [\n \"location\",\n \"unit\"\n ]\n },\n \"return\": {\n \"type\": \"number\"\n }\n }\n}\n\nWhat is the current wind speed in London?<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n",+ "completion": "<|python_tag|>{\"type\": \"function\", \"function\": \"get_current_temperature\", \"parameters\": {\"city\": \"London\", \"country\": \"United Kingdom\", \"unit\": \"celsius\"}}<|eom_id|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "meta-llama/Llama-3.2-1B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\n\nEnvironment: ipython\nCutting Knowledge Date: December 2023\nToday Date: 25 Mar 2026\n\nYou are a helpful assistant<|eot_id|><|start_header_id|>user<|end_header_id|>\n\nGiven the following functions, please respond with a JSON for a function call with its proper arguments that best answers the given prompt.\n\nRespond in the format {\"name\": function name, \"parameters\": dictionary of argument name and its value}.Do not use variables.\n\n{\n \"type\": \"function\",\n \"function\": {\n \"name\": \"get_current_wind_speed\",\n \"description\": \"Get the current wind speed in km/h at a given location.\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"location\": {\n \"type\": \"string\",\n \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"\n }\n },\n \"required\": [\n \"location\"\n ]\n },\n \"return\": {\n \"type\": \"number\",\n \"description\": \"The current wind speed in km/h\"\n }\n }\n}\n\nWhat is the current wind speed in London?<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n",+ "completion": "<|python_tag|>{\"type\": \"function\", \"function\": \"get_current_wind_speed\", \"parameters\": {\"location\": \"London\"}}<|eom_id|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "meta-llama/Llama-3.2-1B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\n\nEnvironment: ipython\nCutting Knowledge Date: December 2023\nToday Date: 25 Mar 2026\n\nYou are a helpful assistant<|eot_id|><|start_header_id|>user<|end_header_id|>\n\nGiven the following functions, please respond with a JSON for a function call with its proper arguments that best answers the given prompt.\n\nRespond in the format {\"name\": function name, \"parameters\": dictionary of argument name and its value}.Do not use variables.\n\n{\n \"type\": \"function\",\n \"function\": {\n \"name\": \"get_current_temperature\",\n \"description\": \"Get the current temperature at a location.\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"location\": {\n \"type\": \"object\",\n \"properties\": {\n \"city\": {\n \"type\": \"string\",\n \"description\": \"The city name\"\n },\n \"country\": {\n \"type\": \"string\",\n \"description\": \"The country name\"\n }\n },\n \"required\": [\n \"city\",\n \"country\"\n ],\n \"description\": \"The location to get the temperature for\"\n },\n \"unit\": {\n \"type\": \"string\",\n \"enum\": [\n \"celsius\",\n \"fahrenheit\"\n ],\n \"description\": \"The unit to return the temperature in.\"\n }\n },\n \"required\": [\n \"location\",\n \"unit\"\n ]\n },\n \"return\": {\n \"type\": \"number\"\n }\n }\n}\n\n{\n \"type\": \"function\",\n \"function\": {\n \"name\": \"get_current_wind_speed\",\n \"description\": \"Get the current wind speed in km/h at a given location.\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"location\": {\n \"type\": \"string\",\n \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"\n }\n },\n \"required\": [\n \"location\"\n ]\n },\n \"return\": {\n \"type\": \"number\",\n \"description\": \"The current wind speed in km/h\"\n }\n }\n}\n\nWhat is the current wind speed in London?<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n",+ "completion": "<|python_tag|>{\"type\": \"function\", \"function\": \"get_current_wind_speed\", \"parameters\": {\"location\": \"London\"}}<|eom_id|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "meta-llama/Llama-3.2-1B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": null,+ "context": {}+ },+ "result": {+ "prompt": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\n\nCutting Knowledge Date: December 2023\nToday Date: 25 Mar 2026\n\nYou are a helpful assistant<|eot_id|><|start_header_id|>user<|end_header_id|>\n\nWhat is the current temperature and wind speed in London?<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n",+ "completion": "However, I'm a large language model, I don't have real-time access to current weather conditions. But I can suggest some ways for you to find out the current temperature and wind speed in London.\n\nYou can:\n\n1. Check online weather websites: You can visit websites like AccuWeather, Weather.com, or the Met Office (UK Met Office) for the current weather conditions in London.\n2. Use a weather app: You can download a weather app on your smartphone, such as Dark Sky or Weather Underground, which can provide you with current weather conditions and forecasts for London.\n3. Tune into local news: You can check the local news websites or TV channels for the current weather forecast for London.\n\nPlease note that the information I provide is based on my training data, which is up to 2023. If you need more up-to-date information, I recommend checking the latest weather forecast for London.\n\nWould you like me to provide you with the current temperature and wind speed in a specific location within London?<|eot_id|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "meta-llama/Llama-3.2-1B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [],+ "context": {}+ },+ "result": {+ "prompt": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\n\nEnvironment: ipython\nCutting Knowledge Date: December 2023\nToday Date: 25 Mar 2026\n\nYou are a helpful assistant<|eot_id|><|start_header_id|>user<|end_header_id|>\n\nGiven the following functions, please respond with a JSON for a function call with its proper arguments that best answers the given prompt.\n\nRespond in the format {\"name\": function name, \"parameters\": dictionary of argument name and its value}.Do not use variables.\n\nWhat is the current temperature and wind speed in London?<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n",+ "completion": "{\"name\": \"get_weather\", \"parameters\": {\"city\": \"London\", \"units\": \"metric\"}}<|eom_id|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "meta-llama/Llama-3.2-1B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\n\nEnvironment: ipython\nCutting Knowledge Date: December 2023\nToday Date: 25 Mar 2026\n\nYou are a helpful assistant<|eot_id|><|start_header_id|>user<|end_header_id|>\n\nGiven the following functions, please respond with a JSON for a function call with its proper arguments that best answers the given prompt.\n\nRespond in the format {\"name\": function name, \"parameters\": dictionary of argument name and its value}.Do not use variables.\n\n{\n \"type\": \"function\",\n \"function\": {\n \"name\": \"get_current_temperature\",\n \"description\": \"Get the current temperature at a location.\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"location\": {\n \"type\": \"object\",\n \"properties\": {\n \"city\": {\n \"type\": \"string\",\n \"description\": \"The city name\"\n },\n \"country\": {\n \"type\": \"string\",\n \"description\": \"The country name\"\n }\n },\n \"required\": [\n \"city\",\n \"country\"\n ],\n \"description\": \"The location to get the temperature for\"\n },\n \"unit\": {\n \"type\": \"string\",\n \"enum\": [\n \"celsius\",\n \"fahrenheit\"\n ],\n \"description\": \"The unit to return the temperature in.\"\n }\n },\n \"required\": [\n \"location\",\n \"unit\"\n ]\n },\n \"return\": {\n \"type\": \"number\"\n }\n }\n}\n\nWhat is the current temperature and wind speed in London?<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n",+ "completion": "<|python_tag|>{\"type\": \"function\", \"function\": \"get_current_temperature\", \"parameters\": {\"location\": \"London\", \"unit\": \"celsius\"}}<|eom_id|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "meta-llama/Llama-3.2-1B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\n\nEnvironment: ipython\nCutting Knowledge Date: December 2023\nToday Date: 25 Mar 2026\n\nYou are a helpful assistant<|eot_id|><|start_header_id|>user<|end_header_id|>\n\nGiven the following functions, please respond with a JSON for a function call with its proper arguments that best answers the given prompt.\n\nRespond in the format {\"name\": function name, \"parameters\": dictionary of argument name and its value}.Do not use variables.\n\n{\n \"type\": \"function\",\n \"function\": {\n \"name\": \"get_current_wind_speed\",\n \"description\": \"Get the current wind speed in km/h at a given location.\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"location\": {\n \"type\": \"string\",\n \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"\n }\n },\n \"required\": [\n \"location\"\n ]\n },\n \"return\": {\n \"type\": \"number\",\n \"description\": \"The current wind speed in km/h\"\n }\n }\n}\n\nWhat is the current temperature and wind speed in London?<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n",+ "completion": "<|python_tag|>{\"type\": \"function\", \"function\": \"get_current_wind_speed\", \"parameters\": {\"location\": \"London\"}}<|eom_id|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "meta-llama/Llama-3.2-1B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\n\nEnvironment: ipython\nCutting Knowledge Date: December 2023\nToday Date: 25 Mar 2026\n\nYou are a helpful assistant<|eot_id|><|start_header_id|>user<|end_header_id|>\n\nGiven the following functions, please respond with a JSON for a function call with its proper arguments that best answers the given prompt.\n\nRespond in the format {\"name\": function name, \"parameters\": dictionary of argument name and its value}.Do not use variables.\n\n{\n \"type\": \"function\",\n \"function\": {\n \"name\": \"get_current_temperature\",\n \"description\": \"Get the current temperature at a location.\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"location\": {\n \"type\": \"object\",\n \"properties\": {\n \"city\": {\n \"type\": \"string\",\n \"description\": \"The city name\"\n },\n \"country\": {\n \"type\": \"string\",\n \"description\": \"The country name\"\n }\n },\n \"required\": [\n \"city\",\n \"country\"\n ],\n \"description\": \"The location to get the temperature for\"\n },\n \"unit\": {\n \"type\": \"string\",\n \"enum\": [\n \"celsius\",\n \"fahrenheit\"\n ],\n \"description\": \"The unit to return the temperature in.\"\n }\n },\n \"required\": [\n \"location\",\n \"unit\"\n ]\n },\n \"return\": {\n \"type\": \"number\"\n }\n }\n}\n\n{\n \"type\": \"function\",\n \"function\": {\n \"name\": \"get_current_wind_speed\",\n \"description\": \"Get the current wind speed in km/h at a given location.\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"location\": {\n \"type\": \"string\",\n \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"\n }\n },\n \"required\": [\n \"location\"\n ]\n },\n \"return\": {\n \"type\": \"number\",\n \"description\": \"The current wind speed in km/h\"\n }\n }\n}\n\nWhat is the current temperature and wind speed in London?<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n",+ "completion": "<|python_tag|>{\"type\": \"function\", \"function\": \"get_current_temperature\", \"parameters\": {\"city\": \"London\", \"country\": \"United Kingdom\", \"unit\": \"celsius\"}}; {\"type\": \"function\", \"function\": \"get_current_wind_speed\", \"parameters\": {\"location\": \"London\"}}<|eom_id|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_temperature",+ "get_current_wind_speed"+ ]+ }+ }+]\ No newline at end of filediff --git a/workspace/data/responses/meta-llama_Llama-3.2-3B-Instruct.json b/workspace/data/responses/meta-llama_Llama-3.2-3B-Instruct.jsonnew file mode 100644index 000000000..d70698030--- /dev/null+++ b/workspace/data/responses/meta-llama_Llama-3.2-3B-Instruct.json@@ -0,0 +1,789 @@+[+ {+ "repo_id": "meta-llama/Llama-3.2-3B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": null,+ "context": {}+ },+ "result": {+ "prompt": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\n\nCutting Knowledge Date: December 2023\nToday Date: 25 Mar 2026\n\n<|eot_id|><|start_header_id|>user<|end_header_id|>\n\nWhat is the current temperature in London?<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n",+ "completion": "I'm not able to provide real-time weather information. However, I can suggest some ways for you to find out the current temperature in London.\n\n1. Check online weather websites: You can check websites like AccuWeather, BBC Weather, or the Met Office for the current temperature in London.\n2. Use a weather app: You can download a weather app on your smartphone, such as Dark Sky or Weather Underground, which can provide you with real-time weather information.\n3. Check social media: Many weather services and news outlets post updates on social media platforms like Twitter and Facebook, which may include current weather conditions and forecasts for London.\n\nPlease note that I'm a large language model, I don't have the ability to access real-time data or provide current weather information.<|eot_id|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "meta-llama/Llama-3.2-3B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [],+ "context": {}+ },+ "result": {+ "prompt": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\n\nEnvironment: ipython\nCutting Knowledge Date: December 2023\nToday Date: 25 Mar 2026\n\n<|eot_id|><|start_header_id|>user<|end_header_id|>\n\nGiven the following functions, please respond with a JSON for a function call with its proper arguments that best answers the given prompt.\n\nRespond in the format {\"name\": function name, \"parameters\": dictionary of argument name and its value}.Do not use variables.\n\nWhat is the current temperature in London?<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n",+ "completion": "{\"name\": \"weather\", \"parameters\": {\"city\": \"London\", \"units\": \"C\"}}<|eom_id|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "meta-llama/Llama-3.2-3B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\n\nEnvironment: ipython\nCutting Knowledge Date: December 2023\nToday Date: 25 Mar 2026\n\n<|eot_id|><|start_header_id|>user<|end_header_id|>\n\nGiven the following functions, please respond with a JSON for a function call with its proper arguments that best answers the given prompt.\n\nRespond in the format {\"name\": function name, \"parameters\": dictionary of argument name and its value}.Do not use variables.\n\n{\n \"type\": \"function\",\n \"function\": {\n \"name\": \"get_current_temperature\",\n \"description\": \"Get the current temperature at a location.\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"location\": {\n \"type\": \"object\",\n \"properties\": {\n \"city\": {\n \"type\": \"string\",\n \"description\": \"The city name\"\n },\n \"country\": {\n \"type\": \"string\",\n \"description\": \"The country name\"\n }\n },\n \"required\": [\n \"city\",\n \"country\"\n ],\n \"description\": \"The location to get the temperature for\"\n },\n \"unit\": {\n \"type\": \"string\",\n \"enum\": [\n \"celsius\",\n \"fahrenheit\"\n ],\n \"description\": \"The unit to return the temperature in.\"\n }\n },\n \"required\": [\n \"location\",\n \"unit\"\n ]\n },\n \"return\": {\n \"type\": \"number\"\n }\n }\n}\n\nWhat is the current temperature in London?<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n",+ "completion": "{\"name\": \"get_current_temperature\", \"parameters\": {\"location\": \"{'city': 'London', 'country': 'UK'}\", \"unit\": \"celsius\"}}<|eom_id|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "meta-llama/Llama-3.2-3B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\n\nEnvironment: ipython\nCutting Knowledge Date: December 2023\nToday Date: 25 Mar 2026\n\n<|eot_id|><|start_header_id|>user<|end_header_id|>\n\nGiven the following functions, please respond with a JSON for a function call with its proper arguments that best answers the given prompt.\n\nRespond in the format {\"name\": function name, \"parameters\": dictionary of argument name and its value}.Do not use variables.\n\n{\n \"type\": \"function\",\n \"function\": {\n \"name\": \"get_current_wind_speed\",\n \"description\": \"Get the current wind speed in km/h at a given location.\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"location\": {\n \"type\": \"string\",\n \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"\n }\n },\n \"required\": [\n \"location\"\n ]\n },\n \"return\": {\n \"type\": \"number\",\n \"description\": \"The current wind speed in km/h\"\n }\n }\n}\n\nWhat is the current temperature in London?<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n",+ "completion": "<|python_tag|>{\"name\": \"get_current_temperature\", \"parameters\": {\"location\": \"London\"}}<|eom_id|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "meta-llama/Llama-3.2-3B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\n\nEnvironment: ipython\nCutting Knowledge Date: December 2023\nToday Date: 25 Mar 2026\n\n<|eot_id|><|start_header_id|>user<|end_header_id|>\n\nGiven the following functions, please respond with a JSON for a function call with its proper arguments that best answers the given prompt.\n\nRespond in the format {\"name\": function name, \"parameters\": dictionary of argument name and its value}.Do not use variables.\n\n{\n \"type\": \"function\",\n \"function\": {\n \"name\": \"get_current_temperature\",\n \"description\": \"Get the current temperature at a location.\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"location\": {\n \"type\": \"object\",\n \"properties\": {\n \"city\": {\n \"type\": \"string\",\n \"description\": \"The city name\"\n },\n \"country\": {\n \"type\": \"string\",\n \"description\": \"The country name\"\n }\n },\n \"required\": [\n \"city\",\n \"country\"\n ],\n \"description\": \"The location to get the temperature for\"\n },\n \"unit\": {\n \"type\": \"string\",\n \"enum\": [\n \"celsius\",\n \"fahrenheit\"\n ],\n \"description\": \"The unit to return the temperature in.\"\n }\n },\n \"required\": [\n \"location\",\n \"unit\"\n ]\n },\n \"return\": {\n \"type\": \"number\"\n }\n }\n}\n\n{\n \"type\": \"function\",\n \"function\": {\n \"name\": \"get_current_wind_speed\",\n \"description\": \"Get the current wind speed in km/h at a given location.\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"location\": {\n \"type\": \"string\",\n \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"\n }\n },\n \"required\": [\n \"location\"\n ]\n },\n \"return\": {\n \"type\": \"number\",\n \"description\": \"The current wind speed in km/h\"\n }\n }\n}\n\nWhat is the current temperature in London?<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n",+ "completion": "<|python_tag|>{\"name\": \"get_current_temperature\", \"parameters\": {\"location\": \"{'city\": \"London\", \"country\": \"United Kingdom\", \"unit\": \"celsius\"}}<|eom_id|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "meta-llama/Llama-3.2-3B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": null,+ "context": {}+ },+ "result": {+ "prompt": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\n\nCutting Knowledge Date: December 2023\nToday Date: 25 Mar 2026\n\nYou are a helpful assistant<|eot_id|><|start_header_id|>user<|end_header_id|>\n\nWhat is the current wind speed in London?<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n",+ "completion": "I'm not able to provide real-time weather data. However, I can suggest some options to help you find the current wind speed in London:\n\n1. Check online weather websites: You can visit websites like AccuWeather, Weather.com, or the Met Office (the UK's national weather service) for the current wind speed in London.\n2. Use a weather app: Download a weather app on your smartphone, such as Dark Sky or Weather Underground, which can provide real-time wind speed data.\n3. Tune into local news: Watch local news or listen to the radio to get the latest weather updates, including wind speed.\n\nPlease note that I'm a large language model, I don't have real-time access to current weather data.<|eot_id|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "meta-llama/Llama-3.2-3B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [],+ "context": {}+ },+ "result": {+ "prompt": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\n\nEnvironment: ipython\nCutting Knowledge Date: December 2023\nToday Date: 25 Mar 2026\n\nYou are a helpful assistant<|eot_id|><|start_header_id|>user<|end_header_id|>\n\nGiven the following functions, please respond with a JSON for a function call with its proper arguments that best answers the given prompt.\n\nRespond in the format {\"name\": function name, \"parameters\": dictionary of argument name and its value}.Do not use variables.\n\nWhat is the current wind speed in London?<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n",+ "completion": "{\"name\": \"wunderground.get_current_weather_for_location\", \"parameters\": {\"location\": \"London\"}}<|eom_id|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "meta-llama/Llama-3.2-3B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\n\nEnvironment: ipython\nCutting Knowledge Date: December 2023\nToday Date: 25 Mar 2026\n\nYou are a helpful assistant<|eot_id|><|start_header_id|>user<|end_header_id|>\n\nGiven the following functions, please respond with a JSON for a function call with its proper arguments that best answers the given prompt.\n\nRespond in the format {\"name\": function name, \"parameters\": dictionary of argument name and its value}.Do not use variables.\n\n{\n \"type\": \"function\",\n \"function\": {\n \"name\": \"get_current_temperature\",\n \"description\": \"Get the current temperature at a location.\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"location\": {\n \"type\": \"object\",\n \"properties\": {\n \"city\": {\n \"type\": \"string\",\n \"description\": \"The city name\"\n },\n \"country\": {\n \"type\": \"string\",\n \"description\": \"The country name\"\n }\n },\n \"required\": [\n \"city\",\n \"country\"\n ],\n \"description\": \"The location to get the temperature for\"\n },\n \"unit\": {\n \"type\": \"string\",\n \"enum\": [\n \"celsius\",\n \"fahrenheit\"\n ],\n \"description\": \"The unit to return the temperature in.\"\n }\n },\n \"required\": [\n \"location\",\n \"unit\"\n ]\n },\n \"return\": {\n \"type\": \"number\"\n }\n }\n}\n\nWhat is the current wind speed in London?<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n",+ "completion": "<|python_tag|>{\"name\": \"get_current_temperature\", \"parameters\": {\"location\": \"{'city': 'London', 'country': 'UK'}\", \"unit\": \"meters per second\"}}<|eom_id|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "meta-llama/Llama-3.2-3B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\n\nEnvironment: ipython\nCutting Knowledge Date: December 2023\nToday Date: 25 Mar 2026\n\nYou are a helpful assistant<|eot_id|><|start_header_id|>user<|end_header_id|>\n\nGiven the following functions, please respond with a JSON for a function call with its proper arguments that best answers the given prompt.\n\nRespond in the format {\"name\": function name, \"parameters\": dictionary of argument name and its value}.Do not use variables.\n\n{\n \"type\": \"function\",\n \"function\": {\n \"name\": \"get_current_wind_speed\",\n \"description\": \"Get the current wind speed in km/h at a given location.\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"location\": {\n \"type\": \"string\",\n \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"\n }\n },\n \"required\": [\n \"location\"\n ]\n },\n \"return\": {\n \"type\": \"number\",\n \"description\": \"The current wind speed in km/h\"\n }\n }\n}\n\nWhat is the current wind speed in London?<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n",+ "completion": "{\"name\": \"get_current_wind_speed\", \"parameters\": {\"location\": \"London, UK\"}}<|eom_id|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "meta-llama/Llama-3.2-3B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\n\nEnvironment: ipython\nCutting Knowledge Date: December 2023\nToday Date: 25 Mar 2026\n\nYou are a helpful assistant<|eot_id|><|start_header_id|>user<|end_header_id|>\n\nGiven the following functions, please respond with a JSON for a function call with its proper arguments that best answers the given prompt.\n\nRespond in the format {\"name\": function name, \"parameters\": dictionary of argument name and its value}.Do not use variables.\n\n{\n \"type\": \"function\",\n \"function\": {\n \"name\": \"get_current_temperature\",\n \"description\": \"Get the current temperature at a location.\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"location\": {\n \"type\": \"object\",\n \"properties\": {\n \"city\": {\n \"type\": \"string\",\n \"description\": \"The city name\"\n },\n \"country\": {\n \"type\": \"string\",\n \"description\": \"The country name\"\n }\n },\n \"required\": [\n \"city\",\n \"country\"\n ],\n \"description\": \"The location to get the temperature for\"\n },\n \"unit\": {\n \"type\": \"string\",\n \"enum\": [\n \"celsius\",\n \"fahrenheit\"\n ],\n \"description\": \"The unit to return the temperature in.\"\n }\n },\n \"required\": [\n \"location\",\n \"unit\"\n ]\n },\n \"return\": {\n \"type\": \"number\"\n }\n }\n}\n\n{\n \"type\": \"function\",\n \"function\": {\n \"name\": \"get_current_wind_speed\",\n \"description\": \"Get the current wind speed in km/h at a given location.\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"location\": {\n \"type\": \"string\",\n \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"\n }\n },\n \"required\": [\n \"location\"\n ]\n },\n \"return\": {\n \"type\": \"number\",\n \"description\": \"The current wind speed in km/h\"\n }\n }\n}\n\nWhat is the current wind speed in London?<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n",+ "completion": "<|python_tag|>{\"type\": \"function\", \"function\": \"get_current_wind_speed\", \"parameters\": {\"location\": \"London\"}}<|eom_id|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "meta-llama/Llama-3.2-3B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": null,+ "context": {}+ },+ "result": {+ "prompt": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\n\nCutting Knowledge Date: December 2023\nToday Date: 25 Mar 2026\n\nYou are a helpful assistant<|eot_id|><|start_header_id|>user<|end_header_id|>\n\nWhat is the current temperature and wind speed in London?<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n",+ "completion": "I'm not currently able to provide real-time weather information. However, I can suggest some options to help you find the current weather conditions in London:\n\n1. **Check online weather websites**: You can check websites like AccuWeather, BBC Weather, or Met Office (the UK's national weather service) for the current temperature and wind speed in London.\n2. **Use a weather app**: Download a weather app on your smartphone, such as Dark Sky or Weather Underground, which can provide real-time weather updates for London.\n3. **Tune into local news**: Watch local news channels or listen to local radio stations for weather updates.\n\nPlease note that I'm a large language model, I don't have real-time access to current weather data.<|eot_id|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "meta-llama/Llama-3.2-3B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [],+ "context": {}+ },+ "result": {+ "prompt": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\n\nEnvironment: ipython\nCutting Knowledge Date: December 2023\nToday Date: 25 Mar 2026\n\nYou are a helpful assistant<|eot_id|><|start_header_id|>user<|end_header_id|>\n\nGiven the following functions, please respond with a JSON for a function call with its proper arguments that best answers the given prompt.\n\nRespond in the format {\"name\": function name, \"parameters\": dictionary of argument name and its value}.Do not use variables.\n\nWhat is the current temperature and wind speed in London?<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n",+ "completion": "{\"name\": \"wunderground\", \"parameters\": {\"q\": \"London,UK\"}}<|eom_id|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "meta-llama/Llama-3.2-3B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\n\nEnvironment: ipython\nCutting Knowledge Date: December 2023\nToday Date: 25 Mar 2026\n\nYou are a helpful assistant<|eot_id|><|start_header_id|>user<|end_header_id|>\n\nGiven the following functions, please respond with a JSON for a function call with its proper arguments that best answers the given prompt.\n\nRespond in the format {\"name\": function name, \"parameters\": dictionary of argument name and its value}.Do not use variables.\n\n{\n \"type\": \"function\",\n \"function\": {\n \"name\": \"get_current_temperature\",\n \"description\": \"Get the current temperature at a location.\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"location\": {\n \"type\": \"object\",\n \"properties\": {\n \"city\": {\n \"type\": \"string\",\n \"description\": \"The city name\"\n },\n \"country\": {\n \"type\": \"string\",\n \"description\": \"The country name\"\n }\n },\n \"required\": [\n \"city\",\n \"country\"\n ],\n \"description\": \"The location to get the temperature for\"\n },\n \"unit\": {\n \"type\": \"string\",\n \"enum\": [\n \"celsius\",\n \"fahrenheit\"\n ],\n \"description\": \"The unit to return the temperature in.\"\n }\n },\n \"required\": [\n \"location\",\n \"unit\"\n ]\n },\n \"return\": {\n \"type\": \"number\"\n }\n }\n}\n\nWhat is the current temperature and wind speed in London?<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n",+ "completion": "<|python_tag|>{\"name\": \"get_current_temperature\", \"parameters\": {\"location\": \"{'city': 'London', 'country': 'United Kingdom'}\", \"unit\": \"celsius\"}}<|eom_id|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "meta-llama/Llama-3.2-3B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\n\nEnvironment: ipython\nCutting Knowledge Date: December 2023\nToday Date: 25 Mar 2026\n\nYou are a helpful assistant<|eot_id|><|start_header_id|>user<|end_header_id|>\n\nGiven the following functions, please respond with a JSON for a function call with its proper arguments that best answers the given prompt.\n\nRespond in the format {\"name\": function name, \"parameters\": dictionary of argument name and its value}.Do not use variables.\n\n{\n \"type\": \"function\",\n \"function\": {\n \"name\": \"get_current_wind_speed\",\n \"description\": \"Get the current wind speed in km/h at a given location.\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"location\": {\n \"type\": \"string\",\n \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"\n }\n },\n \"required\": [\n \"location\"\n ]\n },\n \"return\": {\n \"type\": \"number\",\n \"description\": \"The current wind speed in km/h\"\n }\n }\n}\n\nWhat is the current temperature and wind speed in London?<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n",+ "completion": "{\"name\": \"get_current_temperature\", \"parameters\": {\"city\": \"London\"}}; {\"name\": \"get_current_wind_speed\", \"parameters\": {\"location\": \"London\"}}<|eom_id|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "meta-llama/Llama-3.2-3B-Instruct",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\n\nEnvironment: ipython\nCutting Knowledge Date: December 2023\nToday Date: 25 Mar 2026\n\nYou are a helpful assistant<|eot_id|><|start_header_id|>user<|end_header_id|>\n\nGiven the following functions, please respond with a JSON for a function call with its proper arguments that best answers the given prompt.\n\nRespond in the format {\"name\": function name, \"parameters\": dictionary of argument name and its value}.Do not use variables.\n\n{\n \"type\": \"function\",\n \"function\": {\n \"name\": \"get_current_temperature\",\n \"description\": \"Get the current temperature at a location.\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"location\": {\n \"type\": \"object\",\n \"properties\": {\n \"city\": {\n \"type\": \"string\",\n \"description\": \"The city name\"\n },\n \"country\": {\n \"type\": \"string\",\n \"description\": \"The country name\"\n }\n },\n \"required\": [\n \"city\",\n \"country\"\n ],\n \"description\": \"The location to get the temperature for\"\n },\n \"unit\": {\n \"type\": \"string\",\n \"enum\": [\n \"celsius\",\n \"fahrenheit\"\n ],\n \"description\": \"The unit to return the temperature in.\"\n }\n },\n \"required\": [\n \"location\",\n \"unit\"\n ]\n },\n \"return\": {\n \"type\": \"number\"\n }\n }\n}\n\n{\n \"type\": \"function\",\n \"function\": {\n \"name\": \"get_current_wind_speed\",\n \"description\": \"Get the current wind speed in km/h at a given location.\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"location\": {\n \"type\": \"string\",\n \"description\": \"The location to get the wind speed for, in the format \\\"City, Country\\\"\"\n }\n },\n \"required\": [\n \"location\"\n ]\n },\n \"return\": {\n \"type\": \"number\",\n \"description\": \"The current wind speed in km/h\"\n }\n }\n}\n\nWhat is the current temperature and wind speed in London?<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n",+ "completion": "<|python_tag|>{\"name\": \"get_current_temperature\", \"parameters\": {\"location\": \"{'city\": \"London\", \"country\": \"United Kingdom\", \"unit\": \"celsius\"}}, \"unit\": \"fahrenheit\"}}; {\"name\": \"get_current_wind_speed\", \"parameters\": {\"location\": \"London\"}}<|eom_id|>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": [+ "get_current_temperature",+ "get_current_wind_speed"+ ]+ }+ }+]\ No newline at end of filediff --git a/workspace/data/responses/mistralai_Codestral-22B-v0.1.json b/workspace/data/responses/mistralai_Codestral-22B-v0.1.jsonnew file mode 100644index 000000000..844eb02dd--- /dev/null+++ b/workspace/data/responses/mistralai_Codestral-22B-v0.1.json@@ -0,0 +1,73 @@+[+ {+ "repo_id": "mistralai/Codestral-22B-v0.1",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": null,+ "context": {}+ },+ "result": {+ "prompt": "<s>[INST] What is the current temperature in London?[/INST]",+ "completion": "I'm an AI and I don't have personal experiences or the ability to directly access real-time data. However, I can help you find the current temperature in London. As of now, the current temperature in London is approximately 15\u00b0C (59\u00b0F) with a light breeze. However, this information might have changed. I recommend checking a reliable weather website or app for the most accurate and up-to-date information.</s>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "mistralai/Codestral-22B-v0.1",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": null,+ "context": {}+ },+ "result": {+ "prompt": "<s>[INST] You are a helpful assistant\n\nWhat is the current wind speed in London?[/INST]",+ "completion": "I'm an AI and I don't have the ability to experience the physical world, including weather conditions. However, I can provide you with real-time weather information. As of now, the wind speed in London is 10 miles per hour.</s>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "mistralai/Codestral-22B-v0.1",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": null,+ "context": {}+ },+ "result": {+ "prompt": "<s>[INST] You are a helpful assistant\n\nWhat is the current temperature and wind speed in London?[/INST]",+ "completion": "I'm an AI and I don't have the ability to experience or perceive the physical world, including weather conditions. However, I can provide you with real-time weather information. As of now, the current temperature in London is approximately 15\u00b0C (59\u00b0F) with a wind speed of 10 miles per hour. Please check a reliable weather source for the most accurate and up-to-date information.</s>"+ },+ "expectations": {+ "reasoning": false,+ "tool_call_names": []+ }+ }+]\ No newline at end of filediff --git a/workspace/data/responses/openai_gpt-oss-20b.json b/workspace/data/responses/openai_gpt-oss-20b.jsonnew file mode 100644index 000000000..6a29864c9--- /dev/null+++ b/workspace/data/responses/openai_gpt-oss-20b.json@@ -0,0 +1,789 @@+[+ {+ "repo_id": "openai/gpt-oss-20b",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": null,+ "context": {}+ },+ "result": {+ "prompt": "<|start|>system<|message|>You are ChatGPT, a large language model trained by OpenAI.\nKnowledge cutoff: 2024-06\nCurrent date: 2026-03-25\n\nReasoning: medium\n\n# Valid channels: analysis, commentary, final. Channel must be included for every message.<|end|><|start|>user<|message|>What is the current temperature in London?<|end|><|start|>assistant",+ "completion": "<|channel|>analysis<|message|>The user asks \"What is the current temperature in London?\" This is a request for real-time information (weather). The assistant cannot access up-to-date external data. According to the policy, we must refuse and provide apology. We should not speculate. So respond with refusal.<|end|><|start|>assistant<|channel|>final<|message|>I\u2019m sorry, but I can\u2019t provide that information.<|return|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "openai/gpt-oss-20b",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [],+ "context": {}+ },+ "result": {+ "prompt": "<|start|>system<|message|>You are ChatGPT, a large language model trained by OpenAI.\nKnowledge cutoff: 2024-06\nCurrent date: 2026-03-25\n\nReasoning: medium\n\n# Valid channels: analysis, commentary, final. Channel must be included for every message.<|end|><|start|>user<|message|>What is the current temperature in London?<|end|><|start|>assistant",+ "completion": "<|channel|>analysis<|message|>The user asks: \"What is the current temperature in London?\" This is a request for up-to-date information. I cannot browse the web. According to OpenAI policy, I should refuse to provide real-time answers. I must provide a refusal with brief apology and short statement.<|end|><|start|>assistant<|channel|>final<|message|>I\u2019m sorry, but I can\u2019t provide that information.<|return|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "openai/gpt-oss-20b",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|start|>system<|message|>You are ChatGPT, a large language model trained by OpenAI.\nKnowledge cutoff: 2024-06\nCurrent date: 2026-03-25\n\nReasoning: medium\n\n# Valid channels: analysis, commentary, final. Channel must be included for every message.\nCalls to these tools must go to the commentary channel: 'functions'.<|end|><|start|>developer<|message|># Tools\n\n## functions\n\nnamespace functions {\n\n// Get the current temperature at a location.\ntype get_current_temperature = (_: {\n// The location to get the temperature for\nlocation: {\ncity: \n string, country: \n string},\n// The unit to return the temperature in.\nunit: \"celsius\" | \"fahrenheit\",\n}) => any;\n\n} // namespace functions<|end|><|start|>user<|message|>What is the current temperature in London?<|end|><|start|>assistant",+ "completion": "<|channel|>analysis<|message|>Need to call function get_current_temperature for London, UK, probably.<|end|><|start|>assistant<|channel|>commentary to=functions.get_current_temperature <|constrain|>json<|message|>{\"location\":{\"city\":\"London\",\"country\":\"United Kingdom\"},\"unit\":\"celsius\"}<|call|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "openai/gpt-oss-20b",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|start|>system<|message|>You are ChatGPT, a large language model trained by OpenAI.\nKnowledge cutoff: 2024-06\nCurrent date: 2026-03-25\n\nReasoning: medium\n\n# Valid channels: analysis, commentary, final. Channel must be included for every message.\nCalls to these tools must go to the commentary channel: 'functions'.<|end|><|start|>developer<|message|># Tools\n\n## functions\n\nnamespace functions {\n\n// Get the current wind speed in km/h at a given location.\ntype get_current_wind_speed = (_: {\n// The location to get the wind speed for, in the format \"City, Country\"\nlocation: string,\n}) => any;\n\n} // namespace functions<|end|><|start|>user<|message|>What is the current temperature in London?<|end|><|start|>assistant",+ "completion": "<|channel|>analysis<|message|>The user asks \"What is the current temperature in London?\" The system says we only have capability to get wind speed but no temperature. But we can see that get_current_wind_speed is available, but that doesn't provide temperature. Is there a known API for temperature? No. The user question is about current temperature. We don't have a function to get temperature. Is there an inference that we can't answer, or we can respond that we don't have that capability? According to policy, if we cannot answer, we should answer honestly. But we can maybe say we don't have that info. The guidelines: \"If you cannot answer a question you should respond with: I don't know.\" And optionally offer other info. But we can also provide an alternative or ask follow-up. The user might be interested in temperature. Provide an apology and say we currently only can provide wind speed. Then ask if they'd like wind speed? Or we can try to get the data from other sources? But we have no function for temperature. So answer: \"I don't know.\" And offer something else: \"I can get the current wind speed.\" That might be acceptable. Thus answer with a brief apology and indicate we can provide wind speed.<|end|><|start|>assistant<|channel|>final<|message|>I\u2019m sorry, but I don\u2019t have access to the current temperature for London. I can, however, get you the current wind speed there if that would help.<|return|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "openai/gpt-oss-20b",+ "parameters": {+ "messages": [+ {+ "role": "user",+ "content": "What is the current temperature in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|start|>system<|message|>You are ChatGPT, a large language model trained by OpenAI.\nKnowledge cutoff: 2024-06\nCurrent date: 2026-03-25\n\nReasoning: medium\n\n# Valid channels: analysis, commentary, final. Channel must be included for every message.\nCalls to these tools must go to the commentary channel: 'functions'.<|end|><|start|>developer<|message|># Tools\n\n## functions\n\nnamespace functions {\n\n// Get the current temperature at a location.\ntype get_current_temperature = (_: {\n// The location to get the temperature for\nlocation: {\ncity: \n string, country: \n string},\n// The unit to return the temperature in.\nunit: \"celsius\" | \"fahrenheit\",\n}) => any;\n\n// Get the current wind speed in km/h at a given location.\ntype get_current_wind_speed = (_: {\n// The location to get the wind speed for, in the format \"City, Country\"\nlocation: string,\n}) => any;\n\n} // namespace functions<|end|><|start|>user<|message|>What is the current temperature in London?<|end|><|start|>assistant",+ "completion": "<|channel|>analysis<|message|>The user asks for current temperature in London. We have a function get_current_temperature. Need to call that.<|end|><|start|>assistant<|channel|>commentary to=functions.get_current_temperature <|constrain|>json<|message|>{\"location\":{\"city\":\"London\",\"country\":\"United Kingdom\"},\"unit\":\"celsius\"}<|call|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "openai/gpt-oss-20b",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": null,+ "context": {}+ },+ "result": {+ "prompt": "<|start|>system<|message|>You are ChatGPT, a large language model trained by OpenAI.\nKnowledge cutoff: 2024-06\nCurrent date: 2026-03-25\n\nReasoning: medium\n\n# Valid channels: analysis, commentary, final. Channel must be included for every message.<|end|><|start|>developer<|message|># Instructions\n\nYou are a helpful assistant\n\n<|end|><|start|>user<|message|>What is the current wind speed in London?<|end|><|start|>assistant",+ "completion": "<|channel|>analysis<|message|>The user asks: \"What is the current wind speed in London?\" They want real-time data. This requires up-to-date external data, which the assistant can't access. According to policies, the assistant should decline to provide. Provide a refusal or a \"cannot\" answer. There's no disallowed content. So we should refuse.<|end|><|start|>assistant<|channel|>final<|message|>I\u2019m sorry, but I don\u2019t have the ability to retrieve real\u2011time weather data.<|return|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "openai/gpt-oss-20b",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [],+ "context": {}+ },+ "result": {+ "prompt": "<|start|>system<|message|>You are ChatGPT, a large language model trained by OpenAI.\nKnowledge cutoff: 2024-06\nCurrent date: 2026-03-25\n\nReasoning: medium\n\n# Valid channels: analysis, commentary, final. Channel must be included for every message.<|end|><|start|>developer<|message|># Instructions\n\nYou are a helpful assistant\n\n<|end|><|start|>user<|message|>What is the current wind speed in London?<|end|><|start|>assistant",+ "completion": "<|channel|>analysis<|message|>The user asks: \"What is the current wind speed in London?\" They want real-time data. I cannot provide real-time data accurately. According to policy, I should provide a disclaimer that I cannot give real-time weather. Suggest using official weather services. Also can provide some general info: typical wind speeds, etc. Also can show how to get the data. So give a brief apology and reference to resources.<|end|><|start|>assistant<|channel|>final<|message|>I\u2019m sorry, but I don\u2019t have real\u2011time access to live weather data. To find the current wind speed in London (or any other location) you can check one of the following reliable sources:\n\n| Service | How to use |\n|--------|------------|\n| **Weather.com** (The Weather Channel) | Go to the site or app, type \u201cLondon, UK\u201d in the search bar. The main dashboard shows wind speed, direction, and gusts. |\n| **BBC Weather** | Visit the BBC Weather page, enter \u201cLondon\u201d or choose \u201cLondon Central.\u201d It lists wind details in the \u201cWind\u201d section. |\n| **OpenWeatherMap API** | If you\u2019re comfortable with APIs, you can get up\u2011to\u2011date data in JSON: `https://api.openweathermap.org/data/2.5/weather?q=London,UK&appid=YOUR_API_KEY`. The `wind` field contains speed (m/s) and direction. |\n| **AccuWeather** | Search \u201cLondon\u201d and view the \u201cWind\u201d column in the brief forecast. |\n| **Weather Underground** | Provides a \u201cWind\u201d tab that shows speed, direction, gusts, and a 24\u2011hour trend. |\n\nThese platforms pull data directly from local weather stations, satellites, and official meteorological services, so they\u2019ll give you the most accurate and up\u2011to\u2011date wind speed (typically shown in km/h or mph, depending on the site\u2019s settings).<|return|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "openai/gpt-oss-20b",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|start|>system<|message|>You are ChatGPT, a large language model trained by OpenAI.\nKnowledge cutoff: 2024-06\nCurrent date: 2026-03-25\n\nReasoning: medium\n\n# Valid channels: analysis, commentary, final. Channel must be included for every message.\nCalls to these tools must go to the commentary channel: 'functions'.<|end|><|start|>developer<|message|># Instructions\n\nYou are a helpful assistant\n\n# Tools\n\n## functions\n\nnamespace functions {\n\n// Get the current temperature at a location.\ntype get_current_temperature = (_: {\n// The location to get the temperature for\nlocation: {\ncity: \n string, country: \n string},\n// The unit to return the temperature in.\nunit: \"celsius\" | \"fahrenheit\",\n}) => any;\n\n} // namespace functions<|end|><|start|>user<|message|>What is the current wind speed in London?<|end|><|start|>assistant",+ "completion": "<|channel|>analysis<|message|>User asked \"What is the current wind speed in London?\" This is a weather question. We need to use function get_current_temperature? But that function only retrieves temperature. There's no function for wind speed. The instructions mention only one function get_current_temperature, which takes location and unit. This function is for temperature, not wind speed. There's no tool to get wind speed. Thus we cannot provide. We can ask clarification? We could respond that we cannot retrieve wind speed because function only supports temperature. But we can provide temperature. The question explicitly is about wind speed. We must say we cannot provide. Let's respond politely.<|end|><|start|>assistant<|channel|>final<|message|>I\u2019m sorry, but I can\u2019t fetch the wind speed right now. The available function only retrieves current temperature information. If you\u2019d like the current temperature for London (or another location), just let me know!<|return|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "openai/gpt-oss-20b",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|start|>system<|message|>You are ChatGPT, a large language model trained by OpenAI.\nKnowledge cutoff: 2024-06\nCurrent date: 2026-03-25\n\nReasoning: medium\n\n# Valid channels: analysis, commentary, final. Channel must be included for every message.\nCalls to these tools must go to the commentary channel: 'functions'.<|end|><|start|>developer<|message|># Instructions\n\nYou are a helpful assistant\n\n# Tools\n\n## functions\n\nnamespace functions {\n\n// Get the current wind speed in km/h at a given location.\ntype get_current_wind_speed = (_: {\n// The location to get the wind speed for, in the format \"City, Country\"\nlocation: string,\n}) => any;\n\n} // namespace functions<|end|><|start|>user<|message|>What is the current wind speed in London?<|end|><|start|>assistant",+ "completion": "<|channel|>analysis<|message|>We need to use the tool get_current_wind_speed. We'll make a function call.<|end|><|start|>assistant<|channel|>commentary to=functions.get_current_wind_speed <|constrain|>json<|message|>{\"location\":\"London, United Kingdom\"}<|call|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "openai/gpt-oss-20b",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|start|>system<|message|>You are ChatGPT, a large language model trained by OpenAI.\nKnowledge cutoff: 2024-06\nCurrent date: 2026-03-25\n\nReasoning: medium\n\n# Valid channels: analysis, commentary, final. Channel must be included for every message.\nCalls to these tools must go to the commentary channel: 'functions'.<|end|><|start|>developer<|message|># Instructions\n\nYou are a helpful assistant\n\n# Tools\n\n## functions\n\nnamespace functions {\n\n// Get the current temperature at a location.\ntype get_current_temperature = (_: {\n// The location to get the temperature for\nlocation: {\ncity: \n string, country: \n string},\n// The unit to return the temperature in.\nunit: \"celsius\" | \"fahrenheit\",\n}) => any;\n\n// Get the current wind speed in km/h at a given location.\ntype get_current_wind_speed = (_: {\n// The location to get the wind speed for, in the format \"City, Country\"\nlocation: string,\n}) => any;\n\n} // namespace functions<|end|><|start|>user<|message|>What is the current wind speed in London?<|end|><|start|>assistant",+ "completion": "<|channel|>analysis<|message|>We need to call get_current_wind_speed with location string. Probably \"London\". But function expects location: string, \"City, Country\". So \"London, UK\" or \"London, United Kingdom\".\n\nWe'll call the function.<|end|><|start|>assistant<|channel|>commentary to=functions.get_current_wind_speed <|constrain|>json<|message|>{\"location\":\"London, United Kingdom\"}<|call|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "openai/gpt-oss-20b",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": null,+ "context": {}+ },+ "result": {+ "prompt": "<|start|>system<|message|>You are ChatGPT, a large language model trained by OpenAI.\nKnowledge cutoff: 2024-06\nCurrent date: 2026-03-25\n\nReasoning: medium\n\n# Valid channels: analysis, commentary, final. Channel must be included for every message.<|end|><|start|>developer<|message|># Instructions\n\nYou are a helpful assistant\n\n<|end|><|start|>user<|message|>What is the current temperature and wind speed in London?<|end|><|start|>assistant",+ "completion": "<|channel|>analysis<|message|>We need to answer: user asks \"What is the current temperature and wind speed in London?\" We need to answer with current temperature and wind speed in London. The system is offline. Cannot get real-time data. We must clarify that's not available or provide a potential approximation? The best approach is to give a disclaimer that as a language model, can't fetch real-time data. You can suggest them to check reliable sources. The request is straightforward. We must not fabricate data. So respond with disclaimer.<|end|><|start|>assistant<|channel|>final<|message|>I\u2019m sorry, but I don\u2019t have real\u2011time access to weather data. \nTo find the current temperature and wind speed in London, you can check a reliable weather service such as:\n\n- The UK Met Office website \n- BBC Weather \n- Weather.com or AccuWeather \n- A weather app on your phone \n\nThese sources update hourly and will give you the most accurate, up\u2011to\u2011date figures.<|return|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "openai/gpt-oss-20b",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [],+ "context": {}+ },+ "result": {+ "prompt": "<|start|>system<|message|>You are ChatGPT, a large language model trained by OpenAI.\nKnowledge cutoff: 2024-06\nCurrent date: 2026-03-25\n\nReasoning: medium\n\n# Valid channels: analysis, commentary, final. Channel must be included for every message.<|end|><|start|>developer<|message|># Instructions\n\nYou are a helpful assistant\n\n<|end|><|start|>user<|message|>What is the current temperature and wind speed in London?<|end|><|start|>assistant",+ "completion": "<|channel|>analysis<|message|>We need current weather data. As ChatGPT, we don't have real-time data. The question: \"What is the current temperature and wind speed in London?\" We can\u2019t access real-time. Should respond that I can't provide real-time data; recommend checking official weather source or provide approximate values? According to policy, no hallucination. Best answer: I don't have real-time data, recommend checking reliable sources.<|end|><|start|>assistant<|channel|>final<|message|>I don\u2019t have real\u2011time data, so I can\u2019t give you the current temperature or wind speed in London at this moment. \nFor the most up\u2011to\u2011date weather information you can check:\n\n- The UK Met Office website or app \n- National Weather Service (NWS) or Met Office mobile apps \n- Weather websites like BBC Weather, Weather.com, AccuWeather, or the Weather.gov UK portal \n- Weather widgets on your phone or a voice assistant such as Alexa, Google Assistant, or Siri.\n\nThese sources typically provide the latest temperature, wind speed (and direction), humidity, and other relevant conditions.<|return|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": []+ }+ },+ {+ "repo_id": "openai/gpt-oss-20b",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|start|>system<|message|>You are ChatGPT, a large language model trained by OpenAI.\nKnowledge cutoff: 2024-06\nCurrent date: 2026-03-25\n\nReasoning: medium\n\n# Valid channels: analysis, commentary, final. Channel must be included for every message.\nCalls to these tools must go to the commentary channel: 'functions'.<|end|><|start|>developer<|message|># Instructions\n\nYou are a helpful assistant\n\n# Tools\n\n## functions\n\nnamespace functions {\n\n// Get the current temperature at a location.\ntype get_current_temperature = (_: {\n// The location to get the temperature for\nlocation: {\ncity: \n string, country: \n string},\n// The unit to return the temperature in.\nunit: \"celsius\" | \"fahrenheit\",\n}) => any;\n\n} // namespace functions<|end|><|start|>user<|message|>What is the current temperature and wind speed in London?<|end|><|start|>assistant",+ "completion": "<|channel|>analysis<|message|>We need to answer: current temperature and wind speed in London. The environment provides a tool 'get_current_temperature', but that only returns temperature, not wind speed. We can request temperature; wind speed might need another tool but none provided. So maybe I should answer with temperature retrieved via function; not provide wind speed, or state we can't get wind speed with current tools. But possibly we can approximate or say we need another API. However guidelines: If question requires data not available, should say we can't fetch. So we can call get_current_temperature for London. This returns temperature. We cannot get wind speed. So answer: provide temperature, and mention we can't get wind speed currently.<|end|><|start|>assistant<|channel|>commentary to=functions.get_current_temperature <|constrain|>json<|message|>{\"location\":{\"city\":\"London\",\"country\":\"United Kingdom\"},\"unit\":\"celsius\"}<|call|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_temperature"+ ]+ }+ },+ {+ "repo_id": "openai/gpt-oss-20b",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|start|>system<|message|>You are ChatGPT, a large language model trained by OpenAI.\nKnowledge cutoff: 2024-06\nCurrent date: 2026-03-25\n\nReasoning: medium\n\n# Valid channels: analysis, commentary, final. Channel must be included for every message.\nCalls to these tools must go to the commentary channel: 'functions'.<|end|><|start|>developer<|message|># Instructions\n\nYou are a helpful assistant\n\n# Tools\n\n## functions\n\nnamespace functions {\n\n// Get the current wind speed in km/h at a given location.\ntype get_current_wind_speed = (_: {\n// The location to get the wind speed for, in the format \"City, Country\"\nlocation: string,\n}) => any;\n\n} // namespace functions<|end|><|start|>user<|message|>What is the current temperature and wind speed in London?<|end|><|start|>assistant",+ "completion": "<|channel|>analysis<|message|>The user asks: \"What is the current temperature and wind speed in London?\" We have a function get_current_wind_speed but no function for temperature. We cannot fetch temperature. So we can give wind speed using the function, but cannot provide temperature. We can say we can provide wind speed, but not temperature. If we can approximate or say we don't have. We should explain the limitation. Also we might fetch wind speed via the function. Let's do that.<|end|><|start|>assistant<|channel|>commentary to=functions.get_current_wind_speed <|constrain|>json<|message|>{\"location\":\"London, UK\"}<|call|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_wind_speed"+ ]+ }+ },+ {+ "repo_id": "openai/gpt-oss-20b",+ "parameters": {+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant"+ },+ {+ "role": "user",+ "content": "What is the current temperature and wind speed in London?"+ }+ ],+ "tools": [+ {+ "type": "function",+ "function": {+ "name": "get_current_temperature",+ "description": "Get the current temperature at a location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "object",+ "properties": {+ "city": {+ "type": "string",+ "description": "The city name"+ },+ "country": {+ "type": "string",+ "description": "The country name"+ }+ },+ "required": [+ "city",+ "country"+ ],+ "description": "The location to get the temperature for"+ },+ "unit": {+ "type": "string",+ "enum": [+ "celsius",+ "fahrenheit"+ ],+ "description": "The unit to return the temperature in."+ }+ },+ "required": [+ "location",+ "unit"+ ]+ },+ "return": {+ "type": "number"+ }+ }+ },+ {+ "type": "function",+ "function": {+ "name": "get_current_wind_speed",+ "description": "Get the current wind speed in km/h at a given location.",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {+ "type": "string",+ "description": "The location to get the wind speed for, in the format \"City, Country\""+ }+ },+ "required": [+ "location"+ ]+ },+ "return": {+ "type": "number",+ "description": "The current wind speed in km/h"+ }+ }+ }+ ],+ "context": {}+ },+ "result": {+ "prompt": "<|start|>system<|message|>You are ChatGPT, a large language model trained by OpenAI.\nKnowledge cutoff: 2024-06\nCurrent date: 2026-03-25\n\nReasoning: medium\n\n# Valid channels: analysis, commentary, final. Channel must be included for every message.\nCalls to these tools must go to the commentary channel: 'functions'.<|end|><|start|>developer<|message|># Instructions\n\nYou are a helpful assistant\n\n# Tools\n\n## functions\n\nnamespace functions {\n\n// Get the current temperature at a location.\ntype get_current_temperature = (_: {\n// The location to get the temperature for\nlocation: {\ncity: \n string, country: \n string},\n// The unit to return the temperature in.\nunit: \"celsius\" | \"fahrenheit\",\n}) => any;\n\n// Get the current wind speed in km/h at a given location.\ntype get_current_wind_speed = (_: {\n// The location to get the wind speed for, in the format \"City, Country\"\nlocation: string,\n}) => any;\n\n} // namespace functions<|end|><|start|>user<|message|>What is the current temperature and wind speed in London?<|end|><|start|>assistant",+ "completion": "<|channel|>analysis<|message|>We need to query both functions. First get_current_temperature with location city: London, country: United Kingdom, unit celsius or fahrenheit? Probably celsius. Also get_current_wind_speed with location \"London, United Kingdom\". Let's call in order.\n\nSo first call get_current_temperature.<|end|><|start|>assistant<|channel|>commentary to=functions.get_current_temperature <|constrain|>json<|message|>{\n \"location\": {\n \"city\": \"London\",\n \"country\": \"United Kingdom\"\n },\n \"unit\": \"celsius\"\n}<|call|>"+ },+ "expectations": {+ "reasoning": true,+ "tool_call_names": [+ "get_current_temperature",+ "get_current_wind_speed"+ ]+ }+ }+]\ No newline at end of file