microsoft-agents-hosting-core 0.10.0.dev6__tar.gz → 1.1.0.dev8__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (169) hide show
  1. {microsoft_agents_hosting_core-0.10.0.dev6/microsoft_agents_hosting_core.egg-info → microsoft_agents_hosting_core-1.1.0.dev8}/PKG-INFO +11 -2
  2. microsoft_agents_hosting_core-1.1.0.dev8/VERSION.txt +1 -0
  3. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/activity_handler.py +23 -23
  4. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/app/__init__.py +3 -1
  5. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/app/agent_application.py +57 -49
  6. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/app/app_options.py +9 -1
  7. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/app/input_file.py +2 -2
  8. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/app/proactive/conversation.py +5 -5
  9. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/app/proactive/conversation_builder.py +5 -5
  10. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/app/proactive/conversation_reference_builder.py +7 -7
  11. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/app/proactive/proactive.py +69 -52
  12. microsoft_agents_hosting_core-1.1.0.dev8/microsoft_agents/hosting/core/app/proactive/telemetry/constants.py +9 -0
  13. microsoft_agents_hosting_core-1.1.0.dev8/microsoft_agents/hosting/core/app/proactive/telemetry/spans.py +142 -0
  14. microsoft_agents_hosting_core-1.1.0.dev8/microsoft_agents/hosting/core/app/typing_indicator.py +243 -0
  15. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/authorization/agent_auth_configuration.py +19 -0
  16. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/authorization/auth_types.py +1 -0
  17. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/connector/client/connector_client.py +34 -5
  18. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/telemetry/attributes.py +3 -0
  19. microsoft_agents_hosting_core-1.1.0.dev8/microsoft_agents/hosting/core/telemetry/turn_context/__init__.py +0 -0
  20. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8/microsoft_agents_hosting_core.egg-info}/PKG-INFO +11 -2
  21. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents_hosting_core.egg-info/SOURCES.txt +3 -0
  22. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents_hosting_core.egg-info/requires.txt +1 -1
  23. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/readme.md +9 -0
  24. microsoft_agents_hosting_core-0.10.0.dev6/VERSION.txt +0 -1
  25. microsoft_agents_hosting_core-0.10.0.dev6/microsoft_agents/hosting/core/app/typing_indicator.py +0 -81
  26. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/LICENSE +0 -0
  27. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/MANIFEST.in +0 -0
  28. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/__init__.py +0 -0
  29. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/_oauth/__init__.py +0 -0
  30. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/_oauth/_flow_state.py +0 -0
  31. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/_oauth/_flow_storage_client.py +0 -0
  32. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/_oauth/_oauth_flow.py +0 -0
  33. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/agent.py +0 -0
  34. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/app/_routes/__init__.py +0 -0
  35. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/app/_routes/_route.py +0 -0
  36. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/app/_routes/_route_list.py +0 -0
  37. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/app/_routes/route_rank.py +0 -0
  38. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/app/_type_defs.py +0 -0
  39. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/app/app_error.py +0 -0
  40. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/app/oauth/__init__.py +0 -0
  41. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/app/oauth/_handlers/__init__.py +0 -0
  42. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/app/oauth/_handlers/_authorization_handler.py +0 -0
  43. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/app/oauth/_handlers/_user_authorization.py +0 -0
  44. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/app/oauth/_handlers/agentic_user_authorization.py +0 -0
  45. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/app/oauth/_handlers/connector_user_authorization.py +0 -0
  46. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/app/oauth/_sign_in_response.py +0 -0
  47. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/app/oauth/_sign_in_state.py +0 -0
  48. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/app/oauth/auth_handler.py +0 -0
  49. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/app/oauth/authorization.py +0 -0
  50. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/app/oauth/telemetry/__init__.py +0 -0
  51. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/app/oauth/telemetry/constants.py +0 -0
  52. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/app/oauth/telemetry/spans.py +0 -0
  53. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/app/proactive/__init__.py +0 -0
  54. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/app/proactive/create_conversation_options.py +0 -0
  55. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/app/proactive/proactive_options.py +0 -0
  56. {microsoft_agents_hosting_core-0.10.0.dev6/microsoft_agents/hosting/core/app → microsoft_agents_hosting_core-1.1.0.dev8/microsoft_agents/hosting/core/app/proactive}/telemetry/__init__.py +0 -0
  57. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/app/query.py +0 -0
  58. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/app/state/__init__.py +0 -0
  59. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/app/state/conversation_state.py +0 -0
  60. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/app/state/state.py +0 -0
  61. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/app/state/temp_state.py +0 -0
  62. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/app/state/turn_state.py +0 -0
  63. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/app/streaming/__init__.py +0 -0
  64. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/app/streaming/citation.py +0 -0
  65. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/app/streaming/citation_util.py +0 -0
  66. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/app/streaming/streaming_response.py +0 -0
  67. {microsoft_agents_hosting_core-0.10.0.dev6/microsoft_agents/hosting/core/authorization → microsoft_agents_hosting_core-1.1.0.dev8/microsoft_agents/hosting/core/app}/telemetry/__init__.py +0 -0
  68. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/app/telemetry/constants.py +0 -0
  69. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/app/telemetry/metrics.py +0 -0
  70. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/app/telemetry/spans.py +0 -0
  71. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/authorization/__init__.py +0 -0
  72. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/authorization/access_token_provider_base.py +0 -0
  73. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/authorization/anonymous_token_provider.py +0 -0
  74. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/authorization/authentication_constants.py +0 -0
  75. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/authorization/claims_identity.py +0 -0
  76. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/authorization/connections.py +0 -0
  77. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/authorization/jwt_token_validator.py +0 -0
  78. {microsoft_agents_hosting_core-0.10.0.dev6/microsoft_agents/hosting/core/connector → microsoft_agents_hosting_core-1.1.0.dev8/microsoft_agents/hosting/core/authorization}/telemetry/__init__.py +0 -0
  79. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/authorization/telemetry/constants.py +0 -0
  80. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/authorization/telemetry/metrics.py +0 -0
  81. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/authorization/telemetry/spans.py +0 -0
  82. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/card_factory.py +0 -0
  83. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/channel_adapter.py +0 -0
  84. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/channel_api_handler_protocol.py +0 -0
  85. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/channel_service_adapter.py +0 -0
  86. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/channel_service_client_factory_base.py +0 -0
  87. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/client/__init__.py +0 -0
  88. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/client/agent_conversation_reference.py +0 -0
  89. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/client/channel_factory_protocol.py +0 -0
  90. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/client/channel_host_protocol.py +0 -0
  91. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/client/channel_info_protocol.py +0 -0
  92. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/client/channel_protocol.py +0 -0
  93. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/client/channels_configuration.py +0 -0
  94. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/client/configuration_channel_host.py +0 -0
  95. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/client/conversation_constants.py +0 -0
  96. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/client/conversation_id_factory.py +0 -0
  97. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/client/conversation_id_factory_options.py +0 -0
  98. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/client/conversation_id_factory_protocol.py +0 -0
  99. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/client/http_agent_channel.py +0 -0
  100. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/client/http_agent_channel_factory.py +0 -0
  101. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/connector/__init__.py +0 -0
  102. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/connector/agent_sign_in_base.py +0 -0
  103. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/connector/attachments_base.py +0 -0
  104. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/connector/client/__init__.py +0 -0
  105. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/connector/client/user_token_client.py +0 -0
  106. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/connector/connector_client_base.py +0 -0
  107. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/connector/conversations_base.py +0 -0
  108. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/connector/get_product_info.py +0 -0
  109. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/connector/mcs/__init__.py +0 -0
  110. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/connector/mcs/mcs_connector_client.py +0 -0
  111. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/connector/teams/__init__.py +0 -0
  112. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/connector/teams/teams_connector_client.py +0 -0
  113. {microsoft_agents_hosting_core-0.10.0.dev6/microsoft_agents/hosting/core/storage → microsoft_agents_hosting_core-1.1.0.dev8/microsoft_agents/hosting/core/connector}/telemetry/__init__.py +0 -0
  114. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/connector/telemetry/_request_span_wrapper.py +0 -0
  115. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/connector/telemetry/connector_spans.py +0 -0
  116. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/connector/telemetry/constants.py +0 -0
  117. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/connector/telemetry/metrics.py +0 -0
  118. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/connector/telemetry/user_token_client_spans.py +0 -0
  119. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/connector/user_token_base.py +0 -0
  120. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/connector/user_token_client_base.py +0 -0
  121. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/errors/__init__.py +0 -0
  122. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/errors/error_resources.py +0 -0
  123. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/http/__init__.py +0 -0
  124. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/http/_channel_service_routes.py +0 -0
  125. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/http/_http_adapter_base.py +0 -0
  126. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/http/_http_request_protocol.py +0 -0
  127. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/http/_http_response.py +0 -0
  128. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/message_factory.py +0 -0
  129. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/middleware_set.py +0 -0
  130. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/rest_channel_service_client_factory.py +0 -0
  131. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/state/__init__.py +0 -0
  132. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/state/agent_state.py +0 -0
  133. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/state/state_property_accessor.py +0 -0
  134. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/state/user_state.py +0 -0
  135. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/storage/__init__.py +0 -0
  136. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/storage/_type_aliases.py +0 -0
  137. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/storage/error_handling.py +0 -0
  138. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/storage/memory_storage.py +0 -0
  139. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/storage/storage.py +0 -0
  140. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/storage/store_item.py +0 -0
  141. {microsoft_agents_hosting_core-0.10.0.dev6/microsoft_agents/hosting/core/telemetry/adapter → microsoft_agents_hosting_core-1.1.0.dev8/microsoft_agents/hosting/core/storage/telemetry}/__init__.py +0 -0
  142. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/storage/telemetry/constants.py +0 -0
  143. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/storage/telemetry/metrics.py +0 -0
  144. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/storage/telemetry/spans.py +0 -0
  145. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/storage/transcript_file_store.py +0 -0
  146. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/storage/transcript_info.py +0 -0
  147. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/storage/transcript_logger.py +0 -0
  148. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/storage/transcript_memory_store.py +0 -0
  149. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/storage/transcript_store.py +0 -0
  150. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/telemetry/__init__.py +0 -0
  151. {microsoft_agents_hosting_core-0.10.0.dev6/microsoft_agents/hosting/core/telemetry/turn_context → microsoft_agents_hosting_core-1.1.0.dev8/microsoft_agents/hosting/core/telemetry/adapter}/__init__.py +0 -0
  152. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/telemetry/adapter/constants.py +0 -0
  153. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/telemetry/adapter/metrics.py +0 -0
  154. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/telemetry/adapter/spans.py +0 -0
  155. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/telemetry/core/__init__.py +0 -0
  156. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/telemetry/core/_agents_telemetry.py +0 -0
  157. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/telemetry/core/base_span_wrapper.py +0 -0
  158. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/telemetry/core/resource.py +0 -0
  159. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/telemetry/core/simple_span_wrapper.py +0 -0
  160. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/telemetry/core/type_defs.py +0 -0
  161. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/telemetry/turn_context/constants.py +0 -0
  162. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/telemetry/turn_context/spans.py +0 -0
  163. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/telemetry/utils.py +0 -0
  164. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents/hosting/core/turn_context.py +0 -0
  165. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents_hosting_core.egg-info/dependency_links.txt +0 -0
  166. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/microsoft_agents_hosting_core.egg-info/top_level.txt +0 -0
  167. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/pyproject.toml +0 -0
  168. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/setup.cfg +0 -0
  169. {microsoft_agents_hosting_core-0.10.0.dev6 → microsoft_agents_hosting_core-1.1.0.dev8}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: microsoft-agents-hosting-core
