UNPKG

@mondaydotcomorg/atp-runtime

Version:

Runtime SDK injected into sandbox for Agent Tool Protocol

57 lines 1.61 kB
/** * Callback types that can pause execution */ export var CallbackType; (function (CallbackType) { CallbackType["LLM"] = "llm"; CallbackType["APPROVAL"] = "approval"; CallbackType["EMBEDDING"] = "embedding"; CallbackType["TOOL"] = "tool"; })(CallbackType || (CallbackType = {})); /** * LLM callback operations */ export var LLMOperation; (function (LLMOperation) { LLMOperation["CALL"] = "call"; LLMOperation["EXTRACT"] = "extract"; LLMOperation["CLASSIFY"] = "classify"; })(LLMOperation || (LLMOperation = {})); /** * Embedding callback operations */ export var EmbeddingOperation; (function (EmbeddingOperation) { EmbeddingOperation["EMBED"] = "embed"; EmbeddingOperation["SEARCH"] = "search"; })(EmbeddingOperation || (EmbeddingOperation = {})); /** * Approval callback operations */ export var ApprovalOperation; (function (ApprovalOperation) { ApprovalOperation["REQUEST"] = "request"; })(ApprovalOperation || (ApprovalOperation = {})); /** * Tool callback operations */ export var ToolOperation; (function (ToolOperation) { ToolOperation["CALL"] = "call"; })(ToolOperation || (ToolOperation = {})); /** * Thrown when execution needs to pause for client callback */ export class PauseExecutionError extends Error { type; operation; payload; constructor(type, operation, payload) { super(`Execution paused: waiting for ${type}.${operation}`); this.name = 'PauseExecutionError'; this.type = type; this.operation = operation; this.payload = payload; } } //# sourceMappingURL=types.js.map