Skip to content

Commit db67fe6

Browse files
committed
revert and format/lint
1 parent 4b48042 commit db67fe6

File tree

3 files changed

+8
-13
lines changed

3 files changed

+8
-13
lines changed

src/agents/voice/model.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ class TTSModelSettings:
2020
"""Settings for a TTS model."""
2121

2222
voice: (
23-
str
24-
| Literal[
23+
Literal[
2524
"alloy",
2625
"ash",
2726
"ballad",

tests/test_agent_runner.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -642,9 +642,7 @@ async def test_tool_use_behavior_custom_function():
642642
async def test_model_settings_override():
643643
model = FakeModel()
644644
agent = Agent(
645-
name="test",
646-
model=model,
647-
model_settings=ModelSettings(temperature=1.0, max_tokens=1000)
645+
name="test", model=model, model_settings=ModelSettings(temperature=1.0, max_tokens=1000)
648646
)
649647

650648
model.add_multiple_turn_outputs(

tests/test_tracing_errors.py

+6-8
Original file line numberDiff line numberDiff line change
@@ -244,9 +244,10 @@ async def test_multiple_handoff_doesnt_error():
244244
},
245245
},
246246
{"type": "generation"},
247-
{"type": "handoff",
248-
"data": {"from_agent": "test", "to_agent": "test"},
249-
"error": {
247+
{
248+
"type": "handoff",
249+
"data": {"from_agent": "test", "to_agent": "test"},
250+
"error": {
250251
"data": {
251252
"requested_agents": [
252253
"test",
@@ -255,7 +256,7 @@ async def test_multiple_handoff_doesnt_error():
255256
},
256257
"message": "Multiple handoffs requested",
257258
},
258-
},
259+
},
259260
],
260261
},
261262
{
@@ -383,10 +384,7 @@ async def test_handoffs_lead_to_correct_agent_spans():
383384
{"type": "generation"},
384385
{
385386
"type": "handoff",
386-
"data": {
387-
"from_agent": "test_agent_3",
388-
"to_agent": "test_agent_1"
389-
},
387+
"data": {"from_agent": "test_agent_3", "to_agent": "test_agent_1"},
390388
"error": {
391389
"data": {
392390
"requested_agents": [

0 commit comments

Comments
 (0)