3
- Version: 0.10.0.dev6
3
+ Version: 1.1.0.dev8
4
4
  Summary: Core library for Microsoft Agents
5
5
  Author: Microsoft Corporation
6
6
  License-Expression: MIT
@@ -15,7 +15,7 @@ Classifier: Operating System :: OS Independent
15
15
  Requires-Python: >=3.10
16
16
  Description-Content-Type: text/markdown
17
17
  License-File: LICENSE
18
- Requires-Dist: microsoft-agents-activity==0.10.0.dev6
18
+ Requires-Dist: microsoft-agents-activity==1.1.0.dev8
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
@@ -43,6 +43,15 @@ This library is part of the **Microsoft 365 Agents SDK for Python** - a comprehe
43
43
  <th style="width:20%">Date</th>
44
44
  <th style="width:60%">Release Notes</th>
45
45
  </tr>
46
+ <tr>
47
+ <td>1.0.0</td>
48
+ <td>2026-05-22</td>
49
+ <td>
50
+ <a href="https://github.com/microsoft/Agents-for-python/blob/main/changelog.md#microsoft-365-agents-sdk-for-python---release-notes-v100">
51
+ 1.0.0 Release Notes
52
+ </a>
53
+ </td>
54
+ </tr>
46
55
  <tr>
47
56
  <td>0.9.0</td>
