autocoder-nano 0.1.29__py3-none-any.whl → 0.1.33__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.
- autocoder_nano/agent/agent_base.py +4 -4
- autocoder_nano/agent/agentic_edit.py +1584 -0
- autocoder_nano/agent/agentic_edit_tools/__init__.py +28 -0
- autocoder_nano/agent/agentic_edit_tools/ask_followup_question_tool.py +51 -0
- autocoder_nano/agent/agentic_edit_tools/attempt_completion_tool.py +36 -0
- autocoder_nano/agent/agentic_edit_tools/base_tool_resolver.py +31 -0
- autocoder_nano/agent/agentic_edit_tools/execute_command_tool.py +65 -0
- autocoder_nano/agent/agentic_edit_tools/list_code_definition_names_tool.py +78 -0
- autocoder_nano/agent/agentic_edit_tools/list_files_tool.py +123 -0
- autocoder_nano/agent/agentic_edit_tools/list_package_info_tool.py +42 -0
- autocoder_nano/agent/agentic_edit_tools/plan_mode_respond_tool.py +35 -0
- autocoder_nano/agent/agentic_edit_tools/read_file_tool.py +73 -0
- autocoder_nano/agent/agentic_edit_tools/replace_in_file_tool.py +148 -0
- autocoder_nano/agent/agentic_edit_tools/search_files_tool.py +135 -0
- autocoder_nano/agent/agentic_edit_tools/write_to_file_tool.py +57 -0
- autocoder_nano/agent/agentic_edit_types.py +151 -0
- autocoder_nano/auto_coder_nano.py +146 -92
- autocoder_nano/git_utils.py +63 -1
- autocoder_nano/llm_client.py +170 -3
- autocoder_nano/llm_types.py +53 -14
- autocoder_nano/rules/rules_learn.py +221 -0
- autocoder_nano/templates.py +1 -1
- autocoder_nano/utils/formatted_log_utils.py +128 -0
- autocoder_nano/utils/printer_utils.py +5 -4
- autocoder_nano/utils/shell_utils.py +85 -0
- autocoder_nano/version.py +1 -1
- {autocoder_nano-0.1.29.dist-info → autocoder_nano-0.1.33.dist-info}/METADATA +3 -2
- {autocoder_nano-0.1.29.dist-info → autocoder_nano-0.1.33.dist-info}/RECORD +33 -16
- autocoder_nano/agent/new/auto_new_project.py +0 -278
- /autocoder_nano/{agent/new → rules}/__init__.py +0 -0
- {autocoder_nano-0.1.29.dist-info → autocoder_nano-0.1.33.dist-info}/LICENSE +0 -0
- {autocoder_nano-0.1.29.dist-info → autocoder_nano-0.1.33.dist-info}/WHEEL +0 -0
- {autocoder_nano-0.1.29.dist-info → autocoder_nano-0.1.33.dist-info}/entry_points.txt +0 -0
- {autocoder_nano-0.1.29.dist-info → autocoder_nano-0.1.33.dist-info}/top_level.txt +0 -0
@@ -127,7 +127,7 @@ class BaseAgent(ABC):
|
|
127
127
|
|
128
128
|
def process_request(self, user_input: str) -> str:
|
129
129
|
self.history.append(("user", user_input))
|
130
|
-
logger.info(f"正在处理需求: {user_input}")
|
130
|
+
# logger.info(f"正在处理需求: {user_input}")
|
131
131
|
|
132
132
|
# 初始化上下文变量
|
133
133
|
context_vars = {}
|
@@ -143,15 +143,15 @@ class BaseAgent(ABC):
|
|
143
143
|
|
144
144
|
# 获取完整工具链
|
145
145
|
decision_chain = self.decide_next_action(context)
|
146
|
-
logger.info(f"工具链总共有 {len(decision_chain.tools)} 步")
|
147
|
-
logger.info("依次使用以下工具: ")
|
146
|
+
# logger.info(f"工具链总共有 {len(decision_chain.tools)} 步")
|
147
|
+
# logger.info("依次使用以下工具: ")
|
148
148
|
for decision in decision_chain.tools:
|
149
149
|
logger.info(f"{decision.action}: {decision.reasoning}")
|
150
150
|
|
151
151
|
# 执行工具链
|
152
152
|
for decision in decision_chain.tools:
|
153
153
|
self.step_counter += 1
|
154
|
-
logger.info(f"正在执行: {self.step_counter}/{len(decision_chain.tools)}")
|
154
|
+
# logger.info(f"正在执行: {self.step_counter}/{len(decision_chain.tools)}")
|
155
155
|
|
156
156
|
if decision.action == "final_answer":
|
157
157
|
final_response = decision.parameters["input"]
|