@cultured_computer/sight 0.3.3 → 0.3.5
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 +37 -46
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,40 +1,26 @@
|
|
|
1
1
|
# Sight
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
the situation was, what your agent
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
shows its evidence before it shows a headline.
|
|
25
|
-
- **Ask your own questions.** Author custom rubrics in the dashboard (a
|
|
26
|
-
question plus answer chips); they join the same blind labeling queue and
|
|
27
|
-
earn trust the same way: against a second rater, never against the
|
|
28
|
-
instrument.
|
|
29
|
-
|
|
30
|
-
If your job is grading tasks against expected outputs in CI, an eval platform
|
|
31
|
-
(Braintrust and its class) is built for that loop and does it well. Sight is
|
|
32
|
-
built for the other loop: zero eval authoring, capture as the product, and
|
|
33
|
-
answers to the questions evals cannot reach — what your deployment is being
|
|
34
|
-
in production, and what users do next.
|
|
35
|
-
|
|
36
|
-
The SDK is in beta. Interfaces and rollout order may change without notice;
|
|
37
|
-
the record format itself is versioned and stable.
|
|
3
|
+
Sight records what your production assistant is being. Not traces of what
|
|
4
|
+
the model produced: the interaction itself, captured as a coupled record.
|
|
5
|
+
Each turn holds what the situation was, what your agent did, how the user
|
|
6
|
+
responded, and what it led to. Both actors, one record. Behavior lives in
|
|
7
|
+
the coupling, not in the transcript: a reply only means something next to
|
|
8
|
+
what happened after it.
|
|
9
|
+
|
|
10
|
+
The record also carries an environment channel: tool outcomes, world
|
|
11
|
+
signals, stimulus events with their timing. Behavior reads against what
|
|
12
|
+
the world actually did, not just against text.
|
|
13
|
+
|
|
14
|
+
The SDK captures out of band; responses are never modified or delayed.
|
|
15
|
+
From the record, the dashboard shows the worst conversations first (opened
|
|
16
|
+
on the transcript), joins outcomes back to the conversation that caused
|
|
17
|
+
them even when they arrive days later, and computes behavioural
|
|
18
|
+
measurements on top: the situations your deployment handles, voice
|
|
19
|
+
consistency, uptake, breaks, return behaviour. Every interpreted number
|
|
20
|
+
stays preliminary until it agrees with your own labels on your own traffic.
|
|
21
|
+
|
|
22
|
+
The SDK is in beta. The record format is versioned and stable; the surfaces
|
|
23
|
+
around it are still moving.
|
|
38
24
|
|
|
39
25
|
## Install
|
|
40
26
|
|
|
@@ -62,6 +48,11 @@ Sight.startSession({
|
|
|
62
48
|
|
|
63
49
|
Notes:
|
|
64
50
|
|
|
51
|
+
- `apiKey` is a project ingest key. Create a project in the
|
|
52
|
+
[dashboard](https://sight.cultured.computer/dashboard) and copy its key
|
|
53
|
+
(shown once) into `SIGHT_API_KEY`. That is the only required setup — the
|
|
54
|
+
ingest endpoint defaults to production; override it with `endpoint` only for
|
|
55
|
+
self-hosting or staging.
|
|
65
56
|
- `init` runs once at startup. `deployment` identifies the configuration this
|
|
66
57
|
traffic belongs to; all measurement is per deployment.
|
|
67
58
|
- `externalId` keys the session (one conversation). `externalUserId` is a
|
|
@@ -104,8 +95,8 @@ await Sight.emitOutcomeEvent({
|
|
|
104
95
|
|
|
105
96
|
## Capture environment events
|
|
106
97
|
|
|
107
|
-
Deployments that run alongside a non-dialogue channel
|
|
108
|
-
game state stream, an editor buffer
|
|
98
|
+
Deployments that run alongside a non-dialogue channel (a stimulus feed, a
|
|
99
|
+
game state stream, an editor buffer) can record that channel's events
|
|
109
100
|
against the conversation:
|
|
110
101
|
|
|
111
102
|
```ts
|
|
@@ -118,14 +109,14 @@ await Sight.captureEnvironmentEvents(events, {
|
|
|
118
109
|
|
|
119
110
|
The envelope is generalized: `source_type` and `event` are free strings whose
|
|
120
111
|
meaning is defined per deployment. The instrument attaches events to turns by
|
|
121
|
-
time
|
|
122
|
-
when the event carries a `causeProvenance` turn reference
|
|
112
|
+
time (the next turn's state corner, plus the causing turn's outcome corner
|
|
113
|
+
when the event carries a `causeProvenance` turn reference) and never
|
|
123
114
|
interprets them.
|
|
124
115
|
|
|
125
116
|
## Capture spans
|
|
126
117
|
|
|
127
|
-
Deployments that keep their own sub-turn structure
|
|
128
|
-
steps, per-call model usage inside a single turn
|
|
118
|
+
Deployments that keep their own sub-turn structure (tool calls, retrieval
|
|
119
|
+
steps, per-call model usage inside a single turn) can ship it as spans:
|
|
129
120
|
|
|
130
121
|
```ts
|
|
131
122
|
await Sight.captureSpans(
|
|
@@ -148,7 +139,7 @@ await Sight.captureSpans(
|
|
|
148
139
|
A span lands on the turn you name, or on the session's latest turn at/under
|
|
149
140
|
its `startedAt` when `turnIndex` is omitted. Parent structure rides the
|
|
150
141
|
batch: give a span a caller-local `spanId` and reference it from a sibling's
|
|
151
|
-
`parentSpanId`. `attributes` are metadata only
|
|
142
|
+
`parentSpanId`. `attributes` are metadata only: tool names and argument
|
|
152
143
|
shapes, never free-text conversation content. `Sight.captureSpan(span)` is
|
|
153
144
|
the single-span form.
|
|
154
145
|
|
|
@@ -161,13 +152,13 @@ live experiment.
|
|
|
161
152
|
|
|
162
153
|
## Docs
|
|
163
154
|
|
|
164
|
-
- [Get started](https://
|
|
155
|
+
- [Get started](https://sight.cultured.computer/docs/get-started):
|
|
165
156
|
install, initialise, verify capture.
|
|
166
|
-
- [Worked examples](https://
|
|
157
|
+
- [Worked examples](https://sight.cultured.computer/docs/examples):
|
|
167
158
|
runnable snippets, each with what it lands in the record.
|
|
168
|
-
- [SDK reference](https://
|
|
159
|
+
- [SDK reference](https://sight.cultured.computer/docs/sdk-reference):
|
|
169
160
|
the full method surface.
|
|
170
|
-
- [Status](https://
|
|
161
|
+
- [Status](https://sight.cultured.computer/docs/where-it-stands): what
|
|
171
162
|
is available now versus in beta.
|
|
172
163
|
|
|
173
164
|
## License
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cultured_computer/sight",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.5",
|
|
4
4
|
"description": "Know what your production AI is being, without writing evals. Records every turn and session in a standard trajectory format and computes behavioural measurements on top; capture is out of band, responses are never modified or delayed.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|