@xemahq/llm-registry-internal-api-client 0.2.0 → 0.3.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/dist/endpoints/internal-agent-invocation/internal-agent-invocation.d.ts +2 -2
- package/dist/endpoints/internal-agent-invocation/internal-agent-invocation.js +2 -2
- package/dist/models/agentInvokeRequestDto.d.ts +24 -0
- package/dist/models/agentInvokeRequestDto.js +2 -0
- package/dist/models/agentInvokeRequestDtoInput.d.ts +13 -0
- package/dist/models/agentInvokeRequestDtoInput.js +9 -0
- package/dist/models/index.d.ts +2 -2
- package/dist/models/index.js +2 -2
- package/dist/models/xemaObjectResponseDto.d.ts +1 -1
- package/dist/models/xemaObjectResponseDtoPayload.d.ts +1 -1
- package/package.json +2 -3
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
* Central registry for LLM providers, models, and per-project model configuration
|
|
6
6
|
* OpenAPI spec version: 0.1.0
|
|
7
7
|
*/
|
|
8
|
-
import type {
|
|
8
|
+
import type { AgentInvokeRequestDto } from '../../models';
|
|
9
9
|
export declare const getInvocationControllerInvokeUrl: () => string;
|
|
10
10
|
/**
|
|
11
11
|
* Validates the request, dedups on `(orgId, idempotencyKey)`, resolves the composition, dispatches one agent turn through agent-session-api, enforces the output schema when `outputSchemaRef` is set, writes a terminal Invocation record, and returns the root structured output as `output`.
|
|
12
12
|
* @summary Invoke a published composition synchronously and return its terminal result.
|
|
13
13
|
*/
|
|
14
|
-
export declare const invocationControllerInvoke: (
|
|
14
|
+
export declare const invocationControllerInvoke: (agentInvokeRequestDto: AgentInvokeRequestDto, options?: RequestInit) => Promise<void>;
|
|
@@ -10,12 +10,12 @@ exports.getInvocationControllerInvokeUrl = getInvocationControllerInvokeUrl;
|
|
|
10
10
|
* Validates the request, dedups on `(orgId, idempotencyKey)`, resolves the composition, dispatches one agent turn through agent-session-api, enforces the output schema when `outputSchemaRef` is set, writes a terminal Invocation record, and returns the root structured output as `output`.
|
|
11
11
|
* @summary Invoke a published composition synchronously and return its terminal result.
|
|
12
12
|
*/
|
|
13
|
-
const invocationControllerInvoke = async (
|
|
13
|
+
const invocationControllerInvoke = async (agentInvokeRequestDto, options) => {
|
|
14
14
|
return (0, custom_fetch_1.customFetch)((0, exports.getInvocationControllerInvokeUrl)(), {
|
|
15
15
|
...options,
|
|
16
16
|
method: 'POST',
|
|
17
17
|
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
18
|
-
body: JSON.stringify(
|
|
18
|
+
body: JSON.stringify(agentInvokeRequestDto)
|
|
19
19
|
});
|
|
20
20
|
};
|
|
21
21
|
exports.invocationControllerInvoke = invocationControllerInvoke;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* LLM Registry API
|
|
5
|
+
* Central registry for LLM providers, models, and per-project model configuration
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
import type { AgentInvokeRequestDtoInput } from './agentInvokeRequestDtoInput.js';
|
|
9
|
+
import type { ExecutionRequirementsDto } from './executionRequirementsDto.js';
|
|
10
|
+
export interface AgentInvokeRequestDto {
|
|
11
|
+
/** Agent ref (`slug` or `slug@version`) to execute. */
|
|
12
|
+
agentRef: string;
|
|
13
|
+
/** Tenant scope: organization id. */
|
|
14
|
+
orgId: string;
|
|
15
|
+
/** Tenant scope: project id (optional). */
|
|
16
|
+
projectId?: string;
|
|
17
|
+
/** Thread key (org+mailbox+emailThreadId for mail). Carries thread-continuity intent; STRICT isolation in Phase 1. */
|
|
18
|
+
threadKey: string;
|
|
19
|
+
/** Correlation id propagated through execution and audit. */
|
|
20
|
+
correlationId?: string;
|
|
21
|
+
/** Input payload handed to the composition root as the turn content. */
|
|
22
|
+
input: AgentInvokeRequestDtoInput;
|
|
23
|
+
requirements: ExecutionRequirementsDto;
|
|
24
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* LLM Registry API
|
|
5
|
+
* Central registry for LLM providers, models, and per-project model configuration
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Input payload handed to the composition root as the turn content.
|
|
10
|
+
*/
|
|
11
|
+
export type AgentInvokeRequestDtoInput = {
|
|
12
|
+
[key: string]: unknown;
|
|
13
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by orval v8.16.0 🍺
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
* LLM Registry API
|
|
6
|
+
* Central registry for LLM providers, models, and per-project model configuration
|
|
7
|
+
* OpenAPI spec version: 0.1.0
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './
|
|
1
|
+
export * from './agentInvokeRequestDto';
|
|
2
|
+
export * from './agentInvokeRequestDtoInput';
|
|
3
3
|
export * from './describeObjectsResponseDto';
|
|
4
4
|
export * from './errorDetailsDto';
|
|
5
5
|
export * from './errorDetailsDtoDetails';
|
package/dist/models/index.js
CHANGED
|
@@ -15,8 +15,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
// Auto-generated by tooling/codegen/regenerate-models-barrel.js — do not edit manually.
|
|
18
|
-
__exportStar(require("./
|
|
19
|
-
__exportStar(require("./
|
|
18
|
+
__exportStar(require("./agentInvokeRequestDto"), exports);
|
|
19
|
+
__exportStar(require("./agentInvokeRequestDtoInput"), exports);
|
|
20
20
|
__exportStar(require("./describeObjectsResponseDto"), exports);
|
|
21
21
|
__exportStar(require("./errorDetailsDto"), exports);
|
|
22
22
|
__exportStar(require("./errorDetailsDtoDetails"), exports);
|
|
@@ -21,6 +21,6 @@ export interface XemaObjectResponseDto {
|
|
|
21
21
|
version: string;
|
|
22
22
|
/** Always `published` — the projection only carries resolvable rows. */
|
|
23
23
|
lifecycle: ObjectLifecycle;
|
|
24
|
-
/** Kind-specific payload. Narrows to
|
|
24
|
+
/** Kind-specific payload. Narrows to AgentKernelPayloadDto | AgentPayloadDto | ModelPayloadDto | ModelResolutionRulePayloadDto based on `kind`. */
|
|
25
25
|
payload: XemaObjectResponseDtoPayload;
|
|
26
26
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* OpenAPI spec version: 0.1.0
|
|
7
7
|
*/
|
|
8
8
|
/**
|
|
9
|
-
* Kind-specific payload. Narrows to
|
|
9
|
+
* Kind-specific payload. Narrows to AgentKernelPayloadDto | AgentPayloadDto | ModelPayloadDto | ModelResolutionRulePayloadDto based on `kind`.
|
|
10
10
|
*/
|
|
11
11
|
export type XemaObjectResponseDtoPayload = {
|
|
12
12
|
[key: string]: unknown;
|
package/package.json
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xemahq/llm-registry-internal-api-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist"
|
|
8
8
|
],
|
|
9
9
|
"publishConfig": {
|
|
10
|
-
"registry": "https://
|
|
11
|
-
"access": "public"
|
|
10
|
+
"registry": "https://npm.pkg.github.com"
|
|
12
11
|
},
|
|
13
12
|
"devDependencies": {
|
|
14
13
|
"typescript": "5.9.3"
|