Open KastanDay opened 1 year ago
Remote functions cannot be called directly. Instead of running 'ai_ta_backend.agents.github_webhook_handlers.post_comment()', try 'ai_ta_backend.agents.github_webhook_handlers.post_comment.remote()'.
Thanks for opening a new issue! I'll now try to finish this implementation and open a PR for you to review.
You can monitor the LangSmith trace here.
I created a new branch for my work: main
.
Feel free to comment in this thread to give me additional instructions, or I'll tag you in a comment if I get stuck. If I think I'm successful I'll 'request your review' on the resulting PR. Just watch for emails while I work.
Thanks for opening a new issue! I'll now try to finish this implementation and open a PR for you to review.
You can monitor the LangSmith trace here.
Feel free to comment in this thread to give me additional instructions, or I'll tag you in a comment if I get stuck. If I think I'm successful I'll 'request your review' on the resulting PR. Just watch for emails while I work.
Thanks for opening a new issue! I'll now try to finish this implementation and open a PR for you to review.
You can monitor the LangSmith trace here.
Feel free to comment in this thread to give me additional instructions, or I'll tag you in a comment if I get stuck. If I think I'm successful I'll 'request your review' on the resulting PR. Just watch for emails while I work.
Error in handle_issue_opened: name 'unique_branch_name' is not defined Traceback
Traceback (most recent call last):
File "/Users/kastanday/code/ncsa/ai-ta/ai-ta-backend/ai_ta_backend/agents/github_webhook_handlers.py", line 77, in handle_issue_opened
result_futures.append(bot.launch_gh_agent.remote(prompt, active_branch=unique_branch_name, run_id_in_metadata=run_id_in_metadata))
NameError: name 'unique_branch_name' is not defined
Thanks for opening a new issue! I'll now try to finish this implementation and open a PR for you to review.
You can monitor the LangSmith trace here.
Feel free to comment in this thread to give me additional instructions, or I'll tag you in a comment if I get stuck. If I think I'm successful I'll 'request your review' on the resulting PR. Just watch for emails while I work.
Error in handle_issue_opened: [36mray::post_comment()[39m (pid=84597, ip=127.0.0.1)
File "/Users/kastanday/code/ncsa/ai-ta/ai-ta-backend/ai_ta_backend/agents/github_webhook_handlers.py", line 215, in post_comment
issue_or_pr.create_comment(text)
File "/Users/kastanday/miniforge3/envs/flask10_py10/lib/python3.10/site-packages/github/Issue.py", line 286, in create_comment
assert isinstance(body, str), body
AssertionError: {'input': 'Please implement these changes by creating or editing the necessary files. \n\n1. First use read_file to read any files in the repo that seem relevant. \n2. Then, when you\'re ready, start implementing changes by creating and updating files. Implement any and all remaining code to make the project work as the commenter intended. \n2. The last step is to create a PR with a clear and concise title and description, list any concerns or final changes necessary in the PR body.\n3. After opening the PR, comment on the original issue and mention the new PR your just opened, you must comment "I opened a PR for you to review here #
Traceback (most recent call last):
File "/Users/kastanday/code/ncsa/ai-ta/ai-ta-backend/ai_ta_backend/agents/github_webhook_handlers.py", line 90, in handle_issue_opened
ray.get(post_comment.remote(issue_or_pr=issue, text=result, time_delay_s=0))
File "/Users/kastanday/miniforge3/envs/flask10_py10/lib/python3.10/site-packages/ray/_private/auto_init_hook.py", line 24, in auto_init_wrapper
return fn(*args, **kwargs)
File "/Users/kastanday/miniforge3/envs/flask10_py10/lib/python3.10/site-packages/ray/_private/client_mode_hook.py", line 103, in wrapper
return func(*args, **kwargs)
File "/Users/kastanday/miniforge3/envs/flask10_py10/lib/python3.10/site-packages/ray/_private/worker.py", line 2547, in get
raise value.as_instanceof_cause()
ray.exceptions.RayTaskError(AssertionError): [36mray::post_comment()[39m (pid=84597, ip=127.0.0.1)
File "/Users/kastanday/code/ncsa/ai-ta/ai-ta-backend/ai_ta_backend/agents/github_webhook_handlers.py", line 215, in post_comment
issue_or_pr.create_comment(text)
File "/Users/kastanday/miniforge3/envs/flask10_py10/lib/python3.10/site-packages/github/Issue.py", line 286, in create_comment
assert isinstance(body, str), body
AssertionError: {'input': 'Please implement these changes by creating or editing the necessary files. \n\n1. First use read_file to read any files in the repo that seem relevant. \n2. Then, when you\'re ready, start implementing changes by creating and updating files. Implement any and all remaining code to make the project work as the commenter intended. \n2. The last step is to create a PR with a clear and concise title and description, list any concerns or final changes necessary in the PR body.\n3. After opening the PR, comment on the original issue and mention the new PR your just opened, you must comment "I opened a PR for you to review here #<PR_NUMBER>" (it\'ll be something like #30). That hashtag syntax will automatically link to the PR, as necessary. Thanks.\n4. If you feel the PR is satisfactory for completing your assignment, create a review request for the original user that opened the issue. Use their username to tag them.\n\nFeel free to ask for help or leave a comment on the Issue or PR if you\'re stuck.\n\nHere\'s your latest assignment: Title: Create a full command line executable workflow for RNA-Seq on PBMC Samples. Open a new pull request (on a separate branch) and comment the PR number here when you\'re done.\n\nOpened by user: KastanDay\nBody: Experiment Type:\r\nRNA-Seq\r\nSequencing of total cellular RNA\r\n\r\nWorkflow Management:\r\nBash/SLURM\r\nScripting and job scheduling\r\n\r\nSoftware Stack:\r\nFastQC\r\nMultiQC\r\nSTAR\r\nRSEM\r\nsamtools\r\nDESeq2\r\n\r\nWhat else to know about the pipeline?\r\nI am working PBMC samples collected from patients that are undergoing immunotherapy.\r\n\r\nUse the data files existing in [Report_WholeBrain](https://github.com/KastanDay/ML4Bio/tree/main/Report_WholeBrain) as input for this workflow.\r\n\r\nYou should write a series of bash scripts and R scripts that can accomplish this task. Open a PR with those scripts when you\'re done.', 'chat_history': [HumanMessage(content='Please implement these changes by creating or editing the necessary files. \n\n1. First use read_file to read any files in the repo that seem relevant. \n2. Then, when you\'re ready, start implementing changes by creating and updating files. Implement any and all remaining code to make the project work as the commenter intended. \n2. The last step is to create a PR with a clear and concise title and description, list any concerns or final changes necessary in the PR body.\n3. After opening the PR, comment on the original issue and mention the new PR your just opened, you must comment "I opened a PR for you to review here #<PR_NUMBER>" (it\'ll be something like #30). That hashtag syntax will automatically link to the PR, as necessary. Thanks.\n4. If you feel the PR is satisfactory for completing your assignment, create a review request for the original user that opened the issue. Use their username to tag them.\n\nFeel free to ask for help or leave a comment on the Issue or PR if you\'re stuck.\n\nHere\'s your latest assignment: Title: Create a full command line executable workflow for RNA-Seq on PBMC Samples. Open a new pull request (on a separate branch) and comment the PR number here when you\'re done.\n\nOpened by user: KastanDay\nBody: Experiment Type:\r\nRNA-Seq\r\nSequencing of total cellular RNA\r\n\r\nWorkflow Management:\r\nBash/SLURM\r\nScripting and job scheduling\r\n\r\nSoftware Stack:\r\nFastQC\r\nMultiQC\r\nSTAR\r\nRSEM\r\nsamtools\r\nDESeq2\r\n\r\nWhat else to know about the pipeline?\r\nI am working PBMC samples collected from patients that are undergoing immunotherapy.\r\n\r\nUse the data files existing in [Report_WholeBrain](https://github.com/KastanDay/ML4Bio/tree/main/Report_WholeBrain) as input for this workflow.\r\n\r\nYou should write a series of bash scripts and R scripts that can accomplish this task. Open a PR with those scripts when you\'re done.'), AIMessage(content="The 'multiqc.sh' script has been created successfully. This script will run MultiQC on the FastQC reports in the specified input directory and output the MultiQC report to the specified output directory.\n\nNext, I will")], 'output': "The 'multiqc.sh' script has been created successfully. This script will run MultiQC on the FastQC reports in the specified input directory and output the MultiQC report to the specified output directory.\n\nNext, I will"}
Thanks for opening a new issue! I'll now try to finish this implementation and open a PR for you to review.
You can monitor the LangSmith trace here.
Feel free to comment in this thread to give me additional instructions, or I'll tag you in a comment if I get stuck. If I think I'm successful I'll 'request your review' on the resulting PR. Just watch for emails while I work.
Error in handle_issue_opened: [36mray::post_sharable_url()[39m (pid=85187, ip=127.0.0.1) File "/Users/kastanday/code/ncsa/ai-ta/ai-ta-backend/ai_ta_backend/agents/github_webhook_handlers.py", line 234, in post_sharable_url sharable_url = get_langsmith_trace_sharable_url(run_id_in_metadata, time_delay_s=time_delay_s) File "/Users/kastanday/code/ncsa/ai-ta/ai-ta-backend/ai_ta_backend/agents/utils.py", line 120, in get_langsmith_trace_sharable_url run = get_langsmit_run_from_metadata(run_id_in_metadata) File "/Users/kastanday/code/ncsa/ai-ta/ai-ta-backend/ai_ta_backend/agents/utils.py", line 93, in get_langsmit_run_from_metadata if run.extra.get('metadata').get(metadata_key) == metadata_value: AttributeError: 'NoneType' object has no attribute 'get' Traceback
Traceback (most recent call last):
File "/Users/kastanday/code/ncsa/ai-ta/ai-ta-backend/ai_ta_backend/agents/github_webhook_handlers.py", line 83, in handle_issue_opened
result = ray.get(ready[0])
File "/Users/kastanday/miniforge3/envs/flask10_py10/lib/python3.10/site-packages/ray/_private/auto_init_hook.py", line 24, in auto_init_wrapper
return fn(*args, **kwargs)
File "/Users/kastanday/miniforge3/envs/flask10_py10/lib/python3.10/site-packages/ray/_private/client_mode_hook.py", line 103, in wrapper
return func(*args, **kwargs)
File "/Users/kastanday/miniforge3/envs/flask10_py10/lib/python3.10/site-packages/ray/_private/worker.py", line 2547, in get
raise value.as_instanceof_cause()
ray.exceptions.RayTaskError(AttributeError): [36mray::post_sharable_url()[39m (pid=85187, ip=127.0.0.1)
File "/Users/kastanday/code/ncsa/ai-ta/ai-ta-backend/ai_ta_backend/agents/github_webhook_handlers.py", line 234, in post_sharable_url
sharable_url = get_langsmith_trace_sharable_url(run_id_in_metadata, time_delay_s=time_delay_s)
File "/Users/kastanday/code/ncsa/ai-ta/ai-ta-backend/ai_ta_backend/agents/utils.py", line 120, in get_langsmith_trace_sharable_url
run = get_langsmit_run_from_metadata(run_id_in_metadata)
File "/Users/kastanday/code/ncsa/ai-ta/ai-ta-backend/ai_ta_backend/agents/utils.py", line 93, in get_langsmit_run_from_metadata
if run.extra.get('metadata').get(metadata_key) == metadata_value:
AttributeError: 'NoneType' object has no attribute 'get'
Thanks for opening a new issue! I'll now try to finish this implementation and open a PR for you to review.
You can monitor the LangSmith trace here.
Feel free to comment in this thread to give me additional instructions, or I'll tag you in a comment if I get stuck. If I think I'm successful I'll 'request your review' on the resulting PR. Just watch for emails while I work.
Error in handle_issue_opened: [36mray::post_sharable_url()[39m (pid=85551, ip=127.0.0.1) File "/Users/kastanday/code/ncsa/ai-ta/ai-ta-backend/ai_ta_backend/agents/github_webhook_handlers.py", line 234, in post_sharable_url sharable_url = get_langsmith_trace_sharable_url(run_id_in_metadata, time_delay_s=time_delay_s) File "/Users/kastanday/code/ncsa/ai-ta/ai-ta-backend/ai_ta_backend/agents/utils.py", line 122, in get_langsmith_trace_sharable_url if not langsmith_client.run_is_shared(run.id): AttributeError: 'NoneType' object has no attribute 'id' Traceback
Traceback (most recent call last):
File "/Users/kastanday/code/ncsa/ai-ta/ai-ta-backend/ai_ta_backend/agents/github_webhook_handlers.py", line 83, in handle_issue_opened
result = ray.get(ready[0])
File "/Users/kastanday/miniforge3/envs/flask10_py10/lib/python3.10/site-packages/ray/_private/auto_init_hook.py", line 24, in auto_init_wrapper
return fn(*args, **kwargs)
File "/Users/kastanday/miniforge3/envs/flask10_py10/lib/python3.10/site-packages/ray/_private/client_mode_hook.py", line 103, in wrapper
return func(*args, **kwargs)
File "/Users/kastanday/miniforge3/envs/flask10_py10/lib/python3.10/site-packages/ray/_private/worker.py", line 2547, in get
raise value.as_instanceof_cause()
ray.exceptions.RayTaskError(AttributeError): [36mray::post_sharable_url()[39m (pid=85551, ip=127.0.0.1)
File "/Users/kastanday/code/ncsa/ai-ta/ai-ta-backend/ai_ta_backend/agents/github_webhook_handlers.py", line 234, in post_sharable_url
sharable_url = get_langsmith_trace_sharable_url(run_id_in_metadata, time_delay_s=time_delay_s)
File "/Users/kastanday/code/ncsa/ai-ta/ai-ta-backend/ai_ta_backend/agents/utils.py", line 122, in get_langsmith_trace_sharable_url
if not langsmith_client.run_is_shared(run.id):
AttributeError: 'NoneType' object has no attribute 'id'
Thanks for opening a new issue! I'll now try to finish this implementation and open a PR for you to review.
You can monitor the LangSmith trace here.
Feel free to comment in this thread to give me additional instructions, or I'll tag you in a comment if I get stuck. If I think I'm successful I'll 'request your review' on the resulting PR. Just watch for emails while I work.
Error in handle_issue_opened: [36mray::post_sharable_url()[39m (pid=86302, ip=127.0.0.1) File "/Users/kastanday/code/ncsa/ai-ta/ai-ta-backend/ai_ta_backend/agents/github_webhook_handlers.py", line 234, in post_sharable_url sharable_url = get_langsmith_trace_sharable_url(run_id_in_metadata, time_delay_s=time_delay_s) File "/Users/kastanday/code/ncsa/ai-ta/ai-ta-backend/ai_ta_backend/agents/utils.py", line 127, in get_langsmith_trace_sharable_url if not langsmith_client.run_is_shared(run.id): AttributeError: 'NoneType' object has no attribute 'id' Traceback
Traceback (most recent call last):
File "/Users/kastanday/code/ncsa/ai-ta/ai-ta-backend/ai_ta_backend/agents/github_webhook_handlers.py", line 83, in handle_issue_opened
result = ray.get(ready[0])
File "/Users/kastanday/miniforge3/envs/flask10_py10/lib/python3.10/site-packages/ray/_private/auto_init_hook.py", line 24, in auto_init_wrapper
return fn(*args, **kwargs)
File "/Users/kastanday/miniforge3/envs/flask10_py10/lib/python3.10/site-packages/ray/_private/client_mode_hook.py", line 103, in wrapper
return func(*args, **kwargs)
File "/Users/kastanday/miniforge3/envs/flask10_py10/lib/python3.10/site-packages/ray/_private/worker.py", line 2547, in get
raise value.as_instanceof_cause()
ray.exceptions.RayTaskError(AttributeError): [36mray::post_sharable_url()[39m (pid=86302, ip=127.0.0.1)
File "/Users/kastanday/code/ncsa/ai-ta/ai-ta-backend/ai_ta_backend/agents/github_webhook_handlers.py", line 234, in post_sharable_url
sharable_url = get_langsmith_trace_sharable_url(run_id_in_metadata, time_delay_s=time_delay_s)
File "/Users/kastanday/code/ncsa/ai-ta/ai-ta-backend/ai_ta_backend/agents/utils.py", line 127, in get_langsmith_trace_sharable_url
if not langsmith_client.run_is_shared(run.id):
AttributeError: 'NoneType' object has no attribute 'id'
Thanks for opening a new issue! I'll now try to finish this implementation and open a PR for you to review.
You can monitor the LangSmith trace here.
Feel free to comment in this thread to give me additional instructions, or I'll tag you in a comment if I get stuck. If I think I'm successful I'll 'request your review' on the resulting PR. Just watch for emails while I work.
👉 [Follow the bot's progress in real time on LangSmith](Failed to generate sharable URL, cannot find this run on LangSmith. RunID: cd01c45b-708f-4d3c-884f-a8b23bff93b9).
{'input': 'Please implement these changes by creating or editing the necessary files. \n\n1. First use read_file to read any files in the repo that seem relevant. \n2. Then, when you\'re ready, start implementing changes by creating and updating files. Implement any and all remaining code to make the project work as the commenter intended. \n2. The last step is to create a PR with a clear and concise title and description, list any concerns or final changes necessary in the PR body.\n3. After opening the PR, comment on the original issue and mention the new PR your just opened, you must comment "I opened a PR for you to review here #
Thanks for opening a new issue! I'll now try to finish this implementation and open a PR for you to review.
You can monitor the LangSmith trace here.
Feel free to comment in this thread to give me additional instructions, or I'll tag you in a comment if I get stuck. If I think I'm successful I'll 'request your review' on the resulting PR. Just watch for emails while I work.
👉 [Follow the bot's progress in real time on LangSmith](Failed to generate sharable URL, cannot find this run on LangSmith. RunID: 0ee36435-3c46-415a-9a97-212751cf0ce8).
{'input': 'Please implement these changes by creating or editing the necessary files. \n\n1. First use read_file to read any files in the repo that seem relevant. \n2. Then, when you\'re ready, start implementing changes by creating and updating files. Implement any and all remaining code to make the project work as the commenter intended. \n2. The last step is to create a PR with a clear and concise title and description, list any concerns or final changes necessary in the PR body.\n3. After opening the PR, comment on the original issue and mention the new PR your just opened, you must comment "I opened a PR for you to review here #
Thanks for opening a new issue! I'll now try to finish this implementation and open a PR for you to review.
You can monitor the LangSmith trace here.
Feel free to comment in this thread to give me additional instructions, or I'll tag you in a comment if I get stuck. If I think I'm successful I'll 'request your review' on the resulting PR. Just watch for emails while I work.
👉 [Follow the bot's progress in real time on LangSmith](Failed to generate sharable URL, cannot find this run on LangSmith. RunID: dd714e17-4523-4965-9a5a-caf3ef1db3cd).
Thanks for opening a new issue! I'll now try to finish this implementation and open a PR for you to review.
You can monitor the LangSmith trace here.
Feel free to comment in this thread to give me additional instructions, or I'll tag you in a comment if I get stuck. If I think I'm successful I'll 'request your review' on the resulting PR. Just watch for emails while I work.
Thanks for opening a new issue! I'll now try to finish this implementation and open a PR for you to review.
You can monitor the LangSmith trace here.
Feel free to comment in this thread to give me additional instructions, or I'll tag you in a comment if I get stuck. If I think I'm successful I'll 'request your review' on the resulting PR. Just watch for emails while I work.
Error in handle_issue_opened: [36mray::post_sharable_url()[39m (pid=7713, ip=127.0.0.1) File "/Users/kastanday/code/ncsa/ai-ta/ai-ta-backend/ai_ta_backend/agents/github_webhook_handlers.py", line 236, in post_sharable_url sharable_url = get_langsmith_trace_sharable_url(run_id_in_metadata, time_delay_s=time_delay_s) File "/Users/kastanday/code/ncsa/ai-ta/ai-ta-backend/ai_ta_backend/agents/utils.py", line 132, in get_langsmith_trace_sharable_url run = get_langsmit_run_from_metadata(run_id_in_metadata, metadata_key="run_id_in_metadata") File "/Users/kastanday/code/ncsa/ai-ta/ai-ta-backend/ai_ta_backend/agents/utils.py", line 94, in get_langsmit_run_from_metadata print(f"Found num runs: {len(runs)}") TypeError: object of type 'generator' has no len() Traceback
Traceback (most recent call last):
File "/Users/kastanday/code/ncsa/ai-ta/ai-ta-backend/ai_ta_backend/agents/github_webhook_handlers.py", line 86, in handle_issue_opened
result = ray.get(ready[0])
File "/Users/kastanday/miniforge3/envs/flask10_py10/lib/python3.10/site-packages/ray/_private/auto_init_hook.py", line 24, in auto_init_wrapper
return fn(*args, **kwargs)
File "/Users/kastanday/miniforge3/envs/flask10_py10/lib/python3.10/site-packages/ray/_private/client_mode_hook.py", line 103, in wrapper
return func(*args, **kwargs)
File "/Users/kastanday/miniforge3/envs/flask10_py10/lib/python3.10/site-packages/ray/_private/worker.py", line 2547, in get
raise value.as_instanceof_cause()
ray.exceptions.RayTaskError(TypeError): [36mray::post_sharable_url()[39m (pid=7713, ip=127.0.0.1)
File "/Users/kastanday/code/ncsa/ai-ta/ai-ta-backend/ai_ta_backend/agents/github_webhook_handlers.py", line 236, in post_sharable_url
sharable_url = get_langsmith_trace_sharable_url(run_id_in_metadata, time_delay_s=time_delay_s)
File "/Users/kastanday/code/ncsa/ai-ta/ai-ta-backend/ai_ta_backend/agents/utils.py", line 132, in get_langsmith_trace_sharable_url
run = get_langsmit_run_from_metadata(run_id_in_metadata, metadata_key="run_id_in_metadata")
File "/Users/kastanday/code/ncsa/ai-ta/ai-ta-backend/ai_ta_backend/agents/utils.py", line 94, in get_langsmit_run_from_metadata
print(f"Found num runs: {len(runs)}")
TypeError: object of type 'generator' has no len()
Thanks for opening a new issue! I'll now try to finish this implementation and open a PR for you to review.
You can monitor the LangSmith trace here.
Feel free to comment in this thread to give me additional instructions, or I'll tag you in a comment if I get stuck. If I think I'm successful I'll 'request your review' on the resulting PR. Just watch for emails while I work.
Thanks for opening a new issue! I'll now try to finish this implementation and open a PR for you to review.
You can monitor the LangSmith trace here.
Feel free to comment in this thread to give me additional instructions, or I'll tag you in a comment if I get stuck. If I think I'm successful I'll 'request your review' on the resulting PR. Just watch for emails while I work.
Thanks for opening a new issue! I'll now try to finish this implementation and open a PR for you to review.
You can monitor the LangSmith trace here.
Feel free to comment in this thread to give me additional instructions, or I'll tag you in a comment if I get stuck. If I think I'm successful I'll 'request your review' on the resulting PR. Just watch for emails while I work.
1 agents ALL FAILED with runtime exceptions:
Traceback (most recent call last):
File "/Users/kastanday/code/ncsa/ai-ta/ai-ta-backend/ai_ta_backend/agents/github_agent.py", line 141, in bot_runner_with_retries
result = bot.with_config({"run_name": "ReAct ML4Bio Agent"}).invoke({"input": run_instruction}, {"metadata": {"run_id_in_metadata": str(run_id_in_metadata)}})
File "/Users/kastanday/code/ncsa/ai-ta/langchain-improved-agents/libs/langchain/langchain/schema/runnable/base.py", line 2316, in invoke
return self.bound.invoke(
File "/Users/kastanday/code/ncsa/ai-ta/langchain-improved-agents/libs/langchain/langchain/chains/base.py", line 84, in invoke
return self(
File "/Users/kastanday/code/ncsa/ai-ta/langchain-improved-agents/libs/langchain/langchain/chains/base.py", line 306, in __call__
raise e
File "/Users/kastanday/code/ncsa/ai-ta/langchain-improved-agents/libs/langchain/langchain/chains/base.py", line 300, in __call__
self._call(inputs, run_manager=run_manager)
File "/Users/kastanday/code/ncsa/ai-ta/langchain-improved-agents/libs/langchain/langchain/agents/agent.py", line 1141, in _call
next_step_output = self._take_next_step(
File "/Users/kastanday/code/ncsa/ai-ta/langchain-improved-agents/libs/langchain/langchain/agents/agent.py", line 928, in _take_next_step
output = self.agent.plan(
File "/Users/kastanday/code/ncsa/ai-ta/langchain-improved-agents/libs/langchain/langchain/agents/agent.py", line 541, in plan
full_output = self.llm_chain.predict(callbacks=callbacks, **full_inputs)
File "/Users/kastanday/code/ncsa/ai-ta/langchain-improved-agents/libs/langchain/langchain/chains/llm.py", line 257, in predict
return self(kwargs, callbacks=callbacks)[self.output_key]
File "/Users/kastanday/code/ncsa/ai-ta/langchain-improved-agents/libs/langchain/langchain/chains/base.py", line 306, in __call__
raise e
File "/Users/kastanday/code/ncsa/ai-ta/langchain-improved-agents/libs/langchain/langchain/chains/base.py", line 300, in __call__
self._call(inputs, run_manager=run_manager)
File "/Users/kastanday/code/ncsa/ai-ta/langchain-improved-agents/libs/langchain/langchain/chains/llm.py", line 93, in _call
response = self.generate([inputs], run_manager=run_manager)
File "/Users/kastanday/code/ncsa/ai-ta/langchain-improved-agents/libs/langchain/langchain/chains/llm.py", line 103, in generate
return self.llm.generate_prompt(
File "/Users/kastanday/code/ncsa/ai-ta/langchain-improved-agents/libs/langchain/langchain/chat_models/base.py", line 469, in generate_prompt
return self.generate(prompt_messages, stop=stop, callbacks=callbacks, **kwargs)
File "/Users/kastanday/code/ncsa/ai-ta/langchain-improved-agents/libs/langchain/langchain/chat_models/base.py", line 359, in generate
raise e
File "/Users/kastanday/code/ncsa/ai-ta/langchain-improved-agents/libs/langchain/langchain/chat_models/base.py", line 349, in generate
self._generate_with_cache(
File "/Users/kastanday/code/ncsa/ai-ta/langchain-improved-agents/libs/langchain/langchain/chat_models/base.py", line 501, in _generate_with_cache
return self._generate(
File "/Users/kastanday/code/ncsa/ai-ta/langchain-improved-agents/libs/langchain/langchain/chat_models/openai.py", line 360, in _generate
response = self.completion_with_retry(
File "/Users/kastanday/code/ncsa/ai-ta/langchain-improved-agents/libs/langchain/langchain/chat_models/openai.py", line 299, in completion_with_retry
return _completion_with_retry(**kwargs)
File "/Users/kastanday/miniforge3/envs/flask10_py10/lib/python3.10/site-packages/tenacity/__init__.py", line 289, in wrapped_f
return self(f, *args, **kw)
File "/Users/kastanday/miniforge3/envs/flask10_py10/lib/python3.10/site-packages/tenacity/__init__.py", line 379, in __call__
do = self.iter(retry_state=retry_state)
File "/Users/kastanday/miniforge3/envs/flask10_py10/lib/python3.10/site-packages/tenacity/__init__.py", line 314, in iter
return fut.result()
File "/Users/kastanday/miniforge3/envs/flask10_py10/lib/python3.10/concurrent/futures/_base.py", line 451, in result
return self.__get_result()
File "/Users/kastanday/miniforge3/envs/flask10_py10/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result
raise self._exception
File "/Users/kastanday/miniforge3/envs/flask10_py10/lib/python3.10/site-packages/tenacity/__init__.py", line 382, in __call__
result = fn(*args, **kwargs)
File "/Users/kastanday/code/ncsa/ai-ta/langchain-improved-agents/libs/langchain/langchain/chat_models/openai.py", line 297, in _completion_with_retry
return self.client.create(**kwargs)
File "/Users/kastanday/miniforge3/envs/flask10_py10/lib/python3.10/site-packages/openai/api_resources/chat_completion.py", line 25, in create
return super().create(*args, **kwargs)
File "/Users/kastanday/miniforge3/envs/flask10_py10/lib/python3.10/site-packages/openai/api_resources/abstract/engine_api_resource.py", line 155, in create
response, _, api_key = requestor.request(
File "/Users/kastanday/miniforge3/envs/flask10_py10/lib/python3.10/site-packages/openai/api_requestor.py", line 299, in request
resp, got_stream = self._interpret_response(result, stream)
File "/Users/kastanday/miniforge3/envs/flask10_py10/lib/python3.10/site-packages/openai/api_requestor.py", line 710, in _interpret_response
self._interpret_response_line(
File "/Users/kastanday/miniforge3/envs/flask10_py10/lib/python3.10/site-packages/openai/api_requestor.py", line 775, in _interpret_response_line
raise self.handle_error_response(
openai.error.InvalidRequestError: This model's maximum context length is 8192 tokens. However, your messages resulted in 16919 tokens. Please reduce the length of the messages.
Thanks for opening a new issue! I'll now try to finish this implementation and open a PR for you to review.
You can monitor the LangSmith trace here.
Feel free to comment in this thread to give me additional instructions, or I'll tag you in a comment if I get stuck. If I think I'm successful I'll 'request your review' on the resulting PR. Just watch for emails while I work.
Thanks for opening a new issue! I'll now try to finish this implementation and open a PR for you to review.
You can monitor the LangSmith trace here.
Feel free to comment in this thread to give me additional instructions, or I'll tag you in a comment if I get stuck. If I think I'm successful I'll 'request your review' on the resulting PR. Just watch for emails while I work.
{'input': 'Please implement these changes by creating or editing the necessary files. \n\n1. First use read_file to read any files in the repo that seem relevant. \n2. Then, when you\'re ready, start implementing changes by creating and updating files. Implement any and all remaining code to make the project work as the commenter intended. \n2. The last step is to create a PR with a clear and concise title and description, list any concerns or final changes necessary in the PR body.\n3. After opening the PR, comment on the original issue and mention the new PR your just opened, you must comment "I opened a PR for you to review here #
Thanks for opening a new issue! I'll now try to finish this implementation and open a PR for you to review.
You can monitor the LangSmith trace here.
Feel free to comment in this thread to give me additional instructions, or I'll tag you in a comment if I get stuck. If I think I'm successful I'll 'request your review' on the resulting PR. Just watch for emails while I work.
{'input': 'Please implement these changes by creating or editing the necessary files. \n\n1. First use read_file to read any files in the repo that seem relevant. \n2. Then, when you\'re ready, start implementing changes by creating and updating files. Implement any and all remaining code to make the project work as the commenter intended. \n2. The last step is to create a PR with a clear and concise title and description, list any concerns or final changes necessary in the PR body.\n3. After opening the PR, comment on the original issue and mention the new PR your just opened, you must comment "I opened a PR for you to review here #
Thanks for opening a new issue! I'll now try to finish this implementation and open a PR for you to review.
You can monitor the LangSmith trace here.
Feel free to comment in this thread to give me additional instructions, or I'll tag you in a comment if I get stuck. If I think I'm successful I'll 'request your review' on the resulting PR. Just watch for emails while I work.
{'input': 'Please implement these changes by creating or editing the necessary files. \n\n1. First use read_file to read any files in the repo that seem relevant. \n2. Then, when you\'re ready, start implementing changes by creating and updating files. Implement any and all remaining code to make the project work as the commenter intended. \n2. The last step is to create a PR with a clear and concise title and description, list any concerns or final changes necessary in the PR body.\n3. After opening the PR, comment on the original issue and mention the new PR your just opened, you must comment "I opened a PR for you to review here #
Thanks for opening a new issue! I'll now try to finish this implementation and open a PR for you to review.
You can monitor the LangSmith trace here.
Feel free to comment in this thread to give me additional instructions, or I'll tag you in a comment if I get stuck. If I think I'm successful I'll 'request your review' on the resulting PR. Just watch for emails while I work.
Thanks for opening a new issue! I'll now try to finish this implementation and open a PR for you to review.
You can monitor the LangSmith trace here.
Feel free to comment in this thread to give me additional instructions, or I'll tag you in a comment if I get stuck. If I think I'm successful I'll 'request your review' on the resulting PR. Just watch for emails while I work.
Error in handle_issue_opened: 'dict' object has no attribute 'output' Traceback
Traceback (most recent call last):
File "/Users/kastanday/code/ncsa/ai-ta/ai-ta-backend/ai_ta_backend/agents/github_webhook_handlers.py", line 101, in handle_issue_opened
ray.get(post_comment.remote(issue_or_pr=issue, text=str(result.output), time_delay_s=0))
AttributeError: 'dict' object has no attribute 'output'
Error in handle_issue_opened: Could not import langchainhub, please install with pip install langchainhub
.
Traceback
Traceback (most recent call last):
File "/Users/rohanmarwaha/IdeaProjects/ai-ta-backend/env3.10/lib/python3.10/site-packages/langchain/hub.py", line 15, in _get_client
from langchainhub import Client
ModuleNotFoundError: No module named 'langchainhub'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/Users/rohanmarwaha/IdeaProjects/ai-ta-backend/ai_ta_backend/agents/github_webhook_handlers.py", line 88, in handle_issue_opened
prompt = hub.pull("kastanday/new-github-issue").format(issue_description=format_issue(issue))
File "/Users/rohanmarwaha/IdeaProjects/ai-ta-backend/env3.10/lib/python3.10/site-packages/langchain/hub.py", line 79, in pull
client = _get_client(api_url=api_url, api_key=api_key)
File "/Users/rohanmarwaha/IdeaProjects/ai-ta-backend/env3.10/lib/python3.10/site-packages/langchain/hub.py", line 17, in _get_client
raise ImportError(
ImportError: Could not import langchainhub, please install with `pip install langchainhub`.
Experiment Type: RNA-Seq Sequencing of total cellular RNA
Workflow Management: Bash/SLURM Scripting and job scheduling
Software Stack: FastQC MultiQC STAR RSEM samtools DESeq2
What else to know about the pipeline? I am working PBMC samples collected from patients that are undergoing immunotherapy.
Use the data files existing in Report_WholeBrain as input for this workflow.
You should write a series of bash scripts and R scripts that can accomplish this task. Open a PR with those scripts when you're done.