Skip to content

Commit 3166829

Browse files
author
Jesus Terrazas
committed
update python version format
1 parent e1c2928 commit 3166829

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

libraries/microsoft-agents-a365-runtime/microsoft_agents_a365/runtime/utility.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,4 +107,4 @@ def get_user_agent_header(orchestrator: str = "") -> str:
107107
orchestrator_part = f"; {orchestrator}" if orchestrator else ""
108108
os_type = platform.system()
109109
python_version = platform.python_version()
110-
return f"Agent365SDK/{Utility._cached_version} ({os_type}; Python/{python_version}{orchestrator_part})"
110+
return f"Agent365SDK/{Utility._cached_version} ({os_type}; Python {python_version}{orchestrator_part})"

tests/runtime/test_utility.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def test_get_user_agent_header_default():
138138
result = Utility.get_user_agent_header()
139139

140140
# Regex for Agent365SDK/version (OS; Python/version)
141-
pattern = rf"^Agent365SDK/.+ \({os_type}; Python/{py_version}\)$"
141+
pattern = rf"^Agent365SDK/.+ \({os_type}; Python {py_version}\)$"
142142
assert re.match(pattern, result)
143143

144144

@@ -152,5 +152,5 @@ def test_get_user_agent_header_with_orchestrator():
152152
result = Utility.get_user_agent_header(orchestrator)
153153

154154
# Regex for Agent365SDK/version (OS; Python/version; TestOrchestrator)
155-
pattern = rf"^Agent365SDK/.+ \({os_type}; Python/{py_version}; {orchestrator}\)$"
155+
pattern = rf"^Agent365SDK/.+ \({os_type}; Python {py_version}; {orchestrator}\)$"
156156
assert re.match(pattern, result)

0 commit comments

Comments
 (0)