import { AGIClient } from 'agi';
const client = new AGIClient({ apiKey: 'your_api_key' });
// Send message (basic)
await client.sendMessage(sessionId, 'Find three nonstop SFO→JFK flights next month under $450');
// Send message with start URL
await client.sendMessage(sessionId, 'Compare prices for iPhone 15', {
start_url: 'https://www.apple.com'
});
// Answer a follow-up question
await client.sendMessage(sessionId, 'Yes, include startups founded after 2020');