microsoft-agents-hosting-core 1.7.0.dev4__tar.gz → 1.7.0.dev6__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 (194) hide show
  1. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/PKG-INFO +4 -3
  2. microsoft_agents_hosting_core-1.7.0.dev6/VERSION.txt +1 -0
  3. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/app/agent_application.py +39 -67
  4. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/authorization/claims_identity.py +1 -31
  5. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/card_factory.py +0 -3
  6. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents_hosting_core.egg-info/PKG-INFO +4 -3
  7. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents_hosting_core.egg-info/requires.txt +1 -1
  8. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/readme.md +2 -1
  9. microsoft_agents_hosting_core-1.7.0.dev4/VERSION.txt +0 -1
  10. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/LICENSE +0 -0
  11. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/MANIFEST.in +0 -0
  12. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/__init__.py +0 -0
  13. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/_http_adapter_base.py +0 -0
  14. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/_oauth/__init__.py +0 -0
  15. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/_oauth/_flow_state.py +0 -0
  16. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/_oauth/_flow_storage_client.py +0 -0
  17. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/_oauth/_oauth_flow.py +0 -0
  18. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/_utils/__init__.py +0 -0
  19. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/_utils/_service_set.py +0 -0
  20. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/activity_handler.py +0 -0
  21. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/agent.py +0 -0
  22. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/app/__init__.py +0 -0
  23. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/app/_routes/__init__.py +0 -0
  24. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/app/_routes/_route.py +0 -0
  25. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/app/_routes/_route_list.py +0 -0
  26. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/app/_routes/route_rank.py +0 -0
  27. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/app/_type_defs.py +0 -0
  28. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/app/adaptive_card/__init__.py +0 -0
  29. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/app/adaptive_card/_type_defs.py +0 -0
  30. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/app/adaptive_card/adaptive_card.py +0 -0
  31. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/app/adaptive_card/factory.py +0 -0
  32. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/app/adaptive_card/models.py +0 -0
  33. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/app/app_error.py +0 -0
  34. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/app/app_options.py +0 -0
  35. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/app/input_file.py +0 -0
  36. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/app/oauth/__init__.py +0 -0
  37. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/app/oauth/_handlers/__init__.py +0 -0
  38. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/app/oauth/_handlers/_authorization_handler.py +0 -0
  39. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/app/oauth/_handlers/_user_authorization.py +0 -0
  40. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/app/oauth/_handlers/agentic_user_authorization.py +0 -0
  41. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/app/oauth/_handlers/connector_user_authorization.py +0 -0
  42. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/app/oauth/_sign_in_response.py +0 -0
  43. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/app/oauth/_sign_in_state.py +0 -0
  44. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/app/oauth/auth_handler.py +0 -0
  45. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/app/oauth/authorization.py +0 -0
  46. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/app/oauth/telemetry/__init__.py +0 -0
  47. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/app/oauth/telemetry/constants.py +0 -0
  48. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/app/oauth/telemetry/spans.py +0 -0
  49. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/app/proactive/__init__.py +0 -0
  50. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/app/proactive/conversation.py +0 -0
  51. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/app/proactive/conversation_builder.py +0 -0
  52. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/app/proactive/conversation_reference_builder.py +0 -0
  53. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/app/proactive/create_conversation_options.py +0 -0
  54. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/app/proactive/proactive.py +0 -0
  55. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/app/proactive/proactive_options.py +0 -0
  56. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/app/proactive/telemetry/__init__.py +0 -0
  57. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/app/proactive/telemetry/_utils.py +0 -0
  58. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/app/proactive/telemetry/constants.py +0 -0
  59. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/app/proactive/telemetry/spans.py +0 -0
  60. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/app/query.py +0 -0
  61. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/app/state/__init__.py +0 -0
  62. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/app/state/conversation_state.py +0 -0
  63. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/app/state/state.py +0 -0
  64. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/app/state/temp_state.py +0 -0
  65. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/app/state/turn_state.py +0 -0
  66. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/app/streaming/__init__.py +0 -0
  67. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/app/streaming/citation.py +0 -0
  68. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/app/streaming/citation_util.py +0 -0
  69. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/app/streaming/streaming_response.py +0 -0
  70. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/app/telemetry/__init__.py +0 -0
  71. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/app/telemetry/constants.py +0 -0
  72. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/app/telemetry/metrics.py +0 -0
  73. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/app/telemetry/spans.py +0 -0
  74. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/app/typing_indicator.py +0 -0
  75. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/authorization/__init__.py +0 -0
  76. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/authorization/_entra_issuers.py +0 -0
  77. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/authorization/_helpers.py +0 -0
  78. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/authorization/_log_config.py +0 -0
  79. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/authorization/access_token_provider_base.py +0 -0
  80. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/authorization/agent_auth_configuration.py +0 -0
  81. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/authorization/anonymous_token_provider.py +0 -0
  82. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/authorization/auth_types.py +0 -0
  83. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/authorization/authentication_constants.py +0 -0
  84. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/authorization/connection_manager.py +0 -0
  85. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/authorization/connection_settings_base.py +0 -0
  86. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/authorization/connections.py +0 -0
  87. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/authorization/jwt/__init__.py +0 -0
  88. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/authorization/jwt/_authorize_request.py +0 -0
  89. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/authorization/jwt/jwt_token_validator.py +0 -0
  90. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/authorization/telemetry/__init__.py +0 -0
  91. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/authorization/telemetry/constants.py +0 -0
  92. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/authorization/telemetry/metrics.py +0 -0
  93. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/authorization/telemetry/spans.py +0 -0
  94. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/channel_adapter.py +0 -0
  95. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/channel_api_handler_protocol.py +0 -0
  96. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/channel_service_adapter.py +0 -0
  97. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/channel_service_client_factory_base.py +0 -0
  98. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/client/__init__.py +0 -0
  99. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/client/agent_conversation_reference.py +0 -0
  100. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/client/channel_factory_protocol.py +0 -0
  101. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/client/channel_host_protocol.py +0 -0
  102. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/client/channel_info_protocol.py +0 -0
  103. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/client/channel_protocol.py +0 -0
  104. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/client/channels_configuration.py +0 -0
  105. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/client/configuration_channel_host.py +0 -0
  106. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/client/conversation_constants.py +0 -0
  107. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/client/conversation_id_factory.py +0 -0
  108. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/client/conversation_id_factory_options.py +0 -0
  109. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/client/conversation_id_factory_protocol.py +0 -0
  110. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/client/http_agent_channel.py +0 -0
  111. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/client/http_agent_channel_factory.py +0 -0
  112. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/connector/__init__.py +0 -0
  113. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/connector/_utils.py +0 -0
  114. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/connector/agent_sign_in_base.py +0 -0
  115. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/connector/attachments_base.py +0 -0
  116. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/connector/client/__init__.py +0 -0
  117. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/connector/client/_base_client.py +0 -0
  118. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/connector/client/agent_sign_in.py +0 -0
  119. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/connector/client/connector_client.py +0 -0
  120. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/connector/client/user_token.py +0 -0
  121. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/connector/client/user_token_client.py +0 -0
  122. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/connector/connector_client_base.py +0 -0
  123. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/connector/conversations_base.py +0 -0
  124. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/connector/get_product_info.py +0 -0
  125. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/connector/mcs/__init__.py +0 -0
  126. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/connector/mcs/mcs_connector_client.py +0 -0
  127. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/connector/teams/__init__.py +0 -0
  128. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/connector/teams/teams_connector_client.py +0 -0
  129. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/connector/telemetry/__init__.py +0 -0
  130. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/connector/telemetry/_request_span_wrapper.py +0 -0
  131. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/connector/telemetry/connector_spans.py +0 -0
  132. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/connector/telemetry/constants.py +0 -0
  133. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/connector/telemetry/metrics.py +0 -0
  134. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/connector/telemetry/user_token_client_spans.py +0 -0
  135. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/connector/user_token_base.py +0 -0
  136. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/connector/user_token_client_base.py +0 -0
  137. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/errors/__init__.py +0 -0
  138. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/errors/error_resources.py +0 -0
  139. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/header_propagation/__init__.py +0 -0
  140. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/header_propagation/agentic_header_provider.py +0 -0
  141. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/header_propagation/header_propagation_context.py +0 -0
  142. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/header_propagation/header_value_provider.py +0 -0
  143. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/http/__init__.py +0 -0
  144. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/http/_channel_service_routes.py +0 -0
  145. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/http/_http_request_protocol.py +0 -0
  146. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/http/_http_response.py +0 -0
  147. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/message_factory.py +0 -0
  148. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/middleware_set.py +0 -0
  149. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/outbound_host_validator.py +0 -0
  150. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/py.typed +0 -0
  151. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/rest_channel_service_client_factory.py +0 -0
  152. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/state/__init__.py +0 -0
  153. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/state/agent_state.py +0 -0
  154. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/state/state_property_accessor.py +0 -0
  155. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/state/user_state.py +0 -0
  156. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/storage/__init__.py +0 -0
  157. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/storage/_type_aliases.py +0 -0
  158. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/storage/error_handling.py +0 -0
  159. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/storage/memory_storage.py +0 -0
  160. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/storage/storage.py +0 -0
  161. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/storage/store_item.py +0 -0
  162. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/storage/telemetry/__init__.py +0 -0
  163. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/storage/telemetry/constants.py +0 -0
  164. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/storage/telemetry/metrics.py +0 -0
  165. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/storage/telemetry/spans.py +0 -0
  166. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/storage/transcript/__init__.py +0 -0
  167. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/storage/transcript/transcript_file_store.py +0 -0
  168. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/storage/transcript/transcript_info.py +0 -0
  169. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/storage/transcript/transcript_logger.py +0 -0
  170. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/storage/transcript/transcript_memory_store.py +0 -0
  171. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/storage/transcript/transcript_store.py +0 -0
  172. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/telemetry/__init__.py +0 -0
  173. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/telemetry/adapter/__init__.py +0 -0
  174. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/telemetry/adapter/constants.py +0 -0
  175. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/telemetry/adapter/metrics.py +0 -0
  176. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/telemetry/adapter/spans.py +0 -0
  177. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/telemetry/attributes.py +0 -0
  178. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/telemetry/core/__init__.py +0 -0
  179. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/telemetry/core/_agents_telemetry.py +0 -0
  180. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/telemetry/core/base_span_wrapper.py +0 -0
  181. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/telemetry/core/resource.py +0 -0
  182. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/telemetry/core/simple_span_wrapper.py +0 -0
  183. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/telemetry/core/type_defs.py +0 -0
  184. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/telemetry/turn_context/__init__.py +0 -0
  185. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/telemetry/turn_context/constants.py +0 -0
  186. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/telemetry/turn_context/spans.py +0 -0
  187. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/telemetry/utils.py +0 -0
  188. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents/hosting/core/turn_context.py +0 -0
  189. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents_hosting_core.egg-info/SOURCES.txt +0 -0
  190. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents_hosting_core.egg-info/dependency_links.txt +0 -0
  191. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/microsoft_agents_hosting_core.egg-info/top_level.txt +0 -0
  192. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/pyproject.toml +0 -0
  193. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/setup.cfg +0 -0
  194. {microsoft_agents_hosting_core-1.7.0.dev4 → microsoft_agents_hosting_core-1.7.0.dev6}/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.dev4
