fix: remove hardcoded responses (#141)

This commit is contained in:
doria 2025-06-25 14:50:13 -04:00 committed by GitHub
parent 24bf8eeeb4
commit 2874e136fb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 5 deletions

View File

@ -1099,10 +1099,10 @@ async def get_working_representation(
latest_representation_obj = result.scalar_one_or_none()
latest_representation = (
latest_representation_obj.internal_metadata.get(
USER_REPRESENTATION_METADATA_KEY, "No user representation available."
USER_REPRESENTATION_METADATA_KEY, ""
)
if latest_representation_obj
else "No user representation available."
else ""
)
else:
# Fetch the latest global level user representation
@ -1116,10 +1116,10 @@ async def get_working_representation(
latest_representation_obj = result.scalar_one_or_none()
latest_representation = (
latest_representation_obj.internal_metadata.get(
USER_REPRESENTATION_METADATA_KEY, "No user representation available."
USER_REPRESENTATION_METADATA_KEY, ""
)
if latest_representation_obj
else "No user representation available."
else ""
)
return latest_representation

View File

@ -228,7 +228,7 @@ async def create_summary(
content=(
f"Conversation with {len(messages)} messages about {messages[-1].content[:30]}..."
if messages
else "No messages to summarize!"
else ""
),
message_count=0,
summary_type=summary_type.value,