Commit Graph

641 Commits

Author SHA1 Message Date
Reinier van der Leer
3c48c4a2d6 Disable bytecode generation for python execution commands 2023-08-25 02:15:38 +02:00
Reinier van der Leer
1f3db55ee8 Improve command result printing to console 2023-08-25 02:13:52 +02:00
Reinier van der Leer
7285f7dad3 Fix formatting of plugin commands in PromptGenerator 2023-08-25 01:09:53 +02:00
Reinier van der Leer
2c07e8a4d9 Improve open_file description 2023-08-24 23:11:20 +02:00
Reinier van der Leer
c31bccc1da Fix PromptGenerator for plugin use 2023-08-24 23:05:21 +02:00
Reinier van der Leer
efe9278693 Fix some more broken tests 2023-08-24 17:35:50 +02:00
Reinier van der Leer
055bbc10d4 Disable ask_user for testing or benchmarking runs 2023-08-24 16:20:35 +02:00
Reinier van der Leer
4bcb39dc14 Fix logging setup for testing 2023-08-24 16:09:25 +02:00
Reinier van der Leer
bcd00b39b7 Refine prompt to reduce unnecessary browsing and open_file use 2023-08-24 15:13:40 +02:00
Reinier van der Leer
97ccaba45f Fix broken tests (casualties from the past few days) 2023-08-23 02:26:39 +02:00
Reinier van der Leer
a660619ea8 Adjust command formatting in prompt 2023-08-23 01:04:39 +02:00
Reinier van der Leer
d8f02dc79f Fix ask_user question & response formatting 2023-08-23 01:04:08 +02:00
Reinier van der Leer
092afbce62 Complete context integration & add close_context_item command 2023-08-23 01:01:52 +02:00
Reinier van der Leer
b0405ac8ee Add Context segment to prompt 2023-08-23 00:59:17 +02:00
Reinier van der Leer
380e92596e Merge branch 'master' into file-context 2023-08-22 23:42:20 +02:00
Reinier van der Leer
2d400ed167 Fix "user-friendly" logging 2023-08-22 23:41:52 +02:00
Reinier van der Leer
2a8cc4816e Enable open_file and open_folder 2023-08-22 23:31:16 +02:00
Reinier van der Leer
cef5e6535e Minor refactor in PromptGenerator to fix trailing list items 2023-08-22 23:18:11 +02:00
Reinier van der Leer
f4658cfff3 Merge branch 'master' into file-context 2023-08-22 23:04:02 +02:00
Reinier van der Leer
eb5976d56b Clean up logging output 2023-08-22 23:02:28 +02:00
Reinier van der Leer
2520ec6e08 Generate system prompt based on agent state
* Rename PromptConfig to AIDirectives

* Make PromptGenerator primarily responsible for generating prompt instead of AIConfig

* Refactor PromptGenerator