3
+ Version: 1.7.0.dev6
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.dev4
18
+ Requires-Dist: microsoft-agents-activity==1.7.0.dev6
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
@@ -215,7 +215,7 @@ ADAPTER = CloudAdapter(connection_manager=CONNECTION_MANAGER)
215
215
  AUTHORIZATION = Authorization(STORAGE, CONNECTION_MANAGER, **agents_sdk_config)
216
216
 
217
217
  AGENT_APP = AgentApplication[TurnState](
218
- storage=STORAGE, adapter=ADAPTER, authorization=AUTHORIZATION, **agents_sdk_config
218
+ storage=STORAGE, authorization=AUTHORIZATION, **agents_sdk_config
219
219
  )
220
220
 
221
221
  @AGENT_APP.activity("message")
@@ -226,6 +226,7 @@ async def on_message(context: TurnContext, state: TurnState):
226
226
 
227
227
  start_server(
228
228
  agent_application=AGENT_APP,
229
+ adapter=ADAPTER,
229
230
  auth_configuration=CONNECTION_MANAGER.get_default_connection_configuration(),
230
231
  )
231
232
  ```
@@ -0,0 +1 @@
1
+ 1.7.0.dev6
@@ -7,6 +7,8 @@ from __future__ import annotations
7
7
 
8
8
  import asyncio
9
9
  import logging
10
+ import warnings
11
+
10
12
  from contextlib import nullcontext
11
13
  from copy import copy
12
14
  from functools import partial
@@ -82,10 +84,10 @@ class AgentApplication(Agent, Generic[StateT]):
82
84
  _adaptive_card: AdaptiveCard
83
85
  _auth: Authorization
84
86
  _proactive: Proactive | None = None
87
+ _turn_error_handlers: list[Callable[[TurnContext, Exception], Awaitable[None]]]
85
88
  _internal_before_turn: list[Callable[[TurnContext, StateT], Awaitable[bool]]]
86
89
  _internal_after_turn: list[Callable[[TurnContext, StateT], Awaitable[bool]]]
87
90
  _route_list: _RouteList[StateT]
88
- _error: Callable[[TurnContext, Exception], Awaitable[None]] | None = None
89
91
  _turn_state_factory: Callable[[], StateT] | None = None
90
92
  _connection_manager: Connections
91
93
 
@@ -111,6 +113,7 @@ class AgentApplication(Agent, Generic[StateT]):
111
113
  """
112
114
  self._adaptive_card = AdaptiveCard(self)
113
115
  self._route_list = _RouteList[StateT]()
116
+ self._turn_error_handlers = []
114
117
  self._internal_before_turn = []
115
118
  self._internal_after_turn = []
116
119
 
@@ -137,6 +140,14 @@ class AgentApplication(Agent, Generic[StateT]):
137
140
 
138
141
  self._options = options
139
142
 
143
+ if self._options.adapter:
144
+ warnings.warn(
145
+ "AgentApplication.adapter is obsolete and will be removed in a future release.",
146
+ DeprecationWarning,
147
+ stacklevel=2,
148
+ )
149
+ self._adapter = self._options.adapter
150
+
140
151
  if not self._options.storage:
141
152
  logger.error(
142
153
  "ApplicationOptions.storage is required and was not configured.",
@@ -147,9 +158,7 @@ class AgentApplication(Agent, Generic[StateT]):
147
158
  """)
148
159
  self._storage = self._options.storage
149
160
 
150
- if options.long_running_messages and (
151
- not options.adapter or not options.bot_app_id
152
- ):
161
+ if options.long_running_messages and not options.bot_app_id:
153
162
  logger.error(
154
163
  "ApplicationOptions.long_running_messages requires an adapter and bot_app_id.",
155
164
  stack_info=True,
@@ -159,9 +168,6 @@ class AgentApplication(Agent, Generic[StateT]):
159
168
  no adapter or `bot_app_id` was configured.
160
169
  """)
161
170
 
162
- if options.adapter:
163
- self._adapter = options.adapter
164
-
165
171
  self._turn_state_factory = (
166
172
  options.turn_state_factory
167
173
  or kwargs.get("turn_state_factory", None)
@@ -220,11 +226,14 @@ class AgentApplication(Agent, Generic[StateT]):
220
226
  return self._connection_manager
221
227
 
222
228
  @property
229
+ @deprecated(
230
+ "AgentApplication.adapter is deprecated and will be removed in a future release."
231
+ )
223
232
  def adapter(self) -> ChannelServiceAdapter:
224
233
  """
225
- The bot's adapter.
234
+ The application's channel service adapter.
226
235
 
227
- :return: The channel service adapter for the bot.
236
+ :return: The channel service adapter for the application.
228
237
  :rtype: :class:`microsoft_agents.hosting.core.channel_service_adapter.ChannelServiceAdapter`
229
238
  :raises ApplicationError: If the adapter is not configured.
230
239
  """
@@ -800,13 +809,7 @@ class AgentApplication(Agent, Generic[StateT]):
800
809
  """
801
810
 
802
811
  logger.debug(f"Registering the error handler {func.__name__} ")
803
- self._error = func
804
-
805
- if self._adapter:
806
- logger.debug(
807
- f"Registering for adapter {self._adapter.__class__.__name__} the error handler {func.__name__} "
808
- )
809
- self._adapter.on_turn_error = func
812
+ self._turn_error_handlers.append(func)
810
813
 
811
814
  return func
812
815
 
@@ -884,11 +887,7 @@ class AgentApplication(Agent, Generic[StateT]):
884
887
  if await self._run_after_turn_middleware(context, turn_state):
885
888
  await turn_state.save(context)
886
889
  return
887
- except ApplicationError as err:
888
- logger.error(
889
- f"An application error occurred in the AgentApplication: {err}",
890
- exc_info=True,
891
- )
890
+ except Exception as err:
892
891
  await self._on_error(context, err)
893
892
 
894
893
  def _remove_mentions(self, context: TurnContext):
@@ -899,39 +898,6 @@ class AgentApplication(Agent, Generic[StateT]):
899
898
  ):
900
899
  context.activity.text = context.remove_recipient_mention(context.activity)
901
900
 
902
- @staticmethod
903
- @deprecated(
904
- "Use `load_configuration_from_env` from `microsoft_agents.activity` instead."
905
- )
906
- def parse_env_vars_configuration(vars: dict[str, Any]) -> dict:
907
- """
908
- Parses environment variables and returns a dictionary with the relevant configuration.
909
-
910
- :param vars: Dictionary of environment variable names and values.
911
- :type vars: dict[str, Any]
912
- :return: Parsed configuration dictionary with nested structure.
913
- :rtype: dict
914
- """
915
- result = {}
916
- for key, value in vars.items():
917
- levels = key.split("__")
918
- current_level = result
919
- last_level = None
920
- for next_level in levels:
921
- if next_level not in current_level:
922
- current_level[next_level] = {}
923
- last_level = current_level
924
- current_level = current_level[next_level]
925
- logger.debug(f"Using environment variable '{key}'")
926
- last_level[levels[-1]] = value
927
-
928
- return {
929
- "AGENT_APPLICATION": result["AGENT_APPLICATION"],
930
- "COPILOT_STUDIO_AGENT": result["COPILOT_STUDIO_AGENT"],
931
- "CONNECTIONS": result["CONNECTIONS"],
932
- "CONNECTIONS_MAP": result["CONNECTIONS_MAP"],
933
- }
934
-
935
901
  async def _initialize_state(self, context: TurnContext) -> StateT:
936
902
  if self._turn_state_factory:
937
903
  logger.debug("Using custom turn state factory")
@@ -1034,17 +1000,18 @@ class AgentApplication(Agent, Generic[StateT]):
1034
1000
  self, context: TurnContext, func: Callable[[TurnContext], Awaitable]
1035
1001
  ):
1036
1002
  if (
1037
- self._adapter
1003
+ context.adapter
1038
1004
  and ActivityTypes.message == context.activity.type
1039
1005
  and self._options.long_running_messages
1006
+ and context.identity is not None
1040
1007
  ):
1041
1008
  logger.debug(
1042
1009
  f"Starting long running call for context: {context.activity.id} with function: {func.__name__}"
1043
1010
  )
1044
- return await self._adapter.continue_conversation(
1045
- reference=context.get_conversation_reference(context.activity),
1011
+ return await context.adapter.continue_conversation_with_claims(
1012
+ claims_identity=context.identity,
1013
+ continuation_activity=context.activity,
1046
1014
  callback=func,
1047
- bot_app_id=self.options.bot_app_id,
1048
1015
  )
1049
1016
 
1050
1017
  return await func(context)
@@ -1064,7 +1031,7 @@ class AgentApplication(Agent, Generic[StateT]):
1064
1031
 
1065
1032
  async def __replay(act: Activity):
1066
1033
 
1067
- await self._adapter.continue_conversation_with_claims(
1034
+ await context.adapter.continue_conversation_with_claims(
1068
1035
  context.identity,
1069
1036
  act,
1070
1037
  __replay_turn,
@@ -1104,16 +1071,21 @@ class AgentApplication(Agent, Generic[StateT]):
1104
1071
 
1105
1072
  return
1106
1073
 
1107
- async def _on_error(self, context: TurnContext, err: ApplicationError) -> None:
1108
- if self._error:
1109
- logger.info(
1110
- f"Calling error handler {self._error.__name__} for error: {err}"
1111
- )
1112
- return await self._error(context, err)
1074
+ async def _on_error(self, context: TurnContext, err: Exception) -> None:
1075
+ """Handle errors that occur during a turn in the AgentApplication.
1076
+
1077
+ :param context: The turn context in which the error occurred.
1078
+ :param err: The exception that occurred.
1079
+ """
1113
1080
 
1114
1081
  logger.error(
1115
1082
  f"An error occurred in the AgentApplication: {err}",
1116
1083
  exc_info=True,
1117
1084
  )
1118
- logger.error(err)
1119
- raise err
1085
+
1086
+ for err_func in self._turn_error_handlers:
1087
+ logger.info(f"Calling error handler {err_func.__name__} for error: {err}")
1088
+ await err_func(context, err)
1089
+
1090
+ if not self._turn_error_handlers:
1091
+ raise err
@@ -1,8 +1,6 @@
1
1
  # Copyright (c) Microsoft Corporation. All rights reserved.
2
2
  # Licensed under the MIT License.
3
3
 
4
- import warnings
5
-
6
4
  from typing import Any
7
5
 
8
6
  from .authentication_constants import AuthenticationConstants
@@ -16,35 +14,26 @@ class ClaimsIdentity:
16
14
 
17
15
  claims: dict[str, Any]
18
16
  authentication_type: str | None
19
- security_token: str | None # deprecated, will be removed in future versions
17
+ security_token: str | None
20
18
 
21
19
  def __init__(
22
20
  self,
23
21
  claims: dict[str, Any] | None = None,
24
- is_authenticated: bool | None = None,
25
22
  authentication_type: str | None = None,
26
23
  security_token: str | None = None,
27
24
  ):
28
25
  """Creates a new instance of the ClaimsIdentity class.
29
26
 
30
27
  :param claims: A dictionary of claims associated with the identity.
31
- :param is_authenticated: A boolean indicating whether the identity is authenticated. (Deprecated)
32
28
  :param authentication_type: A string representing the type of authentication used.
33
29
  :param security_token: The security token associated with the identity.
34
30
  """
35
31
  if claims is None:
36
32
  claims = {}
37
33
  self.claims = claims
38
- if is_authenticated is not None:
39
- warnings.warn(
40
- "The 'is_authenticated' parameter is deprecated and will be removed in future versions.",
41
- DeprecationWarning,
42
- stacklevel=2,
43
- )
44
34
 
45
35
  self.authentication_type = authentication_type
46
36
  self.security_token = security_token
47
- self._is_authenticated = is_authenticated
48
37
 
49
38
  def get_claim_value(self, claim_type: str) -> Any:
50
39
  """Gets the value of a specific claim type from the claims dictionary.
@@ -62,25 +51,6 @@ class ClaimsIdentity:
62
51
  or self.authentication_type.lower() == "anonymous"
63
52
  ) and not self.claims
64
53
 
65
- @property
66
- def is_authenticated(self) -> bool:
67
- """Returns True if the identity is authenticated, otherwise False."""
68
- warnings.warn(
69
- "The 'is_authenticated' property is deprecated and will be removed in future versions.",
70
- DeprecationWarning,
71
- stacklevel=2,
72
- )
73
- return bool(self.claims)
74
-
75
- @is_authenticated.setter
76
- def is_authenticated(self, value: bool) -> None:
77
- """(Deprecated). This is now a no-op."""
78
- warnings.warn(
79
- "The 'is_authenticated' property is deprecated and will be removed in future versions.",
80
- DeprecationWarning,
81
- stacklevel=2,
82
- )
83
-
84
54
  def get_app_id(self) -> str | None:
85
55
  """
86
56
  Gets the AppId from the current ClaimsIdentity.
@@ -160,6 +160,3 @@ class CardFactory:
160
160
  )
161
161
 
162
162
  return card.to_attachment()
163
-
164
- # Deprecated alias; use microsoft_agents.activity.ContentTypes instead.
165
- content_types: type[ContentTypes] = ContentTypes
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: microsoft-agents-hosting-core
3
- Version: 1.7.0.dev4
3
+ Version: 1.7.0.dev6
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.dev4
18
+ Requires-Dist: microsoft-agents-activity==1.7.0.dev6
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
@@ -215,7 +215,7 @@ ADAPTER = CloudAdapter(connection_manager=CONNECTION_MANAGER)
215
215
  AUTHORIZATION = Authorization(STORAGE, CONNECTION_MANAGER, **agents_sdk_config)
216
216
 
217
217
  AGENT_APP = AgentApplication[TurnState](
218
- storage=STORAGE, adapter=ADAPTER, authorization=AUTHORIZATION, **agents_sdk_config
218
+ storage=STORAGE, authorization=AUTHORIZATION, **agents_sdk_config
219
219
  )
220
220
 
221
221
  @AGENT_APP.activity("message")
@@ -226,6 +226,7 @@ async def on_message(context: TurnContext, state: TurnState):
226
226
 
227
227
  start_server(
228
228
  agent_application=AGENT_APP,
229
+ adapter=ADAPTER,
229
230
  auth_configuration=CONNECTION_MANAGER.get_default_connection_configuration(),
230
231
  )
231
232
  ```
