Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenDCAI/Paper2Any
/ functions
Functions
4,061 in github.com/OpenDCAI/Paper2Any
⨍
Functions
4,061
◇
Types & classes
547
↳
Endpoints
108
Method
export_batch
批量导出轨迹 Args: trajectories: 轨迹列表 format: 导出格式 filepath: 文件路径 **kwargs: 其他参数
dataflow_agent/trajectory/manager.py:148
Function
export_diagram
导出图表为指定格式
fastapi_app/routers/paper2drawio.py:134
Method
export_dpo_dataset
导出 DPO 训练数据集(成对数据) Args: chosen_trajectories: 正例轨迹(成功的) rejected_trajectories: 负例轨迹(失败的)
dataflow_agent/trajectory/exporter.py:153
Method
export_history
导出消息历史 Args: thread_id: 线程ID format: 导出格式 - json: JSON 字符串 - dict: P
dataflow_agent/graphbuilder/message_history.py:709
Function
export_kb_zip
Export a list of KB files into a zip archive.
fastapi_app/routers/kb.py:553
Function
export_ppt_assets
导出节点 (同 paper2ppt_parallel)
dataflow_agent/workflow/wf_paper2ppt_parallel_consistent_style.py:1033
Function
export_ppt_assets
最终导出节点: - 使用 ppt_tool.convert_images_dir_to_pdf_and_ppt_api(带 API inpainting 支持) 将 result_path/ppt_pages 中的页面图导出为 PDF 和可编辑
dataflow_agent/workflow/deprecated/wf_paper2ppt_parallel.py:563
Function
export_rebuttal_zip
Export a rebuttal session into a zip archive.
fastapi_app/routers/paper2rebuttal.py:821
Method
extract_from_file
(self, *args, **kwargs)
tests/conftest.py:12
Function
extract_md_images
(state: Paper2FigureState)
dataflow_agent/workflow/wf_kb_page_content.py:249
Function
extract_pdf_node
(state: Paper2VideoState)
dataflow_agent/workflow/wf_paper2video.py:270
Function
fake_consume
(self, **kwargs)
tests/test_image_playground_route.py:39
Function
fake_consume
(self, **kwargs)
tests/test_paper2ppt_generate_route.py:25
Function
fake_consume
(self, **kwargs)
tests/test_image_playground_service.py:99
Function
fake_generate
(self, req, reference_img=None, mask_upload=None, mask_spec=None, request=None)
tests/test_paper2ppt_generate_route.py:29
Function
fake_generate_image
(**kwargs)
tests/test_image_playground_route.py:43
Function
fake_generate_image
(**kwargs)
tests/test_image_playground_service.py:92
Function
fake_generate_slides
(self, req, request=None)
tests/test_paper2ppt_generate_route.py:76
Function
fake_generate_visual_asset
(**kwargs)
tests/test_paper2ppt_frontend_service.py:288
Function
fake_get
(url, headers=None, timeout=None)
tests/test_mineru_remote_api.py:103
Function
fake_get_quota
(self, **_kwargs)
tests/test_image_playground_route.py:27
Function
fake_invoke_json_llm
(**kwargs)
tests/test_paper2ppt_outline_refine.py:34
Function
fake_post
(url, headers=None, json=None, timeout=None)
tests/test_mineru_remote_api.py:82
Function
fake_put
(url, data=None, timeout=None)
tests/test_mineru_remote_api.py:98
Function
fake_resolve_user
(_request)
tests/test_image_playground_route.py:24
Function
fake_run_workflow
(_wf_name, state)
tests/test_wa_paper2figure.py:13
Function
fake_to_thread
(func, *args, **kwargs)
tests/test_mineru_remote_api.py:110
Function
fake_urlopen
(url: str, timeout: int = 60)
tests/test_files_onlyoffice.py:191
Method
fetch_all
Load *all* records into memory (avoid for very large files).
dataflow_agent/storage/storage_service.py:65
Function
fetch_pages_node
(state: KBDeepResearchState)
dataflow_agent/workflow/wf_kb_deepresearch.py:309
Function
figure_desc_generator
( state: Paper2FigureState, model_name: Optional[str] = None, tool_manager: Optional[ToolManager]
dataflow_agent/agentroles/paper2any_agents/fig_desc_generator.py:86
Function
figure_desc_generator_node
(state: Paper2FigureState)
dataflow_agent/workflow/wf_paper2figure_image_only.py:104
Function
figure_desc_generator_node
图标提示词生成器节点
dataflow_agent/workflow/wf_paper2figure_with_sam.py:161
Function
figure_generator_node
调用图像模型生成/编辑单张图(内容 + 布局模版),增加轻量 retry + 降低超时时间。 参考 pdf2ppt_optimized 中 _call_image_api_with_retry 的做法,这里做一个本地版: - 单次 HTTP 调用
dataflow_agent/workflow/wf_paper2figure_image_only.py:111
Function
figure_generator_node
图像生成或编辑节点: 1) 先生成带内容的图 (fig_draft_path) 2) 再基于该图进行一次固定提示词的二次编辑,生成空框模板图 (fig_layout_path)
dataflow_agent/workflow/wf_paper2figure_with_sam.py:171
Function
figure_icon_bg_remover_node
把Mask里面的图标去除背景
dataflow_agent/workflow/wf_paper2figure_with_sam.py:661
Function
figure_input_node
FIGURE 模式入口节点:处理直接输入的表格图片 输入:state.fig_draft_path (单个图片路径或逗号分隔的多个路径) 输出:构造与 MinerU 兼容的数据结构,直接进入 table_extractor_node
dataflow_agent/workflow/wf_paper2expfigure.py:169
Function
figure_layout_sam_node
针对二次编辑后的空框模板图 (fig_layout_path) 进行: SAM 自动分割 -> 过滤 -> 裁剪子图 -> PNG->SVG->EMF, 结果写入 state.layout_items,仅作为 PPT 背景框架层。
dataflow_agent/workflow/wf_paper2figure_with_sam.py:236
Function
figure_mask_generator_node
生成Figure进行元素切割,并提取 bbox + image_path 信息,递归处理子图。 使用 MinerU HTTP 对原始带内容的图 (fig_draft_path) 做解析,得到内容层元素。 规则: - 标题块(type
dataflow_agent/workflow/wf_paper2figure_with_sam.py:378
Function
figure_ppt_generation_node
生成单页 PPT: - 第 1 页:原始组合页(layout EMF + MinerU 文本 + 图像) - 第 2 页:仅渲染所有 layout_items 的 EMF,用于检查 SAM 框架 - 第 3 页:直接铺满整页的 ful
dataflow_agent/workflow/wf_paper2figure_with_sam.py:702
Function
filter_images_agent
(state: Paper2FigureState)
dataflow_agent/workflow/wf_kb_page_content.py:323
Method
filter_messages
过滤消息 Args: messages: 要过滤的消息列表 message_types: 保留的消息类型(如 [HumanMessage, AIMessage]) conten
dataflow_agent/graphbuilder/message_history.py:128
Function
finalizeSelection
()
frontend-workflow/src/components/paper2ppt/MaskSelectionEditor.tsx:106
Function
finalize_report_node
(state: KBReportState)
dataflow_agent/workflow/wf_kb_report.py:301
Method
find
(x)
dataflow_agent/workflow/wf_paper2drawio_sam3.py:353
Method
find
(x)
dataflow_agent/workflow/wf_paper2drawio_sam3.py:557
Function
flashy
返回带 ANSI 颜色的字符串;调试场合用。 支持的 color: red / green / yellow / blue / magenta / cyan / white
dataflow_agent/toolkits/basetool/file_tools.py:274
Function
font_agent_node
(state: PosterState)
dataflow_agent/toolkits/postertool/src/agents/font_agent.py:330
Function
free_model
(checkpoint: str = "sam_b.pt")
dataflow_agent/toolkits/model_servers/sam_server.py:113
Method
gamma_correct
(c)
dataflow_agent/toolkits/postertool/src/agents/color_agent.py:257
Function
generate_audio_node
Generate audio using TTS
dataflow_agent/workflow/wf_kb_podcast.py:274
Function
generate_cursor
根据之前的cursor信息,让模型给出具体的坐标信息 同时由于talking head中会导致最后时间 长于 语音文件的时间,而cursor是根据每个句子的持续时间算的 所以,这里选择微调每个句子的持续时间,从而确保per slide的最终时间是一致
dataflow_agent/workflow/wf_paper2video.py:676
Function
generate_diagram
生成 draw.io 图表
fastapi_app/routers/paper2drawio.py:58
Function
generate_final_rebuttal
Generate final rebuttal
fastapi_app/routers/paper2rebuttal.py:656
Function
generate_image2drawio
( image_file: UploadFile = File(...), chat_api_url: str = Form(settings.PAPER2DRAWIO_OCR_API_URL),
fastapi_app/routers/image2drawio.py:22
Function
generate_image2ppt
image2ppt 接口:将 Image 转换为 PPT (Editable) - 前端通过 multipart/form-data 传入: - image_file: 待转换的图片文件 - invite_code: 邀请码 - u
fastapi_app/routers/image2ppt.py:22
Function
generate_image_playground
( body: ImagePlaygroundRequest, request: Request, user: Optional[AuthUser] = Depends(get_optional_
fastapi_app/routers/image_playground.py:19
Function
generate_long_content_from_topic
TOPIC 多轮生成长文
dataflow_agent/workflow/wf_paper2page_content_for_long_paper.py:509
Function
generate_mermaid_node
Generate Mermaid mindmap syntax using LLM
dataflow_agent/workflow/wf_kb_mindmap.py:207
Function
generate_mindmap
( request: Request, files: Optional[List[UploadFile]] = File(None), text: str = Form(""), chat
fastapi_app/routers/mindmap.py:310
Function
generate_mindmap_from_kb
( file_paths: List[str] = Body(..., embed=True), user_id: Optional[str] = Body(None, embed=True),
fastapi_app/routers/kb_workflows.py:372
Function
generate_next_id
生成下一个可用的 ID
dataflow_agent/toolkits/drawio_tools.py:576
Function
generate_pages
核心逻辑: 1. 检查是否有用户传入的 ref_img (state.request.ref_img)。 2. 若有 -> 全量并行生成,每一页都以 ref_img 为风格参考。 3. 若无 -> 先生成第 0 页 (anchor),
dataflow_agent/workflow/wf_paper2ppt_parallel_consistent_style.py:379
Function
generate_pages
批量生成/编辑页面图(并行版本): - pagecontent 是结构化 list[dict]:按 asset 规则决定 text2img / img2img - pagecontent 直接是图片路径列表:逐页用“修改成xxx风格”编辑
dataflow_agent/workflow/deprecated/wf_paper2ppt_parallel.py:260
Method
generate_paper2beamer
执行 paper2beamer 生成,返回生成的 PDF 文件绝对路径。
fastapi_app/services/paper2any_service.py:565
Function
generate_paper2figure
Paper2Figure 文件下载接口。
fastapi_app/routers/paper2figure.py:35
Function
generate_paper2figure_json
Paper2Figure JSON 接口。
fastapi_app/routers/paper2figure.py:80
Function
generate_paper2poster
Generate a paper poster and return browser-accessible output URLs.
fastapi_app/routers/paper2poster.py:20
Function
generate_pdf2ppt
pdf2ppt 接口:一键将 PDF 转换为 PPT - 前端通过 multipart/form-data 传入: - pdf_file: 待转换的 PDF 文件 - invite_code: 邀请码 - use_ai_edit:
fastapi_app/routers/pdf2ppt.py:22
Function
generate_podcast_from_kb
( file_paths: List[str] = Body(..., embed=True), user_id: Optional[str] = Body(None, embed=True),
fastapi_app/routers/kb_workflows.py:250
Method
generate_ppt
只跑 PPT 生成/编辑(paper2ppt 工作流)。
fastapi_app/services/paper2ppt_service.py:359
Method
generate_ppt
执行 image2ppt 的业务逻辑,返回生成的 PPTX 文件路径
fastapi_app/services/image2ppt_service.py:43
Function
generate_ppt_filename
生成一个唯一的 PPT 文件名,基于当前时间戳
dataflow_agent/utils_common.py:716
Function
generate_ppt_from_kb
Generate PPT from KB documents.
fastapi_app/routers/kb_workflows.py:53
Function
generate_report_from_kb
( req: KBReportRequest, user: AuthUser = Depends(get_current_user), )
fastapi_app/routers/kb_workflows.py:477
Function
generate_report_node
(state: KBDeepResearchState)
dataflow_agent/workflow/wf_kb_deepresearch.py:339
Function
generate_script_node
Generate podcast script using LLM
dataflow_agent/workflow/wf_kb_podcast.py:167
Function
generate_speech
从subtitle_and_cursor文件中,读取对应的文本内容,然后逐句生成对应的语音文件, 之后将per slide中的所有语音句子合并为一个,同时记录每个句子的持续时间,便于后续的时间对齐
dataflow_agent/workflow/wf_paper2video.py:507
Function
generate_talking_video
生成 talking head video,当前统一使用 LivePortrait API。 当 ref_img_path 为空时由条件边跳过,不执行;此处仅做防御性判断。
dataflow_agent/workflow/wf_paper2video.py:635
Method
get
(self, key, default=None)
dataflow_agent/state.py:32
Method
get
兼容 dataflow_agent 内部对 request 使用 dict.get("key") 的写法。 未找到属性时返回 default。
fastapi_app/schemas.py:184
Function
getAccessToken
()
frontend-workflow/src/stores/authStore.ts:471
Function
getAgentTypeById
(id: string)
frontend-workflow/src/data/agentTypes.ts:335
Function
getApiHeaders
()
frontend-workflow/src/config/api.ts:36
Function
getNodeBox
(node: Node<MindMapNodeData>)
frontend-workflow/src/utils/mindmapTree.ts:576
Function
getUserIdentifier
(userId: string | null)
frontend-workflow/src/services/fingerprintService.ts:134
Method
get_all_threads
获取所有线程ID Returns: 线程ID列表 Example: >>> threads = manager.get_all_threads()
dataflow_agent/graphbuilder/message_history.py:595
Method
get_available_roles
(self)
dataflow_agent/toolkits/tool_manager.py:76
Function
get_beamer_code
(state: Paper2VideoState)
dataflow_agent/workflow/wf_paper2video.py:235
Function
get_bg_remove_desc
获取背景抠图工具的说明文本。 参数 ---- lang: 语言代码,目前仅支持 "zh"(中文)。 返回 ---- str 工具功能说明。
dataflow_agent/toolkits/multimodaltool/bg_tool.py:404
Function
get_compile_result
(state: Paper2VideoState)
dataflow_agent/workflow/wf_paper2video.py:231
Method
get_completed_steps
获取已完成的步骤及结果
dataflow_agent/state.py:252
Method
get_current_step
获取当前待执行的步骤
dataflow_agent/state.py:242
Method
get_current_step_index
获取当前步骤索引
dataflow_agent/trajectory/collector.py:366
Method
get_current_trajectory
获取当前轨迹
dataflow_agent/trajectory/manager.py:176
Function
get_current_user_or_system
Return the authenticated user when Supabase is configured. In local development deployments without Supabase auth, fall back to a synthe
fastapi_app/dependencies/auth.py:135
Method
get_default_pre_tool_results
若调用方未显式传入,返回默认前置工具结果
dataflow_agent/agentroles/common_agents/imagetextbboxagent_agent.py:64
Method
get_default_pre_tool_results
若调用方未显式传入,返回默认前置工具结果
dataflow_agent/agentroles/paper2any_agents/p2v_beamer_code_upgrade_agent.py:63
Method
get_default_pre_tool_results
(self)
dataflow_agent/agentroles/paper2any_agents/diagram_vlm_validator.py:37
Method
get_default_pre_tool_results
(self)
dataflow_agent/agentroles/paper2any_agents/svg_bg_cleaner_agent.py:62
← previous
next →
3,101–3,200 of 4,061, ranked by callers