* Add `available` attribute to `Command` class, to determine availability based on `Agent` state
2023-08-22 22:57:41 +02:00
Reinier van der Leer
4e64519a26 Migrate to mixins for Context and Workspace features 2023-08-22 22:52:26 +02:00
Reinier van der Leer
26d9f46da4 Merge branch 'master' into file-context 2023-08-22 07:31:21 +02:00
Reinier van der Leer
4e761b49f3 Clean up logging 2023-08-22 07:29:56 +02:00
Reinier van der Leer
cadc8c5b61 WIP: add file context functionality 2023-08-19 23:42:54 +02:00
Reinier van der Leer
3fe2246468 Agent loop v2: Prompting improvements & WIP planning (#5077)
* Add categories to command registry

* Fix tests

* Clean up prompt generation

* Rename Performance Evaluations to Best Practices
* Move specification of response format from system prompt to Agent.construct_base_prompt
* Clean up PromptGenerator class

* Add debug logging to AIConfig autogeneration

* Clarify prompting and add support for multiple thought processes to Agent

* WIP: PlanningAgent

* Disable message history by default on BaseAgent

* Add CommandOutput and ThoughtProcessOutput type aliases

* Fix interrupts in main.py

* Use custom exceptions and clean up exception/error handling

* Remove duplicate agent_history.py

* Update PlanningAgent from upstream

* WIP: Support for dynamic in-prompt context

* WIP: response formats for PlanningAgent three-stage cycle

* Remove browsing overlay & separate browsing from extraction code

* Fix human feedback

* Fix tests

* Include history in Agent prompt generation

* Code improvements in agent.py

* Add ask_user command and revise system prompt
2023-08-19 17:44:50 +02:00
Luke
3a2d08fb41 Pass TestSearch benchmark consistently (Add browse_website TOKENS_TO_TRIGGER_SUMMARY) (#5092)
* Added SUMMARIZATION_TRIGGER_LENGTH
browse_website won't summarize content that's shorter
than SUMMARIZATION_TRIGGER_LENGTH.
It defaults to 250 characters, which is approximately 50 tokens.

* Refactor BrowserOptions

* Use tokens instead of length
to trigger summarization

* Bugfix

* fix: Always return links even if not summarizing
feat: Increase the number of links returned from 5 to 20

---------

Co-authored-by: lc0rp <2609411+lc0rp@users.noreply.github.com>
Co-authored-by: James Collins <collijk@uw.edu>
2023-08-01 11:48:13 -07:00
James Collins
a593c32727 Move more app files to app package (#5036)
Co-authored-by: Nicholas Tindle <nick@ntindle.com>
2023-08-01 13:48:20 -04:00
Cyrus
c8914ebb66 slips of the pen (bloopers) in autogpt/core part of the repo (#5045)
* fix omitted "()" in __str__(self) in core/ability/base.py

* put back async keyword in the base class

* Remove extra () in OpenAISettings class in
autogpt/core/resourece/model_providers/openai.py

---------

Co-authored-by: James Collins <collijk@uw.edu>
Co-authored-by: Nicholas Tindle <nick@ntindle.com>
2023-08-01 08:39:19 -07:00
Luke
ad18f77e25 fix: Nonetype error from command_name.startswith() (#5079)
Co-authored-by: lc0rp <2609411+lc0rp@users.noreply.github.com>
Co-authored-by: James Collins <collijk@uw.edu>
2023-08-01 01:47:32 -04:00
Reinier van der Leer
3651d22147 Verify model compatibility if OPENAI_FUNCTIONS is set (#5075)
Co-authored-by: Luke <2609441+lc0rp@users.noreply.github.com>
2023-07-31 11:43:41 -04:00
Reinier van der Leer
b7f1df3e1d Fix execute_shell_popen 2023-07-31 01:21:09 +02:00
Luke
c1567c22f5 Do not load disabled commands (faster exec & benchmark runs) (#5078)
* Use modern material theme for docs

* Do not load disabled commands

* black .

---------

Co-authored-by: lc0rp <2609411+lc0rp@users.noreply.github.com>
2023-07-30 20:51:50 +02:00
Reinier van der Leer
c9bf2ee48d Add categories to command registry (#5063)
* Add categories to command registry

* Fix tests
2023-07-29 13:38:25 -07:00
merwanehamadi
45c9566298 Remove append to file (#5051)
Signed-off-by: Merwane Hamadi <merwanehamadi@gmail.com>
2023-07-29 10:55:19 -07:00
Reinier van der Leer
2eb346e06e Improve prompting and prompt generation infrastructure (#5076)
* Clean up prompt generation

* Rename Performance Evaluations to Best Practices
* Move specification of response format from system prompt to Agent.construct_base_prompt
* Clean up PromptGenerator class

* Add debug logging to AIConfig autogeneration

* Clarify prompting and add support for multiple thought processes to Agent
2023-07-29 10:06:47 -07:00
Reinier van der Leer
f87b01620d Merge branch 'master' into release-v0.4.6-sync-to-master 2023-07-27 01:01:42 +02:00
Reinier van der Leer
ce86a5e697 Fix workspace crash 2023-07-27 00:28:55 +02:00
Reinier van der Leer
ddb7efa593 Move misplaced log_cycle statements 2023-07-25 18:08:50 +02:00
Luke
71e7424baf Workdir path fixes and docs updates (#5042)
* Use modern material theme for docs

* Further file path fixes, and doc updates to specify when relative paths are expected

* fix: lint

* Remove unwated changes

* Remove comments

---------

Co-authored-by: lc0rp <2609411+lc0rp@users.noreply.github.com>
Co-authored-by: Reinier van der Leer <reinier.vanderleer@agpt.co>
Co-authored-by: Reinier van der Leer <github@pwuts.nl>
2023-07-24 19:34:52 +02:00
Merwane Hamadi
b6d9c3ab03 Remove delete file
Signed-off-by: Merwane Hamadi <merwanehamadi@gmail.com>
2023-07-24 10:15:25 -07:00
Tomas Valenta
abed282db3 Fix runtime error in the API (#5047)
* Add API via agent-protocol

* Fix linter formatting errors

* Fix API runtime errors; Improve API initialization

* Fix formatting linter erorrs
2023-07-24 08:34:24 -07:00
merwanehamadi
60d0f5edac Fix workspace crashing (#5041)
Signed-off-by: Merwane Hamadi <merwanehamadi@gmail.com>
2023-07-23 21:28:12 -07:00
Tomas Valenta
7b4cd8c86a Add API via agent-protocol SDK (#5044)
* Add API via agent-protocol

* Fix linter formatting errors
2023-07-23 20:57:47 -07:00
eyalk11
295473551f Gracefully handle plugin loading failure (#4994)
Co-authored-by: Reinier van der Leer <github@pwuts.nl>
2023-07-22 01:42:41 -04:00
James Collins
669e66a1e7 Move all application code to an application subpackage (#5026)
* Move all application code to an application subpackage

* Remove main.py
2023-07-21 12:01:32 -07:00
Cyrus
12d126339e fix the forgotten + symbol in parse_ability_result(...) in parser.py (#5028)
Co-authored-by: James Collins <collijk@uw.edu>
2023-07-21 11:47:21 -07:00
Reinier van der Leer
2c53530e99 Fix path processing (#5032)
* Fix and clean up path processing in logs module

* Fix path processing throughout the project

* Fix plugins test

* Fix borky pytest vs mkdir(exist_ok=True)

* Update docs and gitignore for new workspace location

* Fix borky pytest vol.2

* ok james
2023-07-21 11:36:15 -07:00
James Collins
8503e961d8 Bugfix/bad null byte (#5033)
* Remove bad null byte

* Also don't try to block url null bytes
2023-07-21 09:09:14 -07:00
James Collins
98c3f6b781 Bugfix/remove breakpoint from embedding function (#5022)
* Add links to github issues in the README and clarify run instructions

* Remove breakpoint from embedding function
2023-07-20 09:24:14 -07:00