48
57
  <td>2026-04-15</td>
@@ -0,0 +1 @@
1
+ 1.1.0.dev8
@@ -49,8 +49,8 @@ class ActivityHandler(Agent):
49
49
  process, which allows a derived class to provide type-specific logic in a controlled way.
50
50
  In a derived class, override this method to add logic that applies to all activity types.
51
51
  Also
52
- - Add logic to apply before the type-specific logic and before calling :meth:`on_turn()`.
53
- - Add logic to apply after the type-specific logic after calling :meth:`on_turn()`.
52
+ - Add logic to apply before the type-specific logic and before calling :meth:`microsoft_agents.hosting.core.ActivityHandler.on_turn`.
53
+ - Add logic to apply after the type-specific logic after calling :meth:`microsoft_agents.hosting.core.ActivityHandler.on_turn`.
54
54
  """
55
55
  if turn_context is None:
56
56
  raise TypeError("ActivityHandler.on_turn(): turn_context cannot be None.")
@@ -145,7 +145,7 @@ class ActivityHandler(Agent):
145
145
  async def on_conversation_update_activity(self, turn_context: TurnContextProtocol):
146
146
  """
147
147
  Invoked when a conversation update activity is received from the channel when the base behavior of
148
- :meth:`on_turn()` is used.
148
+ :meth:`microsoft_agents.hosting.core.ActivityHandler.on_turn` is used.
149
149
 
150
150
  :param turn_context: The context object for this turn
151
151
  :type turn_context: :class:`microsoft_agents.activity.TurnContextProtocol`
@@ -153,13 +153,13 @@ class ActivityHandler(Agent):
153
153
  :rtype: Awaitable[None]
154
154
 
155
155
  .. note::
156
- When the :meth:`on_turn()` method receives a conversation update activity, it calls this
156
+ When the :meth:`microsoft_agents.hosting.core.ActivityHandler.on_turn` method receives a conversation update activity, it calls this
157
157
  method.
158
158
  Also
159
159
  - If the conversation update activity indicates that members other than the agent joined the conversation,
160
- it calls the :meth:`on_members_added_activity()` method.
160
+ it calls the :meth:`microsoft_agents.hosting.core.ActivityHandler.on_members_added_activity` method.
161
161
  - If the conversation update activity indicates that members other than the agent left the conversation,
162
- it calls the :meth:`on_members_removed_activity()` method.
162
+ it calls the :meth:`microsoft_agents.hosting.core.ActivityHandler.on_members_removed_activity` method.
163
163
  - In a derived class, override this method to add logic that applies to all conversation update activities.
164
164
  Add logic to apply before the member added or removed logic before the call to this base class method.
