@tryvira/sdk 0.1.72 → 0.1.73
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/index.js +2 -0
- package/dist/js-client.d.ts +2 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -579,6 +579,7 @@ var ViraClient = class {
|
|
|
579
579
|
idempotencyKey: input.idempotencyKey
|
|
580
580
|
});
|
|
581
581
|
}
|
|
582
|
+
/** Classify input only; use resolveRuntime for one BehaviorPoint or resolveTaskRun/startTaskRun for TaskRun routing and execution. */
|
|
582
583
|
resolveSemantic(input) {
|
|
583
584
|
required(input.input, "SDK_SEMANTIC_INPUT_REQUIRED");
|
|
584
585
|
const { idempotencyKey, requestId, ...body } = input;
|
|
@@ -1024,6 +1025,7 @@ var ViraClient = class {
|
|
|
1024
1025
|
required(feedback, "SDK_TEACH_REQUEST_CHANGES_FEEDBACK_REQUIRED");
|
|
1025
1026
|
return this.request({ method: "POST", path: `/v1/teach/proposals/${encodeURIComponent(proposalId)}/request-changes`, body: { feedback } }, { idempotencyKey: options.idempotencyKey ?? `sdk:teach:request-changes:${proposalId}:${feedback}` });
|
|
1026
1027
|
}
|
|
1028
|
+
/** Start a standalone or comparative evaluation; use evaluatePack for Pack lifecycle evaluation. */
|
|
1027
1029
|
startEvaluation(input, options = {}) {
|
|
1028
1030
|
return this.request(
|
|
1029
1031
|
{ method: "POST", path: "/v1/evaluations", body: input },
|
package/dist/js-client.d.ts
CHANGED
|
@@ -397,6 +397,7 @@ export declare class ViraClient {
|
|
|
397
397
|
semanticContext?: Record<string, unknown>;
|
|
398
398
|
idempotencyKey?: string;
|
|
399
399
|
}): Promise<ViraResponse<RuntimeResolution> | null>;
|
|
400
|
+
/** Classify input only; use resolveRuntime for one BehaviorPoint or resolveTaskRun/startTaskRun for TaskRun routing and execution. */
|
|
400
401
|
resolveSemantic(input: {
|
|
401
402
|
input: string;
|
|
402
403
|
profile?: Record<string, unknown>;
|
|
@@ -644,6 +645,7 @@ export declare class ViraClient {
|
|
|
644
645
|
requestTeachProposalChanges(proposalId: string, feedback: string, options?: {
|
|
645
646
|
idempotencyKey?: string;
|
|
646
647
|
}): Promise<ViraResponse<ClientBody> | null>;
|
|
648
|
+
/** Start a standalone or comparative evaluation; use evaluatePack for Pack lifecycle evaluation. */
|
|
647
649
|
startEvaluation(input: ClientBody, options?: {
|
|
648
650
|
idempotencyKey?: string;
|
|
649
651
|
}): Promise<ViraResponse<ClientBody> | null>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tryvira/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.73",
|
|
4
4
|
"description": "Typed Vira SDK for connect-once, observation and governed runtime execution.",
|
|
5
5
|
"keywords": ["vira", "ai-governance", "ai-runtime", "semantic-routing"],
|
|
6
6
|
"engines": {"node": ">=20"},
|