microsoft-agents-hosting-core 1.10.0.dev7__tar.gz → 1.10.0.dev8__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 (210) hide show
  1. {microsoft_agents_hosting_core-1.10.0.dev7/microsoft_agents_hosting_core.egg-info → microsoft_agents_hosting_core-1.10.0.dev8}/PKG-INFO +2 -2
  2. microsoft_agents_hosting_core-1.10.0.dev8/VERSION.txt +1 -0
  3. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/channel_service_adapter.py +118 -107
  4. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8/microsoft_agents_hosting_core.egg-info}/PKG-INFO +2 -2
  5. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents_hosting_core.egg-info/requires.txt +1 -1
  6. microsoft_agents_hosting_core-1.10.0.dev7/VERSION.txt +0 -1
  7. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/LICENSE +0 -0
  8. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/MANIFEST.in +0 -0
  9. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/__init__.py +0 -0
  10. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/_http_adapter_base.py +0 -0
  11. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/_oauth/__init__.py +0 -0
  12. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/_oauth/_flow_state.py +0 -0
  13. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/_oauth/_flow_storage_client.py +0 -0
  14. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/_oauth/_oauth_flow.py +0 -0
  15. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/_utils/__init__.py +0 -0
  16. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/_utils/_service_set.py +0 -0
  17. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/_utils/_turn_context_wrapper.py +0 -0
  18. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/activity_handler.py +0 -0
  19. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/agent.py +0 -0
  20. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/__init__.py +0 -0
  21. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/_routes/__init__.py +0 -0
  22. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/_routes/_route.py +0 -0
  23. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/_routes/_route_list.py +0 -0
  24. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/_routes/route_rank.py +0 -0
  25. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/_selector.py +0 -0
  26. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/_type_defs.py +0 -0
  27. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/_utils.py +0 -0
  28. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/adaptive_card/__init__.py +0 -0
  29. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/adaptive_card/_type_defs.py +0 -0
  30. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/adaptive_card/adaptive_card.py +0 -0
  31. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/adaptive_card/factory.py +0 -0
  32. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/adaptive_card/models.py +0 -0
  33. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/agent_application.py +0 -0
  34. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/app_error.py +0 -0
  35. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/app_options.py +0 -0
  36. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/attachment_downloader.py +0 -0
  37. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/input_file.py +0 -0
  38. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/m365_attachment_downloader.py +0 -0
  39. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/oauth/__init__.py +0 -0
  40. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/oauth/_handlers/__init__.py +0 -0
  41. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/oauth/_handlers/_authorization_handler.py +0 -0
  42. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/oauth/_handlers/_user_authorization.py +0 -0
  43. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/oauth/_handlers/agentic_user_authorization.py +0 -0
  44. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/oauth/_handlers/connector_user_authorization.py +0 -0
  45. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/oauth/_sign_in_response.py +0 -0
  46. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/oauth/_sign_in_state.py +0 -0
  47. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/oauth/auth_handler.py +0 -0
  48. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/oauth/authorization.py +0 -0
  49. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/oauth/authorization_settings.py +0 -0
  50. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/oauth/telemetry/__init__.py +0 -0
  51. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/oauth/telemetry/constants.py +0 -0
  52. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/oauth/telemetry/spans.py +0 -0
  53. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/proactive/__init__.py +0 -0
  54. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/proactive/conversation.py +0 -0
  55. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/proactive/conversation_builder.py +0 -0
  56. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/proactive/conversation_reference_builder.py +0 -0
  57. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/proactive/create_conversation_options.py +0 -0
  58. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/proactive/proactive.py +0 -0
  59. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/proactive/proactive_options.py +0 -0
  60. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/proactive/telemetry/__init__.py +0 -0
  61. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/proactive/telemetry/_utils.py +0 -0
  62. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/proactive/telemetry/constants.py +0 -0
  63. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/proactive/telemetry/spans.py +0 -0
  64. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/query.py +0 -0
  65. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/state/__init__.py +0 -0
  66. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/state/conversation_state.py +0 -0
  67. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/state/state.py +0 -0
  68. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/state/temp_state.py +0 -0
  69. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/state/turn_state.py +0 -0
  70. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/streaming/__init__.py +0 -0
  71. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/streaming/citation.py +0 -0
  72. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/streaming/citation_util.py +0 -0
  73. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/streaming/streaming_response.py +0 -0
  74. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/telemetry/__init__.py +0 -0
  75. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/telemetry/constants.py +0 -0
  76. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/telemetry/metrics.py +0 -0
  77. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/telemetry/spans.py +0 -0
  78. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/app/typing_indicator.py +0 -0
  79. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/authorization/__init__.py +0 -0
  80. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/authorization/_entra_issuers.py +0 -0
  81. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/authorization/_helpers.py +0 -0
  82. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/authorization/_log_config.py +0 -0
  83. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/authorization/access_token_provider_base.py +0 -0
  84. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/authorization/anonymous_token_provider.py +0 -0
  85. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/authorization/auth_types.py +0 -0
  86. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/authorization/authentication_constants.py +0 -0
  87. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/authorization/claims_identity.py +0 -0
  88. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/authorization/connection_manager.py +0 -0
  89. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/authorization/connections/__init__.py +0 -0
  90. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/authorization/connections/agent_auth_configuration.py +0 -0
  91. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/authorization/connections/connection_manager.py +0 -0
  92. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/authorization/connections/connection_settings_base.py +0 -0
  93. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/authorization/connections/connections.py +0 -0
  94. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/authorization/connections/connections_map.py +0 -0
  95. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/authorization/jwt/__init__.py +0 -0
  96. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/authorization/jwt/_authorize_request.py +0 -0
  97. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/authorization/jwt/jwt_connection_settings.py +0 -0
  98. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/authorization/jwt/jwt_token_validator.py +0 -0
  99. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/authorization/jwt/token_validation_configuration.py +0 -0
  100. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/authorization/telemetry/__init__.py +0 -0
  101. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/authorization/telemetry/constants.py +0 -0
  102. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/authorization/telemetry/metrics.py +0 -0
  103. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/authorization/telemetry/spans.py +0 -0
  104. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/card_factory.py +0 -0
  105. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/channel_adapter.py +0 -0
  106. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/channel_api_handler_protocol.py +0 -0
  107. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/channel_service_client_factory_base.py +0 -0
  108. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/client/__init__.py +0 -0
  109. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/client/agent_conversation_reference.py +0 -0
  110. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/client/channel_factory_protocol.py +0 -0
  111. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/client/channel_host_protocol.py +0 -0
  112. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/client/channel_info_protocol.py +0 -0
  113. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/client/channel_protocol.py +0 -0
  114. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/client/channels_configuration.py +0 -0
  115. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/client/configuration_channel_host.py +0 -0
  116. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/client/conversation_constants.py +0 -0
  117. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/client/conversation_id_factory.py +0 -0
  118. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/client/conversation_id_factory_options.py +0 -0
  119. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/client/conversation_id_factory_protocol.py +0 -0
  120. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/client/http_agent_channel.py +0 -0
  121. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/client/http_agent_channel_factory.py +0 -0
  122. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/connector/__init__.py +0 -0
  123. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/connector/_utils.py +0 -0
  124. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/connector/agent_sign_in_base.py +0 -0
  125. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/connector/attachments_base.py +0 -0
  126. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/connector/client/__init__.py +0 -0
  127. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/connector/client/_base_client.py +0 -0
  128. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/connector/client/agent_sign_in.py +0 -0
  129. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/connector/client/connector_client.py +0 -0
  130. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/connector/client/user_token.py +0 -0
  131. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/connector/client/user_token_client.py +0 -0
  132. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/connector/connector_client_base.py +0 -0
  133. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/connector/conversations_base.py +0 -0
  134. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/connector/get_product_info.py +0 -0
  135. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/connector/mcs/__init__.py +0 -0
  136. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/connector/mcs/mcs_connector_client.py +0 -0
  137. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/connector/teams/__init__.py +0 -0
  138. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/connector/teams/teams_connector_client.py +0 -0
  139. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/connector/telemetry/__init__.py +0 -0
  140. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/connector/telemetry/_request_span_wrapper.py +0 -0
  141. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/connector/telemetry/connector_spans.py +0 -0
  142. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/connector/telemetry/constants.py +0 -0
  143. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/connector/telemetry/metrics.py +0 -0
  144. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/connector/telemetry/user_token_client_spans.py +0 -0
  145. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/connector/user_token_base.py +0 -0
  146. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/connector/user_token_client_base.py +0 -0
  147. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/errors/__init__.py +0 -0
  148. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/errors/error_resources.py +0 -0
  149. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/header_propagation/__init__.py +0 -0
  150. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/header_propagation/agentic_header_provider.py +0 -0
  151. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/header_propagation/header_propagation_context.py +0 -0
  152. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/header_propagation/header_value_provider.py +0 -0
  153. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/http/__init__.py +0 -0
  154. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/http/_channel_service_routes.py +0 -0
  155. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/http/_http_request_protocol.py +0 -0
  156. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/http/_http_response.py +0 -0
  157. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/message_factory.py +0 -0
  158. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/middleware_set.py +0 -0
  159. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/py.typed +0 -0
  160. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/rest_channel_service_client_factory.py +0 -0
  161. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/security/__init__.py +0 -0
  162. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/security/_connector.py +0 -0
  163. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/security/_middleware.py +0 -0
  164. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/security/_utils.py +0 -0
  165. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/security/_validator.py +0 -0
  166. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/security/outbound_host_validator.py +0 -0
  167. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/state/__init__.py +0 -0
  168. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/state/agent_state.py +0 -0
  169. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/state/state_property_accessor.py +0 -0
  170. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/state/user_state.py +0 -0
  171. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/storage/__init__.py +0 -0
  172. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/storage/_type_aliases.py +0 -0
  173. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/storage/error_handling.py +0 -0
  174. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/storage/memory_storage.py +0 -0
  175. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/storage/storage.py +0 -0
  176. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/storage/store_item.py +0 -0
  177. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/storage/telemetry/__init__.py +0 -0
  178. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/storage/telemetry/constants.py +0 -0
  179. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/storage/telemetry/metrics.py +0 -0
  180. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/storage/telemetry/spans.py +0 -0
  181. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/storage/transcript/__init__.py +0 -0
  182. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/storage/transcript/transcript_file_store.py +0 -0
  183. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/storage/transcript/transcript_info.py +0 -0
  184. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/storage/transcript/transcript_logger.py +0 -0
  185. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/storage/transcript/transcript_memory_store.py +0 -0
  186. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/storage/transcript/transcript_store.py +0 -0
  187. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/telemetry/__init__.py +0 -0
  188. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/telemetry/adapter/__init__.py +0 -0
  189. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/telemetry/adapter/constants.py +0 -0
  190. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/telemetry/adapter/metrics.py +0 -0
  191. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/telemetry/adapter/spans.py +0 -0
  192. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/telemetry/attributes.py +0 -0
  193. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/telemetry/core/__init__.py +0 -0
  194. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/telemetry/core/_agents_telemetry.py +0 -0
  195. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/telemetry/core/base_span_wrapper.py +0 -0
  196. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/telemetry/core/resource.py +0 -0
  197. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/telemetry/core/simple_span_wrapper.py +0 -0
  198. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/telemetry/core/type_defs.py +0 -0
  199. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/telemetry/turn_context/__init__.py +0 -0
  200. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/telemetry/turn_context/constants.py +0 -0
  201. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/telemetry/turn_context/spans.py +0 -0
  202. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/telemetry/utils.py +0 -0
  203. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents/hosting/core/turn_context.py +0 -0
  204. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents_hosting_core.egg-info/SOURCES.txt +0 -0
  205. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents_hosting_core.egg-info/dependency_links.txt +0 -0
  206. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/microsoft_agents_hosting_core.egg-info/top_level.txt +0 -0
  207. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/pyproject.toml +0 -0
  208. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/readme.md +0 -0
  209. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/setup.cfg +0 -0
  210. {microsoft_agents_hosting_core-1.10.0.dev7 → microsoft_agents_hosting_core-1.10.0.dev8}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: microsoft-agents-hosting-core
