AutoGPT icon indicating copy to clipboard operation
AutoGPT copied to clipboard

Log ai_settings.yaml in logs/DEBUG/[TIMESTAMP_AGENT_NAME]/001/ 0_ai_settings.yaml

Open waynehamadi opened this issue 2 years ago • 1 comments
trafficstars

Duplicates

  • [X] I have searched the existing issues

Summary 💡

if we put the ai_settings in the logs/DEBUG we will easily be able to reproduce people's bugs. Log ai_settings.yaml in logs/DEBUG/[TIMESTAMP_AGENT_NAME]/001/ 0_ai_settings.yaml

todo: in agent.py just before:

self.log_cycle_handler.log_cycle(
                self.config.ai_name,
                self.created_at,
                self.cycle_count,
                self.full_message_history,
                FULL_MESSAGE_HISTORY_FILE_NAME,
            )

call self.log_cycle_handler but pass the ai_settings instead.

Make sure you test your changes by running python -m autogpt --debug

Examples 🌈

No response

Motivation 🔦

No response

waynehamadi avatar May 07 '23 15:05 waynehamadi

agreed regarding the usefulness, but that is a potential privacy issue, so people should explicitly be told what info is in there. This is now also heavily overlapping with requirements to support multiple projects as per #3549 and #3039

The background here being, the requirements are very much overlapping and for devs/contributors to be able to reproduce a certain setup, it would obviously be helpful to just hand a certain folder over to agpt and tell it to treat it as its workspace, but also to look for its ai_settings.yaml file in it - at that point, we'd basically have multi-project support (via sub-directories) but also a capability to reproduce issues (as long as the yaml file doesn't have implicit assumptions about data in the workspace) - that being said, providing an option to also zip up the workspace itself would make sense to get more/better data that can be more easily reproduced

Boostrix avatar May 07 '23 15:05 Boostrix

This issue has automatically been marked as stale because it has not had any activity in the last 50 days. You can unstale it by commenting or removing the label. Otherwise, this issue will be closed in 10 days.

github-actions[bot] avatar Sep 06 '23 20:09 github-actions[bot]

This issue was closed automatically because it has been stale for 10 days with no activity.

github-actions[bot] avatar Sep 18 '23 01:09 github-actions[bot]