{"_id":"@10xscale/agentflow-client","_rev":"8-20b0c5d6ef76730d3a6d401b309e0009","name":"@10xscale/agentflow-client","dist-tags":{"latest":"0.4.0"},"versions":{"0.0.1":{"name":"@10xscale/agentflow-client","version":"0.0.1","keywords":["agentflow","agent","ai","llm","chatbot","conversation","memory","threads","streaming","tools","function-calling","react","typescript","api-client"],"author":{"name":"Shudipto Trafder"},"license":"MIT","_id":"@10xscale/agentflow-client@0.0.1","maintainers":[{"name":"iamsdt","email":"shudiptotrafder@gmail.com"}],"homepage":"https://github.com/Iamsdt/agentflow-client#readme","bugs":{"url":"https://github.com/Iamsdt/agentflow-client/issues"},"dist":{"shasum":"f9685269082c0e5f30bd6203fa7bcfb684b86a4a","tarball":"https://registry.npmjs.org/@10xscale/agentflow-client/-/agentflow-client-0.0.1.tgz","fileCount":69,"integrity":"sha512-HFMdCNhm7Bq3K0LIGovjLEmJAJGThYE9GYDhw0WN3B3zq/aIu09aB4Y5BHlrEsnIOpcZqHF77AdgoP0hQwPZcA==","signatures":[{"sig":"MEQCIEo9wN/mO1HJccoJFqwU4TXYOd/Pzm0GHc5oR8BIeXVlAiAFc8EB4S+v8aCETXAbhAijDB/F9Q6WyMtDCiOWczugsA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":557530},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","engines":{"node":">=18.0.0"},"gitHead":"29fa3121f668311057198d599964d63ad5cd7fc7","scripts":{"dev":"vite build --watch","test":"vitest","build":"tsc && vite build && cp -r dist-types/* dist/","test:ui":"vitest --ui","coverage":"vitest run --coverage","test:run":"vitest run","coverage:open":"vitest run --coverage && xdg-open coverage/index.html","test:coverage":"vitest run --coverage","prepublishOnly":"npm run build && npm run test:run"},"_npmUser":{"name":"iamsdt","email":"shudiptotrafder@gmail.com"},"repository":{"url":"git+https://github.com/Iamsdt/agentflow-client.git","type":"git"},"_npmVersion":"11.6.2","description":"TypeScript client library for AgentFlow API - build intelligent agents with thread management, streaming, memory, and tool execution","directories":{},"_nodeVersion":"25.0.0","_hasShrinkwrap":false,"devDependencies":{"vite":"^5.0.0","vitest":"^1.0.0","ts-node":"^10.9.2","@vitest/ui":"^1.0.0","typescript":"^5.0.0","@types/react":"^18.0.0","@vitest/coverage-v8":"^1.6.1","@vitejs/plugin-react":"^4.2.0"},"_npmOperationalInternal":{"tmp":"tmp/agentflow-client_0.0.1_1761479634162_0.8509586387002559","host":"s3://npm-registry-packages-npm-production"}},"0.0.2":{"name":"@10xscale/agentflow-client","version":"0.0.2","keywords":["agentflow","agent","ai","llm","chatbot","conversation","memory","threads","streaming","tools","function-calling","react","typescript","api-client"],"author":{"name":"Shudipto Trafder"},"license":"MIT","_id":"@10xscale/agentflow-client@0.0.2","maintainers":[{"name":"iamsdt","email":"shudiptotrafder@gmail.com"}],"homepage":"https://github.com/Iamsdt/agentflow-client#readme","bugs":{"url":"https://github.com/Iamsdt/agentflow-client/issues"},"dist":{"shasum":"3730872c0478f72db39470a34988d5d135567c88","tarball":"https://registry.npmjs.org/@10xscale/agentflow-client/-/agentflow-client-0.0.2.tgz","fileCount":69,"integrity":"sha512-Csh8QPptAwxIpcELubrE0Q3yiuq76oUe7W9vv+R8k4HZkCX/Wdtqgrtp7WZ8olMoFTSjThu8IlYVuDQWB0DDMw==","signatures":[{"sig":"MEUCIQCBuzwbko9dSpIvnjmYmjjRUQiebkT3nIHpO3VzDNqi3gIgSUPUMCiQoUbM6QxuVqqtgBcgWF08pjb0q8yhFGq6yiw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":555040},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","engines":{"node":">=18.0.0"},"gitHead":"a7303a648c39d00dc89f7753e240d8277de6cbfd","scripts":{"dev":"vite build --watch","test":"vitest","build":"tsc && vite build && cp -r dist-types/* dist/","test:ui":"vitest --ui","coverage":"vitest run --coverage","test:run":"vitest run","coverage:open":"vitest run --coverage && xdg-open coverage/index.html","test:coverage":"vitest run --coverage","prepublishOnly":"npm run build && npm run test:run"},"_npmUser":{"name":"iamsdt","email":"shudiptotrafder@gmail.com"},"repository":{"url":"git+https://github.com/Iamsdt/agentflow-client.git","type":"git"},"_npmVersion":"11.6.2","description":"TypeScript client library for AgentFlow API - build intelligent agents with thread management, streaming, memory, and tool execution","directories":{},"_nodeVersion":"25.0.0","_hasShrinkwrap":false,"devDependencies":{"vite":"^5.0.0","vitest":"^1.0.0","ts-node":"^10.9.2","@vitest/ui":"^1.0.0","typescript":"^5.0.0","@types/react":"^18.0.0","@vitest/coverage-v8":"^1.6.1","@vitejs/plugin-react":"^4.2.0"},"_npmOperationalInternal":{"tmp":"tmp/agentflow-client_0.0.2_1764327293556_0.4854729772074391","host":"s3://npm-registry-packages-npm-production"}},"0.0.3":{"name":"@10xscale/agentflow-client","version":"0.0.3","keywords":["agentflow","agent","ai","llm","chatbot","conversation","memory","threads","streaming","tools","function-calling","react","typescript","api-client"],"author":{"name":"Shudipto Trafder"},"license":"MIT","_id":"@10xscale/agentflow-client@0.0.3","maintainers":[{"name":"iamsdt","email":"shudiptotrafder@gmail.com"}],"homepage":"https://github.com/Iamsdt/agentflow-client#readme","bugs":{"url":"https://github.com/Iamsdt/agentflow-client/issues"},"dist":{"shasum":"844719b7990ef62496d17edc112eec9731bca2ba","tarball":"https://registry.npmjs.org/@10xscale/agentflow-client/-/agentflow-client-0.0.3.tgz","fileCount":69,"integrity":"sha512-9cdfI3L2MzE5Nqlg+mUOEo8336Zq66n8W/63+OGZzwjexrbu8vfXlX0xCuCSGTe6I9vBEif0njcG2+zESJEbfQ==","signatures":[{"sig":"MEYCIQDaY/T63doV8ChuIWZMxh9cEk3SCf/tmtPeE6IUm5epogIhAM8kl5VFavdi5nI6tOUYb2efjmfuwwpguLJG1Iqx8DMM","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":554200},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","engines":{"node":">=18.0.0"},"gitHead":"b546716ae65ef8ed37d0cf46f2cfdfcca676eeb6","scripts":{"dev":"vite build --watch","test":"vitest","build":"tsc && vite build && cp -r dist-types/* dist/","test:ui":"vitest --ui","coverage":"vitest run --coverage","test:run":"vitest run","coverage:open":"vitest run --coverage && xdg-open coverage/index.html","test:coverage":"vitest run --coverage","prepublishOnly":"npm run build && npm run test:run"},"_npmUser":{"name":"iamsdt","email":"shudiptotrafder@gmail.com"},"repository":{"url":"git+https://github.com/Iamsdt/agentflow-client.git","type":"git"},"_npmVersion":"11.6.2","description":"TypeScript client library for AgentFlow API - build intelligent agents with thread management, streaming, memory, and tool execution","directories":{},"_nodeVersion":"25.0.0","_hasShrinkwrap":false,"devDependencies":{"vite":"^5.0.0","vitest":"^1.0.0","ts-node":"^10.9.2","@vitest/ui":"^1.0.0","typescript":"^5.0.0","@types/react":"^18.0.0","@vitest/coverage-v8":"^1.6.1","@vitejs/plugin-react":"^4.2.0"},"_npmOperationalInternal":{"tmp":"tmp/agentflow-client_0.0.3_1764412404689_0.8900230004538179","host":"s3://npm-registry-packages-npm-production"}},"0.0.4":{"name":"@10xscale/agentflow-client","version":"0.0.4","keywords":["agentflow","agent","ai","llm","chatbot","conversation","memory","threads","streaming","tools","function-calling","react","typescript","api-client"],"author":{"name":"Shudipto Trafder"},"license":"MIT","_id":"@10xscale/agentflow-client@0.0.4","maintainers":[{"name":"iamsdt","email":"shudiptotrafder@gmail.com"}],"homepage":"https://github.com/Iamsdt/agentflow-client#readme","bugs":{"url":"https://github.com/Iamsdt/agentflow-client/issues"},"dist":{"shasum":"931e56bb01ef80773a1793b561d754f76a10b530","tarball":"https://registry.npmjs.org/@10xscale/agentflow-client/-/agentflow-client-0.0.4.tgz","fileCount":69,"integrity":"sha512-OAVBisQz9O3hEpPTsoavFEZlcmZe53kYlZUy2zns3hpzNFVWyq06kvCc+yZq/mVYA9IefMNJ4jRk92rrFyKx0A==","signatures":[{"sig":"MEUCIBNVWi9NHb+UNF+bXlkBLkzZrWKC/rLCla/cCvkwRwoTAiEAsewnrgdtJc0bMHZ/Ukg/b772F0ND3lYQlB3G1pwOTyA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":552534},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","engines":{"node":">=18.0.0"},"gitHead":"303da68da42403fb9063676039c319b73c7d45f6","scripts":{"dev":"vite build --watch","test":"vitest","build":"tsc && vite build && cp -r dist-types/* dist/","test:ui":"vitest --ui","coverage":"vitest run --coverage","test:run":"vitest run","coverage:open":"vitest run --coverage && xdg-open coverage/index.html","test:coverage":"vitest run --coverage","prepublishOnly":"npm run build && npm run test:run"},"_npmUser":{"name":"iamsdt","email":"shudiptotrafder@gmail.com"},"repository":{"url":"git+https://github.com/Iamsdt/agentflow-client.git","type":"git"},"_npmVersion":"11.6.2","description":"TypeScript client library for AgentFlow API - build intelligent agents with thread management, streaming, memory, and tool execution","directories":{},"_nodeVersion":"25.0.0","_hasShrinkwrap":false,"devDependencies":{"vite":"^5.0.0","vitest":"^1.0.0","ts-node":"^10.9.2","@vitest/ui":"^1.0.0","typescript":"^5.0.0","@types/react":"^18.0.0","@vitest/coverage-v8":"^1.6.1","@vitejs/plugin-react":"^4.2.0"},"_npmOperationalInternal":{"tmp":"tmp/agentflow-client_0.0.4_1764433199662_0.7072162683584122","host":"s3://npm-registry-packages-npm-production"}},"0.0.5":{"name":"@10xscale/agentflow-client","version":"0.0.5","keywords":["agentflow","agent","ai","llm","chatbot","conversation","memory","threads","streaming","tools","function-calling","react","typescript","api-client"],"author":{"name":"Shudipto Trafder"},"license":"MIT","_id":"@10xscale/agentflow-client@0.0.5","maintainers":[{"name":"iamsdt","email":"shudiptotrafder@gmail.com"}],"homepage":"https://github.com/Iamsdt/agentflow-client#readme","bugs":{"url":"https://github.com/Iamsdt/agentflow-client/issues"},"dist":{"shasum":"c5fa94bce23eb4e2301e8d68bca77868b0873683","tarball":"https://registry.npmjs.org/@10xscale/agentflow-client/-/agentflow-client-0.0.5.tgz","fileCount":91,"integrity":"sha512-B81E4xm1gd2GIJl2MdLFbqoa3GJG/86qNSGORaL+MyqCJJvGIbX1Ceo37+MnbSFnjQ+sdXyD/5WQU4MpEqnS/w==","signatures":[{"sig":"MEQCIEpoaai6locHv5PjwKS8XM+/gKx0E7ZX7ZfNJSlyrfNbAiAF2CQWb2b6Nmn9fqmZHKStnNbbOFXdaF6adcZ10IDZBA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":722573},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","engines":{"node":">=18.0.0"},"gitHead":"bc213281f87bcc43a406c2077b772b76ee689317","scripts":{"dev":"vite build --watch","test":"vitest","build":"tsc && vite build && cp -r dist-types/* dist/","test:ui":"vitest --ui","coverage":"vitest run --coverage","test:run":"vitest run","coverage:open":"vitest run --coverage && xdg-open coverage/index.html","test:coverage":"vitest run --coverage","prepublishOnly":"npm run build && npm run test:run"},"_npmUser":{"name":"iamsdt","email":"shudiptotrafder@gmail.com"},"repository":{"url":"git+https://github.com/Iamsdt/agentflow-client.git","type":"git"},"_npmVersion":"11.6.2","description":"TypeScript client library for AgentFlow API - build intelligent agents with thread management, streaming, memory, and tool execution","directories":{},"_nodeVersion":"25.0.0","_hasShrinkwrap":false,"devDependencies":{"vite":"^5.0.0","vitest":"^1.0.0","ts-node":"^10.9.2","@vitest/ui":"^1.0.0","typescript":"^5.0.0","@types/react":"^18.0.0","@vitest/coverage-v8":"^1.6.1","@vitejs/plugin-react":"^4.2.0"},"_npmOperationalInternal":{"tmp":"tmp/agentflow-client_0.0.5_1775639534767_0.49933096970733115","host":"s3://npm-registry-packages-npm-production"}},"0.1.0":{"name":"@10xscale/agentflow-client","version":"0.1.0","keywords":["agentflow","agent","ai","llm","chatbot","conversation","memory","threads","streaming","tools","function-calling","react","typescript","api-client"],"author":{"name":"Shudipto Trafder"},"license":"MIT","_id":"@10xscale/agentflow-client@0.1.0","maintainers":[{"name":"iamsdt","email":"shudiptotrafder@gmail.com"}],"homepage":"https://github.com/Iamsdt/agentflow-client#readme","bugs":{"url":"https://github.com/Iamsdt/agentflow-client/issues"},"dist":{"shasum":"7612f1719e3fc1f7936318f0be2924de86f439db","tarball":"https://registry.npmjs.org/@10xscale/agentflow-client/-/agentflow-client-0.1.0.tgz","fileCount":93,"integrity":"sha512-qzxfzGm73d66CoOWkLdr3GV/8KG9z44UVtqMorBMJr7vpZCPD4/LaRuNMAQ9lW77sr9qzJwTFRdH3GK9K1V54w==","signatures":[{"sig":"MEUCIQCHiM+VV7X5lcg32HNTBmO0G1bji0M/q+Iq+djh856ZXgIgOdc6tRq7SK8+e9zLOTSveTYypnC7fKGFcWylvZOv4Rk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":774435},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","engines":{"node":">=18.0.0"},"gitHead":"1c47f849f509015015569a548f6675600ed2a6cf","scripts":{"dev":"vite build --watch","test":"vitest","build":"tsc && vite build && cp -r dist-types/* dist/","test:ui":"vitest --ui","coverage":"vitest run --coverage","test:run":"vitest run","coverage:open":"vitest run --coverage && xdg-open coverage/index.html","test:coverage":"vitest run --coverage","prepublishOnly":"npm run build && npm run test:run"},"_npmUser":{"name":"iamsdt","email":"shudiptotrafder@gmail.com"},"repository":{"url":"git+https://github.com/Iamsdt/agentflow-client.git","type":"git"},"_npmVersion":"11.6.2","description":"TypeScript client library for AgentFlow API - build intelligent agents with thread management, streaming, memory, and tool execution","directories":{},"_nodeVersion":"25.0.0","_hasShrinkwrap":false,"devDependencies":{"vite":"^5.0.0","vitest":"^1.0.0","ts-node":"^10.9.2","@vitest/ui":"^1.0.0","typescript":"^5.0.0","@types/react":"^18.0.0","@vitest/coverage-v8":"^1.6.1","@vitejs/plugin-react":"^4.2.0"},"_npmOperationalInternal":{"tmp":"tmp/agentflow-client_0.1.0_1779647981502_0.6453040954921718","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@10xscale/agentflow-client","version":"0.3.0","keywords":["agentflow","agent","ai","llm","chatbot","conversation","memory","threads","streaming","tools","function-calling","typescript","api-client"],"author":{"name":"10xScale","email":"contact@10xscale.ai"},"license":"MIT","_id":"@10xscale/agentflow-client@0.3.0","maintainers":[{"name":"iamsdt","email":"shudiptotrafder@gmail.com"}],"contributors":[{"name":"Shudipto Trafder","email":"shudiptotrafder@gmail.com"}],"homepage":"https://github.com/10xHub/agentflow/tree/main/agentflow-client#readme","bugs":{"url":"https://github.com/10xHub/agentflow/issues"},"dist":{"shasum":"f8441bfcc7889a182803c6390d3fbb640d3418ce","tarball":"https://registry.npmjs.org/@10xscale/agentflow-client/-/agentflow-client-0.3.0.tgz","fileCount":125,"integrity":"sha512-/3300kn51Xk+CmN/pVB82Qn1Jn3xR0NZ+f3LbK/SLjl/OAgZ6ruX8h12MMRe/snOy0Vm9GS/xJCxT6xLf2bopw==","signatures":[{"sig":"MEQCIBgfGsVw28hcpCjjuEigLTnBAv6q6BLyMI6pyMywGcp7AiA1wlr2AdRSReoeKcHfNbIPZewaXnj4thxm/UyBXSmNkQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1000330},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./package.json":"./package.json"},"gitHead":"2655338d3e3e44c7f68b7642f33b49d59133edff","scripts":{"dev":"vite build --watch","lint":"eslint . --max-warnings 253","test":"vitest","build":"npm run clean && tsc -p tsconfig.build.json && vite build","check":"npm run lint && npm run typecheck && npm run test:run","clean":"rimraf dist","format":"prettier --write .","test:ui":"vitest --ui","coverage":"vitest run --coverage","lint:fix":"eslint . --fix","test:run":"vitest run","typecheck":"tsc --noEmit","format:check":"prettier --check .","coverage:open":"vitest run --coverage && xdg-open coverage/index.html","test:coverage":"vitest run --coverage","prepublishOnly":"npm run check && npm run build"},"_npmUser":{"name":"iamsdt","email":"shudiptotrafder@gmail.com"},"repository":{"url":"git+https://github.com/10xHub/agentflow.git","type":"git","directory":"agentflow-client"},"_npmVersion":"11.13.0","description":"TypeScript client library for AgentFlow API - build intelligent agents with thread management, streaming, memory, and tool execution","directories":{},"sideEffects":false,"_nodeVersion":"24.16.0","publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"vite":"^7.3.6","eslint":"^9.13.0","rimraf":"^6.0.1","vitest":"^3.2.7","ts-node":"^10.9.2","prettier":"^3.3.0","@eslint/js":"^9.13.0","@vitest/ui":"^3.2.7","typescript":"^5.0.0","typescript-eslint":"^8.11.0","@vitest/coverage-v8":"^3.2.7","eslint-config-prettier":"^9.1.0"},"_npmOperationalInternal":{"tmp":"tmp/agentflow-client_0.3.0_1784640836695_0.5178991004306759","host":"s3://npm-registry-packages-npm-production"}},"0.4.0":{"name":"@10xscale/agentflow-client","version":"0.4.0","description":"TypeScript client library for AgentFlow API - build intelligent agents with thread management, streaming, memory, and tool execution","type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./package.json":"./package.json"},"sideEffects":false,"scripts":{"build":"npm run clean && tsc -p tsconfig.build.json && vite build","clean":"rimraf dist","dev":"vite build --watch","typecheck":"tsc --noEmit","lint":"eslint . --max-warnings 253","lint:fix":"eslint . --fix","format":"prettier --write .","format:check":"prettier --check .","test":"vitest","test:run":"vitest run","test:coverage":"vitest run --coverage","test:ui":"vitest --ui","coverage":"vitest run --coverage","coverage:open":"vitest run --coverage && xdg-open coverage/index.html","check":"npm run lint && npm run typecheck && npm run test:run","prepublishOnly":"npm run check && npm run build"},"repository":{"type":"git","url":"git+https://github.com/10xHub/agentflow.git","directory":"agentflow-client"},"bugs":{"url":"https://github.com/10xHub/agentflow/issues"},"homepage":"https://github.com/10xHub/agentflow/tree/main/agentflow-client#readme","devDependencies":{"@eslint/js":"^9.13.0","@vitest/coverage-v8":"^3.2.7","@vitest/ui":"^3.2.7","eslint":"^9.13.0","eslint-config-prettier":"^9.1.0","prettier":"^3.3.0","rimraf":"^6.0.1","ts-node":"^10.9.2","typescript":"^5.0.0","typescript-eslint":"^8.11.0","vite":"^7.3.6","vitest":"^3.2.7"},"keywords":["agentflow","agent","ai","llm","chatbot","conversation","memory","threads","streaming","tools","function-calling","typescript","api-client"],"author":{"name":"10xScale","email":"contact@10xscale.ai"},"contributors":[{"name":"Shudipto Trafder","email":"shudiptotrafder@gmail.com"}],"license":"MIT","engines":{"node":">=18.0.0"},"publishConfig":{"access":"public","provenance":true},"gitHead":"a771535e20af5f52c68c7786b8e4808bef939b18","_id":"@10xscale/agentflow-client@0.4.0","_nodeVersion":"24.16.0","_npmVersion":"11.13.0","dist":{"integrity":"sha512-GX1VRt9kR5N5QKegEYZJ/b1OQdbDDrQLXJ+FfTjA4PaamrxLXzHzwiICsw+wDUE/yrgmt3cgZsvtn3JqyT7YnQ==","shasum":"88e55b1887f164828daa0f3db086fcc7113edaf0","tarball":"https://registry.npmjs.org/@10xscale/agentflow-client/-/agentflow-client-0.4.0.tgz","fileCount":125,"unpackedSize":1013836,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDgwVKuWSH+k/7FjEfU7SwivB9GI+ksIAtzt6KosFxj7AIgH22jxOpdrAZbqZit07KN9IEd98NUF5VCtC4QGtLaD90="}]},"_npmUser":{"name":"iamsdt","email":"shudiptotrafder@gmail.com"},"directories":{},"maintainers":[{"name":"iamsdt","email":"shudiptotrafder@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/agentflow-client_0.4.0_1785149872777_0.2622040779427075"},"_hasShrinkwrap":false}},"time":{"created":"2025-10-26T11:53:54.105Z","modified":"2026-07-27T10:57:53.069Z","0.0.1":"2025-10-26T11:53:54.329Z","0.0.2":"2025-11-28T10:54:53.769Z","0.0.3":"2025-11-29T10:33:24.925Z","0.0.4":"2025-11-29T16:19:59.880Z","0.0.5":"2026-04-08T09:12:14.938Z","0.1.0":"2026-05-24T18:39:41.667Z","0.3.0":"2026-07-21T13:33:56.838Z","0.4.0":"2026-07-27T10:57:52.915Z"},"bugs":{"url":"https://github.com/10xHub/agentflow/issues"},"author":{"name":"10xScale","email":"contact@10xscale.ai"},"license":"MIT","homepage":"https://github.com/10xHub/agentflow/tree/main/agentflow-client#readme","keywords":["agentflow","agent","ai","llm","chatbot","conversation","memory","threads","streaming","tools","function-calling","typescript","api-client"],"repository":{"type":"git","url":"git+https://github.com/10xHub/agentflow.git","directory":"agentflow-client"},"description":"TypeScript client library for AgentFlow API - build intelligent agents with thread management, streaming, memory, and tool execution","contributors":[{"name":"Shudipto Trafder","email":"shudiptotrafder@gmail.com"}],"maintainers":[{"name":"iamsdt","email":"shudiptotrafder@gmail.com"}],"readme":"# AgentFlow Client\n\n[![npm version](https://img.shields.io/npm/v/@10xscale/agentflow-client.svg)](https://www.npmjs.com/package/@10xscale/agentflow-client)\n[![TypeScript](https://img.shields.io/badge/TypeScript-5.0+-blue.svg)](https://www.typescriptlang.org/)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\nA TypeScript client library for the **AgentFlow** multi-agent system API. Build conversational AI applications with streaming responses, realtime audio, tool execution, and dynamic state management.\n\n## ✨ Features\n\n- 🚀 **Simple API** - Clean, intuitive client for AgentFlow\n- 💬 **Streaming Support** - Real-time streaming responses for chat UIs\n- 🔧 **Tool Execution** - Automatic local tool execution with recursion handling\n- 📊 **State Management** - Dynamic state schema with validation\n- 🎙️ **Realtime Audio** - WebSocket audio-to-audio via `/v1/graph/live`\n- 📘 **TypeScript First** - Full TypeScript support with comprehensive types\n- 🎯 **Zero Config** - Works out of the box with sensible defaults\n\n## 📦 Installation\n\n```bash\nnpm install @10xscale/agentflow-client\n# or\nyarn add @10xscale/agentflow-client\n# or\npnpm add @10xscale/agentflow-client\n```\n\n### Version compatibility\n\nThis package versions independently of the Python packages, so the numbers do not line up. Pick\nversions by the table below rather than by matching version numbers:\n\n| `@10xscale/agentflow-client` (npm) | `10xscale-agentflow-cli` (API server) | `10xscale-agentflow` (core) |\n| ---------------------------------- | ------------------------------------- | --------------------------- |\n| 0.4.x                              | >= 0.5.0                              | >= 0.9.0                    |\n| 0.3.x                              | >= 0.5.0                              | >= 0.9.0                    |\n\nThe client version tracks the **API server** (`10xscale-agentflow-cli`), which is what it talks to;\nthe core version follows from whatever the server requires (the CLI pins\n`10xscale-agentflow>=0.9.0`). Client 0.3.x and later need server >= 0.5.0 specifically for\n`graphTools()` and `observability()`; the invoke, stream, thread, memory, and file endpoints work\nagainst older servers too. Client releases before 0.3.0 are not supported - upgrade rather than\npinning them.\n\n## 🚀 Quick Start\n\n### Basic Usage\n\n```typescript\nimport { AgentFlowClient, Message } from '@10xscale/agentflow-client';\n\n// Initialize client\nconst client = new AgentFlowClient({\n  baseUrl: 'http://localhost:8000',\n  authToken: 'your-token', // optional legacy Bearer auth\n  debug: true, // optional\n});\n\n// Send a message and get response\nconst result = await client.invoke([Message.text_message('Hello, how can you help me?', 'user')]);\n\nconsole.log(result.messages); // Array of response messages\n```\n\n### Authentication Options\n\n```typescript\nimport { AgentFlowClient, basicAuth, headerAuth } from '@10xscale/agentflow-client';\n\nconst bearerClient = new AgentFlowClient({\n  baseUrl: 'https://api.example.com',\n  authToken: process.env.AGENTFLOW_TOKEN,\n});\n\nconst basicClient = new AgentFlowClient({\n  baseUrl: 'https://api.example.com',\n  auth: basicAuth('service-user', 'service-password'),\n});\n\nconst apiKeyClient = new AgentFlowClient({\n  baseUrl: 'https://api.example.com',\n  auth: headerAuth('X-API-Key', process.env.AGENTFLOW_API_KEY!),\n});\n\nconst sessionClient = new AgentFlowClient({\n  baseUrl: 'https://api.example.com',\n  credentials: 'include',\n});\n```\n\n### Streaming Chat\n\n```typescript\n// Stream responses in real-time\nconst stream = client.stream([Message.text_message('Tell me a story', 'user')]);\n\nfor await (const chunk of stream) {\n  if (chunk.event === 'message') {\n    console.log(chunk.message?.content);\n  }\n}\n```\n\n## Realtime audio (`/v1/graph/live`)\n\nTransport-only: you stream PCM16 in and get PCM16 out. Mic capture and playback are yours to wire.\n\n```ts\nimport { AgentFlowClient } from '@10xscale/agentflow-client';\n\nconst client = new AgentFlowClient({ baseUrl: 'http://localhost:8000', authToken });\n\nconst session = client.realtime(\n  { model: 'gemini-2.5-flash-live', modalities: 'AUDIO' },\n  { reconnect: { maxAttempts: 5 } }\n);\n\nsession.on('audio', (pcm16, sampleRate) => playback(pcm16, sampleRate)); // PCM16 @ 24 kHz\nsession.on('output_transcript', (e) => console.log(e.text));\nsession.on('tool_call', (e) => console.log('tool', e.name, e.args));\nsession.on('error', (e) => console.error(e.message));\n\nawait session.ready; // socket open + init sent\nsession.sendAudio(micChunk); // PCM16 @ 16 kHz (Uint8Array | ArrayBuffer)\n// push-to-talk: session.activityStart() / session.activityEnd()\nsession.close(); // graceful end; disables reconnect\n```\n\nAuth uses the browser-safe `agentflow-bearer` subprotocol automatically. In Node < 21 (no global\n`WebSocket`), pass an implementation:\n\n```ts\nimport WebSocket from 'ws';\nconst client = new AgentFlowClient({ baseUrl, authToken, webSocketImpl: WebSocket });\n```\n\n### File Uploads And Access URLs\n\n```typescript\nconst upload = await client.uploadFile(file);\n\n// Best URL for rendering/downloading in the UI.\n// Cloud-backed deployments typically return a signed URL here.\nconst accessUrl = upload.data.direct_url ?? upload.data.url;\n\nconst fileInfo = await client.getFileInfo(upload.data.file_id);\nconst fileUrl = await client.getFileAccessUrl(upload.data.file_id);\n\nconst msg = Message.withFile('Summarize this document', upload.data.file_id, upload.data.mime_type);\n```\n\n### Tool Registration\n\n**⚠️ Important:** Remote tools (registered client-side) should **only** be used for browser-level APIs like `localStorage`, `navigator.geolocation`, etc. For most operations (database queries, external API calls, calculations), define your tools in the Python backend instead. See [How to register remote tools](https://agentflow.10xscale.ai/docs/how-to/client/register-remote-tools) for details.\n\n```typescript\n// Register custom tools for agent execution (ONLY for browser APIs)\nclient.registerTool({\n  node: 'assistant',\n  name: 'get_weather',\n  description: 'Get current weather for a location',\n  parameters: {\n    type: 'object',\n    properties: {\n      location: { type: 'string' },\n    },\n    required: ['location'],\n  },\n  handler: async ({ location }) => {\n    // Your tool logic here\n    return { temperature: 72, conditions: 'sunny' };\n  },\n});\n\n// Tools execute automatically during invoke\nconst result = await client.invoke([Message.text_message('What is the weather in NYC?', 'user')]);\n```\n\n`parameters` is a plain JSON Schema, and `properties` / `required` are both optional. A tool whose\narguments are all optional needs no `required`, and a tool that takes no arguments needs neither:\n\n```typescript\nclient.registerTool({\n  node: 'assistant',\n  name: 'read_terminal',\n  description: 'Read recent terminal output',\n  parameters: {\n    type: 'object',\n    properties: {\n      last_chars: { type: 'integer', description: 'Defaults to 2000' },\n    },\n  },\n  handler: async ({ last_chars = 2000 }) => readTerminal(last_chars),\n});\n\nclient.registerTool({\n  node: 'assistant',\n  name: 'read_diff',\n  description: 'Read the current diff',\n  parameters: { type: 'object' }, // or omit `parameters` entirely\n  handler: async () => getDiff(),\n});\n```\n\nThe missing keywords are filled in (`properties: {}`, `required: []`) when the tool definition is\nsent to the server, so the schema the model sees is always complete.\n\n## 📚 Documentation\n\nFull documentation lives at **[agentflow.10xscale.ai](https://agentflow.10xscale.ai/docs/get-started)**.\n\n### Getting Started\n\n- **[Connect a client](https://agentflow.10xscale.ai/docs/get-started/connect-client)** - Setup and first request\n- **[`AgentFlowClient` reference](https://agentflow.10xscale.ai/docs/reference/client/agentflow-client)** - Constructor config and every method\n- **[`Message` and content blocks](https://agentflow.10xscale.ai/docs/reference/client/message)** - The message and content-block types\n\n### Core Concepts\n\n- **[Invoke API](https://agentflow.10xscale.ai/docs/reference/client/invoke)** - Request/response pattern with tool execution\n- **[Stream API](https://agentflow.10xscale.ai/docs/reference/client/stream)** - Real-time streaming responses\n- **[Graph and state schema](https://agentflow.10xscale.ai/docs/reference/client/graph)** - `graphStateSchema()` and graph lifecycle\n- **[Tools reference](https://agentflow.10xscale.ai/docs/reference/client/tools)** - Tool registration and execution ⚠️ **Important: Remote vs Backend tools**\n\n### Reference\n\n- **[Reference overview](https://agentflow.10xscale.ai/docs/reference)** - Python library, REST/WebSocket API, CLI, and TypeScript client\n- **[Troubleshooting](https://agentflow.10xscale.ai/docs/troubleshooting/client)** - Common issues and solutions\n\n## 🎯 Key APIs\n\n### `invoke()` - Batch Processing\n\nExecute agent with automatic tool execution loop:\n\n```typescript\nconst result = await client.invoke(messages, {\n  recursion_limit: 25,\n  response_granularity: 'full',\n});\n```\n\n### `stream()` - Real-time Streaming\n\nStream responses as they're generated:\n\n```typescript\nconst stream = client.stream(messages);\nfor await (const chunk of stream) {\n  // Process chunks in real-time\n}\n```\n\n### `graphStateSchema()` - Dynamic Schema\n\nGet agent state schema for form generation and validation:\n\n```typescript\nconst schema = await client.graphStateSchema();\n// Build forms, validate data, generate types\n```\n\n### `graphTools()` - Tool Inventory\n\nList the tools the graph's tool nodes expose, grouped by node. Each tool is tagged with its\nsource (`local`, `mcp`, or `remote`):\n\n```typescript\nconst { data } = await client.graphTools();\n// data.nodes[].tools[] -> { name, description, source, parameters }\n```\n\n### `observability(threadId, runId?)` - Run Traces\n\nFetch the reconstructed trace for a run - spans, events, and cost. Defaults to the thread's\nlatest run:\n\n```typescript\nconst trace = await client.observability(threadId);\nconst specific = await client.observability(threadId, runId);\n```\n\n### Tool Registration\n\nRegister local tools that agents can execute:\n\n```typescript\nclient.registerTool({\n  node: 'node_name',\n  name: 'tool_name',\n  handler: async (args) => {\n    /* ... */\n  },\n});\n```\n\n## 💡 Examples\n\nCheck out the [`examples/`](examples/) directory for complete working examples:\n\n- **[invoke-example.ts](examples/invoke-example.ts)** - Basic invoke with tool execution\n- **[stream-example.ts](examples/stream-example.ts)** - Streaming responses\n- **[state-schema-examples.ts](examples/state-schema-examples.ts)** - Form generation and validation\n\n## 🏗️ Architecture\n\n```\n┌─────────────────────┐\n│   Your Application  │\n└──────────┬──────────┘\n           │\n           │ AgentFlowClient\n           ▼\n┌─────────────────────┐\n│  @10xscale/agentflow-client    │  ← This library\n│  - Client           │\n│  - Tools            │\n│  - Messages         │\n└──────────┬──────────┘\n           │\n           │ HTTP/HTTPS + WebSocket\n           ▼\n┌─────────────────────┐\n│  AgentFlow Server   │  ← Your backend\n│  (Multi-agent API)  │\n└─────────────────────┘\n```\n\n## 🔧 Configuration\n\n```typescript\nconst client = new AgentFlowClient({\n  baseUrl: string,           // Required: API base URL\n  authToken?: string,        // Optional: legacy Bearer token\n  auth?: AgentFlowAuth,      // Optional: basic/custom header auth\n  headers?: HeadersInit,     // Optional: extra headers for every request\n  credentials?: RequestCredentials, // Optional: cookie/session auth\n  timeout?: number,          // Optional: Request timeout (default: 5min)\n  debug?: boolean,           // Optional: Enable debug logging\n  webSocketImpl?: typeof WebSocket  // Node < 21 (pass the 'ws' package)\n});\n```\n\n## Module formats\n\nShips dual ESM + CJS with types. `import` resolves `dist/index.js` (ESM); `require` resolves\n`dist/index.cjs`. Tree-shakeable (`\"sideEffects\": false`).\n\n## 🧪 Testing\n\n```bash\n# Run all tests\nnpm test\n\n# Run tests once\nnpm run test:run\n\n# Build the library\nnpm run build\n```\n\n## 📝 TypeScript Support\n\nFull TypeScript support with comprehensive type definitions:\n\n```typescript\nimport type {\n  AgentFlowClient,\n  Message,\n  ToolRegistration,\n  InvokeResult,\n  StreamChunk,\n  AgentState,\n  AgentStateSchema,\n} from '@10xscale/agentflow-client';\n```\n\n## 🤝 Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feature/amazing-feature`)\n3. Commit your changes (`git commit -m 'Add amazing feature'`)\n4. Push to the branch (`git push origin feature/amazing-feature`)\n5. Open a Pull Request\n\n## 📄 License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## 🆘 Support\n\n- 📚 [Documentation](https://agentflow.10xscale.ai/docs/get-started)\n- 🐛 [Issue Tracker](https://github.com/10xHub/agentflow-client/issues)\n\n## 🙏 Acknowledgments\n\nBuilt for the **AgentFlow** multi-agent system framework.\n\n---\n\n**Made with ❤️ for the AgentFlow community**\n","readmeFilename":"README.md"}