{"_id":"@agenite-examples/bedrock","_rev":"6-7157a30f48713a2ab4f3daede3325f4f","name":"@agenite-examples/bedrock","dist-tags":{"alpha":"1.1.0-alpha.0","latest":"1.2.0"},"versions":{"1.0.3":{"name":"@agenite-examples/bedrock","version":"1.0.3","keywords":[],"author":"","license":"ISC","_id":"@agenite-examples/bedrock@1.0.3","maintainers":[{"name":"subeshb1","email":"subeshb1@gmail.com"}],"dist":{"shasum":"06d5e7ba09eb345f02c829b0385c56df68998be2","tarball":"https://registry.npmjs.org/@agenite-examples/bedrock/-/bedrock-1.0.3.tgz","fileCount":6,"integrity":"sha512-ZhK3OztO6u7YuOXAK9tkQ0EbNCLUXdyg0QQ6uQymX4WnctCGa/kMoVF3EthW6BX2yKDcqR+hwkCKzVS3ry6lxQ==","signatures":[{"sig":"MEQCIFL0kiCsM2yUv/POGya+jSrVXbthkNEiUEUXA+xM1JFFAiBCgJpw4e7cbcKwyBXctf8Z1KXfzPUQHYhYVrhXiwj5GQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4380},"main":"src/index.ts","type":"module","_from":"file:agenite-examples-bedrock-1.0.3.tgz","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"subeshb1","email":"subeshb1@gmail.com"},"_resolved":"/private/var/folders/6t/00njv37d2bn4hm5pmsq993zr0000gp/T/dfdfe0ef1f7f6db85235a43719f45798/agenite-examples-bedrock-1.0.3.tgz","_integrity":"sha512-ZhK3OztO6u7YuOXAK9tkQ0EbNCLUXdyg0QQ6uQymX4WnctCGa/kMoVF3EthW6BX2yKDcqR+hwkCKzVS3ry6lxQ==","_npmVersion":"11.1.0","description":"","directories":{},"_nodeVersion":"22.13.0","dependencies":{"chalk":"^4.1.2","@agenite/agent":"0.3.0","@agenite/ollama":"0.3.0","@agenite/bedrock":"0.3.1","@agenite-examples/llm-provider":"1.0.3"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.3","@types/node":"^22.13.5","@repo/tsup-config":"0.0.3","@repo/eslint-config":"0.0.4","@repo/typescript-config":"0.0.1"},"_npmOperationalInternal":{"tmp":"tmp/bedrock_1.0.3_1740495207946_0.5890804926863116","host":"s3://npm-registry-packages-npm-production"}},"1.1.0-alpha.0":{"name":"@agenite-examples/bedrock","version":"1.1.0-alpha.0","keywords":[],"author":"","license":"ISC","_id":"@agenite-examples/bedrock@1.1.0-alpha.0","maintainers":[{"name":"subeshb1","email":"subeshb1@gmail.com"}],"dist":{"shasum":"978f9599a798443ecc5dd3d70d565a3e439dce98","tarball":"https://registry.npmjs.org/@agenite-examples/bedrock/-/bedrock-1.1.0-alpha.0.tgz","fileCount":15,"integrity":"sha512-x7gZQU+kUPRbhbaL2RIlLrGQP2AuffOtvkiFDvfW+cDL7vRmoTc8XYpuk2Ey+7d7XNWOzaYLOvUhxQkU5Uo8vA==","signatures":[{"sig":"MEQCIA1OMLqUswaqZshNaSlTgnlxodRbM7EUrbv7SniXMnIOAiAdTTixZrd0EDOG+/5Mb8ftiMtS7jYLQWLAZuUuBVniLQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10600},"main":"src/index.ts","type":"module","_from":"file:agenite-examples-bedrock-1.1.0-alpha.0.tgz","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"tsup"},"_npmUser":{"name":"subeshb1","email":"subeshb1@gmail.com"},"_resolved":"/private/var/folders/6t/00njv37d2bn4hm5pmsq993zr0000gp/T/9a6bdc671003ae3728cf3a2aec6d7ba1/agenite-examples-bedrock-1.1.0-alpha.0.tgz","_integrity":"sha512-x7gZQU+kUPRbhbaL2RIlLrGQP2AuffOtvkiFDvfW+cDL7vRmoTc8XYpuk2Ey+7d7XNWOzaYLOvUhxQkU5Uo8vA==","_npmVersion":"11.1.0","description":"This example demonstrates how to use Amazon Bedrock with Agenite to create AI agents that can process user inputs and generate responses using different models (Deepseek and Claude).","directories":{},"_nodeVersion":"22.13.0","dependencies":{"chalk":"^4.1.2","@agenite/agent":"0.4.0-alpha.0","@agenite/ollama":"0.4.0-alpha.0","@agenite/bedrock":"0.4.0-alpha.0","@agenite/pretty-logger":"0.1.0-alpha.0","@agenite-examples/llm-provider":"1.1.0-alpha.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"tsx":"^4.19.3","tsup":"^8.4.0","@types/node":"^22.13.10","@repo/tsup-config":"0.0.3","@repo/eslint-config":"0.1.0-alpha.0","@repo/typescript-config":"0.1.0-alpha.0"},"_npmOperationalInternal":{"tmp":"tmp/bedrock_1.1.0-alpha.0_1742659699025_0.549193626748431","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@agenite-examples/bedrock","version":"1.1.0","keywords":[],"author":"","license":"ISC","_id":"@agenite-examples/bedrock@1.1.0","maintainers":[{"name":"subeshb1","email":"subeshb1@gmail.com"}],"dist":{"shasum":"13e088ea1041b712f62b27123780ebee609562f2","tarball":"https://registry.npmjs.org/@agenite-examples/bedrock/-/bedrock-1.1.0.tgz","fileCount":15,"integrity":"sha512-fHeyF5IvoVK19vOKGYtKUE8Kfe+jRM8pHrtX0RAIDfdVfw7rPY6kxmjGQaabO+dWdfyaWYZqzjthtxze+JbIWg==","signatures":[{"sig":"MEQCIAISoHDbxPcVDw2Axj7blvRgxD4ZKckdkDxRkuMFW65qAiA3MdwimMPtlOIZ4d/hEKpJ/CudJ4RZi+SmC9MV2cnRDg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10905},"main":"src/index.ts","type":"module","_from":"file:agenite-examples-bedrock-1.1.0.tgz","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"tsup"},"_npmUser":{"name":"subeshb1","email":"subeshb1@gmail.com"},"_resolved":"/private/var/folders/6t/00njv37d2bn4hm5pmsq993zr0000gp/T/10d83f0d83de358c8a0a947bd81f12a1/agenite-examples-bedrock-1.1.0.tgz","_integrity":"sha512-fHeyF5IvoVK19vOKGYtKUE8Kfe+jRM8pHrtX0RAIDfdVfw7rPY6kxmjGQaabO+dWdfyaWYZqzjthtxze+JbIWg==","_npmVersion":"11.1.0","description":"This example demonstrates how to use Amazon Bedrock with Agenite to create AI agents that can process user inputs and generate responses using different models (Deepseek and Claude).","directories":{},"_nodeVersion":"22.13.0","dependencies":{"chalk":"^4.1.2","@agenite/agent":"0.4.0","@agenite/ollama":"0.4.0","@agenite/bedrock":"0.4.0","@agenite/pretty-logger":"0.1.0","@agenite-examples/llm-provider":"1.1.0"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.3","tsup":"^8.4.0","@types/node":"^22.13.10","@repo/tsup-config":"0.0.3","@repo/eslint-config":"0.1.0","@repo/typescript-config":"0.1.0"},"_npmOperationalInternal":{"tmp":"tmp/bedrock_1.1.0_1742660019016_0.05206072478271917","host":"s3://npm-registry-packages-npm-production"}},"1.1.1":{"name":"@agenite-examples/bedrock","version":"1.1.1","keywords":[],"author":"","license":"ISC","_id":"@agenite-examples/bedrock@1.1.1","maintainers":[{"name":"subeshb1","email":"subeshb1@gmail.com"}],"dist":{"shasum":"b6c4163ee485f43d51a2cb1883cb08dc67841835","tarball":"https://registry.npmjs.org/@agenite-examples/bedrock/-/bedrock-1.1.1.tgz","fileCount":15,"integrity":"sha512-MW9q1fYOgiCVdpKY27pkQRshb1w4r/wW7s6myxpN5yQiEQomogHS+Y+jt9oj1mDfIgFodE7BG9y+taV97hNzZA==","signatures":[{"sig":"MEQCIEXg3PAwqLA1BQdRK+uQqa71Ij5ESo/E2f/ppm564A0iAiAPNZy3tMcFBMYadyQFuqeFh09WZjEq4H1sqQRvXsaiBQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":11025},"main":"src/index.ts","type":"module","_from":"file:agenite-examples-bedrock-1.1.1.tgz","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"tsup"},"_npmUser":{"name":"subeshb1","email":"subeshb1@gmail.com"},"_resolved":"/private/var/folders/6t/00njv37d2bn4hm5pmsq993zr0000gp/T/7755f1adc33fd33dec185a9d70b302e3/agenite-examples-bedrock-1.1.1.tgz","_integrity":"sha512-MW9q1fYOgiCVdpKY27pkQRshb1w4r/wW7s6myxpN5yQiEQomogHS+Y+jt9oj1mDfIgFodE7BG9y+taV97hNzZA==","_npmVersion":"11.1.0","description":"This example demonstrates how to use Amazon Bedrock with Agenite to create AI agents that can process user inputs and generate responses using different models (Deepseek and Claude).","directories":{},"_nodeVersion":"22.13.0","dependencies":{"chalk":"^4.1.2","@agenite/agent":"0.4.1","@agenite/ollama":"0.4.0","@agenite/bedrock":"0.4.0","@agenite/pretty-logger":"0.1.1","@agenite-examples/llm-provider":"1.1.0"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.3","tsup":"^8.4.0","@types/node":"^22.13.11","@repo/tsup-config":"0.0.3","@repo/eslint-config":"0.1.0","@repo/typescript-config":"0.1.0"},"_npmOperationalInternal":{"tmp":"tmp/bedrock_1.1.1_1742744096704_0.8972139162887298","host":"s3://npm-registry-packages-npm-production"}},"1.1.2":{"name":"@agenite-examples/bedrock","version":"1.1.2","keywords":[],"author":"","license":"ISC","_id":"@agenite-examples/bedrock@1.1.2","maintainers":[{"name":"subeshb1","email":"subeshb1@gmail.com"}],"dist":{"shasum":"b894c44d91ede86129acb80084ebd8d331d8302e","tarball":"https://registry.npmjs.org/@agenite-examples/bedrock/-/bedrock-1.1.2.tgz","fileCount":15,"integrity":"sha512-hI1xd3m2eMMGuLy+4uPo+EUT4Ycu1B/RccA8me+1rhmV6P3z/93GufOuQwgcp+QMqH2hlNwJPQCq/hBX0n9rTg==","signatures":[{"sig":"MEQCICyiExSa4oLcXDEORmOjxY5YHSgDGf57IC1tMBHE5DlXAiBQTjfWgM8AKFOT+sT6XKx1KaAz9xkcB84tJ7fjoriHPA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":11109},"main":"src/index.ts","type":"module","_from":"file:agenite-examples-bedrock-1.1.2.tgz","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"tsup"},"_npmUser":{"name":"subeshb1","email":"subeshb1@gmail.com"},"_resolved":"/private/var/folders/6t/00njv37d2bn4hm5pmsq993zr0000gp/T/19f94680319524307c2d886da7ae9040/agenite-examples-bedrock-1.1.2.tgz","_integrity":"sha512-hI1xd3m2eMMGuLy+4uPo+EUT4Ycu1B/RccA8me+1rhmV6P3z/93GufOuQwgcp+QMqH2hlNwJPQCq/hBX0n9rTg==","_npmVersion":"11.1.0","description":"This example demonstrates how to use Amazon Bedrock with Agenite to create AI agents that can process user inputs and generate responses using different models (Deepseek and Claude).","directories":{},"_nodeVersion":"22.13.0","dependencies":{"chalk":"^4.1.2","@agenite/agent":"0.4.2","@agenite/ollama":"0.4.0","@agenite/bedrock":"0.4.0","@agenite/pretty-logger":"0.1.2","@agenite-examples/llm-provider":"1.1.0"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.3","tsup":"^8.4.0","@types/node":"^22.13.11","@repo/tsup-config":"0.0.3","@repo/eslint-config":"0.1.0","@repo/typescript-config":"0.1.0"},"_npmOperationalInternal":{"tmp":"tmp/bedrock_1.1.2_1743267776260_0.5873037693270828","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"name":"@agenite-examples/bedrock","version":"1.2.0","main":"src/index.ts","type":"module","keywords":[],"author":"","license":"ISC","description":"This example demonstrates how to use Amazon Bedrock with Agenite to create AI agents that can process user inputs and generate responses using different models (Deepseek and Claude).","dependencies":{"chalk":"^4.1.2","@agenite/bedrock":"0.5.0","@agenite-examples/llm-provider":"1.2.0","@agenite/ollama":"0.5.0","@agenite/pretty-logger":"0.2.0","@agenite/agent":"0.5.0"},"devDependencies":{"@types/node":"^22.14.0","tsup":"^8.4.0","tsx":"^4.19.3","@repo/eslint-config":"0.2.0","@repo/tsup-config":"0.1.0","@repo/typescript-config":"0.1.0"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"tsup"},"_id":"@agenite-examples/bedrock@1.2.0","_integrity":"sha512-dJgajaCXLTIklWOTYqyP5yefwFQ+EpQAkydrjfE+U48uiZ5BsGJVfHHSroBM0SaZqwCAqk3bDeBbH4piOngUNg==","_resolved":"/private/var/folders/6t/00njv37d2bn4hm5pmsq993zr0000gp/T/73f80fb3ede62572341664b39bae8fff/agenite-examples-bedrock-1.2.0.tgz","_from":"file:agenite-examples-bedrock-1.2.0.tgz","_nodeVersion":"22.13.0","_npmVersion":"11.1.0","dist":{"integrity":"sha512-dJgajaCXLTIklWOTYqyP5yefwFQ+EpQAkydrjfE+U48uiZ5BsGJVfHHSroBM0SaZqwCAqk3bDeBbH4piOngUNg==","shasum":"97a4cc7c5c3b67ad550065691380294395d8012c","tarball":"https://registry.npmjs.org/@agenite-examples/bedrock/-/bedrock-1.2.0.tgz","fileCount":15,"unpackedSize":11408,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQD0cUDTrKjHKMrRURC6oHyV2qkYJRXW/+9TyDIo4nlVpgIhAJjjUOo0HEug4clmY5+CTAgNXfI7KDUWV0lx+9lr6YUG"}]},"_npmUser":{"name":"subeshb1","email":"subeshb1@gmail.com"},"directories":{},"maintainers":[{"name":"subeshb1","email":"subeshb1@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/bedrock_1.2.0_1744352038906_0.6579561685652098"},"_hasShrinkwrap":false}},"time":{"created":"2025-02-25T14:53:27.842Z","modified":"2025-04-11T06:13:59.267Z","1.0.3":"2025-02-25T14:53:28.124Z","1.1.0-alpha.0":"2025-03-22T16:08:19.203Z","1.1.0":"2025-03-22T16:13:39.199Z","1.1.1":"2025-03-23T15:34:56.890Z","1.1.2":"2025-03-29T17:02:56.504Z","1.2.0":"2025-04-11T06:13:59.072Z"},"license":"ISC","keywords":[],"description":"This example demonstrates how to use Amazon Bedrock with Agenite to create AI agents that can process user inputs and generate responses using different models (Deepseek and Claude).","maintainers":[{"name":"subeshb1","email":"subeshb1@gmail.com"}],"readme":"# Bedrock Example\n\nThis example demonstrates how to use Amazon Bedrock with Agenite to create AI agents that can process user inputs and generate responses using different models (Deepseek and Claude).\n\n## Prerequisites\n\n1. AWS Account with access to Amazon Bedrock\n2. AWS credentials configured locally with appropriate permissions\n3. Node.js installed on your system\n\n## Setup\n\n1. Install dependencies:\n```bash\npnpm install\n```\n\n2. Configure AWS Credentials:\nMake sure you have your AWS credentials configured either through:\n- AWS CLI (`aws configure`)\n- Environment variables\n- AWS credentials file\n\n## Running the Examples\n\nThe examples include simple demonstrations using different Bedrock models to answer questions.\n\n### Deepseek Example\n```bash\ntsx src/deepseek-r1/agent.ts\n```\n\n### Claude Sonnet Example\n```bash\ntsx src/claude-sonnet-3.7/agent.ts\n```\n\nBoth examples will:\n1. Initialize an AI agent using the Bedrock provider\n2. Process a sample question about counting letters in \"strawberry\"\n3. Display the agent's reasoning and answer\n4. Show any tool results used during the process\n\n## Configuration\n\n### Deepseek Configuration\n- Model: `us.deepseek.r1-v1:0`\n- Region: `us-west-2`\n- File: `src/deepseek-r1/agent.ts`\n\n### Claude Sonnet Configuration\n- Model: `us.anthropic.claude-3-7-sonnet-20250219-v1:0`\n- Region: `us-east-2`\n- Additional settings:\n  - `enableReasoning: true`\n  - `reasoningBudgetTokens: 4000`\n- File: `src/claude-sonnet-3.7/agent.ts`\n\nYou can modify these settings in their respective files if needed.\n\n## Output Format\n\nBoth examples will display:\n1. User Input (in blue)\n2. Thinking/Reasoning Process (in yellow)\n3. Assistant's Response (in green)\n4. Tool Usage (in cyan, if any)\n5. Tool Results (in blue, if any)\n6. Completion message\n\n## Note\n\nMake sure you have the necessary AWS permissions to access Amazon Bedrock and the specific models being used in the examples. Different models may require different permissions in your AWS Bedrock setup. \n","readmeFilename":"README.md"}