@@ -89,11 +89,9 @@ async def get_database_metrics(
8989 # Clean up
9090 project_client .agents .threads .delete (thread_id = thread .id )
9191
92- except Exception as e :
93- print (f"Exception during database metrics retrieval from get_database_metrics: { e } " )
92+ except Exception :
9493 answer = 'Details could not be retrieved. Please try again later.'
9594
96- print (f"Response from Plugin: Database metrics from get_database_metrics : { answer } " )
9795 return answer
9896
9997 @kernel_function (name = "GetCallInsights" , description = "Provides summaries, explanations, and insights from customer call transcripts." )
@@ -165,10 +163,8 @@ def replace_marker(match):
165163 answer ["answer" ] = convert_citation_markers (answer ["answer" ])
166164 break
167165 project_client .agents .threads .delete (thread_id = thread .id )
168- except Exception as e :
169- print (f"Error in get_call_insights: { e } " )
166+ except Exception :
170167 return "Details could not be retrieved. Please try again later."
171- print (f"Response from Plugin: Call insights data from get_call_insights : { answer } " )
172168 return answer
173169
174170 @kernel_function (name = "GenerateChartData" , description = "Generates Chart.js v4.4.4 compatible JSON data for data visualization requests using current and immediate previous context." )
@@ -178,13 +174,9 @@ async def generate_chart_data(
178174 ):
179175 query = input
180176 query = query .strip ()
181- print (f"Chart generation started for query: { query } " )
182177
183178 try :
184- print ("Fetching chart agent from factory..." )
185179 agent_info = await ChartAgentFactory .get_agent ()
186- print (f"Chart agent retrieved successfully. Agent ID: { agent_info ['agent' ].id if agent_info .get ('agent' ) else 'Unknown' } " )
187-
188180 agent = agent_info ["agent" ]
189181 project_client = agent_info ["client" ]
190182
@@ -202,8 +194,6 @@ async def generate_chart_data(
202194 )
203195
204196 if run .status == "failed" :
205- print (f"Chart generation run failed: { run .last_error } " )
206- print (f"Run details - ID: { run .id } , Thread ID: { thread .id } " )
207197 return "Details could not be retrieved. Please try again later."
208198
209199 chartdata = ""
@@ -215,8 +205,6 @@ async def generate_chart_data(
215205 # Clean up
216206 project_client .agents .threads .delete (thread_id = thread .id )
217207
218- except Exception as e :
219- print (f"Exception during chart data generation from generate_chart_data: { e } " )
208+ except Exception :
220209 chartdata = 'Details could not be retrieved. Please try again later.'
221- print (f"Response from Plugin: Chart data from generate_chart_data : { chartdata } " )
222210 return chartdata
0 commit comments