Commit Graph

4865 Commits

Author SHA1 Message Date
hunteraraujo
2f187a853e refactor: Refactor agent message tile rendering logic
- Updated the regular expression pattern to include matching fenced code blocks in addition to headers.
- Set the `dotAll` parameter to `true` to match across multiple lines in the regular expression.
- Wrapped the message container with a `SingleChildScrollView` widget to enable scrolling when the message content exceeds the available space.
- Implemented logic to conditionally render the message as markdown or selectable text based on the value of `hasMarkdown`.
- Modified the `MarkdownStyleSheet` to customize the appearance of blockquotes and code blocks.
- Updated the child widget of the message container to reflect the changes.
2023-10-31 16:33:45 -07:00
Reinier van der Leer
c65b71d51d feat: Re-use Docker container for code execution
- Create a unique container name based on agent ID
- Check if the container with the name exists, otherwise create a new container
- If the container is not running, start it; otherwise, restart it
- Execute the code in the container
- Return the output of the code execution

This change enables reusing the same container for consecutive code execution commands, allowing for iterative changes to the execution environment.

Note: This change also includes handling the case where the Docker image is not found locally by pulling it from Docker Hub. The image used in this case is "python:3-alpine".
2023-10-31 00:03:23 -07:00
hunteraraujo
c3569d1842 Merge branch 'master' of github.com:Significant-Gravitas/Auto-GPT 2023-10-30 16:29:29 -07:00
hunteraraujo
d3c58081ec Update TestAgent.json 2023-10-30 16:29:15 -07:00
Reinier van der Leer
653fc5851d fix: Fix serialization error caused by ignored field in ErrorInfo object
- Change `ErrorInfo` class attribute `_repr` to `repr` for consistent serialization
- Update `__repr__` method to return `self.repr` instead of `self._repr`
2023-10-30 16:10:40 -07:00
Reinier van der Leer
fc1d73ba60 fix: Serialize Exception objects in ActionErrorResult
- Replaced `error` field in `ActionErrorResult` with `ErrorInfo` model.
- Implemented `ErrorInfo` model with necessary fields (`args`, `message`, `exception_type`, `_repr`).
- Added `from_exception` method to `ErrorInfo` model to create an instance from an Exception object.
- Updated `ActionErrorResult.from_exception` method to utilize `ErrorInfo.from_exception`.
- Ensured that `ActionErrorResult` is now fully serializable and won't cause crashes.
- Made necessary changes in code comments and documentation.

