asteroid-odyssey 1.0.9 → 1.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AgentsSDK.d.ts +70 -0
- package/dist/AgentsSDK.js +102 -0
- package/dist/Asteroid.d.ts +70 -0
- package/dist/Asteroid.js +102 -0
- package/dist/examples/index.d.ts +1 -0
- package/dist/examples/index.js +33 -0
- package/dist/generated/agents/models/Workflow.d.ts +4 -0
- package/dist/generated/agents/services/WorkflowService.d.ts +2 -1
- package/dist/generated/agents/services/WorkflowService.js +6 -2
- package/dist/index.js +1 -1
- package/dist/src/generated/agents/core/ApiError.d.ts +10 -0
- package/dist/src/generated/agents/core/ApiError.js +20 -0
- package/dist/src/generated/agents/core/ApiRequestOptions.d.ts +13 -0
- package/dist/src/generated/agents/core/ApiRequestOptions.js +2 -0
- package/dist/src/generated/agents/core/ApiResult.d.ts +7 -0
- package/dist/src/generated/agents/core/ApiResult.js +2 -0
- package/dist/src/generated/agents/core/CancelablePromise.d.ts +20 -0
- package/dist/src/generated/agents/core/CancelablePromise.js +104 -0
- package/dist/src/generated/agents/core/OpenAPI.d.ts +16 -0
- package/dist/src/generated/agents/core/OpenAPI.js +14 -0
- package/dist/src/generated/agents/core/request.d.ts +30 -0
- package/dist/src/generated/agents/core/request.js +294 -0
- package/dist/src/generated/agents/index.d.ts +16 -0
- package/dist/src/generated/agents/index.js +24 -0
- package/dist/src/generated/agents/models/Agent.d.ts +22 -0
- package/dist/src/generated/agents/models/Agent.js +2 -0
- package/dist/src/generated/agents/models/CreateWorkflowRequest.d.ts +14 -0
- package/dist/src/generated/agents/models/CreateWorkflowRequest.js +2 -0
- package/dist/src/generated/agents/models/Execution.d.ts +18 -0
- package/dist/src/generated/agents/models/Execution.js +2 -0
- package/dist/src/generated/agents/models/OptimisationRequest.d.ts +6 -0
- package/dist/src/generated/agents/models/OptimisationRequest.js +2 -0
- package/dist/src/generated/agents/models/Workflow.d.ts +26 -0
- package/dist/src/generated/agents/models/Workflow.js +2 -0
- package/dist/src/generated/agents/models/WorkflowExecution.d.ts +6 -0
- package/dist/src/generated/agents/models/WorkflowExecution.js +2 -0
- package/dist/src/generated/agents/models/WorkflowExecutionRequest.d.ts +4 -0
- package/dist/src/generated/agents/models/WorkflowExecutionRequest.js +2 -0
- package/dist/src/generated/agents/services/AgentService.d.ts +10 -0
- package/dist/src/generated/agents/services/AgentService.js +19 -0
- package/dist/src/generated/agents/services/ApiService.d.ts +9 -0
- package/dist/src/generated/agents/services/ApiService.js +19 -0
- package/dist/src/generated/agents/services/DefaultService.d.ts +23 -0
- package/dist/src/generated/agents/services/DefaultService.js +43 -0
- package/dist/src/generated/agents/services/OptimiserService.d.ts +11 -0
- package/dist/src/generated/agents/services/OptimiserService.js +22 -0
- package/dist/src/generated/agents/services/WorkflowService.d.ts +19 -0
- package/dist/src/generated/agents/services/WorkflowService.js +40 -0
- package/dist/src/generated/platform/core/ApiError.d.ts +10 -0
- package/dist/src/generated/platform/core/ApiError.js +20 -0
- package/dist/src/generated/platform/core/ApiRequestOptions.d.ts +13 -0
- package/dist/src/generated/platform/core/ApiRequestOptions.js +2 -0
- package/dist/src/generated/platform/core/ApiResult.d.ts +7 -0
- package/dist/src/generated/platform/core/ApiResult.js +2 -0
- package/dist/src/generated/platform/core/CancelablePromise.d.ts +20 -0
- package/dist/src/generated/platform/core/CancelablePromise.js +104 -0
- package/dist/src/generated/platform/core/OpenAPI.d.ts +16 -0
- package/dist/src/generated/platform/core/OpenAPI.js +14 -0
- package/dist/src/generated/platform/core/request.d.ts +30 -0
- package/dist/src/generated/platform/core/request.js +294 -0
- package/dist/src/generated/platform/index.d.ts +56 -0
- package/dist/src/generated/platform/index.js +58 -0
- package/dist/src/generated/platform/models/APIKey.d.ts +9 -0
- package/dist/src/generated/platform/models/APIKey.js +2 -0
- package/dist/src/generated/platform/models/AgentReport.d.ts +45 -0
- package/dist/src/generated/platform/models/AgentReport.js +2 -0
- package/dist/src/generated/platform/models/AsteroidChat.d.ts +9 -0
- package/dist/src/generated/platform/models/AsteroidChat.js +2 -0
- package/dist/src/generated/platform/models/AsteroidChoice.d.ts +16 -0
- package/dist/src/generated/platform/models/AsteroidChoice.js +14 -0
- package/dist/src/generated/platform/models/AsteroidMessage.d.ts +27 -0
- package/dist/src/generated/platform/models/AsteroidMessage.js +15 -0
- package/dist/src/generated/platform/models/AsteroidToolCall.d.ts +11 -0
- package/dist/src/generated/platform/models/AsteroidToolCall.js +2 -0
- package/dist/src/generated/platform/models/ChainExecution.d.ts +6 -0
- package/dist/src/generated/platform/models/ChainExecution.js +2 -0
- package/dist/src/generated/platform/models/ChainExecutionState.d.ts +8 -0
- package/dist/src/generated/platform/models/ChainExecutionState.js +2 -0
- package/dist/src/generated/platform/models/ChainRequest.d.ts +6 -0
- package/dist/src/generated/platform/models/ChainRequest.js +2 -0
- package/dist/src/generated/platform/models/ChatFormat.d.ts +5 -0
- package/dist/src/generated/platform/models/ChatFormat.js +13 -0
- package/dist/src/generated/platform/models/ChatIds.d.ts +5 -0
- package/dist/src/generated/platform/models/ChatIds.js +2 -0
- package/dist/src/generated/platform/models/ChoiceIds.d.ts +6 -0
- package/dist/src/generated/platform/models/ChoiceIds.js +2 -0
- package/dist/src/generated/platform/models/Decision.d.ts +7 -0
- package/dist/src/generated/platform/models/Decision.js +15 -0
- package/dist/src/generated/platform/models/ErrorResponse.d.ts +4 -0
- package/dist/src/generated/platform/models/ErrorResponse.js +2 -0
- package/dist/src/generated/platform/models/FailureCategory.d.ts +12 -0
- package/dist/src/generated/platform/models/FailureCategory.js +20 -0
- package/dist/src/generated/platform/models/FailureReport.d.ts +33 -0
- package/dist/src/generated/platform/models/FailureReport.js +13 -0
- package/dist/src/generated/platform/models/Feedback.d.ts +13 -0
- package/dist/src/generated/platform/models/Feedback.js +2 -0
- package/dist/src/generated/platform/models/FeedbackRequest.d.ts +6 -0
- package/dist/src/generated/platform/models/FeedbackRequest.js +2 -0
- package/dist/src/generated/platform/models/HubStats.d.ts +10 -0
- package/dist/src/generated/platform/models/HubStats.js +2 -0
- package/dist/src/generated/platform/models/MessageRole.d.ts +5 -0
- package/dist/src/generated/platform/models/MessageRole.js +13 -0
- package/dist/src/generated/platform/models/MessageType.d.ts +6 -0
- package/dist/src/generated/platform/models/MessageType.js +14 -0
- package/dist/src/generated/platform/models/Permission.d.ts +5 -0
- package/dist/src/generated/platform/models/Permission.js +13 -0
- package/dist/src/generated/platform/models/Project.d.ts +8 -0
- package/dist/src/generated/platform/models/Project.js +2 -0
- package/dist/src/generated/platform/models/ReviewPayload.d.ts +29 -0
- package/dist/src/generated/platform/models/ReviewPayload.js +2 -0
- package/dist/src/generated/platform/models/Run.d.ts +9 -0
- package/dist/src/generated/platform/models/Run.js +2 -0
- package/dist/src/generated/platform/models/RunExecution.d.ts +8 -0
- package/dist/src/generated/platform/models/RunExecution.js +2 -0
- package/dist/src/generated/platform/models/RunState.d.ts +2 -0
- package/dist/src/generated/platform/models/RunState.js +2 -0
- package/dist/src/generated/platform/models/Status.d.ts +8 -0
- package/dist/src/generated/platform/models/Status.js +16 -0
- package/dist/src/generated/platform/models/SupervisionRequest.d.ts +9 -0
- package/dist/src/generated/platform/models/SupervisionRequest.js +2 -0
- package/dist/src/generated/platform/models/SupervisionRequestState.d.ts +8 -0
- package/dist/src/generated/platform/models/SupervisionRequestState.js +2 -0
- package/dist/src/generated/platform/models/SupervisionResult.d.ts +9 -0
- package/dist/src/generated/platform/models/SupervisionResult.js +2 -0
- package/dist/src/generated/platform/models/SupervisionStatus.d.ts +7 -0
- package/dist/src/generated/platform/models/SupervisionStatus.js +2 -0
- package/dist/src/generated/platform/models/Supervisor.d.ts +10 -0
- package/dist/src/generated/platform/models/Supervisor.js +2 -0
- package/dist/src/generated/platform/models/SupervisorChain.d.ts +5 -0
- package/dist/src/generated/platform/models/SupervisorChain.js +2 -0
- package/dist/src/generated/platform/models/SupervisorStats.d.ts +21 -0
- package/dist/src/generated/platform/models/SupervisorStats.js +2 -0
- package/dist/src/generated/platform/models/SupervisorType.d.ts +8 -0
- package/dist/src/generated/platform/models/SupervisorType.js +16 -0
- package/dist/src/generated/platform/models/Task.d.ts +7 -0
- package/dist/src/generated/platform/models/Task.js +2 -0
- package/dist/src/generated/platform/models/Tool.d.ts +9 -0
- package/dist/src/generated/platform/models/Tool.js +2 -0
- package/dist/src/generated/platform/models/ToolCallIds.d.ts +4 -0
- package/dist/src/generated/platform/models/ToolCallIds.js +2 -0
- package/dist/src/generated/platform/models/ToolSupervisionResult.d.ts +36 -0
- package/dist/src/generated/platform/models/ToolSupervisionResult.js +2 -0
- package/dist/src/generated/platform/models/User.d.ts +4 -0
- package/dist/src/generated/platform/models/User.js +2 -0
- package/dist/src/generated/platform/services/ApiKeyService.d.ts +33 -0
- package/dist/src/generated/platform/services/ApiKeyService.js +64 -0
- package/dist/src/generated/platform/services/ApiService.d.ts +9 -0
- package/dist/src/generated/platform/services/ApiService.js +19 -0
- package/dist/src/generated/platform/services/ImproveService.d.ts +20 -0
- package/dist/src/generated/platform/services/ImproveService.js +47 -0
- package/dist/src/generated/platform/services/ProjectService.d.ts +34 -0
- package/dist/src/generated/platform/services/ProjectService.js +72 -0
- package/dist/src/generated/platform/services/RunService.d.ts +103 -0
- package/dist/src/generated/platform/services/RunService.js +227 -0
- package/dist/src/generated/platform/services/StatsService.d.ts +10 -0
- package/dist/src/generated/platform/services/StatsService.js +22 -0
- package/dist/src/generated/platform/services/SupervisionService.d.ts +46 -0
- package/dist/src/generated/platform/services/SupervisionService.js +100 -0
- package/dist/src/generated/platform/services/SupervisorService.d.ts +43 -0
- package/dist/src/generated/platform/services/SupervisorService.js +92 -0
- package/dist/src/generated/platform/services/TaskService.d.ts +29 -0
- package/dist/src/generated/platform/services/TaskService.js +59 -0
- package/dist/src/generated/platform/services/ToolCallService.d.ts +42 -0
- package/dist/src/generated/platform/services/ToolCallService.js +92 -0
- package/dist/src/generated/platform/services/ToolService.d.ts +47 -0
- package/dist/src/generated/platform/services/ToolService.js +92 -0
- package/dist/src/index.d.ts +70 -0
- package/dist/src/index.js +102 -0
- package/package.json +1 -1
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ToolCallService = exports.ToolService = exports.TaskService = exports.SupervisorService = exports.SupervisionService = exports.StatsService = exports.RunService = exports.ProjectService = exports.ImproveService = exports.ApiKeyService = exports.ApiService = exports.SupervisorType = exports.Status = exports.Permission = exports.MessageType = exports.MessageRole = exports.FailureReport = exports.FailureCategory = exports.Decision = exports.ChatFormat = exports.AsteroidMessage = exports.AsteroidChoice = exports.OpenAPI = exports.CancelError = exports.CancelablePromise = exports.ApiError = void 0;
|
|
4
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
5
|
+
/* istanbul ignore file */
|
|
6
|
+
/* tslint:disable */
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
var ApiError_1 = require("./core/ApiError");
|
|
9
|
+
Object.defineProperty(exports, "ApiError", { enumerable: true, get: function () { return ApiError_1.ApiError; } });
|
|
10
|
+
var CancelablePromise_1 = require("./core/CancelablePromise");
|
|
11
|
+
Object.defineProperty(exports, "CancelablePromise", { enumerable: true, get: function () { return CancelablePromise_1.CancelablePromise; } });
|
|
12
|
+
Object.defineProperty(exports, "CancelError", { enumerable: true, get: function () { return CancelablePromise_1.CancelError; } });
|
|
13
|
+
var OpenAPI_1 = require("./core/OpenAPI");
|
|
14
|
+
Object.defineProperty(exports, "OpenAPI", { enumerable: true, get: function () { return OpenAPI_1.OpenAPI; } });
|
|
15
|
+
var AsteroidChoice_1 = require("./models/AsteroidChoice");
|
|
16
|
+
Object.defineProperty(exports, "AsteroidChoice", { enumerable: true, get: function () { return AsteroidChoice_1.AsteroidChoice; } });
|
|
17
|
+
var AsteroidMessage_1 = require("./models/AsteroidMessage");
|
|
18
|
+
Object.defineProperty(exports, "AsteroidMessage", { enumerable: true, get: function () { return AsteroidMessage_1.AsteroidMessage; } });
|
|
19
|
+
var ChatFormat_1 = require("./models/ChatFormat");
|
|
20
|
+
Object.defineProperty(exports, "ChatFormat", { enumerable: true, get: function () { return ChatFormat_1.ChatFormat; } });
|
|
21
|
+
var Decision_1 = require("./models/Decision");
|
|
22
|
+
Object.defineProperty(exports, "Decision", { enumerable: true, get: function () { return Decision_1.Decision; } });
|
|
23
|
+
var FailureCategory_1 = require("./models/FailureCategory");
|
|
24
|
+
Object.defineProperty(exports, "FailureCategory", { enumerable: true, get: function () { return FailureCategory_1.FailureCategory; } });
|
|
25
|
+
var FailureReport_1 = require("./models/FailureReport");
|
|
26
|
+
Object.defineProperty(exports, "FailureReport", { enumerable: true, get: function () { return FailureReport_1.FailureReport; } });
|
|
27
|
+
var MessageRole_1 = require("./models/MessageRole");
|
|
28
|
+
Object.defineProperty(exports, "MessageRole", { enumerable: true, get: function () { return MessageRole_1.MessageRole; } });
|
|
29
|
+
var MessageType_1 = require("./models/MessageType");
|
|
30
|
+
Object.defineProperty(exports, "MessageType", { enumerable: true, get: function () { return MessageType_1.MessageType; } });
|
|
31
|
+
var Permission_1 = require("./models/Permission");
|
|
32
|
+
Object.defineProperty(exports, "Permission", { enumerable: true, get: function () { return Permission_1.Permission; } });
|
|
33
|
+
var Status_1 = require("./models/Status");
|
|
34
|
+
Object.defineProperty(exports, "Status", { enumerable: true, get: function () { return Status_1.Status; } });
|
|
35
|
+
var SupervisorType_1 = require("./models/SupervisorType");
|
|
36
|
+
Object.defineProperty(exports, "SupervisorType", { enumerable: true, get: function () { return SupervisorType_1.SupervisorType; } });
|
|
37
|
+
var ApiService_1 = require("./services/ApiService");
|
|
38
|
+
Object.defineProperty(exports, "ApiService", { enumerable: true, get: function () { return ApiService_1.ApiService; } });
|
|
39
|
+
var ApiKeyService_1 = require("./services/ApiKeyService");
|
|
40
|
+
Object.defineProperty(exports, "ApiKeyService", { enumerable: true, get: function () { return ApiKeyService_1.ApiKeyService; } });
|
|
41
|
+
var ImproveService_1 = require("./services/ImproveService");
|
|
42
|
+
Object.defineProperty(exports, "ImproveService", { enumerable: true, get: function () { return ImproveService_1.ImproveService; } });
|
|
43
|
+
var ProjectService_1 = require("./services/ProjectService");
|
|
44
|
+
Object.defineProperty(exports, "ProjectService", { enumerable: true, get: function () { return ProjectService_1.ProjectService; } });
|
|
45
|
+
var RunService_1 = require("./services/RunService");
|
|
46
|
+
Object.defineProperty(exports, "RunService", { enumerable: true, get: function () { return RunService_1.RunService; } });
|
|
47
|
+
var StatsService_1 = require("./services/StatsService");
|
|
48
|
+
Object.defineProperty(exports, "StatsService", { enumerable: true, get: function () { return StatsService_1.StatsService; } });
|
|
49
|
+
var SupervisionService_1 = require("./services/SupervisionService");
|
|
50
|
+
Object.defineProperty(exports, "SupervisionService", { enumerable: true, get: function () { return SupervisionService_1.SupervisionService; } });
|
|
51
|
+
var SupervisorService_1 = require("./services/SupervisorService");
|
|
52
|
+
Object.defineProperty(exports, "SupervisorService", { enumerable: true, get: function () { return SupervisorService_1.SupervisorService; } });
|
|
53
|
+
var TaskService_1 = require("./services/TaskService");
|
|
54
|
+
Object.defineProperty(exports, "TaskService", { enumerable: true, get: function () { return TaskService_1.TaskService; } });
|
|
55
|
+
var ToolService_1 = require("./services/ToolService");
|
|
56
|
+
Object.defineProperty(exports, "ToolService", { enumerable: true, get: function () { return ToolService_1.ToolService; } });
|
|
57
|
+
var ToolCallService_1 = require("./services/ToolCallService");
|
|
58
|
+
Object.defineProperty(exports, "ToolCallService", { enumerable: true, get: function () { return ToolCallService_1.ToolCallService; } });
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { FailureReport } from './FailureReport';
|
|
2
|
+
import type { SupervisorStats } from './SupervisorStats';
|
|
3
|
+
/**
|
|
4
|
+
* A comprehensive report on an agent's performance across multiple runs
|
|
5
|
+
*/
|
|
6
|
+
export type AgentReport = {
|
|
7
|
+
/**
|
|
8
|
+
* Unique identifier for the agent
|
|
9
|
+
*/
|
|
10
|
+
agent_id: string;
|
|
11
|
+
/**
|
|
12
|
+
* The text of the prompt used by the agent
|
|
13
|
+
*/
|
|
14
|
+
prompt_text?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Total number of runs performed by the agent
|
|
17
|
+
*/
|
|
18
|
+
total_runs: number;
|
|
19
|
+
/**
|
|
20
|
+
* Percentage of successful runs (0-100)
|
|
21
|
+
*/
|
|
22
|
+
success_rate: number;
|
|
23
|
+
run_statistics: {
|
|
24
|
+
successful_runs?: number;
|
|
25
|
+
failed_runs?: number;
|
|
26
|
+
pending_runs?: number;
|
|
27
|
+
/**
|
|
28
|
+
* Average duration of runs in seconds
|
|
29
|
+
*/
|
|
30
|
+
average_run_duration?: number;
|
|
31
|
+
};
|
|
32
|
+
failure_analysis: Array<FailureReport>;
|
|
33
|
+
/**
|
|
34
|
+
* Map of failure categories to their occurrence count
|
|
35
|
+
*/
|
|
36
|
+
failure_categories: Record<string, number>;
|
|
37
|
+
supervisor_statistics: {
|
|
38
|
+
total_reviews: number;
|
|
39
|
+
reviews_by_type: Record<string, SupervisorStats>;
|
|
40
|
+
};
|
|
41
|
+
time_period: {
|
|
42
|
+
start_time: string;
|
|
43
|
+
end_time: string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { AsteroidMessage } from './AsteroidMessage';
|
|
2
|
+
export type AsteroidChoice = {
|
|
3
|
+
asteroid_id: string;
|
|
4
|
+
index: number;
|
|
5
|
+
message: AsteroidMessage;
|
|
6
|
+
finish_reason: AsteroidChoice.finish_reason;
|
|
7
|
+
};
|
|
8
|
+
export declare namespace AsteroidChoice {
|
|
9
|
+
enum finish_reason {
|
|
10
|
+
STOP = "stop",
|
|
11
|
+
LENGTH = "length",
|
|
12
|
+
FUNCTION_CALL = "function_call",
|
|
13
|
+
TOOL_CALLS = "tool_calls",
|
|
14
|
+
CONTENT_FILTER = "content_filter"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AsteroidChoice = void 0;
|
|
4
|
+
var AsteroidChoice;
|
|
5
|
+
(function (AsteroidChoice) {
|
|
6
|
+
let finish_reason;
|
|
7
|
+
(function (finish_reason) {
|
|
8
|
+
finish_reason["STOP"] = "stop";
|
|
9
|
+
finish_reason["LENGTH"] = "length";
|
|
10
|
+
finish_reason["FUNCTION_CALL"] = "function_call";
|
|
11
|
+
finish_reason["TOOL_CALLS"] = "tool_calls";
|
|
12
|
+
finish_reason["CONTENT_FILTER"] = "content_filter";
|
|
13
|
+
})(finish_reason = AsteroidChoice.finish_reason || (AsteroidChoice.finish_reason = {}));
|
|
14
|
+
})(AsteroidChoice || (exports.AsteroidChoice = AsteroidChoice = {}));
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { AsteroidToolCall } from './AsteroidToolCall';
|
|
2
|
+
import type { MessageType } from './MessageType';
|
|
3
|
+
export type AsteroidMessage = {
|
|
4
|
+
id?: string;
|
|
5
|
+
role: AsteroidMessage.role;
|
|
6
|
+
content: string;
|
|
7
|
+
tool_calls?: Array<AsteroidToolCall>;
|
|
8
|
+
/**
|
|
9
|
+
* The type of content in the message, either text or b64 encoded audio
|
|
10
|
+
*/
|
|
11
|
+
type?: MessageType;
|
|
12
|
+
created_at?: string;
|
|
13
|
+
/**
|
|
14
|
+
* The raw b64 encoded JSON of the message objects in its original form
|
|
15
|
+
*/
|
|
16
|
+
data?: string;
|
|
17
|
+
};
|
|
18
|
+
export declare namespace AsteroidMessage {
|
|
19
|
+
enum role {
|
|
20
|
+
SYSTEM = "system",
|
|
21
|
+
USER = "user",
|
|
22
|
+
ASSISTANT = "assistant",
|
|
23
|
+
FUNCTION = "function",
|
|
24
|
+
TOOL = "tool",
|
|
25
|
+
ASTEROID = "asteroid"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AsteroidMessage = void 0;
|
|
4
|
+
var AsteroidMessage;
|
|
5
|
+
(function (AsteroidMessage) {
|
|
6
|
+
let role;
|
|
7
|
+
(function (role) {
|
|
8
|
+
role["SYSTEM"] = "system";
|
|
9
|
+
role["USER"] = "user";
|
|
10
|
+
role["ASSISTANT"] = "assistant";
|
|
11
|
+
role["FUNCTION"] = "function";
|
|
12
|
+
role["TOOL"] = "tool";
|
|
13
|
+
role["ASTEROID"] = "asteroid";
|
|
14
|
+
})(role = AsteroidMessage.role || (AsteroidMessage.role = {}));
|
|
15
|
+
})(AsteroidMessage || (exports.AsteroidMessage = AsteroidMessage = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ChainExecution } from './ChainExecution';
|
|
2
|
+
import type { SupervisionRequestState } from './SupervisionRequestState';
|
|
3
|
+
import type { SupervisorChain } from './SupervisorChain';
|
|
4
|
+
export type ChainExecutionState = {
|
|
5
|
+
chain: SupervisorChain;
|
|
6
|
+
chain_execution: ChainExecution;
|
|
7
|
+
supervision_requests: Array<SupervisionRequestState>;
|
|
8
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ChatFormat = void 0;
|
|
4
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
5
|
+
/* istanbul ignore file */
|
|
6
|
+
/* tslint:disable */
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
var ChatFormat;
|
|
9
|
+
(function (ChatFormat) {
|
|
10
|
+
ChatFormat["OPENAI"] = "openai";
|
|
11
|
+
ChatFormat["ANTHROPIC"] = "anthropic";
|
|
12
|
+
ChatFormat["GEMINI"] = "gemini";
|
|
13
|
+
})(ChatFormat || (exports.ChatFormat = ChatFormat = {}));
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Decision = void 0;
|
|
4
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
5
|
+
/* istanbul ignore file */
|
|
6
|
+
/* tslint:disable */
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
var Decision;
|
|
9
|
+
(function (Decision) {
|
|
10
|
+
Decision["APPROVE"] = "approve";
|
|
11
|
+
Decision["REJECT"] = "reject";
|
|
12
|
+
Decision["TERMINATE"] = "terminate";
|
|
13
|
+
Decision["MODIFY"] = "modify";
|
|
14
|
+
Decision["ESCALATE"] = "escalate";
|
|
15
|
+
})(Decision || (exports.Decision = Decision = {}));
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare enum FailureCategory {
|
|
2
|
+
SAFETY_VIOLATION = "safety_violation",
|
|
3
|
+
HALLUCINATION = "hallucination",
|
|
4
|
+
INCORRECT_TOOL_USAGE = "incorrect_tool_usage",
|
|
5
|
+
INVALID_OUTPUT_FORMAT = "invalid_output_format",
|
|
6
|
+
TIMEOUT = "timeout",
|
|
7
|
+
RUNTIME_ERROR = "runtime_error",
|
|
8
|
+
PERMISSION_ERROR = "permission_error",
|
|
9
|
+
RESOURCE_EXHAUSTION = "resource_exhaustion",
|
|
10
|
+
LOGICAL_ERROR = "logical_error",
|
|
11
|
+
OTHER = "other"
|
|
12
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FailureCategory = void 0;
|
|
4
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
5
|
+
/* istanbul ignore file */
|
|
6
|
+
/* tslint:disable */
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
var FailureCategory;
|
|
9
|
+
(function (FailureCategory) {
|
|
10
|
+
FailureCategory["SAFETY_VIOLATION"] = "safety_violation";
|
|
11
|
+
FailureCategory["HALLUCINATION"] = "hallucination";
|
|
12
|
+
FailureCategory["INCORRECT_TOOL_USAGE"] = "incorrect_tool_usage";
|
|
13
|
+
FailureCategory["INVALID_OUTPUT_FORMAT"] = "invalid_output_format";
|
|
14
|
+
FailureCategory["TIMEOUT"] = "timeout";
|
|
15
|
+
FailureCategory["RUNTIME_ERROR"] = "runtime_error";
|
|
16
|
+
FailureCategory["PERMISSION_ERROR"] = "permission_error";
|
|
17
|
+
FailureCategory["RESOURCE_EXHAUSTION"] = "resource_exhaustion";
|
|
18
|
+
FailureCategory["LOGICAL_ERROR"] = "logical_error";
|
|
19
|
+
FailureCategory["OTHER"] = "other";
|
|
20
|
+
})(FailureCategory || (exports.FailureCategory = FailureCategory = {}));
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { AsteroidToolCall } from './AsteroidToolCall';
|
|
2
|
+
import type { FailureCategory } from './FailureCategory';
|
|
3
|
+
import type { SupervisionResult } from './SupervisionResult';
|
|
4
|
+
/**
|
|
5
|
+
* Detailed information about a specific failure
|
|
6
|
+
*/
|
|
7
|
+
export type FailureReport = {
|
|
8
|
+
run_id: string;
|
|
9
|
+
timestamp: string;
|
|
10
|
+
failure_category: FailureCategory;
|
|
11
|
+
/**
|
|
12
|
+
* Detailed explanation of the failure
|
|
13
|
+
*/
|
|
14
|
+
failure_reason: string;
|
|
15
|
+
supervisor_decisions: Array<SupervisionResult>;
|
|
16
|
+
tool_context?: {
|
|
17
|
+
tool_name: string;
|
|
18
|
+
tool_call: AsteroidToolCall;
|
|
19
|
+
};
|
|
20
|
+
severity: FailureReport.severity;
|
|
21
|
+
/**
|
|
22
|
+
* Suggested action to prevent similar failures
|
|
23
|
+
*/
|
|
24
|
+
remediation_suggestion?: string;
|
|
25
|
+
};
|
|
26
|
+
export declare namespace FailureReport {
|
|
27
|
+
enum severity {
|
|
28
|
+
LOW = "low",
|
|
29
|
+
MEDIUM = "medium",
|
|
30
|
+
HIGH = "high",
|
|
31
|
+
CRITICAL = "critical"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FailureReport = void 0;
|
|
4
|
+
var FailureReport;
|
|
5
|
+
(function (FailureReport) {
|
|
6
|
+
let severity;
|
|
7
|
+
(function (severity) {
|
|
8
|
+
severity["LOW"] = "low";
|
|
9
|
+
severity["MEDIUM"] = "medium";
|
|
10
|
+
severity["HIGH"] = "high";
|
|
11
|
+
severity["CRITICAL"] = "critical";
|
|
12
|
+
})(severity = FailureReport.severity || (FailureReport.severity = {}));
|
|
13
|
+
})(FailureReport || (exports.FailureReport = FailureReport = {}));
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type Feedback = {
|
|
2
|
+
id: string;
|
|
3
|
+
run_id: string;
|
|
4
|
+
/**
|
|
5
|
+
* The timestamp of when the feedback was created
|
|
6
|
+
*/
|
|
7
|
+
created_at: string;
|
|
8
|
+
/**
|
|
9
|
+
* The timestamp of when the feedback was last updated
|
|
10
|
+
*/
|
|
11
|
+
updated_at: string;
|
|
12
|
+
feedback: string;
|
|
13
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type HubStats = {
|
|
2
|
+
connected_clients: number;
|
|
3
|
+
free_clients: number;
|
|
4
|
+
busy_clients: number;
|
|
5
|
+
assigned_reviews: Record<string, number>;
|
|
6
|
+
review_distribution: Record<string, number>;
|
|
7
|
+
completed_reviews_count: number;
|
|
8
|
+
pending_reviews_count: number;
|
|
9
|
+
assigned_reviews_count: number;
|
|
10
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MessageRole = void 0;
|
|
4
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
5
|
+
/* istanbul ignore file */
|
|
6
|
+
/* tslint:disable */
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
var MessageRole;
|
|
9
|
+
(function (MessageRole) {
|
|
10
|
+
MessageRole["SYSTEM"] = "system";
|
|
11
|
+
MessageRole["USER"] = "user";
|
|
12
|
+
MessageRole["ASSISTANT"] = "assistant";
|
|
13
|
+
})(MessageRole || (exports.MessageRole = MessageRole = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MessageType = void 0;
|
|
4
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
5
|
+
/* istanbul ignore file */
|
|
6
|
+
/* tslint:disable */
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
var MessageType;
|
|
9
|
+
(function (MessageType) {
|
|
10
|
+
MessageType["TEXT"] = "text";
|
|
11
|
+
MessageType["AUDIO"] = "audio";
|
|
12
|
+
MessageType["IMAGE"] = "image";
|
|
13
|
+
MessageType["IMAGE_URL"] = "image_url";
|
|
14
|
+
})(MessageType || (exports.MessageType = MessageType = {}));
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Permission = void 0;
|
|
4
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
5
|
+
/* istanbul ignore file */
|
|
6
|
+
/* tslint:disable */
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
var Permission;
|
|
9
|
+
(function (Permission) {
|
|
10
|
+
Permission["READ"] = "read";
|
|
11
|
+
Permission["WRITE"] = "write";
|
|
12
|
+
Permission["ADMIN"] = "admin";
|
|
13
|
+
})(Permission || (exports.Permission = Permission = {}));
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { AsteroidMessage } from './AsteroidMessage';
|
|
2
|
+
import type { AsteroidToolCall } from './AsteroidToolCall';
|
|
3
|
+
import type { ChainExecutionState } from './ChainExecutionState';
|
|
4
|
+
import type { SupervisionRequest } from './SupervisionRequest';
|
|
5
|
+
/**
|
|
6
|
+
* Contains all the information needed for a human reviewer to make a supervision decision
|
|
7
|
+
*/
|
|
8
|
+
export type ReviewPayload = {
|
|
9
|
+
/**
|
|
10
|
+
* The current supervision request being reviewed
|
|
11
|
+
*/
|
|
12
|
+
supervision_request: SupervisionRequest;
|
|
13
|
+
/**
|
|
14
|
+
* The state of the entire supervision chain, including previous supervision results
|
|
15
|
+
*/
|
|
16
|
+
chain_state: ChainExecutionState;
|
|
17
|
+
/**
|
|
18
|
+
* The tool call being supervised
|
|
19
|
+
*/
|
|
20
|
+
toolcall: AsteroidToolCall;
|
|
21
|
+
/**
|
|
22
|
+
* The ID of the run this review is for
|
|
23
|
+
*/
|
|
24
|
+
run_id: string;
|
|
25
|
+
/**
|
|
26
|
+
* The messages in the run
|
|
27
|
+
*/
|
|
28
|
+
messages: Array<AsteroidMessage>;
|
|
29
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { AsteroidToolCall } from './AsteroidToolCall';
|
|
2
|
+
import type { ChainExecutionState } from './ChainExecutionState';
|
|
3
|
+
import type { Status } from './Status';
|
|
4
|
+
export type RunExecution = {
|
|
5
|
+
toolcall: AsteroidToolCall;
|
|
6
|
+
chains: Array<ChainExecutionState>;
|
|
7
|
+
status: Status;
|
|
8
|
+
};
|