@kddd/artinet-sdk
Version:
TypeScript SDK for the Agent2Agent (A2A) Protocol
31 lines • 846 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.FINAL_STATES = exports.SUBMITTED_UPDATE = exports.CANCEL_UPDATE = exports.WORKING_UPDATE = void 0;
exports.WORKING_UPDATE = {
state: "working",
message: {
role: "agent",
parts: [{ type: "text", text: "Processing..." }],
},
};
exports.CANCEL_UPDATE = {
state: "canceled",
message: {
role: "agent",
parts: [
{
type: "text",
text: "Task was canceled during execution.",
},
],
},
};
exports.SUBMITTED_UPDATE = {
state: "submitted",
message: {
role: "agent",
parts: [{ type: "text", text: "Task was submitted." }],
},
};
exports.FINAL_STATES = ["completed", "failed", "canceled"];
//# sourceMappingURL=constants.js.map