microsoft-agents-hosting-core 0.10.0.dev3__tar.gz → 0.10.0.dev5__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 (165) hide show
  1. {microsoft_agents_hosting_core-0.10.0.dev3/microsoft_agents_hosting_core.egg-info → microsoft_agents_hosting_core-0.10.0.dev5}/PKG-INFO +2 -2
  2. microsoft_agents_hosting_core-0.10.0.dev5/VERSION.txt +1 -0
  3. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/_oauth/_flow_state.py +1 -0
  4. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/_oauth/_oauth_flow.py +35 -10
  5. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/app/oauth/_handlers/_user_authorization.py +30 -0
  6. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/app/oauth/authorization.py +13 -4
  7. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/channel_service_adapter.py +1 -1
  8. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/connector/client/user_token_client.py +14 -3
  9. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5/microsoft_agents_hosting_core.egg-info}/PKG-INFO +2 -2
  10. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents_hosting_core.egg-info/requires.txt +1 -1
  11. microsoft_agents_hosting_core-0.10.0.dev3/VERSION.txt +0 -1
  12. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/LICENSE +0 -0
  13. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/MANIFEST.in +0 -0
  14. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/__init__.py +0 -0
  15. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/_oauth/__init__.py +0 -0
  16. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/_oauth/_flow_storage_client.py +0 -0
  17. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/activity_handler.py +0 -0
  18. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/agent.py +0 -0
  19. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/app/__init__.py +0 -0
  20. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/app/_routes/__init__.py +0 -0
  21. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/app/_routes/_route.py +0 -0
  22. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/app/_routes/_route_list.py +0 -0
  23. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/app/_routes/route_rank.py +0 -0
  24. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/app/_type_defs.py +0 -0
  25. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/app/agent_application.py +0 -0
  26. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/app/app_error.py +0 -0
  27. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/app/app_options.py +0 -0
  28. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/app/input_file.py +0 -0
  29. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/app/oauth/__init__.py +0 -0
  30. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/app/oauth/_handlers/__init__.py +0 -0
  31. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/app/oauth/_handlers/_authorization_handler.py +0 -0
  32. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/app/oauth/_handlers/agentic_user_authorization.py +0 -0
  33. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/app/oauth/_handlers/connector_user_authorization.py +0 -0
  34. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/app/oauth/_sign_in_response.py +0 -0
  35. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/app/oauth/_sign_in_state.py +0 -0
  36. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/app/oauth/auth_handler.py +0 -0
  37. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/app/oauth/telemetry/__init__.py +0 -0
  38. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/app/oauth/telemetry/constants.py +0 -0
  39. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/app/oauth/telemetry/spans.py +0 -0
  40. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/app/proactive/__init__.py +0 -0
  41. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/app/proactive/conversation.py +0 -0
  42. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/app/proactive/conversation_builder.py +0 -0
  43. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/app/proactive/conversation_reference_builder.py +0 -0
  44. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/app/proactive/create_conversation_options.py +0 -0
  45. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/app/proactive/proactive.py +0 -0
  46. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/app/proactive/proactive_options.py +0 -0
  47. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/app/query.py +0 -0
  48. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/app/state/__init__.py +0 -0
  49. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/app/state/conversation_state.py +0 -0
  50. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/app/state/state.py +0 -0
  51. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/app/state/temp_state.py +0 -0
  52. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/app/state/turn_state.py +0 -0
  53. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/app/streaming/__init__.py +0 -0
  54. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/app/streaming/citation.py +0 -0
  55. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/app/streaming/citation_util.py +0 -0
  56. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/app/streaming/streaming_response.py +0 -0
  57. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/app/telemetry/__init__.py +0 -0
  58. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/app/telemetry/constants.py +0 -0
  59. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/app/telemetry/metrics.py +0 -0
  60. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/app/telemetry/spans.py +0 -0
  61. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/app/typing_indicator.py +0 -0
  62. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/authorization/__init__.py +0 -0
  63. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/authorization/access_token_provider_base.py +0 -0
  64. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/authorization/agent_auth_configuration.py +0 -0
  65. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/authorization/anonymous_token_provider.py +0 -0
  66. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/authorization/auth_types.py +0 -0
  67. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/authorization/authentication_constants.py +0 -0
  68. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/authorization/claims_identity.py +0 -0
  69. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/authorization/connections.py +0 -0
  70. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/authorization/jwt_token_validator.py +0 -0
  71. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/authorization/telemetry/__init__.py +0 -0
  72. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/authorization/telemetry/constants.py +0 -0
  73. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/authorization/telemetry/metrics.py +0 -0
  74. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/authorization/telemetry/spans.py +0 -0
  75. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/card_factory.py +0 -0
  76. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/channel_adapter.py +0 -0
  77. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/channel_api_handler_protocol.py +0 -0
  78. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/channel_service_client_factory_base.py +0 -0
  79. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/client/__init__.py +0 -0
  80. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/client/agent_conversation_reference.py +0 -0
  81. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/client/channel_factory_protocol.py +0 -0
  82. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/client/channel_host_protocol.py +0 -0
  83. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/client/channel_info_protocol.py +0 -0
  84. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/client/channel_protocol.py +0 -0
  85. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/client/channels_configuration.py +0 -0
  86. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/client/configuration_channel_host.py +0 -0
  87. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/client/conversation_constants.py +0 -0
  88. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/client/conversation_id_factory.py +0 -0
  89. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/client/conversation_id_factory_options.py +0 -0
  90. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/client/conversation_id_factory_protocol.py +0 -0
  91. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/client/http_agent_channel.py +0 -0
  92. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/client/http_agent_channel_factory.py +0 -0
  93. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/connector/__init__.py +0 -0
  94. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/connector/agent_sign_in_base.py +0 -0
  95. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/connector/attachments_base.py +0 -0
  96. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/connector/client/__init__.py +0 -0
  97. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/connector/client/connector_client.py +0 -0
  98. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/connector/connector_client_base.py +0 -0
  99. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/connector/conversations_base.py +0 -0
  100. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/connector/get_product_info.py +0 -0
  101. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/connector/mcs/__init__.py +0 -0
  102. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/connector/mcs/mcs_connector_client.py +0 -0
  103. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/connector/teams/__init__.py +0 -0
  104. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/connector/teams/teams_connector_client.py +0 -0
  105. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/connector/telemetry/__init__.py +0 -0
  106. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/connector/telemetry/_request_span_wrapper.py +0 -0
  107. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/connector/telemetry/connector_spans.py +0 -0
  108. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/connector/telemetry/constants.py +0 -0
  109. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/connector/telemetry/metrics.py +0 -0
  110. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/connector/telemetry/user_token_client_spans.py +0 -0
  111. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/connector/user_token_base.py +0 -0
  112. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/connector/user_token_client_base.py +0 -0
  113. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/errors/__init__.py +0 -0
  114. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/errors/error_resources.py +0 -0
  115. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/http/__init__.py +0 -0
  116. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/http/_channel_service_routes.py +0 -0
  117. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/http/_http_adapter_base.py +0 -0
  118. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/http/_http_request_protocol.py +0 -0
  119. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/http/_http_response.py +0 -0
  120. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/message_factory.py +0 -0
  121. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/middleware_set.py +0 -0
  122. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/rest_channel_service_client_factory.py +0 -0
  123. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/state/__init__.py +0 -0
  124. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/state/agent_state.py +0 -0
  125. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/state/state_property_accessor.py +0 -0
  126. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/state/user_state.py +0 -0
  127. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/storage/__init__.py +0 -0
  128. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/storage/_type_aliases.py +0 -0
  129. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/storage/error_handling.py +0 -0
  130. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/storage/memory_storage.py +0 -0
  131. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/storage/storage.py +0 -0
  132. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/storage/store_item.py +0 -0
  133. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/storage/telemetry/__init__.py +0 -0
  134. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/storage/telemetry/constants.py +0 -0
  135. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/storage/telemetry/metrics.py +0 -0
  136. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/storage/telemetry/spans.py +0 -0
  137. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/storage/transcript_file_store.py +0 -0
  138. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/storage/transcript_info.py +0 -0
  139. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/storage/transcript_logger.py +0 -0
  140. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/storage/transcript_memory_store.py +0 -0
  141. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/storage/transcript_store.py +0 -0
  142. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/telemetry/__init__.py +0 -0
  143. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/telemetry/adapter/__init__.py +0 -0
  144. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/telemetry/adapter/constants.py +0 -0
  145. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/telemetry/adapter/metrics.py +0 -0
  146. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/telemetry/adapter/spans.py +0 -0
  147. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/telemetry/attributes.py +0 -0
  148. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/telemetry/core/__init__.py +0 -0
  149. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/telemetry/core/_agents_telemetry.py +0 -0
  150. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/telemetry/core/base_span_wrapper.py +0 -0
  151. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/telemetry/core/resource.py +0 -0
  152. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/telemetry/core/simple_span_wrapper.py +0 -0
  153. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/telemetry/core/type_defs.py +0 -0
  154. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/telemetry/turn_context/__init__.py +0 -0
  155. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/telemetry/turn_context/constants.py +0 -0
  156. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/telemetry/turn_context/spans.py +0 -0
  157. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/telemetry/utils.py +0 -0
  158. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents/hosting/core/turn_context.py +0 -0
  159. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents_hosting_core.egg-info/SOURCES.txt +0 -0
  160. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents_hosting_core.egg-info/dependency_links.txt +0 -0
  161. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/microsoft_agents_hosting_core.egg-info/top_level.txt +0 -0
  162. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/pyproject.toml +0 -0
  163. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/readme.md +0 -0
  164. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/setup.cfg +0 -0
  165. {microsoft_agents_hosting_core-0.10.0.dev3 → microsoft_agents_hosting_core-0.10.0.dev5}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: microsoft-agents-hosting-core
