@constal/sdk 3.4.0 → 3.5.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/README.md +60 -1
- package/package.json +1 -1
- package/publish/api.json +37 -1
- package/publish/index.d.ts +261 -4
- package/publish/index.js +438 -54
package/README.md
CHANGED
|
@@ -96,6 +96,29 @@ configuration, and control-plane operations. Returned objects are independent
|
|
|
96
96
|
copies. A configured operation is not a promise of authorization: Policy still
|
|
97
97
|
applies when it is invoked.
|
|
98
98
|
|
|
99
|
+
## Agent delivery
|
|
100
|
+
|
|
101
|
+
Bind another Agent Resource to the caller, then address that bound Agent by CRN:
|
|
102
|
+
|
|
103
|
+
```ts
|
|
104
|
+
const peer = ctx.resources.reviewer;
|
|
105
|
+
const receipt = await ctx.send(peer, { request: "Review this change" },
|
|
106
|
+
{ session: "review-123" });
|
|
107
|
+
|
|
108
|
+
const delivery = await ctx.send<{ verdict: string }>(peer,
|
|
109
|
+
{ request: "Review this change" }, { completion: "run-result" });
|
|
110
|
+
const answer = await delivery.result;
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
Each delivery queues a distinct Run in the target Agent's Session. Receipt mode
|
|
114
|
+
requires a Session and acknowledges the durable enqueue; result mode may omit
|
|
115
|
+
the Session to create a fresh one and returns a cancellable Handle for the target
|
|
116
|
+
Run's result. The target executes under the initiating principal's authority.
|
|
117
|
+
Policy evaluates `agent:invoke` on the exact bound target for each new send, and
|
|
118
|
+
the platform rechecks that authority when the target accepts the message.
|
|
119
|
+
Session and Run reads remain separate Policy actions. `ctx.commit` continues to
|
|
120
|
+
address the caller's own ledger.
|
|
121
|
+
|
|
99
122
|
For model-selected operations, add the optional `resourceTools` to the Agent's
|
|
100
123
|
ordinary Tool catalog:
|
|
101
124
|
|
|
@@ -158,4 +181,40 @@ array. Declare its normal `needs` and `maxEffect` when loading uses Resources.
|
|
|
158
181
|
source when supplied, and content hash. These are ordinary authorized Tool calls.
|
|
159
182
|
Skill instructions do not grant additional authority.
|
|
160
183
|
|
|
161
|
-
|
|
184
|
+
## Model evaluation
|
|
185
|
+
|
|
186
|
+
`ctx.evaluate` judges one state against typed questions through an evaluation
|
|
187
|
+
Model such as `typesafe-ai/jev`. Every question is answered independently with
|
|
188
|
+
constrained values and probabilities, never generated prose, and the call is
|
|
189
|
+
journaled and priced like a model call without consuming a turn.
|
|
190
|
+
|
|
191
|
+
```ts
|
|
192
|
+
import { agent, noulDecision } from "@constal/sdk";
|
|
193
|
+
|
|
194
|
+
export default agent({
|
|
195
|
+
id: "triage", version: "1.0.0", model: "model",
|
|
196
|
+
async onMessage(ticket, ctx) {
|
|
197
|
+
const { answers } = await ctx.evaluate({
|
|
198
|
+
model: "judge",
|
|
199
|
+
state: { ticket },
|
|
200
|
+
questions: {
|
|
201
|
+
team: { type: "choice", instructions: "Which team owns `ticket`?",
|
|
202
|
+
criteria: { billing: "Charges, invoices, refunds", technical: { what: "Bugs and outages", not_for: "Charges" } } },
|
|
203
|
+
severity: { type: "score", instructions: "How severe is the problem in `ticket`?",
|
|
204
|
+
criteria: ["Cosmetic", "Degraded", "Customer is blocked"] },
|
|
205
|
+
urgent: { type: "noul", instructions: "Does `ticket` convey urgency?" },
|
|
206
|
+
},
|
|
207
|
+
});
|
|
208
|
+
if (answers.team.confidence < 0.5) return { route: "human" };
|
|
209
|
+
return { route: answers.team.choice, severity: answers.severity.score, urgent: noulDecision(answers.urgent, 0.7) };
|
|
210
|
+
},
|
|
211
|
+
});
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
Bind the evaluation Model like any other (`"judge": "crn:...:model/jev"`), or
|
|
215
|
+
pass `gateway` with an explicit `model` identifier. `instructions`, Choice option
|
|
216
|
+
descriptions, Score levels, and Noul criteria all accept JSON structure. Choice
|
|
217
|
+
answers keep the literal option keys of their criteria, Score answers carry a
|
|
218
|
+
`legend`, and Noul answers are a probability.
|
|
219
|
+
|
|
220
|
+
See [Evaluate state with a Model](https://constal.ai/docs/agents/evaluate) for a complete package manifest, answer shapes, and verification steps.
|
package/package.json
CHANGED
package/publish/api.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"package": "@constal/sdk",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.0",
|
|
4
4
|
"exports": [
|
|
5
|
+
"AGENT_UI_DEFAULTS",
|
|
5
6
|
"Action",
|
|
6
7
|
"ActionPattern",
|
|
7
8
|
"Actor",
|
|
@@ -13,10 +14,14 @@
|
|
|
13
14
|
"Agent",
|
|
14
15
|
"AgentCredentialSetupRequirement",
|
|
15
16
|
"AgentDef",
|
|
17
|
+
"AgentDeliveryReceipt",
|
|
16
18
|
"AgentDeployPolicy",
|
|
19
|
+
"AgentResultDelivery",
|
|
20
|
+
"AgentSendOpts",
|
|
17
21
|
"AgentSetupMetadata",
|
|
18
22
|
"AgentSetupRequirement",
|
|
19
23
|
"AgentSetupWorkflow",
|
|
24
|
+
"AgentUiDeclaration",
|
|
20
25
|
"AnalyticsClient",
|
|
21
26
|
"AnalyticsDimensionValue",
|
|
22
27
|
"AnalyticsEventDefinition",
|
|
@@ -71,6 +76,8 @@
|
|
|
71
76
|
"CheckpointDeploymentRequest",
|
|
72
77
|
"CheckpointImportMetadata",
|
|
73
78
|
"CheckpointImportRequest",
|
|
79
|
+
"ChoiceAnswer",
|
|
80
|
+
"ChoiceQuestion",
|
|
74
81
|
"CodeScoreResult",
|
|
75
82
|
"CodeScorerIR",
|
|
76
83
|
"CodeScorerRule",
|
|
@@ -138,6 +145,7 @@
|
|
|
138
145
|
"DeliveryReceipt",
|
|
139
146
|
"DirectNetworkDenied",
|
|
140
147
|
"DispatchResult",
|
|
148
|
+
"EVALUATION_LIMITS",
|
|
141
149
|
"EffectCeilingExceeded",
|
|
142
150
|
"EffectClass",
|
|
143
151
|
"EvalComparison",
|
|
@@ -145,6 +153,17 @@
|
|
|
145
153
|
"EvalMode",
|
|
146
154
|
"EvalSubject",
|
|
147
155
|
"EvalSubjectSource",
|
|
156
|
+
"EvaluationAnswer",
|
|
157
|
+
"EvaluationAnswerFor",
|
|
158
|
+
"EvaluationAnswers",
|
|
159
|
+
"EvaluationEntry",
|
|
160
|
+
"EvaluationInvocationArgs",
|
|
161
|
+
"EvaluationInvocationResult",
|
|
162
|
+
"EvaluationProtocol",
|
|
163
|
+
"EvaluationQuestion",
|
|
164
|
+
"EvaluationQuestions",
|
|
165
|
+
"EvaluationRecord",
|
|
166
|
+
"EvaluationSpec",
|
|
148
167
|
"EventBase",
|
|
149
168
|
"Fact",
|
|
150
169
|
"FactRef",
|
|
@@ -210,6 +229,7 @@
|
|
|
210
229
|
"MEMORY_OPERATION_DECLARATIONS",
|
|
211
230
|
"MODEL_CHECKPOINT_IMPORT_CAPABILITY",
|
|
212
231
|
"MODEL_COMPLETION_CAPABILITY",
|
|
232
|
+
"MODEL_EVALUATION_CAPABILITY",
|
|
213
233
|
"ManifestIndexPage",
|
|
214
234
|
"MapFact",
|
|
215
235
|
"MapOpts",
|
|
@@ -234,12 +254,15 @@
|
|
|
234
254
|
"ModelGenerationOptions",
|
|
235
255
|
"ModelGovernanceControls",
|
|
236
256
|
"ModelGovernanceMeter",
|
|
257
|
+
"ModelHistoryMessage",
|
|
237
258
|
"ModelInvocationArgs",
|
|
238
259
|
"ModelInvocationResult",
|
|
239
260
|
"ModelTechnicalCapabilities",
|
|
240
261
|
"ModelTool",
|
|
241
262
|
"NondeterministicReplay",
|
|
242
263
|
"NormalizedModelGatewayConfig",
|
|
264
|
+
"NoulAnswer",
|
|
265
|
+
"NoulQuestion",
|
|
243
266
|
"Out",
|
|
244
267
|
"OutcomeUnknown",
|
|
245
268
|
"Over",
|
|
@@ -313,6 +336,8 @@
|
|
|
313
336
|
"ScopedMemoryStoreRef",
|
|
314
337
|
"ScopedModelGatewayRef",
|
|
315
338
|
"ScopedResourceRef",
|
|
339
|
+
"ScoreAnswer",
|
|
340
|
+
"ScoreQuestion",
|
|
316
341
|
"ScoreRequest",
|
|
317
342
|
"ScorerApplies",
|
|
318
343
|
"ScorerCRN",
|
|
@@ -386,6 +411,7 @@
|
|
|
386
411
|
"TurnGate",
|
|
387
412
|
"TurnRecord",
|
|
388
413
|
"TurnSpec",
|
|
414
|
+
"UI_ASSET_CONTENT_TYPES",
|
|
389
415
|
"UI_BUNDLE_BOUNDS",
|
|
390
416
|
"UiAccess",
|
|
391
417
|
"UiBundle",
|
|
@@ -414,6 +440,8 @@
|
|
|
414
440
|
"agentResourceBinding",
|
|
415
441
|
"agentSetupMetadata",
|
|
416
442
|
"agentSetupRequirements",
|
|
443
|
+
"agentUiBundleManifest",
|
|
444
|
+
"agentUiDeclaration",
|
|
417
445
|
"analyticsEvent",
|
|
418
446
|
"approximateTokens",
|
|
419
447
|
"authProvider",
|
|
@@ -454,6 +482,9 @@
|
|
|
454
482
|
"datasetName",
|
|
455
483
|
"evaluateCodeScorer",
|
|
456
484
|
"evaluatePolicyDefinition",
|
|
485
|
+
"evaluationArguments",
|
|
486
|
+
"evaluationProtocolRequest",
|
|
487
|
+
"evaluationProtocolResult",
|
|
457
488
|
"gateway",
|
|
458
489
|
"gatewayModelOffer",
|
|
459
490
|
"gatewayPackageMetadata",
|
|
@@ -475,6 +506,7 @@
|
|
|
475
506
|
"modelGatewayEndpoint",
|
|
476
507
|
"modelGenerationOptions",
|
|
477
508
|
"modelLimit",
|
|
509
|
+
"modelMessages",
|
|
478
510
|
"modelPrompt",
|
|
479
511
|
"modelProtocolRequest",
|
|
480
512
|
"modelProtocolResult",
|
|
@@ -482,6 +514,7 @@
|
|
|
482
514
|
"normalizeModelGatewayConfig",
|
|
483
515
|
"normalizeSandboxNetworkPolicy",
|
|
484
516
|
"normalizeSandboxWorkspacePath",
|
|
517
|
+
"noulDecision",
|
|
485
518
|
"opTool",
|
|
486
519
|
"opTools",
|
|
487
520
|
"parseResourceName",
|
|
@@ -506,10 +539,12 @@
|
|
|
506
539
|
"scopedBindingKey",
|
|
507
540
|
"scopedCredentialRef",
|
|
508
541
|
"scopedResourceRef",
|
|
542
|
+
"scoreLevel",
|
|
509
543
|
"scorerName",
|
|
510
544
|
"selectableResourceLabels",
|
|
511
545
|
"setupAwait",
|
|
512
546
|
"setupCredentialReceipt",
|
|
547
|
+
"setupPanelProviderIsCrn",
|
|
513
548
|
"setupScreen",
|
|
514
549
|
"setupScreenView",
|
|
515
550
|
"setupSubmission",
|
|
@@ -523,6 +558,7 @@
|
|
|
523
558
|
"trainingProvider",
|
|
524
559
|
"trainingProviderMetadata",
|
|
525
560
|
"trainingRecipe",
|
|
561
|
+
"uiAssetContentType",
|
|
526
562
|
"uiBundle",
|
|
527
563
|
"uiBundleManifest",
|
|
528
564
|
"uiLimit",
|
package/publish/index.d.ts
CHANGED
|
@@ -603,6 +603,8 @@ declare function renderTrainingCompletion(input: unknown, expected?: unknown): {
|
|
|
603
603
|
|
|
604
604
|
/** Stable capability shared by configured Models and directly bound Gateways. */
|
|
605
605
|
declare const MODEL_COMPLETION_CAPABILITY: CapabilityContractRef;
|
|
606
|
+
/** Capability of Gateways that evaluate state against typed questions (`evaluate`), alongside or instead of completion. */
|
|
607
|
+
declare const MODEL_EVALUATION_CAPABILITY: CapabilityContractRef;
|
|
606
608
|
type ModelGatewayProtocol = "anthropic" | "openai";
|
|
607
609
|
type RawModelProtocol = ModelGatewayProtocol | "bedrock";
|
|
608
610
|
/** Optional generation choices. Supported effort values are defined by the selected model. */
|
|
@@ -625,6 +627,8 @@ interface ModelInvocationArgs extends ModelGenerationOptions {
|
|
|
625
627
|
system?: string;
|
|
626
628
|
objective?: unknown;
|
|
627
629
|
context?: unknown;
|
|
630
|
+
/** Earlier exchanges, oldest first. Each is one message of its own so the prompt prefix grows by appending. */
|
|
631
|
+
history?: ModelHistoryMessage[];
|
|
628
632
|
tools?: ModelTool[];
|
|
629
633
|
/** Constrain whether an offered Tool must be selected for this generation. */
|
|
630
634
|
toolChoice?: "auto" | "required";
|
|
@@ -688,7 +692,16 @@ interface ModelInvocationResult {
|
|
|
688
692
|
}
|
|
689
693
|
declare function normalizeModelGatewayConfig(value: unknown): NormalizedModelGatewayConfig;
|
|
690
694
|
declare function modelGatewayEndpoint(config: Pick<ModelGatewayConfig, "baseUrl" | "protocol">): URL;
|
|
695
|
+
interface ModelHistoryMessage {
|
|
696
|
+
role: "user" | "assistant";
|
|
697
|
+
content: string;
|
|
698
|
+
}
|
|
699
|
+
/** Canonical (sorted-key) JSON: the same objective and context render to the same text whether their objects were built live
|
|
700
|
+
* or loaded back from storage, so a provider's prompt cache keeps matching from one turn to the next. */
|
|
691
701
|
declare function modelPrompt(args: ModelInvocationArgs): string;
|
|
702
|
+
/** The messages of one turn: the static objective and context first, then each earlier exchange as its own message, then
|
|
703
|
+
* feedback about the previous attempt. Without history this is the single prompt message it always was. */
|
|
704
|
+
declare function modelMessages(args: ModelInvocationArgs): ModelHistoryMessage[];
|
|
692
705
|
declare function modelProtocolRequest(protocol: ModelGatewayProtocol, model: string, maxOutputTokens: number, temperature: number | null, args: ModelInvocationArgs): Record<string, unknown>;
|
|
693
706
|
declare function modelProtocolResult(protocol: ModelGatewayProtocol, raw: unknown, provider: string, model: string): ModelInvocationResult;
|
|
694
707
|
|
|
@@ -1134,6 +1147,39 @@ declare function agentSetupRequirements(value: unknown, options?: {
|
|
|
1134
1147
|
declare function agentSetupMetadata(value: unknown, options?: {
|
|
1135
1148
|
allowLegacyTenantOwner?: boolean;
|
|
1136
1149
|
}): AgentSetupMetadata;
|
|
1150
|
+
declare const AGENT_UI_DEFAULTS: Readonly<{
|
|
1151
|
+
limits: Readonly<{
|
|
1152
|
+
requestBodyBytes: 131072;
|
|
1153
|
+
responseBodyBytes: 4194304;
|
|
1154
|
+
cpuMs: 1000;
|
|
1155
|
+
subrequests: 8;
|
|
1156
|
+
}>;
|
|
1157
|
+
storage: Readonly<{
|
|
1158
|
+
kind: "sqlite";
|
|
1159
|
+
maximumBytes: 268435456;
|
|
1160
|
+
maximumRowsReadPerRequest: 10000;
|
|
1161
|
+
maximumRowsWrittenPerRequest: 1000;
|
|
1162
|
+
maximumResultBytes: 1048576;
|
|
1163
|
+
}>;
|
|
1164
|
+
}>;
|
|
1165
|
+
/** The `ui` block of constal.agent.json: owns the UI Resource published with the Agent revision. */
|
|
1166
|
+
interface AgentUiDeclaration {
|
|
1167
|
+
id: string;
|
|
1168
|
+
displayName: string;
|
|
1169
|
+
description: string;
|
|
1170
|
+
source: string;
|
|
1171
|
+
channel: ResourceDependencyRef<"channel">;
|
|
1172
|
+
access: {
|
|
1173
|
+
mode: "public";
|
|
1174
|
+
} | {
|
|
1175
|
+
mode: "authenticated";
|
|
1176
|
+
authProvider: ResourceDependencyRef<"auth-provider">;
|
|
1177
|
+
};
|
|
1178
|
+
execution: UiExecution;
|
|
1179
|
+
limits: UiResource["limits"];
|
|
1180
|
+
labels: Record<string, string>;
|
|
1181
|
+
}
|
|
1182
|
+
declare function agentUiDeclaration(value: unknown): AgentUiDeclaration;
|
|
1137
1183
|
/** Route to tenant-local Agents or to explicitly authorized Channel subscriptions. */
|
|
1138
1184
|
type ChannelTarget = ResourceSelector<"agent"> | {
|
|
1139
1185
|
resourceKind: "channel";
|
|
@@ -1566,6 +1612,11 @@ interface SandboxExecInput {
|
|
|
1566
1612
|
stdin?: string;
|
|
1567
1613
|
timeoutMs?: number;
|
|
1568
1614
|
outputs?: string[];
|
|
1615
|
+
/** Upload stdout and stderr to content-addressed storage even when
|
|
1616
|
+
* `stdoutPreview` holds them completely. By default output stays on the
|
|
1617
|
+
* sandbox disk and `stdoutRef`/`stderrRef` are null unless the preview was
|
|
1618
|
+
* truncated or outputs were declared. */
|
|
1619
|
+
retain?: boolean;
|
|
1569
1620
|
/** Keep stdin open for governed process I/O until EOF or process termination. */
|
|
1570
1621
|
interactive?: boolean;
|
|
1571
1622
|
/** Stable caller-owned name for one interactive process in this Run. */
|
|
@@ -1620,8 +1671,15 @@ interface SandboxCommandResult {
|
|
|
1620
1671
|
status: "completed" | "failed" | "timeout" | "cancelled" | "lease-lost";
|
|
1621
1672
|
exitCode: number | null;
|
|
1622
1673
|
stdoutPreview: string;
|
|
1674
|
+
stderrPreview: string;
|
|
1623
1675
|
stdoutRef: Ref | null;
|
|
1624
1676
|
stderrRef: Ref | null;
|
|
1677
|
+
/** Whether the stream holds more than its preview shows. Absent from results that predate it. */
|
|
1678
|
+
stdoutTruncated?: boolean;
|
|
1679
|
+
stderrTruncated?: boolean;
|
|
1680
|
+
/** The stream's size in bytes; null when it was truncated and not retained. Absent from results that predate it. */
|
|
1681
|
+
stdoutBytes?: number | null;
|
|
1682
|
+
stderrBytes?: number | null;
|
|
1625
1683
|
outputs: {
|
|
1626
1684
|
path: string;
|
|
1627
1685
|
ref: Ref;
|
|
@@ -1710,6 +1768,115 @@ interface SandboxPool {
|
|
|
1710
1768
|
createSandbox(agent: CRN, session: string, options?: CreateSandboxOptions, opts?: InvokeOpts): Promise<Sandbox>;
|
|
1711
1769
|
}
|
|
1712
1770
|
|
|
1771
|
+
/**
|
|
1772
|
+
* Model evaluation: one shared state judged against a map of typed questions,
|
|
1773
|
+
* answered with constrained values and probabilities instead of generated
|
|
1774
|
+
* prose. The contract mirrors System One models such as TypeSafe Jev, where
|
|
1775
|
+
* every question in a request is evaluated independently and in parallel.
|
|
1776
|
+
*/
|
|
1777
|
+
/** JSON structure accepted wherever an evaluation model reads structure: state, instructions, option and level descriptions, and Noul criteria. */
|
|
1778
|
+
type EvaluationEntry = string | number | boolean | null | EvaluationEntry[] | {
|
|
1779
|
+
[key: string]: EvaluationEntry;
|
|
1780
|
+
};
|
|
1781
|
+
/** Pick exactly one option from a fixed, unordered set. Option keys are the values returned to the Agent. */
|
|
1782
|
+
interface ChoiceQuestion {
|
|
1783
|
+
type: "choice";
|
|
1784
|
+
instructions: EvaluationEntry;
|
|
1785
|
+
/** Option key to description. `null` leaves the option undescribed. */
|
|
1786
|
+
criteria: {
|
|
1787
|
+
[option: string]: EvaluationEntry;
|
|
1788
|
+
};
|
|
1789
|
+
}
|
|
1790
|
+
/** Place the state on an ordered scale. Levels are described in order from the lowest index. */
|
|
1791
|
+
interface ScoreQuestion {
|
|
1792
|
+
type: "score";
|
|
1793
|
+
instructions: EvaluationEntry;
|
|
1794
|
+
/** At least two ordered level descriptions; the answer is a probability-weighted position along them. */
|
|
1795
|
+
criteria: readonly EvaluationEntry[];
|
|
1796
|
+
}
|
|
1797
|
+
/** Estimate the probability that a statement about the state is true. */
|
|
1798
|
+
interface NoulQuestion {
|
|
1799
|
+
type: "noul";
|
|
1800
|
+
instructions: EvaluationEntry;
|
|
1801
|
+
/** Optional descriptions of what yes (near 1) and no (near 0) mean. */
|
|
1802
|
+
criteria?: {
|
|
1803
|
+
true?: EvaluationEntry;
|
|
1804
|
+
false?: EvaluationEntry;
|
|
1805
|
+
};
|
|
1806
|
+
}
|
|
1807
|
+
type EvaluationQuestion = ChoiceQuestion | ScoreQuestion | NoulQuestion;
|
|
1808
|
+
type EvaluationQuestions = {
|
|
1809
|
+
[id: string]: EvaluationQuestion;
|
|
1810
|
+
};
|
|
1811
|
+
interface ChoiceAnswer<Option extends string = string> {
|
|
1812
|
+
type: "choice";
|
|
1813
|
+
/** The highest-probability option. */
|
|
1814
|
+
choice: Option;
|
|
1815
|
+
/** Every option mapped to its probability; the values sum to one. */
|
|
1816
|
+
probabilities: Record<Option, number>;
|
|
1817
|
+
/** How peaked the distribution is, from 0 to 1. */
|
|
1818
|
+
confidence: number;
|
|
1819
|
+
}
|
|
1820
|
+
interface ScoreAnswer {
|
|
1821
|
+
type: "score";
|
|
1822
|
+
/** Probability-weighted position along the levels; may fall between two of them. */
|
|
1823
|
+
score: number;
|
|
1824
|
+
/** Each level index, as a string key, mapped back to its description. */
|
|
1825
|
+
legend: Record<string, EvaluationEntry>;
|
|
1826
|
+
/** Each level index, as a string key, mapped to its probability; the values sum to one. */
|
|
1827
|
+
probabilities: Record<string, number>;
|
|
1828
|
+
confidence: number;
|
|
1829
|
+
}
|
|
1830
|
+
interface NoulAnswer {
|
|
1831
|
+
type: "noul";
|
|
1832
|
+
/** Probability that the statement is true, from 0 to 1. Noul carries no separate confidence. */
|
|
1833
|
+
noul: number;
|
|
1834
|
+
}
|
|
1835
|
+
type EvaluationAnswer = ChoiceAnswer | ScoreAnswer | NoulAnswer;
|
|
1836
|
+
/** The typed answer a question shape produces; Choice answers keep the literal option keys of their criteria. */
|
|
1837
|
+
type EvaluationAnswerFor<Q> = Q extends ChoiceQuestion ? ChoiceAnswer<Extract<keyof Q["criteria"], string>> : Q extends ScoreQuestion ? ScoreAnswer : Q extends NoulQuestion ? NoulAnswer : EvaluationAnswer;
|
|
1838
|
+
type EvaluationAnswers<Q extends EvaluationQuestions> = {
|
|
1839
|
+
[K in keyof Q]: EvaluationAnswerFor<Q[K]>;
|
|
1840
|
+
};
|
|
1841
|
+
/** Argument shape of the `evaluate` model operation. */
|
|
1842
|
+
interface EvaluationInvocationArgs<Q extends EvaluationQuestions = EvaluationQuestions> {
|
|
1843
|
+
/** Logical Model identity or a model selected through a bound Gateway, evaluated under Policy. */
|
|
1844
|
+
model?: string;
|
|
1845
|
+
/** The content to evaluate: a string, or a JSON object or array of related context. */
|
|
1846
|
+
state: EvaluationEntry;
|
|
1847
|
+
/** At least one named question; answers come back under the same ids. */
|
|
1848
|
+
questions: Q;
|
|
1849
|
+
}
|
|
1850
|
+
interface EvaluationInvocationResult<Q extends EvaluationQuestions = EvaluationQuestions> {
|
|
1851
|
+
answers: EvaluationAnswers<Q>;
|
|
1852
|
+
/** Integration-observed timing for the complete upstream request. */
|
|
1853
|
+
timing?: {
|
|
1854
|
+
upstreamMs: number;
|
|
1855
|
+
};
|
|
1856
|
+
usage: ModelInvocationResult["usage"];
|
|
1857
|
+
provider: string;
|
|
1858
|
+
model: string;
|
|
1859
|
+
}
|
|
1860
|
+
type EvaluationProtocol = "typesafe";
|
|
1861
|
+
declare const EVALUATION_LIMITS: {
|
|
1862
|
+
readonly maxQuestions: 512;
|
|
1863
|
+
readonly maxChoiceOptions: 512;
|
|
1864
|
+
readonly maxScoreLevels: 128;
|
|
1865
|
+
readonly maxDepth: 32;
|
|
1866
|
+
/** Bytes of the canonical request body; evaluation models bound state and questions jointly by tokens. */
|
|
1867
|
+
readonly maxRequestBytes: 1048576;
|
|
1868
|
+
};
|
|
1869
|
+
/** One validated argument shape for Policy, accounting, and provider dispatch. */
|
|
1870
|
+
declare function evaluationArguments(value: unknown): EvaluationInvocationArgs;
|
|
1871
|
+
/** The upstream wire request. TypeSafe's System One endpoint accepts the evaluation contract natively. */
|
|
1872
|
+
declare function evaluationProtocolRequest(protocol: EvaluationProtocol, model: string, args: Pick<EvaluationInvocationArgs, "state" | "questions">): Record<string, unknown>;
|
|
1873
|
+
/** Decode the upstream response into typed answers, refusing any answer outside the options and levels the caller supplied. */
|
|
1874
|
+
declare function evaluationProtocolResult<Q extends EvaluationQuestions>(protocol: EvaluationProtocol, raw: unknown, provider: string, model: string, questions: Q): EvaluationInvocationResult<Q>;
|
|
1875
|
+
/** Read a Noul answer as a decision at the caller's threshold. */
|
|
1876
|
+
declare function noulDecision(answer: NoulAnswer, threshold?: number): boolean;
|
|
1877
|
+
/** The nearest whole level of a Score answer. Use the expectation itself only for threshold comparisons. */
|
|
1878
|
+
declare function scoreLevel(answer: ScoreAnswer): number;
|
|
1879
|
+
|
|
1713
1880
|
type Tier = "scratch" | "standard" | "audit";
|
|
1714
1881
|
type Mode = "script" | "durable";
|
|
1715
1882
|
type EffectClass = "read-only" | "idempotent" | "reconcilable" | "non-idempotent";
|
|
@@ -1961,6 +2128,26 @@ interface Handle<T> extends PromiseLike<T> {
|
|
|
1961
2128
|
interface InvocationHandle<T> extends Handle<T> {
|
|
1962
2129
|
start(): Promise<void>;
|
|
1963
2130
|
}
|
|
2131
|
+
/** A message to an exactly bound Agent creates one distinct target Run. */
|
|
2132
|
+
type AgentSendOpts = {
|
|
2133
|
+
session: string;
|
|
2134
|
+
completion?: "receipt";
|
|
2135
|
+
} | {
|
|
2136
|
+
session?: string;
|
|
2137
|
+
completion: "run-result";
|
|
2138
|
+
timeoutMs?: number;
|
|
2139
|
+
};
|
|
2140
|
+
interface AgentDeliveryReceipt {
|
|
2141
|
+
id: string;
|
|
2142
|
+
state: "enqueued";
|
|
2143
|
+
target: {
|
|
2144
|
+
agent: CRN;
|
|
2145
|
+
session: string;
|
|
2146
|
+
};
|
|
2147
|
+
}
|
|
2148
|
+
interface AgentResultDelivery<T> extends AgentDeliveryReceipt {
|
|
2149
|
+
result: Handle<T>;
|
|
2150
|
+
}
|
|
1964
2151
|
interface CommitOpts {
|
|
1965
2152
|
tier?: Tier;
|
|
1966
2153
|
gate?: string | GateEvidence | {
|
|
@@ -2051,10 +2238,17 @@ interface TurnGate {
|
|
|
2051
2238
|
feedback?(rec: TurnRecord | TurnDraft): string;
|
|
2052
2239
|
onExhausted?: "fail" | "commit-with-verdict";
|
|
2053
2240
|
}
|
|
2241
|
+
/** One prior exchange the model sees as a message of its own, so a provider's prompt cache extends over it. */
|
|
2242
|
+
interface TurnHistoryMessage {
|
|
2243
|
+
role: "user" | "assistant";
|
|
2244
|
+
content: string;
|
|
2245
|
+
}
|
|
2054
2246
|
interface TurnSpec extends ModelGenerationOptions {
|
|
2055
2247
|
system: string;
|
|
2056
2248
|
objective?: unknown;
|
|
2057
2249
|
context?: unknown;
|
|
2250
|
+
/** Earlier exchanges, oldest first, sent as messages after the objective and context rather than inside them. */
|
|
2251
|
+
history?: TurnHistoryMessage[];
|
|
2058
2252
|
tools?: string[];
|
|
2059
2253
|
/** Require one of the offered Tools for this model generation. */
|
|
2060
2254
|
toolChoice?: "auto" | "required";
|
|
@@ -2276,7 +2470,7 @@ interface ReduceFact {
|
|
|
2276
2470
|
}
|
|
2277
2471
|
type ScopeJournalKind = "turn" | "tool" | "step";
|
|
2278
2472
|
type LocalJournalKind = "clock" | "random" | "score" | "commit" | "await" | "spawn" | "map" | "reduce" | "view" | "page" | "truncate" | "cancel" | "capability";
|
|
2279
|
-
type JournalKind = ScopeJournalKind | LocalJournalKind | "invoke";
|
|
2473
|
+
type JournalKind = ScopeJournalKind | LocalJournalKind | "invoke" | "send";
|
|
2280
2474
|
/** Stable identity available to Agent code. Platform execution and deployment
|
|
2281
2475
|
* metadata intentionally remain outside the public Agent context. */
|
|
2282
2476
|
interface RunInfo {
|
|
@@ -2332,8 +2526,25 @@ interface BoundResourceCapabilities {
|
|
|
2332
2526
|
maxOutputTokens?: number;
|
|
2333
2527
|
};
|
|
2334
2528
|
}
|
|
2529
|
+
/** One evaluation of shared state against typed questions through a bound evaluation Model, or a Gateway plus explicit model identifier. */
|
|
2530
|
+
interface EvaluationSpec<Q extends EvaluationQuestions = EvaluationQuestions> {
|
|
2531
|
+
state: EvaluationEntry;
|
|
2532
|
+
questions: Q;
|
|
2533
|
+
/** Model binding name; when gateway is supplied, the Gateway's model identifier instead. */
|
|
2534
|
+
model?: string;
|
|
2535
|
+
/** Bound Gateway to use with the explicitly selected model identifier. */
|
|
2536
|
+
gateway?: string;
|
|
2537
|
+
}
|
|
2538
|
+
interface EvaluationRecord<Q extends EvaluationQuestions = EvaluationQuestions> {
|
|
2539
|
+
answers: EvaluationAnswers<Q>;
|
|
2540
|
+
cost: Cost;
|
|
2541
|
+
provider: string;
|
|
2542
|
+
model: string;
|
|
2543
|
+
}
|
|
2335
2544
|
interface Ctx {
|
|
2336
2545
|
turn(spec: TurnSpec): Promise<TurnRecord>;
|
|
2546
|
+
/** Judge one state with constrained, probabilistic answers instead of a generated turn. Journaled and priced like a model call. */
|
|
2547
|
+
evaluate<Q extends EvaluationQuestions>(spec: EvaluationSpec<Q>): Promise<EvaluationRecord<Q>>;
|
|
2337
2548
|
ledger: {
|
|
2338
2549
|
view<S = HistoryView>(name?: string, opts?: {
|
|
2339
2550
|
of?: LedgerAddress;
|
|
@@ -2358,6 +2569,13 @@ interface Ctx {
|
|
|
2358
2569
|
sandboxPool(resource: CRN): SandboxPool;
|
|
2359
2570
|
invoke<T>(resource: CRN, op: string, args: unknown, opts?: InvokeOpts): Promise<T>;
|
|
2360
2571
|
invokeAsync<T>(resource: CRN, op: string, args: unknown, opts?: InvokeOpts): InvocationHandle<T>;
|
|
2572
|
+
send<T>(agent: CRN, input: unknown, opts: AgentSendOpts & {
|
|
2573
|
+
completion: "run-result";
|
|
2574
|
+
}): Promise<AgentResultDelivery<T>>;
|
|
2575
|
+
send(agent: CRN, input: unknown, opts: {
|
|
2576
|
+
session: string;
|
|
2577
|
+
completion?: "receipt";
|
|
2578
|
+
}): Promise<AgentDeliveryReceipt>;
|
|
2361
2579
|
request(policy: PolicyCRN, grant: CapabilityGrant): Handle<CapabilityRef>;
|
|
2362
2580
|
analytics: AnalyticsClient;
|
|
2363
2581
|
run: RunInfo;
|
|
@@ -2698,6 +2916,35 @@ interface UiHandler {
|
|
|
2698
2916
|
}): void;
|
|
2699
2917
|
}
|
|
2700
2918
|
declare function uiBundleManifest(value: unknown, execution: UiExecution["mode"]): UiBundleManifest;
|
|
2919
|
+
declare const UI_ASSET_CONTENT_TYPES: Readonly<{
|
|
2920
|
+
readonly html: "text/html; charset=utf-8";
|
|
2921
|
+
readonly htm: "text/html; charset=utf-8";
|
|
2922
|
+
readonly js: "text/javascript; charset=utf-8";
|
|
2923
|
+
readonly mjs: "text/javascript; charset=utf-8";
|
|
2924
|
+
readonly css: "text/css; charset=utf-8";
|
|
2925
|
+
readonly json: "application/json; charset=utf-8";
|
|
2926
|
+
readonly map: "application/json; charset=utf-8";
|
|
2927
|
+
readonly txt: "text/plain; charset=utf-8";
|
|
2928
|
+
readonly md: "text/plain; charset=utf-8";
|
|
2929
|
+
readonly xml: "application/xml";
|
|
2930
|
+
readonly svg: "image/svg+xml";
|
|
2931
|
+
readonly png: "image/png";
|
|
2932
|
+
readonly jpg: "image/jpeg";
|
|
2933
|
+
readonly jpeg: "image/jpeg";
|
|
2934
|
+
readonly gif: "image/gif";
|
|
2935
|
+
readonly webp: "image/webp";
|
|
2936
|
+
readonly ico: "image/x-icon";
|
|
2937
|
+
readonly woff: "font/woff";
|
|
2938
|
+
readonly woff2: "font/woff2";
|
|
2939
|
+
readonly ttf: "font/ttf";
|
|
2940
|
+
readonly wasm: "application/wasm";
|
|
2941
|
+
readonly webmanifest: "application/manifest+json";
|
|
2942
|
+
readonly mp3: "audio/mpeg";
|
|
2943
|
+
readonly mp4: "video/mp4";
|
|
2944
|
+
}>;
|
|
2945
|
+
declare function uiAssetContentType(path: string): string;
|
|
2946
|
+
/** Fills the defaults of a partial `constal.ui.json` authored inside an Agent's UI directory. */
|
|
2947
|
+
declare function agentUiBundleManifest(value: unknown, execution: UiExecution["mode"]): UiBundleManifest;
|
|
2701
2948
|
declare function uiBundle(value: unknown, execution: UiExecution["mode"]): UiBundle;
|
|
2702
2949
|
|
|
2703
2950
|
type SetupStepStatus = "pending" | "current" | "complete" | "blocked";
|
|
@@ -2805,6 +3052,8 @@ interface SetupSubmission {
|
|
|
2805
3052
|
action: string;
|
|
2806
3053
|
values?: Record<string, unknown>;
|
|
2807
3054
|
}
|
|
3055
|
+
/** A panel names its provider by CRN, or by a platform capability name the platform resolves to one published provider. */
|
|
3056
|
+
declare function setupPanelProviderIsCrn(provider: string): boolean;
|
|
2808
3057
|
/** Validates the bounded presentation artifact consumed by trusted Console renderers. */
|
|
2809
3058
|
declare function setupScreen(value: unknown): SetupScreen;
|
|
2810
3059
|
/** Validates one response against the exact open screen revision and form schema. */
|
|
@@ -4080,7 +4329,15 @@ declare class NondeterministicReplay extends Error {
|
|
|
4080
4329
|
declare class OutcomeUnknown extends Error {
|
|
4081
4330
|
readonly pos: string;
|
|
4082
4331
|
readonly effect: EffectClass;
|
|
4083
|
-
|
|
4332
|
+
readonly detail: {
|
|
4333
|
+
code?: string;
|
|
4334
|
+
message: string;
|
|
4335
|
+
} | null;
|
|
4336
|
+
/** `detail` is what the platform last heard from the Resource, so the agent learns why the outcome stayed unknown. */
|
|
4337
|
+
constructor(pos: string, effect: EffectClass, detail?: {
|
|
4338
|
+
code?: string;
|
|
4339
|
+
message: string;
|
|
4340
|
+
} | null);
|
|
4084
4341
|
}
|
|
4085
4342
|
declare class LeaseLost extends Error {
|
|
4086
4343
|
constructor(message?: string);
|
|
@@ -4149,5 +4406,5 @@ declare class SessionDeleted extends Error {
|
|
|
4149
4406
|
constructor(session: string);
|
|
4150
4407
|
}
|
|
4151
4408
|
|
|
4152
|
-
export { AfterYield, ApiError, CONSTAL_API_CAPABILITY, CONSTAL_API_GET_KINDS, CONSTAL_API_MODEL_TOOL_DESCRIPTIONS, CONSTAL_API_OPERATIONS, CONSTAL_API_OPERATION_SCHEMAS, CONSTAL_API_QUERY_KINDS, CONSTAL_API_VERSION, CommitConflict, CommitGateRejected, CredentialRevoked, CredentialUnavailable, DirectNetworkDenied, EffectCeilingExceeded, GateExhausted, IntegrationRequestNotSent, LeaseLost, MCP_CLIENT_CAPABILITY, MCP_PROTOCOL_VERSION, MEMORY_OPERATION_DECLARATIONS, MODEL_CHECKPOINT_IMPORT_CAPABILITY, MODEL_COMPLETION_CAPABILITY, McpClient, NondeterministicReplay, OutcomeUnknown, PolicyConstraintFailed, PolicyDecisionFailed, RESOURCE_CREDENTIAL_BINDING_SCHEMA, RESOURCE_KINDS, ResourceDisabled, ResourceInvalid, ResourceUnbound, RollbackTargetInvalid, SessionDeleted, SpawnCardinality, SwallowedYield, TRAINING_PROVIDER_CAPABILITY, TerminalIntegrationFailure, ToolUnavailable, UI_BUNDLE_BOUNDS, UnknownTool, WEB_FETCH_ARGUMENT_SCHEMA, WEB_SEARCH_ARGUMENT_SCHEMA, action, actionPattern, agent, agentResourceBinding, agentSetupMetadata, agentSetupRequirements, analyticsEvent, approximateTokens, authProvider, authProviderName, bindingName, bucketFor, canonicalJson, capabilityContractRef, casTool, channel, channelIngressRequest, channelIngressSource, channelSourceEvidence, channelSubscriptionRequest, channelTarget, checkpointArtifactRef, checkpointDeploymentRequest, checkpointImportMetadata, checkpointImportRequest, codeScorerIR, containerImageReference, containerImageSelection, containerImageSource, credentialEvidence, credentialInteractionAction, credentialInteractionEvent, credentialInteractionResult, credentialName, credentialProvider, credentialProviderConfigSchema, credentialProviderName, credentialProviderSetupMetadata, credentialRotationDefaults, credentialSetupState, customerTenantName, cutBatches, cutPartitions, datasetName, evaluateCodeScorer, evaluatePolicyDefinition, gateway, gatewayModelOffer, gatewayPackageMetadata, hash, hashValue, immutableContainerImageReference, integrationEgressPolicy, invocationCredentialUses, labelSelector, matchesAction, matchesLabelSelector, matchesResource, mcpToolDescription, mcpToolResult, memoryStoreBinding, modelAdvertisedPricing, modelControls, modelGatewayBinding, modelGatewayEndpoint, modelGenerationOptions, modelLimit, modelPrompt, modelProtocolRequest, modelProtocolResult, murmur3_32, normalizeModelGatewayConfig, normalizeSandboxNetworkPolicy, normalizeSandboxWorkspacePath, opTool, opTools, parseResourceName, policy, policyName, renderTrainingCompletion, resolveBindingOwner, resolveContainerImageSource, resolveGatewayEgress, resolveResourceDependencyRef, resourceContractRef, resourceCredentialBinding, resourceDependencyRef, resourceLabelMap, resourceName, resourceNeed, resourcePattern, resourceSelector, resourceTools, sandboxControls, sandboxLimit, scopedBindingKey, scopedCredentialRef, scopedResourceRef, scorerName, selectableResourceLabels, setupAwait, setupCredentialReceipt, setupScreen, setupScreenView, setupSubmission, sha256Hex, skills, stageOutput, startTrainingRequest, subtask, tableDescribe, tableQuery, trainingProvider, trainingProviderMetadata, trainingRecipe, uiBundle, uiBundleManifest, uiLimit, uiName, validateBatchSpec, validateFoldFn, validateJsonSchema, validateJsonSchemaDefinition, validatePartitionFn, validatePartitionSpec, validateStageOutputSpec, validateTool, validateView, webFetch, webSearch };
|
|
4153
|
-
export type { Action, ActionPattern, Actor, AdmissionLimitConstraint, AdmissionLimitInput, AdmissionLimitScope, AdmissionLimitWindow, Agent, AgentCredentialSetupRequirement, AgentDef, AgentDeployPolicy, AgentSetupMetadata, AgentSetupRequirement, AgentSetupWorkflow, AnalyticsClient, AnalyticsDimensionValue, AnalyticsEventDefinition, AnalyticsIntent, AnalyticsValues, AuthProvider, AuthProviderCRN, AuthProviderContext, AuthProviderRequest, AuthProviderResult, AwaitOpts, AwaitPresentation, BatchSpec, BindingCRN, BindingOwnerContext, BindingOwnerScope, BoundOperation, BoundResourceCapabilities, BranchRef, CRN, CRNKind, CanonicalEvent, CanonicalEventDraft, CapabilityContractRef, CapabilityGrant, CapabilityRef, CaptureCaseRequest, CaseRow, CatalogTool, Channel, ChannelAlarm, ChannelAlarmResult, ChannelContext, ChannelIngressEvent, ChannelIngressSource, ChannelMessage, ChannelProtocol, ChannelReceiveResult, ChannelRequest, ChannelResponse, ChannelSourceEvidence, ChannelSubscriptionRequest, ChannelTarget, CheckpointDeploymentRequest, CheckpointImportMetadata, CheckpointImportRequest, CodeScoreResult, CodeScorerIR, CodeScorerRule, CommitOpts, CompareSuitesRequest, Compensation, ConnectionCancelRequest, ConnectionIdentity, ConnectionOperation, ConnectionRecoveryRequest, ConnectionRecoveryResult, ConnectionRequest, ConnectionUsageReport, ConstalApiApplyRequest, ConstalApiChangePlan, ConstalApiChangePlanRef, ConstalApiChangePlanRequest, ConstalApiChangeReceipt, ConstalApiOperationReceipt, ContainerImageReference, ContainerImageSelection, ContainerImageSource, ContainerRegistryRequest, ContainerRegistryResponse, ControlEvent, Cost, CreateSandboxImageOptions, CreateSandboxOptions, CredentialCRN, CredentialDestroyResult, CredentialEvidence, CredentialInteractionAction, CredentialInteractionAdvanceRequest, CredentialInteractionEvent, CredentialInteractionPrimaryAction, CredentialInteractionProof, CredentialInteractionResult, CredentialInteractionStartRequest, CredentialMaterialRequest, CredentialMintRequest, CredentialMintResult, CredentialProviderCRN, CredentialProviderContext, CredentialProviderCredentialSlotSetup, CredentialProviderDefinition, CredentialProviderPackage, CredentialProviderPackageMetadata, CredentialProviderSecretInput, CredentialProviderSetupMetadata, CredentialSetupState, CredentialVerifyResult, Ctx, CustomerTenantCRN, DataManifest, DatasetCRN, DatasetDraft, DatasetRef, DelegatedGrant, DelegationCeiling, DeliveryMode, DeliveryReceipt, DispatchResult, EffectClass, EvalComparison, EvalDivergence, EvalMode, EvalSubject, EvalSubjectSource, EventBase, Fact, FactRef, FileEntry, FixedMemoryStoreRef, FixedModelGatewayRef, FoldFn, GateEvidence, GateResult, GateVerdict, GatewayCancelRequest, GatewayConfigEgressBinding, GatewayContext, GatewayCredentialSlotSetup, GatewayDefinition, GatewayDiscoverySetup, GatewayModelOffer, GatewayOperation, GatewayPackage, GatewayPackageMetadata, GatewayRecoveryRequest, GatewayRecoveryResult, GatewayRequest, GovernanceContractRef, Handle, HandleOutcome, Hash, HistoryView, IgnoredChannelEvent, IngressRequest, IngressTarget, IntegrationArtifactEgressRequest, IntegrationArtifactEgressResponse, IntegrationAttachment, IntegrationContext, IntegrationEgressPolicy, IntegrationEgressRequest, IntegrationEgressResponse, IntegrationEgressRule, IntegrationLifecycle, IntegrationReleaseContext, IntegrationSecret, IntegrationState, InvocationCredentialUse, InvocationHandle, InvokableKind, InvokeOpts, JsonScalar, JsonValue, LabelRequest, LabelSelector, LabelSelectorOperator, LabelSelectorRequirement, LedgerAddress, LedgerEvent, LoadedSkill, LocalResourceRef, ManifestIndexPage, MapFact, MapOpts, McpClientOptions, McpClientState, McpMessageTransport, MemoryDeleteArgs, MemoryGetArgs, MemoryRecord, MemoryRememberArgs, MemorySearchArgs, MemorySearchHit, MemoryStoreBinding, Mode, ModelAdvertisedPricing, ModelCompletion, ModelCredentialHeader, ModelGatewayBinding, ModelGatewayConfig, ModelGatewayProtocol, ModelGenerationOptions, ModelGovernanceControls, ModelGovernanceMeter, ModelInvocationArgs, ModelInvocationResult, ModelTechnicalCapabilities, ModelTool, NormalizedModelGatewayConfig, Out, Over, PartitionFn, PartitionSpec, Partitioning, PolicyCRN, PolicyConstraint, PolicyContextValue, PolicyDefinition, PolicyInput, PolicyInvocationOrigin, PolicyOutcome, Principal, PrincipalKind, Provenance, RawModelProtocol, Recovery, ReduceFact, ReduceOpts, Ref, RequestLabelRequest, ResourceContractRef, ResourceControlsConstraint, ResourceCredentialBinding, ResourceDependencyRef, ResourceKind, ResourceName, ResourceNameParts, ResourceNeed, ResourcePattern, ResourceSelector, RollbackReport, RunIdentityView, RunInfo, RunStatusDetail, RunSuiteRequest, Sandbox, SandboxCommandResult, SandboxExecInput, SandboxFileResult, SandboxGovernanceControls, SandboxGovernanceMeter, SandboxImage, SandboxMutationResult, SandboxNetworkMode, SandboxNetworkPolicy, SandboxPool, SandboxProcess, SandboxProcessCredentials, SandboxProcessIoOperation, SandboxProcessOperation, SandboxProcessReadInput, SandboxProcessReadResult, SandboxProcessStatus, SandboxProcessWriteResult, SandboxReadFileOptions, SandboxReadFileResult, SandboxWorkspace, SandboxWriteFileResult, ScopedBindingKey, ScopedCredentialRef, ScopedMemoryStoreRef, ScopedModelGatewayRef, ScopedResourceRef, ScoreRequest, ScorerApplies, ScorerCRN, ScorerDef, ScorerEvaluation, ScorerKind, ScorerRef, ScorerVerdictIntent, SetEvalBaselineRequest, SetupAction, SetupCredentialCandidate, SetupCredentialInteractionPanel, SetupCredentialReceipt, SetupFormPanel, SetupPanel, SetupProgressPanel, SetupReviewPanel, SetupScreen, SetupStepStatus, SetupStepSummary, SetupSubmission, SetupTerminalPanel, SetupWorkflowStatus, Skill, SkillDescription, SkillLibrary, SkillSource, SortField, SpawnAttenuation, SpawnBudget, SpawnOpts, SqlFold, StageInfo, StageOutputSpec, StartTrainingRequest, SteerEvent, SuiteFact, TableAggregate, TableDescribeArgs, TableFilter, TableFilterOperation, TableOrder, TableQueryArgs, TableQueryPlan, TableQueryResult, TableScalar, TableSnapshotDescription, Task, Tier, Tool, ToolCallRecord, TrainingJobFact, TrainingJobReference, TrainingJobState, TrainingJobStatus, TrainingMethod, TrainingModelOffer, TrainingProviderDefinition, TrainingProviderMetadata, TrainingProviderPin, TrainingRecipe, TrainingResumePoint, TrainingUsageUnits, TurnDraft, TurnGate, TurnRecord, TurnSpec, UiAccess, UiBundle, UiBundleManifest, UiCRN, UiCapability, UiExecution, UiGovernanceMeter, UiHandler, UiResource, UiRuntimeContext, UiSource, UiSqlResult, UiState, UpstreamPayer, Verdict, VerdictSamplingMode, ViewDef, WaitResolvedEvent };
|
|
4409
|
+
export { AGENT_UI_DEFAULTS, AfterYield, ApiError, CONSTAL_API_CAPABILITY, CONSTAL_API_GET_KINDS, CONSTAL_API_MODEL_TOOL_DESCRIPTIONS, CONSTAL_API_OPERATIONS, CONSTAL_API_OPERATION_SCHEMAS, CONSTAL_API_QUERY_KINDS, CONSTAL_API_VERSION, CommitConflict, CommitGateRejected, CredentialRevoked, CredentialUnavailable, DirectNetworkDenied, EVALUATION_LIMITS, EffectCeilingExceeded, GateExhausted, IntegrationRequestNotSent, LeaseLost, MCP_CLIENT_CAPABILITY, MCP_PROTOCOL_VERSION, MEMORY_OPERATION_DECLARATIONS, MODEL_CHECKPOINT_IMPORT_CAPABILITY, MODEL_COMPLETION_CAPABILITY, MODEL_EVALUATION_CAPABILITY, McpClient, NondeterministicReplay, OutcomeUnknown, PolicyConstraintFailed, PolicyDecisionFailed, RESOURCE_CREDENTIAL_BINDING_SCHEMA, RESOURCE_KINDS, ResourceDisabled, ResourceInvalid, ResourceUnbound, RollbackTargetInvalid, SessionDeleted, SpawnCardinality, SwallowedYield, TRAINING_PROVIDER_CAPABILITY, TerminalIntegrationFailure, ToolUnavailable, UI_ASSET_CONTENT_TYPES, UI_BUNDLE_BOUNDS, UnknownTool, WEB_FETCH_ARGUMENT_SCHEMA, WEB_SEARCH_ARGUMENT_SCHEMA, action, actionPattern, agent, agentResourceBinding, agentSetupMetadata, agentSetupRequirements, agentUiBundleManifest, agentUiDeclaration, analyticsEvent, approximateTokens, authProvider, authProviderName, bindingName, bucketFor, canonicalJson, capabilityContractRef, casTool, channel, channelIngressRequest, channelIngressSource, channelSourceEvidence, channelSubscriptionRequest, channelTarget, checkpointArtifactRef, checkpointDeploymentRequest, checkpointImportMetadata, checkpointImportRequest, codeScorerIR, containerImageReference, containerImageSelection, containerImageSource, credentialEvidence, credentialInteractionAction, credentialInteractionEvent, credentialInteractionResult, credentialName, credentialProvider, credentialProviderConfigSchema, credentialProviderName, credentialProviderSetupMetadata, credentialRotationDefaults, credentialSetupState, customerTenantName, cutBatches, cutPartitions, datasetName, evaluateCodeScorer, evaluatePolicyDefinition, evaluationArguments, evaluationProtocolRequest, evaluationProtocolResult, gateway, gatewayModelOffer, gatewayPackageMetadata, hash, hashValue, immutableContainerImageReference, integrationEgressPolicy, invocationCredentialUses, labelSelector, matchesAction, matchesLabelSelector, matchesResource, mcpToolDescription, mcpToolResult, memoryStoreBinding, modelAdvertisedPricing, modelControls, modelGatewayBinding, modelGatewayEndpoint, modelGenerationOptions, modelLimit, modelMessages, modelPrompt, modelProtocolRequest, modelProtocolResult, murmur3_32, normalizeModelGatewayConfig, normalizeSandboxNetworkPolicy, normalizeSandboxWorkspacePath, noulDecision, opTool, opTools, parseResourceName, policy, policyName, renderTrainingCompletion, resolveBindingOwner, resolveContainerImageSource, resolveGatewayEgress, resolveResourceDependencyRef, resourceContractRef, resourceCredentialBinding, resourceDependencyRef, resourceLabelMap, resourceName, resourceNeed, resourcePattern, resourceSelector, resourceTools, sandboxControls, sandboxLimit, scopedBindingKey, scopedCredentialRef, scopedResourceRef, scoreLevel, scorerName, selectableResourceLabels, setupAwait, setupCredentialReceipt, setupPanelProviderIsCrn, setupScreen, setupScreenView, setupSubmission, sha256Hex, skills, stageOutput, startTrainingRequest, subtask, tableDescribe, tableQuery, trainingProvider, trainingProviderMetadata, trainingRecipe, uiAssetContentType, uiBundle, uiBundleManifest, uiLimit, uiName, validateBatchSpec, validateFoldFn, validateJsonSchema, validateJsonSchemaDefinition, validatePartitionFn, validatePartitionSpec, validateStageOutputSpec, validateTool, validateView, webFetch, webSearch };
|
|
4410
|
+
export type { Action, ActionPattern, Actor, AdmissionLimitConstraint, AdmissionLimitInput, AdmissionLimitScope, AdmissionLimitWindow, Agent, AgentCredentialSetupRequirement, AgentDef, AgentDeliveryReceipt, AgentDeployPolicy, AgentResultDelivery, AgentSendOpts, AgentSetupMetadata, AgentSetupRequirement, AgentSetupWorkflow, AgentUiDeclaration, AnalyticsClient, AnalyticsDimensionValue, AnalyticsEventDefinition, AnalyticsIntent, AnalyticsValues, AuthProvider, AuthProviderCRN, AuthProviderContext, AuthProviderRequest, AuthProviderResult, AwaitOpts, AwaitPresentation, BatchSpec, BindingCRN, BindingOwnerContext, BindingOwnerScope, BoundOperation, BoundResourceCapabilities, BranchRef, CRN, CRNKind, CanonicalEvent, CanonicalEventDraft, CapabilityContractRef, CapabilityGrant, CapabilityRef, CaptureCaseRequest, CaseRow, CatalogTool, Channel, ChannelAlarm, ChannelAlarmResult, ChannelContext, ChannelIngressEvent, ChannelIngressSource, ChannelMessage, ChannelProtocol, ChannelReceiveResult, ChannelRequest, ChannelResponse, ChannelSourceEvidence, ChannelSubscriptionRequest, ChannelTarget, CheckpointDeploymentRequest, CheckpointImportMetadata, CheckpointImportRequest, ChoiceAnswer, ChoiceQuestion, CodeScoreResult, CodeScorerIR, CodeScorerRule, CommitOpts, CompareSuitesRequest, Compensation, ConnectionCancelRequest, ConnectionIdentity, ConnectionOperation, ConnectionRecoveryRequest, ConnectionRecoveryResult, ConnectionRequest, ConnectionUsageReport, ConstalApiApplyRequest, ConstalApiChangePlan, ConstalApiChangePlanRef, ConstalApiChangePlanRequest, ConstalApiChangeReceipt, ConstalApiOperationReceipt, ContainerImageReference, ContainerImageSelection, ContainerImageSource, ContainerRegistryRequest, ContainerRegistryResponse, ControlEvent, Cost, CreateSandboxImageOptions, CreateSandboxOptions, CredentialCRN, CredentialDestroyResult, CredentialEvidence, CredentialInteractionAction, CredentialInteractionAdvanceRequest, CredentialInteractionEvent, CredentialInteractionPrimaryAction, CredentialInteractionProof, CredentialInteractionResult, CredentialInteractionStartRequest, CredentialMaterialRequest, CredentialMintRequest, CredentialMintResult, CredentialProviderCRN, CredentialProviderContext, CredentialProviderCredentialSlotSetup, CredentialProviderDefinition, CredentialProviderPackage, CredentialProviderPackageMetadata, CredentialProviderSecretInput, CredentialProviderSetupMetadata, CredentialSetupState, CredentialVerifyResult, Ctx, CustomerTenantCRN, DataManifest, DatasetCRN, DatasetDraft, DatasetRef, DelegatedGrant, DelegationCeiling, DeliveryMode, DeliveryReceipt, DispatchResult, EffectClass, EvalComparison, EvalDivergence, EvalMode, EvalSubject, EvalSubjectSource, EvaluationAnswer, EvaluationAnswerFor, EvaluationAnswers, EvaluationEntry, EvaluationInvocationArgs, EvaluationInvocationResult, EvaluationProtocol, EvaluationQuestion, EvaluationQuestions, EvaluationRecord, EvaluationSpec, EventBase, Fact, FactRef, FileEntry, FixedMemoryStoreRef, FixedModelGatewayRef, FoldFn, GateEvidence, GateResult, GateVerdict, GatewayCancelRequest, GatewayConfigEgressBinding, GatewayContext, GatewayCredentialSlotSetup, GatewayDefinition, GatewayDiscoverySetup, GatewayModelOffer, GatewayOperation, GatewayPackage, GatewayPackageMetadata, GatewayRecoveryRequest, GatewayRecoveryResult, GatewayRequest, GovernanceContractRef, Handle, HandleOutcome, Hash, HistoryView, IgnoredChannelEvent, IngressRequest, IngressTarget, IntegrationArtifactEgressRequest, IntegrationArtifactEgressResponse, IntegrationAttachment, IntegrationContext, IntegrationEgressPolicy, IntegrationEgressRequest, IntegrationEgressResponse, IntegrationEgressRule, IntegrationLifecycle, IntegrationReleaseContext, IntegrationSecret, IntegrationState, InvocationCredentialUse, InvocationHandle, InvokableKind, InvokeOpts, JsonScalar, JsonValue, LabelRequest, LabelSelector, LabelSelectorOperator, LabelSelectorRequirement, LedgerAddress, LedgerEvent, LoadedSkill, LocalResourceRef, ManifestIndexPage, MapFact, MapOpts, McpClientOptions, McpClientState, McpMessageTransport, MemoryDeleteArgs, MemoryGetArgs, MemoryRecord, MemoryRememberArgs, MemorySearchArgs, MemorySearchHit, MemoryStoreBinding, Mode, ModelAdvertisedPricing, ModelCompletion, ModelCredentialHeader, ModelGatewayBinding, ModelGatewayConfig, ModelGatewayProtocol, ModelGenerationOptions, ModelGovernanceControls, ModelGovernanceMeter, ModelHistoryMessage, ModelInvocationArgs, ModelInvocationResult, ModelTechnicalCapabilities, ModelTool, NormalizedModelGatewayConfig, NoulAnswer, NoulQuestion, Out, Over, PartitionFn, PartitionSpec, Partitioning, PolicyCRN, PolicyConstraint, PolicyContextValue, PolicyDefinition, PolicyInput, PolicyInvocationOrigin, PolicyOutcome, Principal, PrincipalKind, Provenance, RawModelProtocol, Recovery, ReduceFact, ReduceOpts, Ref, RequestLabelRequest, ResourceContractRef, ResourceControlsConstraint, ResourceCredentialBinding, ResourceDependencyRef, ResourceKind, ResourceName, ResourceNameParts, ResourceNeed, ResourcePattern, ResourceSelector, RollbackReport, RunIdentityView, RunInfo, RunStatusDetail, RunSuiteRequest, Sandbox, SandboxCommandResult, SandboxExecInput, SandboxFileResult, SandboxGovernanceControls, SandboxGovernanceMeter, SandboxImage, SandboxMutationResult, SandboxNetworkMode, SandboxNetworkPolicy, SandboxPool, SandboxProcess, SandboxProcessCredentials, SandboxProcessIoOperation, SandboxProcessOperation, SandboxProcessReadInput, SandboxProcessReadResult, SandboxProcessStatus, SandboxProcessWriteResult, SandboxReadFileOptions, SandboxReadFileResult, SandboxWorkspace, SandboxWriteFileResult, ScopedBindingKey, ScopedCredentialRef, ScopedMemoryStoreRef, ScopedModelGatewayRef, ScopedResourceRef, ScoreAnswer, ScoreQuestion, ScoreRequest, ScorerApplies, ScorerCRN, ScorerDef, ScorerEvaluation, ScorerKind, ScorerRef, ScorerVerdictIntent, SetEvalBaselineRequest, SetupAction, SetupCredentialCandidate, SetupCredentialInteractionPanel, SetupCredentialReceipt, SetupFormPanel, SetupPanel, SetupProgressPanel, SetupReviewPanel, SetupScreen, SetupStepStatus, SetupStepSummary, SetupSubmission, SetupTerminalPanel, SetupWorkflowStatus, Skill, SkillDescription, SkillLibrary, SkillSource, SortField, SpawnAttenuation, SpawnBudget, SpawnOpts, SqlFold, StageInfo, StageOutputSpec, StartTrainingRequest, SteerEvent, SuiteFact, TableAggregate, TableDescribeArgs, TableFilter, TableFilterOperation, TableOrder, TableQueryArgs, TableQueryPlan, TableQueryResult, TableScalar, TableSnapshotDescription, Task, Tier, Tool, ToolCallRecord, TrainingJobFact, TrainingJobReference, TrainingJobState, TrainingJobStatus, TrainingMethod, TrainingModelOffer, TrainingProviderDefinition, TrainingProviderMetadata, TrainingProviderPin, TrainingRecipe, TrainingResumePoint, TrainingUsageUnits, TurnDraft, TurnGate, TurnRecord, TurnSpec, UiAccess, UiBundle, UiBundleManifest, UiCRN, UiCapability, UiExecution, UiGovernanceMeter, UiHandler, UiResource, UiRuntimeContext, UiSource, UiSqlResult, UiState, UpstreamPayer, Verdict, VerdictSamplingMode, ViewDef, WaitResolvedEvent };
|