Commit Graph

55 Commits (00f2b134cb31d530ad05553f9d1be2ae97977b5e)

Author SHA1 Message Date
Amelia Bruno 52bd033a02
tweak(setup): Improvements to setup script (#7469)
Co-authored-by: Nicholas Tindle <nicholas.tindle@agpt.co>
Co-authored-by: Toran Bruce Richards <toran.richards@gmail.com>
2024-08-05 00:13:25 -05:00
Krzysztof Czerwinski 9f71cd2437
feat(forge): Unbreak `forge` agent (#7196)
Revert some changes to fix forge agent and enable components support.
- Rename forge `Agent` to `ProtocolAgent`
- Bring back and update `forge/app.py` and `forge/agent/forge_agent.py`
- `ForgeAgent` inherits from `BaseAgent`, supports component execution and runs the same pipelines as autogpt Agent
- Update forge version from 0.1.0 to 0.2.0
- Update code comments
2024-06-12 13:45:00 +01:00
Reinier van der Leer f107ff8cf0
Set up unified pre-commit + CI w/ linting + type checking & FIX EVERYTHING (#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`
2024-05-28 05:04:21 +02:00
Krzysztof Czerwinski cdae98d36b
fix(ci): Fix cli and CI (#7166)
- Add a special case for cli to handle autogpt and forge agent
- Remove forge agent from smoke test ci
2024-05-22 17:18:00 +01:00
Krzysztof Czerwinski 4c325724ec
refactor(autogpt, forge): Remove `autogpts` directory (#7163)
- 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-22 13:08:54 +01:00
SwiftyOS 1f05881283 fix: typo 2024-05-11 08:45:51 +02:00
SwiftyOS a9afb3cbff removed git requirement from cli 2024-05-11 08:41:52 +02:00
Reinier van der Leer c562b3b6a3
unbreak `./run agent create`
"If we had done this in Swift it would've never happened" ~Craig Swift

                ____
              / . .\
              \  ---<
               \  /
       ________/ /
    -=:___________/
2024-05-10 12:53:57 +02:00
Swifty 818d391284
Remove arena submission from cli (#7137) 2024-05-09 11:27:16 +02:00
Reinier van der Leer fe3f835b3e
fix(cli): Add timeout to `agent start` command
- Add `timeout` parameter (default 30) to `wait_until_conn_ready(..)` function
- Apply `isort` and `black` formatting
2024-03-22 13:25:23 +01:00
Reinier van der Leer 52b93dd84e
fix(cli/agent start): Wait for applications to finish starting before returning
- 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)
2024-02-15 11:26:26 +01:00
SwiftyOS 4c495ce1b0 Remove unnecessary code in cli.py 2023-12-06 14:25:38 +01:00
Reinier van der Leer 9250376ec2
refactor: Improve warning/error output in project CLI
- Refactor the warning and error messages in the CLI to provide clearer instructions and improve user experience.
2023-11-24 19:16:40 +01:00
Reinier van der Leer c25b47e3a5
fix: Fix description of CLI --no-setup flag
- Update the description of the `--no-setup` flag in the CLI `start` command to accurately reflect its functionality.
2023-11-24 15:49:03 +01:00
Kiran 22fb0f7bbf
fix(cli): resolve warning caused by \w in regular string (#6236) 2023-11-16 10:23:25 +01:00
rummsi1337 25c6d019fe
Fix for agent_name regex (#6108)
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-06 10:26:15 +01:00
Evgenii aef512e49e
Improvement of the regular expression (#6096) 2023-11-03 11:07:03 +01:00
SwiftyOS d9fbd26b85 fix: Update agent creation logic and error message
- 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-30 15:36:14 +01:00
bsenst 1559b5dfdd
fix typo (#5715) 2023-10-19 12:05:20 +02:00
merwanehamadi 3bd8ae4843
Forge/workshop (#5654)
* 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-09 08:32:52 -07:00
SwiftyOS b52aba4ef5 inverted setup param 2023-10-08 11:39:38 -07:00
Swifty bef8203da2
Added setup command refactored memstore (#5555)
* forge -  restructured memstore

* Stopped setup from being ran as defualt when running an agent
2023-10-05 10:13:59 -07:00
SwiftyOS 4840dd25a3 Updated stop command to kill the benchmark server as well 2023-09-29 11:03:52 +02:00
SwiftyOS 959e1304d1 forge - Added unified run command 2023-09-28 18:38:55 +02:00
SwiftyOS 3b909d2fd2 updated github instructions 2023-09-26 12:39:53 +02:00
merwanehamadi 8f41dbe27d
Rename Auto-GPT to AutoGPT (#5301)
* 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-22 15:49:29 -07:00
SwiftyOS cc7476656f removed frontend command from the cli 2023-09-19 15:08:26 +02:00
SwiftyOS aa1a65c59c Updated forge to server the frontend again 2023-09-19 13:24:06 +02:00
SwiftyOS 7022eda1a3 Updated cli 2023-09-18 17:56:23 +02:00
SwiftyOS af7c5e0291 Fix test listing 2023-09-18 16:40:30 +02:00
Swifty 8b3a915b2f
Serving frontend from the forge agent server (#5252) 2023-09-18 16:27:03 +02:00
SwiftyOS e38008879a fixed arena enter command 2023-09-18 12:27:09 +02:00
SwiftyOS 3ea9d6a70f simplified the install script add help instruction 2023-09-17 18:41:06 +02:00
SwiftyOS cbcdcad43c Added ascii art to cli 2023-09-16 19:53:28 +02:00
SwiftyOS 4245a6c4f0 switch check to see if the submission branch exists 2023-09-16 19:37:52 +02:00
SwiftyOS 5bfefd6a12 fixed branch names 2023-09-16 19:06:18 +02:00
SwiftyOS 02bda90a29 Added an update function, instructions on how to make another submission and an update function 2023-09-16 18:51:02 +02:00
SwiftyOS 2211efc800 black formatting 2023-09-16 18:28:26 +02:00
SwiftyOS 7fda0c7884 removed submit command 2023-09-16 18:27:42 +02:00
SwiftyOS aea21a9694 deleted sync command 2023-09-16 18:24:48 +02:00
SwiftyOS aff6dc24b1 agents to agent in docs 2023-09-15 21:17:41 +02:00
SwiftyOS 7d2e2344d1 correct pr branch 2023-09-15 21:07:03 +02:00
SwiftyOS ccd2dcf1f7 changed submision branch to include agent name 2023-09-15 20:38:41 +02:00
SwiftyOS 8958f58eca updated checks 2023-09-15 20:31:00 +02:00
SwiftyOS 54f1098dcf fixed directory name 2023-09-15 20:21:18 +02:00
SwiftyOS 169f7210c1 fix arena path name 2023-09-15 20:13:21 +02:00
SwiftyOS 433526b732 change to check for only staged changes 2023-09-15 20:10:51 +02:00
SwiftyOS 71cb72b3a4 changed to check if there are staged changes 2023-09-15 20:09:18 +02:00
SwiftyOS 2edb59736c Added checks and templates to cli 2023-09-15 20:04:24 +02:00
SwiftyOS 582570639f Added checks to the arean enter commands 2023-09-15 20:02:04 +02:00