This commit fixes crashes caused by attempted serialiation of `AgentException` objects in the `ActionHistory` (as part of `ActionErrorResult`s). To this end, it introduces a new `ErrorInfo` model to encapsulate information about the exception, including the exception type, message, arguments, and representation. The `from_exception` method is added to both `ActionErrorResult` and `ErrorInfo` to create an `ActionErrorResult` object from an exception, extracting the relevant information.
2023-10-30 15:52:56 -07: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
Silen Naihin
2bd05827f9 Merge branch 'master' of https://github.com/Significant-Gravitas/Auto-GPT 2023-10-27 08:17:05 -07:00
Silen Naihin
bbdb113f4e deleting test agent 2023-10-27 08:16:41 -07:00
Merwane Hamadi
5ff3f2dbbb Hackathon CI: use agbenchmark instead of mock 2023-10-27 07:44:02 -07:00
Merwane Hamadi
bd496066dc Hackathon CI: change name of folder 2023-10-27 07:27:43 -07:00
Merwane Hamadi
336e78eca0 Update Hackathon CI 2023-10-27 07:21:29 -07:00
SwiftyOS
4109dca3f7 feat: Add webdriver-manager package
- Added the  package to the project dependencies
- The  package is used to automatically manage drivers for different browsers
2023-10-27 14:35:28 +02:00
Oğuzhan BOZKURT
22ba2459c9 hodri entering the arena (#5985) 2023-10-27 13:49:52 +02:00
seeseesky
f4985395a9 test-tpk entering the arena (#5979) 2023-10-27 12:24:36 +02:00
Jordan Ellis
68edb184cd Update evo-ninja.json (#5966)
Co-authored-by: Swifty <craigswift13@gmail.com>
2023-10-27 12:23:55 +02:00
Luis
6c0575233f Arena submission aware agent (#5965)
Submit
2023-10-27 12:22:47 +02:00
warlockee
026b632f8f autogpt_warlock entering the arena (#5976)
Co-authored-by: erikl <erikl@Eriks-MacBook-Pro.local>
2023-10-27 12:19:11 +02:00
MoWitheSmileyFace
405adee71d Drench entering the arena (#5977) 2023-10-27 12:18:50 +02:00
aixiaoxin
11fbbc6df6 aixiaoxin entering the arena (#5982) 2023-10-27 12:17:30 +02:00
ezirmusitua
52106e8280 WRITER entering the arena (#5984) 2023-10-27 12:17:03 +02:00
JasonD
0f44c9db50 AutoGenius entering the arena (#5972)
Co-authored-by: Dyson <dyson@bituniverse.org>
2023-10-27 12:16:34 +02:00
merwanehamadi
21b809794a Update hackathon.yml (#5975) 2023-10-26 13:47:36 -07:00
Reinier van der Leer
6f66376bb8 AutoGPT: require function call if only 1 function is given 2023-10-26 12:02:15 -07:00
Reinier van der Leer
6678f6bd72 AutoGPT: Fix showing of task input in UI 2023-10-26 11:49:28 -07:00
Merwane Hamadi
5fd82c7f15 Add CI for the hackathon and fix TestAgent.json 2023-10-26 08:27:47 -07:00
illyx1
8f1b9fc670 illynetV2 entering the arena (#5971) 2023-10-26 15:27:41 +02:00
illyx1
0e408053e2 illyx1 entering the arena (#5970) 2023-10-26 15:06:48 +02:00
Howard-Cheung
1a6ca503a5 zczc entering the arena (#5969) 2023-10-26 15:05:37 +02:00
bigfatball
ab2a618335 Add Mary.json (#5875)
Co-authored-by: Anthony <tony@DESKTOP-6SR9O93>
2023-10-26 12:43:36 +02:00
SwiftyOS
19175badee Updated commit hash of entries 2023-10-26 12:29:21 +02:00
SwiftyOS
6c9152a95c Removed variants of testagent to avoid path collision 2023-10-26 11:15:50 +02:00
fraven01
3e366d8de0 TESTAGENT entering the arena (#5884) 2023-10-26 11:06:39 +02:00
xhjxhj001
ebf2ff3ceb ai_assistant entering the arena (#5886) 2023-10-26 11:06:23 +02:00
Ruttanard Ruttanapan
586660d6e0 DE entering the arena (#5963) 2023-10-26 11:05:52 +02:00
EthanF
c481d51c59 research_analyst entering the arena (#5895) 2023-10-26 11:04:55 +02:00
EthanF
7d89d90851 ra entering the arena (#5897) 2023-10-26 11:04:39 +02:00
EthanF
b3486c1696 ra1 entering the arena (#5898) 2023-10-26 11:04:26 +02:00
Daniel Leidisch
1e66e01849 QuantumQuill entering the arena (#5899) 2023-10-26 11:04:13 +02:00
Erland Lewin
c4df3b7074 Pelle entering the arena (#5900) 2023-10-26 11:04:00 +02:00
Victor Leduc
03acf625c5 victor2-0 entering the arena (#5903) 2023-10-26 11:03:25 +02:00
Marvin Plummeridge
e3f2eb4c1d test1 entering the arena (#5904) 2023-10-26 11:03:09 +02:00
Marvin Plummeridge
f26702734e cssupdater entering the arena (#5906) 2023-10-26 11:02:44 +02:00
Pho
decc99da48 set entering the arena (#5911) 2023-10-26 11:02:19 +02:00
sebabetz
c50e441323 avengaGPT entering the arena (#5912) 2023-10-26 11:01:59 +02:00
Uday Sagar
da2ccdfd2e agentgpt entering the arena (#5913) 2023-10-26 11:01:33 +02:00
KapitanFernand
1918601b9f Zoidberg entering the arena (#5917) 2023-10-26 10:59:15 +02:00
Cao Yanfei
5c9f3bee30 project_review entering the arena (#5918)
Co-authored-by: caoyanfei <caoyanfei@dycjr.com>
2023-10-26 10:58:34 +02:00
stargatejy
2efd082525 MangoAI entering the arena (#5919) 2023-10-26 10:58:17 +02:00
Hanzhang
5336352ce9 liuzh entering the arena (#5920) 2023-10-26 10:58:03 +02:00