microsoft-agents-hosting-core 0.6.0.dev15__tar.gz → 0.6.0.dev17__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (106) hide show
  1. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/PKG-INFO +2 -2
  2. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/channel_service_adapter.py +17 -18
  3. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/channel_service_client_factory_base.py +1 -1
  4. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/rest_channel_service_client_factory.py +4 -4
  5. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents_hosting_core.egg-info/PKG-INFO +2 -2
  6. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents_hosting_core.egg-info/requires.txt +1 -1
  7. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/LICENSE +0 -0
  8. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/__init__.py +0 -0
  9. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/_oauth/__init__.py +0 -0
  10. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/_oauth/_flow_state.py +0 -0
  11. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/_oauth/_flow_storage_client.py +0 -0
  12. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/_oauth/_oauth_flow.py +0 -0
  13. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/activity_handler.py +0 -0
  14. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/agent.py +0 -0
  15. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/app/__init__.py +0 -0
  16. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/app/_routes/__init__.py +0 -0
  17. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/app/_routes/_route.py +0 -0
  18. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/app/_routes/_route_list.py +0 -0
  19. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/app/_routes/route_rank.py +0 -0
  20. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/app/_type_defs.py +0 -0
  21. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/app/agent_application.py +0 -0
  22. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/app/app_error.py +0 -0
  23. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/app/app_options.py +0 -0
  24. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/app/input_file.py +0 -0
  25. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/app/oauth/__init__.py +0 -0
  26. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/app/oauth/_handlers/__init__.py +0 -0
  27. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/app/oauth/_handlers/_authorization_handler.py +0 -0
  28. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/app/oauth/_handlers/_user_authorization.py +0 -0
  29. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/app/oauth/_handlers/agentic_user_authorization.py +0 -0
  30. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/app/oauth/_sign_in_response.py +0 -0
  31. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/app/oauth/_sign_in_state.py +0 -0
  32. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/app/oauth/auth_handler.py +0 -0
  33. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/app/oauth/authorization.py +0 -0
  34. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/app/query.py +0 -0
  35. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/app/state/__init__.py +0 -0
  36. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/app/state/conversation_state.py +0 -0
  37. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/app/state/state.py +0 -0
  38. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/app/state/temp_state.py +0 -0
  39. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/app/state/turn_state.py +0 -0
  40. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/app/typing_indicator.py +0 -0
  41. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/authorization/__init__.py +0 -0
  42. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/authorization/access_token_provider_base.py +0 -0
  43. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/authorization/agent_auth_configuration.py +0 -0
  44. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/authorization/anonymous_token_provider.py +0 -0
  45. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/authorization/auth_types.py +0 -0
  46. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/authorization/authentication_constants.py +0 -0
  47. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/authorization/claims_identity.py +0 -0
  48. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/authorization/connections.py +0 -0
  49. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/authorization/jwt_token_validator.py +0 -0
  50. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/card_factory.py +0 -0
  51. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/channel_adapter.py +0 -0
  52. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/channel_api_handler_protocol.py +0 -0
  53. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/client/__init__.py +0 -0
  54. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/client/agent_conversation_reference.py +0 -0
  55. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/client/channel_factory_protocol.py +0 -0
  56. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/client/channel_host_protocol.py +0 -0
  57. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/client/channel_info_protocol.py +0 -0
  58. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/client/channel_protocol.py +0 -0
  59. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/client/channels_configuration.py +0 -0
  60. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/client/configuration_channel_host.py +0 -0
  61. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/client/conversation_constants.py +0 -0
  62. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/client/conversation_id_factory.py +0 -0
  63. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/client/conversation_id_factory_options.py +0 -0
  64. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/client/conversation_id_factory_protocol.py +0 -0
  65. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/client/http_agent_channel.py +0 -0
  66. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/client/http_agent_channel_factory.py +0 -0
  67. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/connector/__init__.py +0 -0
  68. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/connector/agent_sign_in_base.py +0 -0
  69. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/connector/attachments_base.py +0 -0
  70. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/connector/client/__init__.py +0 -0
  71. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/connector/client/connector_client.py +0 -0
  72. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/connector/client/user_token_client.py +0 -0
  73. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/connector/connector_client_base.py +0 -0
  74. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/connector/conversations_base.py +0 -0
  75. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/connector/get_product_info.py +0 -0
  76. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/connector/teams/__init__.py +0 -0
  77. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/connector/teams/teams_connector_client.py +0 -0
  78. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/connector/user_token_base.py +0 -0
  79. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/connector/user_token_client_base.py +0 -0
  80. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/errors/__init__.py +0 -0
  81. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/errors/error_resources.py +0 -0
  82. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/message_factory.py +0 -0
  83. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/middleware_set.py +0 -0
  84. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/state/__init__.py +0 -0
  85. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/state/agent_state.py +0 -0
  86. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/state/state_property_accessor.py +0 -0
  87. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/state/user_state.py +0 -0
  88. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/storage/__init__.py +0 -0
  89. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/storage/_type_aliases.py +0 -0
  90. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/storage/error_handling.py +0 -0
  91. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/storage/memory_storage.py +0 -0
  92. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/storage/storage.py +0 -0
  93. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/storage/store_item.py +0 -0
  94. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/storage/transcript_file_store.py +0 -0
  95. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/storage/transcript_info.py +0 -0
  96. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/storage/transcript_logger.py +0 -0
  97. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/storage/transcript_memory_store.py +0 -0
  98. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/storage/transcript_store.py +0 -0
  99. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents/hosting/core/turn_context.py +0 -0
  100. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents_hosting_core.egg-info/SOURCES.txt +0 -0
  101. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents_hosting_core.egg-info/dependency_links.txt +0 -0
  102. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/microsoft_agents_hosting_core.egg-info/top_level.txt +0 -0
  103. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/pyproject.toml +0 -0
  104. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/readme.md +0 -0
  105. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/setup.cfg +0 -0
  106. {microsoft_agents_hosting_core-0.6.0.dev15 → microsoft_agents_hosting_core-0.6.0.dev17}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: microsoft-agents-hosting-core
