agenthink 0.1.16__tar.gz → 0.1.17__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agenthink
3
- Version: 0.1.16
3
+ Version: 0.1.17
4
4
  Summary: A unified agent framework for connecting workflows, databases, and agents
5
5
  Author: Ritobroto
6
6
  Requires-Python: >=3.10
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "agenthink"
3
- version = "0.1.16"
3
+ version = "0.1.17"
4
4
  description = "A unified agent framework for connecting workflows, databases, and agents"
5
5
  authors = [
6
6
  { name = "Ritobroto" }
@@ -21,13 +21,17 @@ import re
21
21
  dotenv.load_dotenv()
22
22
 
23
23
  # Create and configure logger
24
- logging.basicConfig(
25
- filename="datastore_library.log",
26
- format='%(asctime)s %(levelname)s:%(name)s:%(message)s',
27
- filemode='w'
28
- )
24
+ # logging.basicConfig(
25
+ # filename="datastore_library.log",
26
+ # format='%(asctime)s %(levelname)s:%(name)s:%(message)s',
27
+ # filemode='w'
28
+ # )
29
+ # logger = logging.getLogger(__name__)
30
+ # logger.setLevel(logging.DEBUG)
31
+
29
32
  logger = logging.getLogger(__name__)
30
- logger.setLevel(logging.DEBUG)
33
+ logger.addHandler(logging.NullHandler())
34
+
31
35
 
32
36
 
33
37
  class DBConnector:
@@ -53,6 +57,12 @@ class DBConnector:
53
57
  f"EndpointSuffix=core.windows.net"
54
58
  )
55
59
 
60
+ logger.debug("DEBUG TEST: debug level log")
61
+ logger.info("INFO TEST: info level log")
62
+ logger.warning("WARNING TEST: warning level log")
63
+ logger.error("ERROR TEST: error level log")
64
+
65
+
56
66
  try:
57
67
  blob_service = BlobServiceClient.from_connection_string(connection_str)
58
68
  self.__container_client = blob_service.get_container_client(self.__container_name)
@@ -273,7 +283,7 @@ class DBConnector:
273
283
  logger.error("Unsupported database type '%s' for database '%s'", database_type, db_name)
274
284
  return None
275
285
 
276
- def __debugging_function(self):
286
+ def _debugging_function(self):
277
287
  prefix = f"{self._workflow_id}/{self._user_id}/"
278
288
  all_blob_list = self.__container_client.list_blobs(name_starts_with=prefix)
279
289
  output_message = f"""Debugging function executed. Current connections:\n
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agenthink
3
- Version: 0.1.16
3
+ Version: 0.1.17
4
4
  Summary: A unified agent framework for connecting workflows, databases, and agents
5
5
  Author: Ritobroto
6
6
  Requires-Python: >=3.10
File without changes
File without changes