xueyiming 3 дней назад
Родитель
Сommit
0641d77d17
2 измененных файлов с 5 добавлено и 2 удалено
  1. 2 1
      examples/create/PRD/system.md
  2. 3 1
      examples/create/run.py

+ 2 - 1
examples/create/PRD/system.md

@@ -1,3 +1,4 @@
 1. 在执行每一个步骤的时候,要输出执行的结果
 2. 在调用工具的时候,要给出使用的工具,工具的参数,工具的返回结果
-3. 在一个步骤或者流程执行完,要暂停流程,等待建议和反馈,如果没有建议或反馈,继续执行。有建议或反馈,则需要参考建议或反馈再继续执行
+3. 在一个步骤或者流程执行完,要暂停流程,等待建议和反馈,如果没有建议或反馈,继续执行。有建议或反馈,则需要参考建议或反馈再继续执行
+4. 当执行暂停的时候,一定要打印最后一次的执行结果

+ 3 - 1
examples/create/run.py

@@ -43,6 +43,8 @@ from agent.llm import create_openrouter_llm_call
 from agent.tools import get_tool_registry
 
 DEFAULT_MODEL = "anthropic/claude-sonnet-4.5"
+# DEFAULT_MODEL = "google/gemini-3-flash-preview"
+
 
 # ===== 非阻塞 stdin 检测 =====
 if sys.platform == 'win32':
@@ -352,7 +354,7 @@ async def main():
     store = FileSystemTraceStore(base_path=".trace")
     runner = AgentRunner(
         trace_store=store,
-        llm_call=create_openrouter_llm_call(model=DEFAULT_MODEL),
+        llm_call=create_openrouter_llm_call(model=prompt.config.get('model', DEFAULT_MODEL)),
         skills_dir=skills_dir,
         experiences_path="./.cache/experiences.md",
         debug=True