agenthink 0.1.20__tar.gz → 0.1.22__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.
- {agenthink-0.1.20 → agenthink-0.1.22}/PKG-INFO +1 -1
- {agenthink-0.1.20 → agenthink-0.1.22}/pyproject.toml +1 -1
- {agenthink-0.1.20 → agenthink-0.1.22}/src/agenthink/connection.py +1 -5
- agenthink-0.1.22/src/agenthink/data_source.py +24 -0
- agenthink-0.1.22/src/agenthink/models.py +31 -0
- {agenthink-0.1.20 → agenthink-0.1.22}/src/agenthink.egg-info/PKG-INFO +1 -1
- {agenthink-0.1.20 → agenthink-0.1.22}/src/agenthink.egg-info/SOURCES.txt +1 -0
- agenthink-0.1.20/src/agenthink/models.py +0 -10
- {agenthink-0.1.20 → agenthink-0.1.22}/README.md +0 -0
- {agenthink-0.1.20 → agenthink-0.1.22}/setup.cfg +0 -0
- {agenthink-0.1.20 → agenthink-0.1.22}/src/agenthink/__init__.py +0 -0
- {agenthink-0.1.20 → agenthink-0.1.22}/src/agenthink/utils.py +0 -0
- {agenthink-0.1.20 → agenthink-0.1.22}/src/agenthink.egg-info/dependency_links.txt +0 -0
- {agenthink-0.1.20 → agenthink-0.1.22}/src/agenthink.egg-info/requires.txt +0 -0
- {agenthink-0.1.20 → agenthink-0.1.22}/src/agenthink.egg-info/top_level.txt +0 -0
|
@@ -48,11 +48,6 @@ class DBConnector:
|
|
|
48
48
|
f"EndpointSuffix=core.windows.net"
|
|
49
49
|
)
|
|
50
50
|
|
|
51
|
-
logger.debug("DEBUG TEST: debug level log")
|
|
52
|
-
logger.info("INFO TEST: info level log")
|
|
53
|
-
logger.warning("WARNING TEST: warning level log")
|
|
54
|
-
logger.error("ERROR TEST: error level log")
|
|
55
|
-
|
|
56
51
|
|
|
57
52
|
try:
|
|
58
53
|
blob_service = BlobServiceClient.from_connection_string(connection_str)
|
|
@@ -514,6 +509,7 @@ class DBConnector:
|
|
|
514
509
|
Json data: {self.json_data}\n
|
|
515
510
|
Number of datastores: {self.no_of_datastores}\n
|
|
516
511
|
Current connection_object_dict: {self.connection_object_dict}\n
|
|
512
|
+
D365 connection:
|
|
517
513
|
"""
|
|
518
514
|
return output_message
|
|
519
515
|
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# ...existing code...
|
|
2
|
+
import json
|
|
3
|
+
from fastapi import FastAPI
|
|
4
|
+
from pydantic import BaseModel
|
|
5
|
+
import mysql.connector
|
|
6
|
+
from fastapi import APIRouter
|
|
7
|
+
import mysql.connector
|
|
8
|
+
from azure.identity import ClientSecretCredential
|
|
9
|
+
from azure.keyvault.secrets import SecretClient
|
|
10
|
+
from mysql.connector import pooling
|
|
11
|
+
import json
|
|
12
|
+
from azure.storage.blob import BlobServiceClient
|
|
13
|
+
from azure.storage.blob import BlobPrefix
|
|
14
|
+
import pyodbc
|
|
15
|
+
import agenthink.utils as utils
|
|
16
|
+
import os
|
|
17
|
+
import json
|
|
18
|
+
import dotenv
|
|
19
|
+
import logging
|
|
20
|
+
import re
|
|
21
|
+
dotenv.load_dotenv()
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
from pydantic import BaseModel
|
|
2
|
+
from typing import List, Optional
|
|
3
|
+
from typing import Any, Dict
|
|
4
|
+
|
|
5
|
+
# class ConnectionRequest(BaseModel):
|
|
6
|
+
# query: str
|
|
7
|
+
# user_id: str
|
|
8
|
+
# session_id: str
|
|
9
|
+
# workflow_id: str
|
|
10
|
+
# datastore: Optional[List] = []
|
|
11
|
+
# tools: Optional[List] = []
|
|
12
|
+
|
|
13
|
+
# class ConnectionRequest(BaseModel):
|
|
14
|
+
# query: Optional[str] = None
|
|
15
|
+
# user_id: Optional[str] = None
|
|
16
|
+
# session_id: Optional[str] = None
|
|
17
|
+
# workflow_id: Optional[str] = None
|
|
18
|
+
# datastore: Optional[List] = None
|
|
19
|
+
# tools: Optional[List] = None
|
|
20
|
+
# d365request: Optional[dict] = None
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class ConnectionRequest(BaseModel):
|
|
24
|
+
query: Optional[str] = None
|
|
25
|
+
user_id: Optional[str] = None
|
|
26
|
+
session_id: Optional[str] = None
|
|
27
|
+
workflow_id: Optional[str] = None
|
|
28
|
+
datastore_id: Optional[str] = None
|
|
29
|
+
datastore: Optional[List[Dict[str, Any]]] = None
|
|
30
|
+
tools: Optional[List[Dict[str, Any]]] = None
|
|
31
|
+
d365request: Optional[List[Dict[str, Any]]] = None
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|