165
165
  """
@@ -189,7 +189,7 @@ class ActivityHandler(Agent):
189
189
  :rtype: Awaitable[None]
190
190
 
191
191
  .. note::
192
- When the :meth:`on_conversation_update_activity()` method receives a conversation
192
+ When the :meth:`microsoft_agents.hosting.core.ActivityHandler.on_conversation_update_activity` method receives a conversation
193
193
  update activity that indicates
194
194
  one or more users other than the agent are joining the conversation, it calls this method.
195
195
  """
@@ -211,7 +211,7 @@ class ActivityHandler(Agent):
211
211
  :rtype: Awaitable[None]
212
212
 
213
213
  .. note::
214
- When the :meth:`on_conversation_update_activity()` method receives a conversation
214
+ When the :meth:`microsoft_agents.hosting.core.ActivityHandler.on_conversation_update_activity` method receives a conversation
215
215
  update activity that indicates one or more users other than the agent are leaving the conversation,
216
216
  it calls this method.
217
217
  """
@@ -221,7 +221,7 @@ class ActivityHandler(Agent):
221
221
  async def on_message_reaction_activity(self, turn_context: TurnContextProtocol):
222
222
  """
223
223
  Invoked when an event activity is received from the connector when the base behavior of
224
- :meth:`on_turn()` is used.
224
+ :meth:`microsoft_agents.hosting.core.ActivityHandler.on_turn` is used.
225
225
 
226
226
  :param turn_context: The context object for this turn
227
227
  :type turn_context: :class:`microsoft_agents.activity.TurnContextProtocol`
@@ -236,13 +236,13 @@ class ActivityHandler(Agent):
236
236
  Message reactions are only supported by a few channels. The activity that the message reaction corresponds
237
237
  to is indicated in the reply to Id property. The value of this property is the activity id of a previously
238
238
  sent activity given back to the agent as the response from a send call.
239
- When the :meth:`on_turn()` method receives a message reaction activity, it calls this
239
+ When the :meth:`microsoft_agents.hosting.core.ActivityHandler.on_turn` method receives a message reaction activity, it calls this
240
240
  method.
241
241
 
242
242
  - If the message reaction indicates that reactions were added to a message, it calls
243
- :meth:`on_reactions_added()`.
243
+ :meth:`microsoft_agents.hosting.core.ActivityHandler.on_reactions_added`.
244
244
  - If the message reaction indicates that reactions were removed from a message, it calls
245
- :meth:`on_reactions_removed()`.
245
+ :meth:`microsoft_agents.hosting.core.ActivityHandler.on_reactions_removed`.
246
246
 
247
247
  In a derived class, override this method to add logic that applies to all message reaction activities.
248
248
  Add logic to apply before the reactions added or removed logic before the call to the this base class
@@ -314,7 +314,7 @@ class ActivityHandler(Agent):
314
314
  async def on_event_activity(self, turn_context: TurnContextProtocol):
315
315
  """
316
316
  Invoked when an event activity is received from the connector when the base behavior of
317
- :meth:`on_turn()` is used.
317
+ :meth:`microsoft_agents.hosting.core.ActivityHandler.on_turn` is used.
318
318
 
319
319
  :param turn_context: The context object for this turn
320
320
  :type turn_context: :class:`microsoft_agents.activity.TurnContextProtocol`
@@ -322,9 +322,9 @@ class ActivityHandler(Agent):
322
322
  :rtype: Awaitable[None]
323
323
 
324
324
  .. note::
325
- When the :meth:`on_turn()` method receives an event activity, it calls this method.
326
- If the activity name is `tokens/response`, it calls :meth:`on_token_response_event()`;
327
- otherwise, it calls :meth:`on_event()`.
325
+ When the :meth:`microsoft_agents.hosting.core.ActivityHandler.on_turn` method receives an event activity, it calls this method.
326
+ If the activity name is `tokens/response`, it calls :meth:`microsoft_agents.hosting.core.ActivityHandler.on_token_response_event`;
327
+ otherwise, it calls :meth:`microsoft_agents.hosting.core.ActivityHandler.on_event`.
328
328
 
329
329
  In a derived class, override this method to add logic that applies to all event activities.
330
330
  Add logic to apply before the specific event-handling logic before the call to this base class method.
@@ -344,7 +344,7 @@ class ActivityHandler(Agent):
344
344
  ):
345
345
  """
346
346
  Invoked when a `tokens/response` event is received when the base behavior of
347
- :meth:`on_event_activity()` is used.
347
+ :meth:`microsoft_agents.hosting.core.ActivityHandler.on_event_activity` is used.
348
348
  If using an `oauth_prompt`, override this method to forward this activity to the current dialog.
349
349
 
350
350
  :param turn_context: The context object for this turn
@@ -353,7 +353,7 @@ class ActivityHandler(Agent):
353
353
  :rtype: Awaitable[None]
354
354
 
355
355
  .. note::
356
- When the :meth:`on_event()` method receives an event with an activity name of
356
+ When the :meth:`microsoft_agents.hosting.core.ActivityHandler.on_event` method receives an event with an activity name of
357
357
  `tokens/response`, it calls this method. If your agent uses an `oauth_prompt`, forward the incoming
358
358
  activity to the current dialog.
359
359
  """
@@ -364,7 +364,7 @@ class ActivityHandler(Agent):
364
364
  ):
365
365
  """
366
366
  Invoked when an event other than `tokens/response` is received when the base behavior of
