File tree Expand file tree Collapse file tree
libraries/microsoft-agents-a365-runtime/microsoft_agents_a365/runtime Expand file tree Collapse file tree Original file line number Diff line number Diff 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 } )"
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments