MCPcopy Create free account

hub / github.com/OpenDCAI/Paper2Any / functions

Functions4,061 in github.com/OpenDCAI/Paper2Any

↓ 1 callersMethod_write_submission
(self, submission_key: str, task_id: str)
fastapi_app/services/paper2ppt_task_service.py:399
↓ 1 callersFunctionaddBullets
( slide: PptxGenJS.Slide, items: string[], box: PptBox, theme: ResolvedTheme, layoutNode: FrontendLa
frontend-workflow/src/components/paper2ppt/canvasPptxExporter.ts:918
↓ 1 callersFunctionaddChildToNode
(root: MindMapTreeNode, parentId: string)
frontend-workflow/src/utils/mindmapTree.ts:115
↓ 1 callersFunctionaddFooterPill
(slide: pptxgen.Slide, theme: ResolvedFrontendDeckTheme, text: string)
frontend-workflow/src/components/paper2ppt/exportStructuredSlides.ts:130
↓ 1 callersFunctionaddImageBox
( slide: pptxgen.Slide, imageUrl: string, box: { x: number; y: number; w: number; h: number }, assetBa
frontend-workflow/src/components/paper2ppt/exportStructuredSlides.ts:154
↓ 1 callersFunctionaddRequiredField
(field: string)
frontend-workflow/src/components/NodeConfigPanel.tsx:64
↓ 1 callersFunctionaddSiblingRecursive
( node: MindMapTreeNode, nodeId: string, )
frontend-workflow/src/utils/mindmapTree.ts:129
↓ 1 callersFunctionaddSiblingToNode
(root: MindMapTreeNode, nodeId: string)
frontend-workflow/src/utils/mindmapTree.ts:155
↓ 1 callersFunctionaddTable
( slide: PptxGenJS.Slide, tableData: FrontendTableData, box: PptBox, theme: ResolvedTheme, )
frontend-workflow/src/components/paper2ppt/canvasPptxExporter.ts:951
↓ 1 callersMethodadd_feedback
添加用户反馈 Args: trajectory: 轨迹对象,如果为 None 则使用当前轨迹 score: 评分 1-5 comment: 评论 edi
dataflow_agent/trajectory/manager.py:180
↓ 1 callersFunctionadd_image_element
添加图片元素到幻灯片
dataflow_agent/utils_common.py:818
↓ 1 callersFunctionadd_subtitles
(video_path, output_path, sentence_timesteps_path, font_size)
dataflow_agent/toolkits/p2vtool/p2v_tool.py:402
↓ 1 callersFunctionadd_text_element
添加文本元素到幻灯片
dataflow_agent/utils_common.py:768
↓ 1 callersFunctionadvanceStage
()
frontend-workflow/src/components/paper2graph/index.tsx:466
↓ 1 callersFunctionappendCanvasNodeToContainer
( root: FrontendCanvasNode, node: FrontendCanvasNode, targetId?: string, )
frontend-workflow/src/components/paper2ppt/index.tsx:1299
↓ 1 callersFunctionappendFiles
(picked: FileList | null)
frontend-workflow/src/components/MindMapPage.tsx:117
↓ 1 callersFunctionappendFixedPageLabel
(markup: string, slide: FrontendSlide)
frontend-workflow/src/components/paper2ppt/frontendSchemaRenderer.ts:118
↓ 1 callersFunctionappendToFirstMain
(current: FrontendCanvasNode)
frontend-workflow/src/components/paper2ppt/index.tsx:1305
↓ 1 callersFunctionapplyTableCellValueToCanvasContent
( content: Record<string, unknown>, fieldKey: string, value: string, )
frontend-workflow/src/components/paper2ppt/index.tsx:1602
↓ 1 callersMethodas_tool
将 Agent 包装成可被调用的工具 Args: state (MainState): 状态对象,将被传递给 Agent 执行 Returns: Tool: Lang
dataflow_agent/agentroles/cores/base_agent.py:1287
↓ 1 callersFunctionautoReviewAndRepairFrontendSlide
( slideIndex: number, slideSnapshot: FrontendSlide, resultPathValue: string, )
frontend-workflow/src/components/paper2ppt/index.tsx:2622
↓ 1 callersFunctionbasePanelStyle
(theme: ResolvedFrontendDeckTheme)
frontend-workflow/src/components/paper2ppt/StructuredSlideCanvas.tsx:31
↓ 1 callersFunctionbbox_iou
计算两个归一化 bbox 的 IoU。 Parameters ---------- box1, box2 : [x1, y1, x2, y2] in [0, 1] Returns ------- float IoU 值,范
dataflow_agent/toolkits/multimodaltool/sam_tool.py:1086
↓ 1 callersFunctionblobToDataUrl
(blob: Blob)
frontend-workflow/src/components/paper2ppt/exportStructuredSlides.ts:44
↓ 1 callersFunctionblobToDataUrl
(blob: Blob)
frontend-workflow/src/components/paper2ppt/canvasPptxExporter.ts:780
↓ 1 callersFunctionblockToChild
(block: FrontendSlideBlock)
frontend-workflow/src/components/paper2ppt/index.tsx:1392
↓ 1 callersFunctionbranchColor
(branch: MindMapNodeData['branch'])
frontend-workflow/src/utils/mindmapTree.ts:413
↓ 1 callersFunctionbrave_search
(query: str, api_key: str, count: int = 10, *, enable_summary: bool = False)
dataflow_agent/toolkits/research_tools.py:85
↓ 1 callersFunctionbrave_summarizer
(summary_key: str, api_key: str)
dataflow_agent/toolkits/research_tools.py:109
↓ 1 callersFunctionbuildAliyunCanonicalizedQuery
(params: Record<string, string>)
supabase/functions/send-sms/index.ts:85
↓ 1 callersFunctionbuildAuthorCitationBuildInfo
( value: unknown, t: TranslationFn, )
frontend-workflow/src/components/paper2citation/index.tsx:207
↓ 1 callersFunctionbuildAuthorProfileStats
( profile: CitationAuthorDetail['profile'], t: TranslationFn, )
frontend-workflow/src/components/paper2citation/index.tsx:89
↓ 1 callersFunctionbuildCandidateMeta
(candidate: CitationAuthorCandidate, t: (key: string) => string)
frontend-workflow/src/components/paper2citation/index.tsx:535
↓ 1 callersFunctionbuildCanvasStyle
(node: FrontendCanvasNode)
frontend-workflow/src/components/paper2ppt/frontendSchemaRenderer.ts:146
↓ 1 callersFunctionbuildChipPrompt
(chipKey: ChipKey)
frontend-workflow/src/components/ImagePlaygroundPage.tsx:91
↓ 1 callersFunctionbuildComputedStyleForComponent
( component: string, theme: ResolvedCanvasVisualTheme, visualStyle: FrontendCanvasVisualStyle, )
frontend-workflow/src/components/paper2ppt/canvasPptxExporter.ts:519
↓ 1 callersFunctionbuildComputedStyleForContainer
( node: FrontendCanvasNode, theme: ResolvedCanvasVisualTheme, visualStyle: FrontendCanvasVisualStyle, )
frontend-workflow/src/components/paper2ppt/canvasPptxExporter.ts:579
↓ 1 callersFunctionbuildDeckShellCss
( deckTheme: FrontendDeckTheme, options: HtmlDeckArtifactOptions = {}, )
frontend-workflow/src/components/paper2ppt/htmlDeckArtifact.ts:12
↓ 1 callersFunctionbuildDefaultTableData
()
frontend-workflow/src/components/paper2ppt/index.tsx:3342
↓ 1 callersFunctionbuildFallbackLayoutNodes
( slide: FrontendSlide, theme: ResolvedCanvasVisualTheme, )
frontend-workflow/src/components/paper2ppt/canvasPptxExporter.ts:637
↓ 1 callersFunctionbuildFrontendCodeRepairPrompt
( slide: FrontendSlide, validation: FrontendCodeValidationResult, )
frontend-workflow/src/components/paper2ppt/frontendSlideUtils.ts:355
↓ 1 callersFunctionbuildLanguagePrompt
(textLanguage: ImageTextLanguage)
frontend-workflow/src/components/ImagePlaygroundPage.tsx:99
↓ 1 callersFunctionbuildMindMapMarkdown
(root: MindMapTreeNode)
frontend-workflow/src/utils/mindmapTree.ts:314
↓ 1 callersFunctionbuildPrompt
( templateKey: TemplateKey, selectedChips: ChipKey[], paperContent: string, extraInstructions: string,
frontend-workflow/src/components/ImagePlaygroundPage.tsx:106
↓ 1 callersFunctionbuildSchemaSlideMarkup
(slide: FrontendSlide, theme?: FrontendDeckTheme | null)
frontend-workflow/src/components/paper2ppt/frontendSchemaRenderer.ts:1782
↓ 1 callersFunctionbuildTemplatePrompt
(templateKey: TemplateKey)
frontend-workflow/src/components/ImagePlaygroundPage.tsx:81
↓ 1 callersFunctionbuildUnavailableQuota
()
frontend-workflow/src/services/quotaService.ts:39
↓ 1 callersFunctionbuild_edges
( produced_ports: dict[str, tuple[str, str]], var2id: dict[str, str], )
dataflow_agent/toolkits/pipetool/pipe_tools.py:1615
↓ 1 callersMethodbuild_edit_request
(self, api_url: str, model: str, prompt: str, image_b64: str, **kwargs)
dataflow_agent/toolkits/multimodaltool/providers.py:362
↓ 1 callersMethodbuild_edit_request
Build image-to-image edit request (multipart format)
dataflow_agent/toolkits/multimodaltool/providers.py:1290
↓ 1 callersMethodbuild_from_state
从 State 和 Collector 构建完整轨迹 Args: state: Workflow 执行后的最终状态 collector: 轨迹收集器 workflow_name
dataflow_agent/trajectory/builder.py:37
↓ 1 callersMethodbuild_generation_request
(self, api_url: str, model: str, prompt: str, **kwargs)
dataflow_agent/toolkits/multimodaltool/providers.py:348
↓ 1 callersMethodbuild_generation_request
(self, api_url: str, model: str, prompt: str, **kwargs)
dataflow_agent/toolkits/multimodaltool/providers.py:720
↓ 1 callersMethodbuild_generation_request
(self, api_url: str, model: str, prompt: str, **kwargs)
dataflow_agent/toolkits/multimodaltool/providers.py:753
↓ 1 callersMethodbuild_generation_request
Build text-to-image generation request
dataflow_agent/toolkits/multimodaltool/providers.py:1257
↓ 1 callersMethodbuild_multi_image_edit_request
构造多图编辑请求 Returns: (url, payload, is_stream)
dataflow_agent/toolkits/multimodaltool/providers.py:61
↓ 1 callersFunctionbuild_nodes
Returns ------- nodes : list of node-dict var2id : var_name -> node_id (供后续查表)
dataflow_agent/toolkits/pipetool/pipe_tools.py:1565
↓ 1 callersFunctionbuild_pipeline_code
( op_names: List[str], state: DFState, *, cache_dir: str = "./cache_local", llm_local: boo
dataflow_agent/toolkits/pipetool/pipe_tools.py:1225
↓ 1 callersFunctionbuild_pipeline_code_with_run_params
构建 pipeline 代码,支持为每个算子指定 run 函数的实际参数 注意: - render_operator_blocks_with_full_params 返回的代码已经包含了内部缩进 (使用 "\n ".join()),因此不需要再次
dataflow_agent/toolkits/pipetool/pipe_tools.py:1049
↓ 1 callersFunctionbuild_section_batches
( sections: List[Dict[str, Any]], *, target_pages: int, pages_per_batch: int, max_batch_to
dataflow_agent/utils_markdown_sections.py:339
↓ 1 callersFunctionbuild_stub
(cls_name: str, module_path: str)
dataflow_agent/toolkits/pipetool/pipe_tools.py:287
↓ 1 callersFunctionbuild_text_mask_from_lines
根据OCR行框生成初始mask(粗略矩形)
dataflow_agent/toolkits/multimodaltool/ppt_tool.py:883
↓ 1 callersMethodbuild_tts_request
(self, api_url: str, model: str, text: str, **kwargs)
dataflow_agent/toolkits/multimodaltool/providers.py:941
↓ 1 callersMethodcache_reference_image_for_result
( self, result_path: str, reference_img: UploadFile | None, )
fastapi_app/services/paper2ppt_service.py:574
↓ 1 callersFunctioncalculate_font_size
根据文本框大小、文字内容和文本级别计算合适的字体大小
dataflow_agent/utils_common.py:728
↓ 1 callersMethodcalculate_font_sizes
(self, text_blocks: List[Dict[str, Any]])
dataflow_agent/workflow/wf_paper2drawio_sam3.py:330
↓ 1 callersMethodcall
(self, messages: List[BaseMessage], bind_post_tools: bool = False)
dataflow_agent/llm_callers/text.py:13
↓ 1 callersFunctioncall_dalle_image_edit_async
DALL-E 图像编辑 (保留特殊逻辑:Multipart Form Data)
dataflow_agent/toolkits/multimodaltool/req_img.py:138
↓ 1 callersFunctioncall_llm_for_selection
调用 LLM API 进行选择决策 Args: system_prompt: 系统提示词 user_message: 用户消息 api_url: API 地址(OpenAI 兼容格式) api_key: AP
dataflow_agent/toolkits/pipetool/pipe_tools.py:33
↓ 1 callersFunctioncanExportCanvasSlidesToPptx
(slides: FrontendSlide[])
frontend-workflow/src/components/paper2ppt/canvasPptxExporter.ts:1223
↓ 1 callersFunctioncanvasNodeUsesAsset
(node: FrontendCanvasNode, imageKey: string)
frontend-workflow/src/components/paper2ppt/index.tsx:1787
↓ 1 callersFunctionchangeLanguage
(lng: string)
frontend-workflow/src/components/LanguageSwitcher.tsx:6
↓ 1 callersMethodchat_edit
对话式编辑
fastapi_app/services/paper2drawio_service.py:315
↓ 1 callersFunctionchoose_prompt_template
返回 prompt_template 的代码字符串。 规则: 1. 若类有 ALLOWED_PROMPTS 且非空 → 取第一个并实例化; 2. 否则回退到 __init__ 默认值;若仍不可用则返回 None。
dataflow_agent/toolkits/pipetool/pipe_tools.py:399
↓ 1 callersMethodclaim_invite_code
(self, *, user: AuthUser, invite_code: str)
fastapi_app/services/billing_service.py:518
↓ 1 callersFunctionclassify_shape
Heuristic shape classification. Returns (shape_type, confidence) where shape_type in: rect | rounded_rect | ellipse | diamond | unknown
dataflow_agent/toolkits/image2drawio/utils.py:38
↓ 1 callersFunctionclean_text
(text)
dataflow_agent/toolkits/p2vtool/p2v_tool.py:1065
↓ 1 callersFunctionclearHoveredBlock
()
frontend-workflow/src/components/paper2ppt/FrontendSlidePreview.tsx:298
↓ 1 callersFunctioncli
DataFlow-Agent command line.
dataflow_agent/cli.py:22
↓ 1 callersFunctioncloneNode
(node: MindMapTreeNode)
frontend-workflow/src/utils/mindmapTree.ts:75
↓ 1 callersFunctioncollectAttributePlaceholderKeys
(html: string)
frontend-workflow/src/components/paper2ppt/frontendSlideUtils.ts:92
↓ 1 callersFunctioncollectBrowserData
* Collect browser characteristics for fingerprinting.
frontend-workflow/src/services/fingerprintService.ts:54
↓ 1 callersFunctioncollectCanvasNodeIds
(node?: FrontendCanvasNode)
frontend-workflow/src/components/paper2ppt/index.tsx:1082
↓ 1 callersFunctioncompute_publication_overlap_metrics
( dblp_publications: List[Dict[str, Any]], openalex_publications: List[Dict[str, Any]], )
dataflow_agent/toolkits/citationtool/citation_utils.py:217
↓ 1 callersFunctionconfirmDeleteKb
(kb: KnowledgeBaseEntry)
frontend-workflow/src/components/knowledge-base/LibraryView.tsx:250
↓ 1 callersFunctionconvertToHttpUrl
(path: string)
frontend-workflow/src/components/paper2ppt/index.tsx:4123
↓ 1 callersFunctionconvert_image_to_svg
使用 vtracer 将光栅图像转换为 SVG 矢量图。 本函数是对 ``vtracer.convert_image_to_svg_py`` 的轻量封装, 主要用于在 DataFlow-Agent 的工具体系中提供统一的位图→SVG 能力。 参数 ---
dataflow_agent/toolkits/multimodaltool/bg_tool.py:429
↓ 1 callersFunctionconvert_images_dir_to_pdf_and_ppt_api
带 API inpainting 支持的图片转 PDF/PPTX 函数(异步版本) 与 convert_images_dir_to_pdf_and_ppt 的区别: - 支持使用图像编辑 API 进行 inpainting(优先) - API 失败时自动
dataflow_agent/toolkits/multimodaltool/ppt_tool.py:1293
↓ 1 callersFunctionconvert_pdf_to_images
Convert PDF to image sequence using pdf2image Returns: List of image file paths
script/run_ppt2polish_cli.py:209
↓ 1 callersFunctionconvert_pptx_to_pdf
Convert PPTX to PDF using LibreOffice Returns: Path to the generated PDF file
script/run_ppt2polish_cli.py:159
↓ 1 callersMethodconvert_source_archive_to_markdown
(self, archive_path: str, deadline: Optional[float] = None)
dataflow_agent/toolkits/rebuttal/arxiv.py:291
↓ 1 callersFunctioncount_tree_nodes
(node: Dict[str, Any])
fastapi_app/routers/mindmap.py:208
↓ 1 callersMethodcreate
创建解析器实例
dataflow_agent/parsers/parsers.py:165
↓ 1 callersMethodcreate
(cls, tool_manager: Optional[ToolManager] = None, **kwargs)
dataflow_agent/agentroles/common_agents/imagetextbboxagent_agent.py:33
↓ 1 callersMethodcreate
(cls, tool_manager: Optional[ToolManager] = None, **kwargs)
dataflow_agent/agentroles/paper2any_agents/p2v_beamer_code_upgrade_agent.py:34
↓ 1 callersMethodcreate
(cls, tool_manager: Optional[ToolManager] = None, **kwargs)
dataflow_agent/agentroles/paper2any_agents/svg_bg_cleaner_agent.py:35
↓ 1 callersMethodcreate
(cls, tool_manager: Optional[ToolManager] = None, **kwargs)
dataflow_agent/agentroles/paper2any_agents/diagram_segment_hint_agent.py:20
↓ 1 callersMethodcreate
(cls, tool_manager: Optional[ToolManager] = None, **kwargs)
dataflow_agent/agentroles/paper2any_agents/long_paper_outline_agent.py:30
↓ 1 callersMethodcreate
(cls, tool_manager: Optional[ToolManager] = None, **kwargs)
dataflow_agent/agentroles/paper2any_agents/p2v_subtitle_and_cursor_agent.py:76
↓ 1 callersMethodcreate
(cls, tool_manager: Optional[ToolManager] = None, **kwargs)
dataflow_agent/agentroles/paper2any_agents/deep_research_agent.py:30
← previousnext →1,801–1,900 of 4,061, ranked by callers