aboutsummaryrefslogtreecommitdiff
path: root/cli.py
AgeCommit message (Collapse)AuthorFilesLines
4 daysSet up unified pre-commit + CI w/ linting + type checking & FIX EVERYTHING ↵Gravatar Reinier van der Leer 1-2/+6
(#7171) - **FIX ALL LINT/TYPE ERRORS IN AUTOGPT, FORGE, AND BENCHMARK** ### Linting - Clean up linter configs for `autogpt`, `forge`, and `benchmark` - Add type checking with Pyright - Create unified pre-commit config - Create unified linting and type checking CI workflow ### Testing - Synchronize CI test setups for `autogpt`, `forge`, and `benchmark` - Add missing pytest-cov to benchmark dependencies - Mark GCS tests as slow to speed up pre-commit test runs - Repair `forge` test suite - Add `AgentDB.close()` method for test DB teardown in db_test.py - Use actual temporary dir instead of forge/test_workspace/ - Move left-behind dependencies for moved `forge`-code to from autogpt to forge ### Notable type changes - Replace uses of `ChatModelProvider` by `MultiProvider` - Removed unnecessary exports from various __init__.py - Simplify `FileStorage.open_file` signature by removing `IOBase` from return type union - Implement `S3BinaryIOWrapper(BinaryIO)` type interposer for `S3FileStorage` - Expand overloads of `GCSFileStorage.open_file` for improved typing of read and write modes Had to silence type checking for the extra overloads, because (I think) Pyright is reporting a false-positive: https://github.com/microsoft/pyright/issues/8007 - Change `count_tokens`, `get_tokenizer`, `count_message_tokens` methods on `ModelProvider`s from class methods to instance methods - Move `CompletionModelFunction.schema` method -> helper function `format_function_def_for_openai` in `forge.llm.providers.openai` - Rename `ModelProvider` -> `BaseModelProvider` - Rename `ChatModelProvider` -> `BaseChatModelProvider` - Add type `ChatModelProvider` which is a union of all subclasses of `BaseChatModelProvider` ### Removed rather than fixed - Remove deprecated and broken autogpt/agbenchmark_config/benchmarks.py - Various base classes and properties on base classes in `forge.llm.providers.schema` and `forge.models.providers` ### Fixes for other issues that came to light - Clean up `forge.agent_protocol.api_router`, `forge.agent_protocol.database`, and `forge.agent.agent` - Add fallback behavior to `ImageGeneratorComponent` - Remove test for deprecated failure behavior - Fix `agbenchmark.challenges.builtin` challenge exclusion mechanism on Windows - Fix `_tool_calls_compat_extract_calls` in `forge.llm.providers.openai` - Add support for `any` (= no type specified) in `JSONSchema.typescript_type`
9 daysfix(ci): Fix cli and CI (#7166)Gravatar Krzysztof Czerwinski 1-2/+10
- Add a special case for cli to handle autogpt and forge agent - Remove forge agent from smoke test ci
9 daysrefactor(autogpt, forge): Remove `autogpts` directory (#7163)Gravatar Krzysztof Czerwinski 1-7/+7
- Moved `autogpt` and `forge` to project root - Removed `autogpts` directory - Moved and renamed submodule `autogpts/autogpt/tests/vcr_cassettes` to `autogpt/tests/vcr_cassettes` - When using CLI agents will be created in `agents` directory (instead of `autogpts`) - Renamed relevant docs, code and config references from `autogpts/[forge|autogpt]` to `[forge|autogpt]` and from `*../../*` to `*../*` - Updated `CODEOWNERS`, GitHub Actions and Docker `*.yml` configs - Updated symbolic links in `docs`
2024-05-11fix: typoGravatar SwiftyOS 1-1/+1
2024-05-11removed git requirement from cliGravatar SwiftyOS 1-5/+3
2024-05-10unbreak `./run agent create`Gravatar Reinier van der Leer 1-6/+1
"If we had done this in Swift it would've never happened" ~Craig Swift ____ / . .\ \ ---< \ / ________/ / -=:___________/
2024-05-09Remove arena submission from cli (#7137)Gravatar Swifty 1-433/+0
2024-03-22fix(cli): Add timeout to `agent start` commandGravatar Reinier van der Leer 1-17/+36
- Add `timeout` parameter (default 30) to `wait_until_conn_ready(..)` function - Apply `isort` and `black` formatting
2024-02-15fix(cli/agent start): Wait for applications to finish starting before returningGravatar Reinier van der Leer 1-2/+23
- Added a helper function `wait_until_conn_ready(port)` to wait for the benchmark and agent applications to finish starting - Improved the CLI's own logging (within the `agent start` command)
2023-12-06Remove unnecessary code in cli.pyGravatar SwiftyOS 1-6/+0
2023-11-24refactor: Improve warning/error output in project CLIGravatar Reinier van der Leer 1-7/+10
- Refactor the warning and error messages in the CLI to provide clearer instructions and improve user experience.
2023-11-24fix: Fix description of CLI --no-setup flagGravatar Reinier van der Leer 1-1/+5
- Update the description of the `--no-setup` flag in the CLI `start` command to accurately reflect its functionality.
2023-11-16fix(cli): resolve warning caused by \w in regular string (#6236)Gravatar Kiran 1-1/+1
2023-11-06Fix for agent_name regex (#6108)Gravatar rummsi1337 1-1/+1
The improved regex was introduced with https://github.com/Significant-Gravitas/AutoGPT/pull/6096 However, there seems to be an issue with the updated regex; The uppercase meta-character `\W` only matches non-word characters, i.e. everything that is NOT [A-Za-z0-9_]. What you actually want is to use the lowercase `\w` character. Co-authored-by: Simon Rummert <09.milieu.motes@icloud.com>
2023-11-03Improvement of the regular expression (#6096)Gravatar Evgenii 1-1/+1
2023-10-30fix: Update agent creation logic and error messageGravatar SwiftyOS 1-4/+5
- Update the logic for checking if an agent name already exists to be case-insensitive. - Update the error message when an agent with the same name already exists to specify that the name should be unique regardless of case.
2023-10-19fix typo (#5715)Gravatar bsenst 1-1/+1
2023-10-09Forge/workshop (#5654)Gravatar merwanehamadi 1-4/+12
* Added basic memory * Added action history * Deleted placeholder files * adding memstore * Added web search ability * Added web search and reading web pages * remove agent.py changes Signed-off-by: Merwane Hamadi <merwanehamadi@gmail.com> --------- Signed-off-by: Merwane Hamadi <merwanehamadi@gmail.com> Co-authored-by: SwiftyOS <craigswift13@gmail.com>
2023-10-08inverted setup paramGravatar SwiftyOS 1-3/+3
2023-10-05Added setup command refactored memstore (#5555)Gravatar Swifty 1-3/+5
* forge - restructured memstore * Stopped setup from being ran as defualt when running an agent
2023-09-29Updated stop command to kill the benchmark server as wellGravatar SwiftyOS 1-5/+7
2023-09-28forge - Added unified run commandGravatar SwiftyOS 1-2/+7
2023-09-26updated github instructionsGravatar SwiftyOS 1-4/+5
2023-09-22Rename Auto-GPT to AutoGPT (#5301)Gravatar merwanehamadi 1-2/+2
* Rename to AutoGPT Signed-off-by: Merwane Hamadi <merwanehamadi@gmail.com> * Update autogpts/autogpt/BULLETIN.md Co-authored-by: Reinier van der Leer <pwuts@agpt.co> * Update BULLETIN.md * Update docker-compose.yml * Update autogpts/forge/tutorials/001_getting_started.md Co-authored-by: Reinier van der Leer <pwuts@agpt.co> * Update autogpts/autogpt/tests/unit/test_logs.py Co-authored-by: Reinier van der Leer <pwuts@agpt.co> * Update README.md * Update README.md * Update README.md * Update README.md * Update introduction.md * Update plugins.md --------- Signed-off-by: Merwane Hamadi <merwanehamadi@gmail.com> Co-authored-by: Reinier van der Leer <pwuts@agpt.co>
2023-09-19removed frontend command from the cliGravatar SwiftyOS 1-26/+0
2023-09-19Updated forge to server the frontend againGravatar SwiftyOS 1-6/+0
2023-09-18Updated cliGravatar SwiftyOS 1-28/+32
2023-09-18Fix test listingGravatar SwiftyOS 1-2/+2
2023-09-18Serving frontend from the forge agent server (#5252)Gravatar Swifty 1-0/+4
2023-09-18fixed arena enter commandGravatar SwiftyOS 1-8/+11
2023-09-17simplified the install script add help instructionGravatar SwiftyOS 1-2/+26
2023-09-16Added ascii art to cliGravatar SwiftyOS 1-1/+24
2023-09-16switch check to see if the submission branch existsGravatar SwiftyOS 1-5/+25
2023-09-16fixed branch namesGravatar SwiftyOS 1-3/+2
2023-09-16Added an update function, instructions on how to make another submission and ↵Gravatar SwiftyOS 1-5/+124
an update function
2023-09-16black formattingGravatar SwiftyOS 1-153/+410
2023-09-16removed submit commandGravatar SwiftyOS 1-85/+0
2023-09-16deleted sync commandGravatar SwiftyOS 1-38/+0
2023-09-15agents to agent in docsGravatar SwiftyOS 1-2/+2
2023-09-15correct pr branchGravatar SwiftyOS 1-7/+11
2023-09-15changed submision branch to include agent nameGravatar SwiftyOS 1-8/+7
2023-09-15updated checksGravatar SwiftyOS 1-8/+4
2023-09-15fixed directory nameGravatar SwiftyOS 1-1/+1
2023-09-15fix arena path nameGravatar SwiftyOS 1-2/+2
2023-09-15change to check for only staged changesGravatar SwiftyOS 1-8/+10
2023-09-15changed to check if there are staged changesGravatar SwiftyOS 1-4/+6
2023-09-15Added checks and templates to cliGravatar SwiftyOS 1-2/+15
2023-09-15Added checks to the arean enter commandsGravatar SwiftyOS 1-6/+33
2023-09-15update cliGravatar SwiftyOS 1-5/+6
2023-09-15added git commands workflow to cliGravatar SwiftyOS 1-2/+253