@constal/sdk 3.4.0 → 3.6.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.
@@ -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. */
@@ -1615,13 +1666,42 @@ interface SandboxProcess {
1615
1666
  closeStdin(opts?: InvokeOpts): InvocationHandle<SandboxProcessWriteResult>;
1616
1667
  stop(): Promise<void>;
1617
1668
  }
1669
+ /** Process facts, independent of whether the caller considers the exit code successful. */
1670
+ interface SandboxCommandExecution {
1671
+ exitCode: number | null;
1672
+ /** The terminating signal, when reported by the runner. */
1673
+ signal: string | null;
1674
+ /** A failure to execute the process, distinct from a process that exited nonzero. */
1675
+ error: {
1676
+ code: string;
1677
+ message: string;
1678
+ } | null;
1679
+ }
1680
+ interface SandboxCommandCollectionError {
1681
+ path: string;
1682
+ code: string;
1683
+ message: string;
1684
+ }
1618
1685
  interface SandboxCommandResult {
1619
1686
  commandId: string;
1687
+ /** Execution-service summary, including nonzero exits and output collection failures. It is not application success. */
1620
1688
  status: "completed" | "failed" | "timeout" | "cancelled" | "lease-lost";
1689
+ /** Compatibility projection of execution.exitCode. */
1621
1690
  exitCode: number | null;
1691
+ /** Null when no process outcome was established; absent on older sandbox results. A resolved invocation may contain an execution error or a nonzero exit. */
1692
+ execution?: SandboxCommandExecution | null;
1693
+ /** Failures retaining streams or declared outputs, separate from process execution. Absent on older results. */
1694
+ collectionErrors?: SandboxCommandCollectionError[];
1622
1695
  stdoutPreview: string;
1696
+ stderrPreview: string;
1623
1697
  stdoutRef: Ref | null;
1624
1698
  stderrRef: Ref | null;
1699
+ /** Whether the stream holds more than its preview shows. Absent from results that predate it. */
1700
+ stdoutTruncated?: boolean;
1701
+ stderrTruncated?: boolean;
1702
+ /** The stream's size in bytes; null when it was truncated and not retained. Absent from results that predate it. */
1703
+ stdoutBytes?: number | null;
1704
+ stderrBytes?: number | null;
1625
1705
  outputs: {
1626
1706
  path: string;
1627
1707
  ref: Ref;
@@ -1710,6 +1790,115 @@ interface SandboxPool {
1710
1790
  createSandbox(agent: CRN, session: string, options?: CreateSandboxOptions, opts?: InvokeOpts): Promise<Sandbox>;
1711
1791
  }
1712
1792
 
1793
+ /**
1794
+ * Model evaluation: one shared state judged against a map of typed questions,
1795
+ * answered with constrained values and probabilities instead of generated
1796
+ * prose. The contract mirrors System One models such as TypeSafe Jev, where
1797
+ * every question in a request is evaluated independently and in parallel.
1798
+ */
1799
+ /** JSON structure accepted wherever an evaluation model reads structure: state, instructions, option and level descriptions, and Noul criteria. */
1800
+ type EvaluationEntry = string | number | boolean | null | EvaluationEntry[] | {
1801
+ [key: string]: EvaluationEntry;
1802
+ };
1803
+ /** Pick exactly one option from a fixed, unordered set. Option keys are the values returned to the Agent. */
1804
+ interface ChoiceQuestion {
1805
+ type: "choice";
1806
+ instructions: EvaluationEntry;
1807
+ /** Option key to description. `null` leaves the option undescribed. */
1808
+ criteria: {
1809
+ [option: string]: EvaluationEntry;
1810
+ };
1811
+ }
1812
+ /** Place the state on an ordered scale. Levels are described in order from the lowest index. */
1813
+ interface ScoreQuestion {
1814
+ type: "score";
1815
+ instructions: EvaluationEntry;
1816
+ /** At least two ordered level descriptions; the answer is a probability-weighted position along them. */
1817
+ criteria: readonly EvaluationEntry[];
1818
+ }
1819
+ /** Estimate the probability that a statement about the state is true. */
1820
+ interface NoulQuestion {
1821
+ type: "noul";
1822
+ instructions: EvaluationEntry;
1823
+ /** Optional descriptions of what yes (near 1) and no (near 0) mean. */
1824
+ criteria?: {
1825
+ true?: EvaluationEntry;
1826
+ false?: EvaluationEntry;
1827
+ };
1828
+ }
1829
+ type EvaluationQuestion = ChoiceQuestion | ScoreQuestion | NoulQuestion;
1830
+ type EvaluationQuestions = {
1831
+ [id: string]: EvaluationQuestion;
1832
+ };
1833
+ interface ChoiceAnswer<Option extends string = string> {
1834
+ type: "choice";
1835
+ /** The highest-probability option. */
1836
+ choice: Option;
1837
+ /** Every option mapped to its probability; the values sum to one. */
1838
+ probabilities: Record<Option, number>;
1839
+ /** How peaked the distribution is, from 0 to 1. */
1840
+ confidence: number;
1841
+ }
1842
+ interface ScoreAnswer {
1843
+ type: "score";
1844
+ /** Probability-weighted position along the levels; may fall between two of them. */
1845
+ score: number;
1846
+ /** Each level index, as a string key, mapped back to its description. */
1847
+ legend: Record<string, EvaluationEntry>;
1848
+ /** Each level index, as a string key, mapped to its probability; the values sum to one. */
1849
+ probabilities: Record<string, number>;
1850
+ confidence: number;
1851
+ }
1852
+ interface NoulAnswer {
1853
+ type: "noul";
1854
+ /** Probability that the statement is true, from 0 to 1. Noul carries no separate confidence. */
1855
+ noul: number;
1856
+ }
1857
+ type EvaluationAnswer = ChoiceAnswer | ScoreAnswer | NoulAnswer;
1858
+ /** The typed answer a question shape produces; Choice answers keep the literal option keys of their criteria. */
1859
+ type EvaluationAnswerFor<Q> = Q extends ChoiceQuestion ? ChoiceAnswer<Extract<keyof Q["criteria"], string>> : Q extends ScoreQuestion ? ScoreAnswer : Q extends NoulQuestion ? NoulAnswer : EvaluationAnswer;
1860
+ type EvaluationAnswers<Q extends EvaluationQuestions> = {
1861
+ [K in keyof Q]: EvaluationAnswerFor<Q[K]>;
1862
+ };
1863
+ /** Argument shape of the `evaluate` model operation. */
1864
+ interface EvaluationInvocationArgs<Q extends EvaluationQuestions = EvaluationQuestions> {
1865
+ /** Logical Model identity or a model selected through a bound Gateway, evaluated under Policy. */
1866
+ model?: string;
1867
+ /** The content to evaluate: a string, or a JSON object or array of related context. */
1868
+ state: EvaluationEntry;
1869
+ /** At least one named question; answers come back under the same ids. */
1870
+ questions: Q;
1871
+ }
1872
+ interface EvaluationInvocationResult<Q extends EvaluationQuestions = EvaluationQuestions> {
1873
+ answers: EvaluationAnswers<Q>;
1874
+ /** Integration-observed timing for the complete upstream request. */
1875
+ timing?: {
1876
+ upstreamMs: number;
1877
+ };
1878
+ usage: ModelInvocationResult["usage"];
1879
+ provider: string;
1880
+ model: string;
1881
+ }
1882
+ type EvaluationProtocol = "typesafe";
1883
+ declare const EVALUATION_LIMITS: {
1884
+ readonly maxQuestions: 512;
1885
+ readonly maxChoiceOptions: 512;
1886
+ readonly maxScoreLevels: 128;
1887
+ readonly maxDepth: 32;
1888
+ /** Bytes of the canonical request body; evaluation models bound state and questions jointly by tokens. */
1889
+ readonly maxRequestBytes: 1048576;
1890
+ };
1891
+ /** One validated argument shape for Policy, accounting, and provider dispatch. */
1892
+ declare function evaluationArguments(value: unknown): EvaluationInvocationArgs;
1893
+ /** The upstream wire request. TypeSafe's System One endpoint accepts the evaluation contract natively. */
1894
+ declare function evaluationProtocolRequest(protocol: EvaluationProtocol, model: string, args: Pick<EvaluationInvocationArgs, "state" | "questions">): Record<string, unknown>;
1895
+ /** Decode the upstream response into typed answers, refusing any answer outside the options and levels the caller supplied. */
1896
+ declare function evaluationProtocolResult<Q extends EvaluationQuestions>(protocol: EvaluationProtocol, raw: unknown, provider: string, model: string, questions: Q): EvaluationInvocationResult<Q>;
1897
+ /** Read a Noul answer as a decision at the caller's threshold. */
1898
+ declare function noulDecision(answer: NoulAnswer, threshold?: number): boolean;
1899
+ /** The nearest whole level of a Score answer. Use the expectation itself only for threshold comparisons. */
1900
+ declare function scoreLevel(answer: ScoreAnswer): number;
1901
+
1713
1902
  type Tier = "scratch" | "standard" | "audit";
1714
1903
  type Mode = "script" | "durable";
1715
1904
  type EffectClass = "read-only" | "idempotent" | "reconcilable" | "non-idempotent";
@@ -1961,6 +2150,26 @@ interface Handle<T> extends PromiseLike<T> {
1961
2150
  interface InvocationHandle<T> extends Handle<T> {
1962
2151
  start(): Promise<void>;
1963
2152
  }
2153
+ /** A message to an exactly bound Agent creates one distinct target Run. */
2154
+ type AgentSendOpts = {
2155
+ session: string;
2156
+ completion?: "receipt";
2157
+ } | {
2158
+ session?: string;
2159
+ completion: "run-result";
2160
+ timeoutMs?: number;
2161
+ };
2162
+ interface AgentDeliveryReceipt {
2163
+ id: string;
2164
+ state: "enqueued";
2165
+ target: {
2166
+ agent: CRN;
2167
+ session: string;
2168
+ };
2169
+ }
2170
+ interface AgentResultDelivery<T> extends AgentDeliveryReceipt {
2171
+ result: Handle<T>;
2172
+ }
1964
2173
  interface CommitOpts {
1965
2174
  tier?: Tier;
1966
2175
  gate?: string | GateEvidence | {
@@ -2051,10 +2260,17 @@ interface TurnGate {
2051
2260
  feedback?(rec: TurnRecord | TurnDraft): string;
2052
2261
  onExhausted?: "fail" | "commit-with-verdict";
2053
2262
  }
2263
+ /** One prior exchange the model sees as a message of its own, so a provider's prompt cache extends over it. */
2264
+ interface TurnHistoryMessage {
2265
+ role: "user" | "assistant";
2266
+ content: string;
2267
+ }
2054
2268
  interface TurnSpec extends ModelGenerationOptions {
2055
2269
  system: string;
2056
2270
  objective?: unknown;
2057
2271
  context?: unknown;
2272
+ /** Earlier exchanges, oldest first, sent as messages after the objective and context rather than inside them. */
2273
+ history?: TurnHistoryMessage[];
2058
2274
  tools?: string[];
2059
2275
  /** Require one of the offered Tools for this model generation. */
2060
2276
  toolChoice?: "auto" | "required";
@@ -2276,7 +2492,7 @@ interface ReduceFact {
2276
2492
  }
2277
2493
  type ScopeJournalKind = "turn" | "tool" | "step";
2278
2494
  type LocalJournalKind = "clock" | "random" | "score" | "commit" | "await" | "spawn" | "map" | "reduce" | "view" | "page" | "truncate" | "cancel" | "capability";
2279
- type JournalKind = ScopeJournalKind | LocalJournalKind | "invoke";
2495
+ type JournalKind = ScopeJournalKind | LocalJournalKind | "invoke" | "send";
2280
2496
  /** Stable identity available to Agent code. Platform execution and deployment
2281
2497
  * metadata intentionally remain outside the public Agent context. */
2282
2498
  interface RunInfo {
@@ -2332,8 +2548,25 @@ interface BoundResourceCapabilities {
2332
2548
  maxOutputTokens?: number;
2333
2549
  };
2334
2550
  }
2551
+ /** One evaluation of shared state against typed questions through a bound evaluation Model, or a Gateway plus explicit model identifier. */
2552
+ interface EvaluationSpec<Q extends EvaluationQuestions = EvaluationQuestions> {
2553
+ state: EvaluationEntry;
2554
+ questions: Q;
2555
+ /** Model binding name; when gateway is supplied, the Gateway's model identifier instead. */
2556
+ model?: string;
2557
+ /** Bound Gateway to use with the explicitly selected model identifier. */
2558
+ gateway?: string;
2559
+ }
2560
+ interface EvaluationRecord<Q extends EvaluationQuestions = EvaluationQuestions> {
2561
+ answers: EvaluationAnswers<Q>;
2562
+ cost: Cost;
2563
+ provider: string;
2564
+ model: string;
2565
+ }
2335
2566
  interface Ctx {
2336
2567
  turn(spec: TurnSpec): Promise<TurnRecord>;
2568
+ /** Judge one state with constrained, probabilistic answers instead of a generated turn. Journaled and priced like a model call. */
2569
+ evaluate<Q extends EvaluationQuestions>(spec: EvaluationSpec<Q>): Promise<EvaluationRecord<Q>>;
2337
2570
  ledger: {
2338
2571
  view<S = HistoryView>(name?: string, opts?: {
2339
2572
  of?: LedgerAddress;
@@ -2358,6 +2591,13 @@ interface Ctx {
2358
2591
  sandboxPool(resource: CRN): SandboxPool;
2359
2592
  invoke<T>(resource: CRN, op: string, args: unknown, opts?: InvokeOpts): Promise<T>;
2360
2593
  invokeAsync<T>(resource: CRN, op: string, args: unknown, opts?: InvokeOpts): InvocationHandle<T>;
2594
+ send<T>(agent: CRN, input: unknown, opts: AgentSendOpts & {
2595
+ completion: "run-result";
2596
+ }): Promise<AgentResultDelivery<T>>;
2597
+ send(agent: CRN, input: unknown, opts: {
2598
+ session: string;
2599
+ completion?: "receipt";
2600
+ }): Promise<AgentDeliveryReceipt>;
2361
2601
  request(policy: PolicyCRN, grant: CapabilityGrant): Handle<CapabilityRef>;
2362
2602
  analytics: AnalyticsClient;
2363
2603
  run: RunInfo;
@@ -2698,6 +2938,35 @@ interface UiHandler {
2698
2938
  }): void;
2699
2939
  }
2700
2940
  declare function uiBundleManifest(value: unknown, execution: UiExecution["mode"]): UiBundleManifest;
2941
+ declare const UI_ASSET_CONTENT_TYPES: Readonly<{
2942
+ readonly html: "text/html; charset=utf-8";
2943
+ readonly htm: "text/html; charset=utf-8";
2944
+ readonly js: "text/javascript; charset=utf-8";
2945
+ readonly mjs: "text/javascript; charset=utf-8";
2946
+ readonly css: "text/css; charset=utf-8";
2947
+ readonly json: "application/json; charset=utf-8";
2948
+ readonly map: "application/json; charset=utf-8";
2949
+ readonly txt: "text/plain; charset=utf-8";
2950
+ readonly md: "text/plain; charset=utf-8";
2951
+ readonly xml: "application/xml";
2952
+ readonly svg: "image/svg+xml";
2953
+ readonly png: "image/png";
2954
+ readonly jpg: "image/jpeg";
2955
+ readonly jpeg: "image/jpeg";
2956
+ readonly gif: "image/gif";
2957
+ readonly webp: "image/webp";
2958
+ readonly ico: "image/x-icon";
2959
+ readonly woff: "font/woff";
2960
+ readonly woff2: "font/woff2";
2961
+ readonly ttf: "font/ttf";
2962
+ readonly wasm: "application/wasm";
2963
+ readonly webmanifest: "application/manifest+json";
2964
+ readonly mp3: "audio/mpeg";
2965
+ readonly mp4: "video/mp4";
2966
+ }>;
2967
+ declare function uiAssetContentType(path: string): string;
2968
+ /** Fills the defaults of a partial `constal.ui.json` authored inside an Agent's UI directory. */
2969
+ declare function agentUiBundleManifest(value: unknown, execution: UiExecution["mode"]): UiBundleManifest;
2701
2970
  declare function uiBundle(value: unknown, execution: UiExecution["mode"]): UiBundle;
2702
2971
 
2703
2972
  type SetupStepStatus = "pending" | "current" | "complete" | "blocked";
@@ -2805,6 +3074,8 @@ interface SetupSubmission {
2805
3074
  action: string;
2806
3075
  values?: Record<string, unknown>;
2807
3076
  }
3077
+ /** A panel names its provider by CRN, or by a platform capability name the platform resolves to one published provider. */
3078
+ declare function setupPanelProviderIsCrn(provider: string): boolean;
2808
3079
  /** Validates the bounded presentation artifact consumed by trusted Console renderers. */
2809
3080
  declare function setupScreen(value: unknown): SetupScreen;
2810
3081
  /** Validates one response against the exact open screen revision and form schema. */
@@ -4080,7 +4351,15 @@ declare class NondeterministicReplay extends Error {
4080
4351
  declare class OutcomeUnknown extends Error {
4081
4352
  readonly pos: string;
4082
4353
  readonly effect: EffectClass;
4083
- constructor(pos: string, effect: EffectClass);
4354
+ readonly detail: {
4355
+ code?: string;
4356
+ message: string;
4357
+ } | null;
4358
+ /** `detail` is what the platform last heard from the Resource, so the agent learns why the outcome stayed unknown. */
4359
+ constructor(pos: string, effect: EffectClass, detail?: {
4360
+ code?: string;
4361
+ message: string;
4362
+ } | null);
4084
4363
  }
4085
4364
  declare class LeaseLost extends Error {
4086
4365
  constructor(message?: string);
@@ -4149,5 +4428,5 @@ declare class SessionDeleted extends Error {
4149
4428
  constructor(session: string);
4150
4429
  }
4151
4430
 
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 };
4431
+ 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 };
4432
+ 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, SandboxCommandCollectionError, SandboxCommandExecution, 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 };