await lynx.run(
{
agentName: "SupportAgent",
workspaceId: "workspace_123",
agentId: "agent_support",
sessionId: "session_123",
},
async () => {
lynx.userInput("주문이 어디 있나요?", { userId: "usr_123" });
lynx.setAttributes({ orderId: "order_123" });
lynx.context("account-state", {
plan: "pro",
renewalDate: "2026-07-01",
});
lynx.decision({
name: "choose_support_path",
selected: "lookup_order",
alternatives: ["ask_clarifying_question", "handoff"],
confidence: 0.81,
reason: "사용자가 특정 주문 상태를 묻고 있습니다",
});
lynx.memory("read", {
key: "usr_123",
hit: true,
store: "customer-profile",
});
lynx.outcome({
status: "COMPLETED",
businessStatus: "SUCCEEDED",
reason: "주문 상태를 사용자에게 안내했습니다",
});
},
);