agi-med-common 1.2.0__tar.gz → 1.3.1__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 (25) hide show
  1. {agi_med_common-1.2.0 → agi_med_common-1.3.1}/PKG-INFO +2 -2
  2. {agi_med_common-1.2.0 → agi_med_common-1.3.1}/requirements.txt +1 -1
  3. agi_med_common-1.3.1/src/agi_med_common/__init__.py +1 -0
  4. {agi_med_common-1.2.0 → agi_med_common-1.3.1}/src/agi_med_common/logger/logger.py +1 -1
  5. {agi_med_common-1.2.0 → agi_med_common-1.3.1}/src/agi_med_common/models/__init__.py +1 -0
  6. {agi_med_common-1.2.0 → agi_med_common-1.3.1}/src/agi_med_common/models/chat_item/outer_context_item.py +5 -5
  7. agi_med_common-1.3.1/src/agi_med_common/models/chat_item/replica_item.py +10 -0
  8. {agi_med_common-1.2.0 → agi_med_common-1.3.1}/src/agi_med_common.egg-info/PKG-INFO +2 -2
  9. {agi_med_common-1.2.0 → agi_med_common-1.3.1}/src/agi_med_common.egg-info/requires.txt +1 -1
  10. agi_med_common-1.2.0/src/agi_med_common/__init__.py +0 -1
  11. agi_med_common-1.2.0/src/agi_med_common/models/chat_item/replica_item.py +0 -10
  12. {agi_med_common-1.2.0 → agi_med_common-1.3.1}/README.md +0 -0
  13. {agi_med_common-1.2.0 → agi_med_common-1.3.1}/pyproject.toml +0 -0
  14. {agi_med_common-1.2.0 → agi_med_common-1.3.1}/setup.cfg +0 -0
  15. {agi_med_common-1.2.0 → agi_med_common-1.3.1}/src/agi_med_common/logger/__init__.py +0 -0
  16. {agi_med_common-1.2.0 → agi_med_common-1.3.1}/src/agi_med_common/logger/log_level_enum.py +0 -0
  17. {agi_med_common-1.2.0 → agi_med_common-1.3.1}/src/agi_med_common/models/_base.py +0 -0
  18. {agi_med_common-1.2.0 → agi_med_common-1.3.1}/src/agi_med_common/models/chat_item/__init__.py +0 -0
  19. {agi_med_common-1.2.0 → agi_med_common-1.3.1}/src/agi_med_common/models/chat_item/chat_item.py +0 -0
  20. {agi_med_common-1.2.0 → agi_med_common-1.3.1}/src/agi_med_common/models/chat_item/inner_context_item.py +0 -0
  21. {agi_med_common-1.2.0 → agi_med_common-1.3.1}/src/agi_med_common/models/enums/__init__.py +0 -0
  22. {agi_med_common-1.2.0 → agi_med_common-1.3.1}/src/agi_med_common/models/enums/track_id_enum.py +0 -0
  23. {agi_med_common-1.2.0 → agi_med_common-1.3.1}/src/agi_med_common.egg-info/SOURCES.txt +0 -0
  24. {agi_med_common-1.2.0 → agi_med_common-1.3.1}/src/agi_med_common.egg-info/dependency_links.txt +0 -0
  25. {agi_med_common-1.2.0 → agi_med_common-1.3.1}/src/agi_med_common.egg-info/top_level.txt +0 -0
@@ -1,12 +1,12 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: agi_med_common
3
- Version: 1.2.0
3
+ Version: 1.3.1
4
4
  Summary: Сommon for agi-med team
5
5
  Author: AGI-MED-TEAM
6
6
  Requires-Python: >=3.13
7
7
  Description-Content-Type: text/markdown
8
8
  Requires-Dist: pydantic<=3.0.0,>=2.9.2
9
- Requires-Dist: loguru==0.7.2
9
+ Requires-Dist: loguru~=0.7.2
10
10
 
11
11
  # agi-med-common
12
12
 
