microsoft-agents-hosting-core 1.7.0.dev9__tar.gz → 1.8.0.dev0__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 (197) hide show
  1. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/PKG-INFO +11 -2
  2. microsoft_agents_hosting_core-1.8.0.dev0/VERSION.txt +1 -0
  3. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/_oauth/_oauth_flow.py +1 -1
  4. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/channel_adapter.py +10 -2
  5. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/channel_service_adapter.py +19 -15
  6. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/connector/client/connector_client.py +16 -0
  7. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/turn_context.py +22 -19
  8. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents_hosting_core.egg-info/PKG-INFO +11 -2
  9. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents_hosting_core.egg-info/requires.txt +1 -1
  10. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/readme.md +9 -0
  11. microsoft_agents_hosting_core-1.7.0.dev9/VERSION.txt +0 -1
  12. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/LICENSE +0 -0
  13. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/MANIFEST.in +0 -0
  14. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/__init__.py +0 -0
  15. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/_http_adapter_base.py +0 -0
  16. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/_oauth/__init__.py +0 -0
  17. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/_oauth/_flow_state.py +0 -0
  18. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/_oauth/_flow_storage_client.py +0 -0
  19. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/_utils/__init__.py +0 -0
  20. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/_utils/_service_set.py +0 -0
  21. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/activity_handler.py +0 -0
  22. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/agent.py +0 -0
  23. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/app/__init__.py +0 -0
  24. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/app/_routes/__init__.py +0 -0
  25. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/app/_routes/_route.py +0 -0
  26. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/app/_routes/_route_list.py +0 -0
  27. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/app/_routes/route_rank.py +0 -0
  28. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/app/_type_defs.py +0 -0
  29. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/app/_utils.py +0 -0
  30. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/app/adaptive_card/__init__.py +0 -0
  31. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/app/adaptive_card/_type_defs.py +0 -0
  32. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/app/adaptive_card/adaptive_card.py +0 -0
  33. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/app/adaptive_card/factory.py +0 -0
  34. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/app/adaptive_card/models.py +0 -0
  35. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/app/agent_application.py +0 -0
  36. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/app/app_error.py +0 -0
  37. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/app/app_options.py +0 -0
  38. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/app/attachment_downloader.py +0 -0
  39. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/app/input_file.py +0 -0
  40. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/app/m365_attachment_downloader.py +0 -0
  41. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/app/oauth/__init__.py +0 -0
  42. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/app/oauth/_handlers/__init__.py +0 -0
  43. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/app/oauth/_handlers/_authorization_handler.py +0 -0
  44. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/app/oauth/_handlers/_user_authorization.py +0 -0
  45. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/app/oauth/_handlers/agentic_user_authorization.py +0 -0
  46. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/app/oauth/_handlers/connector_user_authorization.py +0 -0
  47. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/app/oauth/_sign_in_response.py +0 -0
  48. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/app/oauth/_sign_in_state.py +0 -0
  49. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/app/oauth/auth_handler.py +0 -0
  50. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/app/oauth/authorization.py +0 -0
  51. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/app/oauth/telemetry/__init__.py +0 -0
  52. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/app/oauth/telemetry/constants.py +0 -0
  53. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/app/oauth/telemetry/spans.py +0 -0
  54. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/app/proactive/__init__.py +0 -0
  55. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/app/proactive/conversation.py +0 -0
  56. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/app/proactive/conversation_builder.py +0 -0
  57. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/app/proactive/conversation_reference_builder.py +0 -0
  58. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/app/proactive/create_conversation_options.py +0 -0
  59. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/app/proactive/proactive.py +0 -0
  60. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/app/proactive/proactive_options.py +0 -0
  61. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/app/proactive/telemetry/__init__.py +0 -0
  62. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/app/proactive/telemetry/_utils.py +0 -0
  63. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/app/proactive/telemetry/constants.py +0 -0
  64. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/app/proactive/telemetry/spans.py +0 -0
  65. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/app/query.py +0 -0
  66. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/app/state/__init__.py +0 -0
  67. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/app/state/conversation_state.py +0 -0
  68. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/app/state/state.py +0 -0
  69. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/app/state/temp_state.py +0 -0
  70. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/app/state/turn_state.py +0 -0
  71. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/app/streaming/__init__.py +0 -0
  72. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/app/streaming/citation.py +0 -0
  73. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/app/streaming/citation_util.py +0 -0
  74. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/app/streaming/streaming_response.py +0 -0
  75. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/app/telemetry/__init__.py +0 -0
  76. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/app/telemetry/constants.py +0 -0
  77. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/app/telemetry/metrics.py +0 -0
  78. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/app/telemetry/spans.py +0 -0
  79. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/app/typing_indicator.py +0 -0
  80. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/authorization/__init__.py +0 -0
  81. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/authorization/_entra_issuers.py +0 -0
  82. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/authorization/_helpers.py +0 -0
  83. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/authorization/_log_config.py +0 -0
  84. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/authorization/access_token_provider_base.py +0 -0
  85. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/authorization/agent_auth_configuration.py +0 -0
  86. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/authorization/anonymous_token_provider.py +0 -0
  87. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/authorization/auth_types.py +0 -0
  88. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/authorization/authentication_constants.py +0 -0
  89. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/authorization/claims_identity.py +0 -0
  90. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/authorization/connection_manager.py +0 -0
  91. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/authorization/connection_settings_base.py +0 -0
  92. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/authorization/connections.py +0 -0
  93. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/authorization/jwt/__init__.py +0 -0
  94. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/authorization/jwt/_authorize_request.py +0 -0
  95. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/authorization/jwt/jwt_token_validator.py +0 -0
  96. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/authorization/telemetry/__init__.py +0 -0
  97. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/authorization/telemetry/constants.py +0 -0
  98. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/authorization/telemetry/metrics.py +0 -0
  99. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/authorization/telemetry/spans.py +0 -0
  100. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/card_factory.py +0 -0
  101. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/channel_api_handler_protocol.py +0 -0
  102. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/channel_service_client_factory_base.py +0 -0
  103. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/client/__init__.py +0 -0
  104. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/client/agent_conversation_reference.py +0 -0
  105. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/client/channel_factory_protocol.py +0 -0
  106. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/client/channel_host_protocol.py +0 -0
  107. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/client/channel_info_protocol.py +0 -0
  108. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/client/channel_protocol.py +0 -0
  109. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/client/channels_configuration.py +0 -0
  110. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/client/configuration_channel_host.py +0 -0
  111. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/client/conversation_constants.py +0 -0
  112. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/client/conversation_id_factory.py +0 -0
  113. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/client/conversation_id_factory_options.py +0 -0
  114. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/client/conversation_id_factory_protocol.py +0 -0
  115. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/client/http_agent_channel.py +0 -0
  116. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/client/http_agent_channel_factory.py +0 -0
  117. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/connector/__init__.py +0 -0
  118. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/connector/_utils.py +0 -0
  119. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/connector/agent_sign_in_base.py +0 -0
  120. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/connector/attachments_base.py +0 -0
  121. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/connector/client/__init__.py +0 -0
  122. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/connector/client/_base_client.py +0 -0
  123. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/connector/client/agent_sign_in.py +0 -0
  124. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/connector/client/user_token.py +0 -0
  125. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/connector/client/user_token_client.py +0 -0
  126. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/connector/connector_client_base.py +0 -0
  127. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/connector/conversations_base.py +0 -0
  128. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/connector/get_product_info.py +0 -0
  129. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/connector/mcs/__init__.py +0 -0
  130. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/connector/mcs/mcs_connector_client.py +0 -0
  131. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/connector/teams/__init__.py +0 -0
  132. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/connector/teams/teams_connector_client.py +0 -0
  133. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/connector/telemetry/__init__.py +0 -0
  134. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/connector/telemetry/_request_span_wrapper.py +0 -0
  135. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/connector/telemetry/connector_spans.py +0 -0
  136. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/connector/telemetry/constants.py +0 -0
  137. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/connector/telemetry/metrics.py +0 -0
  138. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/connector/telemetry/user_token_client_spans.py +0 -0
  139. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/connector/user_token_base.py +0 -0
  140. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/connector/user_token_client_base.py +0 -0
  141. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/errors/__init__.py +0 -0
  142. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/errors/error_resources.py +0 -0
  143. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/header_propagation/__init__.py +0 -0
  144. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/header_propagation/agentic_header_provider.py +0 -0
  145. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/header_propagation/header_propagation_context.py +0 -0
  146. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/header_propagation/header_value_provider.py +0 -0
  147. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/http/__init__.py +0 -0
  148. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/http/_channel_service_routes.py +0 -0
  149. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/http/_http_request_protocol.py +0 -0
  150. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/http/_http_response.py +0 -0
  151. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/message_factory.py +0 -0
  152. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/middleware_set.py +0 -0
  153. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/outbound_host_validator.py +0 -0
  154. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/py.typed +0 -0
  155. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/rest_channel_service_client_factory.py +0 -0
  156. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/state/__init__.py +0 -0
  157. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/state/agent_state.py +0 -0
  158. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/state/state_property_accessor.py +0 -0
  159. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/state/user_state.py +0 -0
  160. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/storage/__init__.py +0 -0
  161. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/storage/_type_aliases.py +0 -0
  162. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/storage/error_handling.py +0 -0
  163. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/storage/memory_storage.py +0 -0
  164. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/storage/storage.py +0 -0
  165. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/storage/store_item.py +0 -0
  166. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/storage/telemetry/__init__.py +0 -0
  167. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/storage/telemetry/constants.py +0 -0
  168. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/storage/telemetry/metrics.py +0 -0
  169. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/storage/telemetry/spans.py +0 -0
  170. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/storage/transcript/__init__.py +0 -0
  171. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/storage/transcript/transcript_file_store.py +0 -0
  172. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/storage/transcript/transcript_info.py +0 -0
  173. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/storage/transcript/transcript_logger.py +0 -0
  174. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/storage/transcript/transcript_memory_store.py +0 -0
  175. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/storage/transcript/transcript_store.py +0 -0
  176. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/telemetry/__init__.py +0 -0
  177. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/telemetry/adapter/__init__.py +0 -0
  178. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/telemetry/adapter/constants.py +0 -0
  179. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/telemetry/adapter/metrics.py +0 -0
  180. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/telemetry/adapter/spans.py +0 -0
  181. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/telemetry/attributes.py +0 -0
  182. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/telemetry/core/__init__.py +0 -0
  183. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/telemetry/core/_agents_telemetry.py +0 -0
  184. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/telemetry/core/base_span_wrapper.py +0 -0
  185. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/telemetry/core/resource.py +0 -0
  186. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/telemetry/core/simple_span_wrapper.py +0 -0
  187. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/telemetry/core/type_defs.py +0 -0
  188. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/telemetry/turn_context/__init__.py +0 -0
  189. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/telemetry/turn_context/constants.py +0 -0
  190. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/telemetry/turn_context/spans.py +0 -0
  191. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents/hosting/core/telemetry/utils.py +0 -0
  192. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents_hosting_core.egg-info/SOURCES.txt +0 -0
  193. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents_hosting_core.egg-info/dependency_links.txt +0 -0
  194. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/microsoft_agents_hosting_core.egg-info/top_level.txt +0 -0
  195. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/pyproject.toml +0 -0
  196. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/setup.cfg +0 -0
  197. {microsoft_agents_hosting_core-1.7.0.dev9 → microsoft_agents_hosting_core-1.8.0.dev0}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: microsoft-agents-hosting-core
