@basegrid-io/react-native
v0.1.1
Published
Official React Native SDK for BaseGrid - AI Agent Memory
Maintainers
Readme
BaseGrid React Native SDK
Official React Native SDK for BaseGrid - The AI Agent Memory Platform.
Installation
npm install @basegrid-io/react-native axios
# or
yarn add @basegrid-io/react-native axiosQuick Start
import { BaseGrid } from '@basegrid-io/react-native';
// Initialize
const client = new BaseGrid({
apiKey: 'YOUR_API_KEY'
});
// Add a memory
await client.add({
agentId: 'my-agent-1',
content: 'User prefers dark mode.'
});
// Search memories
const results = await client.search({
agentId: 'my-agent-1',
query: 'What theme does the user like?'
});
console.log(results);
// Output: [{ content: 'User prefers dark mode.', score: 0.92, ... }]API Reference
add(params)
Adds a new memory to an agent.
agentId: string - The ID of your AI agentcontent: string - The text content to remembermetadata: object - Optional JSON metadata
search(params)
Semantically search memories.
agentId: stringquery: string - The natural language querylimit: number - Max results (default: 5)
Support
For support, email [email protected] or visit docs.basegrid.io.
