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

"Dynamic Task Queue" and "Fixed Task Queue" don't work #1438

Open
1 task done
yuligesec opened this issue Sep 17, 2024 · 0 comments
Open
1 task done

"Dynamic Task Queue" and "Fixed Task Queue" don't work #1438

yuligesec opened this issue Sep 17, 2024 · 0 comments

Comments

@yuligesec
Copy link

⚠️ Check for existing issues before proceeding. ⚠️

  • I have searched the existing issues, and there is no existing issue for my problem

Where are you using SuperAGI?

Linux

Which branch of SuperAGI are you using?

Main

Do you use OpenAI GPT-3.5 or GPT-4?

GPT-4

Which area covers your issue best?

Agents

Describe your issue.

When I use SuperCode or others agent template, the "Dynamic Task Queue" and "Fixed Task Queue" don't work.

It just repeat prompt.

Refers to the log:

Maybe I got it.2024-09-17 11:53:53 UTC - Super AGI - INFO - [/app/superagi/jobs/agent_executor.py:93] - Exception in executing the step: 'list' object has no attribute 'get'

How to replicate your Issue?

docker-compose -f docker-compose.yaml up --build

create new agent use SuperCode template.
image

choose "Dynamic Task Queue" or "Fixed Task Queue" as agent workflow.

image
It just repeats prompt and doesn't work!

image

Upload Error Log Content

