@posthog/ai 8.16.3 → 8.17.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/README.md +8 -0
- package/dist/adk/index.cjs +1 -1
- package/dist/adk/index.mjs +1 -1
- package/dist/anthropic/index.cjs +1 -1
- package/dist/anthropic/index.mjs +1 -1
- package/dist/claude-agent-sdk/index.cjs +1 -1
- package/dist/claude-agent-sdk/index.mjs +1 -1
- package/dist/evaluations/index.cjs +2 -0
- package/dist/evaluations/index.cjs.map +1 -1
- package/dist/evaluations/index.d.ts +3 -0
- package/dist/evaluations/index.mjs +2 -0
- package/dist/evaluations/index.mjs.map +1 -1
- package/dist/gemini/index.cjs +1 -1
- package/dist/gemini/index.mjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/langchain/index.cjs +1 -1
- package/dist/langchain/index.mjs +1 -1
- package/dist/langchain/middleware/index.cjs +1 -1
- package/dist/langchain/middleware/index.mjs +1 -1
- package/dist/openai/index.cjs +1 -1
- package/dist/openai/index.mjs +1 -1
- package/dist/openai-agents/index.cjs +1 -1
- package/dist/openai-agents/index.mjs +1 -1
- package/dist/vercel/index.cjs +1 -1
- package/dist/vercel/index.mjs +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -148,6 +148,14 @@ repeated iteration starts again at the same revision. Keep the client open until
|
|
|
148
148
|
Use the snapshot's `revisionId` for the experiment, even when individual items were introduced
|
|
149
149
|
in earlier revisions. Source output and trace provenance never become a new execution's output.
|
|
150
150
|
|
|
151
|
+
Set `modelVersion` on `new EvaluationItem({ modelVersion, output })` or
|
|
152
|
+
`EvaluationItem.fromDatasetItem(row, { modelVersion, output })` to identify the model used for
|
|
153
|
+
that execution. Each item can override the experiment's `modelVersion`; omitted or null values
|
|
154
|
+
inherit the experiment default on the server. Dataset metadata never supplies this model.
|
|
155
|
+
Model identifiers must be nonempty strings of at most 255 characters and are preserved without
|
|
156
|
+
trimming. Explicit models survive serialization, retries, and recovery. Changing a model requires
|
|
157
|
+
a new item UUID because model attribution is part of the immutable execution declaration.
|
|
158
|
+
|
|
151
159
|
`scorers` provides create/get/list/update/createVersion/getVersion/listVersions. Configurations
|
|
152
160
|
are typed by `kind`: `boolean`, `numeric`, or `categorical`. Store `currentVersionId` to pin a
|
|
153
161
|
configuration. Metadata updates do not create versions; explicit `createVersion` does, including
|
package/dist/adk/index.cjs
CHANGED
|
@@ -3,7 +3,7 @@ let _google_adk = require("@google/adk");
|
|
|
3
3
|
let uuid = require("uuid");
|
|
4
4
|
let _posthog_core = require("@posthog/core");
|
|
5
5
|
//#region package.json
|
|
6
|
-
var version = "8.
|
|
6
|
+
var version = "8.17.0";
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/typeGuards.ts
|
|
9
9
|
const isObject = (value) => {
|
package/dist/adk/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { BasePlugin } from "@google/adk";
|
|
|
2
2
|
import { v4 } from "uuid";
|
|
3
3
|
import { toJsonSafeValue, uuidv7 } from "@posthog/core";
|
|
4
4
|
//#region package.json
|
|
5
|
-
var version = "8.
|
|
5
|
+
var version = "8.17.0";
|
|
6
6
|
//#endregion
|
|
7
7
|
//#region src/typeGuards.ts
|
|
8
8
|
const isObject = (value) => {
|
package/dist/anthropic/index.cjs
CHANGED
package/dist/anthropic/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@ let _anthropic_ai_claude_agent_sdk = require("@anthropic-ai/claude-agent-sdk");
|
|
|
3
3
|
let uuid = require("uuid");
|
|
4
4
|
let _posthog_core = require("@posthog/core");
|
|
5
5
|
//#region package.json
|
|
6
|
-
var version = "8.
|
|
6
|
+
var version = "8.17.0";
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/captureAiEvent.ts
|
|
9
9
|
/** @internal */
|
|
@@ -2,7 +2,7 @@ import { SYSTEM_PROMPT_DYNAMIC_BOUNDARY, query as query$1 } from "@anthropic-ai/
|
|
|
2
2
|
import { v4 } from "uuid";
|
|
3
3
|
import { toJsonSafeValue, uuidv7 } from "@posthog/core";
|
|
4
4
|
//#region package.json
|
|
5
|
-
var version = "8.
|
|
5
|
+
var version = "8.17.0";
|
|
6
6
|
//#endregion
|
|
7
7
|
//#region src/captureAiEvent.ts
|
|
8
8
|
/** @internal */
|
|
@@ -625,6 +625,7 @@ const RESULT_FIELDS = {
|
|
|
625
625
|
metadata: "metadata"
|
|
626
626
|
};
|
|
627
627
|
const ITEM_IDS = {
|
|
628
|
+
modelVersion: "model_version",
|
|
628
629
|
caseKey: "case_key",
|
|
629
630
|
trial: "trial",
|
|
630
631
|
datasetItemIdentifier: "dataset_item_identifier",
|
|
@@ -723,6 +724,7 @@ var EvaluationItem = class EvaluationItem {
|
|
|
723
724
|
keys(options, [
|
|
724
725
|
"output",
|
|
725
726
|
"id",
|
|
727
|
+
"modelVersion",
|
|
726
728
|
"caseKey",
|
|
727
729
|
"trial",
|
|
728
730
|
"applicationTraceId"
|