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

Fix order of Config.save_task_output args #59

Merged
merged 1 commit into from
Apr 23, 2023

Conversation

eraviart
Copy link
Contributor

The order of Config.save_task_output parameters where changed by commit 7c667d6, but the order of the calling arguments where not changed. This commit fixes this.

The exception was:

Traceback (most recent call last):
  File "/usr/lib/python3.9/threading.py", line 954, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.9/threading.py", line 892, in run
    self._target(*self._args, **self._kwargs)
  File "~/agent-llm/AgentLLM.py", line 282, in run_task
    task = self.execute_next_task()
  File "~/agent-llm/AgentLLM.py", line 257, in execute_next_task
    self.response = self.execution_agent(self.primary_objective, this_task_name, this_task_id)
  File "~/agent-llm/AgentLLM.py", line 229, in execution_agent
    self.update_output_list(f"Execution agent response:\n\n{self.response}")
  File "~/agent-llm/AgentLLM.py", line 148, in update_output_list
    self.CFG.save_task_output(self.agent_name, task_id, output)
  File "~/agent-llm/Config.py", line 301, in save_task_output
    with open(task_output_file, "w") as f:
OSError: [Errno 36] File name too long: 'agents/default/task/Execution agent response:\n\n Q: You are an AI...'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants