Skip to content

Commit 8b7782e

Browse files
committed
Fix variable name issue.
1 parent 7c4307e commit 8b7782e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

python/semantic_kernel/core_skills/conversation_summary_skill.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ class ConversationSummarySkill:
1313
"""
1414

1515
# The max tokens to process in a single semantic function call.
16-
MaxTokens = 1024
16+
_max_tokens = 1024
1717

18-
SummarizeConversationPromptTemplate = (
18+
_summarize_conversation_prompt_template = (
1919
"BEGIN CONTENT TO SUMMARIZE:\n"
2020
"{{" + "$INPUT" + "}}\n"
2121
"END CONTENT TO SUMMARIZE.\n"
@@ -28,10 +28,10 @@ class ConversationSummarySkill:
2828

2929
def __init__(self, kernel: Kernel):
3030
self._summarizeConversationFunction = kernel.create_semantic_function(
31-
ConversationSummarySkill.SummarizeConversationPromptTemplate,
31+
ConversationSummarySkill._summarize_conversation_prompt_template,
3232
skill_name=ConversationSummarySkill.__name__,
3333
description="Given a section of a conversation transcript, summarize the part of the conversation.",
34-
max_tokens=ConversationSummarySkill.MaxTokens,
34+
max_tokens=ConversationSummarySkill._max_tokens,
3535
temperature=0.1,
3636
top_p=0.5,
3737
)
@@ -52,10 +52,10 @@ async def summarize_conversation_async(
5252
:return: SKContext with the summarized conversation result.
5353
"""
5454
lines = text_chunker._split_text_lines(
55-
input, ConversationSummarySkill.MaxTokens, True
55+
input, ConversationSummarySkill._max_tokens, True
5656
)
5757
paragraphs = text_chunker._split_text_paragraph(
58-
lines, ConversationSummarySkill.MaxTokens
58+
lines, ConversationSummarySkill._max_tokens
5959
)
6060

6161
return await aggregate_chunked_results_async(

0 commit comments

Comments
 (0)