SDK Examples
Example: Minimal RemoteAgent
Call an Agent hosted in another process over HTTP or RPC
Example: Minimal RemoteAgent
import { RemoteAgent } from "@downcity/agent";
const agent = new RemoteAgent({
url: "http://127.0.0.1:5314/agents/repo-helper",
});
const session = await agent.session_collection().create_session();
const turn = await session.prompt({
query: "Summarize this project",
});
const result = await turn.finished;