3
- Version: 0.6.0.dev15
3
+ Version: 0.6.0.dev17
4
4
  Summary: Core library for Microsoft Agents
5
5
  Author: Microsoft Corporation
6
6
  License-Expression: MIT
@@ -15,7 +15,7 @@ Classifier: Operating System :: OS Independent
15
15
  Requires-Python: >=3.10
16
16
  Description-Content-Type: text/markdown
17
17
  License-File: LICENSE
18
- Requires-Dist: microsoft-agents-activity==0.6.0.dev15
18
+ Requires-Dist: microsoft-agents-activity==0.6.0.dev17
19
19
  Requires-Dist: pyjwt>=2.10.1
20
20
  Requires-Dist: isodate>=0.6.1
21
21
  Requires-Dist: azure-core>=1.30.0
@@ -262,28 +262,12 @@ class ChannelServiceAdapter(ChannelAdapter, ABC):
262
262
  claims_identity = self.create_claims_identity(agent_app_id)
263
263
  claims_identity.claims[AuthenticationConstants.SERVICE_URL_CLAIM] = service_url
264
264
 
265
- # Create a turn context and run the pipeline.
266
- context = self._create_turn_context(
267
- claims_identity,
268
- None,
269
- callback,
270
- )
271
-
272
- # Create a UserTokenClient instance for the application to use. (For example, in the OAuthPrompt.)
273
- user_token_client: UserTokenClient = (
274
- await self._channel_service_client_factory.create_user_token_client(
275
- context, claims_identity
276
- )
277
- )
278
- context.turn_state[self.USER_TOKEN_CLIENT_KEY] = user_token_client
279
-
280
265
  # Create the connector client to use for outbound requests.
281
266
  connector_client: ConnectorClient = (
282
267
  await self._channel_service_client_factory.create_connector_client(
283
- context, claims_identity, service_url, audience
268
+ None, claims_identity, service_url, audience
284
269
  )
285
270
  )