@@ -1,4 +1,4 @@
1
- microsoft-agents-activity==1.7.0.dev4
1
+ microsoft-agents-activity==1.7.0.dev6
2
2
  pyjwt>=2.10.1
3
3
  isodate>=0.6.1
4
4
  python-dotenv>=1.1.1
@@ -186,7 +186,7 @@ ADAPTER = CloudAdapter(connection_manager=CONNECTION_MANAGER)
186
186
  AUTHORIZATION = Authorization(STORAGE, CONNECTION_MANAGER, **agents_sdk_config)
187
187
 
188
188
  AGENT_APP = AgentApplication[TurnState](
189
- storage=STORAGE, adapter=ADAPTER, authorization=AUTHORIZATION, **agents_sdk_config
189
+ storage=STORAGE, authorization=AUTHORIZATION, **agents_sdk_config
190
190
  )
191
191
 
192
192
  @AGENT_APP.activity("message")
@@ -197,6 +197,7 @@ async def on_message(context: TurnContext, state: TurnState):
197
197
 
198
198
  start_server(
199
199
  agent_application=AGENT_APP,
200
+ adapter=ADAPTER,
200
201
  auth_configuration=CONNECTION_MANAGER.get_default_connection_configuration(),
201
202
  )
202
203
  ```
@@ -1 +0,0 @@
1
- 1.7.0.dev4