neuronx-sdk
v0.1.0
Published
JavaScript/TypeScript SDK for NeuronX AI Platform — 19 free LLMs, 185K+ patterns, autonomous agents
Downloads
12
Maintainers
Readme
@neuronx/sdk
JavaScript/TypeScript SDK for the NeuronX AI Platform — 19 free LLMs, 185K+ code patterns, autonomous agents.
Install
npm install @neuronx/sdkQuick Start
import { NeuronX } from '@neuronx/sdk';
const nx = new NeuronX({ apiKey: 'nx-YOUR_KEY' });
// Chat with 19 free LLM providers
const response = await nx.chat('explain quicksort');
console.log(response.text);
// Generate code using 185K+ patterns
const code = await nx.codegen('REST API with JWT auth', { language: 'python' });
console.log(code.code);
// AI-powered search
const results = await nx.search('transformer attention');
console.log(results.summary);
// Code review (Guard)
const review = await nx.review('eval(user_input)');
console.log(review.issues);
// Autonomous agents
const task = await nx.agents.run('find security issues');
const result = await nx.agents.wait(task.taskId);
console.log(result.result);
// Knowledge Graph
const kg = await nx.kg.query('fastapi');
console.log(kg.results);License
MIT