3
- Version: 1.7.0.dev9
3
+ Version: 1.8.0.dev0
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.7.0.dev9
18
+ Requires-Dist: microsoft-agents-activity==1.8.0.dev0
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
@@ -45,6 +45,15 @@ This library is part of the **Microsoft 365 Agents SDK for Python** - a comprehe
45
45
  <th style="width:20%">Date</th>
46
46
  <th style="width:60%">Release Notes</th>
47
47
  </tr>
48
+ <tr>
49
+ <td>1.8.0</td>
50
+ <td>2026-10-01</td>
51
+ <td>
52
+ <a href="https://github.com/microsoft/Agents-for-python/blob/main/changelog.md#microsoft-365-agents-sdk-for-python---release-notes-v180">
53
+ 1.8.0 Release Notes
54
+ </a>
55
+ </td>
56
+ </tr>
48
57
  <tr>
49
58
  <td>1.7.0</td>
50
59
  <td>2026-09-17</td>
@@ -0,0 +1 @@
1
+ 1.8.0.dev0
@@ -208,7 +208,7 @@ class _OAuthFlow:
208
208
  self, activity: Activity
209
209
  ) -> tuple[TokenResponse, _FlowErrorTag]:
210
210
  """Handles the continuation of the flow from a message activity."""
211
- magic_code: str = activity.text
211
+ magic_code: str = activity.text or ""
212
212
  if magic_code and magic_code.isdigit() and len(magic_code) == 6:
