microsoft-agents-hosting-core 0.6.1__py3-none-any.whl → 0.7.0.dev0__py3-none-any.whl

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.
@@ -7,27 +7,35 @@ from __future__ import annotations
7
7
 
8
8
  from typing import Optional
9
9
 
10
- from pydantic import BaseModel
11
-
12
10
  from microsoft_agents.activity import Activity
13
11
 
14
12
  from ...storage._type_aliases import JSON
15
13
  from ...storage import StoreItem
16
14
 
17
15
 
18
- class _SignInState(BaseModel, StoreItem):
16
+ class _SignInState(StoreItem):
19
17
  """Store item for sign-in state, including tokens and continuation activity.
20
18
 
21
19
  Used to cache tokens and keep track of activities during single and
22
20
  multi-turn sign-in flows.
23
21
  """
24
22
 
25
- active_handler_id: str
26
- continuation_activity: Optional[Activity] = None
23
+ def __init__(
24
+ self,
25
+ active_handler_id: str,
26
+ continuation_activity: Optional[Activity] = None,
27
+ ) -> None:
28
+ self.active_handler_id = active_handler_id
29
+ self.continuation_activity = continuation_activity
27
30
 
28
31
  def store_item_to_json(self) -> JSON:
29
- return self.model_dump(mode="json", exclude_unset=True, by_alias=True)
32
+ return {
33
+ "active_handler_id": self.active_handler_id,
34
+ "continuation_activity": self.continuation_activity,
35
+ }
30
36
 
31
37
  @staticmethod
32
38
  def from_json_to_store_item(json_data: JSON) -> _SignInState:
33
- return _SignInState.model_validate(json_data)
39
+ return _SignInState(
40
+ json_data["active_handler_id"], json_data.get("continuation_activity")
41
+ )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: microsoft-agents-hosting-core
3
- Version: 0.6.1
3
+ Version: 0.7.0.dev0
4
4
  Summary: Core library for Microsoft Agents
5
5
  Author: Microsoft Corporation
6
6
  License-Expression: MIT
@@ -15,7 +15,7 @@ Classifier: Operating System :: OS Independent
15
15
  Requires-Python: >=3.10
16
16
  Description-Content-Type: text/markdown
17
17
  License-File: LICENSE
18
- Requires-Dist: microsoft-agents-activity==0.6.1
18
+ Requires-Dist: microsoft-agents-activity==0.7.0.dev0
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
@@ -28,7 +28,7 @@ microsoft_agents/hosting/core/app/_routes/_route_list.py,sha256=fe1-wmFaJJqYkWFc
28
28
  microsoft_agents/hosting/core/app/_routes/route_rank.py,sha256=-UwmLMCtgLT2cWnWvLfE2puV0RuQfI2m3WyEvkBkSBg,324
29
29
  microsoft_agents/hosting/core/app/oauth/__init__.py,sha256=eHx-vmW2Ew8HULSfvAmV8F9TBXXLcTPsBe3XP4JEDdY,556
30
30
  microsoft_agents/hosting/core/app/oauth/_sign_in_response.py,sha256=H5VBX69WiYXGALzCDVnF_-Y0brbafbJgfF4mS2wZSr0,851
31
- microsoft_agents/hosting/core/app/oauth/_sign_in_state.py,sha256=gtrLa_BgQq-yrTu8ItVwQ8fntfSKjlng2lCj6A8mCrc,897
31
+ microsoft_agents/hosting/core/app/oauth/_sign_in_state.py,sha256=lC2otIFcQthAZ8kqkYxV3wLBPOqzW9MRVUbdqQPtEdM,1159
32
32
  microsoft_agents/hosting/core/app/oauth/auth_handler.py,sha256=KyhEfpKtoVKcapOt4szpDdbgk_KSwXF46GGOeJrmsRI,3464
33
33
  microsoft_agents/hosting/core/app/oauth/authorization.py,sha256=_sdCZcZ7iciwTZqXTHFOK4vWWbCgSIDv3it30fzPI8w,18246
34
34
  microsoft_agents/hosting/core/app/oauth/_handlers/__init__.py,sha256=ZQuXF-IZrJv_hOgt-sdRFAUyIpRXaYqYBuyEJWJRcfU,376
@@ -93,8 +93,8 @@ microsoft_agents/hosting/core/storage/transcript_info.py,sha256=5VN32j99tshChAff
93
93
  microsoft_agents/hosting/core/storage/transcript_logger.py,sha256=_atDk3CJ05fIVMhlWGNa91IiM9bGLmOhasFko8Lxjhk,8237
94
94
  microsoft_agents/hosting/core/storage/transcript_memory_store.py,sha256=v1Ud9LSs8m5c9_Fa8i49SuAjw80dX1hDciqbRduDEOE,6444
95
95
  microsoft_agents/hosting/core/storage/transcript_store.py,sha256=ka74o0WvI5GhMZcFqSxVdamBhGzZcDZe6VNkG-sMy74,1944
96
- microsoft_agents_hosting_core-0.6.1.dist-info/licenses/LICENSE,sha256=ws_MuBL-SCEBqPBFl9_FqZkaaydIJmxHrJG2parhU4M,1141
97
- microsoft_agents_hosting_core-0.6.1.dist-info/METADATA,sha256=Cku8bSwQI9yNi9JTXhWkKVEIOduKuh38p5Whdmo3nHU,9232
98
- microsoft_agents_hosting_core-0.6.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
99
- microsoft_agents_hosting_core-0.6.1.dist-info/top_level.txt,sha256=lWKcT4v6fTA_NgsuHdNvuMjSrkiBMXohn64ApY7Xi8A,17
100
- microsoft_agents_hosting_core-0.6.1.dist-info/RECORD,,
96
+ microsoft_agents_hosting_core-0.7.0.dev0.dist-info/licenses/LICENSE,sha256=ws_MuBL-SCEBqPBFl9_FqZkaaydIJmxHrJG2parhU4M,1141
97
+ microsoft_agents_hosting_core-0.7.0.dev0.dist-info/METADATA,sha256=kum-N0M9RQKtwhrewQsTH8JkWJXgo1Fqnr5yjD--cmc,9242
98
+ microsoft_agents_hosting_core-0.7.0.dev0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
99
+ microsoft_agents_hosting_core-0.7.0.dev0.dist-info/top_level.txt,sha256=lWKcT4v6fTA_NgsuHdNvuMjSrkiBMXohn64ApY7Xi8A,17
100
+ microsoft_agents_hosting_core-0.7.0.dev0.dist-info/RECORD,,