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

Implement Logging of User Input in logs/Debug Folder #3867

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
8 changes: 8 additions & 0 deletions autogpt/agent/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from autogpt.log_cycle.log_cycle import (
FULL_MESSAGE_HISTORY_FILE_NAME,
NEXT_ACTION_FILE_NAME,
USER_INPUT_FILE_NAME,
LogCycleHandler,
)
from autogpt.logs import logger, print_assistant_thoughts
Expand Down Expand Up @@ -215,6 +216,13 @@ def start_interaction_loop(self):
else:
user_input = console_input
command_name = "human_feedback"
self.log_cycle_handler.log_cycle(
self.config.ai_name,
self.created_at,
self.cycle_count,
user_input,
USER_INPUT_FILE_NAME,
)
break

if user_input == "GENERATE NEXT COMMAND JSON":
Expand Down
1 change: 1 addition & 0 deletions autogpt/log_cycle/log_cycle.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
NEXT_ACTION_FILE_NAME = "next_action.json"
PROMPT_SUMMARY_FILE_NAME = "prompt_summary.json"
SUMMARY_FILE_NAME = "summary.txt"
USER_INPUT_FILE_NAME = "user_input.txt"


class LogCycleHandler:
Expand Down