Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New attachments recognized by GC #277

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class ArtifactModel(BaseModel):
a. At any time, if the user asks for a change to the outline, the conversation_status must be
marked as user_completed. The user_decision must be marked as update_outline. The final_response
must inform the user that a new outline is being generated based off the request.
b. At any time, if the user has provided new attachments (detected via the filenames in the artifact),
b. At any time, if the user has provided new attachments (detected via `Newly attached files:` in the user message),
the conversation_status must be marked as user_completed. The user_decision must be marked as
update_outline. The final_response must inform the user that a new outline is being generated based
on the addition of new attachments.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -941,6 +941,13 @@ async def _gc_outline_feedback(
user_message = None
else:
user_message = message.content

# if any files attached with message, include in user_message for GC knowledge:
if len(message.filenames) != 0:
user_message = user_message + " Newly attached files: "
filenames = ", ".join(message.filenames)
user_message = user_message + filenames

response_message, conversation_status, next_step_name = await guided_conversation.step_conversation(
last_user_message=user_message,
)
Expand Down
Loading