Skip to content

Commit a2dee7e

Browse files
fix pylint issue
1 parent 0f16544 commit a2dee7e

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

src/api/agents/agent_factory.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ async def get_conversation_agent(cls) -> AzureAIAgent:
6363
)
6464
cls._conversation_agent = agent
6565
return cls._conversation_agent
66-
66+
6767
@classmethod
6868
async def get_search_agent(cls) -> dict:
6969
async with cls._lock:
@@ -139,7 +139,7 @@ async def delete_all(cls):
139139
print(f"Failed to delete thread {thread_id} for conversation {conversation_id}: {e}", flush=True)
140140
await cls._conversation_agent.client.agents.delete_agent(cls._conversation_agent.id)
141141
cls._conversation_agent = None
142-
142+
143143
# Delete Search Agent
144144
if cls._search_agent is not None:
145145
try:

src/api/api/api_routes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,4 +220,4 @@ def fetch_content():
220220
return JSONResponse(
221221
content={"error": "Internal server error"},
222222
status_code=500
223-
)
223+
)

src/api/plugins/chat_with_data_plugin.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,7 @@ async def get_SQL_Response(
128128
answer = 'Details could not be retrieved. Please try again later.'
129129
return answer
130130

131-
@kernel_function(name="ChatWithCallTranscripts",
132-
description="Provides summaries or detailed explanations from the search index.")
131+
@kernel_function(name="ChatWithCallTranscripts", description="Provides summaries or detailed explanations from the search index.")
133132
async def get_answers_from_calltranscripts(
134133
self,
135134
question: Annotated[str, "the question"]
@@ -169,7 +168,7 @@ def replace_marker(match):
169168
return match.group(0)
170169

171170
return re.sub(r'【(\d+:\d+)†source】', replace_marker, text)
172-
171+
173172
for run_step in project_client.agents.run_steps.list(thread_id=thread.id, run_id=run.id):
174173
if isinstance(run_step.step_details, RunStepToolCallDetails):
175174
for tool_call in run_step.step_details.tool_calls:
@@ -189,6 +188,6 @@ def replace_marker(match):
189188
answer["answer"] = convert_citation_markers(answer["answer"])
190189
break
191190
project_client.agents.threads.delete(thread_id=thread.id)
192-
except Exception as e:
191+
except Exception:
193192
return "Details could not be retrieved. Please try again later."
194193
return answer

0 commit comments

Comments
 (0)