Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .agents/skills/e2e-tests/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Read first:

## Workflow

1. Start from the closest existing scenario and keep its structure unless the new case clearly needs a new pattern.
1. Look for an existing scenario that covers the provider, integration, or feature. Add new tests and cases to its runner, assertions, and version matrix when available. Create a scenario directory only when no existing scenario fits.
2. Default to module-scope setup with `prepareScenarioDir({ scenarioDir: resolveScenarioDir(import.meta.url) })`. This copies the scenario into an isolated temp directory and installs any scenario-local dependencies before the test bodies run.
3. Use `withScenarioHarness(...)` for every scenario test. Pick the runner that matches the real entrypoint:
- `runScenarioDir()` for default `tsx`-driven TypeScript scenarios
Expand Down
5 changes: 5 additions & 0 deletions .changeset/ai-sdk-extraction.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"braintrust": minor
---

feat(ai-sdk): Trace extraction calls

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -2346,6 +2346,50 @@ span_tree:
│ "toolCallId": "<toolCallId:1>",
│ "toolName": "web_search"
│ }
├── ai-sdk-extract-operation
│ metadata: {
│ "operation": "extract",
│ "testRunId": "<run:1>"
│ }
│ └── extract [extraction]
│ input: {
│ "fields": [
│ {
│ "instructions": "The invoice number",
│ "type": "text"
│ }
│ ],
│ "state": "Invoice number: INV-2041."
│ }
│ output: {
│ "answers": [
│ {
│ "confidence": 1,
│ "source": {
│ "end": 0,
│ "part": 0,
│ "start": 0,
│ "type": "text"
│ },
│ "type": "text",
│ "value": "INV-2041"
│ }
│ ]
│ }
│ metadata: {
│ "braintrust": {
│ "integration_name": "ai-sdk",
│ "sdk_language": "typescript"
│ },
│ "model": "extract-1",
│ "provider": "scaledown"
│ }
│ metrics: {
│ "completion_tokens": 0,
│ "estimated_cost": 0.00001045,
│ "prompt_tokens": 209,
│ "tokens": 209
│ }
├── ai-sdk-evaluate-operation
│ metadata: {
│ "operation": "evaluate",
Expand Down
Loading