@stigmer/protos 0.5.1 → 1.0.0
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/ai/stigmer/agentic/agentexecution/v1/api_pb.d.ts +7 -0
- package/ai/stigmer/agentic/agentexecution/v1/api_pb.js +2 -1
- package/ai/stigmer/agentic/agentexecution/v1/api_pb.js.map +1 -1
- package/ai/stigmer/agentic/agentexecution/v1/enum_pb.d.ts +54 -0
- package/ai/stigmer/agentic/agentexecution/v1/enum_pb.js +56 -1
- package/ai/stigmer/agentic/agentexecution/v1/enum_pb.js.map +1 -1
- package/ai/stigmer/agentic/agentexecution/v1/io_pb.d.ts +149 -1
- package/ai/stigmer/agentic/agentexecution/v1/io_pb.js +50 -2
- package/ai/stigmer/agentic/agentexecution/v1/io_pb.js.map +1 -1
- package/ai/stigmer/agentic/agentexecution/v1/query_connect.d.ts +31 -0
- package/ai/stigmer/agentic/agentexecution/v1/query_connect.js +32 -1
- package/ai/stigmer/agentic/agentexecution/v1/query_connect.js.map +1 -1
- package/ai/stigmer/agentic/agentexecution/v1/query_pb.d.ts +31 -1
- package/ai/stigmer/agentic/agentexecution/v1/query_pb.js +1 -1
- package/ai/stigmer/agentic/agentexecution/v1/query_pb.js.map +1 -1
- package/ai/stigmer/agentic/agentexecution/v1/spec_pb.d.ts +16 -0
- package/ai/stigmer/agentic/agentexecution/v1/spec_pb.js +2 -1
- package/ai/stigmer/agentic/agentexecution/v1/spec_pb.js.map +1 -1
- package/ai/stigmer/agentic/agentexecution/v1/usage_pb.d.ts +68 -0
- package/ai/stigmer/agentic/agentexecution/v1/usage_pb.js +6 -1
- package/ai/stigmer/agentic/agentexecution/v1/usage_pb.js.map +1 -1
- package/ai/stigmer/agentic/artifact/v1/api_pb.d.ts +152 -0
- package/ai/stigmer/agentic/artifact/v1/api_pb.js +24 -0
- package/ai/stigmer/agentic/artifact/v1/api_pb.js.map +1 -0
- package/ai/stigmer/agentic/artifact/v1/command_connect.d.ts +83 -0
- package/ai/stigmer/agentic/artifact/v1/command_connect.js +92 -0
- package/ai/stigmer/agentic/artifact/v1/command_connect.js.map +1 -0
- package/ai/stigmer/agentic/artifact/v1/command_pb.d.ts +86 -0
- package/ai/stigmer/agentic/artifact/v1/command_pb.js +36 -0
- package/ai/stigmer/agentic/artifact/v1/command_pb.js.map +1 -0
- package/ai/stigmer/agentic/artifact/v1/enum_pb.d.ts +49 -0
- package/ai/stigmer/agentic/artifact/v1/enum_pb.js +54 -0
- package/ai/stigmer/agentic/artifact/v1/enum_pb.js.map +1 -0
- package/ai/stigmer/agentic/artifact/v1/io_pb.d.ts +205 -0
- package/ai/stigmer/agentic/artifact/v1/io_pb.js +37 -0
- package/ai/stigmer/agentic/artifact/v1/io_pb.js.map +1 -0
- package/ai/stigmer/agentic/artifact/v1/query_connect.d.ts +127 -0
- package/ai/stigmer/agentic/artifact/v1/query_connect.js +135 -0
- package/ai/stigmer/agentic/artifact/v1/query_connect.js.map +1 -0
- package/ai/stigmer/agentic/artifact/v1/query_pb.d.ts +128 -0
- package/ai/stigmer/agentic/artifact/v1/query_pb.js +32 -0
- package/ai/stigmer/agentic/artifact/v1/query_pb.js.map +1 -0
- package/ai/stigmer/agentic/artifact/v1/spec_pb.d.ts +161 -0
- package/ai/stigmer/agentic/artifact/v1/spec_pb.js +25 -0
- package/ai/stigmer/agentic/artifact/v1/spec_pb.js.map +1 -0
- package/ai/stigmer/agentic/runner/v1/api_pb.d.ts +33 -0
- package/ai/stigmer/agentic/runner/v1/api_pb.js +1 -1
- package/ai/stigmer/agentic/runner/v1/api_pb.js.map +1 -1
- package/ai/stigmer/agentic/runner/v1/io_pb.d.ts +15 -1
- package/ai/stigmer/agentic/runner/v1/io_pb.js +1 -1
- package/ai/stigmer/agentic/runner/v1/io_pb.js.map +1 -1
- package/ai/stigmer/agentic/workflow/v1/command_connect.d.ts +30 -0
- package/ai/stigmer/agentic/workflow/v1/command_connect.js +31 -0
- package/ai/stigmer/agentic/workflow/v1/command_connect.js.map +1 -1
- package/ai/stigmer/agentic/workflow/v1/command_pb.d.ts +30 -0
- package/ai/stigmer/agentic/workflow/v1/command_pb.js +2 -1
- package/ai/stigmer/agentic/workflow/v1/command_pb.js.map +1 -1
- package/ai/stigmer/agentic/workflow/v1/enum_pb.d.ts +141 -1
- package/ai/stigmer/agentic/workflow/v1/enum_pb.js +142 -1
- package/ai/stigmer/agentic/workflow/v1/enum_pb.js.map +1 -1
- package/ai/stigmer/agentic/workflow/v1/spec_pb.d.ts +132 -1
- package/ai/stigmer/agentic/workflow/v1/spec_pb.js +10 -5
- package/ai/stigmer/agentic/workflow/v1/spec_pb.js.map +1 -1
- package/ai/stigmer/agentic/workflow/v1/task_kind_descriptor_pb.d.ts +430 -0
- package/ai/stigmer/agentic/workflow/v1/task_kind_descriptor_pb.js +172 -0
- package/ai/stigmer/agentic/workflow/v1/task_kind_descriptor_pb.js.map +1 -0
- package/ai/stigmer/agentic/workflow/v1/task_kind_registry_query_connect.d.ts +39 -0
- package/ai/stigmer/agentic/workflow/v1/task_kind_registry_query_connect.js +46 -0
- package/ai/stigmer/agentic/workflow/v1/task_kind_registry_query_connect.js.map +1 -0
- package/ai/stigmer/agentic/workflow/v1/task_kind_registry_query_pb.d.ts +41 -0
- package/ai/stigmer/agentic/workflow/v1/task_kind_registry_query_pb.js +28 -0
- package/ai/stigmer/agentic/workflow/v1/task_kind_registry_query_pb.js.map +1 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/agent_call_pb.d.ts +186 -4
- package/ai/stigmer/agentic/workflow/v1/tasks/agent_call_pb.js +10 -2
- package/ai/stigmer/agentic/workflow/v1/tasks/agent_call_pb.js.map +1 -1
- package/ai/stigmer/agentic/workflow/v1/tasks/common_pb.d.ts +67 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/common_pb.js +72 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/common_pb.js.map +1 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/emit_event_pb.d.ts +147 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/emit_event_pb.js +22 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/emit_event_pb.js.map +1 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/eval_pb.d.ts +341 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/eval_pb.js +128 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/eval_pb.js.map +1 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/for_pb.d.ts +129 -2
- package/ai/stigmer/agentic/workflow/v1/tasks/for_pb.js +56 -2
- package/ai/stigmer/agentic/workflow/v1/tasks/for_pb.js.map +1 -1
- package/ai/stigmer/agentic/workflow/v1/tasks/human_input_pb.d.ts +284 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/human_input_pb.js +80 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/human_input_pb.js.map +1 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/llm_call_pb.d.ts +186 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/llm_call_pb.js +18 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/llm_call_pb.js.map +1 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/notification_pb.d.ts +160 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/notification_pb.js +16 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/notification_pb.js.map +1 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/transform_pb.d.ts +124 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/transform_pb.js +65 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/transform_pb.js.map +1 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/try_pb.d.ts +19 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/try_pb.js +1 -1
- package/ai/stigmer/agentic/workflow/v1/tasks/try_pb.js.map +1 -1
- package/ai/stigmer/agentic/workflow/v1/tasks/validate_pb.d.ts +257 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/validate_pb.js +79 -0
- package/ai/stigmer/agentic/workflow/v1/tasks/validate_pb.js.map +1 -0
- package/ai/stigmer/agentic/workflowexecution/v1/api_pb.d.ts +96 -0
- package/ai/stigmer/agentic/workflowexecution/v1/api_pb.js +1 -1
- package/ai/stigmer/agentic/workflowexecution/v1/api_pb.js.map +1 -1
- package/ai/stigmer/agentic/workflowexecution/v1/command_connect.d.ts +47 -0
- package/ai/stigmer/agentic/workflowexecution/v1/command_connect.js +48 -1
- package/ai/stigmer/agentic/workflowexecution/v1/command_connect.js.map +1 -1
- package/ai/stigmer/agentic/workflowexecution/v1/command_pb.d.ts +47 -1
- package/ai/stigmer/agentic/workflowexecution/v1/command_pb.js +1 -1
- package/ai/stigmer/agentic/workflowexecution/v1/command_pb.js.map +1 -1
- package/ai/stigmer/agentic/workflowexecution/v1/event_pb.d.ts +1287 -0
- package/ai/stigmer/agentic/workflowexecution/v1/event_pb.js +303 -0
- package/ai/stigmer/agentic/workflowexecution/v1/event_pb.js.map +1 -0
- package/ai/stigmer/agentic/workflowexecution/v1/io_pb.d.ts +578 -72
- package/ai/stigmer/agentic/workflowexecution/v1/io_pb.js +82 -70
- package/ai/stigmer/agentic/workflowexecution/v1/io_pb.js.map +1 -1
- package/ai/stigmer/agentic/workflowexecution/v1/query_connect.d.ts +182 -0
- package/ai/stigmer/agentic/workflowexecution/v1/query_connect.js +184 -1
- package/ai/stigmer/agentic/workflowexecution/v1/query_connect.js.map +1 -1
- package/ai/stigmer/agentic/workflowexecution/v1/query_pb.d.ts +180 -1
- package/ai/stigmer/agentic/workflowexecution/v1/query_pb.js +2 -1
- package/ai/stigmer/agentic/workflowexecution/v1/query_pb.js.map +1 -1
- package/ai/stigmer/billing/v1/io_pb.d.ts +8 -0
- package/ai/stigmer/billing/v1/io_pb.js +1 -1
- package/ai/stigmer/billing/v1/io_pb.js.map +1 -1
- package/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb.d.ts +6 -0
- package/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb.js +7 -1
- package/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb.js.map +1 -1
- package/ai/stigmer/platform/v1/server_info_connect.d.ts +29 -0
- package/ai/stigmer/platform/v1/server_info_connect.js +36 -0
- package/ai/stigmer/platform/v1/server_info_connect.js.map +1 -0
- package/ai/stigmer/platform/v1/server_info_pb.d.ts +100 -0
- package/ai/stigmer/platform/v1/server_info_pb.js +65 -0
- package/ai/stigmer/platform/v1/server_info_pb.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import type { GenEnum, GenFile } from "@bufbuild/protobuf/codegenv1";
|
|
2
|
+
/**
|
|
3
|
+
* Describes the file ai/stigmer/agentic/workflow/v1/tasks/common.proto.
|
|
4
|
+
*/
|
|
5
|
+
export declare const file_ai_stigmer_agentic_workflow_v1_tasks_common: GenFile;
|
|
6
|
+
/**
|
|
7
|
+
* OnInvalidOutputPolicy defines what happens when an LLM or agent output
|
|
8
|
+
* fails schema validation against a declared output contract or response schema.
|
|
9
|
+
*
|
|
10
|
+
* @internal
|
|
11
|
+
* Shared by AgentCallOutputContract.on_invalid (agent_call) and
|
|
12
|
+
* LlmCallTaskConfig.on_invalid (llm_call). Any task type that produces
|
|
13
|
+
* schema-validated output can reference this enum.
|
|
14
|
+
*
|
|
15
|
+
* Failure handling follows a deliberate hierarchy:
|
|
16
|
+
* - FAIL: strictest — bad output is unacceptable, fail the task immediately
|
|
17
|
+
* - RETRY: re-prompt with validation errors, up to max_retries attempts
|
|
18
|
+
* - FALLBACK: branch to a named task (e.g., human_review) without retrying
|
|
19
|
+
*
|
|
20
|
+
* When ON_INVALID_RETRY is used and all retries are exhausted:
|
|
21
|
+
* - If fallback_task is set: branch to that task
|
|
22
|
+
* - If fallback_task is empty: task fails
|
|
23
|
+
*
|
|
24
|
+
* @since T02 (Structured Agent Output Model)
|
|
25
|
+
*
|
|
26
|
+
* @generated from enum ai.stigmer.agentic.workflow.v1.tasks.OnInvalidOutputPolicy
|
|
27
|
+
*/
|
|
28
|
+
export declare enum OnInvalidOutputPolicy {
|
|
29
|
+
/**
|
|
30
|
+
* Unspecified: defaults to ON_INVALID_FAIL behavior.
|
|
31
|
+
*
|
|
32
|
+
* @generated from enum value: ON_INVALID_POLICY_UNSPECIFIED = 0;
|
|
33
|
+
*/
|
|
34
|
+
ON_INVALID_POLICY_UNSPECIFIED = 0,
|
|
35
|
+
/**
|
|
36
|
+
* Task fails immediately with a schema validation error.
|
|
37
|
+
* The workflow transitions to error handling (try_catch or EXECUTION_FAILED).
|
|
38
|
+
*
|
|
39
|
+
* @generated from enum value: ON_INVALID_FAIL = 1;
|
|
40
|
+
*/
|
|
41
|
+
ON_INVALID_FAIL = 1,
|
|
42
|
+
/**
|
|
43
|
+
* Re-prompt the agent with the validation error message, up to max_retries
|
|
44
|
+
* attempts. The retry message includes the schema and specific validation
|
|
45
|
+
* errors so the agent can self-correct.
|
|
46
|
+
*
|
|
47
|
+
* After exhausting retries:
|
|
48
|
+
* - If fallback_task is set: branch to that task
|
|
49
|
+
* - Otherwise: task fails with a schema validation error
|
|
50
|
+
*
|
|
51
|
+
* @generated from enum value: ON_INVALID_RETRY = 2;
|
|
52
|
+
*/
|
|
53
|
+
ON_INVALID_RETRY = 2,
|
|
54
|
+
/**
|
|
55
|
+
* Branch immediately to fallback_task without retrying.
|
|
56
|
+
* Requires fallback_task to be set on the owning contract/config.
|
|
57
|
+
* Use when human review or an alternative extraction path is preferred
|
|
58
|
+
* over automated retry.
|
|
59
|
+
*
|
|
60
|
+
* @generated from enum value: ON_INVALID_FALLBACK = 3;
|
|
61
|
+
*/
|
|
62
|
+
ON_INVALID_FALLBACK = 3
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Describes the enum ai.stigmer.agentic.workflow.v1.tasks.OnInvalidOutputPolicy.
|
|
66
|
+
*/
|
|
67
|
+
export declare const OnInvalidOutputPolicySchema: GenEnum<OnInvalidOutputPolicy>;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.2.2 with parameter "target=ts,import_extension=js"
|
|
2
|
+
// @generated from file ai/stigmer/agentic/workflow/v1/tasks/common.proto (package ai.stigmer.agentic.workflow.v1.tasks, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { enumDesc, fileDesc } from "@bufbuild/protobuf/codegenv1";
|
|
5
|
+
/**
|
|
6
|
+
* Describes the file ai/stigmer/agentic/workflow/v1/tasks/common.proto.
|
|
7
|
+
*/
|
|
8
|
+
export const file_ai_stigmer_agentic_workflow_v1_tasks_common = /*@__PURE__*/ fileDesc("CjFhaS9zdGlnbWVyL2FnZW50aWMvd29ya2Zsb3cvdjEvdGFza3MvY29tbW9uLnByb3RvEiRhaS5zdGlnbWVyLmFnZW50aWMud29ya2Zsb3cudjEudGFza3MqfgoVT25JbnZhbGlkT3V0cHV0UG9saWN5EiEKHU9OX0lOVkFMSURfUE9MSUNZX1VOU1BFQ0lGSUVEEAASEwoPT05fSU5WQUxJRF9GQUlMEAESFAoQT05fSU5WQUxJRF9SRVRSWRACEhcKE09OX0lOVkFMSURfRkFMTEJBQ0sQA2IGcHJvdG8z");
|
|
9
|
+
/**
|
|
10
|
+
* OnInvalidOutputPolicy defines what happens when an LLM or agent output
|
|
11
|
+
* fails schema validation against a declared output contract or response schema.
|
|
12
|
+
*
|
|
13
|
+
* @internal
|
|
14
|
+
* Shared by AgentCallOutputContract.on_invalid (agent_call) and
|
|
15
|
+
* LlmCallTaskConfig.on_invalid (llm_call). Any task type that produces
|
|
16
|
+
* schema-validated output can reference this enum.
|
|
17
|
+
*
|
|
18
|
+
* Failure handling follows a deliberate hierarchy:
|
|
19
|
+
* - FAIL: strictest — bad output is unacceptable, fail the task immediately
|
|
20
|
+
* - RETRY: re-prompt with validation errors, up to max_retries attempts
|
|
21
|
+
* - FALLBACK: branch to a named task (e.g., human_review) without retrying
|
|
22
|
+
*
|
|
23
|
+
* When ON_INVALID_RETRY is used and all retries are exhausted:
|
|
24
|
+
* - If fallback_task is set: branch to that task
|
|
25
|
+
* - If fallback_task is empty: task fails
|
|
26
|
+
*
|
|
27
|
+
* @since T02 (Structured Agent Output Model)
|
|
28
|
+
*
|
|
29
|
+
* @generated from enum ai.stigmer.agentic.workflow.v1.tasks.OnInvalidOutputPolicy
|
|
30
|
+
*/
|
|
31
|
+
export var OnInvalidOutputPolicy;
|
|
32
|
+
(function (OnInvalidOutputPolicy) {
|
|
33
|
+
/**
|
|
34
|
+
* Unspecified: defaults to ON_INVALID_FAIL behavior.
|
|
35
|
+
*
|
|
36
|
+
* @generated from enum value: ON_INVALID_POLICY_UNSPECIFIED = 0;
|
|
37
|
+
*/
|
|
38
|
+
OnInvalidOutputPolicy[OnInvalidOutputPolicy["ON_INVALID_POLICY_UNSPECIFIED"] = 0] = "ON_INVALID_POLICY_UNSPECIFIED";
|
|
39
|
+
/**
|
|
40
|
+
* Task fails immediately with a schema validation error.
|
|
41
|
+
* The workflow transitions to error handling (try_catch or EXECUTION_FAILED).
|
|
42
|
+
*
|
|
43
|
+
* @generated from enum value: ON_INVALID_FAIL = 1;
|
|
44
|
+
*/
|
|
45
|
+
OnInvalidOutputPolicy[OnInvalidOutputPolicy["ON_INVALID_FAIL"] = 1] = "ON_INVALID_FAIL";
|
|
46
|
+
/**
|
|
47
|
+
* Re-prompt the agent with the validation error message, up to max_retries
|
|
48
|
+
* attempts. The retry message includes the schema and specific validation
|
|
49
|
+
* errors so the agent can self-correct.
|
|
50
|
+
*
|
|
51
|
+
* After exhausting retries:
|
|
52
|
+
* - If fallback_task is set: branch to that task
|
|
53
|
+
* - Otherwise: task fails with a schema validation error
|
|
54
|
+
*
|
|
55
|
+
* @generated from enum value: ON_INVALID_RETRY = 2;
|
|
56
|
+
*/
|
|
57
|
+
OnInvalidOutputPolicy[OnInvalidOutputPolicy["ON_INVALID_RETRY"] = 2] = "ON_INVALID_RETRY";
|
|
58
|
+
/**
|
|
59
|
+
* Branch immediately to fallback_task without retrying.
|
|
60
|
+
* Requires fallback_task to be set on the owning contract/config.
|
|
61
|
+
* Use when human review or an alternative extraction path is preferred
|
|
62
|
+
* over automated retry.
|
|
63
|
+
*
|
|
64
|
+
* @generated from enum value: ON_INVALID_FALLBACK = 3;
|
|
65
|
+
*/
|
|
66
|
+
OnInvalidOutputPolicy[OnInvalidOutputPolicy["ON_INVALID_FALLBACK"] = 3] = "ON_INVALID_FALLBACK";
|
|
67
|
+
})(OnInvalidOutputPolicy || (OnInvalidOutputPolicy = {}));
|
|
68
|
+
/**
|
|
69
|
+
* Describes the enum ai.stigmer.agentic.workflow.v1.tasks.OnInvalidOutputPolicy.
|
|
70
|
+
*/
|
|
71
|
+
export const OnInvalidOutputPolicySchema = /*@__PURE__*/ enumDesc(file_ai_stigmer_agentic_workflow_v1_tasks_common, 0);
|
|
72
|
+
//# sourceMappingURL=common_pb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common_pb.js","sourceRoot":"","sources":["../../../../../../../ai/stigmer/agentic/workflow/v1/tasks/common_pb.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,uIAAuI;AACvI,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAElE;;GAEG;AACH,MAAM,CAAC,MAAM,gDAAgD,GAAY,aAAa,CACpF,QAAQ,CAAC,8SAA8S,CAAC,CAAC;AAE3T;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,CAAN,IAAY,qBAsCX;AAtCD,WAAY,qBAAqB;IAC/B;;;;OAIG;IACH,mHAAiC,CAAA;IAEjC;;;;;OAKG;IACH,uFAAmB,CAAA;IAEnB;;;;;;;;;;OAUG;IACH,yFAAoB,CAAA;IAEpB;;;;;;;OAOG;IACH,+FAAuB,CAAA;AACzB,CAAC,EAtCW,qBAAqB,KAArB,qBAAqB,QAsChC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAmC,aAAa,CACtF,QAAQ,CAAC,gDAAgD,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
|
|
2
|
+
import type { JsonObject, Message } from "@bufbuild/protobuf";
|
|
3
|
+
/**
|
|
4
|
+
* Describes the file ai/stigmer/agentic/workflow/v1/tasks/emit_event.proto.
|
|
5
|
+
*/
|
|
6
|
+
export declare const file_ai_stigmer_agentic_workflow_v1_tasks_emit_event: GenFile;
|
|
7
|
+
/**
|
|
8
|
+
* EmitEventSpec defines the CloudEvents envelope for an event to be emitted.
|
|
9
|
+
*
|
|
10
|
+
* @internal
|
|
11
|
+
* Follows CloudEvents semantics (type, source, subject, data) because:
|
|
12
|
+
* 1. CloudEvents is a graduated CNCF project with broad ecosystem support
|
|
13
|
+
* 2. The CNCF Serverless Workflow spec already uses CloudEvents
|
|
14
|
+
* 3. It provides a standard envelope that external consumers can parse
|
|
15
|
+
*
|
|
16
|
+
* Runtime-generated fields not authored here:
|
|
17
|
+
* - id: unique event identifier (UUID, generated at emit time)
|
|
18
|
+
* - specversion: always "1.0"
|
|
19
|
+
* - time: ISO 8601 timestamp of emission
|
|
20
|
+
* - datacontenttype: always "application/json" (since data is a Struct)
|
|
21
|
+
*
|
|
22
|
+
* The runtime (T13) decides how events are delivered: Temporal signals to
|
|
23
|
+
* other workflows, message queues, webhooks, or event buses. The proto
|
|
24
|
+
* carries the event specification; delivery is a runtime concern.
|
|
25
|
+
*
|
|
26
|
+
* @since T03 (P0 New Task Types)
|
|
27
|
+
*
|
|
28
|
+
* @generated from message ai.stigmer.agentic.workflow.v1.tasks.EmitEventSpec
|
|
29
|
+
*/
|
|
30
|
+
export type EmitEventSpec = Message<"ai.stigmer.agentic.workflow.v1.tasks.EmitEventSpec"> & {
|
|
31
|
+
/**
|
|
32
|
+
* CloudEvents type identifier.
|
|
33
|
+
* A reverse-DNS string that categorizes the event for routing and filtering.
|
|
34
|
+
* Examples: "stigmer.workflow.ticket.classified", "acme.order.completed"
|
|
35
|
+
*
|
|
36
|
+
* @generated from field: string type = 1;
|
|
37
|
+
*/
|
|
38
|
+
type: string;
|
|
39
|
+
/**
|
|
40
|
+
* CloudEvents source identifier.
|
|
41
|
+
* URI or URI-reference that identifies the context in which the event
|
|
42
|
+
* happened. Supports ${ } expression interpolation.
|
|
43
|
+
* When empty, the runtime defaults to the workflow execution URI
|
|
44
|
+
* (e.g., "/workflows/{workflow_id}/executions/{execution_id}").
|
|
45
|
+
*
|
|
46
|
+
* @generated from field: string source = 2;
|
|
47
|
+
*/
|
|
48
|
+
source: string;
|
|
49
|
+
/**
|
|
50
|
+
* Event payload data.
|
|
51
|
+
* Arbitrary JSON object carried as the CloudEvents data attribute.
|
|
52
|
+
* Values within the Struct can contain ${ } expressions that the
|
|
53
|
+
* runtime evaluates before emission.
|
|
54
|
+
*
|
|
55
|
+
* Unlike other Struct fields in the workflow domain (response_schema,
|
|
56
|
+
* form_schema, schema) which carry JSON Schema definitions, this field
|
|
57
|
+
* carries the actual event payload — not a schema.
|
|
58
|
+
*
|
|
59
|
+
* @generated from field: google.protobuf.Struct data = 3;
|
|
60
|
+
*/
|
|
61
|
+
data?: JsonObject;
|
|
62
|
+
/**
|
|
63
|
+
* CloudEvents subject identifier.
|
|
64
|
+
* Describes the subject of the event in the context of the event producer.
|
|
65
|
+
* Supports ${ } expression interpolation.
|
|
66
|
+
* Examples: "${ $context.ticket.id }", "${ $context.order.number }"
|
|
67
|
+
*
|
|
68
|
+
* @generated from field: string subject = 4;
|
|
69
|
+
*/
|
|
70
|
+
subject: string;
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* Describes the message ai.stigmer.agentic.workflow.v1.tasks.EmitEventSpec.
|
|
74
|
+
* Use `create(EmitEventSpecSchema)` to create a new message.
|
|
75
|
+
*/
|
|
76
|
+
export declare const EmitEventSpecSchema: GenMessage<EmitEventSpec>;
|
|
77
|
+
/**
|
|
78
|
+
* EmitEventTaskConfig defines the configuration for emit_event tasks that
|
|
79
|
+
* publish CloudEvents to external consumers, other workflows, audit trails,
|
|
80
|
+
* and metrics systems.
|
|
81
|
+
*
|
|
82
|
+
* @internal
|
|
83
|
+
* emit_event is the complement to listen. While listen waits for Temporal
|
|
84
|
+
* signals (internal workflow primitives), emit_event publishes business
|
|
85
|
+
* events using the CloudEvents envelope (a standard external contract).
|
|
86
|
+
* The runtime (T13) bridges the two: an emitted CloudEvent can be
|
|
87
|
+
* delivered as a Temporal signal to another workflow's listen task, or
|
|
88
|
+
* routed to external consumers via message queues, webhooks, or event buses.
|
|
89
|
+
*
|
|
90
|
+
* The task output is the fully-resolved CloudEvents envelope with
|
|
91
|
+
* runtime-generated fields populated:
|
|
92
|
+
* {
|
|
93
|
+
* "id": "<generated UUID>",
|
|
94
|
+
* "specversion": "1.0",
|
|
95
|
+
* "type": "stigmer.workflow.ticket.classified",
|
|
96
|
+
* "source": "/workflows/triage/executions/abc-123",
|
|
97
|
+
* "time": "2026-05-12T14:30:00Z",
|
|
98
|
+
* "subject": "TICKET-456",
|
|
99
|
+
* "datacontenttype": "application/json",
|
|
100
|
+
* "data": { <resolved payload> }
|
|
101
|
+
* }
|
|
102
|
+
*
|
|
103
|
+
* YAML Example (emit a classification event):
|
|
104
|
+
* - notify_classified:
|
|
105
|
+
* emit_event:
|
|
106
|
+
* event:
|
|
107
|
+
* type: "stigmer.workflow.ticket.classified"
|
|
108
|
+
* subject: "${ $context.ticket.id }"
|
|
109
|
+
* data:
|
|
110
|
+
* ticket_id: "${ $context.ticket.id }"
|
|
111
|
+
* severity: "${ $context.triage.severity }"
|
|
112
|
+
* category: "${ $context.triage.category }"
|
|
113
|
+
* classified_by: "${ $context.workflow_instance_id }"
|
|
114
|
+
* export:
|
|
115
|
+
* as: "${ . }"
|
|
116
|
+
*
|
|
117
|
+
* YAML Example (emit with explicit source):
|
|
118
|
+
* - publish_completion:
|
|
119
|
+
* emit_event:
|
|
120
|
+
* event:
|
|
121
|
+
* type: "acme.order.fulfilled"
|
|
122
|
+
* source: "urn:acme:fulfillment-service"
|
|
123
|
+
* subject: "${ $context.order.number }"
|
|
124
|
+
* data:
|
|
125
|
+
* order_id: "${ $context.order.id }"
|
|
126
|
+
* status: "fulfilled"
|
|
127
|
+
* fulfilled_at: "${ $context.timestamp }"
|
|
128
|
+
* export:
|
|
129
|
+
* as: "${ . }"
|
|
130
|
+
*
|
|
131
|
+
* @generated from message ai.stigmer.agentic.workflow.v1.tasks.EmitEventTaskConfig
|
|
132
|
+
*/
|
|
133
|
+
export type EmitEventTaskConfig = Message<"ai.stigmer.agentic.workflow.v1.tasks.EmitEventTaskConfig"> & {
|
|
134
|
+
/**
|
|
135
|
+
* The event specification to emit.
|
|
136
|
+
* Contains the CloudEvents envelope fields (type, source, data, subject).
|
|
137
|
+
* Required field.
|
|
138
|
+
*
|
|
139
|
+
* @generated from field: ai.stigmer.agentic.workflow.v1.tasks.EmitEventSpec event = 1;
|
|
140
|
+
*/
|
|
141
|
+
event?: EmitEventSpec;
|
|
142
|
+
};
|
|
143
|
+
/**
|
|
144
|
+
* Describes the message ai.stigmer.agentic.workflow.v1.tasks.EmitEventTaskConfig.
|
|
145
|
+
* Use `create(EmitEventTaskConfigSchema)` to create a new message.
|
|
146
|
+
*/
|
|
147
|
+
export declare const EmitEventTaskConfigSchema: GenMessage<EmitEventTaskConfig>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.2.2 with parameter "target=ts,import_extension=js"
|
|
2
|
+
// @generated from file ai/stigmer/agentic/workflow/v1/tasks/emit_event.proto (package ai.stigmer.agentic.workflow.v1.tasks, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
|
|
5
|
+
import { file_ai_stigmer_commons_apiresource_field_options } from "../../../../commons/apiresource/field_options_pb.js";
|
|
6
|
+
import { file_buf_validate_validate } from "../../../../../../buf/validate/validate_pb.js";
|
|
7
|
+
import { file_google_protobuf_struct } from "@bufbuild/protobuf/wkt";
|
|
8
|
+
/**
|
|
9
|
+
* Describes the file ai/stigmer/agentic/workflow/v1/tasks/emit_event.proto.
|
|
10
|
+
*/
|
|
11
|
+
export const file_ai_stigmer_agentic_workflow_v1_tasks_emit_event = /*@__PURE__*/ fileDesc("CjVhaS9zdGlnbWVyL2FnZW50aWMvd29ya2Zsb3cvdjEvdGFza3MvZW1pdF9ldmVudC5wcm90bxIkYWkuc3RpZ21lci5hZ2VudGljLndvcmtmbG93LnYxLnRhc2tzIoABCg1FbWl0RXZlbnRTcGVjEhsKBHR5cGUYASABKAlCDbpICsgBAXIFEAEY/wESFAoGc291cmNlGAIgASgJQgTYhSwBEiUKBGRhdGEYAyABKAsyFy5nb29nbGUucHJvdG9idWYuU3RydWN0EhUKB3N1YmplY3QYBCABKAlCBNiFLAEicQoTRW1pdEV2ZW50VGFza0NvbmZpZxJKCgVldmVudBgBIAEoCzIzLmFpLnN0aWdtZXIuYWdlbnRpYy53b3JrZmxvdy52MS50YXNrcy5FbWl0RXZlbnRTcGVjQga6SAPIAQE6DuqLLAplbWl0X2V2ZW50YgZwcm90bzM", [file_ai_stigmer_commons_apiresource_field_options, file_buf_validate_validate, file_google_protobuf_struct]);
|
|
12
|
+
/**
|
|
13
|
+
* Describes the message ai.stigmer.agentic.workflow.v1.tasks.EmitEventSpec.
|
|
14
|
+
* Use `create(EmitEventSpecSchema)` to create a new message.
|
|
15
|
+
*/
|
|
16
|
+
export const EmitEventSpecSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_workflow_v1_tasks_emit_event, 0);
|
|
17
|
+
/**
|
|
18
|
+
* Describes the message ai.stigmer.agentic.workflow.v1.tasks.EmitEventTaskConfig.
|
|
19
|
+
* Use `create(EmitEventTaskConfigSchema)` to create a new message.
|
|
20
|
+
*/
|
|
21
|
+
export const EmitEventTaskConfigSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_workflow_v1_tasks_emit_event, 1);
|
|
22
|
+
//# sourceMappingURL=emit_event_pb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"emit_event_pb.js","sourceRoot":"","sources":["../../../../../../../ai/stigmer/agentic/workflow/v1/tasks/emit_event_pb.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,2IAA2I;AAC3I,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,iDAAiD,EAAE,MAAM,qDAAqD,CAAC;AACxH,OAAO,EAAE,0BAA0B,EAAE,MAAM,+CAA+C,CAAC;AAC3F,OAAO,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AAGrE;;GAEG;AACH,MAAM,CAAC,MAAM,oDAAoD,GAAY,aAAa,CACxF,QAAQ,CAAC,idAAid,EAAE,CAAC,iDAAiD,EAAE,0BAA0B,EAAE,2BAA2B,CAAC,CAAC,CAAC;AAuE5kB;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAA8B,aAAa,CACzE,WAAW,CAAC,oDAAoD,EAAE,CAAC,CAAC,CAAC;AAqEvE;;;GAGG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAoC,aAAa,CACrF,WAAW,CAAC,oDAAoD,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,341 @@
|
|
|
1
|
+
import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
|
|
2
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
3
|
+
/**
|
|
4
|
+
* Describes the file ai/stigmer/agentic/workflow/v1/tasks/eval.proto.
|
|
5
|
+
*/
|
|
6
|
+
export declare const file_ai_stigmer_agentic_workflow_v1_tasks_eval: GenFile;
|
|
7
|
+
/**
|
|
8
|
+
* EvalCriterion defines a single evaluation dimension for multi-criteria mode.
|
|
9
|
+
*
|
|
10
|
+
* @internal
|
|
11
|
+
* When scoring_mode is EVAL_MULTI_CRITERIA, these criteria are included
|
|
12
|
+
* in the judge prompt as distinct evaluation axes. Each criterion gets
|
|
13
|
+
* its own score and reasoning in the output.
|
|
14
|
+
*
|
|
15
|
+
* @since T17 (Advanced Agentic Orchestration)
|
|
16
|
+
*
|
|
17
|
+
* @generated from message ai.stigmer.agentic.workflow.v1.tasks.EvalCriterion
|
|
18
|
+
*/
|
|
19
|
+
export type EvalCriterion = Message<"ai.stigmer.agentic.workflow.v1.tasks.EvalCriterion"> & {
|
|
20
|
+
/**
|
|
21
|
+
* Name of this evaluation dimension.
|
|
22
|
+
* Used in the judge prompt and appears in the output.
|
|
23
|
+
* Examples: "accuracy", "completeness", "safety", "relevance"
|
|
24
|
+
*
|
|
25
|
+
* @generated from field: string name = 1;
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
/**
|
|
29
|
+
* Description of what this criterion measures.
|
|
30
|
+
* Included in the judge prompt to guide the LLM's assessment.
|
|
31
|
+
* Example: "Does the response accurately reflect the source data without hallucinations?"
|
|
32
|
+
*
|
|
33
|
+
* @generated from field: string description = 2;
|
|
34
|
+
*/
|
|
35
|
+
description: string;
|
|
36
|
+
/**
|
|
37
|
+
* Relative weight for computing the weighted average overall score.
|
|
38
|
+
* When all weights are equal (or all zero), criteria are averaged uniformly.
|
|
39
|
+
* Example: accuracy=3.0, formatting=1.0 means accuracy counts 3x more.
|
|
40
|
+
*
|
|
41
|
+
* @generated from field: double weight = 3;
|
|
42
|
+
*/
|
|
43
|
+
weight: number;
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* Describes the message ai.stigmer.agentic.workflow.v1.tasks.EvalCriterion.
|
|
47
|
+
* Use `create(EvalCriterionSchema)` to create a new message.
|
|
48
|
+
*/
|
|
49
|
+
export declare const EvalCriterionSchema: GenMessage<EvalCriterion>;
|
|
50
|
+
/**
|
|
51
|
+
* EvalTaskConfig defines the configuration for eval tasks that use an LLM
|
|
52
|
+
* judge to assess the semantic quality of workflow data.
|
|
53
|
+
*
|
|
54
|
+
* @internal
|
|
55
|
+
* Use eval when you need to assess quality, correctness, safety, or
|
|
56
|
+
* completeness of LLM-generated or agent-produced content. This fills the
|
|
57
|
+
* gap between structural validation (validate task — JSON Schema, business
|
|
58
|
+
* rules) and human review (human_input task — manual inspection).
|
|
59
|
+
*
|
|
60
|
+
* The eval task constructs a judge prompt from the rubric and subject,
|
|
61
|
+
* calls the specified LLM with structured output enforcement, parses the
|
|
62
|
+
* judge's response, and applies the threshold to determine pass/fail.
|
|
63
|
+
*
|
|
64
|
+
* Key differences from validate:
|
|
65
|
+
* - validate checks deterministic structural properties (schema, rules)
|
|
66
|
+
* - eval checks semantic quality via an LLM judge (hallucination, relevance, safety)
|
|
67
|
+
*
|
|
68
|
+
* Key differences from llm_call:
|
|
69
|
+
* - llm_call is a general-purpose LLM invocation
|
|
70
|
+
* - eval has built-in judge prompt construction, scoring semantics,
|
|
71
|
+
* threshold application, and on_fail branching
|
|
72
|
+
*
|
|
73
|
+
* Task output structure:
|
|
74
|
+
* {
|
|
75
|
+
* "pass": true/false,
|
|
76
|
+
* "score": 0.85, // present for numeric_score and multi_criteria
|
|
77
|
+
* "reasoning": "The response...",
|
|
78
|
+
* "criteria": [ // present only for multi_criteria
|
|
79
|
+
* {"name": "accuracy", "score": 0.9, "reasoning": "..."},
|
|
80
|
+
* {"name": "safety", "score": 0.8, "reasoning": "..."}
|
|
81
|
+
* ],
|
|
82
|
+
* "model_used": "gpt-4o",
|
|
83
|
+
* "subject": <original subject data>
|
|
84
|
+
* }
|
|
85
|
+
*
|
|
86
|
+
* YAML Example (binary pass/fail evaluation):
|
|
87
|
+
* - check_summary_quality:
|
|
88
|
+
* call: eval
|
|
89
|
+
* with:
|
|
90
|
+
* model: "gpt-4o"
|
|
91
|
+
* subject: "${ $context.summarize.text }"
|
|
92
|
+
* rubric: |
|
|
93
|
+
* Evaluate whether this summary accurately captures the key points
|
|
94
|
+
* of the source document without hallucinations or omissions.
|
|
95
|
+
* The summary should be concise (under 3 sentences) and factually
|
|
96
|
+
* correct.
|
|
97
|
+
* scoring_mode: EVAL_PASS_FAIL
|
|
98
|
+
* on_fail: EVAL_FAIL_BRANCH
|
|
99
|
+
* fallback_task: regenerate_summary
|
|
100
|
+
* export:
|
|
101
|
+
* as: "${ . }"
|
|
102
|
+
*
|
|
103
|
+
* YAML Example (numeric score with threshold):
|
|
104
|
+
* - score_translation:
|
|
105
|
+
* call: eval
|
|
106
|
+
* with:
|
|
107
|
+
* model: "gpt-4o"
|
|
108
|
+
* subject: "${ $context.translate.text }"
|
|
109
|
+
* rubric: |
|
|
110
|
+
* Rate the quality of this translation on accuracy, fluency,
|
|
111
|
+
* and preservation of meaning. Score 0.0 (unusable) to 1.0 (perfect).
|
|
112
|
+
* scoring_mode: EVAL_NUMERIC_SCORE
|
|
113
|
+
* threshold: 0.7
|
|
114
|
+
* on_fail: EVAL_FAIL_WARN
|
|
115
|
+
* export:
|
|
116
|
+
* as: "${ . }"
|
|
117
|
+
*
|
|
118
|
+
* YAML Example (multi-criteria evaluation):
|
|
119
|
+
* - evaluate_response:
|
|
120
|
+
* call: eval
|
|
121
|
+
* with:
|
|
122
|
+
* model: "gpt-4o"
|
|
123
|
+
* subject: "${ $context.agent_response }"
|
|
124
|
+
* rubric: "Evaluate this customer support response."
|
|
125
|
+
* scoring_mode: EVAL_MULTI_CRITERIA
|
|
126
|
+
* threshold: 0.75
|
|
127
|
+
* criteria:
|
|
128
|
+
* - name: accuracy
|
|
129
|
+
* description: "Is the information factually correct?"
|
|
130
|
+
* weight: 3.0
|
|
131
|
+
* - name: helpfulness
|
|
132
|
+
* description: "Does it address the customer's actual question?"
|
|
133
|
+
* weight: 2.0
|
|
134
|
+
* - name: tone
|
|
135
|
+
* description: "Is the tone professional and empathetic?"
|
|
136
|
+
* weight: 1.0
|
|
137
|
+
* on_fail: EVAL_FAIL_RAISE
|
|
138
|
+
* export:
|
|
139
|
+
* as: "${ . }"
|
|
140
|
+
*
|
|
141
|
+
* @generated from message ai.stigmer.agentic.workflow.v1.tasks.EvalTaskConfig
|
|
142
|
+
*/
|
|
143
|
+
export type EvalTaskConfig = Message<"ai.stigmer.agentic.workflow.v1.tasks.EvalTaskConfig"> & {
|
|
144
|
+
/**
|
|
145
|
+
* LLM model used as the judge.
|
|
146
|
+
* Resolved via the Stigmer model registry.
|
|
147
|
+
* Examples: "gpt-4o", "claude-sonnet-4-5"
|
|
148
|
+
*
|
|
149
|
+
* @generated from field: string model = 1;
|
|
150
|
+
*/
|
|
151
|
+
model: string;
|
|
152
|
+
/**
|
|
153
|
+
* Expression selecting the data to evaluate.
|
|
154
|
+
* Supports ${ } expression interpolation.
|
|
155
|
+
* Example: "${ $context.summarize.text }" to evaluate a summary task's output.
|
|
156
|
+
*
|
|
157
|
+
* @generated from field: string subject = 2;
|
|
158
|
+
*/
|
|
159
|
+
subject: string;
|
|
160
|
+
/**
|
|
161
|
+
* Evaluation criteria in natural language.
|
|
162
|
+
* Tells the judge LLM what to assess and what "good" looks like.
|
|
163
|
+
* For pass_fail: describe what constitutes a pass.
|
|
164
|
+
* For numeric_score: describe the scoring scale.
|
|
165
|
+
* For multi_criteria: provide overall context (per-criterion detail goes in criteria field).
|
|
166
|
+
*
|
|
167
|
+
* @generated from field: string rubric = 3;
|
|
168
|
+
*/
|
|
169
|
+
rubric: string;
|
|
170
|
+
/**
|
|
171
|
+
* How the judge scores the subject.
|
|
172
|
+
* Default: EVAL_PASS_FAIL.
|
|
173
|
+
*
|
|
174
|
+
* @generated from field: ai.stigmer.agentic.workflow.v1.tasks.EvalScoringMode scoring_mode = 4;
|
|
175
|
+
*/
|
|
176
|
+
scoringMode: EvalScoringMode;
|
|
177
|
+
/**
|
|
178
|
+
* Pass threshold for numeric_score and multi_criteria modes.
|
|
179
|
+
* The subject passes if score >= threshold.
|
|
180
|
+
* Ignored for pass_fail mode (the judge's binary decision is used directly).
|
|
181
|
+
* Valid range: 0.0 to 1.0. Default: 0.5.
|
|
182
|
+
*
|
|
183
|
+
* @generated from field: double threshold = 5;
|
|
184
|
+
*/
|
|
185
|
+
threshold: number;
|
|
186
|
+
/**
|
|
187
|
+
* Policy applied when the subject fails evaluation.
|
|
188
|
+
* Default: EVAL_FAIL_RAISE (task fails with evaluation error).
|
|
189
|
+
*
|
|
190
|
+
* @generated from field: ai.stigmer.agentic.workflow.v1.tasks.EvalFailPolicy on_fail = 6;
|
|
191
|
+
*/
|
|
192
|
+
onFail: EvalFailPolicy;
|
|
193
|
+
/**
|
|
194
|
+
* Target task to branch to when on_fail is EVAL_FAIL_BRANCH.
|
|
195
|
+
* Must reference a valid task name in the same workflow.
|
|
196
|
+
* Only meaningful when on_fail is EVAL_FAIL_BRANCH; ignored otherwise.
|
|
197
|
+
*
|
|
198
|
+
* @generated from field: string fallback_task = 7;
|
|
199
|
+
*/
|
|
200
|
+
fallbackTask: string;
|
|
201
|
+
/**
|
|
202
|
+
* Optional custom system prompt override for the judge LLM.
|
|
203
|
+
* When set, replaces the auto-generated judge system prompt entirely.
|
|
204
|
+
* Use only when the default judge prompt template does not fit your needs.
|
|
205
|
+
* When empty, the runtime constructs a judge-appropriate system prompt
|
|
206
|
+
* from the rubric, scoring_mode, and criteria.
|
|
207
|
+
*
|
|
208
|
+
* @generated from field: string system_prompt = 8;
|
|
209
|
+
*/
|
|
210
|
+
systemPrompt: string;
|
|
211
|
+
/**
|
|
212
|
+
* Evaluation criteria for multi_criteria mode.
|
|
213
|
+
* Required when scoring_mode is EVAL_MULTI_CRITERIA; ignored otherwise.
|
|
214
|
+
* Each criterion is scored independently, and the overall score is the
|
|
215
|
+
* weighted average (uniform if all weights are equal or zero).
|
|
216
|
+
*
|
|
217
|
+
* @generated from field: repeated ai.stigmer.agentic.workflow.v1.tasks.EvalCriterion criteria = 9;
|
|
218
|
+
*/
|
|
219
|
+
criteria: EvalCriterion[];
|
|
220
|
+
/**
|
|
221
|
+
* Per-task cost cap in micro-USD (1 USD = 1,000,000 micros).
|
|
222
|
+
* When set, the runtime terminates this eval call if its cost exceeds
|
|
223
|
+
* this limit, independent of the workflow-level budget.
|
|
224
|
+
* Optional — when 0, no per-task cost limit is enforced.
|
|
225
|
+
*
|
|
226
|
+
* @since T05 (Workflow-Level Budget Primitives)
|
|
227
|
+
*
|
|
228
|
+
* @generated from field: int64 max_cost_micros = 10;
|
|
229
|
+
*/
|
|
230
|
+
maxCostMicros: bigint;
|
|
231
|
+
};
|
|
232
|
+
/**
|
|
233
|
+
* Describes the message ai.stigmer.agentic.workflow.v1.tasks.EvalTaskConfig.
|
|
234
|
+
* Use `create(EvalTaskConfigSchema)` to create a new message.
|
|
235
|
+
*/
|
|
236
|
+
export declare const EvalTaskConfigSchema: GenMessage<EvalTaskConfig>;
|
|
237
|
+
/**
|
|
238
|
+
* EvalFailPolicy defines what happens when an eval task determines that
|
|
239
|
+
* the evaluated subject does not meet the quality threshold.
|
|
240
|
+
*
|
|
241
|
+
* @internal
|
|
242
|
+
* Mirrors ValidationFailPolicy from validate tasks, since evaluation
|
|
243
|
+
* failure is semantically analogous to validation failure — the subject
|
|
244
|
+
* did not pass a quality gate. The only difference is that eval uses an
|
|
245
|
+
* LLM judge to assess semantic quality rather than deterministic schema
|
|
246
|
+
* checks.
|
|
247
|
+
*
|
|
248
|
+
* @since T17 (Advanced Agentic Orchestration)
|
|
249
|
+
*
|
|
250
|
+
* @generated from enum ai.stigmer.agentic.workflow.v1.tasks.EvalFailPolicy
|
|
251
|
+
*/
|
|
252
|
+
export declare enum EvalFailPolicy {
|
|
253
|
+
/**
|
|
254
|
+
* Unspecified: defaults to EVAL_FAIL_RAISE behavior.
|
|
255
|
+
*
|
|
256
|
+
* @generated from enum value: EVAL_FAIL_POLICY_UNSPECIFIED = 0;
|
|
257
|
+
*/
|
|
258
|
+
EVAL_FAIL_POLICY_UNSPECIFIED = 0,
|
|
259
|
+
/**
|
|
260
|
+
* Task fails with an evaluation error.
|
|
261
|
+
* The workflow transitions to error handling (try_catch or EXECUTION_FAILED).
|
|
262
|
+
* The error includes the judge's reasoning and score for diagnostics.
|
|
263
|
+
*
|
|
264
|
+
* @generated from enum value: EVAL_FAIL_RAISE = 1;
|
|
265
|
+
*/
|
|
266
|
+
EVAL_FAIL_RAISE = 1,
|
|
267
|
+
/**
|
|
268
|
+
* Branch to fallback_task instead of failing.
|
|
269
|
+
* Requires fallback_task to be set on the EvalTaskConfig.
|
|
270
|
+
* Use when evaluation failure should trigger an alternative workflow
|
|
271
|
+
* path (e.g., re-generation with stricter prompt, human review, retry
|
|
272
|
+
* with a different model).
|
|
273
|
+
*
|
|
274
|
+
* @generated from enum value: EVAL_FAIL_BRANCH = 2;
|
|
275
|
+
*/
|
|
276
|
+
EVAL_FAIL_BRANCH = 2,
|
|
277
|
+
/**
|
|
278
|
+
* Log warnings but continue to the next task.
|
|
279
|
+
* Evaluation results (score, reasoning, criteria breakdown) are included
|
|
280
|
+
* in the task output, allowing downstream tasks to inspect quality
|
|
281
|
+
* without stopping the workflow.
|
|
282
|
+
* Use for advisory evaluation or when downstream logic can gracefully
|
|
283
|
+
* handle low-quality inputs.
|
|
284
|
+
*
|
|
285
|
+
* @generated from enum value: EVAL_FAIL_WARN = 3;
|
|
286
|
+
*/
|
|
287
|
+
EVAL_FAIL_WARN = 3
|
|
288
|
+
}
|
|
289
|
+
/**
|
|
290
|
+
* Describes the enum ai.stigmer.agentic.workflow.v1.tasks.EvalFailPolicy.
|
|
291
|
+
*/
|
|
292
|
+
export declare const EvalFailPolicySchema: GenEnum<EvalFailPolicy>;
|
|
293
|
+
/**
|
|
294
|
+
* EvalScoringMode defines how the LLM judge scores the subject.
|
|
295
|
+
*
|
|
296
|
+
* @internal
|
|
297
|
+
* The scoring mode determines the response schema enforced on the judge
|
|
298
|
+
* LLM and how the threshold is applied.
|
|
299
|
+
*
|
|
300
|
+
* @since T17 (Advanced Agentic Orchestration)
|
|
301
|
+
*
|
|
302
|
+
* @generated from enum ai.stigmer.agentic.workflow.v1.tasks.EvalScoringMode
|
|
303
|
+
*/
|
|
304
|
+
export declare enum EvalScoringMode {
|
|
305
|
+
/**
|
|
306
|
+
* Unspecified: defaults to EVAL_PASS_FAIL.
|
|
307
|
+
*
|
|
308
|
+
* @generated from enum value: EVAL_SCORING_MODE_UNSPECIFIED = 0;
|
|
309
|
+
*/
|
|
310
|
+
EVAL_SCORING_MODE_UNSPECIFIED = 0,
|
|
311
|
+
/**
|
|
312
|
+
* Binary pass/fail judgment.
|
|
313
|
+
* The judge returns {pass: bool, reasoning: string}.
|
|
314
|
+
* Threshold is ignored — the judge's pass/fail decision is authoritative.
|
|
315
|
+
*
|
|
316
|
+
* @generated from enum value: EVAL_PASS_FAIL = 1;
|
|
317
|
+
*/
|
|
318
|
+
EVAL_PASS_FAIL = 1,
|
|
319
|
+
/**
|
|
320
|
+
* Numeric score from 0.0 to 1.0.
|
|
321
|
+
* The judge returns {score: float, reasoning: string}.
|
|
322
|
+
* The subject passes if score >= threshold.
|
|
323
|
+
*
|
|
324
|
+
* @generated from enum value: EVAL_NUMERIC_SCORE = 2;
|
|
325
|
+
*/
|
|
326
|
+
EVAL_NUMERIC_SCORE = 2,
|
|
327
|
+
/**
|
|
328
|
+
* Multiple named criteria, each scored 0.0 to 1.0.
|
|
329
|
+
* The judge returns {criteria: [{name, score, reasoning}], overall_score, pass}.
|
|
330
|
+
* Overall score is the weighted average of criteria scores.
|
|
331
|
+
* The subject passes if overall_score >= threshold.
|
|
332
|
+
* Requires the criteria field to be populated on EvalTaskConfig.
|
|
333
|
+
*
|
|
334
|
+
* @generated from enum value: EVAL_MULTI_CRITERIA = 3;
|
|
335
|
+
*/
|
|
336
|
+
EVAL_MULTI_CRITERIA = 3
|
|
337
|
+
}
|
|
338
|
+
/**
|
|
339
|
+
* Describes the enum ai.stigmer.agentic.workflow.v1.tasks.EvalScoringMode.
|
|
340
|
+
*/
|
|
341
|
+
export declare const EvalScoringModeSchema: GenEnum<EvalScoringMode>;
|