Drive the agents from your own code TypeScript & Python
sessions · tools · traces · multi-agent
The Agent SDK lets you call น้องเสมอ to delegate or address each specialist directly · manage sessions, register your own tools, and read every trace step in code. Like a team you can drive programmatically.
- TS
- @samoe/sdk
- Py
- samoe (PyPI)
- multi-agent
- you own the flow
import { Samoe } from "@samoe/sdk";
const samoe = new Samoe({ apiKey });
const run = await samoe.agents.run({
agent: "เสมอ", // หัวหน้าทีม แตกงานต่อ
input: "ปิดยอด + ตามหนี้ค้าง",
tools: ["express-mcp", "line"],
onStep: (s) => console.log(s.agent, s.tool),
});
await run.approve(); // human-in-the-loopTreat the agents like a team in code
Own your multi-agent flow
Call น้องเสมอ to delegate, or address น้องเสนอ/สต็อก/เสมียน directly, with human-in-the-loop approvals where you need them.
- Delegate via น้องเสมอ
- Address specialists directly
- Human-in-the-loop
- Per-step callbacks
Register your own tools in code
Bind your own functions as tools the agents can call · into internal APIs, databases, or company services. The agents pick them when needed.
- Bind functions as tools
- Connect internal APIs/DBs
- Typed arguments
- Read call traces
Teams already building on Samoe
Keying time removed · agents pull work from the existing system over the API and act on it.
Reached the TED Fund final round · 3 pilot customers · figures from real usage
Install the SDK and drive the agents
bun add @samoe/sdk or pip install samoe · examples in the docs.
A harness that acts in real systems · not a chatbot over an API