mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2026-01-13 19:24:18 +01:00
lint
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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__)
|
||||
|
||||
@@ -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__ = [
|
||||
|
||||
Reference in New Issue
Block a user