GithubHelp home page GithubHelp logo

openbmb / proagent Goto Github PK

View Code? Open in Web Editor NEW
749.0 17.0 80.0 6.67 MB

An LLM-based Agent for the New Automation Paradigm - Agentic Process Automation

License: Apache License 2.0

Python 99.81% Shell 0.19%

proagent's Issues

TypeError in Python 3.8: 'type' object is not subscriptable in n8nPythonNode Function

Description

While working with [Name of the library or project, e.g., n8nPythonNode], I encountered a TypeError when trying to use generic type annotations in Python 3.8. This issue occurs in the function run_node when using the syntax list[dict].

Steps to Reproduce

Use Python 3.8.
Define a function with the following signature:

def run_node(node: n8nPythonNode, input_data: list[dict] = [{}]) -> tuple[str, str]:
    # function body

Run the code.

Expected Behavior
The function should accept a list of dictionaries as an input parameter without any type errors.

Actual Behavior

A TypeError is raised: 'type' object is not subscriptable.

Possible Solution

For Python versions prior to 3.9, it might be necessary to import List and Dict from the typing module for generic type annotations. The function signature can be modified as follows:

from typing import List, Dict, Tuple
def run_node(node: n8nPythonNode, input_data: List[Dict] = [{}]) -> Tuple[str, str]:
# function body

Additional Context

This issue seems to be specific to Python versions below 3.9, where the newer syntax for generic type annotations is not supported.

Issue with n8n node generation

I've been exploring your impressive accomplishments in RPA . I am trying to setup the ProAgent code in the development environment. n8n-compiler in your code base has used an older version. I'm trying to run the code using n8n 1.0.1 Version. Changed the WEBHOOK_URL . Though code could able to generate the workflow I'm facing issues in the n8n as below . I couldn't able to get the workflow nodes in n8n.Could you please share the details of the n8n version that supports your code base?

System Config:
Windows 10
Node Version: v18.20.3
python: 3.10.4
OpenAI: Azure OpenAI 1.31.1
n8n: 1.0.1

2024-07-09T11:10:31.424Z [Rudder] error: got error while attempting send for 3 times, dropping 2 events
2024-07-09T23:16:12.644Z [Rudder] error: got error while attempting send for 3 times, dropping 1 events
2024-07-10T05:16:13.013Z [Rudder] error: got error while attempting send for 3 times, dropping 1 events
2024-07-10T11:15:59.095Z [Rudder] error: got error while attempting send for 3 times, dropping 1 events
2024-07-10T17:15:59.102Z [Rudder] error: got error while attempting send for 3 times, dropping 1 events

License?

Hi there,

Thanks for sharing the repo.

Please add a LICENSE file to the repo.

Thank you.

请问运行main.py后一直输出的是什么?没停下过

Give your next action together with thought, plans and criticisim:

get a llm_server response from Record
{'prompt_tokens': 5172, 'completion_tokens': 404, 'total_tokens': 5576}
content: Thoughts:

  • 由于Google Sheets的documentId和sheetName都是以URL的形式给出的,所以我们需要在params中设置"documentId"和"sheetName"为对应的URL。
  • 由于Slack Channel已经指定为#general,所以我们需要在params中设置"channelId"为#general。
  • 对于Gmail和AI,由于没有给出具体的参数,我们可以先不设置params。

Plan:

  • 实现读取Google Sheets数据的action。
  • 实现发送Slack消息的action。

Criticisms:

就像上面这些

Will the constructed evaluation dataset for RPA be open source?

I've been diving into your awesome work on RPA and I’m really impressed by what you’ve achieved. 😊
I noticed you mentioned a self-constructed evaluation dataset in your paper and I'm really interested about it. I believe it could be a gold mine for folks like me who are interested in RPA research.
So, I was wondering, is this dataset available somewhere? Or are there any plans to release it to the public?
Thank you for your reply.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.