Skip to content

Commit 03b17bd

Browse files
Updated kernel function name
1 parent 54d0673 commit 03b17bd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/api/plugins/chat_with_data_plugin.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ def __init__(self):
3636
self.azure_ai_search_index = config.azure_ai_search_index
3737
self.use_ai_project_client = config.use_ai_project_client
3838

39-
@kernel_function(name="ChatWithSQLDatabase",
39+
@kernel_function(name="GetDatabaseMetrics",
4040
description="Provides quantified results from the database.")
41-
async def get_sql_response(
41+
async def get_database_metrics(
4242
self,
4343
input: Annotated[str, "the question"]
4444
):
@@ -94,8 +94,8 @@ async def get_sql_response(
9494

9595
return answer
9696

97-
@kernel_function(name="ChatWithCallTranscripts", description="Provides summaries or detailed explanations from the search index.")
98-
async def get_answers_from_calltranscripts(
97+
@kernel_function(name="GetCallInsights", description="Provides summaries, explanations, and insights from customer call transcripts.")
98+
async def get_call_insights(
9999
self,
100100
question: Annotated[str, "the question"]
101101
):
@@ -168,7 +168,7 @@ def replace_marker(match):
168168
return answer
169169

170170
@kernel_function(name="GenerateChartData", description="Generates Chart.js v4.4.4 compatible JSON data for data visualization requests using current and immediate previous context.")
171-
async def get_chart_data(
171+
async def generate_chart_data(
172172
self,
173173
input: Annotated[str, "The user's data visualization request along with relevant conversation history and context needed to generate appropriate chart data"],
174174
):

0 commit comments

Comments
 (0)