mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-13 04:15:11 +00:00
Add package serena.config for configuration (with context_mode module)
This commit is contained in:
1 parent
988ac70da4
commit
51c93c2f45
7 files changed
+5
-5
No files matched your search
@@ -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
@@ -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
@@ -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__)
|
||||
|
||||
Whitespace-only changes.
File renamed without changes.
+1
-1
@@ -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
@@ -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
|
||||
|
||||
Reference in new issue
Block a user