Skip to content

Commit 7d32bb6

Browse files
resolved the pylint issue
1 parent 2608eee commit 7d32bb6

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/api/plugins/chat_with_data_plugin.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ async def get_database_metrics(
9393
print(f"Exception during database metrics retrieval from get_database_metrics: {e}")
9494
answer = 'Details could not be retrieved. Please try again later.'
9595

96-
print(f"Response from Plugin: Database metrics from get_database_metrics : %s", answer)
96+
print(f"Response from Plugin: Database metrics from get_database_metrics : {answer}")
9797
return answer
9898

9999
@kernel_function(name="GetCallInsights", description="Provides summaries, explanations, and insights from customer call transcripts.")
@@ -166,9 +166,9 @@ def replace_marker(match):
166166
break
167167
project_client.agents.threads.delete(thread_id=thread.id)
168168
except Exception as e:
169-
print(f"Error in get_call_insights: %s", e)
169+
print(f"Error in get_call_insights: {e}")
170170
return "Details could not be retrieved. Please try again later."
171-
print(f"Response from Plugin: Call insights data from get_call_insights : %s", answer)
171+
print(f"Response from Plugin: Call insights data from get_call_insights : {answer}")
172172
return answer
173173

174174
@kernel_function(name="GenerateChartData", description="Generates Chart.js v4.4.4 compatible JSON data for data visualization requests using current and immediate previous context.")
@@ -179,12 +179,12 @@ async def generate_chart_data(
179179
query = input
180180
query = query.strip()
181181
print(f"Chart generation started for query: {query}")
182-
182+
183183
try:
184184
print("Fetching chart agent from factory...")
185185
agent_info = await ChartAgentFactory.get_agent()
186186
print(f"Chart agent retrieved successfully. Agent ID: {agent_info['agent'].id if agent_info.get('agent') else 'Unknown'}")
187-
187+
188188
agent = agent_info["agent"]
189189
project_client = agent_info["client"]
190190

@@ -218,5 +218,5 @@ async def generate_chart_data(
218218
except Exception as e:
219219
print(f"Exception during chart data generation from generate_chart_data: {e}")
220220
chartdata = 'Details could not be retrieved. Please try again later.'
221-
print(f"Response from Plugin: Chart data from generate_chart_data : %s", chartdata)
221+
print(f"Response from Plugin: Chart data from generate_chart_data : {chartdata}")
222222
return chartdata

src/api/services/chat_service.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,8 @@ async def complete_chat_request(self, query, last_rag_response=None):
208208
"""
209209
Completes a chat request by generating a chart from the RAG response.
210210
"""
211-
logger.info(f"GBC: Starting complete_chat_request in chat_Service.")
212-
print(f"GBC: Starting complete_chat_request in chat_Service.")
211+
logger.info("GBC: Starting complete_chat_request in chat_Service.")
212+
print("GBC: Starting complete_chat_request in chat_Service.")
213213
if not last_rag_response:
214214
return {"error": "A previous RAG response is required to generate a chart."}
215215

0 commit comments

Comments
 (0)