367
- :meth:`on_event_activity()` is used.
367
+ :meth:`microsoft_agents.hosting.core.ActivityHandler.on_event_activity` is used.
368
368
 
369
369
  :param turn_context: The context object for this turn
370
370
  :type turn_context: :class:`microsoft_agents.activity.TurnContextProtocol`
@@ -372,8 +372,8 @@ class ActivityHandler(Agent):
372
372
  :rtype: Awaitable[None]
373
373
 
374
374
  .. note::
375
- When the :meth:`on_event_activity()` is used method receives an event with an
376
- activity name other than `tokens/response`, it calls this method.
375
+ When the :meth:`microsoft_agents.hosting.core.ActivityHandler.on_event_activity` method is used, it receives an event with an
376
+ activity name other than `tokens/response` and calls this method.
377
377
  This method could optionally be overridden if the agent is meant to handle miscellaneous events.
378
378
  """
379
379
  return
@@ -456,7 +456,7 @@ class ActivityHandler(Agent):
456
456
  ):
457
457
  """
458
458
  Invoked when an activity other than a message, conversation update, or event is received when the base
459
- behavior of :meth:`on_turn()` is used.
459
+ behavior of :meth:`microsoft_agents.hosting.core.ActivityHandler.on_turn` is used.
460
460
  If overridden, this method could potentially respond to any of the other activity types.
461
461
 
462
462
  :param turn_context: The context object for this turn
@@ -465,7 +465,7 @@ class ActivityHandler(Agent):
465
465
  :rtype: Awaitable[None]
466
466
 
467
467
  .. note::
468
- When the :meth:`on_turn()` method receives an activity that is not a message,
468
+ When the :meth:`microsoft_agents.hosting.core.ActivityHandler.on_turn` method receives an activity that is not a message,
469
469
  conversation update, message reaction, or event activity, it calls this method.
470
470
  """
471
471
  return
@@ -11,7 +11,7 @@ from .app_options import ApplicationOptions
11
11
  from .input_file import InputFile, InputFileDownloader
12
12
  from .query import Query
13
13
  from ._routes import _RouteList, _Route, RouteRank
14
- from .typing_indicator import TypingIndicator
14
+ from .typing_indicator import TypingChannelStrategy, TypingIndicator, TypingOptions
15
15
  from ._type_defs import RouteHandler, RouteSelector, StateT
16
16
 
17
17
  # Auth
@@ -46,7 +46,9 @@ __all__ = [
46
46
  "Query",
47
47
  "Route",
48
48
  "RouteHandler",
49
+ "TypingChannelStrategy",
49
50
  "TypingIndicator",
51
+ "TypingOptions",
50
52
  "StatePropertyAccessor",
51
53
  "ConversationState",
52
54
  "state",
@@ -5,6 +5,7 @@ Licensed under the MIT License.
5
5
 
6
6
  from __future__ import annotations
7
7
  import logging
8
+ from contextlib import nullcontext
8
9
  from copy import copy
9
10
  from functools import partial
10
11
 
@@ -308,7 +309,7 @@ class AgentApplication(Agent, Generic[StateT]):
308
309
  :type activity_type: Union[str, microsoft_agents.activity.ActivityTypes, list[Union[str, microsoft_agents.activity.ActivityTypes]]]
309
310
  :param auth_handlers: Optional list of authorization handler IDs for the route.
310
311
  :type auth_handlers: Optional[list[str]]
311
- :param kwargs: Additional route configuration passed to :meth:`add_route`.
312
+ :param kwargs: Additional route configuration passed to :meth:`microsoft_agents.hosting.core.AgentApplication.add_route`.
312
313
  """
313
314
 
314
315
  def __selector(context: TurnContext):
@@ -345,7 +346,7 @@ class AgentApplication(Agent, Generic[StateT]):
345
346
  :type select: Union[str, Pattern[str], list[Union[str, Pattern[str]]]]
346
347
  :param auth_handlers: Optional list of authorization handler IDs for the route.
347
348
  :type auth_handlers: Optional[list[str]]
348
- :param kwargs: Additional route configuration passed to :meth:`add_route`.
349
+ :param kwargs: Additional route configuration passed to :meth:`microsoft_agents.hosting.core.AgentApplication.add_route`.
349
350
  """
350
351
 
351
352
  def __selector(context: TurnContext):
@@ -390,7 +391,7 @@ class AgentApplication(Agent, Generic[StateT]):
390
391
  :type type: microsoft_agents.activity.ConversationUpdateTypes
391
392
  :param auth_handlers: Optional list of authorization handler IDs for the route.
392
393
  :type auth_handlers: Optional[list[str]]
393
- :param kwargs: Additional route configuration passed to :meth:`add_route`.
394
+ :param kwargs: Additional route configuration passed to :meth:`microsoft_agents.hosting.core.AgentApplication.add_route`.
394
395
  """
395
396
 
396
397
  def __selector(context: TurnContext):
@@ -444,7 +445,7 @@ class AgentApplication(Agent, Generic[StateT]):
444
445
  :type type: microsoft_agents.activity.MessageReactionTypes
445
446
  :param auth_handlers: Optional list of authorization handler IDs for the route.
446
447
  :type auth_handlers: Optional[list[str]]
