Coder Social home page Coder Social logo

jaemil / agentsflow Goto Github PK

View Code? Open in Web Editor NEW
275.0 18.0 36.0 59.55 MB

Drag & drop UI to build and run a flow of autogen AI agents

License: GNU General Public License v3.0

Python 6.22% HTML 11.56% CSS 3.81% TypeScript 77.76% JavaScript 0.65%
ai-agents autogen

agentsflow's Introduction

๐Ÿ‘‹ Hello! I'm Emil

I'm a Freelance Fullstack Developer based in Stuttgart, Germany, I'm currently working on -> Findnlink.
I'm passionate about Design, Frontend and AI.

Feel free to reach out to me if you have any questions or want to connect -> Twitter.

agentsflow's People

Contributors

jaemil avatar siafu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

agentsflow's Issues

Code execution not firing.

It's supposed to run any code found within any message but it's not. It's possibly related to the way I hijacked the messaging. What I didn't doesn't rly seem hacky though it might be. Initialization of agents was moved to https://github.com/jaemil/autogen_websocket/blob/main/autogen_client/initialize.py

The autogen file conversable_agent.py is probably where the trouble is happening

https://github.com/microsoft/autogen/blob/main/autogen/agentchat/conversable_agent.py

It could have something to do with the agent naming and/or my one class override since sender is a thing used to determine code execution permission. The permission configs we have set seem to be correct: https://github.com/jaemil/autogen_websocket/blob/7bdb509d403c004b9c5579732a8cf25f5c1b672f/autogen_client/initialize.py#L24

Problem running the code at start

Hi,
I just finished implementing something very similar to your code using fastapi and websocket
https://gist.github.com/bonadio/2d548a493907c133bc10de806ecd08af

But your code seems better related to the way you handle the threads. I am trying to test it but found a few problems:
1- When I try to install after a did git clone

(base) -> pdm install
All packages are synced to date, nothing to do.
Installing the project as an editable package...
  โœ– Install agentsflow 0.1.1 failed

See /var/folders/r6/jgl8b48s325fbkg5jwkg93fc0000gn/T/pdm-install-xk70t_x8.log for detailed debug 
log.
[BuildError]: Build backend raised error: Showing the last 10 lines of the build output:

If you are trying to create a single distribution with multiple packages
on purpose, you should not rely on automatic discovery.
Instead, consider the following options:

1. set up custom discovery (`find` directive with `include` or `exclude`)
2. use a `src-layout`
3. explicitly set `py_modules` or `packages` with a list of names

To find more information, look for "package discovery" on setuptools docs.
Add '-v' to see the detailed traceback

2- It is missing the "static" directory, I created manually and was able to start

3- When I try to run "npm run dev" on the frontend_src I get
Server Error
Error: Cannot find module 'react'

ui is served by fastapi

The UI is now served on the fastapi port. Just nav to the port in a browser to load index.html. Made some tweaks to the test ui as well.

@jaemil

run error

help me please:

@agentsflow/[email protected] agentsflow
nx run-many -t serve -p frontend api --configuration production

NX Running target serve for 2 projects:

- frontend
- api

โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”

nx run frontend:serve:production

nx run api:serve

node:events:491
throw er; // Unhandled 'error' event
^
Error: spawn /usr/local/bin/node ENOENT
at ChildProcess._handle.onexit (node:internal/child_process:283:19)
at onErrorNT (node:internal/child_process:476:16)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
Emitted 'error' event on ChildProcess instance at:
at ChildProcess._handle.onexit (node:internal/child_process:289:12)
at onErrorNT (node:internal/child_process:476:16)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
errno: -2,
code: 'ENOENT',
syscall: 'spawn /usr/local/bin/node',
path: '/usr/local/bin/node',
spawnargs: [
'/Users/raoyunfei/agentsflow/node_modules/next/dist/bin/next',
'start',
'--port=4200',
''
]
}
Node.js v18.15.0
INFO: Will watch for changes in these directories: ['/Users/raoyunfei/agentsflow/apps/api']
INFO: Uvicorn running on http://127.0.0.1:8999 (Press CTRL+C to quit)
INFO: Started reloader process [67224] using WatchFiles
INFO: Started server process [67229]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: 127.0.0.1:65087 - "GET / HTTP/1.1" 404 Not Found

project rename

suggest renaming the project and repo name to something better. maye autogen-client (best to use hyphens for project names btw), which is what I named the main python package.

@jaemil

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.