File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -63,4 +63,4 @@ def get_azure_credentials(self):
6363
6464
6565app_config = Config ()
66- print (f"[DEBUG] AI_PROJECT_ENDPOINT: '{ os .getenv ('AI_PROJECT_ENDPOINT' )} '" )
66+ print (f"[DEBUG] AI_PROJECT_ENDPOINT: '{ os .getenv ('AI_PROJECT_ENDPOINT' )} '" )
Original file line number Diff line number Diff line change @@ -151,4 +151,4 @@ async def execute(self, inputs: Any) -> T:
151151 """Execute the agent with the given inputs."""
152152 agent = await self .get_agent ()
153153 response = await agent .invoke (inputs )
154- return response # Type will be inferred from T
154+ return response # Type will be inferred from T
Original file line number Diff line number Diff line change 1111
1212from azure .identity .aio import DefaultAzureCredential
1313
14+ from common .config .config import app_config
1415from common .models .api import (
1516 FileProcessUpdate ,
1617 FileRecord ,
2021)
2122from common .services .batch_service import BatchService
2223from common .storage .blob_factory import BlobStorageFactory
23- from common . config . config import app_config
24+
2425from fastapi import HTTPException
2526
2627
27- from semantic_kernel .agents .azure_ai .azure_ai_agent import AzureAIAgent , AzureAIAgentSettings # pylint: disable=E0611
28+ from semantic_kernel .agents .azure_ai .azure_ai_agent import AzureAIAgent # pylint: disable=E0611
2829from semantic_kernel .contents import AuthorRole
2930from semantic_kernel .exceptions .service_exceptions import ServiceResponseException
3031
3738logger = logging .getLogger (__name__ )
3839logger .setLevel (logging .DEBUG )
3940
41+
4042# Walk through batch structure processing each file
4143async def process_batch_async (
4244 batch_id : str , convert_from : str = "informix" , convert_to : str = "tsql"
@@ -56,7 +58,6 @@ async def process_batch_async(
5658 except Exception as exc :
5759 logger .error ("Error updating batch status. %s" , exc )
5860
59- ai_agent_settings = AzureAIAgentSettings ()
6061 # Add client and auto cleanup
6162 async with (
6263 DefaultAzureCredential () as creds ,
You can’t perform that action at this time.
0 commit comments