3
- Version: 0.10.0.dev3
3
+ Version: 0.10.0.dev5
4
4
  Summary: Core library for Microsoft Agents
5
5
  Author: Microsoft Corporation
6
6
  License-Expression: MIT
@@ -15,7 +15,7 @@ Classifier: Operating System :: OS Independent
15
15
  Requires-Python: >=3.10
16
16
  Description-Content-Type: text/markdown
17
17
  License-File: LICENSE
18
- Requires-Dist: microsoft-agents-activity==0.10.0.dev3
18
+ Requires-Dist: microsoft-agents-activity==0.10.0.dev5
19
19
  Requires-Dist: pyjwt>=2.10.1
20
20
  Requires-Dist: isodate>=0.6.1
21
21
  Requires-Dist: azure-core>=1.30.0
@@ -0,0 +1 @@
1
+ 0.10.0.dev5
@@ -35,6 +35,7 @@ class _FlowErrorTag(Enum):
35
35
  NONE = "none"
36
36
  MAGIC_FORMAT = "magic_format"
37
37
  MAGIC_CODE_INCORRECT = "magic_code_incorrect"
38
+ PRECONDITION_FAILED = "precondition_failed"
38
39
  OTHER = "other"
39
40
 
40
41
 
@@ -247,16 +247,32 @@ class _OAuthFlow:
247
247
 
