import {
createGatewayAgentClient,
} from "@phaseo/agent-sdk";
const client = createGatewayAgentClient({
clientOptions: {
apiKey: process.env.PHASEO_API_KEY!,
},
responseFormat: {
type: "json_schema",
name: "support_triage_decision",
schema: {
type: "object",
properties: {
queue: {
type: "string",
enum: ["billing", "reliability", "product", "security"],
},
severity: {
type: "string",
enum: ["low", "medium", "high"],
},
needsHumanReview: { type: "boolean" },
summary: { type: "string" },
},
required: ["queue", "severity", "needsHumanReview", "summary"],
additionalProperties: false,
},
},
plugins: [{ id: "response-healing", mode: "strict" }],
});