@arizeai/phoenix-client 7.2.0 → 7.3.1

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.
Files changed (68) hide show
  1. package/README.md +3 -2
  2. package/dist/esm/__generated__/api/v1.d.ts +548 -0
  3. package/dist/esm/__generated__/api/v1.d.ts.map +1 -1
  4. package/dist/esm/client.d.ts +10 -2
  5. package/dist/esm/client.d.ts.map +1 -1
  6. package/dist/esm/client.js +6 -0
  7. package/dist/esm/client.js.map +1 -1
  8. package/dist/esm/config.d.ts +10 -0
  9. package/dist/esm/config.d.ts.map +1 -1
  10. package/dist/esm/config.js +13 -9
  11. package/dist/esm/config.js.map +1 -1
  12. package/dist/esm/experiments/resumeEvaluation.d.ts.map +1 -1
  13. package/dist/esm/experiments/resumeEvaluation.js +5 -5
  14. package/dist/esm/experiments/resumeEvaluation.js.map +1 -1
  15. package/dist/esm/experiments/resumeExperiment.d.ts.map +1 -1
  16. package/dist/esm/experiments/resumeExperiment.js +5 -5
  17. package/dist/esm/experiments/resumeExperiment.js.map +1 -1
  18. package/dist/esm/experiments/runExperiment.d.ts.map +1 -1
  19. package/dist/esm/experiments/runExperiment.js +5 -5
  20. package/dist/esm/experiments/runExperiment.js.map +1 -1
  21. package/dist/esm/experiments/tracing.d.ts +27 -0
  22. package/dist/esm/experiments/tracing.d.ts.map +1 -1
  23. package/dist/esm/experiments/tracing.js +27 -0
  24. package/dist/esm/experiments/tracing.js.map +1 -1
  25. package/dist/esm/testing/phoenix-test-tracking.d.ts.map +1 -1
  26. package/dist/esm/testing/phoenix-test-tracking.js +9 -9
  27. package/dist/esm/testing/phoenix-test-tracking.js.map +1 -1
  28. package/dist/esm/tsconfig.esm.tsbuildinfo +1 -1
  29. package/dist/src/__generated__/api/v1.d.ts +548 -0
  30. package/dist/src/__generated__/api/v1.d.ts.map +1 -1
  31. package/dist/src/client.d.ts +10 -2
  32. package/dist/src/client.d.ts.map +1 -1
  33. package/dist/src/client.js +6 -1
  34. package/dist/src/client.js.map +1 -1
  35. package/dist/src/config.d.ts +10 -0
  36. package/dist/src/config.d.ts.map +1 -1
  37. package/dist/src/config.js +11 -7
  38. package/dist/src/config.js.map +1 -1
  39. package/dist/src/experiments/resumeEvaluation.d.ts.map +1 -1
  40. package/dist/src/experiments/resumeEvaluation.js +4 -4
  41. package/dist/src/experiments/resumeEvaluation.js.map +1 -1
  42. package/dist/src/experiments/resumeExperiment.d.ts.map +1 -1
  43. package/dist/src/experiments/resumeExperiment.js +4 -4
  44. package/dist/src/experiments/resumeExperiment.js.map +1 -1
  45. package/dist/src/experiments/runExperiment.d.ts.map +1 -1
  46. package/dist/src/experiments/runExperiment.js +4 -4
  47. package/dist/src/experiments/runExperiment.js.map +1 -1
  48. package/dist/src/experiments/tracing.d.ts +27 -0
  49. package/dist/src/experiments/tracing.d.ts.map +1 -1
  50. package/dist/src/experiments/tracing.js +30 -0
  51. package/dist/src/experiments/tracing.js.map +1 -1
  52. package/dist/src/testing/phoenix-test-tracking.d.ts.map +1 -1
  53. package/dist/src/testing/phoenix-test-tracking.js +8 -8
  54. package/dist/src/testing/phoenix-test-tracking.js.map +1 -1
  55. package/dist/tsconfig.tsbuildinfo +1 -1
  56. package/docs/ci-evals-jest.mdx +1 -1
  57. package/docs/ci-evals-vitest.mdx +1 -1
  58. package/docs/ci-evals.mdx +1 -1
  59. package/docs/overview.mdx +5 -5
  60. package/package.json +9 -9
  61. package/src/__generated__/api/v1.ts +548 -0
  62. package/src/client.ts +17 -1
  63. package/src/config.ts +28 -11
  64. package/src/experiments/resumeEvaluation.ts +11 -9
  65. package/src/experiments/resumeExperiment.ts +11 -9
  66. package/src/experiments/runExperiment.ts +9 -11
  67. package/src/experiments/tracing.ts +35 -0
  68. package/src/testing/phoenix-test-tracking.ts +12 -9