248
248
  async def _continue_from_invoke_token_exchange(
249
249
  self, activity: Activity
250
- ) -> TokenResponse:
250
+ ) -> tuple[TokenResponse, _FlowErrorTag]:
251
251
  """Handles the continuation of the flow from an invoke activity for token exchange."""
252
252
  token_exchange_request = activity.value
253
- token_response = await self._user_token_client.user_token.exchange_token(
254
- user_id=self._user_id,
255
- connection_name=self._abs_oauth_connection_name,
256
- channel_id=self._channel_id,
257
- body=token_exchange_request,
258
- )
259
- return token_response
253
+ try:
254
+ token_response = await self._user_token_client.user_token.exchange_token(
255
+ user_id=self._user_id,
256
+ connection_name=self._abs_oauth_connection_name,
257
+ channel_id=self._channel_id,
258
+ body=token_exchange_request,
259
+ )
260
+ return token_response, _FlowErrorTag.NONE
261
+ except Exception as e:
262
+ # A 400 with 'ConsentRequired' means the user hasn't consented yet.
263
+ # Return None so the caller can send a 412 back to Teams, which will
264
+ # prompt the user for consent and retry the token exchange.
265
+ # Any other error is a critical failure and should propagate.
266
+ if getattr(e, "status", None) == 400 and "Consent Required" in getattr(
267
+ e, "message", ""
268
+ ):
269
+ logger.info(
270
+ "Token exchange requires consent for user %s, returning None to trigger consent prompt",
271
+ self._user_id,
272
+ )
273
+
274
+ return None, _FlowErrorTag.PRECONDITION_FAILED
275
+ raise
260
276
 
