agi-med-common 1.1.0__tar.gz → 1.3.0__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.1.0 → agi_med_common-1.3.0}/PKG-INFO +4 -3
  2. {agi_med_common-1.1.0 → agi_med_common-1.3.0}/README.md +2 -1
  3. {agi_med_common-1.1.0 → agi_med_common-1.3.0}/requirements.txt +1 -1
  4. agi_med_common-1.3.0/src/agi_med_common/__init__.py +1 -0
  5. {agi_med_common-1.1.0 → agi_med_common-1.3.0}/src/agi_med_common/logger/logger.py +1 -1
  6. {agi_med_common-1.1.0 → agi_med_common-1.3.0}/src/agi_med_common/models/__init__.py +1 -0
  7. {agi_med_common-1.1.0 → agi_med_common-1.3.0}/src/agi_med_common/models/chat_item/outer_context_item.py +5 -5
  8. agi_med_common-1.3.0/src/agi_med_common/models/chat_item/replica_item.py +10 -0
  9. {agi_med_common-1.1.0 → agi_med_common-1.3.0}/src/agi_med_common.egg-info/PKG-INFO +4 -3
  10. {agi_med_common-1.1.0 → agi_med_common-1.3.0}/src/agi_med_common.egg-info/requires.txt +1 -1
  11. agi_med_common-1.1.0/src/agi_med_common/__init__.py +0 -1
  12. agi_med_common-1.1.0/src/agi_med_common/models/chat_item/replica_item.py +0 -9
  13. {agi_med_common-1.1.0 → agi_med_common-1.3.0}/pyproject.toml +0 -0
  14. {agi_med_common-1.1.0 → agi_med_common-1.3.0}/setup.cfg +0 -0
  15. {agi_med_common-1.1.0 → agi_med_common-1.3.0}/src/agi_med_common/logger/__init__.py +0 -0
  16. {agi_med_common-1.1.0 → agi_med_common-1.3.0}/src/agi_med_common/logger/log_level_enum.py +0 -0
  17. {agi_med_common-1.1.0 → agi_med_common-1.3.0}/src/agi_med_common/models/_base.py +0 -0
  18. {agi_med_common-1.1.0 → agi_med_common-1.3.0}/src/agi_med_common/models/chat_item/__init__.py +0 -0
  19. {agi_med_common-1.1.0 → agi_med_common-1.3.0}/src/agi_med_common/models/chat_item/chat_item.py +0 -0
  20. {agi_med_common-1.1.0 → agi_med_common-1.3.0}/src/agi_med_common/models/chat_item/inner_context_item.py +0 -0
  21. {agi_med_common-1.1.0 → agi_med_common-1.3.0}/src/agi_med_common/models/enums/__init__.py +0 -0
  22. {agi_med_common-1.1.0 → agi_med_common-1.3.0}/src/agi_med_common/models/enums/track_id_enum.py +0 -0
  23. {agi_med_common-1.1.0 → agi_med_common-1.3.0}/src/agi_med_common.egg-info/SOURCES.txt +0 -0
  24. {agi_med_common-1.1.0 → agi_med_common-1.3.0}/src/agi_med_common.egg-info/dependency_links.txt +0 -0
  25. {agi_med_common-1.1.0 → agi_med_common-1.3.0}/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.1.0
3
+ Version: 1.3.0
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
 
@@ -20,7 +20,8 @@ Common компонент
20
20
 
21
21
  - Общий ChatItem для сервисов
22
22
  - Общей TrackId
23
- -
23
+ - logger
24
+
24
25
  ## Тесты
25
26
 
26
27
  - `sudo docker compose up --build`
@@ -10,7 +10,8 @@ Common компонент
10
10
 
11
11
  - Общий ChatItem для сервисов
12
12
  - Общей TrackId
13
- -
13
+ - logger
14
+
14
15
  ## Тесты
15
16
 
16
17
  - `sudo docker compose up --build`
@@ -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.0"
@@ -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(alias="Sex", description="True = male, False = female", examples=[True])
9
+ age: int = Field(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(alias="Role", description="True = ai, False = client", examples=[False])
9
+ date_time: str = Field(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.1.0
3
+ Version: 1.3.0
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
 
@@ -20,7 +20,8 @@ Common компонент
20
20
 
21
21
  - Общий ChatItem для сервисов
22
22
  - Общей TrackId
23
- -
23
+ - logger
24
+
24
25
  ## Тесты
25
26
 
26
27
  - `sudo docker compose up --build`
@@ -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.1.0"
@@ -1,9 +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")
File without changes