microsoft-agents-hosting-core 0.4.0.dev1__tar.gz → 0.4.0.dev4__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.
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/PKG-INFO +2 -2
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/app/agent_application.py +3 -3
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/app/state/conversation_state.py +3 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/app/state/temp_state.py +5 -1
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/app/state/turn_state.py +9 -4
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/state/agent_state.py +1 -1
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents_hosting_core.egg-info/PKG-INFO +2 -2
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents_hosting_core.egg-info/SOURCES.txt +1 -1
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents_hosting_core.egg-info/requires.txt +1 -1
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/tests/test_agent_state.py +1 -1
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/tests/test_authorization.py +3 -3
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/tests/test_flow_storage_client.py +1 -1
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/tests/test_memory_storage.py +1 -1
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/tests/test_oauth_flow.py +1 -1
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/tests/test_utils.py +1 -1
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/__init__.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/activity_handler.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/agent.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/app/__init__.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/app/app_error.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/app/app_options.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/app/input_file.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/app/oauth/__init__.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/app/oauth/auth_handler.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/app/oauth/authorization.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/app/query.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/app/route.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/app/state/__init__.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/app/state/state.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/app/typing_indicator.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/authorization/__init__.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/authorization/access_token_provider_base.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/authorization/agent_auth_configuration.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/authorization/anonymous_token_provider.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/authorization/auth_types.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/authorization/authentication_constants.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/authorization/claims_identity.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/authorization/connections.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/authorization/jwt_token_validator.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/card_factory.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/channel_adapter.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/channel_api_handler_protocol.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/channel_service_adapter.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/channel_service_client_factory_base.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/client/__init__.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/client/agent_conversation_reference.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/client/channel_factory_protocol.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/client/channel_host_protocol.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/client/channel_info_protocol.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/client/channel_protocol.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/client/channels_configuration.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/client/configuration_channel_host.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/client/conversation_constants.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/client/conversation_id_factory.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/client/conversation_id_factory_options.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/client/conversation_id_factory_protocol.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/client/http_agent_channel.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/client/http_agent_channel_factory.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/connector/__init__.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/connector/agent_sign_in_base.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/connector/attachments_base.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/connector/client/__init__.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/connector/client/connector_client.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/connector/client/user_token_client.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/connector/connector_client_base.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/connector/conversations_base.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/connector/get_product_info.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/connector/teams/__init__.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/connector/teams/teams_connector_client.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/connector/user_token_base.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/connector/user_token_client_base.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/message_factory.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/middleware_set.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/oauth/__init__.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/oauth/flow_state.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/oauth/flow_storage_client.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/oauth/oauth_flow.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/rest_channel_service_client_factory.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/state/__init__.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/state/state_property_accessor.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/state/user_state.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/storage/__init__.py +0 -0
- /microsoft_agents_hosting_core-0.4.0.dev1/microsoft_agents/hosting/core/storage/storage_test_utils.py → /microsoft_agents_hosting_core-0.4.0.dev4/microsoft_agents/hosting/core/storage/_storage_test_utils.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/storage/_type_aliases.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/storage/error_handling.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/storage/memory_storage.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/storage/storage.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/storage/store_item.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents/hosting/core/turn_context.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents_hosting_core.egg-info/dependency_links.txt +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/microsoft_agents_hosting_core.egg-info/top_level.txt +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/pyproject.toml +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/setup.cfg +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/setup.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/tests/test_activity_handler.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/tests/test_auth_configuration.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/tests/test_error_handling.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/tests/test_flow_state.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/tests/test_state.py +0 -0
- {microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/tests/test_turn_context.py +0 -0
{microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: microsoft-agents-hosting-core
|
|
3
|
-
Version: 0.4.0.
|
|
3
|
+
Version: 0.4.0.dev4
|
|
4
4
|
Summary: Core library for Microsoft Agents
|
|
5
5
|
Author: Microsoft Corporation
|
|
6
6
|
Project-URL: Homepage, https://github.com/microsoft/Agents
|
|
@@ -8,7 +8,7 @@ Classifier: Programming Language :: Python :: 3
|
|
|
8
8
|
Classifier: License :: OSI Approved :: MIT License
|
|
9
9
|
Classifier: Operating System :: OS Independent
|
|
10
10
|
Requires-Python: >=3.9
|
|
11
|
-
Requires-Dist: microsoft-agents-activity==0.4.0.
|
|
11
|
+
Requires-Dist: microsoft-agents-activity==0.4.0.dev4
|
|
12
12
|
Requires-Dist: pyjwt>=2.10.1
|
|
13
13
|
Requires-Dist: isodate>=0.6.1
|
|
14
14
|
Requires-Dist: azure-core>=1.30.0
|
|
@@ -730,7 +730,7 @@ class AgentApplication(Agent, Generic[StateT]):
|
|
|
730
730
|
await self._on_activity(context, turn_state)
|
|
731
731
|
|
|
732
732
|
logger.debug("Running after turn middleware")
|
|
733
|
-
if
|
|
733
|
+
if await self._run_after_turn_middleware(context, turn_state):
|
|
734
734
|
await turn_state.save(context)
|
|
735
735
|
return
|
|
736
736
|
except ApplicationError as err:
|
|
@@ -798,7 +798,7 @@ class AgentApplication(Agent, Generic[StateT]):
|
|
|
798
798
|
for before_turn in self._internal_before_turn:
|
|
799
799
|
is_ok = await before_turn(context, state)
|
|
800
800
|
if not is_ok:
|
|
801
|
-
await state.save(context
|
|
801
|
+
await state.save(context)
|
|
802
802
|
return False
|
|
803
803
|
return True
|
|
804
804
|
|
|
@@ -824,7 +824,7 @@ class AgentApplication(Agent, Generic[StateT]):
|
|
|
824
824
|
for after_turn in self._internal_after_turn:
|
|
825
825
|
is_ok = await after_turn(context, state)
|
|
826
826
|
if not is_ok:
|
|
827
|
-
await state.save(context
|
|
827
|
+
await state.save(context)
|
|
828
828
|
return False
|
|
829
829
|
return True
|
|
830
830
|
|
|
@@ -48,7 +48,7 @@ class TempState(AgentState):
|
|
|
48
48
|
def input_files(self, value: List[InputFile]) -> None:
|
|
49
49
|
self.set_value(self.INPUT_FILES_KEY, value)
|
|
50
50
|
|
|
51
|
-
def clear(self) -> None:
|
|
51
|
+
def clear(self, turn_context: TurnContext) -> None:
|
|
52
52
|
"""Clears all state values"""
|
|
53
53
|
self._state.clear()
|
|
54
54
|
|
|
@@ -96,6 +96,10 @@ class TempState(AgentState):
|
|
|
96
96
|
"""Loads the state asynchronously"""
|
|
97
97
|
pass
|
|
98
98
|
|
|
99
|
+
async def save(self, turn_context, force=False):
|
|
100
|
+
"""Saves the state asynchronously"""
|
|
101
|
+
pass
|
|
102
|
+
|
|
99
103
|
async def save_changes(
|
|
100
104
|
self, turn_context: TurnContext, force: bool = False, **_
|
|
101
105
|
) -> None:
|
|
@@ -246,16 +246,21 @@ class TurnState:
|
|
|
246
246
|
]
|
|
247
247
|
await asyncio.gather(*tasks)
|
|
248
248
|
|
|
249
|
-
def clear(self, scope: str) -> None:
|
|
249
|
+
def clear(self, turn_context: TurnContext, scope: str = None) -> None:
|
|
250
250
|
"""
|
|
251
251
|
Clears a state scope.
|
|
252
252
|
|
|
253
253
|
Args:
|
|
254
254
|
scope: The name of the scope to clear.
|
|
255
255
|
"""
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
scope_obj
|
|
256
|
+
if scope:
|
|
257
|
+
scope_obj = self.get_scope_by_name(scope)
|
|
258
|
+
if hasattr(scope_obj, "clear"):
|
|
259
|
+
scope_obj.clear(turn_context)
|
|
260
|
+
else:
|
|
261
|
+
for scope in self._scopes.values():
|
|
262
|
+
if hasattr(scope, "clear"):
|
|
263
|
+
scope.clear(turn_context)
|
|
259
264
|
|
|
260
265
|
async def save(self, turn_context: TurnContext, force: bool = False) -> None:
|
|
261
266
|
"""
|
|
@@ -215,7 +215,7 @@ class AgentState:
|
|
|
215
215
|
else None
|
|
216
216
|
)
|
|
217
217
|
|
|
218
|
-
if not value and default_value_factory:
|
|
218
|
+
if not value and default_value_factory is not None:
|
|
219
219
|
# If the value is None and a factory is provided, call the factory to get a default value
|
|
220
220
|
return default_value_factory()
|
|
221
221
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: microsoft-agents-hosting-core
|
|
3
|
-
Version: 0.4.0.
|
|
3
|
+
Version: 0.4.0.dev4
|
|
4
4
|
Summary: Core library for Microsoft Agents
|
|
5
5
|
Author: Microsoft Corporation
|
|
6
6
|
Project-URL: Homepage, https://github.com/microsoft/Agents
|
|
@@ -8,7 +8,7 @@ Classifier: Programming Language :: Python :: 3
|
|
|
8
8
|
Classifier: License :: OSI Approved :: MIT License
|
|
9
9
|
Classifier: Operating System :: OS Independent
|
|
10
10
|
Requires-Python: >=3.9
|
|
11
|
-
Requires-Dist: microsoft-agents-activity==0.4.0.
|
|
11
|
+
Requires-Dist: microsoft-agents-activity==0.4.0.dev4
|
|
12
12
|
Requires-Dist: pyjwt>=2.10.1
|
|
13
13
|
Requires-Dist: isodate>=0.6.1
|
|
14
14
|
Requires-Dist: azure-core>=1.30.0
|
|
@@ -73,11 +73,11 @@ microsoft_agents/hosting/core/state/agent_state.py
|
|
|
73
73
|
microsoft_agents/hosting/core/state/state_property_accessor.py
|
|
74
74
|
microsoft_agents/hosting/core/state/user_state.py
|
|
75
75
|
microsoft_agents/hosting/core/storage/__init__.py
|
|
76
|
+
microsoft_agents/hosting/core/storage/_storage_test_utils.py
|
|
76
77
|
microsoft_agents/hosting/core/storage/_type_aliases.py
|
|
77
78
|
microsoft_agents/hosting/core/storage/error_handling.py
|
|
78
79
|
microsoft_agents/hosting/core/storage/memory_storage.py
|
|
79
80
|
microsoft_agents/hosting/core/storage/storage.py
|
|
80
|
-
microsoft_agents/hosting/core/storage/storage_test_utils.py
|
|
81
81
|
microsoft_agents/hosting/core/storage/store_item.py
|
|
82
82
|
microsoft_agents_hosting_core.egg-info/PKG-INFO
|
|
83
83
|
microsoft_agents_hosting_core.egg-info/SOURCES.txt
|
|
@@ -4,7 +4,7 @@ import jwt
|
|
|
4
4
|
|
|
5
5
|
from microsoft_agents.activity import ActivityTypes, TokenResponse
|
|
6
6
|
from microsoft_agents.hosting.core import MemoryStorage
|
|
7
|
-
from microsoft_agents.hosting.core.storage.
|
|
7
|
+
from microsoft_agents.hosting.core.storage._storage_test_utils import StorageBaseline
|
|
8
8
|
from microsoft_agents.hosting.core.connector.user_token_base import UserTokenBase
|
|
9
9
|
from microsoft_agents.hosting.core.connector.user_token_client_base import (
|
|
10
10
|
UserTokenClientBase,
|
|
@@ -20,8 +20,8 @@ from microsoft_agents.hosting.core.oauth import (
|
|
|
20
20
|
)
|
|
21
21
|
|
|
22
22
|
# test constants
|
|
23
|
-
from .
|
|
24
|
-
from .
|
|
23
|
+
from core_tools.testing_oauth import *
|
|
24
|
+
from core_tools.testing_authorization import (
|
|
25
25
|
TestingConnectionManager as MockConnectionManager,
|
|
26
26
|
create_test_auth_handler,
|
|
27
27
|
)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import pytest
|
|
2
2
|
|
|
3
3
|
from microsoft_agents.hosting.core.storage import MemoryStorage
|
|
4
|
-
from microsoft_agents.hosting.core.storage.
|
|
4
|
+
from microsoft_agents.hosting.core.storage._storage_test_utils import MockStoreItem
|
|
5
5
|
from microsoft_agents.hosting.core.oauth import FlowState, FlowStorageClient
|
|
6
6
|
|
|
7
7
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
from microsoft_agents.hosting.core.storage.memory_storage import MemoryStorage
|
|
2
|
-
from microsoft_agents.hosting.core.storage.
|
|
2
|
+
from microsoft_agents.hosting.core.storage._storage_test_utils import CRUDStorageTests
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
class TestMemoryStorage(CRUDStorageTests):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/pyproject.toml
RENAMED
|
File without changes
|
{microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/setup.cfg
RENAMED
|
File without changes
|
{microsoft_agents_hosting_core-0.4.0.dev1 → microsoft_agents_hosting_core-0.4.0.dev4}/setup.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|