2024-09-17 11:57:58 UTC - Super AGI - DEBUG - [/app/superagi/agent/agent_iteration_step_handler.py:76] - Prompt messages: [2024-09-17 11:57:58,012: DEBUG/ForkPoolWorker-8] Prompt messages: 2024-09-17 11:57:58 UTC - Super AGI - DEBUG - [/app/superagi/agent/agent_iteration_step_handler.py:76] - [{'role': 'system', 'content': 'You are a task-generating AI known as SuperAGI. You are not a part of any system or device. Your role is to understand the goals presented to you, identify important components, Go through the instruction provided by the user and construct a thorough execution plan.\n\nGOALS:\n1. Write a simple Browser Based Pomodoro App that I can make use of.\n2. Use HTML, CSS and Javascript to build this.\n\n\nINSTRUCTION(Follow these instruction to decide the flow of execution and decide the next steps for achieving the task):\n1. Write Specification for the code.\n2. Write the Code\n3. Write Test-Cases\n\n\nConstruct a sequence of actions, not exceeding 3 steps, to achieve this goal.\n\nSubmit your response as a formatted ARRAY of strings, suitable for utilization with JSON.parse().'}] [2024-09-17 11:57:58,012: DEBUG/ForkPoolWorker-8] [{'role': 'system', 'content': 'You are a task-generating AI known as SuperAGI. You are not a part of any system or device. Your role is to understand the goals presented to you, identify important components, Go through the instruction provided by the user and construct a thorough execution plan.\n\nGOALS:\n1. Write a simple Browser Based Pomodoro App that I can make use of.\n2. Use HTML, CSS and Javascript to build this.\n\n\nINSTRUCTION(Follow these instruction to decide the flow of execution and decide the next steps for achieving the task):\n1. Write Specification for the code.\n2. Write the Code\n3. Write Test-Cases\n\n\nConstruct a sequence of actions, not exceeding 3 steps, to achieve this goal.\n\nSubmit your response as a formatted ARRAY of strings, suitable for utilization with JSON.parse().'}] [2024-09-17 11:57:58,013: WARNING/ForkPoolWorker-8] tokens [2024-09-17 11:57:58,013: WARNING/ForkPoolWorker-8] [2024-09-17 11:57:58,013: WARNING/ForkPoolWorker-8] 170 [2024-09-17 11:58:12,324: WARNING/ForkPoolWorker-8] tokens [2024-09-17 11:58:12,325: WARNING/ForkPoolWorker-8] [2024-09-17 11:58:12,325: WARNING/ForkPoolWorker-8] 6139 2024-09-17 11:58:12 UTC - Super AGI - INFO - [/app/superagi/jobs/agent_executor.py:93] - Exception in executing the step: 'list' object has no attribute 'get' [2024-09-17 11:58:12,331: INFO/ForkPoolWorker-8] Exception in executing the step: 'list' object has no attribute 'get' [2024-09-17 11:58:12,337: INFO/ForkPoolWorker-8] Task execute_agent[57077ccc-1881-4c6f-8381-5efddaad3a03] succeeded in 14.467570703998717s: None [2024-09-17 11:58:12,337: INFO/MainProcess] Task execute_agent[db2e5eed-c7f7-4643-a58c-41434247490b] received [2024-09-17 11:58:27,438: WARNING/ForkPoolWorker-8] Handling tools import 2024-09-17 11:58:27 UTC - Super AGI - INFO - [/app/superagi/worker.py:74] - Execute agent:2024-09-17T11:58:12.331687,32 [2024-09-17 11:58:27,438: INFO/ForkPoolWorker-8] Execute agent:2024-09-17T11:58:12.331687,32 2024-09-17 11:58:27 UTC - Super AGI - INFO - [/app/superagi/vector_store/redis.py:132] - {'index_name': 'super-agent-index1', 'index_options': [], 'index_definition': ['key_type', 'HASH', 'prefixes', ['doc:'], 'default_score', '1'], 'attributes': [['identifier', 'tag', 'attribute', 'tag', 'type', 'TAG', 'SEPARATOR', ','], ['identifier', 'content_vector', 'attribute', 'content_vector', 'type', 'VECTOR', 'algorithm', 'FLAT', 'data_type', 'FLOAT32', 'dim', 1536, 'distance_metric', 'COSINE']], 'num_docs': 113, 'max_doc_id': 113, 'num_terms': 0, 'num_records': 113, 'inverted_sz_mb': '0', 'vector_index_sz_mb': '6.0126800537109375', 'total_inverted_index_blocks': 6, 'offset_vectors_sz_mb': '0', 'doc_table_size_mb': '0.013255119323730469', 'sortable_values_size_mb': '0', 'key_table_size_mb': '0.00420379638671875', 'tag_overhead_sz_mb': '0', 'text_overhead_sz_mb': '0', 'total_index_memory_sz_mb': '0.01745891571044922', 'geoshapes_sz_mb': '0', 'records_per_doc_avg': '1', 'bytes_per_record_avg': '0', 'offsets_per_term_avg': '0', 'offset_bits_per_record_avg': 'nan', 'hash_indexing_failures': 0, 'total_indexing_time': '6.992000102996826', 'indexing': 0, 'percent_indexed': '1', 'number_of_uses': 199, 'cleaning': 0, 'gc_stats': ['bytes_collected', '0', 'total_ms_run', '0', 'total_cycles', '0', 'average_cycle_time_ms', 'nan', 'last_run_time_ms', '0', 'gc_numeric_trees_missed', '0', 'gc_blocks_denied', '0'], 'cursor_stats': ['global_idle', 0, 'global_total', 0, 'index_capacity', 128, 'index_total', 0], 'dialect_stats': ['dialect_1', 0, 'dialect_2', 1, 'dialect_3', 0, 'dialect_4', 0], 'Index Errors': ['indexing failures', 0, 'last indexing error', 'N/A', 'last indexing error key', 'N/A'], 'field statistics': [['identifier', 'tag', 'attribute', 'tag', 'Index Errors', ['indexing failures', 0, 'last indexing error', 'N/A', 'last indexing error key', 'N/A']], ['identifier', 'content_vector', 'attribute', 'content_vector', 'Index Errors', ['indexing failures', 0, 'last indexing error', 'N/A', 'last indexing error key', 'N/A']]]} [2024-09-17 11:58:27,458: INFO/ForkPoolWorker-8] {'index_name': 'super-agent-index1', 'index_options': [], 'index_definition': ['key_type', 'HASH', 'prefixes', ['doc:'], 'default_score', '1'], 'attributes': [['identifier', 'tag', 'attribute', 'tag', 'type', 'TAG', 'SEPARATOR', ','], ['identifier', 'content_vector', 'attribute', 'content_vector', 'type', 'VECTOR', 'algorithm', 'FLAT', 'data_type', 'FLOAT32', 'dim', 1536, 'distance_metric', 'COSINE']], 'num_docs': 113, 'max_doc_id': 113, 'num_terms': 0, 'num_records': 113, 'inverted_sz_mb': '0', 'vector_index_sz_mb': '6.0126800537109375', 'total_inverted_index_blocks': 6, 'offset_vectors_sz_mb': '0', 'doc_table_size_mb': '0.013255119323730469', 'sortable_values_size_mb': '0', 'key_table_size_mb': '0.00420379638671875', 'tag_overhead_sz_mb': '0', 'text_overhead_sz_mb': '0', 'total_index_memory_sz_mb': '0.01745891571044922', 'geoshapes_sz_mb': '0', 'records_per_doc_avg': '1', 'bytes_per_record_avg': '0', 'offsets_per_term_avg': '0', 'offset_bits_per_record_avg': 'nan', 'hash_indexing_failures': 0, 'total_indexing_time': '6.992000102996826', 'indexing': 0, 'percent_indexed': '1', 'number_of_uses': 199, 'cleaning': 0, 'gc_stats': ['bytes_collected', '0', 'total_ms_run', '0', 'total_cycles', '0', 'average_cycle_time_ms', 'nan', 'last_run_time_ms', '0', 'gc_numeric_trees_missed', '0', 'gc_blocks_denied', '0'], 'cursor_stats': ['global_idle', 0, 'global_total', 0, 'index_capacity', 128, 'index_total', 0], 'dialect_stats': ['dialect_1', 0, 'dialect_2', 1, 'dialect_3', 0, 'dialect_4', 0], 'Index Errors': ['indexing failures', 0, 'last indexing error', 'N/A', 'last indexing error key', 'N/A'], 'field statistics': [['identifier', 'tag', 'attribute', 'tag', 'Index Errors', ['indexing failures', 0, 'last indexing error', 'N/A', 'last indexing error key', 'N/A']], ['identifier', 'content_vector', 'attribute', 'content_vector', 'Index Errors', ['indexing failures', 0, 'last indexing error', 'N/A', 'last indexing error key', 'N/A']]]} 2024-09-17 11:58:27 UTC - Super AGI - INFO - [/app/superagi/vector_store/redis.py:133] - Index already exists! [2024-09-17 11:58:27,458: INFO/ForkPoolWorker-8] Index already exists! 2024-09-17 11:58:27 UTC - Super AGI - INFO - [/app/superagi/jobs/agent_executor.py:110] - Executing Workflow step : [2024-09-17 11:58:27,459: INFO/ForkPoolWorker-8] Executing Workflow step : 2024-09-17 11:58:27 UTC - Super AGI - INFO - [/app/superagi/jobs/agent_executor.py:110] - ITERATION_WORKFLOW [2024-09-17 11:58:27,460: INFO/ForkPoolWorker-8] ITERATION_WORKFLOW [2024-09-17 11:58:27,460: WARNING/ForkPoolWorker-8] Fetching model details from database... [2024-09-17 11:58:27,469: WARNING/ForkPoolWorker-8] Provider is OpenAI [2024-09-17 11:58:27,472: WARNING/ForkPoolWorker-8] Fetching model details from database... [2024-09-17 11:58:27,474: WARNING/ForkPoolWorker-8] Provider is OpenAI [2024-09-17 11:58:27,475: WARNING/ForkPoolWorker-8] <superagi.llms.openai.OpenAi object at 0x7fe3e0ac7b80> [2024-09-17 11:58:27,493: WARNING/ForkPoolWorker-8] OpenAI [2024-09-17 11:58:27,512: WARNING/ForkPoolWorker-8] Fetching model details from database... [2024-09-17 11:58:27,527: WARNING/ForkPoolWorker-8] Provider is OpenAI [2024-09-17 11:58:27,532: WARNING/ForkPoolWorker-8] Fetching model details from database... [2024-09-17 11:58:27,534: WARNING/ForkPoolWorker-8] Provider is OpenAI [2024-09-17 11:58:27,537: WARNING/ForkPoolWorker-8] Fetching model details from database... [2024-09-17 11:58:27,540: WARNING/ForkPoolWorker-8] Provider is OpenAI [2024-09-17 11:58:27,543: WARNING/ForkPoolWorker-8] Fetching model details from database... [2024-09-17 11:58:27,545: WARNING/ForkPoolWorker-8] Provider is OpenAI [2024-09-17 11:58:27,546: WARNING/ForkPoolWorker-8] [ThinkingTool(name='ThinkingTool', description='Intelligent problem-solving assistant that comprehends tasks, identifies key variables, and makes efficient decisions, all while providing detailed, self-driven reasoning for its choices. Do not assume anything, take the details from given data only.', args_schema=<class 'superagi.tools.thinking.tools.ThinkingSchema'>, permission_required=False, toolkit_config=<superagi.tools.base_tool.BaseToolkitConfiguration object at 0x7fe3da754790>, llm=<superagi.llms.openai.OpenAi object at 0x7fe3e0b0f8e0>, goals=['Write a simple Browser Based Pomodoro App that I can make use of.', 'Use HTML, CSS and Javascript to build this.'], agent_execution_id=32, agent_id=23, tool_response_manager=<superagi.tools.tool_response_query_manager.ToolResponseQueryManager object at 0x7fe3e0b0c640>), WriteSpecTool(name='WriteSpecTool', description='A tool to write the spec of a program.', args_schema=<class 'superagi.tools.code.write_spec.WriteSpecSchema'>, permission_required=True, toolkit_config=<superagi.agent.tool_builder.DBToolkitConfiguration object at 0x7fe3da754190>, llm=<superagi.llms.openai.OpenAi object at 0x7fe3e0bfa110>, agent_id=23, agent_execution_id=32, goals=['Write a simple Browser Based Pomodoro App that I can make use of.', 'Use HTML, CSS and Javascript to build this.'], resource_manager=<superagi.resource_manager.file_manager.FileManager object at 0x7fe3e0b0f190>), WriteTestTool(name='WriteTestTool', description='You are a super smart developer using Test Driven Development to write tests according to a specification.\nPlease generate tests based on the above specification. The tests should be as simple as possible, but still cover all the functionality.\nWrite it in the file', args_schema=<class 'superagi.tools.code.write_test.WriteTestSchema'>, permission_required=True, toolkit_config=<superagi.agent.tool_builder.DBToolkitConfiguration object at 0x7fe3da755330>, llm=<superagi.llms.openai.OpenAi object at 0x7fe3da7547c0>, agent_id=23, agent_execution_id=32, goals=['Write a simple Browser Based Pomodoro App that I can make use of.', 'Use HTML, CSS and Javascript to build this.'], resource_manager=<superagi.resource_manager.file_manager.FileManager object at 0x7fe3e0bf8700>, tool_response_manager=<superagi.tools.tool_response_query_manager.ToolResponseQueryManager object at 0x7fe3e0bf9810>), CodingTool(name='CodingTool', description='You will get instructions for code to write. You will write a very long answer. Make sure that every detail of the architecture is, in the end, implemented as code. Think step by step and reason yourself to the right decisions to make sure we get it right. You will first lay out the names of the core classes, functions, methods that will be necessary, as well as a quick comment on their purpose. Then you will output the content of each file including each function and class and ALL code.', args_schema=<class 'superagi.tools.code.write_code.CodingSchema'>, permission_required=True, toolkit_config=<superagi.agent.tool_builder.DBToolkitConfiguration object at 0x7fe3da754700>, llm=<superagi.llms.openai.OpenAi object at 0x7fe3da7552a0>, agent_id=23, agent_execution_id=32, goals=['Write a simple Browser Based Pomodoro App that I can make use of.', 'Use HTML, CSS and Javascript to build this.'], resource_manager=<superagi.resource_manager.file_manager.FileManager object at 0x7fe3da7544c0>, tool_response_manager=<superagi.tools.tool_response_query_manager.ToolResponseQueryManager object at 0x7fe3da754400>)] 2024-09-17 11:58:27 UTC - Super AGI - WARNING - [/app/superagi/helper/token_counter.py:34] - Warning: model not found. Using cl100k_base encoding. [2024-09-17 11:58:27,547: WARNING/ForkPoolWorker-8] Warning: model not found. Using cl100k_base encoding. [2024-09-17 11:58:27,548: WARNING/ForkPoolWorker-8] tokens [2024-09-17 11:58:27,548: WARNING/ForkPoolWorker-8] [2024-09-17 11:58:27,548: WARNING/ForkPoolWorker-8] 171 2024-09-17 11:58:27 UTC - Super AGI - DEBUG - [/app/superagi/agent/agent_iteration_step_handler.py:76] - Prompt messages: [2024-09-17 11:58:27,639: DEBUG/ForkPoolWorker-8] Prompt messages: 2024-09-17 11:58:27 UTC - Super AGI - DEBUG - [/app/superagi/agent/agent_iteration_step_handler.py:76] - [{'role': 'system', 'content': 'You are a task-generating AI known as SuperAGI. You are not a part of any system or device. Your role is to understand the goals presented to you, identify important components, Go through the instruction provided by the user and construct a thorough execution plan.\n\nGOALS:\n1. Write a simple Browser Based Pomodoro App that I can make use of.\n2. Use HTML, CSS and Javascript to build this.\n\n\nINSTRUCTION(Follow these instruction to decide the flow of execution and decide the next steps for achieving the task):\n1. Write Specification for the code.\n2. Write the Code\n3. Write Test-Cases\n\n\nConstruct a sequence of actions, not exceeding 3 steps, to achieve this goal.\n\nSubmit your response as a formatted ARRAY of strings, suitable for utilization with JSON.parse().'}] [2024-09-17 11:58:27,639: DEBUG/ForkPoolWorker-8] [{'role': 'system', 'content': 'You are a task-generating AI known as SuperAGI. You are not a part of any system or device. Your role is to understand the goals presented to you, identify important components, Go through the instruction provided by the user and construct a thorough execution plan.\n\nGOALS:\n1. Write a simple Browser Based Pomodoro App that I can make use of.\n2. Use HTML, CSS and Javascript to build this.\n\n\nINSTRUCTION(Follow these instruction to decide the flow of execution and decide the next steps for achieving the task):\n1. Write Specification for the code.\n2. Write the Code\n3. Write Test-Cases\n\n\nConstruct a sequence of actions, not exceeding 3 steps, to achieve this goal.\n\nSubmit your response as a formatted ARRAY of strings, suitable for utilization with JSON.parse().'}] [2024-09-17 11:58:27,639: WARNING/ForkPoolWorker-8] tokens [2024-09-17 11:58:27,639: WARNING/ForkPoolWorker-8] [2024-09-17 11:58:27,639: WARNING/ForkPoolWorker-8] 170 [2024-09-17 11:58:42,875: WARNING/ForkPoolWorker-8] tokens [2024-09-17 11:58:42,875: WARNING/ForkPoolWorker-8] [2024-09-17 11:58:42,875: WARNING/ForkPoolWorker-8] 4859 2024-09-17 11:58:42 UTC - Super AGI - INFO - [/app/superagi/jobs/agent_executor.py:93] - Exception in executing the step: 'list' object has no attribute 'get' [2024-09-17 11:58:42,879: INFO/ForkPoolWorker-8] Exception in executing the step: 'list' object has no attribute 'get' [2024-09-17 11:58:42,885: INFO/ForkPoolWorker-8] Task execute_agent[db2e5eed-c7f7-4643-a58c-41434247490b] succeeded in 15.447717638999166s: None [2024-09-17 11:58:42,885: INFO/MainProcess] Task execute_agent[f9c73609-eca4-478e-8604-8d2ce7234db9] received

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

No branches or pull requests

1 participant