@xemahq/llm-registry-api-client 0.8.1 → 0.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/models/createModelStrategyDto.d.ts +11 -1
- package/dist/models/createModelStrategyEntryDto.d.ts +2 -2
- package/dist/models/createModelStrategyEntryDto.js +5 -0
- package/dist/models/index.d.ts +0 -1
- package/dist/models/index.js +0 -1
- package/dist/models/modelResolutionSource.d.ts +0 -1
- package/dist/models/modelResolutionSource.js +0 -1
- package/dist/models/resolveFullResponseDto.d.ts +3 -0
- package/dist/models/resolveModelForInvocationDto.d.ts +2 -3
- package/dist/models/resolvedModelSelectionDtoSource.d.ts +0 -1
- package/dist/models/resolvedModelSelectionDtoSource.js +0 -1
- package/dist/models/resolvedModelStubDtoSource.d.ts +0 -1
- package/dist/models/resolvedModelStubDtoSource.js +0 -1
- package/dist/models/workKindDto.d.ts +1 -1
- package/package.json +1 -1
- package/dist/models/modelClass.d.ts +0 -17
- package/dist/models/modelClass.js +0 -16
|
@@ -18,6 +18,16 @@ export interface CreateModelStrategyDto {
|
|
|
18
18
|
appliesToAgentSlugs?: string[];
|
|
19
19
|
/** Stage keys this child strategy applies to */
|
|
20
20
|
appliesToStageKeys?: string[];
|
|
21
|
-
/**
|
|
21
|
+
/** This strategy's DEFAULT model — what an invocation routes to when the requested work kind has no entry below. REQUIRED when authoring a strategy: a strategy with no default cannot answer an unbound kind, and the platform will not choose a model on an organisation's behalf. (A stored strategy may legitimately have none — that is an organisation that has not chosen yet. Authoring one that way is a different thing, and it is refused here, where the person who can fix it is present.) */
|
|
22
|
+
defaultModelSlug: string;
|
|
23
|
+
/**
|
|
24
|
+
* Temperature for the default binding (0-2). Omitted = the engine/model owns it; no platform value is ever materialized.
|
|
25
|
+
* @minimum 0
|
|
26
|
+
* @maximum 2
|
|
27
|
+
*/
|
|
28
|
+
defaultTemperature?: number;
|
|
29
|
+
/** Reasoning effort for the default binding. Same posture as `defaultTemperature`: omitted = the engine/model owns it. */
|
|
30
|
+
defaultReasoningEffort?: string;
|
|
31
|
+
/** Work kind → model entries (at most one per kind). An entry OVERRIDES the default binding for the kind it names; a kind with no entry uses the default. */
|
|
22
32
|
entries: CreateModelStrategyEntryDto[];
|
|
23
33
|
}
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* LLM Registry API
|
|
4
4
|
* OpenAPI spec version: 0.1.3
|
|
5
5
|
*/
|
|
6
|
-
import type { ModelClass } from './modelClass.js';
|
|
7
6
|
export interface CreateModelStrategyEntryDto {
|
|
8
|
-
|
|
7
|
+
/** The work kind this entry routes. An OPEN vocabulary: the kernel core plus every key a biome or this organisation has declared. Lower-kebab; validated for GRAMMAR here and for DECLARATION where org context exists. */
|
|
8
|
+
modelClass: string;
|
|
9
9
|
/** Model slug/ID to match against LlmModel.modelId */
|
|
10
10
|
modelSlug: string;
|
|
11
11
|
/**
|
package/dist/models/index.d.ts
CHANGED
|
@@ -178,7 +178,6 @@ export * from './migrationProvisionDto';
|
|
|
178
178
|
export * from './migrationProvisionDtoConsumer';
|
|
179
179
|
export * from './migrationTargetDto';
|
|
180
180
|
export * from './modelCapability';
|
|
181
|
-
export * from './modelClass';
|
|
182
181
|
export * from './modelModality';
|
|
183
182
|
export * from './modelMode';
|
|
184
183
|
export * from './modelPricingTierDto';
|
package/dist/models/index.js
CHANGED
|
@@ -195,7 +195,6 @@ __exportStar(require("./migrationProvisionDto"), exports);
|
|
|
195
195
|
__exportStar(require("./migrationProvisionDtoConsumer"), exports);
|
|
196
196
|
__exportStar(require("./migrationTargetDto"), exports);
|
|
197
197
|
__exportStar(require("./modelCapability"), exports);
|
|
198
|
-
__exportStar(require("./modelClass"), exports);
|
|
199
198
|
__exportStar(require("./modelModality"), exports);
|
|
200
199
|
__exportStar(require("./modelMode"), exports);
|
|
201
200
|
__exportStar(require("./modelPricingTierDto"), exports);
|
|
@@ -10,7 +10,6 @@ export type ModelResolutionSource = typeof ModelResolutionSource[keyof typeof Mo
|
|
|
10
10
|
export declare const ModelResolutionSource: {
|
|
11
11
|
readonly matrix: "matrix";
|
|
12
12
|
readonly strategy: "strategy";
|
|
13
|
-
readonly role: "role";
|
|
14
13
|
readonly override: "override";
|
|
15
14
|
readonly unresolved: "unresolved";
|
|
16
15
|
};
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* OpenAPI spec version: 0.1.3
|
|
5
5
|
*/
|
|
6
6
|
import type { AgentExecutionMode } from './agentExecutionMode.js';
|
|
7
|
+
import type { AgentWorkspaceDto } from './agentWorkspaceDto.js';
|
|
7
8
|
import type { ResolvedAgentToolProfileDto } from './resolvedAgentToolProfileDto.js';
|
|
8
9
|
import type { ResolvedModelSelectionDto } from './resolvedModelSelectionDto.js';
|
|
9
10
|
import type { ResolvedModelStubDto } from './resolvedModelStubDto.js';
|
|
@@ -53,6 +54,8 @@ export interface ResolveFullResponseDto {
|
|
|
53
54
|
intrinsicTools: string[];
|
|
54
55
|
/** Full LLM routing record (modelId + providerSlug + opencodeProviderId + temperature + contextWindow). Carries the same data as `model` plus the worker-side `opencodeProviderId`. Decoupled from `structuralConfigHash` on purpose. */
|
|
55
56
|
modelSelection: ResolvedModelSelectionDto;
|
|
57
|
+
/** The agent's compiled workspace block — mount layout, persist paths, env and output surface — merged from its SELF-WRAP workspace manifest at biome discovery and stored verbatim on the agent. `null` for an agent that ships no self-wrap manifest: a sub-agent-only leaf is never launched as an interactive session and needs no user-data layout. */
|
|
58
|
+
workspace?: AgentWorkspaceDto | null;
|
|
56
59
|
/**
|
|
57
60
|
* Frozen resolved snapshot ID for this top-level resolution.
|
|
58
61
|
* @nullable
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
* OpenAPI spec version: 0.1.3
|
|
5
5
|
*/
|
|
6
6
|
import type { ModelCapability } from './modelCapability.js';
|
|
7
|
-
import type { ModelClass } from './modelClass.js';
|
|
8
7
|
export interface ResolveModelForInvocationDto {
|
|
9
8
|
/**
|
|
10
9
|
* The Space this invocation happens in, as a canonical `xema://` SpaceRef. `xema://orgs/<orgId>` for an org-scoped invocation (a Canopy turn, a memory summarization, an org-layer session); `xema://orgs/<orgId>/projects/<projectId>` when the invocation genuinely belongs to a project. The org segment MUST match the calling context's org — it selects a Space inside the tenant the token already proved, and never widens it. Only the `project` form contributes the Matrix's `project` dimension; an org-scoped resolve carries no project dimension at all, so a `project` selector rule cannot match it.
|
|
@@ -43,8 +42,8 @@ export interface ResolveModelForInvocationDto {
|
|
|
43
42
|
* @maxLength 512
|
|
44
43
|
*/
|
|
45
44
|
purpose?: string;
|
|
46
|
-
/** Per-session "smartness" preference — the Matrix `modelClass` MATCHED dimension, NOT an above-rules override. It populates the resolution context so a tier-injected managed rule can CLAMP it, and an unmapped
|
|
47
|
-
preferredModelClass?:
|
|
45
|
+
/** Per-session "smartness" preference — the Matrix `modelClass` MATCHED dimension, NOT an above-rules override. It populates the resolution context so a tier-injected managed rule can CLAMP it, and an unmapped kind falls through to the org default rule. Ignored when an explicit `modelClass`/`modelId` override is present. An AGENT-axis work kind: the kernel core plus every key a biome or this organisation has declared. Lower-kebab; an undeclared value is a 400 so a typo never silently lands on the default rule's match path — the same posture `purpose` has one field up. */
|
|
46
|
+
preferredModelClass?: string;
|
|
48
47
|
/**
|
|
49
48
|
* The active/launched skill — the Matrix `skill` dimension. Free-form: the skill vocabulary is open and owned by `skill-registry-api`, so an unknown value simply matches no rule rather than being refused.
|
|
50
49
|
* @maxLength 512
|
|
@@ -10,7 +10,6 @@ export type ResolvedModelSelectionDtoSource = typeof ResolvedModelSelectionDtoSo
|
|
|
10
10
|
export declare const ResolvedModelSelectionDtoSource: {
|
|
11
11
|
readonly matrix: "matrix";
|
|
12
12
|
readonly strategy: "strategy";
|
|
13
|
-
readonly role: "role";
|
|
14
13
|
readonly override: "override";
|
|
15
14
|
readonly unresolved: "unresolved";
|
|
16
15
|
};
|
|
@@ -10,7 +10,6 @@ export type ResolvedModelStubDtoSource = typeof ResolvedModelStubDtoSource[keyof
|
|
|
10
10
|
export declare const ResolvedModelStubDtoSource: {
|
|
11
11
|
readonly matrix: "matrix";
|
|
12
12
|
readonly strategy: "strategy";
|
|
13
|
-
readonly role: "role";
|
|
14
13
|
readonly override: "override";
|
|
15
14
|
readonly unresolved: "unresolved";
|
|
16
15
|
};
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import type { WorkKindAxis } from './workKindAxis.js';
|
|
7
7
|
export interface WorkKindDto {
|
|
8
|
-
/** The work-kind key. Lower-kebab
|
|
8
|
+
/** The work-kind key. Lower-kebab and NOT namespaced by the declaring biome: a key that encoded it would move when that biome is renamed or replaced, silently invalidating every rule and strategy entry that names it. */
|
|
9
9
|
key: string;
|
|
10
10
|
/** Which Matrix dimension this key may select. `agent` — work an agent does, selecting `modelClass`. `machine` — a use the platform or a biome makes of a model on nobody's behalf, selecting `purpose`. */
|
|
11
11
|
axis: WorkKindAxis;
|
package/package.json
CHANGED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
3
|
-
* LLM Registry API
|
|
4
|
-
* OpenAPI spec version: 0.1.3
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* Per-session "smartness" preference — the Matrix `modelClass` MATCHED dimension, NOT an above-rules override. It populates the resolution context so a tier-injected managed rule can CLAMP it, and an unmapped class falls through to the org default rule. Ignored when an explicit `modelClass`/`modelId` override is present.
|
|
8
|
-
*/
|
|
9
|
-
export type ModelClass = typeof ModelClass[keyof typeof ModelClass];
|
|
10
|
-
export declare const ModelClass: {
|
|
11
|
-
readonly generic: "generic";
|
|
12
|
-
readonly coding: "coding";
|
|
13
|
-
readonly review: "review";
|
|
14
|
-
readonly creative: "creative";
|
|
15
|
-
readonly planning: "planning";
|
|
16
|
-
readonly utility: "utility";
|
|
17
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
4
|
-
* LLM Registry API
|
|
5
|
-
* OpenAPI spec version: 0.1.3
|
|
6
|
-
*/
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.ModelClass = void 0;
|
|
9
|
-
exports.ModelClass = {
|
|
10
|
-
generic: 'generic',
|
|
11
|
-
coding: 'coding',
|
|
12
|
-
review: 'review',
|
|
13
|
-
creative: 'creative',
|
|
14
|
-
planning: 'planning',
|
|
15
|
-
utility: 'utility',
|
|
16
|
-
};
|