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
5 changes: 5 additions & 0 deletions .changeset/google-genai-batch-api-instrumentation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"braintrust": minor
---

feat: Add OpenAI Batch API Instrumentation

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 @@ -67,14 +67,18 @@ span_tree:
│ │ }
│ └── generate_content [llm]
│ input: {
│ "config": {
│ "systemInstruction": "You are an agent. Your internal name is \"weather_agent\".\n\nAnswer the user's question in one short sentence.",
│ "temperature": 0
│ },
│ "contents": [
│ {
│ "parts": [
│ {
│ "text": "You are an agent. Your internal name is \"weather_agent\".\n\nAnswer the user's question in one short sentence."
│ }
│ ],
│ "role": "system"
│ },
│ {
│ "parts": [
│ {
│ "text": "What is the weather in Paris, France?"
│ }
│ ],
Expand All @@ -100,23 +104,6 @@ span_tree:
│ ],
│ "modelVersion": "gemini-2.5-flash-lite",
│ "responseId": "<responseId:1>",
│ "sdkHttpResponse": {
│ "headers": {
│ "alt-svc": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000",
│ "connection": "keep-alive",
│ "content-type": "application/json; charset=UTF-8",
│ "date": "<timestamp>",
│ "keep-alive": "timeout=5",
│ "server": "scaffolding on HTTPServer2",
│ "server-timing": "<server-timing>",
│ "transfer-encoding": "chunked",
│ "vary": "Origin, X-Origin, Referer",
│ "x-content-type-options": "nosniff",
│ "x-frame-options": "SAMEORIGIN",
│ "x-gemini-service-tier": "<x-gemini-service-tier>",
│ "x-xss-protection": "0"
│ }
│ },
│ "usageMetadata": {
│ "candidatesTokenCount": 16,
│ "promptTokenCount": 37,
Expand All @@ -132,7 +119,7 @@ span_tree:
│ }
│ metadata: {
│ "model": "gemini-2.5-flash-lite",
│ "systemInstruction": "You are an agent. Your internal name is \"weather_agent\".\n\nAnswer the user's question in one short sentence.",
│ "provider": "google",
│ "temperature": 0
│ }
│ metrics: {
Expand Down

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 @@ -67,14 +67,18 @@ span_tree:
│ │ }
│ └── generate_content [llm]
│ input: {
│ "config": {
│ "systemInstruction": "You are an agent. Your internal name is \"weather_agent\".\n\nAnswer the user's question in one short sentence.",
│ "temperature": 0
│ },
│ "contents": [
│ {
│ "parts": [
│ {
│ "text": "You are an agent. Your internal name is \"weather_agent\".\n\nAnswer the user's question in one short sentence."
│ }
│ ],
│ "role": "system"
│ },
│ {
│ "parts": [
│ {
│ "text": "What is the weather in Paris, France?"
│ }
│ ],
Expand All @@ -100,23 +104,6 @@ span_tree:
│ ],
│ "modelVersion": "gemini-2.5-flash-lite",
│ "responseId": "<responseId:1>",
│ "sdkHttpResponse": {
│ "headers": {
│ "alt-svc": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000",
│ "connection": "keep-alive",
│ "content-type": "application/json; charset=UTF-8",
│ "date": "<timestamp>",
│ "keep-alive": "timeout=5",
│ "server": "scaffolding on HTTPServer2",
│ "server-timing": "<server-timing>",
│ "transfer-encoding": "chunked",
│ "vary": "Origin, X-Origin, Referer",
│ "x-content-type-options": "nosniff",
│ "x-frame-options": "SAMEORIGIN",
│ "x-gemini-service-tier": "<x-gemini-service-tier>",
│ "x-xss-protection": "0"
│ }
│ },
│ "usageMetadata": {
│ "candidatesTokenCount": 16,
│ "promptTokenCount": 37,
Expand All @@ -132,7 +119,7 @@ span_tree:
│ }
│ metadata: {
│ "model": "gemini-2.5-flash-lite",
│ "systemInstruction": "You are an agent. Your internal name is \"weather_agent\".\n\nAnswer the user's question in one short sentence.",
│ "provider": "google",
│ "temperature": 0
│ }
│ metrics: {
Expand Down

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 @@ -67,14 +67,18 @@ span_tree:
│ │ }
│ └── generate_content [llm]
│ input: {
│ "config": {
│ "systemInstruction": "You are an agent. Your internal name is \"weather_agent\".\n\nAnswer the user's question in one short sentence.",
│ "temperature": 0
│ },
│ "contents": [
│ {
│ "parts": [
│ {
│ "text": "You are an agent. Your internal name is \"weather_agent\".\n\nAnswer the user's question in one short sentence."
│ }
│ ],
│ "role": "system"
│ },
│ {
│ "parts": [
│ {
│ "text": "What is the weather in Paris, France?"
│ }
│ ],
Expand All @@ -100,23 +104,6 @@ span_tree:
│ ],
│ "modelVersion": "gemini-2.5-flash-lite",
│ "responseId": "<responseId:1>",
│ "sdkHttpResponse": {
│ "headers": {
│ "alt-svc": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000",
│ "connection": "keep-alive",
│ "content-type": "application/json; charset=UTF-8",
│ "date": "<timestamp>",
│ "keep-alive": "timeout=5",
│ "server": "scaffolding on HTTPServer2",
│ "server-timing": "<server-timing>",
│ "transfer-encoding": "chunked",
│ "vary": "Origin, X-Origin, Referer",
│ "x-content-type-options": "nosniff",
│ "x-frame-options": "SAMEORIGIN",
│ "x-gemini-service-tier": "<x-gemini-service-tier>",
│ "x-xss-protection": "0"
│ }
│ },
│ "usageMetadata": {
│ "candidatesTokenCount": 16,
│ "promptTokenCount": 37,
Expand All @@ -132,7 +119,7 @@ span_tree:
│ }
│ metadata: {
│ "model": "gemini-2.5-flash-lite",
│ "systemInstruction": "You are an agent. Your internal name is \"weather_agent\".\n\nAnswer the user's question in one short sentence.",
│ "provider": "google",
│ "temperature": 0
│ }
│ metrics: {
Expand Down

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

Loading
Loading