@tryvira/sdk 0.1.36 → 0.1.38
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 +6 -1
- package/dist/index.js +5 -0
- package/dist/js-client.d.ts +3 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -110,7 +110,12 @@ const imported = await vira.importPack({
|
|
|
110
110
|
});
|
|
111
111
|
|
|
112
112
|
const packId = String(imported.body.pack.id);
|
|
113
|
-
|
|
113
|
+
// The second argument is the variables dictionary itself.
|
|
114
|
+
// Do not wrap it in `{ variables: ... }`.
|
|
115
|
+
await vira.installPack(packId, {
|
|
116
|
+
region: "eu",
|
|
117
|
+
response_style: "concise",
|
|
118
|
+
});
|
|
114
119
|
const evaluation = await vira.evaluatePack(packId, {
|
|
115
120
|
evaluationId: "evaluation-from-vira-provider",
|
|
116
121
|
});
|
package/dist/index.js
CHANGED
|
@@ -726,6 +726,11 @@ var ViraClient = class {
|
|
|
726
726
|
required(proposalId, "SDK_TEACH_PROPOSAL_ID_REQUIRED");
|
|
727
727
|
return this.request({ method: "POST", path: `/v1/teach/proposals/${encodeURIComponent(proposalId)}/${transition}`, body: input }, { idempotencyKey: options.idempotencyKey ?? `sdk:teach:${transition}:${proposalId}` });
|
|
728
728
|
}
|
|
729
|
+
requestTeachProposalChanges(proposalId, feedback, options = {}) {
|
|
730
|
+
required(proposalId, "SDK_TEACH_PROPOSAL_ID_REQUIRED");
|
|
731
|
+
required(feedback, "SDK_TEACH_REQUEST_CHANGES_FEEDBACK_REQUIRED");
|
|
732
|
+
return this.request({ method: "POST", path: `/v1/teach/proposals/${encodeURIComponent(proposalId)}/request-changes`, body: { feedback } }, { idempotencyKey: options.idempotencyKey ?? `sdk:teach:request-changes:${proposalId}:${feedback}` });
|
|
733
|
+
}
|
|
729
734
|
startEvaluation(input, options = {}) {
|
|
730
735
|
return this.request(
|
|
731
736
|
{ method: "POST", path: "/v1/evaluations", body: input },
|
package/dist/js-client.d.ts
CHANGED
|
@@ -433,6 +433,9 @@ export declare class ViraClient {
|
|
|
433
433
|
transitionTeachProposal(proposalId: string, transition: 'review' | 'evaluate' | 'promote', input?: ClientBody, options?: {
|
|
434
434
|
idempotencyKey?: string;
|
|
435
435
|
}): Promise<ViraResponse<ClientBody> | null>;
|
|
436
|
+
requestTeachProposalChanges(proposalId: string, feedback: string, options?: {
|
|
437
|
+
idempotencyKey?: string;
|
|
438
|
+
}): Promise<ViraResponse<ClientBody> | null>;
|
|
436
439
|
startEvaluation(input: ClientBody, options?: {
|
|
437
440
|
idempotencyKey?: string;
|
|
438
441
|
}): 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.38",
|
|
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"},
|