@mongodb-js/agent-engine-runner-shared 0.11.3
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/CHANGELOG.md +55 -0
- package/LICENSE.md +201 -0
- package/README.md +29 -0
- package/dist/agent_config.d.ts +167 -0
- package/dist/agent_config.d.ts.map +1 -0
- package/dist/agent_config.js +544 -0
- package/dist/call_interrupted.d.ts +12 -0
- package/dist/call_interrupted.d.ts.map +1 -0
- package/dist/call_interrupted.js +11 -0
- package/dist/checkpoint_workspace.d.ts +25 -0
- package/dist/checkpoint_workspace.d.ts.map +1 -0
- package/dist/checkpoint_workspace.js +44 -0
- package/dist/context.d.ts +235 -0
- package/dist/context.d.ts.map +1 -0
- package/dist/context.js +322 -0
- package/dist/db_config.d.ts +28 -0
- package/dist/db_config.d.ts.map +1 -0
- package/dist/db_config.js +66 -0
- package/dist/db_naming.d.ts +54 -0
- package/dist/db_naming.d.ts.map +1 -0
- package/dist/db_naming.js +94 -0
- package/dist/error_reporting.d.ts +67 -0
- package/dist/error_reporting.d.ts.map +1 -0
- package/dist/error_reporting.js +311 -0
- package/dist/generated/workflow/v1/activity_pb.d.ts +342 -0
- package/dist/generated/workflow/v1/activity_pb.d.ts.map +1 -0
- package/dist/generated/workflow/v1/activity_pb.js +115 -0
- package/dist/generated/workflow/v1/common_pb.d.ts +184 -0
- package/dist/generated/workflow/v1/common_pb.d.ts.map +1 -0
- package/dist/generated/workflow/v1/common_pb.js +86 -0
- package/dist/generated/workflow/v1/runtime_pb.d.ts +200 -0
- package/dist/generated/workflow/v1/runtime_pb.d.ts.map +1 -0
- package/dist/generated/workflow/v1/runtime_pb.js +40 -0
- package/dist/generated/workflow/v1/state_pb.d.ts +254 -0
- package/dist/generated/workflow/v1/state_pb.d.ts.map +1 -0
- package/dist/generated/workflow/v1/state_pb.js +68 -0
- package/dist/guardrails_evaluator/core.d.ts +23 -0
- package/dist/guardrails_evaluator/core.d.ts.map +1 -0
- package/dist/guardrails_evaluator/core.js +122 -0
- package/dist/guardrails_evaluator/index.d.ts +10 -0
- package/dist/guardrails_evaluator/index.d.ts.map +1 -0
- package/dist/guardrails_evaluator/index.js +11 -0
- package/dist/guardrails_evaluator/regex.d.ts +20 -0
- package/dist/guardrails_evaluator/regex.d.ts.map +1 -0
- package/dist/guardrails_evaluator/regex.js +233 -0
- package/dist/hooks.d.ts +109 -0
- package/dist/hooks.d.ts.map +1 -0
- package/dist/hooks.js +216 -0
- package/dist/http_path.d.ts +18 -0
- package/dist/http_path.d.ts.map +1 -0
- package/dist/http_path.js +53 -0
- package/dist/index.d.ts +35 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +41 -0
- package/dist/launcher.d.ts +130 -0
- package/dist/launcher.d.ts.map +1 -0
- package/dist/launcher.js +325 -0
- package/dist/logger.d.ts +96 -0
- package/dist/logger.d.ts.map +1 -0
- package/dist/logger.js +204 -0
- package/dist/mcp_oauth.d.ts +51 -0
- package/dist/mcp_oauth.d.ts.map +1 -0
- package/dist/mcp_oauth.js +389 -0
- package/dist/mcp_oauth_secret.d.ts +21 -0
- package/dist/mcp_oauth_secret.d.ts.map +1 -0
- package/dist/mcp_oauth_secret.js +122 -0
- package/dist/mcp_tools.d.ts +71 -0
- package/dist/mcp_tools.d.ts.map +1 -0
- package/dist/mcp_tools.js +301 -0
- package/dist/memory_appbound.d.ts +42 -0
- package/dist/memory_appbound.d.ts.map +1 -0
- package/dist/memory_appbound.js +159 -0
- package/dist/memory_writer.d.ts +49 -0
- package/dist/memory_writer.d.ts.map +1 -0
- package/dist/memory_writer.js +171 -0
- package/dist/metrics.d.ts +84 -0
- package/dist/metrics.d.ts.map +1 -0
- package/dist/metrics.js +205 -0
- package/dist/models.d.ts +1458 -0
- package/dist/models.d.ts.map +1 -0
- package/dist/models.js +1726 -0
- package/dist/node_logger.d.ts +43 -0
- package/dist/node_logger.d.ts.map +1 -0
- package/dist/node_logger.js +158 -0
- package/dist/owner_callback.d.ts +16 -0
- package/dist/owner_callback.d.ts.map +1 -0
- package/dist/owner_callback.js +40 -0
- package/dist/progress.d.ts +57 -0
- package/dist/progress.d.ts.map +1 -0
- package/dist/progress.js +140 -0
- package/dist/runtime.d.ts +131 -0
- package/dist/runtime.d.ts.map +1 -0
- package/dist/runtime.js +351 -0
- package/dist/secure_llm_proxy.d.ts +115 -0
- package/dist/secure_llm_proxy.d.ts.map +1 -0
- package/dist/secure_llm_proxy.js +922 -0
- package/dist/secure_wrapper.d.ts +332 -0
- package/dist/secure_wrapper.d.ts.map +1 -0
- package/dist/secure_wrapper.js +1249 -0
- package/dist/server/aer.d.ts +61 -0
- package/dist/server/aer.d.ts.map +1 -0
- package/dist/server/aer.js +1124 -0
- package/dist/server/auth.d.ts +56 -0
- package/dist/server/auth.d.ts.map +1 -0
- package/dist/server/auth.js +132 -0
- package/dist/server/base.d.ts +104 -0
- package/dist/server/base.d.ts.map +1 -0
- package/dist/server/base.js +150 -0
- package/dist/server/callInterrupt.d.ts +49 -0
- package/dist/server/callInterrupt.d.ts.map +1 -0
- package/dist/server/callInterrupt.js +68 -0
- package/dist/server/callback_delivery.d.ts +14 -0
- package/dist/server/callback_delivery.d.ts.map +1 -0
- package/dist/server/callback_delivery.js +141 -0
- package/dist/server/chunk_types.d.ts +50 -0
- package/dist/server/chunk_types.d.ts.map +1 -0
- package/dist/server/chunk_types.js +62 -0
- package/dist/server/cors.d.ts +52 -0
- package/dist/server/cors.d.ts.map +1 -0
- package/dist/server/cors.js +107 -0
- package/dist/server/drain.d.ts +169 -0
- package/dist/server/drain.d.ts.map +1 -0
- package/dist/server/drain.js +455 -0
- package/dist/server/function.d.ts +77 -0
- package/dist/server/function.d.ts.map +1 -0
- package/dist/server/function.js +337 -0
- package/dist/server/http_retry.d.ts +37 -0
- package/dist/server/http_retry.d.ts.map +1 -0
- package/dist/server/http_retry.js +157 -0
- package/dist/server/index.d.ts +7 -0
- package/dist/server/index.d.ts.map +1 -0
- package/dist/server/index.js +5 -0
- package/dist/server/metadata.d.ts +50 -0
- package/dist/server/metadata.d.ts.map +1 -0
- package/dist/server/metadata.js +193 -0
- package/dist/server/oe_url.d.ts +36 -0
- package/dist/server/oe_url.d.ts.map +1 -0
- package/dist/server/oe_url.js +50 -0
- package/dist/server/owner_url.d.ts +35 -0
- package/dist/server/owner_url.d.ts.map +1 -0
- package/dist/server/owner_url.js +146 -0
- package/dist/server/query.d.ts +42 -0
- package/dist/server/query.d.ts.map +1 -0
- package/dist/server/query.js +28 -0
- package/dist/server/tool.d.ts +138 -0
- package/dist/server/tool.d.ts.map +1 -0
- package/dist/server/tool.js +1017 -0
- package/dist/span_names.d.ts +21 -0
- package/dist/span_names.d.ts.map +1 -0
- package/dist/span_names.js +31 -0
- package/dist/structured_logging/constants.d.ts +17 -0
- package/dist/structured_logging/constants.d.ts.map +1 -0
- package/dist/structured_logging/constants.js +71 -0
- package/dist/structured_logging/env.d.ts +18 -0
- package/dist/structured_logging/env.d.ts.map +1 -0
- package/dist/structured_logging/env.js +39 -0
- package/dist/structured_logging/install.d.ts +56 -0
- package/dist/structured_logging/install.d.ts.map +1 -0
- package/dist/structured_logging/install.js +107 -0
- package/dist/structured_logging/layout.d.ts +9 -0
- package/dist/structured_logging/layout.d.ts.map +1 -0
- package/dist/structured_logging/layout.js +144 -0
- package/dist/structured_logging/serialize.d.ts +27 -0
- package/dist/structured_logging/serialize.d.ts.map +1 -0
- package/dist/structured_logging/serialize.js +61 -0
- package/dist/structured_logging/stdio_capture.d.ts +59 -0
- package/dist/structured_logging/stdio_capture.d.ts.map +1 -0
- package/dist/structured_logging/stdio_capture.js +164 -0
- package/dist/structured_logging/uncaught.d.ts +14 -0
- package/dist/structured_logging/uncaught.d.ts.map +1 -0
- package/dist/structured_logging/uncaught.js +58 -0
- package/dist/structured_logging.d.ts +48 -0
- package/dist/structured_logging.d.ts.map +1 -0
- package/dist/structured_logging.js +47 -0
- package/dist/tls_client.d.ts +61 -0
- package/dist/tls_client.d.ts.map +1 -0
- package/dist/tls_client.js +298 -0
- package/dist/tool_api_error.d.ts +62 -0
- package/dist/tool_api_error.d.ts.map +1 -0
- package/dist/tool_api_error.js +399 -0
- package/dist/tool_memory_ownership.d.ts +10 -0
- package/dist/tool_memory_ownership.d.ts.map +1 -0
- package/dist/tool_memory_ownership.js +36 -0
- package/dist/toolpod_handlers.d.ts +126 -0
- package/dist/toolpod_handlers.d.ts.map +1 -0
- package/dist/toolpod_handlers.js +1016 -0
- package/dist/tracing/exporters.d.ts +51 -0
- package/dist/tracing/exporters.d.ts.map +1 -0
- package/dist/tracing/exporters.js +327 -0
- package/dist/tracing/index.d.ts +3 -0
- package/dist/tracing/index.d.ts.map +1 -0
- package/dist/tracing/index.js +2 -0
- package/dist/tracing/setup.d.ts +76 -0
- package/dist/tracing/setup.d.ts.map +1 -0
- package/dist/tracing/setup.js +436 -0
- package/dist/utils.d.ts +204 -0
- package/dist/utils.d.ts.map +1 -0
- package/dist/utils.js +867 -0
- package/dist/workflow/activity.d.ts +71 -0
- package/dist/workflow/activity.d.ts.map +1 -0
- package/dist/workflow/activity.js +357 -0
- package/dist/workflow/attempt.d.ts +12 -0
- package/dist/workflow/attempt.d.ts.map +1 -0
- package/dist/workflow/attempt.js +96 -0
- package/dist/workflow/client.d.ts +46 -0
- package/dist/workflow/client.d.ts.map +1 -0
- package/dist/workflow/client.js +299 -0
- package/dist/workflow/context.d.ts +37 -0
- package/dist/workflow/context.d.ts.map +1 -0
- package/dist/workflow/context.js +350 -0
- package/dist/workflow/heartbeat.d.ts +15 -0
- package/dist/workflow/heartbeat.d.ts.map +1 -0
- package/dist/workflow/heartbeat.js +78 -0
- package/dist/workflow/index.d.ts +14 -0
- package/dist/workflow/index.d.ts.map +1 -0
- package/dist/workflow/index.js +10 -0
- package/dist/workflow/memory.d.ts +17 -0
- package/dist/workflow/memory.d.ts.map +1 -0
- package/dist/workflow/memory.js +184 -0
- package/package.json +73 -0
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.12.1 with parameter "target=ts,import_extension=.js,ts_nocheck=false"
|
|
2
|
+
// @generated from file workflow/v1/common.proto (package mongodb.agentic.workflow.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
|
|
5
|
+
/**
|
|
6
|
+
* Describes the file workflow/v1/common.proto.
|
|
7
|
+
*/
|
|
8
|
+
export const file_workflow_v1_common = /*@__PURE__*/ fileDesc("Chh3b3JrZmxvdy92MS9jb21tb24ucHJvdG8SG21vbmdvZGIuYWdlbnRpYy53b3JrZmxvdy52MSJHCgtUZW5hbnRTY29wZRIOCgZvcmdfaWQYASABKAkSEgoKcHJvamVjdF9pZBgCIAEoCRIUCgx3b3Jrc3BhY2VfaWQYAyABKAkifAoQV29ya2Zsb3dJZGVudGl0eRI+Cgx0ZW5hbnRfc2NvcGUYASABKAsyKC5tb25nb2RiLmFnZW50aWMud29ya2Zsb3cudjEuVGVuYW50U2NvcGUSEgoKc2Vzc2lvbl9pZBgCIAEoCRIUCgxleGVjdXRpb25faWQYAyABKAkiNQoUT3BlcmF0aW9uUGF0aFNlZ21lbnQSDAoEbmFtZRgBIAEoCRIPCgdvcmRpbmFsGAIgASgDIlQKDU9wZXJhdGlvblBhdGgSQwoIc2VnbWVudHMYASADKAsyMS5tb25nb2RiLmFnZW50aWMud29ya2Zsb3cudjEuT3BlcmF0aW9uUGF0aFNlZ21lbnQihgEKEEFjdGl2aXR5UG9zaXRpb24SQgoOb3BlcmF0aW9uX3BhdGgYASABKAsyKi5tb25nb2RiLmFnZW50aWMud29ya2Zsb3cudjEuT3BlcmF0aW9uUGF0aBIYChBhY3Rpdml0eV9vcmRpbmFsGAIgASgDEhQKDHN0ZXBfb3JkaW5hbBgDIAEoAyJeCg1Xb3JrZmxvd0Vycm9yEjwKBGNvZGUYASABKA4yLi5tb25nb2RiLmFnZW50aWMud29ya2Zsb3cudjEuV29ya2Zsb3dFcnJvckNvZGUSDwoHbWVzc2FnZRgCIAEoCSryAgoRV29ya2Zsb3dFcnJvckNvZGUSIwofV09SS0ZMT1dfRVJST1JfQ09ERV9VTlNQRUNJRklFRBAAEigKJFdPUktGTE9XX0VSUk9SX0NPREVfSU5WQUxJRF9BUkdVTUVOVBABEiEKHVdPUktGTE9XX0VSUk9SX0NPREVfTk9UX0ZPVU5EEAISIAocV09SS0ZMT1dfRVJST1JfQ09ERV9DT05GTElDVBADEiMKH1dPUktGTE9XX0VSUk9SX0NPREVfU1RBTEVfRkVOQ0UQBBIoCiRXT1JLRkxPV19FUlJPUl9DT0RFX05PTkRFVEVSTUlOSVNUSUMQBRIrCidXT1JLRkxPV19FUlJPUl9DT0RFX1ZFUlNJT05fVU5BVkFJTEFCTEUQBhInCiNXT1JLRkxPV19FUlJPUl9DT0RFX09VVENPTUVfVU5LTk9XThAHEiQKIFdPUktGTE9XX0VSUk9SX0NPREVfVU5BVVRIT1JJWkVEEAhCQFo+Z2l0aHViLmNvbS8xMGdlbi9hZ2VudGljLXBsYXRmb3JtL3Byb3RvL3dvcmtmbG93L3YxO3dvcmtmbG93djFiBnByb3RvMw");
|
|
9
|
+
/**
|
|
10
|
+
* Describes the message mongodb.agentic.workflow.v1.TenantScope.
|
|
11
|
+
* Use `create(TenantScopeSchema)` to create a new message.
|
|
12
|
+
*/
|
|
13
|
+
export const TenantScopeSchema = /*@__PURE__*/ messageDesc(file_workflow_v1_common, 0);
|
|
14
|
+
/**
|
|
15
|
+
* Describes the message mongodb.agentic.workflow.v1.WorkflowIdentity.
|
|
16
|
+
* Use `create(WorkflowIdentitySchema)` to create a new message.
|
|
17
|
+
*/
|
|
18
|
+
export const WorkflowIdentitySchema = /*@__PURE__*/ messageDesc(file_workflow_v1_common, 1);
|
|
19
|
+
/**
|
|
20
|
+
* Describes the message mongodb.agentic.workflow.v1.OperationPathSegment.
|
|
21
|
+
* Use `create(OperationPathSegmentSchema)` to create a new message.
|
|
22
|
+
*/
|
|
23
|
+
export const OperationPathSegmentSchema = /*@__PURE__*/ messageDesc(file_workflow_v1_common, 2);
|
|
24
|
+
/**
|
|
25
|
+
* Describes the message mongodb.agentic.workflow.v1.OperationPath.
|
|
26
|
+
* Use `create(OperationPathSchema)` to create a new message.
|
|
27
|
+
*/
|
|
28
|
+
export const OperationPathSchema = /*@__PURE__*/ messageDesc(file_workflow_v1_common, 3);
|
|
29
|
+
/**
|
|
30
|
+
* Describes the message mongodb.agentic.workflow.v1.ActivityPosition.
|
|
31
|
+
* Use `create(ActivityPositionSchema)` to create a new message.
|
|
32
|
+
*/
|
|
33
|
+
export const ActivityPositionSchema = /*@__PURE__*/ messageDesc(file_workflow_v1_common, 4);
|
|
34
|
+
/**
|
|
35
|
+
* Describes the message mongodb.agentic.workflow.v1.WorkflowError.
|
|
36
|
+
* Use `create(WorkflowErrorSchema)` to create a new message.
|
|
37
|
+
*/
|
|
38
|
+
export const WorkflowErrorSchema = /*@__PURE__*/ messageDesc(file_workflow_v1_common, 5);
|
|
39
|
+
/**
|
|
40
|
+
* WorkflowErrorCode is the stable cross-language workflow failure vocabulary.
|
|
41
|
+
*
|
|
42
|
+
* @generated from enum mongodb.agentic.workflow.v1.WorkflowErrorCode
|
|
43
|
+
*/
|
|
44
|
+
export var WorkflowErrorCode;
|
|
45
|
+
(function (WorkflowErrorCode) {
|
|
46
|
+
/**
|
|
47
|
+
* @generated from enum value: WORKFLOW_ERROR_CODE_UNSPECIFIED = 0;
|
|
48
|
+
*/
|
|
49
|
+
WorkflowErrorCode[WorkflowErrorCode["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
50
|
+
/**
|
|
51
|
+
* @generated from enum value: WORKFLOW_ERROR_CODE_INVALID_ARGUMENT = 1;
|
|
52
|
+
*/
|
|
53
|
+
WorkflowErrorCode[WorkflowErrorCode["INVALID_ARGUMENT"] = 1] = "INVALID_ARGUMENT";
|
|
54
|
+
/**
|
|
55
|
+
* @generated from enum value: WORKFLOW_ERROR_CODE_NOT_FOUND = 2;
|
|
56
|
+
*/
|
|
57
|
+
WorkflowErrorCode[WorkflowErrorCode["NOT_FOUND"] = 2] = "NOT_FOUND";
|
|
58
|
+
/**
|
|
59
|
+
* @generated from enum value: WORKFLOW_ERROR_CODE_CONFLICT = 3;
|
|
60
|
+
*/
|
|
61
|
+
WorkflowErrorCode[WorkflowErrorCode["CONFLICT"] = 3] = "CONFLICT";
|
|
62
|
+
/**
|
|
63
|
+
* @generated from enum value: WORKFLOW_ERROR_CODE_STALE_FENCE = 4;
|
|
64
|
+
*/
|
|
65
|
+
WorkflowErrorCode[WorkflowErrorCode["STALE_FENCE"] = 4] = "STALE_FENCE";
|
|
66
|
+
/**
|
|
67
|
+
* @generated from enum value: WORKFLOW_ERROR_CODE_NONDETERMINISTIC = 5;
|
|
68
|
+
*/
|
|
69
|
+
WorkflowErrorCode[WorkflowErrorCode["NONDETERMINISTIC"] = 5] = "NONDETERMINISTIC";
|
|
70
|
+
/**
|
|
71
|
+
* @generated from enum value: WORKFLOW_ERROR_CODE_VERSION_UNAVAILABLE = 6;
|
|
72
|
+
*/
|
|
73
|
+
WorkflowErrorCode[WorkflowErrorCode["VERSION_UNAVAILABLE"] = 6] = "VERSION_UNAVAILABLE";
|
|
74
|
+
/**
|
|
75
|
+
* @generated from enum value: WORKFLOW_ERROR_CODE_OUTCOME_UNKNOWN = 7;
|
|
76
|
+
*/
|
|
77
|
+
WorkflowErrorCode[WorkflowErrorCode["OUTCOME_UNKNOWN"] = 7] = "OUTCOME_UNKNOWN";
|
|
78
|
+
/**
|
|
79
|
+
* @generated from enum value: WORKFLOW_ERROR_CODE_UNAUTHORIZED = 8;
|
|
80
|
+
*/
|
|
81
|
+
WorkflowErrorCode[WorkflowErrorCode["UNAUTHORIZED"] = 8] = "UNAUTHORIZED";
|
|
82
|
+
})(WorkflowErrorCode || (WorkflowErrorCode = {}));
|
|
83
|
+
/**
|
|
84
|
+
* Describes the enum mongodb.agentic.workflow.v1.WorkflowErrorCode.
|
|
85
|
+
*/
|
|
86
|
+
export const WorkflowErrorCodeSchema = /*@__PURE__*/ enumDesc(file_workflow_v1_common, 0);
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { WorkflowError, WorkflowIdentity } from "./common_pb.js";
|
|
3
|
+
import type { StateSnapshot } from "./state_pb.js";
|
|
4
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
5
|
+
/**
|
|
6
|
+
* Describes the file workflow/v1/runtime.proto.
|
|
7
|
+
*/
|
|
8
|
+
export declare const file_workflow_v1_runtime: GenFile;
|
|
9
|
+
/**
|
|
10
|
+
* WorkflowDeclaration describes the immutable application and adapter contract.
|
|
11
|
+
*
|
|
12
|
+
* @generated from message mongodb.agentic.workflow.v1.WorkflowDeclaration
|
|
13
|
+
*/
|
|
14
|
+
export type WorkflowDeclaration = Message<"mongodb.agentic.workflow.v1.WorkflowDeclaration"> & {
|
|
15
|
+
/**
|
|
16
|
+
* @generated from field: string workflow_name = 1;
|
|
17
|
+
*/
|
|
18
|
+
workflowName: string;
|
|
19
|
+
/**
|
|
20
|
+
* @generated from field: string workflow_version = 2;
|
|
21
|
+
*/
|
|
22
|
+
workflowVersion: string;
|
|
23
|
+
/**
|
|
24
|
+
* @generated from field: string adapter_name = 3;
|
|
25
|
+
*/
|
|
26
|
+
adapterName: string;
|
|
27
|
+
/**
|
|
28
|
+
* @generated from field: string adapter_version = 4;
|
|
29
|
+
*/
|
|
30
|
+
adapterVersion: string;
|
|
31
|
+
/**
|
|
32
|
+
* memory_enabled pins agent.yaml features.memory for the execution so
|
|
33
|
+
* replacement attempts use the original synchronization contract.
|
|
34
|
+
*
|
|
35
|
+
* @generated from field: bool memory_enabled = 5;
|
|
36
|
+
*/
|
|
37
|
+
memoryEnabled: boolean;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Describes the message mongodb.agentic.workflow.v1.WorkflowDeclaration.
|
|
41
|
+
* Use `create(WorkflowDeclarationSchema)` to create a new message.
|
|
42
|
+
*/
|
|
43
|
+
export declare const WorkflowDeclarationSchema: GenMessage<WorkflowDeclaration>;
|
|
44
|
+
/**
|
|
45
|
+
* BranchLineage identifies the immutable source cutoff for a branch attempt.
|
|
46
|
+
*
|
|
47
|
+
* @generated from message mongodb.agentic.workflow.v1.BranchLineage
|
|
48
|
+
*/
|
|
49
|
+
export type BranchLineage = Message<"mongodb.agentic.workflow.v1.BranchLineage"> & {
|
|
50
|
+
/**
|
|
51
|
+
* source_workflow_identity identifies the source execution in the branch's
|
|
52
|
+
* organization, project, and workspace.
|
|
53
|
+
*
|
|
54
|
+
* @generated from field: mongodb.agentic.workflow.v1.WorkflowIdentity source_workflow_identity = 1;
|
|
55
|
+
*/
|
|
56
|
+
sourceWorkflowIdentity?: WorkflowIdentity | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* source_step_ordinal is the positive committed-step ordinal whose snapshot
|
|
59
|
+
* seeds the branch. Branch-local steps begin after this cutoff.
|
|
60
|
+
*
|
|
61
|
+
* @generated from field: int64 source_step_ordinal = 2;
|
|
62
|
+
*/
|
|
63
|
+
sourceStepOrdinal: bigint;
|
|
64
|
+
/**
|
|
65
|
+
* source_state_hash is the canonical hash of the committed source snapshot
|
|
66
|
+
* at source_step_ordinal.
|
|
67
|
+
*
|
|
68
|
+
* @generated from field: string source_state_hash = 3;
|
|
69
|
+
*/
|
|
70
|
+
sourceStateHash: string;
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* Describes the message mongodb.agentic.workflow.v1.BranchLineage.
|
|
74
|
+
* Use `create(BranchLineageSchema)` to create a new message.
|
|
75
|
+
*/
|
|
76
|
+
export declare const BranchLineageSchema: GenMessage<BranchLineage>;
|
|
77
|
+
/**
|
|
78
|
+
* AttemptContext is the OE-issued identity and fence for one runtime attempt.
|
|
79
|
+
*
|
|
80
|
+
* @generated from message mongodb.agentic.workflow.v1.AttemptContext
|
|
81
|
+
*/
|
|
82
|
+
export type AttemptContext = Message<"mongodb.agentic.workflow.v1.AttemptContext"> & {
|
|
83
|
+
/**
|
|
84
|
+
* @generated from field: string attempt_id = 1;
|
|
85
|
+
*/
|
|
86
|
+
attemptId: string;
|
|
87
|
+
/**
|
|
88
|
+
* @generated from field: int64 fencing_token = 2;
|
|
89
|
+
*/
|
|
90
|
+
fencingToken: bigint;
|
|
91
|
+
/**
|
|
92
|
+
* @generated from field: string owner_id = 3;
|
|
93
|
+
*/
|
|
94
|
+
ownerId: string;
|
|
95
|
+
/**
|
|
96
|
+
* @generated from field: bool replay_mode = 4;
|
|
97
|
+
*/
|
|
98
|
+
replayMode: boolean;
|
|
99
|
+
/**
|
|
100
|
+
* @generated from field: mongodb.agentic.workflow.v1.WorkflowIdentity workflow_identity = 5;
|
|
101
|
+
*/
|
|
102
|
+
workflowIdentity?: WorkflowIdentity | undefined;
|
|
103
|
+
/**
|
|
104
|
+
* @generated from field: mongodb.agentic.workflow.v1.WorkflowDeclaration declaration = 6;
|
|
105
|
+
*/
|
|
106
|
+
declaration?: WorkflowDeclaration | undefined;
|
|
107
|
+
/**
|
|
108
|
+
* @generated from field: int64 heartbeat_interval_ms = 7;
|
|
109
|
+
*/
|
|
110
|
+
heartbeatIntervalMs: bigint;
|
|
111
|
+
/**
|
|
112
|
+
* @generated from field: mongodb.agentic.workflow.v1.StateSnapshot previous_state = 8;
|
|
113
|
+
*/
|
|
114
|
+
previousState?: StateSnapshot | undefined;
|
|
115
|
+
/**
|
|
116
|
+
* branch_lineage is present only for a branched execution and identifies the
|
|
117
|
+
* immutable source cutoff represented by previous_state.
|
|
118
|
+
*
|
|
119
|
+
* @generated from field: mongodb.agentic.workflow.v1.BranchLineage branch_lineage = 9;
|
|
120
|
+
*/
|
|
121
|
+
branchLineage?: BranchLineage | undefined;
|
|
122
|
+
};
|
|
123
|
+
/**
|
|
124
|
+
* Describes the message mongodb.agentic.workflow.v1.AttemptContext.
|
|
125
|
+
* Use `create(AttemptContextSchema)` to create a new message.
|
|
126
|
+
*/
|
|
127
|
+
export declare const AttemptContextSchema: GenMessage<AttemptContext>;
|
|
128
|
+
/**
|
|
129
|
+
* AttemptStartRequest asks OE to activate an attempt for an execution.
|
|
130
|
+
*
|
|
131
|
+
* @generated from message mongodb.agentic.workflow.v1.AttemptStartRequest
|
|
132
|
+
*/
|
|
133
|
+
export type AttemptStartRequest = Message<"mongodb.agentic.workflow.v1.AttemptStartRequest"> & {
|
|
134
|
+
/**
|
|
135
|
+
* @generated from field: mongodb.agentic.workflow.v1.WorkflowIdentity workflow_identity = 1;
|
|
136
|
+
*/
|
|
137
|
+
workflowIdentity?: WorkflowIdentity | undefined;
|
|
138
|
+
/**
|
|
139
|
+
* @generated from field: string owner_id = 2;
|
|
140
|
+
*/
|
|
141
|
+
ownerId: string;
|
|
142
|
+
/**
|
|
143
|
+
* @generated from field: mongodb.agentic.workflow.v1.WorkflowDeclaration declaration = 3;
|
|
144
|
+
*/
|
|
145
|
+
declaration?: WorkflowDeclaration | undefined;
|
|
146
|
+
};
|
|
147
|
+
/**
|
|
148
|
+
* Describes the message mongodb.agentic.workflow.v1.AttemptStartRequest.
|
|
149
|
+
* Use `create(AttemptStartRequestSchema)` to create a new message.
|
|
150
|
+
*/
|
|
151
|
+
export declare const AttemptStartRequestSchema: GenMessage<AttemptStartRequest>;
|
|
152
|
+
/**
|
|
153
|
+
* AttemptStartResponse returns the accepted attempt or a stable error.
|
|
154
|
+
*
|
|
155
|
+
* @generated from message mongodb.agentic.workflow.v1.AttemptStartResponse
|
|
156
|
+
*/
|
|
157
|
+
export type AttemptStartResponse = Message<"mongodb.agentic.workflow.v1.AttemptStartResponse"> & {
|
|
158
|
+
/**
|
|
159
|
+
* @generated from field: mongodb.agentic.workflow.v1.AttemptContext attempt_context = 1;
|
|
160
|
+
*/
|
|
161
|
+
attemptContext?: AttemptContext | undefined;
|
|
162
|
+
/**
|
|
163
|
+
* @generated from field: mongodb.agentic.workflow.v1.WorkflowError error = 2;
|
|
164
|
+
*/
|
|
165
|
+
error?: WorkflowError | undefined;
|
|
166
|
+
};
|
|
167
|
+
/**
|
|
168
|
+
* Describes the message mongodb.agentic.workflow.v1.AttemptStartResponse.
|
|
169
|
+
* Use `create(AttemptStartResponseSchema)` to create a new message.
|
|
170
|
+
*/
|
|
171
|
+
export declare const AttemptStartResponseSchema: GenMessage<AttemptStartResponse>;
|
|
172
|
+
/**
|
|
173
|
+
* AttemptHeartbeatRequest renews one attempt lease under its current fence.
|
|
174
|
+
*
|
|
175
|
+
* @generated from message mongodb.agentic.workflow.v1.AttemptHeartbeatRequest
|
|
176
|
+
*/
|
|
177
|
+
export type AttemptHeartbeatRequest = Message<"mongodb.agentic.workflow.v1.AttemptHeartbeatRequest"> & {
|
|
178
|
+
/**
|
|
179
|
+
* @generated from field: mongodb.agentic.workflow.v1.WorkflowIdentity workflow_identity = 1;
|
|
180
|
+
*/
|
|
181
|
+
workflowIdentity?: WorkflowIdentity | undefined;
|
|
182
|
+
/**
|
|
183
|
+
* @generated from field: string attempt_id = 2;
|
|
184
|
+
*/
|
|
185
|
+
attemptId: string;
|
|
186
|
+
/**
|
|
187
|
+
* @generated from field: int64 fencing_token = 3;
|
|
188
|
+
*/
|
|
189
|
+
fencingToken: bigint;
|
|
190
|
+
/**
|
|
191
|
+
* @generated from field: string owner_id = 4;
|
|
192
|
+
*/
|
|
193
|
+
ownerId: string;
|
|
194
|
+
};
|
|
195
|
+
/**
|
|
196
|
+
* Describes the message mongodb.agentic.workflow.v1.AttemptHeartbeatRequest.
|
|
197
|
+
* Use `create(AttemptHeartbeatRequestSchema)` to create a new message.
|
|
198
|
+
*/
|
|
199
|
+
export declare const AttemptHeartbeatRequestSchema: GenMessage<AttemptHeartbeatRequest>;
|
|
200
|
+
//# sourceMappingURL=runtime_pb.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime_pb.d.ts","sourceRoot":"","sources":["../../../../src/generated/workflow/v1/runtime_pb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G,SAAS,CAAC;IAEhD;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,6BAA6B,EAAE,UAAU,CAAC,uBAAuB,CACpC,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.12.1 with parameter "target=ts,import_extension=.js,ts_nocheck=false"
|
|
2
|
+
// @generated from file workflow/v1/runtime.proto (package mongodb.agentic.workflow.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
|
|
5
|
+
import { file_workflow_v1_common } from "./common_pb.js";
|
|
6
|
+
import { file_workflow_v1_state } from "./state_pb.js";
|
|
7
|
+
/**
|
|
8
|
+
* Describes the file workflow/v1/runtime.proto.
|
|
9
|
+
*/
|
|
10
|
+
export const file_workflow_v1_runtime = /*@__PURE__*/ fileDesc("Chl3b3JrZmxvdy92MS9ydW50aW1lLnByb3RvEhttb25nb2RiLmFnZW50aWMud29ya2Zsb3cudjEijQEKE1dvcmtmbG93RGVjbGFyYXRpb24SFQoNd29ya2Zsb3dfbmFtZRgBIAEoCRIYChB3b3JrZmxvd192ZXJzaW9uGAIgASgJEhQKDGFkYXB0ZXJfbmFtZRgDIAEoCRIXCg9hZGFwdGVyX3ZlcnNpb24YBCABKAkSFgoObWVtb3J5X2VuYWJsZWQYBSABKAgimAEKDUJyYW5jaExpbmVhZ2USTwoYc291cmNlX3dvcmtmbG93X2lkZW50aXR5GAEgASgLMi0ubW9uZ29kYi5hZ2VudGljLndvcmtmbG93LnYxLldvcmtmbG93SWRlbnRpdHkSGwoTc291cmNlX3N0ZXBfb3JkaW5hbBgCIAEoAxIZChFzb3VyY2Vfc3RhdGVfaGFzaBgDIAEoCSKaAwoOQXR0ZW1wd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mbG93LnYxLldvcmtmbG93SWRlbnRpdHkSEgoKYXR0ZW1wdF9pZBgCIAEoCRIVCg1mZW5jaW5nX3Rva2VuGAMgASgDEhAKCG93bmVyX2lkGAQgASgJQkBaPmdpdGh1Yi5jb20vMTBnZW4vYWdlbnRpYy1wbGF0Zm9ybS9wcm90by93b3JrZmxvdy92MTt3b3JrZmxvd3YxYgZwcm90bzM", [file_workflow_v1_common, file_workflow_v1_state]);
|
|
11
|
+
/**
|
|
12
|
+
* Describes the message mongodb.agentic.workflow.v1.WorkflowDeclaration.
|
|
13
|
+
* Use `create(WorkflowDeclarationSchema)` to create a new message.
|
|
14
|
+
*/
|
|
15
|
+
export const WorkflowDeclarationSchema = /*@__PURE__*/ messageDesc(file_workflow_v1_runtime, 0);
|
|
16
|
+
/**
|
|
17
|
+
* Describes the message mongodb.agentic.workflow.v1.BranchLineage.
|
|
18
|
+
* Use `create(BranchLineageSchema)` to create a new message.
|
|
19
|
+
*/
|
|
20
|
+
export const BranchLineageSchema = /*@__PURE__*/ messageDesc(file_workflow_v1_runtime, 1);
|
|
21
|
+
/**
|
|
22
|
+
* Describes the message mongodb.agentic.workflow.v1.AttemptContext.
|
|
23
|
+
* Use `create(AttemptContextSchema)` to create a new message.
|
|
24
|
+
*/
|
|
25
|
+
export const AttemptContextSchema = /*@__PURE__*/ messageDesc(file_workflow_v1_runtime, 2);
|
|
26
|
+
/**
|
|
27
|
+
* Describes the message mongodb.agentic.workflow.v1.AttemptStartRequest.
|
|
28
|
+
* Use `create(AttemptStartRequestSchema)` to create a new message.
|
|
29
|
+
*/
|
|
30
|
+
export const AttemptStartRequestSchema = /*@__PURE__*/ messageDesc(file_workflow_v1_runtime, 3);
|
|
31
|
+
/**
|
|
32
|
+
* Describes the message mongodb.agentic.workflow.v1.AttemptStartResponse.
|
|
33
|
+
* Use `create(AttemptStartResponseSchema)` to create a new message.
|
|
34
|
+
*/
|
|
35
|
+
export const AttemptStartResponseSchema = /*@__PURE__*/ messageDesc(file_workflow_v1_runtime, 4);
|
|
36
|
+
/**
|
|
37
|
+
* Describes the message mongodb.agentic.workflow.v1.AttemptHeartbeatRequest.
|
|
38
|
+
* Use `create(AttemptHeartbeatRequestSchema)` to create a new message.
|
|
39
|
+
*/
|
|
40
|
+
export const AttemptHeartbeatRequestSchema = /*@__PURE__*/ messageDesc(file_workflow_v1_runtime, 5);
|
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { Value } from "@bufbuild/protobuf/wkt";
|
|
3
|
+
import type { StepActivityEntry, StepSuspensionEntry } from "./activity_pb.js";
|
|
4
|
+
import type { ActivityPosition, WorkflowError, WorkflowIdentity } from "./common_pb.js";
|
|
5
|
+
import type { JsonObject, Message } from "@bufbuild/protobuf";
|
|
6
|
+
/**
|
|
7
|
+
* Describes the file workflow/v1/state.proto.
|
|
8
|
+
*/
|
|
9
|
+
export declare const file_workflow_v1_state: GenFile;
|
|
10
|
+
/**
|
|
11
|
+
* WorkflowMessage is the durable, framework-neutral conversation value.
|
|
12
|
+
* Framework adapters reconstruct their native message types from these
|
|
13
|
+
* explicit fields; framework serializer output is not durable state.
|
|
14
|
+
*
|
|
15
|
+
* @generated from message mongodb.agentic.workflow.v1.WorkflowMessage
|
|
16
|
+
*/
|
|
17
|
+
export type WorkflowMessage = Message<"mongodb.agentic.workflow.v1.WorkflowMessage"> & {
|
|
18
|
+
/**
|
|
19
|
+
* @generated from field: mongodb.agentic.workflow.v1.MessageRole role = 1;
|
|
20
|
+
*/
|
|
21
|
+
role: MessageRole;
|
|
22
|
+
/**
|
|
23
|
+
* @generated from field: google.protobuf.Value content = 2;
|
|
24
|
+
*/
|
|
25
|
+
content?: Value | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* @generated from field: repeated google.protobuf.Struct tool_calls = 3;
|
|
28
|
+
*/
|
|
29
|
+
toolCalls: JsonObject[];
|
|
30
|
+
/**
|
|
31
|
+
* @generated from field: optional string tool_call_id = 4;
|
|
32
|
+
*/
|
|
33
|
+
toolCallId?: string | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* @generated from field: optional string name = 5;
|
|
36
|
+
*/
|
|
37
|
+
name?: string | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* @generated from field: optional string id = 6;
|
|
40
|
+
*/
|
|
41
|
+
id?: string | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* Deprecated compatibility envelope for states written before explicit
|
|
44
|
+
* message fields were introduced. Adapters read it during replay but do not
|
|
45
|
+
* write it for new executions.
|
|
46
|
+
*
|
|
47
|
+
* @generated from field: google.protobuf.Value source_message = 9 [deprecated = true];
|
|
48
|
+
* @deprecated
|
|
49
|
+
*/
|
|
50
|
+
sourceMessage?: Value | undefined;
|
|
51
|
+
/**
|
|
52
|
+
* Deprecated platform attachment field paired with source_message.
|
|
53
|
+
*
|
|
54
|
+
* @generated from field: repeated google.protobuf.Struct artifacts = 10 [deprecated = true];
|
|
55
|
+
* @deprecated
|
|
56
|
+
*/
|
|
57
|
+
artifacts: JsonObject[];
|
|
58
|
+
/**
|
|
59
|
+
* @generated from field: google.protobuf.Struct additional_kwargs = 11;
|
|
60
|
+
*/
|
|
61
|
+
additionalKwargs?: JsonObject | undefined;
|
|
62
|
+
/**
|
|
63
|
+
* @generated from field: google.protobuf.Struct response_metadata = 12;
|
|
64
|
+
*/
|
|
65
|
+
responseMetadata?: JsonObject | undefined;
|
|
66
|
+
/**
|
|
67
|
+
* @generated from field: optional bool is_error = 13;
|
|
68
|
+
*/
|
|
69
|
+
isError?: boolean | undefined;
|
|
70
|
+
/**
|
|
71
|
+
* Tool artifact is machine-readable result data kept off the model-facing
|
|
72
|
+
* content channel. It may contain any JSON value.
|
|
73
|
+
*
|
|
74
|
+
* @generated from field: google.protobuf.Value tool_artifact = 14;
|
|
75
|
+
*/
|
|
76
|
+
toolArtifact?: Value | undefined;
|
|
77
|
+
/**
|
|
78
|
+
* Platform artifacts are platform-owned message attachments surfaced through
|
|
79
|
+
* message metadata. They are distinct from a tool result's tool_artifact.
|
|
80
|
+
*
|
|
81
|
+
* @generated from field: repeated google.protobuf.Struct platform_artifacts = 15;
|
|
82
|
+
*/
|
|
83
|
+
platformArtifacts: JsonObject[];
|
|
84
|
+
/**
|
|
85
|
+
* @generated from field: repeated google.protobuf.Struct invalid_tool_calls = 16;
|
|
86
|
+
*/
|
|
87
|
+
invalidToolCalls: JsonObject[];
|
|
88
|
+
};
|
|
89
|
+
/**
|
|
90
|
+
* Describes the message mongodb.agentic.workflow.v1.WorkflowMessage.
|
|
91
|
+
* Use `create(WorkflowMessageSchema)` to create a new message.
|
|
92
|
+
*/
|
|
93
|
+
export declare const WorkflowMessageSchema: GenMessage<WorkflowMessage>;
|
|
94
|
+
/**
|
|
95
|
+
* StateSnapshot is the complete application state needed by the next turn.
|
|
96
|
+
* Properties excludes the conventional messages channel.
|
|
97
|
+
*
|
|
98
|
+
* @generated from message mongodb.agentic.workflow.v1.StateSnapshot
|
|
99
|
+
*/
|
|
100
|
+
export type StateSnapshot = Message<"mongodb.agentic.workflow.v1.StateSnapshot"> & {
|
|
101
|
+
/**
|
|
102
|
+
* @generated from field: google.protobuf.Struct properties = 1;
|
|
103
|
+
*/
|
|
104
|
+
properties?: JsonObject | undefined;
|
|
105
|
+
/**
|
|
106
|
+
* @generated from field: repeated mongodb.agentic.workflow.v1.WorkflowMessage messages = 2;
|
|
107
|
+
*/
|
|
108
|
+
messages: WorkflowMessage[];
|
|
109
|
+
/**
|
|
110
|
+
* Version 0 is the legacy source_message encoding. Version 1 means every
|
|
111
|
+
* message carries the explicit fields required for framework reconstruction.
|
|
112
|
+
*
|
|
113
|
+
* @generated from field: uint32 message_encoding_version = 3;
|
|
114
|
+
*/
|
|
115
|
+
messageEncodingVersion: number;
|
|
116
|
+
/**
|
|
117
|
+
* Adapter-selected application state used only for replacement replay
|
|
118
|
+
* comparison. When absent, properties is the replay comparison input.
|
|
119
|
+
*
|
|
120
|
+
* @generated from field: google.protobuf.Struct replay_properties = 4;
|
|
121
|
+
*/
|
|
122
|
+
replayProperties?: JsonObject | undefined;
|
|
123
|
+
};
|
|
124
|
+
/**
|
|
125
|
+
* Describes the message mongodb.agentic.workflow.v1.StateSnapshot.
|
|
126
|
+
* Use `create(StateSnapshotSchema)` to create a new message.
|
|
127
|
+
*/
|
|
128
|
+
export declare const StateSnapshotSchema: GenMessage<StateSnapshot>;
|
|
129
|
+
/**
|
|
130
|
+
* CompleteExecutionCommand commits one successful execution's final state for
|
|
131
|
+
* the next invocation in the session.
|
|
132
|
+
*
|
|
133
|
+
* @generated from message mongodb.agentic.workflow.v1.CompleteExecutionCommand
|
|
134
|
+
*/
|
|
135
|
+
export type CompleteExecutionCommand = Message<"mongodb.agentic.workflow.v1.CompleteExecutionCommand"> & {
|
|
136
|
+
/**
|
|
137
|
+
* @generated from field: mongodb.agentic.workflow.v1.WorkflowIdentity workflow_identity = 1;
|
|
138
|
+
*/
|
|
139
|
+
workflowIdentity?: WorkflowIdentity | undefined;
|
|
140
|
+
/**
|
|
141
|
+
* @generated from field: string attempt_id = 2;
|
|
142
|
+
*/
|
|
143
|
+
attemptId: string;
|
|
144
|
+
/**
|
|
145
|
+
* @generated from field: int64 fencing_token = 3;
|
|
146
|
+
*/
|
|
147
|
+
fencingToken: bigint;
|
|
148
|
+
/**
|
|
149
|
+
* @generated from field: mongodb.agentic.workflow.v1.StateSnapshot state = 4;
|
|
150
|
+
*/
|
|
151
|
+
state?: StateSnapshot | undefined;
|
|
152
|
+
};
|
|
153
|
+
/**
|
|
154
|
+
* Describes the message mongodb.agentic.workflow.v1.CompleteExecutionCommand.
|
|
155
|
+
* Use `create(CompleteExecutionCommandSchema)` to create a new message.
|
|
156
|
+
*/
|
|
157
|
+
export declare const CompleteExecutionCommandSchema: GenMessage<CompleteExecutionCommand>;
|
|
158
|
+
/**
|
|
159
|
+
* FinalizeStepCommand reaches one framework boundary. A settled root step
|
|
160
|
+
* supplies state; an interrupted step supplies its complete suspension frontier.
|
|
161
|
+
*
|
|
162
|
+
* @generated from message mongodb.agentic.workflow.v1.FinalizeStepCommand
|
|
163
|
+
*/
|
|
164
|
+
export type FinalizeStepCommand = Message<"mongodb.agentic.workflow.v1.FinalizeStepCommand"> & {
|
|
165
|
+
/**
|
|
166
|
+
* @generated from field: mongodb.agentic.workflow.v1.WorkflowIdentity workflow_identity = 1;
|
|
167
|
+
*/
|
|
168
|
+
workflowIdentity?: WorkflowIdentity | undefined;
|
|
169
|
+
/**
|
|
170
|
+
* @generated from field: string attempt_id = 2;
|
|
171
|
+
*/
|
|
172
|
+
attemptId: string;
|
|
173
|
+
/**
|
|
174
|
+
* @generated from field: int64 fencing_token = 3;
|
|
175
|
+
*/
|
|
176
|
+
fencingToken: bigint;
|
|
177
|
+
/**
|
|
178
|
+
* @generated from field: mongodb.agentic.workflow.v1.StateSnapshot state = 4;
|
|
179
|
+
*/
|
|
180
|
+
state?: StateSnapshot | undefined;
|
|
181
|
+
/**
|
|
182
|
+
* @generated from field: int64 step_ordinal = 5;
|
|
183
|
+
*/
|
|
184
|
+
stepOrdinal: bigint;
|
|
185
|
+
/**
|
|
186
|
+
* observed_activity_positions reports the activity positions this attempt
|
|
187
|
+
* encountered before finalization. OE validates completeness against history.
|
|
188
|
+
*
|
|
189
|
+
* @generated from field: repeated mongodb.agentic.workflow.v1.ActivityPosition observed_activity_positions = 6;
|
|
190
|
+
*/
|
|
191
|
+
observedActivityPositions: ActivityPosition[];
|
|
192
|
+
/**
|
|
193
|
+
* @generated from field: repeated mongodb.agentic.workflow.v1.StepSuspensionEntry suspensions = 7;
|
|
194
|
+
*/
|
|
195
|
+
suspensions: StepSuspensionEntry[];
|
|
196
|
+
};
|
|
197
|
+
/**
|
|
198
|
+
* Describes the message mongodb.agentic.workflow.v1.FinalizeStepCommand.
|
|
199
|
+
* Use `create(FinalizeStepCommandSchema)` to create a new message.
|
|
200
|
+
*/
|
|
201
|
+
export declare const FinalizeStepCommandSchema: GenMessage<FinalizeStepCommand>;
|
|
202
|
+
/**
|
|
203
|
+
* FinalizeStepResponse returns every positioned outcome for an interrupted
|
|
204
|
+
* frontier and no entries for a committed root step.
|
|
205
|
+
*
|
|
206
|
+
* @generated from message mongodb.agentic.workflow.v1.FinalizeStepResponse
|
|
207
|
+
*/
|
|
208
|
+
export type FinalizeStepResponse = Message<"mongodb.agentic.workflow.v1.FinalizeStepResponse"> & {
|
|
209
|
+
/**
|
|
210
|
+
* @generated from field: repeated mongodb.agentic.workflow.v1.StepActivityEntry entries = 1;
|
|
211
|
+
*/
|
|
212
|
+
entries: StepActivityEntry[];
|
|
213
|
+
/**
|
|
214
|
+
* @generated from field: mongodb.agentic.workflow.v1.WorkflowError error = 2;
|
|
215
|
+
*/
|
|
216
|
+
error?: WorkflowError | undefined;
|
|
217
|
+
};
|
|
218
|
+
/**
|
|
219
|
+
* Describes the message mongodb.agentic.workflow.v1.FinalizeStepResponse.
|
|
220
|
+
* Use `create(FinalizeStepResponseSchema)` to create a new message.
|
|
221
|
+
*/
|
|
222
|
+
export declare const FinalizeStepResponseSchema: GenMessage<FinalizeStepResponse>;
|
|
223
|
+
/**
|
|
224
|
+
* MessageRole identifies the conversational role of a workflow message.
|
|
225
|
+
*
|
|
226
|
+
* @generated from enum mongodb.agentic.workflow.v1.MessageRole
|
|
227
|
+
*/
|
|
228
|
+
export declare enum MessageRole {
|
|
229
|
+
/**
|
|
230
|
+
* @generated from enum value: MESSAGE_ROLE_UNSPECIFIED = 0;
|
|
231
|
+
*/
|
|
232
|
+
UNSPECIFIED = 0,
|
|
233
|
+
/**
|
|
234
|
+
* @generated from enum value: MESSAGE_ROLE_USER = 1;
|
|
235
|
+
*/
|
|
236
|
+
USER = 1,
|
|
237
|
+
/**
|
|
238
|
+
* @generated from enum value: MESSAGE_ROLE_ASSISTANT = 2;
|
|
239
|
+
*/
|
|
240
|
+
ASSISTANT = 2,
|
|
241
|
+
/**
|
|
242
|
+
* @generated from enum value: MESSAGE_ROLE_TOOL = 3;
|
|
243
|
+
*/
|
|
244
|
+
TOOL = 3,
|
|
245
|
+
/**
|
|
246
|
+
* @generated from enum value: MESSAGE_ROLE_SYSTEM = 4;
|
|
247
|
+
*/
|
|
248
|
+
SYSTEM = 4
|
|
249
|
+
}
|
|
250
|
+
/**
|
|
251
|
+
* Describes the enum mongodb.agentic.workflow.v1.MessageRole.
|
|
252
|
+
*/
|
|
253
|
+
export declare const MessageRoleSchema: GenEnum<MessageRole>;
|
|
254
|
+
//# sourceMappingURL=state_pb.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state_pb.d.ts","sourceRoot":"","sources":["../../../../src/generated/workflow/v1/state_pb.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAEjF,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAEpD,OAAO,KAAK,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAE/E,OAAO,KAAK,EAAE,gBAAgB,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAExF,OAAO,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAE9D;;GAEG;AACH,eAAO,MAAM,sBAAsB,EAAE,OACugF,CAAC;AAE7iF;;;;;;GAMG;AACH,MAAM,MAAM,eAAe,GAAG,OAAO,CAAC,6CAA6C,CAAC,GAAG;IACrF;;OAEG;IACH,IAAI,EAAE,WAAW,CAAC;IAElB;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,GAAG,SAAS,CAAC;IAE5B;;OAEG;IACH,SAAS,EAAE,UAAU,EAAE,CAAC;IAExB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAEhC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS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,OAAO,CAAC,WAAW,CACd,CAAC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.12.1 with parameter "target=ts,import_extension=.js,ts_nocheck=false"
|
|
2
|
+
// @generated from file workflow/v1/state.proto (package mongodb.agentic.workflow.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
|
|
5
|
+
import { file_google_protobuf_struct } from "@bufbuild/protobuf/wkt";
|
|
6
|
+
import { file_workflow_v1_activity } from "./activity_pb.js";
|
|
7
|
+
import { file_workflow_v1_common } from "./common_pb.js";
|
|
8
|
+
/**
|
|
9
|
+
* Describes the file workflow/v1/state.proto.
|
|
10
|
+
*/
|
|
11
|
+
export const file_workflow_v1_state = /*@__PURE__*/ fileDesc("Chd3b3JrZmxvdy92MS9zdGF0ZS5wcm90bxIbbW9uZ29kYi5hZ2VudGljLndvcmtmbG93LnYxIpQFCg9Xb3JrZmxvd01lc3NhZ2USNgoEcm9sZRgBIAEoDjIoLm1vbmdvZGIuYWdlbnRpYy53b3JrZmxvdy52MS5NZXNzYWdlUm9sZRInCgdjb250ZW50GAIgASgLMhYuZ29vZ2xlLnByb3RvYnVmLlZhbHVlEisKCnRvb2xfY2FsbHMYAyADKAsyFy5nb29nbGUucHJvdG9idWYuU3RydWN0EhkKDHRvb2xfY2FsbF9pZBgEIAEoCUgAiAEBEhEKBG5hbWUYBSABKAlIAYgBARIPCgJpZBgGIAEoCUgCiAEBEjIKDnNvdXJjZV9tZXNzYWdlGAkgASgLMhYuZ29vZ2xlLnByb3RvYnVmLlZhbHVlQgIYARIuCglhcnRpZmFjdHMYCiADKAsyFy5nb29nbGUucHJvdG9idWYuU3RydWN0QgIYARIyChFhZGRpdGlvbmFsX2t3YXJncxgLIAEoCzIXLmdvb2dsZS5wcm90b2J1Zi5TdHJ1Y3QSMgoRcmVzcG9uc2VfbWV0YWRhdGEYDCABKAsy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EoAxI5CgVzdGF0ZRgEIAEoCzIqLm1vbmdvZGIuYWdlbnRpYy53b3JrZmxvdy52MS5TdGF0ZVNuYXBzaG90EhQKDHN0ZXBfb3JkaW5hbBgFIAEoAxJSChtvYnNlcnZlZF9hY3Rpdml0eV9wb3NpdGlvbnMYBiADKAsyLS5tb25nb2RiLmFnZW50aWMud29ya2Zsb3cudjEuQWN0aXZpdHlQb3NpdGlvbhJFCgtzdXNwZW5zaW9ucxgHIAMoCzIwLm1vbmdvZGIuYWdlbnRpYy53b3JrZmxvdy52MS5TdGVwU3VzcGVuc2lvbkVudHJ5IpIBChRGaW5hbGl6ZVN0ZXBSZXNwb25zZRI/CgdlbnRyaWVzGAEgAygLMi4ubW9uZ29kYi5hZ2VudGljLndvcmtmbG93LnYxLlN0ZXBBY3Rpdml0eUVudHJ5EjkKBWVycm9yGAIgASgLMioubW9uZ29kYi5hZ2VudGljLndvcmtmbG93LnYxLldvcmtmbG93RXJyb3IqjgEKC01lc3NhZ2VSb2xlEhwKGE1FU1NBR0VfUk9MRV9VTlNQRUNJRklFRBAAEhUKEU1FU1NBR0VfUk9MRV9VU0VSEAESGgoWTUVTU0FHRV9ST0xFX0FTU0lTVEFOVBACEhUKEU1FU1NBR0VfUk9MRV9UT09MEAMSFwoTTUVTU0FHRV9ST0xFX1NZU1RFTRAEQkBaPmdpdGh1Yi5jb20vMTBnZW4vYWdlbnRpYy1wbGF0Zm9ybS9wcm90by93b3JrZmxvdy92MTt3b3JrZmxvd3YxYgZwcm90bzM", [file_google_protobuf_struct, file_workflow_v1_activity, file_workflow_v1_common]);
|
|
12
|
+
/**
|
|
13
|
+
* Describes the message mongodb.agentic.workflow.v1.WorkflowMessage.
|
|
14
|
+
* Use `create(WorkflowMessageSchema)` to create a new message.
|
|
15
|
+
*/
|
|
16
|
+
export const WorkflowMessageSchema = /*@__PURE__*/ messageDesc(file_workflow_v1_state, 0);
|
|
17
|
+
/**
|
|
18
|
+
* Describes the message mongodb.agentic.workflow.v1.StateSnapshot.
|
|
19
|
+
* Use `create(StateSnapshotSchema)` to create a new message.
|
|
20
|
+
*/
|
|
21
|
+
export const StateSnapshotSchema = /*@__PURE__*/ messageDesc(file_workflow_v1_state, 1);
|
|
22
|
+
/**
|
|
23
|
+
* Describes the message mongodb.agentic.workflow.v1.CompleteExecutionCommand.
|
|
24
|
+
* Use `create(CompleteExecutionCommandSchema)` to create a new message.
|
|
25
|
+
*/
|
|
26
|
+
export const CompleteExecutionCommandSchema = /*@__PURE__*/ messageDesc(file_workflow_v1_state, 2);
|
|
27
|
+
/**
|
|
28
|
+
* Describes the message mongodb.agentic.workflow.v1.FinalizeStepCommand.
|
|
29
|
+
* Use `create(FinalizeStepCommandSchema)` to create a new message.
|
|
30
|
+
*/
|
|
31
|
+
export const FinalizeStepCommandSchema = /*@__PURE__*/ messageDesc(file_workflow_v1_state, 3);
|
|
32
|
+
/**
|
|
33
|
+
* Describes the message mongodb.agentic.workflow.v1.FinalizeStepResponse.
|
|
34
|
+
* Use `create(FinalizeStepResponseSchema)` to create a new message.
|
|
35
|
+
*/
|
|
36
|
+
export const FinalizeStepResponseSchema = /*@__PURE__*/ messageDesc(file_workflow_v1_state, 4);
|
|
37
|
+
/**
|
|
38
|
+
* MessageRole identifies the conversational role of a workflow message.
|
|
39
|
+
*
|
|
40
|
+
* @generated from enum mongodb.agentic.workflow.v1.MessageRole
|
|
41
|
+
*/
|
|
42
|
+
export var MessageRole;
|
|
43
|
+
(function (MessageRole) {
|
|
44
|
+
/**
|
|
45
|
+
* @generated from enum value: MESSAGE_ROLE_UNSPECIFIED = 0;
|
|
46
|
+
*/
|
|
47
|
+
MessageRole[MessageRole["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
48
|
+
/**
|
|
49
|
+
* @generated from enum value: MESSAGE_ROLE_USER = 1;
|
|
50
|
+
*/
|
|
51
|
+
MessageRole[MessageRole["USER"] = 1] = "USER";
|
|
52
|
+
/**
|
|
53
|
+
* @generated from enum value: MESSAGE_ROLE_ASSISTANT = 2;
|
|
54
|
+
*/
|
|
55
|
+
MessageRole[MessageRole["ASSISTANT"] = 2] = "ASSISTANT";
|
|
56
|
+
/**
|
|
57
|
+
* @generated from enum value: MESSAGE_ROLE_TOOL = 3;
|
|
58
|
+
*/
|
|
59
|
+
MessageRole[MessageRole["TOOL"] = 3] = "TOOL";
|
|
60
|
+
/**
|
|
61
|
+
* @generated from enum value: MESSAGE_ROLE_SYSTEM = 4;
|
|
62
|
+
*/
|
|
63
|
+
MessageRole[MessageRole["SYSTEM"] = 4] = "SYSTEM";
|
|
64
|
+
})(MessageRole || (MessageRole = {}));
|
|
65
|
+
/**
|
|
66
|
+
* Describes the enum mongodb.agentic.workflow.v1.MessageRole.
|
|
67
|
+
*/
|
|
68
|
+
export const MessageRoleSchema = /*@__PURE__*/ enumDesc(file_workflow_v1_state, 0);
|