Add package serena.config for configuration (with context_mode module)

This commit is contained in:
Dominik Jain authored and Dominik Jain committed 2025-07-02 18:18:13 +02:00
1 parent 988ac70da4
commit 51c93c2f45
7 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -1,4 +1,4 @@
from serena.config import SerenaAgentContext, SerenaAgentMode
from serena.config.context_mode import SerenaAgentContext, SerenaAgentMode
if __name__ == "__main__":
print("---------- Available modes: ----------")
+1 -1
View File
@@ -28,7 +28,7 @@ from sensai.util.logging import FallbackHandler, LogTime
from sensai.util.string import ToStringMixin
from serena import serena_version
from serena.config import SerenaAgentContext, SerenaAgentMode
from serena.config.context_mode import SerenaAgentContext, SerenaAgentMode
from serena.constants import (
DEFAULT_ENCODING,
PROJECT_TEMPLATE_FILE,
+1 -1
View File
@@ -15,7 +15,7 @@ from dotenv import load_dotenv
from sensai.util.logging import LogTime
from serena.agent import SerenaAgent, Tool, show_fatal_exception_safe
from serena.config import SerenaAgentContext
from serena.config.context_mode import SerenaAgentContext
from serena.constants import REPO_ROOT
log = logging.getLogger(__name__)
View File
Whitespace-only changes.
File renamed without changes.
+1 -1
View File
@@ -24,7 +24,7 @@ from serena.agent import (
SerenaConfig,
show_fatal_exception_safe,
)
from serena.config import SerenaAgentContext, SerenaAgentMode
from serena.config.context_mode import SerenaAgentContext, SerenaAgentMode
from serena.constants import DEFAULT_CONTEXT, DEFAULT_MODES
from serena.tools import ToolInterface
+1 -1
View File
@@ -21,7 +21,7 @@ from mcp.server.fastmcp.utilities.func_metadata import FuncMetadata, func_metada
from sensai.util import logging
from sensai.util.string import dict_string
from serena.config import SerenaAgentMode
from serena.config.context_mode import SerenaAgentMode
from serena.prompt_factory import PromptFactory
from serena.symbol import SymbolManager
from serena.text_utils import search_files