{"_id":"@autonia/providers","_rev":"4-c7a6d4dc1e0d0a79151708b002d7d14d","name":"@autonia/providers","dist-tags":{"latest":"0.1.25"},"versions":{"0.1.16":{"name":"@autonia/providers","version":"0.1.16","_id":"@autonia/providers@0.1.16","maintainers":[{"name":"7thpillar","email":"rashin@7thpillar.com"}],"dist":{"shasum":"86c0b7e4b731fe8e85d948eeb68e79b1172533a3","tarball":"https://registry.npmjs.org/@autonia/providers/-/providers-0.1.16.tgz","fileCount":7,"integrity":"sha512-zrpY10dlCDui+GaeP/fSWaI9dNbaRD4Wm8pEGzjoRwEnEQuHmaRk6ylAVn/ZoeAUg8cX3vb3Ee/TwEyVnwQv6w==","signatures":[{"sig":"MEYCIQD7PEn37nuiSaaFhccC5UE4T3RQkKBzU5pCTv/LbhqauwIhAJ4XsmlsnK/DeJ3RGV57IUZ9boi34XjfD9a83hW5EGGl","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":320758},"main":"dist/index.mjs","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"4c95d552a1df68d57b06ac3f564c0ffc753d0f7b","scripts":{"test":"tsx tests/index.ts","build":"rollup -c ../../rollup.config.js --configPlugin typescript","clean":"rimraf dist","develop":"ts-node-dev --watch --transpile-only src/index.ts"},"_npmUser":{"name":"7thpillar","email":"rashin@7thpillar.com"},"_npmVersion":"10.7.0","description":"Providers for AgentGraph","directories":{},"_nodeVersion":"18.20.3","dependencies":{"zod":"^4.0.14","uuid":"^11.1.0","dotenv":"^16.5.0","openai":"^4.103.0","babel-jest":"^30.0.0","@types/node":"^24.0.0","anthropic-ai":"^0.0.10","@autonia/tools":"0.1.16","@anthropic-ai/sdk":"^0.40.1","@babel/preset-env":"^7.27.2","@mistralai/mistralai":"^1.7.1"},"publishConfig":{"dependencies":{"@autonia/tools":"0.1.16"}},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.17.0","ts-node":"^10.9.1","typescript":"^5.3.2"},"_npmOperationalInternal":{"tmp":"tmp/providers_0.1.16_1756711068447_0.01683872744083459","host":"s3://npm-registry-packages-npm-production"}},"0.1.17":{"name":"@autonia/providers","version":"0.1.17","_id":"@autonia/providers@0.1.17","maintainers":[{"name":"7thpillar","email":"rashin@7thpillar.com"}],"dist":{"shasum":"5802ed0202ff2759b3dced4e5ee5b5a51986cdb2","tarball":"https://registry.npmjs.org/@autonia/providers/-/providers-0.1.17.tgz","fileCount":8,"integrity":"sha512-BwgVuIFIUut+f8PnZSb9RRCtGFQgZWRlY6x9vztnGZg15j5yQ5SMQH4NQM5aqzW05eHaMME3L/PAhdRtEpAOyQ==","signatures":[{"sig":"MEYCIQD38dFcTcl/dQ1HakKlhgw0Uzenb+zGOhj9fWhNmKWw6gIhAN8vbfN8bVdrnr4LM5/2SHQf/N7zP1yYTfho8KxoEzx0","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":321528},"main":"dist/index.mjs","_from":"file:autonia-providers-0.1.17.tgz","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"scripts":{"test":"tsx tests/index.ts","build":"rollup -c ../../rollup.config.js --configPlugin typescript","clean":"rimraf dist","develop":"ts-node-dev --watch --transpile-only src/index.ts"},"_npmUser":{"name":"7thpillar","email":"rashin@7thpillar.com"},"_resolved":"/private/var/folders/b1/b3jxw4ss6dz92vdpz4y48jt40000gn/T/8510911eac5eae9c29be4ef95be1cb23/autonia-providers-0.1.17.tgz","_integrity":"sha512-BwgVuIFIUut+f8PnZSb9RRCtGFQgZWRlY6x9vztnGZg15j5yQ5SMQH4NQM5aqzW05eHaMME3L/PAhdRtEpAOyQ==","_npmVersion":"10.7.0","description":"Providers for AgentGraph","directories":{},"_nodeVersion":"18.20.3","dependencies":{"zod":"^4.0.14","uuid":"^11.1.0","dotenv":"^16.5.0","openai":"^4.103.0","babel-jest":"^30.0.0","@types/node":"^24.0.0","anthropic-ai":"^0.0.10","@autonia/tools":"0.1.16","@anthropic-ai/sdk":"^0.40.1","@babel/preset-env":"^7.27.2","@mistralai/mistralai":"^1.7.1"},"publishConfig":{"dependencies":{"@autonia/tools":"0.1.16"}},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.17.0","ts-node":"^10.9.1","typescript":"^5.3.2"},"_npmOperationalInternal":{"tmp":"tmp/providers_0.1.17_1756724362681_0.24337939727692537","host":"s3://npm-registry-packages-npm-production"}},"0.1.18":{"name":"@autonia/providers","version":"0.1.18","_id":"@autonia/providers@0.1.18","maintainers":[{"name":"7thpillar","email":"rashin@7thpillar.com"}],"dist":{"shasum":"ad48d705a48ffd8a8adae912705676620dbcf521","tarball":"https://registry.npmjs.org/@autonia/providers/-/providers-0.1.18.tgz","fileCount":8,"integrity":"sha512-mzkGrrEv3IIwxw7VAtY+uk401r8nZqzLEImoBNXdQerXa7vWD1gWn7EgQcd+RoyEjM6f4pImteXB7h1LGqEVNw==","signatures":[{"sig":"MEUCIQCLYTBA9nF4T0yYL8tGlfL6p+gUYHvUCFYATu84wlm61AIgQTDirpLnMpO3eaGruDVcwDBHJTb1Yn6oveJQbCiasJs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":321558},"main":"dist/index.mjs","_from":"file:autonia-providers-0.1.18.tgz","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"scripts":{"test":"tsx tests/index.ts","build":"rollup -c ../../rollup.config.js --configPlugin typescript","clean":"rimraf dist","develop":"ts-node-dev --watch --transpile-only src/index.ts"},"_npmUser":{"name":"7thpillar","email":"rashin@7thpillar.com"},"_resolved":"/private/var/folders/b1/b3jxw4ss6dz92vdpz4y48jt40000gn/T/5d038f3fd9a30e02cd18337b917cae7d/autonia-providers-0.1.18.tgz","_integrity":"sha512-mzkGrrEv3IIwxw7VAtY+uk401r8nZqzLEImoBNXdQerXa7vWD1gWn7EgQcd+RoyEjM6f4pImteXB7h1LGqEVNw==","_npmVersion":"10.7.0","description":"Providers for AgentGraph","directories":{},"_nodeVersion":"18.20.3","dependencies":{"zod":"^4.0.14","uuid":"^11.1.0","dotenv":"^16.5.0","openai":"^4.103.0","babel-jest":"^30.0.0","@types/node":"^24.0.0","anthropic-ai":"^0.0.10","@autonia/tools":"0.1.16","@anthropic-ai/sdk":"^0.40.1","@babel/preset-env":"^7.27.2","@mistralai/mistralai":"^1.7.1"},"publishConfig":{"dependencies":{"@autonia/tools":"0.1.16"}},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.17.0","ts-node":"^10.9.1","typescript":"^5.3.2"},"_npmOperationalInternal":{"tmp":"tmp/providers_0.1.18_1756732095857_0.45095591756469355","host":"s3://npm-registry-packages-npm-production"}},"0.1.25":{"name":"@autonia/providers","version":"0.1.25","description":"Providers for AgentGraph","main":"dist/index.mjs","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"devDependencies":{"ts-node":"^10.9.1","tsx":"^4.17.0","typescript":"^5.3.2"},"dependencies":{"@autonia/tools":"0.1.16","@anthropic-ai/sdk":"^0.40.1","@babel/preset-env":"^7.27.2","@mistralai/mistralai":"^1.7.1","@types/node":"^24.0.0","anthropic-ai":"^0.0.10","babel-jest":"^30.0.0","dotenv":"^16.5.0","openai":"^4.103.0","uuid":"^11.1.0","zod":"^4.0.14"},"publishConfig":{"dependencies":{"@autonia/tools":"0.1.25"}},"scripts":{"develop":"ts-node-dev --watch --transpile-only src/index.ts","build":"rollup -c ../../rollup.config.js --configPlugin typescript","clean":"rimraf dist","test":"tsx tests/index.ts"},"_id":"@autonia/providers@0.1.25","_integrity":"sha512-vN7zFNr+bvyI0x7eus3o02heNY1eXoGxha3BlDAgUbfp7eOEJsKDjUNMugsHmtA4vFEQbekG0i+gFweXB2NGrg==","_resolved":"/private/var/folders/b1/b3jxw4ss6dz92vdpz4y48jt40000gn/T/5b36ce0ed384ef23048a56ef094d7e72/autonia-providers-0.1.25.tgz","_from":"file:autonia-providers-0.1.25.tgz","_nodeVersion":"18.20.3","_npmVersion":"10.7.0","dist":{"integrity":"sha512-vN7zFNr+bvyI0x7eus3o02heNY1eXoGxha3BlDAgUbfp7eOEJsKDjUNMugsHmtA4vFEQbekG0i+gFweXB2NGrg==","shasum":"266b77bbe7e8c361ffcb35374f6f1e4496b1785d","tarball":"https://registry.npmjs.org/@autonia/providers/-/providers-0.1.25.tgz","fileCount":8,"unpackedSize":321558,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIEcBbIHJvk7XEAAynBP+TccQjeZoS7rDJnQGcWi2OLpmAiAF5Pnl1Tz8h+OGmQ6vK5UrXeEiwC2IfDMjS7aodTz7Kw=="}]},"_npmUser":{"name":"7thpillar","email":"rashin@7thpillar.com"},"directories":{},"maintainers":[{"name":"7thpillar","email":"rashin@7thpillar.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/providers_0.1.25_1756965729140_0.36785868220073636"},"_hasShrinkwrap":false}},"time":{"created":"2025-09-01T07:17:48.366Z","modified":"2025-09-04T06:02:09.523Z","0.1.16":"2025-09-01T07:17:48.633Z","0.1.17":"2025-09-01T10:59:22.910Z","0.1.18":"2025-09-01T13:08:16.062Z","0.1.25":"2025-09-04T06:02:09.345Z"},"description":"Providers for AgentGraph","maintainers":[{"name":"7thpillar","email":"rashin@7thpillar.com"}],"readme":"### Section:1 AGX Data format\n\nThe following are the data structure of how responses will be stored by AGX Agent Framework\n\n**Text Responses**\n\n```json\n{\n  \"messages\": [\n    {\n      \"msg_id\": \"550e8400-e29b-41d4-a716-446655440000\",\n      \"role\": \"assistant\",\n      \"content\": [{ \"type\": \"text\", \"text\": \"Hello! How can I help you today?\" }]\n    }\n  ],\n  \"usage\": {\n    \"input_tokens\": 492,\n    \"cache_creation_input_tokens\": 0,\n    \"cache_read_input_tokens\": 0,\n    \"output_tokens\": 52,\n    \"reasoning_output_tokens\": 0,\n    \"service_tier\": \"standard\"\n  },\n  \"request_params\": {\n    \"model\": \"gpt-4o\",\n    \"temperature\": 0.7,\n    \"max_output_tokens\": 150\n  },\n  \"response_object\": {\n    \"id\": \"resp_67ccd2bed1ec8190b14f964abc0542670bb6a6b452d3795b\",\n    \"object\": \"response\",\n    \"created_at\": 1741476542,\n    \"status\": \"completed\"\n  }\n}\n```\n\n**JSON format / Structured Responses**\n\n```json\n{\n  \"messages\": [\n    {\n      \"msg_id\": \"550e8400-e29b-41d4-a716-446655440000\",\n      \"role\": \"assistant\",\n      \"content\": [\n        {\n          \"type\": \"json\",\n          \"text\": \"{\\\"joke\\\":\\\"Why don't scientists trust atoms? Because they make up everything!\\\"}\"\n        }\n      ]\n    }\n  ],\n  \"usage\": {\n    \"input_tokens\": 78,\n    \"cache_creation_input_tokens\": 0,\n    \"cache_read_input_tokens\": 0,\n    \"output_tokens\": 23,\n    \"reasoning_output_tokens\": 0,\n    \"service_tier\": \"standard\"\n  },\n  \"request_params\": {\n    \"model\": \"gpt-4o\",\n    \"text\": {\n      \"format\": {\n        \"type\": \"json_schema\",\n        \"name\": \"schema\",\n        \"strict\": true,\n        \"schema\": {\n          \"type\": \"object\",\n          \"properties\": {\n            \"joke\": { \"type\": \"string\" }\n          },\n          \"required\": [\"joke\"],\n          \"additionalProperties\": false\n        }\n      }\n    }\n  }\n}\n```\n\n**Image Responses**\n\n```json\n{\n  \"messages\": [\n    {\n      \"msg_id\": \"550e8400-e29b-41d4-a716-446655440000\",\n      \"role\": \"assistant\",\n      \"content\": [\n        {\n          \"type\": \"image\",\n          \"image_url\": \"data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8/5+hHgAHggJ/PchI7wAAAABJRU5ErkJggg==\"\n        }\n      ]\n    }\n  ],\n  \"usage\": {\n    \"input_tokens\": 120,\n    \"cache_creation_input_tokens\": 0,\n    \"cache_read_input_tokens\": 0,\n    \"output_tokens\": 0,\n    \"reasoning_output_tokens\": 0,\n    \"service_tier\": \"standard\"\n  }\n}\n```\n\n**Vision Responses (Image Analysis)**\n\n```json\n{\n  \"messages\": [\n    {\n      \"msg_id\": \"550e8400-e29b-41d4-a716-446655440000\",\n      \"role\": \"assistant\",\n      \"content\": [\n        {\n          \"type\": \"text\",\n          \"text\": \"This image shows a fast food receipt from a restaurant. The receipt includes items like tea and pizza with a total of $483.00.\"\n        }\n      ]\n    }\n  ],\n  \"usage\": {\n    \"input_tokens\": 437,\n    \"cache_creation_input_tokens\": 0,\n    \"cache_read_input_tokens\": 0,\n    \"output_tokens\": 150,\n    \"reasoning_output_tokens\": 0,\n    \"service_tier\": \"standard\"\n  }\n}\n```\n\n**Audio Transcription Responses**\n\n```json\n{\n  \"role\": \"user\",\n  \"content\": [\n    {\n      \"type\": \"text\",\n      \"text\": \"Hello, this is the transcribed content from the audio file.\"\n    }\n  ]\n}\n```\n\n**Tool Call Responses**\n\n```json\n{\n  \"messages\": [\n    {\n      \"msg_id\": \"550e8400-e29b-41d4-a716-446655440000\",\n      \"role\": \"assistant\",\n      \"content\": [\n        {\n          \"type\": \"tool_call\",\n          \"name\": \"route\",\n          \"call_id\": \"call_Wsc6HYmzz7tBq0UAWojI39cR\",\n          \"arguments\": \"{\\\"next\\\":[\\\"receipt_uploader\\\"],\\\"instructions\\\":\\\"Process the uploaded receipt\\\",\\\"message_to_human\\\":\\\"Processing your receipt...\\\"}\"\n        }\n      ]\n    }\n  ],\n  \"usage\": {\n    \"input_tokens\": 492,\n    \"cache_creation_input_tokens\": 0,\n    \"cache_read_input_tokens\": 0,\n    \"output_tokens\": 52,\n    \"reasoning_output_tokens\": 0,\n    \"service_tier\": \"standard\"\n  }\n}\n```\n\n**Streaming Response Format**\n\nStreaming responses include additional metadata for real-time processing:\n\n```json\n{\n  \"eventName\": \"stream.text.delta\",\n  \"indexes\": {\n    \"outputIndex\": 0,\n    \"contentIndex\": 0\n  },\n  \"response\": {\n    \"messages\": [\n      {\n        \"msg_id\": \"550e8400-e29b-41d4-a716-446655440000\",\n        \"role\": \"assistant\",\n        \"content\": [{ \"type\": \"text\", \"text\": \"Hello\" }]\n      }\n    ]\n  }\n}\n```\n\n### Section 2: AGX Request Parameters to Providers (OpenAI, Claude)\n\nThese are parameters that are provided as input to the Provider Class (OpenAI, Claude), which should be converted to request format accepted by the provider.\n\n**Text Completion Request**\n\n```json\n{\n  \"type\": \"text\",\n  \"messages\": [\n    {\n      \"role\": \"user\",\n      \"content\": [{ \"type\": \"text\", \"text\": \"Hello, how are you?\" }]\n    },\n    {\n      \"role\": \"assistant\",\n      \"content\": [{ \"type\": \"text\", \"text\": \"I'm doing well, thank you!\" }]\n    }\n  ],\n  \"model\": \"gpt-4o\",\n  \"temperature\": 0.7,\n  \"maxTokens\": 150,\n  \"stream\": false\n}\n```\n\n**Vision Request (Image Analysis)**\n\n```json\n{\n  \"type\": \"vision\",\n  \"messages\": [\n    {\n      \"role\": \"user\",\n      \"content\": [{ \"type\": \"text\", \"text\": \"What do you see in this image?\" }]\n    }\n  ],\n  \"files\": [\n    {\n      \"url\": \"https://example.com/image.jpg\",\n      \"base64\": \"iVBORw0KGgoAAAANSUhEUgAAAAEAAAAB...\",\n      \"originalname\": \"receipt.jpg\",\n      \"mimetype\": \"image/jpeg\"\n    }\n  ],\n  \"model\": \"gpt-4o\"\n}\n```\n\n**Structured Output Request**\n\n```json\n{\n  \"type\": \"json\",\n  \"schema\": {\n    \"type\": \"object\",\n    \"properties\": {\n      \"joke\": { \"type\": \"string\" },\n      \"category\": { \"type\": \"string\" }\n    },\n    \"required\": [\"joke\", \"category\"],\n    \"additionalProperties\": false\n  },\n  \"messages\": [\n    {\n      \"role\": \"user\",\n      \"content\": [{ \"type\": \"text\", \"text\": \"Tell me a programming joke\" }]\n    }\n  ],\n  \"model\": \"gpt-4o\"\n}\n```\n\n**Tool/Function Calling Request**\n\n```json\n{\n  \"type\": \"text\",\n  \"messages\": [\n    {\n      \"role\": \"user\",\n      \"content\": [{ \"type\": \"text\", \"text\": \"Route this expense receipt to the appropriate processor\" }]\n    }\n  ],\n  \"tools\": [\n    {\n      \"type\": \"function\",\n      \"name\": \"route\",\n      \"description\": \"Route tasks to appropriate agents\",\n      \"parameters\": {\n        \"type\": \"object\",\n        \"properties\": {\n          \"next\": {\n            \"type\": \"array\",\n            \"items\": { \"type\": \"string\" },\n            \"description\": \"Next agents to process\"\n          },\n          \"instructions\": {\n            \"type\": \"string\",\n            \"description\": \"Instructions for the agents\"\n          }\n        },\n        \"required\": [\"next\", \"instructions\"]\n      }\n    }\n  ],\n  \"model\": \"gpt-4o\"\n}\n```\n\n**Embedding Request**\n\n```json\n{\n  \"input\": \"Text to generate embeddings for\",\n  \"model\": \"text-embedding-3-small\",\n  \"encoding_format\": \"float\"\n}\n```\n\n**Audio Transcription Request**\n\n```json\n{\n  \"file\": {\n    \"buffer\": \"<audio_buffer>\",\n    \"originalname\": \"recording.mp3\",\n    \"mimetype\": \"audio/mpeg\"\n  },\n  \"model\": \"whisper-1\",\n  \"language\": \"en\",\n  \"response_format\": \"json\",\n  \"temperature\": 0\n}\n```\n\n**Streaming Request**\n\n```json\n{\n  \"type\": \"text\",\n  \"messages\": [\n    {\n      \"role\": \"user\",\n      \"content\": [{ \"type\": \"text\", \"text\": \"Write a short story\" }]\n    }\n  ],\n  \"stream\": true,\n  \"streamCallback\": \"function(chunk) { console.log(chunk); }\",\n  \"model\": \"gpt-4o\"\n}\n```\n","readmeFilename":"Readme.md"}