@proximuslabs/platform
v0.1.0-alpha.7
Published
PROXIMUS platform API client for chat, agents and security testing
Readme
PROXIMUS platform SDK
Connect your application to PROXIMUS chat, agents, security reviews, Blackout, Meltdown and Xray with one client. Create an API key in your PROXIMUS dashboard and enable the scopes required by your integration.
Install
npm install @proximuslabs/[email protected]Get started
import { Proximus } from "@proximuslabs/platform";
const client = new Proximus({ apiKey: process.env.PROXIMUS_API_KEY! });
const result = await client.chat.complete({
idempotency_key: crypto.randomUUID(),
body: { model: "proxy-1", messages: [{ role: "user", content: "Reply READY" }] },
});
console.log(result.choices[0].message.content);The default API URL is https://api.proximus.sh. Your key selects the workspace and Sandbox or Production environment. Keep the key on your backend and authenticate requests from your application's users.
Requests and errors
Use a stable idempotency key when retrying the same operation with the same input. Requests do not retry automatically. Check the returned outcome before starting dependent work. A task may need input or fail even after it stops running.
Use the request timeout and cancellation options for your runtime. Cancelling a request does not cancel a server task, call the task cancellation method when needed.
Documentation
Contributing
Examples, documentation improvements and bug reports are welcome. Include the client version, language and a minimal reproducible example. Remove API keys and private customer data before sharing.
License
Apache-2.0. Copyright PROXIMUS Research Labs Foundation.
