MCPcopy Create free account

hub / github.com/1sdv/lunwentocode / functions

Functions136 in github.com/1sdv/lunwentocode

↓ 6 callersFunctionsave_code_file
保存代码文件
app/utils/file_utils.py:157
↓ 6 callersFunctionsave_code_file
保存代码文件
lunwentocode/app/utils/file_utils.py:157
↓ 6 callersMethodsimple_chat
简单对话,返回文本内容 Args: prompt: 用户提示 system_prompt: 系统提示 Returns: 响应文本
app/core/llm.py:83
↓ 6 callersMethodsimple_chat
简单对话,返回文本内容 Args: prompt: 用户提示 system_prompt: 系统提示 Returns: 响应文本
lunwentocode/app/core/llm.py:83
↓ 5 callersMethodchat
调用LLM进行对话 Args: messages: 对话历史 tools: 工具定义 tool_choice: 工具选择策略 temperature:
app/core/llm.py:35
↓ 5 callersMethodchat
调用LLM进行对话 Args: messages: 对话历史 tools: 工具定义 tool_choice: 工具选择策略 temperature:
lunwentocode/app/core/llm.py:35
↓ 5 callersFunctionload_json_from_response
清理并解析LLM响应中的JSON
app/utils/json_utils.py:48
↓ 5 callersFunctionload_json_from_response
清理并解析LLM响应中的JSON
lunwentocode/app/utils/json_utils.py:48
↓ 3 callersMethodrun
执行完整的工作流 Args: md_path: 论文文件路径(支持Markdown/PDF) data_dir: 数据文件目录(可选) output_dir: 输出目录(可选)
app/core/workflow.py:59
↓ 3 callersMethodrun
执行完整的工作流 Args: md_path: 论文文件路径(支持Markdown/PDF) data_dir: 数据文件目录(可选) output_dir: 输出目录(可选)
lunwentocode/app/core/workflow.py:59
↓ 2 callersMethod_check_syntax
检查语法
app/agents/validator_agent.py:137
↓ 2 callersMethod_check_syntax
检查语法
lunwentocode/app/agents/validator_agent.py:137
↓ 2 callersMethod_fix_code
使用LLM修复代码
app/agents/validator_agent.py:218
↓ 2 callersMethod_fix_code
使用LLM修复代码
lunwentocode/app/agents/validator_agent.py:218
↓ 2 callersMethod_parse_markdown_file
读取并解析Markdown文件 Args: md_path: Markdown文件路径 Returns: ParsedContent: 解析后的内容
app/core/workflow.py:188
↓ 2 callersMethod_parse_markdown_file
读取并解析Markdown文件 Args: md_path: Markdown文件路径 Returns: ParsedContent: 解析后的内容
lunwentocode/app/core/workflow.py:188
↓ 2 callersMethod_poll_task_result
轮询获取任务结果
app/agents/parser_agent.py:190
↓ 2 callersMethod_poll_task_result
轮询获取任务结果
lunwentocode/app/agents/parser_agent.py:190
↓ 2 callersMethod_submit_url_task
提交URL任务到Mineru
app/agents/parser_agent.py:79
↓ 2 callersMethod_submit_url_task
提交URL任务到Mineru
lunwentocode/app/agents/parser_agent.py:79
↓ 2 callersMethod_validate_single_code
验证单个代码文件
app/agents/validator_agent.py:63
↓ 2 callersMethod_validate_single_code
验证单个代码文件
lunwentocode/app/agents/validator_agent.py:63
↓ 2 callersMethodrun
执行Agent任务
app/core/base_agent.py:29
↓ 2 callersMethodrun
执行Agent任务
lunwentocode/app/core/base_agent.py:29
↓ 1 callersMethod_analyze_thesis_type
分析论文类型
app/agents/analyzer_agent.py:109
↓ 1 callersMethod_analyze_thesis_type
分析论文类型
lunwentocode/app/agents/analyzer_agent.py:109
↓ 1 callersMethod_apply_fixes
应用验证修复
app/core/workflow.py:280
↓ 1 callersMethod_apply_fixes
应用验证修复
lunwentocode/app/core/workflow.py:280
↓ 1 callersMethod_build_context
构建上下文信息
app/agents/coder_agent.py:125
↓ 1 callersMethod_build_context
构建上下文信息
lunwentocode/app/agents/coder_agent.py:125
↓ 1 callersMethod_check_imports
检查导入语句
app/agents/validator_agent.py:145
↓ 1 callersMethod_check_imports
检查导入语句
lunwentocode/app/agents/validator_agent.py:145
↓ 1 callersMethod_convert_pdf_to_markdown
调用Mineru API转换PDF
app/agents/parser_agent.py:56
↓ 1 callersMethod_convert_pdf_to_markdown
调用Mineru API转换PDF
lunwentocode/app/agents/parser_agent.py:56
↓ 1 callersMethod_determine_data_source
确定数据来源
app/agents/analyzer_agent.py:90
↓ 1 callersMethod_determine_data_source
确定数据来源
lunwentocode/app/agents/analyzer_agent.py:90
↓ 1 callersMethod_determine_tech_stack
确定技术栈和依赖库
app/agents/analyzer_agent.py:233
↓ 1 callersMethod_determine_tech_stack
确定技术栈和依赖库
lunwentocode/app/agents/analyzer_agent.py:233
↓ 1 callersMethod_extract_code_from_text
从文本中提取代码
app/agents/coder_agent.py:239
↓ 1 callersMethod_extract_code_from_text
从文本中提取代码
lunwentocode/app/agents/coder_agent.py:239
↓ 1 callersMethod_extract_main_from_text
从文本中提取主程序代码
app/agents/coder_agent.py:332
↓ 1 callersMethod_extract_main_from_text
从文本中提取主程序代码
lunwentocode/app/agents/coder_agent.py:332
↓ 1 callersMethod_generate_code_for_task
为单个任务独立生成代码(无历史依赖)
app/agents/coder_agent.py:162
↓ 1 callersMethod_generate_code_for_task
为单个任务独立生成代码(无历史依赖)
lunwentocode/app/agents/coder_agent.py:162
↓ 1 callersMethod_generate_code_tasks
生成代码任务列表
app/agents/analyzer_agent.py:149
↓ 1 callersMethod_generate_code_tasks
生成代码任务列表
lunwentocode/app/agents/analyzer_agent.py:149
↓ 1 callersMethod_generate_main_program
生成主程序(独立调用)
app/agents/coder_agent.py:257
↓ 1 callersMethod_generate_main_program
生成主程序(独立调用)
lunwentocode/app/agents/coder_agent.py:257
↓ 1 callersMethod_generate_project_output
生成项目输出
app/core/workflow.py:305
↓ 1 callersMethod_generate_project_output
生成项目输出
lunwentocode/app/core/workflow.py:305
↓ 1 callersMethod_generate_readme
生成README文档
app/core/workflow.py:342
↓ 1 callersMethod_generate_readme
生成README文档
lunwentocode/app/core/workflow.py:342
↓ 1 callersMethod_generate_run_instructions
生成运行说明
app/core/workflow.py:408
↓ 1 callersMethod_generate_run_instructions
生成运行说明
lunwentocode/app/core/workflow.py:408
↓ 1 callersMethod_load_input_content
根据文件类型加载并解析内容 Returns: (ParsedContent, 扩展名)
app/core/workflow.py:164
↓ 1 callersMethod_load_input_content
根据文件类型加载并解析内容 Returns: (ParsedContent, 扩展名)
lunwentocode/app/core/workflow.py:164
↓ 1 callersMethod_local_pdf_parse
本地PDF解析(备用方案)
app/agents/parser_agent.py:162
↓ 1 callersMethod_local_pdf_parse
本地PDF解析(备用方案)
lunwentocode/app/agents/parser_agent.py:162
↓ 1 callersMethod_parse_markdown_content
使用LLM解析Markdown字符串
app/core/workflow.py:207
↓ 1 callersMethod_parse_markdown_content
使用LLM解析Markdown字符串
lunwentocode/app/core/workflow.py:207
↓ 1 callersMethod_parse_markdown_structure
使用LLM解析Markdown结构
app/agents/parser_agent.py:235
↓ 1 callersMethod_parse_markdown_structure
使用LLM解析Markdown结构
lunwentocode/app/agents/parser_agent.py:235
↓ 1 callersMethod_parse_task_type
解析任务类型
app/agents/analyzer_agent.py:270
↓ 1 callersMethod_parse_task_type
解析任务类型
lunwentocode/app/agents/analyzer_agent.py:270
↓ 1 callersMethod_save_analysis_result
保存分析结果
app/core/workflow.py:252
↓ 1 callersMethod_save_analysis_result
保存分析结果
lunwentocode/app/core/workflow.py:252
↓ 1 callersMethod_save_project_files
保存项目文件
app/core/workflow.py:439
↓ 1 callersMethod_save_project_files
保存项目文件
lunwentocode/app/core/workflow.py:439
↓ 1 callersMethod_static_analysis
静态代码分析
app/agents/validator_agent.py:179
↓ 1 callersMethod_static_analysis
静态代码分析
lunwentocode/app/agents/validator_agent.py:179
↓ 1 callersMethod_upload_and_parse
上传本地文件到Mineru并解析
app/agents/parser_agent.py:112
↓ 1 callersMethod_upload_and_parse
上传本地文件到Mineru并解析
lunwentocode/app/agents/parser_agent.py:112
↓ 1 callersFunctioncreate_work_dir
创建工作目录
app/utils/file_utils.py:149
↓ 1 callersFunctioncreate_work_dir
创建工作目录
lunwentocode/app/utils/file_utils.py:149
↓ 1 callersFunctiondetect_file_type
检测文件类型
app/utils/file_utils.py:22
↓ 1 callersFunctiondetect_file_type
检测文件类型
lunwentocode/app/utils/file_utils.py:22
↓ 1 callersFunctionextract_csv_info
提取CSV文件信息
app/utils/file_utils.py:63
↓ 1 callersFunctionextract_csv_info
提取CSV文件信息
lunwentocode/app/utils/file_utils.py:63
↓ 1 callersFunctionextract_excel_info
提取Excel文件信息
app/utils/file_utils.py:33
↓ 1 callersFunctionextract_excel_info
提取Excel文件信息
lunwentocode/app/utils/file_utils.py:33
↓ 1 callersFunctionextract_json_blob
从响应中提取JSON主体,忽略前后的解释性文本。 该方法不会尝试修复真正的语法错误,仅做裁剪。
app/utils/json_utils.py:29
↓ 1 callersFunctionextract_json_blob
从响应中提取JSON主体,忽略前后的解释性文本。 该方法不会尝试修复真正的语法错误,仅做裁剪。
lunwentocode/app/utils/json_utils.py:29
↓ 1 callersFunctionget_supported_extensions
获取支持的文件扩展名
app/utils/file_utils.py:13
↓ 1 callersFunctionget_supported_extensions
获取支持的文件扩展名
lunwentocode/app/utils/file_utils.py:13
↓ 1 callersFunctionmain
主函数
main.py:77
↓ 1 callersFunctionmain
主函数
lunwentocode/main.py:77
↓ 1 callersFunctionparse_args
解析命令行参数
main.py:20
↓ 1 callersFunctionparse_args
解析命令行参数
lunwentocode/main.py:20
↓ 1 callersFunctionprocess_thesis
处理论文并生成代码
app.py:22
↓ 1 callersFunctionprocess_thesis
处理论文并生成代码
lunwentocode/app.py:22
↓ 1 callersFunctionscan_data_files
扫描目录中的数据文件 Args: directory: 需要扫描的目录 recursive: 是否递归扫描子目录 limit: 返回的数据文件数量上限(None表示无限制)
app/utils/file_utils.py:99
↓ 1 callersFunctionscan_data_files
扫描目录中的数据文件 Args: directory: 需要扫描的目录 recursive: 是否递归扫描子目录 limit: 返回的数据文件数量上限(None表示无限制)
lunwentocode/app/utils/file_utils.py:99
↓ 1 callersFunctionsetup_logger
设置日志器
app/utils/logger.py:9
↓ 1 callersFunctionsetup_logger
设置日志器
lunwentocode/app/utils/logger.py:9
↓ 1 callersFunctionstrip_code_fences
移除Markdown代码块标记和多余空白
app/utils/json_utils.py:12
↓ 1 callersFunctionstrip_code_fences
移除Markdown代码块标记和多余空白
lunwentocode/app/utils/json_utils.py:12
Method__init__
初始化工作流 Args: analyzer_llm: 分析LLM实例,用于论文分析 coder_llm: 代码LLM实例,用于代码生成和修复
app/core/workflow.py:31
Method__init__
( self, api_key: Optional[str] = None, model: Optional[str] = None, base_url:
app/core/llm.py:15
Method__init__
初始化Agent Args: llm: LLM实例
app/core/base_agent.py:13
Method__init__
(self, llm: LLM)
app/agents/validator_agent.py:20
next →1–100 of 136, ranked by callers