447
- :param kwargs: Additional route configuration passed to :meth:`add_route`.
448
+ :param kwargs: Additional route configuration passed to :meth:`microsoft_agents.hosting.core.AgentApplication.add_route`.
448
449
  """
449
450
 
450
451
  def __selector(context: TurnContext):
@@ -494,7 +495,7 @@ class AgentApplication(Agent, Generic[StateT]):
494
495
  :type type: microsoft_agents.activity.MessageUpdateTypes
495
496
  :param auth_handlers: Optional list of authorization handler IDs for the route.
496
497
  :type auth_handlers: Optional[list[str]]
497
- :param kwargs: Additional route configuration passed to :meth:`add_route`.
498
+ :param kwargs: Additional route configuration passed to :meth:`microsoft_agents.hosting.core.AgentApplication.add_route`.
498
499
  """
499
500
 
500
501
  def __selector(context: TurnContext):
@@ -553,7 +554,7 @@ class AgentApplication(Agent, Generic[StateT]):
553
554
 
554
555
  :param auth_handlers: Optional list of authorization handler IDs for the route.
555
556
  :type auth_handlers: Optional[list[str]]
556
- :param kwargs: Additional route configuration passed to :meth:`add_route`.
557
+ :param kwargs: Additional route configuration passed to :meth:`microsoft_agents.hosting.core.AgentApplication.add_route`.
557
558
  """
558
559
 
559
560
  def __selector(context: TurnContext) -> bool:
@@ -697,62 +698,69 @@ class AgentApplication(Agent, Generic[StateT]):
697
698
  await self._start_long_running_call(context, self._on_turn)
698
699
 
699
700
  async def _on_turn(self, context: TurnContext):
700
- typing = None
701
701
  try:
702
702
  with spans.AppOnTurn(context) as on_turn_span:
703
- if context.activity.type != ActivityTypes.typing:
704
- if self._options.start_typing_timer:
705
- typing = TypingIndicator(context)
706
- typing.start()
707
-
708
- self._remove_mentions(context)
709
-
710
- logger.debug("Initializing turn state")
711
- turn_state = await self._initialize_state(context)
712
- if (
713
- context.activity.type == ActivityTypes.message
714
- or context.activity.type == ActivityTypes.invoke
715
- ):
703
+ use_typing = (
704
+ self._options.start_typing_timer
705
+ and context.activity.type != ActivityTypes.typing
706
+ )
707
+ typing_context = (
708
+ TypingIndicator(
709
+ context,
710
+ typing_options=self._options.typing,
711
+ )
712
+ if use_typing
713
+ else nullcontext()
714
+ )
716
715
 
717
- (
718
- auth_intercepts,
719
- continuation_activity,
720
- ) = await self._auth._on_turn_auth_intercept(context, turn_state)
721
- if auth_intercepts:
722
- if continuation_activity:
723
- new_context = copy(context)
724
- new_context.activity = continuation_activity
725
- logger.info(
726
- "Resending continuation activity %s",
727
- continuation_activity.text,
728
- )
729
- await self.on_turn(new_context)
730
- await turn_state.save(context)
716
+ async with typing_context:
717
+ self._remove_mentions(context)
718
+
719
+ logger.debug("Initializing turn state")
720
+ turn_state = await self._initialize_state(context)
721
+ if context.activity.type in [
722
+ ActivityTypes.message,
723
+ ActivityTypes.invoke,
724
+ ]:
725
+
726
+ (
727
+ auth_intercepts,
728
+ continuation_activity,
729
+ ) = await self._auth._on_turn_auth_intercept(
730
+ context, turn_state
731
+ )
732
+ if auth_intercepts:
733
+ if continuation_activity:
734
+ new_context = copy(context)
735
+ new_context.activity = continuation_activity
736
+ logger.info(
737
+ "Resending continuation activity %s",
738
+ continuation_activity.text,
739
+ )
740
+ await self.on_turn(new_context)
741
+ await turn_state.save(context)
742
+ return
743
+
744
+ logger.debug("Running before turn middleware")
745
+ if not await self._run_before_turn_middleware(context, turn_state):
731
746
  return
732
747
 
733
- logger.debug("Running before turn middleware")
734
- if not await self._run_before_turn_middleware(context, turn_state):
735
- return
748
+ logger.debug("Running file downloads")
749
+ await self._handle_file_downloads(context, turn_state)
736
750
 
737
- logger.debug("Running file downloads")
738
- await self._handle_file_downloads(context, turn_state)
751
+ logger.debug("Running activity handlers")
752
+ await self._on_activity(context, turn_state, on_turn_span)
739
753
 
740
- logger.debug("Running activity handlers")
741
- await self._on_activity(context, turn_state, on_turn_span)
742
-
743
- logger.debug("Running after turn middleware")
744
- if await self._run_after_turn_middleware(context, turn_state):
745
- await turn_state.save(context)
746
- return
754
+ logger.debug("Running after turn middleware")
755
+ if await self._run_after_turn_middleware(context, turn_state):
756
+ await turn_state.save(context)
757
+ return
747
758
  except ApplicationError as err:
748
759
  logger.error(
749
760
  f"An application error occurred in the AgentApplication: {err}",
750
761
  exc_info=True,
751
762
  )
752
763
  await self._on_error(context, err)
753
- finally:
754
- if typing:
755
- typing.stop()
756
764
 
757
765
  def _remove_mentions(self, context: TurnContext):
758
766
  if (
@@ -13,6 +13,7 @@ from microsoft_agents.hosting.core.app.oauth import AuthHandler
13
13
  from microsoft_agents.hosting.core.storage import Storage
14
14
 
15
15
  # from .auth import AuthOptions
16
+ from .typing_indicator import TypingOptions
16
17
  from .input_file import InputFileDownloader
17
18
  from ..channel_service_adapter import ChannelServiceAdapter
18
19
 
@@ -62,6 +63,13 @@ class ApplicationOptions:
62
63
  the request. Defaults to true.
63
64
  """
