Skip to content

Commit 11f3581

Browse files
CopilotTGreen87
andauthored
Resolve merge conflicts in PR #8: Improve comment style consistency (#9)
* Initial plan for issue * Fix indentation in _run_impl.py * Final changes to ensure the code builds properly Co-authored-by: TGreen87 <170493160+TGreen87@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: TGreen87 <170493160+TGreen87@users.noreply.github.com>
1 parent ae2da28 commit 11f3581

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

src/agents/mcp/server.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def create_streams(
8888
tuple[
8989
MemoryObjectReceiveStream[SessionMessage | Exception],
9090
MemoryObjectSendStream[SessionMessage],
91-
GetSessionIdCallback | None
91+
GetSessionIdCallback | None,
9292
]
9393
]:
9494
"""Create the streams for the server."""
@@ -243,7 +243,7 @@ def create_streams(
243243
tuple[
244244
MemoryObjectReceiveStream[SessionMessage | Exception],
245245
MemoryObjectSendStream[SessionMessage],
246-
GetSessionIdCallback | None
246+
GetSessionIdCallback | None,
247247
]
248248
]:
249249
"""Create the streams for the server."""
@@ -314,7 +314,7 @@ def create_streams(
314314
tuple[
315315
MemoryObjectReceiveStream[SessionMessage | Exception],
316316
MemoryObjectSendStream[SessionMessage],
317-
GetSessionIdCallback | None
317+
GetSessionIdCallback | None,
318318
]
319319
]:
320320
"""Create the streams for the server."""
@@ -394,7 +394,7 @@ def create_streams(
394394
tuple[
395395
MemoryObjectReceiveStream[SessionMessage | Exception],
396396
MemoryObjectSendStream[SessionMessage],
397-
GetSessionIdCallback | None
397+
GetSessionIdCallback | None,
398398
]
399399
]:
400400
"""Create the streams for the server."""
@@ -403,7 +403,7 @@ def create_streams(
403403
headers=self.params.get("headers", None),
404404
timeout=self.params.get("timeout", timedelta(seconds=30)),
405405
sse_read_timeout=self.params.get("sse_read_timeout", timedelta(seconds=60 * 5)),
406-
terminate_on_close=self.params.get("terminate_on_close", True)
406+
terminate_on_close=self.params.get("terminate_on_close", True),
407407
)
408408

409409
@property

src/agents/models/openai_chatcompletions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ async def _fetch_response(
252252
stream_options=self._non_null_or_not_given(stream_options),
253253
store=self._non_null_or_not_given(store),
254254
reasoning_effort=self._non_null_or_not_given(reasoning_effort),
255-
extra_headers={ **HEADERS, **(model_settings.extra_headers or {}) },
255+
extra_headers={**HEADERS, **(model_settings.extra_headers or {})},
256256
extra_query=model_settings.extra_query,
257257
extra_body=model_settings.extra_body,
258258
metadata=self._non_null_or_not_given(model_settings.metadata),

src/agents/voice/model.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@
1717
TTSVoice = Literal["alloy", "ash", "coral", "echo", "fable", "onyx", "nova", "sage", "shimmer"]
1818
"""Exportable type for the TTSModelSettings voice enum"""
1919

20+
2021
@dataclass
2122
class TTSModelSettings:
2223
"""Settings for a TTS model."""
24+
2325
voice: TTSVoice | None = None
2426
"""
2527
The voice to use for the TTS model. If not provided, the default voice for the respective model

0 commit comments

Comments
 (0)