213
213
  token_response: TokenResponse = await self.get_user_token(magic_code)
214
214
 
@@ -114,7 +114,11 @@ class ChannelAdapter(ABC, ChannelAdapterProtocol):
114
114
  :rtype: typing.Any
115
115
  """
116
116
  context = TurnContext(self, reference.get_continuation_activity())
117
- return await self.run_pipeline(context, callback)
117
+ try:
118
+ res = await self.run_pipeline(context, callback)
119
+ finally:
120
+ await context._aclose()
121
+ return res
118
122
 
119
123
  async def continue_conversation_with_claims(
120
124
  self,
@@ -220,7 +224,11 @@ class ChannelAdapter(ABC, ChannelAdapterProtocol):
220
224
  context.turn_state["ConversationParameters"] = conversation_parameters
221
225
 
222
226
  # Process the activity through the middleware pipeline
223
- return await self.run_pipeline(context, callback)
227
+ try:
228
+ res = await self.run_pipeline(context, callback)
229
+ finally:
230
+ await context._aclose()
231
+ return res
224
232
 
225
233
  async def run_pipeline(
226
234
  self,
@@ -4,6 +4,7 @@
4
4
  from __future__ import annotations
5
5
 
6
6
  from abc import ABC
7
+ from contextlib import AsyncExitStack
7
8
  from http import HTTPStatus
8
9
  from typing import Awaitable, Callable, Optional, cast
9
10
  from uuid import uuid4
@@ -308,11 +309,12 @@ class ChannelServiceAdapter(ChannelAdapter, ABC):
308
309
  user_token_client # for back-compat
309
310
  )
310
311
 
311
- # Run the pipeline
312
- await self.run_pipeline(context, callback)
313
-
314
- await connector_client.close()
315
- await user_token_client.close()
312
+ # Run the pipeline and release resources in reverse registration order.
313
+ async with AsyncExitStack() as cleanup:
314
+ cleanup.push_async_callback(context._aclose)
315
+ cleanup.push_async_callback(user_token_client.close)
316
+ cleanup.push_async_callback(connector_client.close)
317
+ await self.run_pipeline(context, callback)
316
318
 
317
319
  async def process_proactive(
318
320
  self,
@@ -356,11 +358,12 @@ class ChannelServiceAdapter(ChannelAdapter, ABC):
356
358
  connector_client # for back-compat
357
359
  )
358
360
 
359
- # Run the pipeline
360
- await self.run_pipeline(context, callback)
361
-
362
- await connector_client.close()
363
- await user_token_client.close()
361
+ # Run the pipeline and release resources in reverse registration order.
362
+ async with AsyncExitStack() as cleanup:
363
+ cleanup.push_async_callback(context._aclose)
364
+ cleanup.push_async_callback(user_token_client.close)
365
+ cleanup.push_async_callback(connector_client.close)
366
+ await self.run_pipeline(context, callback)
364
367
 
365
368
  def _resolve_if_connector_client_is_needed(self, activity: Activity) -> bool:
366
369
  """Determine if a connector client is needed based on the activity's delivery mode and service URL.
