Skip to content

Commit 31eca40

Browse files
committed
fix: testing summary
1 parent 4c81531 commit 31eca40

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/agents/informational_agent/informational_agent.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ def summarize_conversation(self, state: State, config: RunnableConfig) -> dict:
124124
# STEP 1: Summarize the conversation
125125
messages = [SystemMessage(content=summary_message)] + state["messages"][:-1]
126126
valid_messages = self.check_for_valid_messages(messages)
127+
print(f"valid_messages SUMMARY:: {valid_messages.join(' ')}")
127128
summary_response = self.summarisation_llm.invoke(valid_messages)
128129

129130
# STEP 2: Analyze the conversational style

src/agents/informational_agent/informational_prompts.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,13 @@
133133
Structured: Organize the summary into sections such as 'Topics Discussed' and 'Top 3 Key Detailed Ideas'.
134134
Neutral and Accurate: Avoid adding interpretations or opinions; focus only on the content shared.
135135
When summarizing: If the conversation is technical, highlight significant concepts, solutions, and terminology. If context involves problem-solving, detail the problem and the steps or solutions provided. If the user asks for creative input, briefly describe the ideas presented.
136-
Last messages: Include the most recent 4 messages to provide context for the summary.
136+
Last messages: Include the most recent 5 messages to provide context for the summary.
137137
138138
Provide the summary in a bulleted format for clarity. Avoid redundant details while preserving the core intent of the discussion."""
139139

140-
summary_prompt = f"""Summarize the conversation between a student and a tutor. Your summary should highlight the major topics discussed during the session, followed by a detailed recollection of the last five significant points or ideas. Ensure the summary flows smoothly to maintain the continuity of the discussion."""
140+
summary_prompt = f"""Summarize the conversation between a student and a tutor. Your summary should highlight the major topics discussed during the session, followed by a detailed recollection of the last five significant points or ideas. Ensure the summary flows smoothly to maintain the continuity of the discussion.
141+
142+
{summary_guidelines}"""
141143

142144
update_summary_prompt = f"""Update the summary by taking into account the new messages above.
143145

0 commit comments

Comments
 (0)