Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

lint

Reinier van der Leer0ceaa5b75395
diff --git a/autogpts/autogpt/autogpt/agent_factory/configurators.py b/autogpts/autogpt/autogpt/agent_factory/configurators.py
index 5c092dc6b6..3af4177481 100644
--- a/autogpts/autogpt/autogpt/agent_factory/configurators.py
+++ b/autogpts/autogpt/autogpt/agent_factory/configurators.py
@@ -3,7 +3,7 @@ from typing import Optional
from autogpt.agent_manager import AgentManager
from autogpt.agents.agent import Agent, AgentConfiguration, AgentSettings
from autogpt.commands import COMMAND_CATEGORIES
-from autogpt.config import AIProfile, AIDirectives, Config
+from autogpt.config import AIDirectives, AIProfile, Config
from autogpt.core.resource.model_providers import ChatModelProvider
from autogpt.logs.config import configure_chat_plugins
from autogpt.logs.helpers import print_attribute
diff --git a/autogpts/autogpt/autogpt/agent_factory/profile_generator.py b/autogpts/autogpt/autogpt/agent_factory/profile_generator.py
index 2f6d918f6e..4809c7c911 100644
--- a/autogpts/autogpt/autogpt/agent_factory/profile_generator.py
+++ b/autogpts/autogpt/autogpt/agent_factory/profile_generator.py
@@ -1,6 +1,6 @@
import logging
-from autogpt.config import AIProfile, AIDirectives, Config
+from autogpt.config import AIDirectives, AIProfile, Config
from autogpt.core.configuration import SystemConfiguration, UserConfigurable
from autogpt.core.prompting import (
ChatPrompt,
@@ -119,7 +119,9 @@ class AgentProfileGeneratorConfiguration(SystemConfiguration):
class AgentProfileGenerator(PromptStrategy):
- default_configuration: AgentProfileGeneratorConfiguration = AgentProfileGeneratorConfiguration()
+ default_configuration: AgentProfileGeneratorConfiguration = (
+ AgentProfileGeneratorConfiguration()
+ )
def __init__(
self,
diff --git a/autogpts/autogpt/autogpt/agents/base.py b/autogpts/autogpt/autogpt/agents/base.py
index 20f400a68c..1061ee99c2 100644
--- a/autogpts/autogpt/autogpt/agents/base.py
+++ b/autogpts/autogpt/autogpt/agents/base.py
@@ -22,8 +22,8 @@ if TYPE_CHECKING:
from autogpt.agents.utils.prompt_scratchpad import PromptScratchpad
from autogpt.config import ConfigBuilder
-from autogpt.config.ai_profile import AIProfile
from autogpt.config.ai_directives import AIDirectives
+from autogpt.config.ai_profile import AIProfile
from autogpt.core.configuration import (
Configurable,
SystemConfiguration,
diff --git a/autogpts/autogpt/autogpt/agents/prompt_strategies/one_shot.py b/autogpts/autogpt/autogpt/agents/prompt_strategies/one_shot.py
index a10fbbd34f..25381c0f85 100644
--- a/autogpts/autogpt/autogpt/agents/prompt_strategies/one_shot.py
+++ b/autogpts/autogpt/autogpt/agents/prompt_strategies/one_shot.py
@@ -14,7 +14,7 @@ if TYPE_CHECKING:
from autogpt.models.action_history import Episode
from autogpt.agents.utils.exceptions import InvalidAgentResponseError
-from autogpt.config import AIProfile, AIDirectives
+from autogpt.config import AIDirectives, AIProfile
from autogpt.core.configuration.schema import SystemConfiguration, UserConfigurable
from autogpt.core.prompting import (
ChatPrompt,
diff --git a/autogpts/autogpt/autogpt/app/main.py b/autogpts/autogpt/autogpt/app/main.py
index 8e92148c9d..ee3db47436 100644
--- a/autogpts/autogpt/autogpt/app/main.py
+++ b/autogpts/autogpt/autogpt/app/main.py
@@ -15,10 +15,7 @@ from pydantic import SecretStr
if TYPE_CHECKING:
from autogpt.agents.agent import Agent
-from autogpt.agent_factory.configurators import (
- configure_agent_with_state,
- create_agent,
-)
+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 import AgentThoughts, CommandArgs, CommandName
diff --git a/autogpts/autogpt/autogpt/app/setup.py b/autogpts/autogpt/autogpt/app/setup.py
index cbe2c38c31..6410fc9b35 100644
--- a/autogpts/autogpt/autogpt/app/setup.py
+++ b/autogpts/autogpt/autogpt/app/setup.py
@@ -3,7 +3,7 @@ import logging
from typing import Optional
from autogpt.app.utils import clean_input
-from autogpt.config import AIProfile, AIDirectives, Config
+from autogpt.config import AIDirectives, AIProfile, Config
from autogpt.logs.helpers import print_attribute
logger = logging.getLogger(__name__)
diff --git a/autogpts/autogpt/autogpt/config/__init__.py b/autogpts/autogpt/autogpt/config/__init__.py
index 326b639d59..e0c1133910 100644
--- a/autogpts/autogpt/autogpt/config/__init__.py
+++ b/autogpts/autogpt/autogpt/config/__init__.py
@@ -1,8 +1,8 @@
"""
This module contains the configuration classes for AutoGPT.
"""
-from .ai_profile import AIProfile
from .ai_directives import AIDirectives
+from .ai_profile import AIProfile
from .config import Config, ConfigBuilder, assert_config_has_openai_api_key
__all__ = [