@@ -449,11 +452,12 @@ class ChannelServiceAdapter(ChannelAdapter, ABC):
449
452
  connector_client # for back-compat
450
453
  )
451
454
 
452
- await self.run_pipeline(context, callback)
453
-
454
- if connector_client:
455
- await connector_client.close()
456
- await user_token_client.close()
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:
459
+ cleanup.push_async_callback(connector_client.close)
460
+ await self.run_pipeline(context, callback)
457
461
 
458
462
  # If there are any results they will have been left on the TurnContext.
459
463
  return self._process_turn_results(context)
@@ -308,8 +308,16 @@ class ConversationsOperations(ConversationsBase, _BaseClient):
308
308
  body.type,
309
309
  )
310
310
 
311
+ params = (
312
+ {"isTargetedActivity": "true"}
313
+ if ChannelId.get_channel(body.channel_id) == Channels.ms_teams
314
+ and body.is_targeted_activity()
315
+ else None
316
+ )
317
+
311
318
  async with self._wrapped_client().post(
312
319
  url,
320
+ params=params,
313
321
  json=body.model_dump(
314
322
  by_alias=True, exclude_unset=True, exclude_none=True, mode="json"
315
323
  ),
@@ -369,8 +377,16 @@ class ConversationsOperations(ConversationsBase, _BaseClient):
369
377
  body.type,
370
378
  )
