agent-lab-sdk 0.1.7__py3-none-any.whl → 0.1.9__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.

Potentially problematic release.


This version of agent-lab-sdk might be problematic. Click here for more details.

@@ -0,0 +1,2 @@
1
+ from log_message import LogMessage
2
+ __all__ = ["LogMessage"]
@@ -0,0 +1,17 @@
1
+ from langchain.schema import BaseMessage, AIMessage
2
+ import os
3
+
4
+ IS_LOG_MESSAGE_CUSTOM = os.environ.get("IS_LOG_MESSAGE_CUSTOM", 'False').lower() in ('true', '1', 't')
5
+
6
+ if IS_LOG_MESSAGE_CUSTOM:
7
+ class LogMessage(BaseMessage):
8
+ def __init__(self, content: str):
9
+ super().__init__(type='log', content=content, additional_kwargs={})
10
+ def dict(self, **kwargs):
11
+ d = super().dict(**kwargs)
12
+ d["type"] = 'log'
13
+ return d
14
+ else:
15
+ class LogMessage(AIMessage):
16
+ def __init__(self, content: str):
17
+ super().__init__(content=content, additional_kwargs = {"type": "log"})
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agent-lab-sdk
3
- Version: 0.1.7
3
+ Version: 0.1.9
4
4
  Summary: SDK для работы с Agent Lab
5
5
  Author-email: Andrew Ohurtsov <andermirik@yandex.com>
6
6
  License: Proprietary and Confidential — All Rights Reserved
@@ -8,10 +8,12 @@ agent_lab_sdk/llm/llm.py,sha256=NOEH9TOH66EIJXGevxPm6w6px7Z0cZl9DJ-9A7jOnd0,873
8
8
  agent_lab_sdk/llm/throttled.py,sha256=9_nm1i3Uuep0VEWsY1KNCllZA-vM202XVdlgXhgC8BA,7005
9
9
  agent_lab_sdk/metrics/__init__.py,sha256=G4VSlzKwupPMM4c6vZaF1rnd0KusKarezDMjli9pVFw,57
10
10
  agent_lab_sdk/metrics/metrics.py,sha256=2e0c7BanThUNtCxpS6BUlAIDoLSidQsuaaBP5EB48Yo,3432
11
+ agent_lab_sdk/schema/__init__.py,sha256=gUD5ymdagTp3bGDFPy90u39leZ0fOVVSJB5Ssa3VP_s,60
12
+ agent_lab_sdk/schema/log_message.py,sha256=nadi6lZGRuDSPmfbYs9QPpRJUT9Pfy8Y7pGCvyFF5Mw,638
11
13
  agent_lab_sdk/storage/__init__.py,sha256=ik1_v1DMTwehvcAEXIYxuvLuCjJCa3y5qAuJqoQpuSA,81
12
14
  agent_lab_sdk/storage/storage.py,sha256=ELpt7GRwFD-aWa6ctinfA_QwcvzWLvKS0Wz8FlxVqAs,2075
13
- agent_lab_sdk-0.1.7.dist-info/licenses/LICENSE,sha256=_TRXHkF3S9ilWBPdZcHLI_S-PRjK0L_SeOb2pcPAdV4,417
14
- agent_lab_sdk-0.1.7.dist-info/METADATA,sha256=Oa81Mo3xrEyfH7BZ8rXV03MyNzlj3mysFBpOIUQID58,1748
15
- agent_lab_sdk-0.1.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
16
- agent_lab_sdk-0.1.7.dist-info/top_level.txt,sha256=E1efqkJ89KNmPBWdLzdMHeVtH0dYyCo4fhnSb81_15I,14
17
- agent_lab_sdk-0.1.7.dist-info/RECORD,,
15
+ agent_lab_sdk-0.1.9.dist-info/licenses/LICENSE,sha256=_TRXHkF3S9ilWBPdZcHLI_S-PRjK0L_SeOb2pcPAdV4,417
16
+ agent_lab_sdk-0.1.9.dist-info/METADATA,sha256=OEaBn-h99uhnd7xcSvWoPl-wUv0zipvJglu3PyxHO5M,1748
17
+ agent_lab_sdk-0.1.9.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
18
+ agent_lab_sdk-0.1.9.dist-info/top_level.txt,sha256=E1efqkJ89KNmPBWdLzdMHeVtH0dYyCo4fhnSb81_15I,14
19
+ agent_lab_sdk-0.1.9.dist-info/RECORD,,