Skip to content

Commit a2d73de

Browse files
committed
chore: formatting
Done with the updated make fixup
1 parent 13f710b commit a2d73de

130 files changed

Lines changed: 569 additions & 421 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

integrations/adk-py/examples/mcp_tracing/agent.py

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,7 @@ async def main():
6161
SESSION_ID = "demo-session"
6262

6363
session_service = InMemorySessionService()
64-
await session_service.create_session(
65-
app_name=APP_NAME, user_id=USER_ID, session_id=SESSION_ID
66-
)
64+
await session_service.create_session(app_name=APP_NAME, user_id=USER_ID, session_id=SESSION_ID)
6765

6866
runner = Runner(agent=agent, app_name=APP_NAME, session_service=session_service)
6967

@@ -74,15 +72,9 @@ async def main():
7472
parts=[types.Part(text="What files are in /tmp? Just list a few.")],
7573
)
7674

77-
async for event in runner.run_async(
78-
user_id=USER_ID, session_id=SESSION_ID, new_message=user_msg
79-
):
75+
async for event in runner.run_async(user_id=USER_ID, session_id=SESSION_ID, new_message=user_msg):
8076
if event.is_final_response():
81-
text = (
82-
event.content.parts[0].text
83-
if event.content and event.content.parts
84-
else "No response"
85-
)
77+
text = event.content.parts[0].text if event.content and event.content.parts else "No response"
8678
print(f"Agent response: {text}\n")
8779

8880
print("=== Trace complete ===")

integrations/langchain-py/src/braintrust_langchain/callbacks.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@
66
from re import Pattern
77
from typing import (
88
Any,
9-
Dict,
10-
List,
11-
Optional,
12-
Set,
139
TypedDict,
1410
Union,
1511
)

integrations/langchain-py/src/braintrust_langchain/context.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from contextvars import ContextVar
2-
from typing import Optional
32

43
from langchain_core.tracers.context import register_configure_hook
54

integrations/langchain-py/src/tests/test_callbacks.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ def test_llm_calls(logger_memory_logger: LoggerMemoryLogger):
149149
],
150150
)
151151

152+
152153
@pytest.mark.vcr
153154
def test_chain_with_memory(logger_memory_logger: LoggerMemoryLogger):
154155
logger, memory_logger = logger_memory_logger

internal/golden/adk-py-v1/google_adk.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
from google.adk.sessions import InMemorySessionService
1414
from google.genai import types
1515

16+
1617
setup_adk(project_name="golden-py-adk")
1718

1819
FIXTURES_DIR = Path(__file__).parent.parent / "fixtures"

internal/golden/genai-py-v1/google_genai.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
from google.genai import types
1212
from google.genai.client import Client
1313

14+
1415
setup_genai(project_name="golden-py-genai")
1516

1617
FIXTURES_DIR = Path(__file__).parent.parent / "fixtures"

internal/golden/langchain-py-v0/langchain.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
from langchain_core.tools import tool
1212
from langchain_openai import ChatOpenAI
1313

14+
1415
init_logger(project="golden-py-langchain-v0")
1516

1617
handler = BraintrustCallbackHandler()

internal/golden/langchain-py-v1/langchain.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
from langchain_core.tools import tool
1212
from langchain_openai import ChatOpenAI
1313

14+
1415
init_logger(project="golden-py-langchain-v1")
1516

1617
handler = BraintrustCallbackHandler()

internal/golden/pydantic-ai-v1/pydantic_ai_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
)
2222
from pydantic_ai.models.openai import OpenAIChatModel, OpenAIResponsesModel, OpenAIResponsesModelSettings
2323

24+
2425
setup_pydantic_ai(project_name="golden-py-pydantic_ai")
2526

2627
FIXTURES_DIR = Path(__file__).parent.parent / "fixtures"

py/benchmarks/perf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import braintrust
44
from braintrust import traced
55

6+
67
LOOPS = 2000
78

89
braintrust.init_logger(project="perf_test")

0 commit comments

Comments
 (0)