auto-coder 0.1.375__py3-none-any.whl → 0.1.376__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of auto-coder might be problematic. Click here for more details.
- {auto_coder-0.1.375.dist-info → auto_coder-0.1.376.dist-info}/METADATA +1 -1
- {auto_coder-0.1.375.dist-info → auto_coder-0.1.376.dist-info}/RECORD +17 -51
- autocoder/agent/base_agentic/base_agent.py +9 -8
- autocoder/auto_coder_rag.py +12 -0
- autocoder/models.py +2 -2
- autocoder/rag/cache/local_duckdb_storage_cache.py +63 -33
- autocoder/rag/conversation_to_queries.py +37 -5
- autocoder/rag/long_context_rag.py +161 -41
- autocoder/rag/tools/recall_tool.py +2 -1
- autocoder/rag/tools/search_tool.py +2 -1
- autocoder/rag/types.py +36 -0
- autocoder/utils/_markitdown.py +59 -13
- autocoder/version.py +1 -1
- autocoder/agent/agentic_edit.py +0 -833
- autocoder/agent/agentic_edit_tools/__init__.py +0 -28
- autocoder/agent/agentic_edit_tools/ask_followup_question_tool_resolver.py +0 -32
- autocoder/agent/agentic_edit_tools/attempt_completion_tool_resolver.py +0 -29
- autocoder/agent/agentic_edit_tools/base_tool_resolver.py +0 -29
- autocoder/agent/agentic_edit_tools/execute_command_tool_resolver.py +0 -84
- autocoder/agent/agentic_edit_tools/list_code_definition_names_tool_resolver.py +0 -75
- autocoder/agent/agentic_edit_tools/list_files_tool_resolver.py +0 -62
- autocoder/agent/agentic_edit_tools/plan_mode_respond_tool_resolver.py +0 -30
- autocoder/agent/agentic_edit_tools/read_file_tool_resolver.py +0 -36
- autocoder/agent/agentic_edit_tools/replace_in_file_tool_resolver.py +0 -95
- autocoder/agent/agentic_edit_tools/search_files_tool_resolver.py +0 -70
- autocoder/agent/agentic_edit_tools/use_mcp_tool_resolver.py +0 -55
- autocoder/agent/agentic_edit_tools/write_to_file_tool_resolver.py +0 -98
- autocoder/agent/agentic_edit_types.py +0 -124
- autocoder/auto_coder_lang.py +0 -60
- autocoder/auto_coder_rag_client_mcp.py +0 -170
- autocoder/auto_coder_rag_mcp.py +0 -193
- autocoder/common/llm_rerank.py +0 -84
- autocoder/common/model_speed_test.py +0 -392
- autocoder/common/v2/agent/agentic_edit_conversation.py +0 -188
- autocoder/common/v2/agent/ignore_utils.py +0 -50
- autocoder/dispacher/actions/plugins/action_translate.py +0 -214
- autocoder/ignorefiles/__init__.py +0 -4
- autocoder/ignorefiles/ignore_file_utils.py +0 -63
- autocoder/ignorefiles/test_ignore_file_utils.py +0 -91
- autocoder/linters/code_linter.py +0 -588
- autocoder/rag/loaders/test_image_loader.py +0 -209
- autocoder/rag/raw_rag.py +0 -96
- autocoder/rag/simple_directory_reader.py +0 -646
- autocoder/rag/simple_rag.py +0 -404
- autocoder/regex_project/__init__.py +0 -162
- autocoder/utils/coder.py +0 -125
- autocoder/utils/tests.py +0 -37
- {auto_coder-0.1.375.dist-info → auto_coder-0.1.376.dist-info}/LICENSE +0 -0
- {auto_coder-0.1.375.dist-info → auto_coder-0.1.376.dist-info}/WHEEL +0 -0
- {auto_coder-0.1.375.dist-info → auto_coder-0.1.376.dist-info}/entry_points.txt +0 -0
- {auto_coder-0.1.375.dist-info → auto_coder-0.1.376.dist-info}/top_level.txt +0 -0
autocoder/utils/tests.py
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import os
|
|
2
|
-
from autocoder.rag.simple_rag import SimpleRAG
|
|
3
|
-
from autocoder.common import AutoCoderArgs
|
|
4
|
-
import byzerllm
|
|
5
|
-
from loguru import logger
|
|
6
|
-
from byzerllm.apps.byzer_storage.env import get_latest_byzer_retrieval_lib
|
|
7
|
-
|
|
8
|
-
MODEL = "gpt3_5_chat"
|
|
9
|
-
EMB_MODEL = "gpt_emb"
|
|
10
|
-
RAY_ADDRESS = "auto"
|
|
11
|
-
QUERY = "test file"
|
|
12
|
-
|
|
13
|
-
def get_llm(args:AutoCoderArgs):
|
|
14
|
-
|
|
15
|
-
home = os.path.expanduser("~")
|
|
16
|
-
auto_coder_dir = os.path.join(home, ".auto-coder")
|
|
17
|
-
libs_dir = os.path.join(auto_coder_dir, "storage", "libs")
|
|
18
|
-
code_search_path = None
|
|
19
|
-
if os.path.exists(libs_dir):
|
|
20
|
-
retrieval_libs_dir = os.path.join(libs_dir,get_latest_byzer_retrieval_lib(libs_dir))
|
|
21
|
-
if os.path.exists(retrieval_libs_dir):
|
|
22
|
-
code_search_path = [retrieval_libs_dir]
|
|
23
|
-
|
|
24
|
-
try:
|
|
25
|
-
byzerllm.connect_cluster(address=args.ray_address,code_search_path=code_search_path)
|
|
26
|
-
except Exception as e:
|
|
27
|
-
logger.warning(f"Detecting error when connecting to ray cluster: {e}, try to connect to ray cluster without storage support.")
|
|
28
|
-
byzerllm.connect_cluster(address=args.ray_address)
|
|
29
|
-
|
|
30
|
-
llm = byzerllm.ByzerLLM()
|
|
31
|
-
llm.setup_default_model_name(args.model)
|
|
32
|
-
llm.setup_default_emb_model_name(args.emb_model)
|
|
33
|
-
llm.setup_template(model=args.model, template='auto')
|
|
34
|
-
|
|
35
|
-
return llm
|
|
36
|
-
|
|
37
|
-
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|