Skip to content

Commit 2e1a079

Browse files
fix: remove unnecessary whitespace in agent factory classes
1 parent c289019 commit 2e1a079

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed

src/api/agents/chart_agent_factory.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
logger = logging.getLogger(__name__)
88

9+
910
class ChartAgentFactory(BaseAgentFactory):
1011
"""
1112
Factory class for creating Chart agents that generate chart.js compatible JSON
@@ -17,7 +18,7 @@ async def create_agent(cls, config):
1718
"""
1819
Asynchronously creates or retrieves an AI agent configured to convert structured data
1920
into chart.js-compatible JSON using Azure AI Project.
20-
21+
2122
First checks if an agent with the expected name already exists and reuses it.
2223
Only creates a new agent if one doesn't exist.
2324
@@ -47,7 +48,7 @@ async def create_agent(cls, config):
4748
)
4849

4950
agent_name = f"KM-ChartAgent-{config.solution_name}"
50-
51+
5152
# Try to find an existing agent with the same name
5253
try:
5354
agents_list = project_client.agents.list_agents()

src/api/agents/conversation_agent_factory.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
logger = logging.getLogger(__name__)
1111

12+
1213
class ConversationAgentFactory(BaseAgentFactory):
1314
"""Factory class for creating conversation agents with semantic kernel integration."""
1415

@@ -17,7 +18,7 @@ async def create_agent(cls, config):
1718
"""
1819
Asynchronously creates or retrieves an AzureAIAgent instance configured with
1920
the appropriate model, instructions, and plugin for conversation support.
20-
21+
2122
First checks if an agent with the expected name already exists and reuses it.
2223
Only creates a new agent if one doesn't exist.
2324

src/api/agents/search_agent_factory.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
logger = logging.getLogger(__name__)
99

10+
1011
class SearchAgentFactory(BaseAgentFactory):
1112
"""Factory class for creating search agents with Azure AI Search integration."""
1213

@@ -15,7 +16,7 @@ async def create_agent(cls, config):
1516
"""
1617
Asynchronously creates or retrieves a search agent using Azure AI Search and registers it
1718
with the provided project configuration.
18-
19+
1920
First checks if an agent with the expected name already exists and reuses it.
2021
Only creates a new agent if one doesn't exist.
2122
@@ -32,7 +33,7 @@ async def create_agent(cls, config):
3233
)
3334

3435
agent_name = f"KM-ChatWithCallTranscriptsAgent-{config.solution_name}"
35-
36+
3637
# Try to find an existing agent with the same name
3738
try:
3839
agents_list = project_client.agents.list_agents()

src/api/agents/sql_agent_factory.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
logger = logging.getLogger(__name__)
1010

11+
1112
class SQLAgentFactory(BaseAgentFactory):
1213
"""
1314
Factory class for creating SQL agents that generate T-SQL queries using Azure AI Project.
@@ -18,7 +19,7 @@ async def create_agent(cls, config):
1819
"""
1920
Asynchronously creates or retrieves an AI agent configured to generate T-SQL queries
2021
based on a predefined schema and user instructions.
21-
22+
2223
First checks if an agent with the expected name already exists and reuses it.
2324
Only creates a new agent if one doesn't exist.
2425
@@ -46,7 +47,7 @@ async def create_agent(cls, config):
4647
)
4748

4849
agent_name = f"KM-ChatWithSQLDatabaseAgent-{config.solution_name}"
49-
50+
5051
# Try to find an existing agent with the same name
5152
try:
5253
agents_list = project_client.agents.list_agents()

0 commit comments

Comments
 (0)