You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

setup.py 1.7 kB

5 years ago
5 years ago
2 years ago
5 years ago
2 years ago
2 years ago
5 years ago
2 years ago
5 years ago
2 years ago
2 years ago
2 years ago
5 years ago
2 years ago
2 years ago
5 years ago
2 years ago
2 years ago
TeachableAgent (#278) * Initial commit. * Disable LLM response caching. * Add teachability option to setup.py * Modify test to use OAI_CONFIG_LIST as suggested in the docs. * Expand unit test. * Complete unit test. * Add filter_dict * details * AnalysisAgent * details * More documentation and debug output. * Support retrieval of any number of relevant memos, including zero. * More robust analysis separator. * cleanup * teach_config * refactoring * For robustness, allow more flexibility on memo storage and retrieval. * de-dupe the retrieved memos. * Simplify AnalysisAgent. The unit tests now pass with gpt-3.5 * comments * Add a verbosity level to control analyzer messages. * refactoring * comments * Persist memory on disk. * cleanup * Use markdown to format retrieved memos. * Use markdown in TextAnalyzerAgent * Add another verbosity level. * clean up logging * notebook * minor edits * cleanup * linter fixes * Skip tests that fail to import openai * Address reviewer feedback. * lint * refactoring * Improve wording * Improve code coverage. * lint * Use llm_config to control caching. * lowercase notebook name * Sort out the parameters passed through to ConversableAgent, and supply full docstrings for the others. * lint * Allow TextAnalyzerAgent to be given a different llm_config than TeachableAgent. * documentation * Modifications to run openai workflow. * Test on just python 3.10. Replace agent with agent teachable_agent as recommended. * Test on python 3.9 instead of 3.10. * Remove space from name -> teachableagent --------- Co-authored-by: Li Jiang <bnujli@gmail.com> Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2 years ago
5 years ago
5 years ago
2 years ago
5 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. import setuptools
  2. import os
  3. here = os.path.abspath(os.path.dirname(__file__))
  4. with open("README.md", "r", encoding="UTF-8") as fh:
  5. long_description = fh.read()
  6. # Get the code version
  7. version = {}
  8. with open(os.path.join(here, "autogen/version.py")) as fp:
  9. exec(fp.read(), version)
  10. __version__ = version["__version__"]
  11. install_requires = [
  12. "openai==1.0.0b3",
  13. "diskcache",
  14. "termcolor",
  15. "flaml",
  16. "python-dotenv",
  17. "tiktoken",
  18. ]
  19. setuptools.setup(
  20. name="pyautogen",
  21. version=__version__,
  22. author="AutoGen",
  23. author_email="auto-gen@outlook.com",
  24. description="Enabling Next-Gen LLM Applications via Multi-Agent Conversation Framework",
  25. long_description=long_description,
  26. long_description_content_type="text/markdown",
  27. url="https://github.com/microsoft/autogen",
  28. packages=setuptools.find_packages(include=["autogen*"], exclude=["test"]),
  29. # package_data={
  30. # "autogen.default": ["*/*.json"],
  31. # },
  32. # include_package_data=True,
  33. install_requires=install_requires,
  34. extras_require={
  35. "test": [
  36. "coverage>=5.3",
  37. "ipykernel",
  38. "nbconvert",
  39. "nbformat",
  40. "pre-commit",
  41. "pytest-asyncio",
  42. "pytest>=6.1.1",
  43. ],
  44. "blendsearch": ["flaml[blendsearch]"],
  45. "mathchat": ["sympy", "pydantic==1.10.9", "wolframalpha"],
  46. "retrievechat": ["chromadb", "sentence_transformers", "pypdf", "ipython"],
  47. "teachable": ["chromadb"],
  48. },
  49. classifiers=[
  50. "Programming Language :: Python :: 3",
  51. "License :: OSI Approved :: MIT License",
  52. "Operating System :: OS Independent",
  53. ],
  54. python_requires=">=3.8",
  55. )