{"_id":"@agent-bridge/client","_rev":"3-ca0b46964bfdd0d50fb89f4466e4892e","name":"@agent-bridge/client","dist-tags":{"latest":"0.1.2"},"versions":{"0.1.0":{"name":"@agent-bridge/client","version":"0.1.0","author":{"name":"Blazity"},"license":"MIT","_id":"@agent-bridge/client@0.1.0","maintainers":[{"name":"kc-blazity","email":"karol.chudzik@blazity.com"}],"dist":{"shasum":"b7aca176fd072921d53536385502d8bd1b146f1a","tarball":"https://registry.npmjs.org/@agent-bridge/client/-/client-0.1.0.tgz","fileCount":3,"integrity":"sha512-X5SXif+3g5MJ4YrAkk5mIKGaDR3tPa+LPfGRtwzrqSMlXooOTzRz8ch43fxpKx6EkM4QSKsBmVXJid1lo4f/5g==","signatures":[{"sig":"MEYCIQCjKtsm4i1eTNn6AJJuTfBtgAHmYsgn+bigZYkqm4mkMwIhAK1BmRtEYnV0IZdcPx8jzMPC9X7CYeoIcNhs9DTE2uPe","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":22600},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":"./dist/index.js"},"gitHead":"cba8a63447b919c911dd6de199ce2ce349e24b3d","scripts":{"build":"tsup"},"_npmUser":{"name":"kc-blazity","email":"karol.chudzik@blazity.com"},"_npmVersion":"10.8.2","description":"Client library for consuming services using the AgentBridge Protocol.","directories":{},"_nodeVersion":"20.19.1","dependencies":{"ai":"^4.1.66","zod":"^3.24.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.1","typescript":"^5.0.3","@types/node":"^20.10.4","@agent-bridge/core":"^0.1.0"},"@agent-bridge/core":"^0.1.0","_npmOperationalInternal":{"tmp":"tmp/client_0.1.0_1747069238832_0.6357297296496303","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@agent-bridge/client","version":"0.1.1","author":{"name":"Blazity"},"license":"MIT","_id":"@agent-bridge/client@0.1.1","maintainers":[{"name":"kc-blazity","email":"karol.chudzik@blazity.com"}],"dist":{"shasum":"b9357cff58fcef05a8ad4af23a705cb383d08a35","tarball":"https://registry.npmjs.org/@agent-bridge/client/-/client-0.1.1.tgz","fileCount":3,"integrity":"sha512-9wcy+MSjDSuVg8XbSY1o115UK5rz9Bbipa/2u0jYsN7Bu1Vwggu1lhaGi9ZS/IDjhc0s4bqviUmxtRhec9x02A==","signatures":[{"sig":"MEUCIQDk1g8wSKJwebQ/FB7i1L29bq3QVFcmB/s1qMNQCDniPQIgI4cOlaGNc+2N3AijW0MknbUY2/aGKULePf9PGCuuuHk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":22566},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":"./dist/index.js"},"gitHead":"b4b7b9e6cd039ea41aced2cf69d00487e8f498b9","scripts":{"build":"tsup"},"_npmUser":{"name":"kc-blazity","email":"karol.chudzik@blazity.com"},"_npmVersion":"10.8.2","description":"Client library for consuming services using the AgentBridge Protocol.","directories":{},"_nodeVersion":"20.19.1","dependencies":{"ai":"^4.1.66","zod":"^3.24.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.1","typescript":"^5.0.3","@types/node":"^20.10.4","@agent-bridge/core":"^0.1.0"},"_npmOperationalInternal":{"tmp":"tmp/client_0.1.1_1747069491754_0.9071746449667524","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@agent-bridge/client","version":"0.1.2","description":"Client library for consuming services using the AgentBridge Protocol.","author":{"name":"Blazity"},"license":"MIT","type":"module","exports":{".":"./dist/index.js"},"main":"./dist/index.js","types":"./dist/index.d.ts","publishConfig":{"access":"public"},"scripts":{"build":"tsup"},"dependencies":{"ai":"^4.1.66","zod":"^3.24.2"},"devDependencies":{"@agent-bridge/core":"^0.1.0","@types/node":"^20.10.4","tsup":"^8.0.1","typescript":"^5.0.3"},"_id":"@agent-bridge/client@0.1.2","gitHead":"b4b7b9e6cd039ea41aced2cf69d00487e8f498b9","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-NeW58tw0gyEDu4MvlNthRCzqrfRa8iMoV2cEkmRQLhi3R3hEO35fIF+IHEU2PDj8OXkEYw9vND5Tgaer735hhA==","shasum":"69822c29065a46535e9fcb5c0b30ad502851166e","tarball":"https://registry.npmjs.org/@agent-bridge/client/-/client-0.1.2.tgz","fileCount":4,"unpackedSize":26854,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIH88Z9JO+wOsIj2px6/HhBqHoz3aAr0DN0UdCJxWdSMUAiBsmEOwV2kR9+ddD5BJt68y7QyaHLSWWnMWJx8i5psktQ=="}]},"_npmUser":{"name":"kc-blazity","email":"karol.chudzik@blazity.com"},"directories":{},"maintainers":[{"name":"kc-blazity","email":"karol.chudzik@blazity.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/client_0.1.2_1747070007322_0.027308628368494015"},"_hasShrinkwrap":false}},"time":{"created":"2025-05-12T17:00:38.735Z","modified":"2025-05-12T17:13:28.536Z","0.1.0":"2025-05-12T17:00:38.982Z","0.1.1":"2025-05-12T17:04:51.923Z","0.1.2":"2025-05-12T17:13:28.336Z"},"author":{"name":"Blazity"},"license":"MIT","description":"Client library for consuming services using the AgentBridge Protocol.","maintainers":[{"name":"kc-blazity","email":"karol.chudzik@blazity.com"}],"readme":"# @agent-bridge/client\n\nA client library for interacting with APIs described by AgentBridge Protocol schemas.\n\n## Installation\n\n```bash\nnpm install @agent-bridge/client\n```\n\n## Usage\n\n### Loading a Schema\n\nYou can load a schema from either a local file or a remote URL:\n\n```typescript\nimport { readSchemaFromFile, fetchSchemaFromUrl } from \"@agent-bridge/client\";\n\n// From a local file\nconst localSchema = await readSchemaFromFile(\"./path/to/agentbridge.json\");\n\n// From a remote URL\nconst remoteSchema = await fetchSchemaFromUrl(\n  \"https://api.example.com/agentbridge.json\"\n);\n```\n\n### Creating a Client\n\n```typescript\nimport { AgentBridgeClient, LogLevel } from \"@agent-bridge/client\";\n\nconst client = new AgentBridgeClient(\n  schema,\n  { apiKey: \"your-api-key\" },\n  LogLevel.INFO\n);\n```\n\n### Usage with Vercel AI SDK\n\n```typescript\nimport { openai } from \"@ai-sdk/openai\";\nimport { generateText } from \"ai\";\n\n// ... code to initialize the client\n\nconst { messages } = await req.json();\n\nconst { text } = await generateText({\n  model: openai(\"gpt-4o\"),\n  messages,\n  tools: client.getTools(),\n});\n```\n\n## Logging\n\nThe client includes a configurable logging system:\n\n```typescript\n// Set log level during initialization\nconst client = new AgentBridgeClient(schema, credentials, LogLevel.DEBUG);\n\n// Or change it later\nclient.setLogLevel(LogLevel.TRACE);\n```\n\nAvailable log levels: `NONE`, `ERROR`, `WARN`, `INFO`, `DEBUG`, `TRACE`\n","readmeFilename":"README.md"}