371
379
 
380
+ params = (
381
+ {"isTargetedActivity": "true"}
382
+ if ChannelId.get_channel(body.channel_id) == Channels.ms_teams
383
+ and body.is_targeted_activity()
384
+ else None
385
+ )
386
+
372
387
  async with self._wrapped_client().post(
373
388
  url,
389
+ params=params,
374
390
  json=body.model_dump(by_alias=True, exclude_unset=True, mode="json"),
375
391
  ) as response:
376
392
  span.share(http_method="POST", status_code=response.status)
@@ -51,6 +51,7 @@ class TurnContext(TurnContextProtocol):
51
51
  _on_send_activities: list[OnSendActivitiesHandler]
52
52
  _on_update_activity: list[OnUpdateActivityHandler]
53
53
  _on_delete_activity: list[OnDeleteActivityHandler]
54
+ _on_aclose_list: list[Callable[["TurnContext"], Awaitable[None]]]
54
55
 
55
56
  def __init__(
56
57
  self,
@@ -77,6 +78,7 @@ class TurnContext(TurnContextProtocol):
77
78
  self._on_delete_activity = []
78
79
  self._responded: bool = False
79
80
  self._identity = identity
81
+ self._on_aclose_list = []
80
82
 
81
83
  if self.adapter is None:
82
84
  raise TypeError("TurnContext must be instantiated with an adapter.")
@@ -109,6 +111,7 @@ class TurnContext(TurnContextProtocol):
109
111
  "_on_send_activities",
110
112
  "_on_update_activity",
111
113
  "_on_delete_activity",
114
+ "_on_aclose_list",
112
115
  ]:
113
116
  setattr(context, attribute, getattr(self, attribute))
114
117
 