64
65
 
66
+ typing: Optional[TypingOptions] = None
67
+ """
68
+ Optional. Typing indicator timing options. Controls initial delay, interval,
69
+ and per-channel strategies. If not provided, defaults are used when
70
+ ``start_typing_timer`` is true.
71
+ """
72
+
65
73
  long_running_messages: bool = False
66
74
  """
67
75
  Optional. If true, the bot supports long running messages that can take longer then the 10 - 15
@@ -94,6 +102,6 @@ class ApplicationOptions:
94
102
  proactive: Optional[ProactiveOptions] = None
95
103
  """
96
104
  Optional. Options for the proactive messaging subsystem.
97
- When set, :attr:`AgentApplication.proactive` is available for storing
105
+ When set, :attr:`microsoft_agents.hosting.core.AgentApplication.proactive` is available for storing
98
106
  conversations and initiating proactive turns.
99
107
  """
@@ -34,7 +34,7 @@ class InputFileDownloader(ABC):
34
34
  Abstract base class for a plugin responsible for downloading files provided by the user.
35
35
 
36
36
  Implementations should download any files referenced by the incoming activity and return a
37
- list of :class:`InputFile` instances representing the downloaded content.
37
+ list of :class:`microsoft_agents.hosting.core.app.input_file.InputFile` instances representing the downloaded content.
38
38
  """
39
39
 
40
40
  @abstractmethod
@@ -44,6 +44,6 @@ class InputFileDownloader(ABC):
44
44
 
45
45
  :param context: The turn context for the current request.
46
46
  :type context: :class:`microsoft_agents.hosting.core.turn_context.TurnContext`
47
- :return: A list of downloaded :class:`InputFile` objects.
47
+ :return: A list of downloaded :class:`microsoft_agents.hosting.core.app.input_file.InputFile` objects.
48
48
  :rtype: list[:class:`microsoft_agents.hosting.core.app.input_file.InputFile`]
49
49
  """
@@ -27,7 +27,7 @@ class Conversation(StoreItem):
27
27
 
28
28
  Instances are typically created via
29
29
  :meth:`~microsoft_agents.hosting.core.app.proactive.conversation_builder.ConversationBuilder`
30
- or via :meth:`from_turn_context`.
30
+ or via :meth:`microsoft_agents.hosting.core.app.proactive.Conversation.from_turn_context`.
31
31
 
32
32
  :param claims: Filtered JWT claims (``aud``, ``azp``, ``appid``, ``idtyp``,
33
33
  ``ver``, ``iss``, ``tid``). May be a raw ``dict`` or a
@@ -57,13 +57,13 @@ class Conversation(StoreItem):
57
57
  @classmethod
58
58
  def from_turn_context(cls, context: "TurnContext") -> "Conversation":
59
59
  """
60
- Create a :class:`Conversation` from the current turn context.
60
+ Create a :class:`microsoft_agents.hosting.core.app.proactive.Conversation` from the current turn context.
61
61
 
62
62
  :param context: The active turn context.
63
63
  :type context: :class:`~microsoft_agents.hosting.core.turn_context.TurnContext`
64
- :return: A new :class:`Conversation` capturing the current turn's identity
64
+ :return: A new :class:`microsoft_agents.hosting.core.app.proactive.Conversation` capturing the current turn's identity
65
65
  and conversation reference.
66
- :rtype: :class:`Conversation`
66
+ :rtype: :class:`microsoft_agents.hosting.core.app.proactive.Conversation`
67
67
  """
68
68
  from microsoft_agents.hosting.core.channel_adapter import ChannelAdapter
69
69
 
@@ -96,7 +96,7 @@ class Conversation(StoreItem):
96
96
  Reconstruct a :class:`~microsoft_agents.hosting.core.authorization.ClaimsIdentity`
97
97
  from a previously persisted claims dict.
98
98
 
99
- :param claims: Filtered claims dictionary (as produced by :meth:`claims_from_identity`).
99
+ :param claims: Filtered claims dictionary (as produced by :meth:`microsoft_agents.hosting.core.app.proactive.Conversation.claims_from_identity`).
100
100
  :type claims: dict[str, str]
101
101
  :return: Reconstituted claims identity.
102
102
  :rtype: :class:`~microsoft_agents.hosting.core.authorization.ClaimsIdentity`
@@ -84,7 +84,7 @@ class ConversationBuilder:
84
84
  when the requestor differs from the audience).
85
85
  :type requestor_id: Optional[str]
86
86
  :return: A builder pre-populated with the supplied claims.
87
- :rtype: :class:`ConversationBuilder`
87
+ :rtype: :class:`microsoft_agents.hosting.core.app.proactive.ConversationBuilder`
88
88
  """
89
89
  builder = cls()
90
90
  builder._channel_id = channel_id
