Skip to content

Commit

Permalink
New attachments recognized by GC (microsoft#277)
Browse files Browse the repository at this point in the history
- Allows GC to recognize new attachments via user message.
- GC already setup to set user decision to update_outline as a result.
- Immediately moves on to updating outline with new attachment content.
momuno authored Dec 3, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 125ffb5 commit a456f82
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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.
Original file line number Diff line number Diff line change
@@ -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,
)

0 comments on commit a456f82

Please sign in to comment.