@@ -355,25 +358,7 @@ class TurnContext(TurnContextProtocol):
355
358
  :param is_incoming:
356
359
  :return:
357
360
  """
358
- activity.channel_id = reference.channel_id
359
- if reference.locale:
360
- activity.locale = reference.locale
361
- activity.service_url = reference.service_url
362
- activity.conversation = reference.conversation
363
- activity.request_id = reference.request_id
364
-
365
- if is_incoming:
366
- activity.from_property = reference.user
367
- activity.recipient = reference.agent
368
- if reference.activity_id:
369
- activity.id = reference.activity_id
370
- else:
371
- activity.from_property = reference.agent
372
- activity.recipient = reference.user
373
- if reference.activity_id:
374
- activity.reply_to_id = reference.activity_id
375
-
376
- return activity
361
+ return activity.apply_conversation_reference(reference, is_incoming)
377
362
 
378
363
  @staticmethod
379
364
  def get_reply_conversation_reference(
@@ -416,3 +401,21 @@ class TurnContext(TurnContextProtocol):
416
401
  :return: A list of Mention objects representing all mentions in the activity.
417
402
  """
418
403
  return activity.get_mentions()
404
+
405
+ async def _aclose(self) -> None:
406
+ """
407
+ Asynchronously close any resources associated with the turn context.
408
+
409
+ :return: None
410
+ """
411
+ for handler in self._on_aclose_list:
412
+ await handler(self)
413
+
414
+ def _on_aclose(self, handler: Callable[[TurnContext], Awaitable[None]]) -> None:
415
+ """
416
+ Register a handler to be called when the turn context is asynchronously closed.
417
+
418
+ :param handler: A callable that takes the turn context and returns an awaitable.
419
+ :return: None
420
+ """
421
+ self._on_aclose_list.append(handler)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: microsoft-agents-hosting-core
3
- Version: 1.7.0.dev9
3
+ Version: 1.8.0.dev0
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.7.0.dev9
18
+ Requires-Dist: microsoft-agents-activity==1.8.0.dev0
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
@@ -45,6 +45,15 @@ This library is part of the **Microsoft 365 Agents SDK for Python** - a comprehe
45
45
  <th style="width:20%">Date</th>
46
46
  <th style="width:60%">Release Notes</th>
47
47
  </tr>
48
+ <tr>
49
+ <td>1.8.0</td>
50
+ <td>2026-10-01</td>
51
+ <td>
52
+ <a href="https://github.com/microsoft/Agents-for-python/blob/main/changelog.md#microsoft-365-agents-sdk-for-python---release-notes-v180">
53
+ 1.8.0 Release Notes
54
+ </a>
55
+ </td>
56
+ </tr>
48
57
  <tr>
49
58
  <td>1.7.0</td>
50
59
  <td>2026-09-17</td>
@@ -1,4 +1,4 @@
1
- microsoft-agents-activity==1.7.0.dev9
1
+ microsoft-agents-activity==1.8.0.dev0
2
2
  pyjwt>=2.10.1
3
3
  isodate>=0.6.1
4
4
  python-dotenv>=1.1.1
@@ -16,6 +16,15 @@ This library is part of the **Microsoft 365 Agents SDK for Python** - a comprehe
16
16
  <th style="width:20%">Date</th>
17
17
  <th style="width:60%">Release Notes</th>
18
18
  </tr>
19
+ <tr>
20
+ <td>1.8.0</td>
21
+ <td>2026-10-01</td>
22
+ <td>
23
+ <a href="https://github.com/microsoft/Agents-for-python/blob/main/changelog.md#microsoft-365-agents-sdk-for-python---release-notes-v180">
24
+ 1.8.0 Release Notes
25
+ </a>
26
+ </td>
27
+ </tr>
19
28
  <tr>
20
29
  <td>1.7.0</td>
21
30
  <td>2026-09-17</td>
@@ -1 +0,0 @@
1
- 1.7.0.dev9