@yos-ai/agent-sdk
v0.1.0
Published
Platform-neutral client SDK and protocol for YOS Agent Engine
Downloads
103
Readme
@yos-ai/agent-sdk
Platform-neutral YOS Agent client. AgentClient depends on an AgentTransport, so the same API can run over Electron IPC locally or HTTP/SSE against a remote Agent Engine.
import { AgentClient } from "@yos-ai/agent-sdk";
import { HttpAgentTransport } from "@yos-ai/agent-sdk/http";
const client = new AgentClient(new HttpAgentTransport({ baseUrl: "https://agent.example.com" }));
const session = await client.createSession({
config: {
model: {
protocol: "openai",
baseUrl: "https://api.openai.com",
model: "gpt-5-mini",
apiKey,
multimodal: false,
// Optional defaults: contextWindow=131072, maxOutputTokens=16384
},
systemPrompt: "You are helpful.",
},
});