Skip to main content
These examples are aligned with the current SDK surfaces documented on the TypeScript SDK and Python SDK pages.
Start an execution and wait for the result using the high-level SDK helpers.
import { AsteroidClient, executeAgent, waitForExecutionResult } from 'asteroid-odyssey';

const client = AsteroidClient(process.env.ASTEROID_API_KEY!);

const executionId = await executeAgent(client, 'your-agent-id', {
  dynamicData: {
    patientName: 'Jane Doe',
    appointmentDate: '2026-03-27',
  },
  metadata: {
    source: 'cookbook-basic',
  },
});

const result = await waitForExecutionResult(client, executionId);
console.log(result);

TypeScript SDK

See the current TypeScript helper and generated namespaces

Python SDK

See the current Python high-level client and generated subpackages