@@ -23,7 +23,7 @@ module.exports = {
23
23
  - `testMatch` keeps eval suites separate from regular tests.
24
24
  - `reporters` keeps Jest's default reporter and adds the Phoenix
25
25
  summary block at the end of the run.
26
- - `setupFiles: ["dotenv/config"]` loads `PHOENIX_HOST`, `PHOENIX_API_KEY`,
26
+ - `setupFiles: ["dotenv/config"]` loads `PHOENIX_ENDPOINT`, `PHOENIX_API_KEY`,
27
27
  and other env vars from `.env`.
28
28
  - `testTimeout` is bumped because LLM calls can be slow.
29
29
 
@@ -28,7 +28,7 @@ export default defineConfig({
28
28
  `*.eval.ts` convention.
29
29
  - `reporters` keeps Vitest's default diagnostics and enables the Phoenix
30
30
  summary block.
31
- - `setupFiles: ["dotenv/config"]` loads `PHOENIX_HOST`, `PHOENIX_API_KEY`,
31
+ - `setupFiles: ["dotenv/config"]` loads `PHOENIX_ENDPOINT`, `PHOENIX_API_KEY`,
32
32
  and any other env vars from `.env`.
33
33
  - `testTimeout` is bumped because LLM calls can be slow.
34
34
 
package/docs/ci-evals.mdx CHANGED
@@ -94,7 +94,7 @@ standard Phoenix env vars.
94
94
 
95
95
  | Variable | Purpose |
96
96
  | --- | --- |
97
- | `PHOENIX_HOST` | Phoenix base URL |
97
+ | `PHOENIX_ENDPOINT` | Phoenix base URL |
98
98
  | `PHOENIX_API_KEY` | Bearer token for Phoenix |
99
99
  | `PHOENIX_CLIENT_HEADERS` | Optional JSON headers forwarded to the Phoenix client and tracer |
100
100
  | `PHOENIX_TEST_TRACKING=false` | Disable sync to Phoenix for the current run (tracking is on by default) |
package/docs/overview.mdx CHANGED
@@ -50,18 +50,18 @@ That gives the agent version-matched docs plus the exact implementation and gene
50
50
 
51
51
  ## Configuration
52
52
 
53
- `createClient()` resolves Phoenix client options in this order: library defaults, environment variables, then explicit options. In most applications, the normal setup is to set `PHOENIX_HOST` and `PHOENIX_API_KEY` in the environment and call `createClient()` with no overrides.
53
+ `createClient()` resolves Phoenix client options in this order: library defaults, environment variables, then explicit options. In most applications, the normal setup is to set `PHOENIX_ENDPOINT` and `PHOENIX_API_KEY` in the environment and call `createClient()` with no overrides.
54
54
 
55
55
  ### Recommended Setup
56
56
 
57
57
  Use the environment-driven path unless you have a specific reason to override client options in code.
58
58
 
59
59
  ```bash
60
- export PHOENIX_HOST=http://localhost:6006
60
+ export PHOENIX_ENDPOINT=http://localhost:6006
61
61
  export PHOENIX_API_KEY=<your-api-key>
62
62
  ```
63
63
 
64
- For a remote deployment, `PHOENIX_HOST` is that instance's base URL, e.g. `https://your-phoenix.example.com`.
64
+ For a remote deployment, `PHOENIX_ENDPOINT` is that instance's base URL, e.g. `https://your-phoenix.example.com`.
65
65
 
66
66
  ```ts
67
67
  import { createClient } from "@arizeai/phoenix-client";
@@ -103,7 +103,7 @@ These are the Phoenix-specific options this package resolves before creating the
103
103
 
104
104
  | Option | Type | Description |
105
105
  |--------|------|-------------|
106
- | `baseUrl` | `string` | Base Phoenix URL. Defaults to `http://localhost:6006`, or `PHOENIX_HOST` when that environment variable is set. |
106
+ | `baseUrl` | `string` | Base Phoenix URL. Defaults to `http://localhost:6006`, or `PHOENIX_ENDPOINT` when that environment variable is set. |
107
107
  | `headers` | `ClientOptions["headers"]` | Headers sent on every request. `PHOENIX_API_KEY` populates `Authorization` automatically. Explicit `headers` replace environment-derived headers. |
108
108
 
109
109
  ### Header Override Rule
@@ -124,7 +124,7 @@ const client = createClient({
124
124
 
125
125
  | Variable | Maps to | Description |
126
126
  |--------|---------|-------------|
127
- | `PHOENIX_HOST` | `options.baseUrl` | Base Phoenix URL, for example `http://localhost:6006`. |
127
+ | `PHOENIX_ENDPOINT` | `options.baseUrl` | Base Phoenix URL, for example `http://localhost:6006`. |
128
128
  | `PHOENIX_API_KEY` | `options.headers.Authorization` | Bearer token for authenticated environments. |
129
129
  | `PHOENIX_CLIENT_HEADERS` | `options.headers` | Optional JSON-encoded object of additional headers to send on every request. Most setups do not need this. |
130
130
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arizeai/phoenix-client",
3
- "version": "7.2.0",
3
+ "version": "7.3.1",
4
4
  "description": "A client for the Phoenix API",
5
5
  "keywords": [
6
6
  "arize",
@@ -99,28 +99,28 @@
99
99
  }
100
100
  },
101
101
  "dependencies": {
102
- "@arizeai/openinference-semantic-conventions": "^2.6.0",
102
+ "@arizeai/openinference-semantic-conventions": "^2.7.0",
103
103
  "async": "^3.2.6",
104
104
  "openapi-fetch": "^0.17.0",
105
105
  "tiny-invariant": "^1.3.3",
106
106
  "zod": "^4.4.3",
107
- "@arizeai/phoenix-otel": "2.1.0",
108
- "@arizeai/phoenix-config": "0.4.0"
107
+ "@arizeai/phoenix-otel": "2.2.0",
108
+ "@arizeai/phoenix-config": "0.5.0"
109
109
  },
110
110
  "devDependencies": {
111
- "@ai-sdk/openai": "^4.0.27",
112
- "@ai-sdk/otel": "^1.0.47",
111
+ "@ai-sdk/openai": "^4.0.36",
112
+ "@ai-sdk/otel": "^1.0.58",
113
113
  "@anthropic-ai/sdk": "^0.111.0",
114
114
  "@opentelemetry/api": "^1.9.1",
115
115
  "@opentelemetry/sdk-trace-node": "^2.10.0",
116
116
  "@types/async": "^3.2.25",
117
- "@types/node": "^26.1.2",
118
- "ai": "^7.0.47",
117
+ "@types/node": "^26.2.0",
118
+ "ai": "^7.0.58",
119
119
  "dotenv": "^17.4.2",
120
120
  "jest": "^30.4.2",
121
121
  "openai": "^6.49.0",
122
122
  "openapi-typescript": "^7.13.0",
123
- "tsx": "^4.23.1",
123
+ "tsx": "^4.23.11",
124
124
  "vitest": "^4.1.10",
125
125
  "@arizeai/phoenix-evals": "2.2.0",
126
126
  "@arizeai/phoenix-testing": "0.0.0"