aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Reinier van der Leer <pwuts@agpt.co> 2024-05-04 20:51:38 +0200
committerGravatar Reinier van der Leer <pwuts@agpt.co> 2024-05-04 20:51:38 +0200
commitad22bc5cd9d4a15c487622c7d6e1415e8d853a78 (patch)
tree43df9500b686ba14a1e675a16d13bb13bab2b224
parentfix test_ai_profile.py (diff)
downloadAuto-GPT-reinier/open-765-do-not-run-profile-generator-on-agent-creation.tar.gz
Auto-GPT-reinier/open-765-do-not-run-profile-generator-on-agent-creation.tar.bz2
Auto-GPT-reinier/open-765-do-not-run-profile-generator-on-agent-creation.zip
-rw-r--r--autogpts/autogpt/autogpt/app/main.py5
-rw-r--r--autogpts/autogpt/autogpt/commands/system.py1
2 files changed, 3 insertions, 3 deletions
diff --git a/autogpts/autogpt/autogpt/app/main.py b/autogpts/autogpt/autogpt/app/main.py
index c0a5a6bfa..0b82efd85 100644
--- a/autogpts/autogpt/autogpt/app/main.py
+++ b/autogpts/autogpt/autogpt/app/main.py
@@ -21,7 +21,6 @@ if TYPE_CHECKING:
from autogpt.agents.base import BaseAgentActionProposal
from autogpt.agent_factory.configurators import configure_agent_with_state, create_agent
-from autogpt.agent_factory.profile_generator import generate_agent_profile_for_task
from autogpt.agent_manager import AgentManager
from autogpt.agents.prompt_strategies.one_shot import AssistantThoughts
from autogpt.commands.execute_code import (
@@ -328,7 +327,9 @@ async def run_auto_gpt(
# TODO: re-evaluate performance benefit of task-oriented profiles
# # Concurrently generate a custom profile for the agent and apply it once done
- # def update_agent_directives(task: asyncio.Task[tuple[AIProfile, AIDirectives]]):
+ # def update_agent_directives(
+ # task: asyncio.Task[tuple[AIProfile, AIDirectives]]
+ # ):
# logger.debug(f"Updating AIProfile: {task.result()[0]}")
# logger.debug(f"Adding AIDirectives: {task.result()[1]}")
# agent.state.ai_profile = task.result()[0]
diff --git a/autogpts/autogpt/autogpt/commands/system.py b/autogpts/autogpt/autogpt/commands/system.py
index 14e86a32e..df2b30ad0 100644
--- a/autogpts/autogpt/autogpt/commands/system.py
+++ b/autogpts/autogpt/autogpt/commands/system.py
@@ -4,7 +4,6 @@ from typing import Iterator
from autogpt.agents.protocols import CommandProvider, MessageProvider
from autogpt.command_decorator import command
-from autogpt.config.ai_profile import AIProfile
from autogpt.config.config import Config
from autogpt.core.resource.model_providers.schema import ChatMessage
from autogpt.core.utils.json_schema import JSONSchema