286
- context.turn_state[self._AGENT_CONNECTOR_CLIENT_KEY] = connector_client
287
271
 
288
272
  # Make the actual create conversation call using the connector.
289
273
  create_conversation_result = (
@@ -297,7 +281,22 @@ class ChannelServiceAdapter(ChannelAdapter, ABC):
297
281
  create_conversation_result, channel_id, service_url, conversation_parameters
298
282
  )
299
283
 
300
- context.activity = create_activity
284
+ # Create a turn context and run the pipeline.
285
+ context = self._create_turn_context(
286
+ claims_identity,
287
+ None,
288
+ callback,
289
+ create_activity,
290
+ )
291
+ context.turn_state[self._AGENT_CONNECTOR_CLIENT_KEY] = connector_client
292
+
293
+ # Create a UserTokenClient instance for the application to use. (For example, in the OAuthPrompt.)
294
+ user_token_client: UserTokenClient = (
295
+ await self._channel_service_client_factory.create_user_token_client(
296
+ context, claims_identity
297
+ )
298
+ )
299
+ context.turn_state[self.USER_TOKEN_CLIENT_KEY] = user_token_client
301
300
 
302
301
  # Run the pipeline
303
302
  await self.run_pipeline(context, callback)
@@ -16,7 +16,7 @@ class ChannelServiceClientFactoryBase(Protocol):
16
16
  @abstractmethod
17
17
  async def create_connector_client(
18
18
  self,
19
- context: TurnContext,
19
+ context: TurnContext | None,
20
20
  claims_identity: ClaimsIdentity,
21
21
  service_url: str,
22
22
  audience: str,
@@ -83,15 +83,15 @@ class RestChannelServiceClientFactory(ChannelServiceClientFactoryBase):
83
83
 
84
84
  async def create_connector_client(
85
85
  self,
86
- context: TurnContext,
86
+ context: TurnContext | None,
87
87
  claims_identity: ClaimsIdentity,
88
88
  service_url: str,
89
89
  audience: str,
90
90
  scopes: Optional[list[str]] = None,
91
91
  use_anonymous: bool = False,
92
92
  ) -> ConnectorClientBase:
93
- if not context or not claims_identity:
94
- raise TypeError("context and claims_identity are required")
93
+ if not claims_identity:
94
+ raise TypeError("claims_identity is required")
95
95
  if not service_url:
96
96
  raise TypeError(
97
97
  "RestChannelServiceClientFactory.create_connector_client: service_url can't be None or Empty"
@@ -101,7 +101,7 @@ class RestChannelServiceClientFactory(ChannelServiceClientFactoryBase):
101
101
  "RestChannelServiceClientFactory.create_connector_client: audience can't be None or Empty"
102
102
  )
103
103
 
104
- if context.activity.is_agentic_request():
104
+ if context and context.activity.is_agentic_request():
105
105
  token = await self._get_agentic_token(context, service_url)
106
106
  else:
107
107
  token_provider: AccessTokenProviderBase = (
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: microsoft-agents-hosting-core
3
- Version: 0.6.0.dev15
3
+ Version: 0.6.0.dev17
4
4
  Summary: Core library for Microsoft Agents
5
5
  Author: Microsoft Corporation
6
6
  License-Expression: MIT
@@ -15,7 +15,7 @@ Classifier: Operating System :: OS Independent
15
15
  Requires-Python: >=3.10
16
16
  Description-Content-Type: text/markdown
17
17
  License-File: LICENSE
18
- Requires-Dist: microsoft-agents-activity==0.6.0.dev15
18
+ Requires-Dist: microsoft-agents-activity==0.6.0.dev17
19
19
  Requires-Dist: pyjwt>=2.10.1
20
20
  Requires-Dist: isodate>=0.6.1
21
21
  Requires-Dist: azure-core>=1.30.0
@@ -1,4 +1,4 @@
1
- microsoft-agents-activity==0.6.0.dev15
1
+ microsoft-agents-activity==0.6.0.dev17
2
2
  pyjwt>=2.10.1
3
3
  isodate>=0.6.1
4
4
  azure-core>=1.30.0