261
277
  async def continue_flow(self, activity: Activity) -> _FlowResponse:
262
278
  """Continues the OAuth flow based on the incoming activity.
@@ -289,7 +305,15 @@ class _OAuthFlow:
289
305
  activity.type == ActivityTypes.invoke
290
306
  and activity.name == "signin/tokenExchange"
291
307
  ):
292
- token_response = await self._continue_from_invoke_token_exchange(activity)
308
+ token_response, flow_error_tag = (
309
+ await self._continue_from_invoke_token_exchange(activity)
310
+ )
311
+ elif (
312
+ activity.type == ActivityTypes.invoke and activity.name == "signin/failure"
313
+ ):
314
+ logger.debug("Handling signin/failure invoke activity")
315
+ token_response = None
316
+ flow_error_tag = _FlowErrorTag.OTHER
293
317
  else:
294
318
  raise ValueError(f"Unknown activity type {activity.type}")
295
319
 
@@ -299,7 +323,8 @@ class _OAuthFlow:
299
323
  if flow_error_tag != _FlowErrorTag.NONE:
300
324
  logger.debug("Flow error occurred: %s", flow_error_tag)
301
325
  self._flow_state.tag = _FlowStateTag.CONTINUE
302
- self._use_attempt()
326
+ if flow_error_tag != _FlowErrorTag.PRECONDITION_FAILED:
327
+ self._use_attempt()
303
328
  else:
304
329
  self._flow_state.tag = _FlowStateTag.COMPLETE
305
330
  self._flow_state.expiration = (
@@ -9,6 +9,8 @@ import jwt
9
9
  from typing import Optional
10
10
 
11
11
  from microsoft_agents.activity import (
12
+ Activity,
13
+ ActivityTypes,
12
14
  Attachment,
13
15
  ActionTypes,
14
16
  CardAction,
@@ -16,6 +18,14 @@ from microsoft_agents.activity import (
16
18
  TokenResponse,
17
19
  )
18
20
 
21
+ from microsoft_agents.activity.invoke_response import InvokeResponse
22
+ from microsoft_agents.activity.token_exchange_invoke_request import (
23
+ TokenExchangeInvokeRequest,
24
+ )
25
+ from microsoft_agents.activity.token_exchange_invoke_response import (
26
+ TokenExchangeInvokeResponse,
27
+ )
28
+ from microsoft_agents.hosting.core._oauth._flow_state import _FlowErrorTag
19
29
  from microsoft_agents.hosting.core.card_factory import CardFactory
20
30
  from microsoft_agents.hosting.core.message_factory import MessageFactory
21
31
  from microsoft_agents.hosting.core.connector.client import UserTokenClient
@@ -201,6 +211,26 @@ class _UserAuthorization(_AuthorizationHandler):
201
211
  else:
202
212
  logger.warning("Sign-in flow failed for unknown reasons.")
203
213
  await context.send_activity("Sign-in failed. Please try again.")
214
+ elif (
215
+ flow_state.tag == _FlowStateTag.CONTINUE
216
+ and flow_response.flow_error_tag == _FlowErrorTag.PRECONDITION_FAILED
217
+ ):
218
+ token_exchange_request = TokenExchangeInvokeRequest().model_validate(
219
+ context.activity.value
220
+ )
221
+ await context.send_activity(
222
+ Activity(
223
+ type=ActivityTypes.invoke_response,
224
+ value=InvokeResponse(
225
+ status=412,
226
+ body=TokenExchangeInvokeResponse(
227
+ id=token_exchange_request.id,
228
+ connection_name=flow_state.connection,
229
+ failure_detail="The Agent is unable to exchange token. Proceed with regular login.",
230
+ ),
231
+ ).model_dump(exclude_unset=True),
232
+ )
233
+ )
204
234
 
205
235
  async def _sign_in(
206
236
  self,
@@ -8,7 +8,8 @@ import logging
8
8
  from typing import TypeVar, Optional, Callable, Awaitable, Generic, cast
9
9
  import jwt
10
10
 
11
- from microsoft_agents.activity import Activity, TokenResponse
11
+ from microsoft_agents.activity import Activity, Channels, SignInConstants, TokenResponse
12
+ from microsoft_agents.activity.activity_types import ActivityTypes
12
13
 
13
14
  from ...turn_context import TurnContext
14
15
  from ...storage import Storage
@@ -261,9 +262,17 @@ class Authorization:
261
262
  await self._delete_sign_in_state(context)
262
263
 
263
264
  elif sign_in_response.tag in [_FlowStateTag.BEGIN, _FlowStateTag.CONTINUE]:
264
- # store continuation activity and wait for next turn
265
- sign_in_state.continuation_activity = context.activity
266
- await self._save_sign_in_state(context, sign_in_state)
265
+ # Handling special case for Teams SSO, ConsentRequired
266
+ if not (
267
+ context.activity.channel_id.channel == Channels.ms_teams
268
+ and sign_in_state.continuation_activity
269
+ and context.activity.type == ActivityTypes.invoke
270
+ and context.activity.name
271
+ == SignInConstants.token_exchange_operation_name
272
+ ):
273
+ # store continuation activity and wait for next turn
274
+ sign_in_state.continuation_activity = context.activity
275
+ await self._save_sign_in_state(context, sign_in_state)
267
276
 
268
277
  return sign_in_response
269
278
 
@@ -547,7 +547,7 @@ class ChannelServiceAdapter(ChannelAdapter, ABC):
547
547
  self.INVOKE_RESPONSE_KEY
548
548
  )
549
549
  if not activity_invoke_response:
550
- return InvokeResponse(status=HTTPStatus.NOT_IMPLEMENTED)
550
+ return InvokeResponse(status=HTTPStatus.OK)
551
551
 
552
552
  return InvokeResponse.model_validate(activity_invoke_response.value)
553
553
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  import logging
7
7
  from typing import Optional
8
- from aiohttp import ClientSession
8
+ from aiohttp import ClientResponseError, ClientSession
9
9
 
10
10
  from microsoft_agents.hosting.core.connector import UserTokenClientBase
11
11
  from microsoft_agents.activity import (
@@ -297,8 +297,19 @@ class UserToken(UserTokenBase):
297
297
  span.share(http_method="POST", status_code=response.status)
298
298
 
299
299
  if response.status >= 300:
300
- logger.error("Error exchanging token: %s", response.status)
301
- response.raise_for_status()
300
+ response_text = await response.text("utf-8")
301
+ logger.error(
302
+ "Error exchanging token: %s %s",
303
+ response.status,
304
+ response_text,
305
+ )
306
+ raise ClientResponseError(
307
+ response.request_info,
308
+ response.history,
309
+ status=response.status,
310
+ message=response_text,
311
+ headers=response.headers,
312
+ )
302
313
 
303
314
  data = await response.json()
304
315
  return TokenResponse.model_validate(data)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: microsoft-agents-hosting-core
3
- Version: 0.10.0.dev3
3
+ Version: 0.10.0.dev5
4
4
  Summary: Core library for Microsoft Agents
5
5
  Author: Microsoft Corporation
6
6
  License-Expression: MIT
@@ -15,7 +15,7 @@ Classifier: Operating System :: OS Independent
15
15
  Requires-Python: >=3.10
16
16
  Description-Content-Type: text/markdown
17
17
  License-File: LICENSE
18
- Requires-Dist: microsoft-agents-activity==0.10.0.dev3
18
+ Requires-Dist: microsoft-agents-activity==0.10.0.dev5
19
19
  Requires-Dist: pyjwt>=2.10.1
20
20
  Requires-Dist: isodate>=0.6.1
21
21
  Requires-Dist: azure-core>=1.30.0
@@ -1,4 +1,4 @@
1
- microsoft-agents-activity==0.10.0.dev3
1
+ microsoft-agents-activity==0.10.0.dev5
2
2
  pyjwt>=2.10.1
3
3
  isodate>=0.6.1
4
4
  azure-core>=1.30.0
@@ -1 +0,0 @@
1
- 0.10.0.dev3