GithubHelp home page GithubHelp logo

agentflow's People

Contributors

simonmesmith 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

agentflow's Issues

Expand flow test coverage to include function execution

It's hard to test function execution without actually using an LLM, which we don't want to do for a few reasons (nondeterminism, use of a third-party API that can go down, pinging that API every time we run a test, etc.). We should expand test_flow.py to test that:

  1. Functions get called when GPT wants to call them
  2. We properly add the results of function execution to the messages array

And maybe some other stuff, too.

Allow workflows to call other workflows

Create a function called call_workflow or something like that.

Move print statements out of flow.Flow.run() and into run.main().

Have flow.Flow.run() return a status of True if the flow completes successfully. Then we can just retrieve the results from flow.output.output_path.

Make minor text updates

  • Change description to "Complex LLM workflows from simple JSON."
  • Change copyright in license from "simonmesmith" to "Simon Smith."
  • Change "Lint and test" to "Build" in readme. Or see what people commonly use for similar badges and use that if it's different.
  • Update "..." in JSON on README to get rid of JSON formatting error.

Fix issue with GPT pointing to files at sandbox:

For example, when GPT refers to an image, it sometimes does <img src="sandbox:image_name.png">. I think it does this because it's trained to do so for environments like ChatGPT. This causes issues when it does things like write HTML pointing to images at nonexistent locations.

Add tests for Flow.run()

This is the main flow and we need to have tests to make sure it works.

We're going to need to mock a lot of stuff for that, I think.

Also, instead of creating flows in test_flow.py, we need to have test data in the tests folder, like:

  • test_flow_with_variables.json
  • test_flow_with_no_variables.json

Similar project?

Saw your ycombinator post, thought I'd make you aware of a similar effort:

https://github.com/llm-workflow-engine/llm-workflow-engine has linear workflows (via Ansible integration), conversation threads, templating, provider/model presets, and OpenAI functions support.

I built it for the same reasons listed in the OP -- really seemed like a simple linear workflow manager would be incredibly useful.

Create summarize function

Input:

  • Text
  • Summary length
  • Maybe optional style

If length is greater than X, use gpt-3.5 16K token model. Otherwise, use base gpt-3.5 model.

For summary length, should it be a string or integer? Like, number_of_sentences=X? Or length="a tweet"?

Add a UI

  • Remove run.py from root
  • Move run.py functionality to agentflow/cli.py
  • Import cli.main into agentflow/__init__.py so users can run the CLI with python -m agentflow
  • Create a new ui folder in the root
  • Build a Flask- or FastAPI-based app here that users can run with python -m ui.run
  • Update requirements as needed, e.g. with FastAPI and Uvicorn
  • Move root/tests to root/agentflow/tests for agentflow-specific tests (update file references accordingly, including in README)

Interactive workflows

Love the repository. Wishing more stars for this repo.
I would very much like to see interactive workflows like paying a credit card/talking to the bank agent to complete a transaction. This would be a cool use of the your design

Update to latest OpenAI library

The new OpenAI Python library introduces several breaking changes. If you want to use Agentflow without updating to the latest library, you'll need to pin it to a library that they made available before these recent changes. If I (or anyone else) has time, we might be able to update the repo, but it's hard to keep up with the pace of change in generative AI!

Improve readme

  • Add all steps required for installation, including getting an OpenAI API key and creating a .env file
  • Update install guidance to reflect how example.json requires that we populate a variable

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.