@@ -1,2 +1,2 @@
1
1
  pydantic>=2.9.2,<=3.0.0
2
- loguru==0.7.2
2
+ loguru~=0.7.2
@@ -0,0 +1 @@
1
+ __version__ = "1.3.1"
@@ -11,7 +11,7 @@ def logger_init(
11
11
  ) -> None:
12
12
  logger.remove()
13
13
  default_uuid = UUID(int=0)
14
- format_ = f"{{time:dd-MM-YYYY HH:mm:ss:ms}} | {service_name} | {{extra[uuid]}}"
14
+ format_ = f"{{time:DD-MM-YYYY HH:mm:ss:ms}} | {service_name} | {{name}} | {{extra[uuid]}}"
15
15
  extra: dict[str, UUID | str] = {"uuid": default_uuid}
16
16
  if include_outer_context:
17
17
  format_ = f"{format_} | {{extra[outer_context]}}"
@@ -1,2 +1,3 @@
1
1
  from ._base import _Base
2
+ from .enums import TrackIdEnum
2
3
  from .chat_item import ChatItem, OuterContextItem, InnerContextItem, ReplicaItem
@@ -5,11 +5,11 @@ from ..enums import TrackIdEnum
5
5
 
6
6
 
7
7
  class OuterContextItem(_Base):
8
- sex: bool = Field(alias="Sex", description="True = male, False = female")
9
- age: int = Field(alias="Age")
10
- user_id: str = Field(alias="UserId")
11
- session_id: str = Field(alias="SessionId")
12
- client_id: str = Field(alias="ClientId")
8
+ sex: bool = Field(False, alias="Sex", description="True = male, False = female", examples=[True])
9
+ age: int = Field(0, alias="Age", examples=[20])
10
+ user_id: str = Field("", alias="UserId", examples=["123456789"])
11
+ session_id: str = Field("", alias="SessionId", examples=["987654321"])
12
+ client_id: str = Field("", alias="ClientId", examples=["543216789"])
13
13
  track_id: TrackIdEnum = Field(TrackIdEnum.DIAGNOSTIC, alias="TrackId")
14
14
 
15
15
  def create_id(self, short: bool = False) -> str:
@@ -0,0 +1,10 @@
1
+ from pydantic import Field
2
+
3
+ from .. import _Base
4
+
5
+
6
+ class ReplicaItem(_Base):
7
+ body: str = Field("", alias="Body", examples=["Привет"])
8
+ role: bool = Field(False, alias="Role", description="True = ai, False = client", examples=[False])
9
+ date_time: str = Field("1970-01-01-00-00-00", alias="DateTime", examples=["2024-12-10-18-03-46"])
10
+ previous_score: float | None = Field(None, alias="PreviousScore")
@@ -1,12 +1,12 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: agi_med_common
3
- Version: 1.2.0
3
+ Version: 1.3.1
4
4
  Summary: Сommon for agi-med team
5
5
  Author: AGI-MED-TEAM
6
6
  Requires-Python: >=3.13
7
7
  Description-Content-Type: text/markdown
8
8
  Requires-Dist: pydantic<=3.0.0,>=2.9.2
9
- Requires-Dist: loguru==0.7.2
9
+ Requires-Dist: loguru~=0.7.2
10
10
 
11
11
  # agi-med-common
12
12
 
@@ -1,2 +1,2 @@
1
1
  pydantic<=3.0.0,>=2.9.2
2
- loguru==0.7.2
2
+ loguru~=0.7.2
@@ -1 +0,0 @@
1
- __version__ = "1.2.0"
@@ -1,10 +0,0 @@
1
- from pydantic import Field
2
-
3
- from .. import _Base
4
-
5
-
6
- class ReplicaItem(_Base):
7
- body: str = Field(alias="Body")
8
- role: bool = Field(alias="Role", description="True = ai, False = client")
9
- date_time: str = Field(alias="DateTime")
10
- previous_score: float | None = Field(None, alias="PreviousScore")
File without changes
File without changes