@@ -119,7 +119,7 @@ class ConversationBuilder:
119
119
  :param service_url: Override the service URL.
120
120
  :type service_url: Optional[str]
121
121
  :return: A builder pre-populated with the identity's claims.
122
- :rtype: :class:`ConversationBuilder`
122
+ :rtype: :class:`microsoft_agents.hosting.core.app.proactive.ConversationBuilder`
123
123
  """
124
124
  builder = cls()
125
125
  builder._channel_id = channel_id
@@ -152,7 +152,7 @@ class ConversationBuilder:
152
152
  :param user_name: Optional display name.
153
153
  :type user_name: Optional[str]
154
154
  :return: ``self`` for chaining.
155
- :rtype: :class:`ConversationBuilder`
155
+ :rtype: :class:`microsoft_agents.hosting.core.app.proactive.ConversationBuilder`
156
156
  """
157
157
  self._user_id = user_id
158
158
  self._user_name = user_name
@@ -174,7 +174,7 @@ class ConversationBuilder:
174
174
  :param tenant_id: Optional tenant ID.
175
175
  :type tenant_id: Optional[str]
176
176
  :return: ``self`` for chaining.
177
- :rtype: :class:`ConversationBuilder`
177
+ :rtype: :class:`microsoft_agents.hosting.core.app.proactive.ConversationBuilder`
178
178
  """
179
179
  self._conversation_id = conversation_id
180
180
  self._conversation_name = conversation_name
@@ -188,7 +188,7 @@ class ConversationBuilder:
188
188
  :param activity_id: The activity ID.
189
189
  :type activity_id: str
190
190
  :return: ``self`` for chaining.
191
- :rtype: :class:`ConversationBuilder`
191
+ :rtype: :class:`microsoft_agents.hosting.core.app.proactive.ConversationBuilder`
192
192
  """
193
193
  self._activity_id = activity_id
194
194
  return self
@@ -74,7 +74,7 @@ class ConversationReferenceBuilder:
74
74
  :param conversation_id: The existing conversation ID.
75
75
  :type conversation_id: str
76
76
  :return: A builder pre-populated with the channel and conversation.
77
- :rtype: :class:`ConversationReferenceBuilder`
77
+ :rtype: :class:`microsoft_agents.hosting.core.app.proactive.ConversationReferenceBuilder`
78
78
  """
79
79
  builder = cls()
80
80
  builder._channel_id = channel_id
@@ -103,7 +103,7 @@ class ConversationReferenceBuilder:
103
103
  URL for the channel is used.
104
104
  :type service_url: Optional[str]
105
105
  :return: A builder pre-populated for the agent.
106
- :rtype: :class:`ConversationReferenceBuilder`
106
+ :rtype: :class:`microsoft_agents.hosting.core.app.proactive.ConversationReferenceBuilder`
107
107
  """
108
108
  builder = cls()
109
109
  builder._channel_id = channel_id
@@ -134,7 +134,7 @@ class ConversationReferenceBuilder:
134
134
  :param agent_name: Optional display name.
135
135
  :type agent_name: Optional[str]
136
136
  :return: ``self`` for chaining.
137
- :rtype: :class:`ConversationReferenceBuilder`
137
+ :rtype: :class:`microsoft_agents.hosting.core.app.proactive.ConversationReferenceBuilder`
138
138
  """
139
139
  self._agent_id = agent_id
140
140
  self._agent_name = agent_name
@@ -153,7 +153,7 @@ class ConversationReferenceBuilder:
153
153
  :param user_name: Optional display name.
154
154
  :type user_name: Optional[str]
155
155
  :return: ``self`` for chaining.
156
- :rtype: :class:`ConversationReferenceBuilder`
156
+ :rtype: :class:`microsoft_agents.hosting.core.app.proactive.ConversationReferenceBuilder`
157
157
  """
158
158
  self._user_id = user_id
159
159
  self._user_name = user_name
@@ -166,7 +166,7 @@ class ConversationReferenceBuilder:
166
166
  :param service_url: The service URL to use.
167
167
  :type service_url: str
168
168
  :return: ``self`` for chaining.
169
- :rtype: :class:`ConversationReferenceBuilder`
169
+ :rtype: :class:`microsoft_agents.hosting.core.app.proactive.ConversationReferenceBuilder`
170
170
  """
171
171
  self._service_url = service_url
172
172
  return self
@@ -178,7 +178,7 @@ class ConversationReferenceBuilder:
178
178
  :param activity_id: The activity ID.
179
179
  :type activity_id: str
180
180
  :return: ``self`` for chaining.
181
- :rtype: :class:`ConversationReferenceBuilder`
181
+ :rtype: :class:`microsoft_agents.hosting.core.app.proactive.ConversationReferenceBuilder`
182
182
  """
183
183
  self._activity_id = activity_id
184
184
  return self
@@ -190,7 +190,7 @@ class ConversationReferenceBuilder:
190
190
  :param locale: BCP-47 locale string (e.g. ``"en-US"``).
191
191
  :type locale: str
192
192
  :return: ``self`` for chaining.
193
- :rtype: :class:`ConversationReferenceBuilder`
193
+ :rtype: :class:`microsoft_agents.hosting.core.app.proactive.ConversationReferenceBuilder`
194
194
  """
195
195
  self._locale = locale
196
196
  return self