File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 6666# Add the handler to the logger
6767logger .addHandler (ch )
6868
69- # DEPLOYMENT_NAME = os.environ["AZURE_OPENAI_CHAT_DEPLOYMENT_NAME"]
70-
7169# configure agents
7270agent_dialect_config = create_config (sql_dialect_in = "informix" , sql_dialect_out = "tsql" )
7371
@@ -304,7 +302,7 @@ async def convert(
304302 semver_response or ""
305303 )
306304
307- # Fake a problematic response for testing
305+ # Fake a problematic response for testing warning condition
308306 # semver_response = SemanticVerifierResponse(
309307 # analysis="",
310308 # judgement="",
@@ -450,10 +448,18 @@ async def process_batch_async(batch_id: str):
450448 logger .error ("Error updating batch status.{}" .format (exc ))
451449 # raise exc
452450
451+ # Add client and auto cleanup
452+ # async with (
453+ # DefaultAzureCredential() as creds,
454+ # AzureAIAgent.create_client(credential=creds) as client,
455+ # ):
456+
453457 # setup agents once per batch
454458 agent_config = await configure_agents ()
455459
456460 # Walk through each file name and retrieve it from blob storage
461+ # Send file to the agents for processing
462+ # Send status update to the client of type in progress, completed, or failed
457463 for file in batch_files :
458464 # Get the file from blob storage
459465 try :
You can’t perform that action at this time.
0 commit comments