Integrate With The TypeScript SDK
import { PromptOrchestraClient } from "@prompt-orchestra/sdk";
const client = new PromptOrchestraClient({
baseUrl: process.env.BASE_URL!,
accessToken: process.env.TOKEN!,
});
const agentRun = await client.agents.run(agentId, {
organizationId: orgId,
input: { message: "hello" },
});
const runDetail = await client.runs.get(agentRun.runId, { organizationId: orgId });
const skills = await client.skills.list({ organizationId: orgId });
const skillRun = await client.skills.run(skills[0].id, {
organizationId: orgId,
variables: { message: "hello" },
});
For direct schemas and route contracts, import from @prompt-orchestra/contracts on advanced integrations.