3
- Version: 1.10.0.dev7
3
+ Version: 1.10.0.dev8
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==1.10.0.dev7
18
+ Requires-Dist: microsoft-agents-activity==1.10.0.dev8
19
19
  Requires-Dist: pyjwt>=2.10.1
20
20
  Requires-Dist: isodate>=0.6.1
21
21
  Requires-Dist: python-dotenv>=1.1.1
@@ -0,0 +1 @@
1
+ 1.10.0.dev8
@@ -264,56 +264,64 @@ class ChannelServiceAdapter(ChannelAdapter, ABC):
264
264
 
265
265
  use_anonymous_auth_callback = claims_identity.allow_anonymous
266
266
 
267
- # Create the connector client to use for outbound requests.
268
- connector_client = (
269
- await self._channel_service_client_factory.create_connector_client(
270
- None,
271
- claims_identity,
272
- service_url,
273
- audience,
274
- use_anonymous=use_anonymous_auth_callback,
275
- )
276
- )
267
+ async with AsyncExitStack() as cleanup:
277
268
 
278
- # Make the actual create conversation call using the connector.
279
- create_conversation_result = (
280
- await connector_client.conversations.create_conversation(
281
- conversation_parameters
269
+ # Create the connector client to use for outbound requests.
270
+ connector_client = (
271
+ await self._channel_service_client_factory.create_connector_client(
272
+ None,
273
+ claims_identity,
274
+ service_url,
275
+ audience,
276
+ use_anonymous=use_anonymous_auth_callback,
277
+ )
282
278
  )
283
- )
284
279
 
285
- # Create the create activity to communicate the results to the application.
286
- create_activity = self._create_create_activity(
287
- create_conversation_result, channel_id, service_url, conversation_parameters
288
- )
280
+ # Make the actual create conversation call using the connector.
281
+ try:
282
+ create_conversation_result = (
283
+ await connector_client.conversations.create_conversation(
284
+ conversation_parameters
285
+ )
286
+ )
287
+ except BaseException:
288
+ await connector_client.close()
289
+ raise
290
+
291
+ # Create the create activity to communicate the results to the application.
292
+ create_activity = self._create_create_activity(
293
+ create_conversation_result,
294
+ channel_id,
295
+ service_url,
296
+ conversation_parameters,
297
+ )
289
298
 
290
- # Create a turn context and run the pipeline.
291
- context = self._create_turn_context(
292
- claims_identity,
293
- None,
294
- create_activity,
295
- )
296
- context.services.set(ConnectorClientBase, connector_client)
297
- context.turn_state[self._AGENT_CONNECTOR_CLIENT_KEY] = (
298
- connector_client # for back-compat
299
- )
299
+ # Create a turn context and run the pipeline.
300
+ context = self._create_turn_context(
301
+ claims_identity,
302
+ None,
303
+ create_activity,
304
+ )
305
+ cleanup.push_async_callback(context._aclose)
306
+ cleanup.push_async_callback(connector_client.close)
300
307
 
301
- # Create a UserTokenClient instance for the application to use. (For example, in the OAuthPrompt.)
302
- user_token_client = (
303
- await self._channel_service_client_factory.create_user_token_client(
304
- context, claims_identity, use_anonymous_auth_callback
308
+ context.services.set(ConnectorClientBase, connector_client)
309
+ context.turn_state[self._AGENT_CONNECTOR_CLIENT_KEY] = (
310
+ connector_client # for back-compat
305
311
  )
306
- )
307
- context.services.set(UserTokenClientBase, user_token_client)
308
- context.turn_state[self.USER_TOKEN_CLIENT_KEY] = (
309
- user_token_client # for back-compat
310
- )
311
312
 
312
- # Run the pipeline and release resources in reverse registration order.
313
- async with AsyncExitStack() as cleanup:
314
- cleanup.push_async_callback(context._aclose)
313
+ # Create a UserTokenClient instance for the application to use. (For example, in the OAuthPrompt.)
314
+ user_token_client = (
315
+ await self._channel_service_client_factory.create_user_token_client(
316
+ context, claims_identity, use_anonymous_auth_callback
317
+ )
318
+ )
315
319
  cleanup.push_async_callback(user_token_client.close)
316
- cleanup.push_async_callback(connector_client.close)
320
+
321
+ context.services.set(UserTokenClientBase, user_token_client)
322
+ context.turn_state[self.USER_TOKEN_CLIENT_KEY] = (
323
+ user_token_client # for back-compat
324
+ )
317
325
  await self.run_pipeline(context, callback)
318
326
 
319
327
  async def process_proactive(
@@ -326,43 +334,45 @@ class ChannelServiceAdapter(ChannelAdapter, ABC):
326
334
 
327
335
  use_anonymous_auth_callback = claims_identity.allow_anonymous
328
336
 
329
- # Create a turn context and run the pipeline.
330
- context = self._create_turn_context(
331
- claims_identity,
332
- audience,
333
- activity=continuation_activity,
334
- )
335
-
336
- user_token_client = (
337
- await self._channel_service_client_factory.create_user_token_client(
338
- context, claims_identity, use_anonymous_auth_callback
339
- )
340
- )
341
- context.services.set(UserTokenClientBase, user_token_client)
342
- context.turn_state[self.USER_TOKEN_CLIENT_KEY] = (
343
- user_token_client # for back-compat
344
- )
337
+ async with AsyncExitStack() as cleanup:
345
338
 
346
- # Create the connector client to use for outbound requests.
347
- connector_client = (
348
- await self._channel_service_client_factory.create_connector_client(
349
- context,
339
+ # Create a turn context and run the pipeline.
340
+ context = self._create_turn_context(
350
341
  claims_identity,
351
- continuation_activity.service_url,
352
342
  audience,
353
- use_anonymous=use_anonymous_auth_callback,
343
+ activity=continuation_activity,
354
344
  )
355
- )
356
- context.services.set(ConnectorClientBase, connector_client)
357
- context.turn_state[self._AGENT_CONNECTOR_CLIENT_KEY] = (
358
- connector_client # for back-compat
359
- )
360
-
361
- # Run the pipeline and release resources in reverse registration order.
362
- async with AsyncExitStack() as cleanup:
363
345
  cleanup.push_async_callback(context._aclose)
346
+
347
+ user_token_client = (
348
+ await self._channel_service_client_factory.create_user_token_client(
349
+ context, claims_identity, use_anonymous_auth_callback
350
+ )
351
+ )
364
352
  cleanup.push_async_callback(user_token_client.close)
353
+
354
+ context.services.set(UserTokenClientBase, user_token_client)
355
+ context.turn_state[self.USER_TOKEN_CLIENT_KEY] = (
356
+ user_token_client # for back-compat
357
+ )
358
+
359
+ # Create the connector client to use for outbound requests.
360
+ connector_client = (
361
+ await self._channel_service_client_factory.create_connector_client(
362
+ context,
363
+ claims_identity,
364
+ continuation_activity.service_url,
365
+ audience,
366
+ use_anonymous=use_anonymous_auth_callback,
367
+ )
368
+ )
365
369
  cleanup.push_async_callback(connector_client.close)
370
+
371
+ context.services.set(ConnectorClientBase, connector_client)
372
+ context.turn_state[self._AGENT_CONNECTOR_CLIENT_KEY] = (
373
+ connector_client # for back-compat
374
+ )
375
+
366
376
  await self.run_pipeline(context, callback)
367
377
 
368
378
  def _resolve_if_connector_client_is_needed(self, activity: Activity) -> bool:
@@ -416,51 +426,52 @@ class ChannelServiceAdapter(ChannelAdapter, ABC):
416
426
 
417
427
  use_anonymous_auth_callback = claims_identity.allow_anonymous
418
428
 
419
- # Create a turn context and run the pipeline.
420
- context = self._create_turn_context(
421
- claims_identity,
422
- outgoing_audience,
423
- activity=activity,
424
- )
429
+ async with AsyncExitStack() as cleanup:
425
430
 
426
- # Create a UserTokenClient instance for the OAuth flow.
427
- user_token_client = (
428
- await self._channel_service_client_factory.create_user_token_client(
429
- context, claims_identity, use_anonymous_auth_callback
431
+ # Create a turn context and run the pipeline.
432
+ context = self._create_turn_context(
433
+ claims_identity,
434
+ outgoing_audience,
435
+ activity=activity,
430
436
  )
431
- )
432
- context.services.set(UserTokenClientBase, user_token_client)
433
- context.turn_state[self.USER_TOKEN_CLIENT_KEY] = (
434
- user_token_client # for back-compat
435
- )
437
+ cleanup.push_async_callback(context._aclose)
436
438
 
437
- # Create the connector client to use for outbound requests.
438
- connector_client: ConnectorClientBase | None = None
439
- if self._resolve_if_connector_client_is_needed(activity):
440
- connector_client = (
441
- await self._channel_service_client_factory.create_connector_client(
442
- context,
443
- claims_identity,
444
- activity.service_url,
445
- outgoing_audience,
446
- scopes,
447
- use_anonymous_auth_callback,
439
+ # Create a UserTokenClient instance for the OAuth flow.
440
+ user_token_client = (
441
+ await self._channel_service_client_factory.create_user_token_client(
442
+ context, claims_identity, use_anonymous_auth_callback
448
443
  )
449
444
  )
450
- context.services.set(ConnectorClientBase, connector_client)
451
- context.turn_state[self._AGENT_CONNECTOR_CLIENT_KEY] = (
452
- connector_client # for back-compat
445
+ cleanup.push_async_callback(user_token_client.close)
446
+
447
+ context.services.set(UserTokenClientBase, user_token_client)
448
+ context.turn_state[self.USER_TOKEN_CLIENT_KEY] = (
449
+ user_token_client # for back-compat
453
450
  )
454
451
 
455
- async with AsyncExitStack() as cleanup:
456
- cleanup.push_async_callback(context._aclose)
457
- cleanup.push_async_callback(user_token_client.close)
458
- if connector_client:
452
+ # Create the connector client to use for outbound requests.
453
+ connector_client: ConnectorClientBase | None = None
454
+ if self._resolve_if_connector_client_is_needed(activity):
455
+ connector_client = (
456
+ await self._channel_service_client_factory.create_connector_client(
457
+ context,
458
+ claims_identity,
459
+ activity.service_url,
460
+ outgoing_audience,
461
+ scopes,
462
+ use_anonymous_auth_callback,
463
+ )
464
+ )
459
465
  cleanup.push_async_callback(connector_client.close)
466
+
467
+ context.services.set(ConnectorClientBase, connector_client)
468
+ context.turn_state[self._AGENT_CONNECTOR_CLIENT_KEY] = (
469
+ connector_client # for back-compat
470
+ )
460
471
  await self.run_pipeline(context, callback)
461
472
 
462
- # If there are any results they will have been left on the TurnContext.
463
- return self._process_turn_results(context)
473
+ # If there are any results they will have been left on the TurnContext.
474
+ return self._process_turn_results(context)
464
475
 
465
476
  def create_claims_identity(self, agent_app_id: str = "") -> ClaimsIdentity:
466
477
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: microsoft-agents-hosting-core
3
- Version: 1.10.0.dev7
3
+ Version: 1.10.0.dev8
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==1.10.0.dev7
18
+ Requires-Dist: microsoft-agents-activity==1.10.0.dev8
19
19
  Requires-Dist: pyjwt>=2.10.1
20
20
  Requires-Dist: isodate>=0.6.1
21
21
  Requires-Dist: python-dotenv>=1.1.1
@@ -1,4 +1,4 @@
1
- microsoft-agents-activity==1.10.0.dev7
1
+ microsoft-agents-activity==1.10.0.dev8
2
2
  pyjwt>=2.10.1
3
3
  isodate>=0.6.1
4
4
  python-dotenv>=1.1.1
@@ -1 +0,0 @@
1
- 1.10.0.dev7