@ash-ai/sdk
v0.0.16
Published
TypeScript SDK for interacting with Ash agent servers
Downloads
1,541
Readme
@ash-ai/sdk
TypeScript SDK for interacting with Ash agent servers.
Installation
npm install @ash-ai/sdkUsage
import { AshClient } from '@ash-ai/sdk';
const client = new AshClient({ serverUrl: 'http://localhost:4100' });
// Create a session
const session = await client.createSession('my-agent');
// Stream messages
for await (const event of client.sendMessageStream(session.id, 'Hello!')) {
if (event.type === 'message') {
process.stdout.write(event.data);
}
}
// End session
await client.endSession(session.id);Documentation
See the Ash README for full documentation, including the Python SDK.
