Skip to content

Commit

Permalink
AutoGPT: Move all the Agent's prompt generation code into a PromptStr…
Browse files Browse the repository at this point in the history
…ategy (#5363)

* AutoGPT: fix execution of async commands

* AutoGPT: Move all the Agent's prompt building code into OneShotAgentPromptStrategy

* Remove generic type annotations from PromptStrategy

* Fix tests

* Fix lint
  • Loading branch information
Pwuts authored Sep 28, 2023
1 parent 747f27d commit d466689
Show file tree
Hide file tree
Showing 31 changed files with 1,018 additions and 811 deletions.
3 changes: 3 additions & 0 deletions autogpts/autogpt/agbenchmark_config/benchmarks.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ def bootstrap_agent(task: str, continuous_mode: bool) -> Agent:
ai_goals=[task],
)

agent_prompt_config = Agent.default_settings.prompt_config.copy(deep=True)
agent_prompt_config.use_functions_api = config.openai_functions
agent_settings = AgentSettings(
name=Agent.default_settings.name,
description=Agent.default_settings.description,
Expand All @@ -52,6 +54,7 @@ def bootstrap_agent(task: str, continuous_mode: bool) -> Agent:
use_functions_api=config.openai_functions,
plugins=config.plugins,
),
prompt_config=agent_prompt_config,
history=Agent.default_settings.history.copy(deep=True),
)

Expand Down
Loading

0 comments on commit d466689

Please sign in to comment.