@deliverd/sdk 0.20.0 → 0.22.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/released.d.ts +1 -1
- package/dist/released.d.ts.map +1 -1
- package/dist/released.js +1829 -0
- package/dist/tasks.js +1 -1
- package/dist/types.d.ts +10 -5
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/released.ts +1829 -0
- package/src/tasks.ts +1 -1
- package/src/types.ts +10 -5
package/src/tasks.ts
CHANGED
|
@@ -43,7 +43,7 @@ import type {
|
|
|
43
43
|
* A governed task (Compliance Mode, Business and Enterprise) also has
|
|
44
44
|
* controls, evidence and a gate: `submitEvidence()` records what a run
|
|
45
45
|
* measured, a tool's own report, or an experiment pulled from the
|
|
46
|
-
* organisation's Langfuse, and `checkGovernanceGate()` says whether
|
|
46
|
+
* organisation's Langfuse or LangSmith, and `checkGovernanceGate()` says whether
|
|
47
47
|
* the work may proceed. Thresholds are a person's to set; an agent's key is
|
|
48
48
|
* refused, so whatever submits the results does not decide what passes.
|
|
49
49
|
*/
|
package/src/types.ts
CHANGED
|
@@ -1601,9 +1601,9 @@ export interface SubmitEvidenceInput {
|
|
|
1601
1601
|
/** A tool's own report, as it wrote it, read by the server into results. Instead of `results`. Up to 4 MB. */
|
|
1602
1602
|
report?: EvidenceReport;
|
|
1603
1603
|
/**
|
|
1604
|
-
* Read the results from the organisation's connected Langfuse
|
|
1605
|
-
* which you never hold. Instead of `results` or `report`.
|
|
1606
|
-
* owner or an administrator in Admin → Integrations.
|
|
1604
|
+
* Read the results from the organisation's connected Langfuse or LangSmith,
|
|
1605
|
+
* with its key, which you never hold. Instead of `results` or `report`.
|
|
1606
|
+
* Connected by an owner or an administrator in Admin → Integrations.
|
|
1607
1607
|
*/
|
|
1608
1608
|
pull?: EvidencePull;
|
|
1609
1609
|
}
|
|
@@ -1615,8 +1615,8 @@ export interface EvidenceReport {
|
|
|
1615
1615
|
|
|
1616
1616
|
/** Which experiment to read, from which connected tool. */
|
|
1617
1617
|
export interface EvidencePull {
|
|
1618
|
-
source: "langfuse";
|
|
1619
|
-
/** The experiment's name: the newest with it is read. */
|
|
1618
|
+
source: "langfuse" | "langsmith";
|
|
1619
|
+
/** The experiment's name: the newest with it is read. In LangSmith, also the prefix `evaluate()` was given. */
|
|
1620
1620
|
experiment?: string;
|
|
1621
1621
|
/** Or its id, exactly. */
|
|
1622
1622
|
experimentId?: string;
|
|
@@ -1656,8 +1656,13 @@ export interface GovernanceControl {
|
|
|
1656
1656
|
required: boolean;
|
|
1657
1657
|
/** Pieces of evidence that count towards it. */
|
|
1658
1658
|
evidence: number;
|
|
1659
|
+
/** What scored evidence must meet: the task's own, or the organisation's default when it has none. */
|
|
1659
1660
|
thresholds: ControlThresholds | null;
|
|
1661
|
+
/** Whose the thresholds are: set on this task, or the organisation's default. Null with none. */
|
|
1662
|
+
thresholdsSource: "task" | "organisation" | null;
|
|
1660
1663
|
thresholdsSetBy: string | null;
|
|
1664
|
+
/** The organisation's default for this control, whether or not the task has its own. */
|
|
1665
|
+
defaultThresholds: ControlThresholds | null;
|
|
1661
1666
|
scores: ControlScores | null;
|
|
1662
1667
|
/** The framework requirements that ask for it. */
|
|
1663
1668
|
sources: GovernanceControlSource[];
|