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.

pyproject.toml 2.3 kB

Add MagenticOne API and CLI (#4782) * Add MagenticOne API * Add CodeExecutorAgent to MagenticOne for enhanced task execution * Refactor MagenticOne class to inherit from MagenticOneGroupChat and streamline initialization * Enhance MagenticOne class documentation with detailed usage examples and initialization instructions * Refactor MagenticOne module structure and update import paths * Remove unused imports * Add documentation for MagenticOne module and remove redundant initialization comments * Enhance MagenticOne class with human-in-the-loop mode and update examples * Update MagenticOne class documentation with safety precautions and architecture details * Run poe format * Add blog post reference to MagenticOne class documentation * change default of websurfer use_ocr to false because of refusals * Refactor MagenticOne class to use ChatCompletionClient instead of OpenAIChatCompletionClient * Add client capability validation to MagenticOne initialization * Poe format * Refactor imports in MagenticOne class for clarity and organization * Add stacklevel parameter to warning in client capability validation * Update README to recommend using Magentic-One API for improved integration * Add create_args property to OpenAIChatCompletionClient for better access to initialization arguments * Enhance client capability validation in MagenticOne to ensure compatibility with OpenAI GPT-4o model * Refactor client capability validation in MagenticOne for improved clarity * Update magentic_one.py Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com> * Remove create_args property from OpenAIChatCompletionClient and update validation logic in MagenticOne to directly access _create_args * Refactor documentation in MagenticOne for improved readability and consistency * Refactor client capability validation in MagenticOne to remove unnecessary model check for GPT-4o * Add MagenticOne CLI (#4788) * Add MagenticOne CLI script for task execution with OpenAI GPT-4o integration * Fix argument parsing in MagenticOne CLI to require a single task input * Add docstring to main function in MagenticOne CLI for improved usage clarity * Fix example usage in docstring of MagenticOne CLI for correct argument order * Refactor argument parsing in MagenticOne CLI for improved clarity and consistency * Add type hints to run_task function in MagenticOne CLI * Add type hint for main function in MagenticOne CLI * Remove type ignore from main function call in MagenticOne CLI --------- Co-authored-by: Hussein Mozannar <hmozannar@microsoft.com> Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
1 year ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. [build-system]
  2. requires = ["hatchling"]
  3. build-backend = "hatchling.build"
  4. [project]
  5. name = "autogen-ext"
  6. version = "0.4.0.dev13"
  7. license = {file = "LICENSE-CODE"}
  8. description = "AutoGen extensions library"
  9. readme = "README.md"
  10. requires-python = ">=3.10"
  11. classifiers = [
  12. "Programming Language :: Python :: 3",
  13. "License :: OSI Approved :: MIT License",
  14. "Operating System :: OS Independent",
  15. ]
  16. dependencies = [
  17. "autogen-core==0.4.0.dev13",
  18. ]
  19. [project.scripts]
  20. m1 = "autogen_ext.teams.magentic_one_cli:main"
  21. [project.optional-dependencies]
  22. langchain = ["langchain_core~= 0.3.3"]
  23. azure = ["azure-core", "azure-identity"]
  24. docker = ["docker~=7.0"]
  25. openai = ["openai>=1.52.2", "aiofiles"]
  26. file-surfer = [
  27. "autogen-agentchat==0.4.0.dev13",
  28. "markitdown>=0.0.1a2",
  29. ]
  30. web-surfer = [
  31. "autogen-agentchat==0.4.0.dev13",
  32. "playwright>=1.48.0",
  33. "pillow>=11.0.0",
  34. "markitdown>=0.0.1a2",
  35. ]
  36. magentic-one = [
  37. "autogen-agentchat==0.4.0.dev13",
  38. "markitdown>=0.0.1a2",
  39. "playwright>=1.48.0",
  40. "pillow>=11.0.0",
  41. ]
  42. video-surfer = [
  43. "autogen-agentchat==0.4.0.dev13",
  44. "opencv-python>=4.5",
  45. "ffmpeg-python",
  46. "openai-whisper",
  47. ]
  48. grpc = [
  49. "grpcio~=1.62.0", # TODO: update this once we have a stable version.
  50. ]
  51. [tool.hatch.build.targets.wheel]
  52. packages = ["src/autogen_ext"]
  53. [dependency-groups]
  54. dev = [
  55. "autogen_test_utils",
  56. "langchain-experimental",
  57. ]
  58. [tool.ruff]
  59. extend = "../../pyproject.toml"
  60. include = ["src/**", "tests/*.py"]
  61. exclude = ["src/autogen_ext/agents/web_surfer/*.js", "src/autogen_ext/runtimes/grpc/protos", "tests/protos"]
  62. [tool.pyright]
  63. extends = "../../pyproject.toml"
  64. include = ["src", "tests"]
  65. exclude = ["src/autogen_ext/runtimes/grpc/protos", "tests/protos"]
  66. [tool.pytest.ini_options]
  67. minversion = "6.0"
  68. testpaths = ["tests"]
  69. [tool.poe]
  70. include = "../../shared_tasks.toml"
  71. [tool.poe.tasks]
  72. test.sequence = [
  73. "playwright install",
  74. "pytest -n auto",
  75. ]
  76. test.default_item_type = "cmd"
  77. coverage.sequence = [
  78. "playwright install",
  79. "pytest -n auto --cov=src --cov-report=term-missing --cov-report=xml",
  80. ]
  81. coverage.default_item_type = "cmd"
  82. mypy = "mypy --config-file ../../pyproject.toml --exclude src/autogen_ext/runtimes/grpc/protos --exclude tests/protos src tests"
  83. [tool.mypy]
  84. [[tool.mypy.overrides]]
  85. module = "docker.*"
  86. ignore_missing_imports = true