MCPcopy Create free account

hub / github.com/OpenDCAI/Paper2Any / functions

Functions4,061 in github.com/OpenDCAI/Paper2Any

↓ 4 callersFunctiongetTableCellFieldKey
(ownerId: string, rowIndex: number | 'h', colIndex: number)
frontend-workflow/src/components/paper2ppt/frontendSchemaRenderer.ts:550
↓ 4 callersFunctionget_audio_length
获取音频文件(.wav)的总时长(秒)
dataflow_agent/toolkits/p2vtool/p2v_tool.py:1070
↓ 4 callersMethodget_collector
获取收集器实例(用于手动集成)
dataflow_agent/trajectory/manager.py:172
↓ 4 callersFunctionget_image_paths
遍历指定目录及其子目录,查找所有常见的图片文件,并按照日期排序,返回它们的路径字符串列表。
dataflow_agent/toolkits/p2vtool/p2v_tool.py:109
↓ 4 callersFunctionget_pricing_config
()
fastapi_app/config/pricing.py:73
↓ 4 callersFunctionget_supabase_client
Get or create Supabase client. Returns None if not configured.
fastapi_app/dependencies/auth.py:16
↓ 4 callersFunctionhandleSubmit
(code?: string)
frontend-workflow/src/components/auth/VerifyOtpPage.tsx:96
↓ 4 callersFunctionhasLegacyChildForBlock
(block: FrontendSlideBlock)
frontend-workflow/src/components/paper2ppt/frontendSchemaRenderer.ts:547
↓ 4 callersFunctionindent_block
Indent every line of 'code' by 'spaces' spaces. Keeps internal structure.
dataflow_agent/toolkits/pipetool/pipe_tools.py:527
↓ 4 callersFunctioninit_llm_client
Initialize the LLM client. URL 与 API key 均由前端传入。 Args: api_key: API key for the LLM service (from frontend) chat_api_url: API URL
fastapi_app/services/rebuttal_service.py:47
↓ 4 callersFunctioninsertCanvasNode
( slide: FrontendSlide, node: FrontendCanvasNode, options: { targetId?: string; conten
frontend-workflow/src/components/paper2ppt/index.tsx:1350
↓ 4 callersFunctioninsertChildIntoBlock
( slide: FrontendSlide, targetBlockId: string | undefined, child: FrontendBlockChild, editable
frontend-workflow/src/components/paper2ppt/index.tsx:1454
↓ 4 callersFunctioninsertTopLevelBlockIntoZone
( slide: FrontendSlide, block: FrontendSlideBlock, editableField?: FrontendEditableField | Fronten
frontend-workflow/src/components/paper2ppt/index.tsx:1496
↓ 4 callersFunctionisMindmapFile
(file?: KnowledgeFile | null)
frontend-workflow/src/components/knowledge-base/index.tsx:221
↓ 4 callersFunctionisRightColumnBlock
(block: FrontendSlideBlock)
frontend-workflow/src/components/paper2ppt/frontendSchemaRenderer.ts:483
↓ 4 callersFunctionis_close_title
(left: str, right: str)
dataflow_agent/toolkits/citationtool/citation_utils.py:209
↓ 4 callersFunctionjsonResponse
(body: unknown, status = 200)
supabase/functions/send-sms/index.ts:9
↓ 4 callersFunctionlist_directory_content
查看目录内容,支持 Windows 和 Linux Args: dir_path: 目录路径(相对于项目根目录或绝对路径) show_hidden: 是否显示隐藏文件,默认 False recursive: 是否递归显示子目
dataflow_agent/toolkits/filetool/filetools.py:161
↓ 4 callersFunctionlocal_tool_for_svg_render
将 SVG 源码或 SVG 文件渲染为图片/文档文件的统一接口。 支持两种调用方式: 1. 通过 SVG 文件路径渲染; 2. 通过 SVG 源码字符串渲染。 必需字段(二选一) ------------------ - ``svg_pa
dataflow_agent/toolkits/multimodaltool/bg_tool.py:725
↓ 4 callersFunctionmake_clean_background
使用改进的 inpaint 生成“无字版底图”: - 自适应主文字 mask - 扩展阴影/发光区域 mask 只用于 inpaint - 简单背景直接 inpaint,复杂背景先邻域填充再小半径 inpaint
dataflow_agent/toolkits/multimodaltool/ppt_tool.py:1003
↓ 4 callersFunctionnormalizeVoice
(voice: string, options: string[])
frontend-workflow/src/components/knowledge-base/tools/PodcastTool.tsx:62
↓ 4 callersMethodparseFromString
(html: string)
frontend-workflow/src/components/paper2ppt/__tests__/html2pptxExport.test.ts:58
↓ 4 callersMethodparse_result
使用配置的解析器解析 LLM 输出结果 将 LLM 的原始文本输出转换为结构化的字典格式。 Args: content (str): LLM 原始输出内容
dataflow_agent/agentroles/cores/base_agent.py:378
↓ 4 callersFunctionparse_subtitle_and_cursor_result
从 LLM 返回中提取非空 subtitle_and_cursor 文本。
dataflow_agent/agentroles/paper2any_agents/p2v_subtitle_and_cursor_agent.py:27
↓ 4 callersFunctionpercentEncode
(input: string)
supabase/functions/send-sms/index.ts:59
↓ 4 callersFunctionpersistInlineEdit
(editor: InlineEditorState | null)
frontend-workflow/src/components/paper2ppt/FrontendSlidePreview.tsx:246
↓ 4 callersFunctionpxToIn
(value: number, axis: 'x' | 'y')
frontend-workflow/src/components/paper2ppt/canvasPptxExporter.ts:148
↓ 4 callersFunctionread
(name: string)
frontend-workflow/scripts/run_paper2ppt_structured_export_cli.ts:155
↓ 4 callersFunctionrecursive_mineru_layout
使用 MinerU HTTP two_step_extract,递归拆图并将所有最底层块映射到 最顶层图的归一化坐标系。 返回的每个元素形如: { "type": str, "bbox": [x1, y1,
dataflow_agent/toolkits/multimodaltool/mineru_tool.py:879
↓ 4 callersFunctionrenderInline
(text: string)
frontend-workflow/src/components/knowledge-base/tools/ChatTool.tsx:20
↓ 4 callersFunctionrenderListBlock
(slide: FrontendSlide, block: FrontendSlideBlock, className: string)
frontend-workflow/src/components/paper2ppt/frontendSchemaRenderer.ts:513
↓ 4 callersFunctionrenderVisualAsset
( asset: FrontendVisualAsset | undefined, assetKey: string, label: string, imageFit?: FrontendCanvasVi
frontend-workflow/src/components/paper2ppt/frontendSchemaRenderer.ts:429
↓ 4 callersFunctionresolveContentPath
(content: Record<string, unknown> | undefined, rawPath: unknown)
frontend-workflow/src/components/paper2ppt/frontendSchemaRenderer.ts:83
↓ 4 callersFunctionrun_aio_two_step_extract
异步调用 MinerU two_step_extract,处理单张图片并返回结构化结果。
dataflow_agent/toolkits/multimodaltool/mineru_tool.py:274
↓ 4 callersFunctionrun_paper2page_content_wf_api
只执行 paper2page_content 工作流,主要用于从 PDF / PPTX / TEXT 中解析出结构化的 pagecontent。 - 输入:Paper2PPTRequest(需提供 input_type / input_content 等) - 输
fastapi_app/workflow_adapters/wa_paper2ppt.py:224
↓ 4 callersFunctionrun_pdf2ppt_wf_api
(req: Paper2PPTRequest, result_path: Path | None = None)
fastapi_app/workflow_adapters/wa_pdf2ppt.py:59
↓ 4 callersFunctionsafeReadJsonResponse
(response: Response)
frontend-workflow/src/components/paper2citation/index.tsx:383
↓ 4 callersFunctionsegment_layout_boxes
针对空框模板图做 SAM 分割,过滤 + NMS + 裁剪,返回每个框的 bbox + patch PNG 路径。 该函数主要服务于 paper2figure_with_sam 工作流中的“背景框架层”生成: - 输入为二次编辑后的空框模板图(fig_layout_pat
dataflow_agent/toolkits/multimodaltool/sam_tool.py:1806
↓ 4 callersFunctionsegment_layout_boxes_server
Server version of segment_layout_boxes.
dataflow_agent/toolkits/multimodaltool/sam_tool.py:1860
↓ 4 callersFunctionshouldAutoDeleteEditableField
( slide: FrontendSlide, field: FrontendEditableField, )
frontend-workflow/src/components/paper2ppt/index.tsx:1764
↓ 4 callersFunctionslugify
(value: string)
frontend-workflow/src/components/knowledge-base/tools/MarkdownViewerModal.tsx:13
↓ 4 callersFunctiontoCssFont
(value: string)
frontend-workflow/src/components/paper2ppt/StructuredSlideCanvas.tsx:29
↓ 4 callersFunctionto_camel
(s: str)
dataflow_agent/cli.py:17
↓ 4 callersMethodto_dict
转换为字典(用于 JSON 导出)
dataflow_agent/trajectory/models.py:277
↓ 4 callersMethodto_sft_format
转换为 SFT 训练格式(OpenAI messages 格式) Returns: [{"role": "user", "content": "..."}, {"role": "assistant", "content":
dataflow_agent/trajectory/models.py:325
↓ 4 callersFunctionunion
(b1, b2)
dataflow_agent/toolkits/multimodaltool/ppt_tool.py:483
↓ 3 callersFunction_affiliation_match_score
(affiliation_hint: str, affiliations: List[str])
dataflow_agent/toolkits/citationtool/citation_utils.py:189
↓ 3 callersFunction_bbox_area
(bbox)
dataflow_agent/workflow/deprecated/wf_pdf2ppt_with_sam_ocr_mineru.py:502
↓ 3 callersFunction_bbox_area
(bbox)
dataflow_agent/workflow/deprecated/wf_pdf2ppt_parallel.py:618
↓ 3 callersFunction_build_citation_sample_stats
( *, seed_publications_count: int, citing_works_count: int, citing_authors_count: int, cit
dataflow_agent/workflow/wf_paper2citation.py:119
↓ 3 callersFunction_build_fallback_slide_script
(image_path: str, language: str, page_num: int)
dataflow_agent/workflow/wf_paper2video.py:131
↓ 3 callersFunction_build_mxcell
( cell_id: str, value: str, style: str, bbox_px: List[float], parent: str = "1", verte
dataflow_agent/workflow/wf_paper2drawio_sam3.py:923
↓ 3 callersMethod_build_recovered_result
(self, record: Dict[str, Any])
fastapi_app/services/paper2ppt_task_service.py:452
↓ 3 callersMethod_build_visual_asset_key
(self, asset_index: int)
fastapi_app/services/paper2ppt_frontend_service.py:1114
↓ 3 callersFunction_build_worker_result
(output_pptx_path: str, output_png_path: str, errors: list[str])
script/paper2poster_worker.py:32
↓ 3 callersMethod_call_embedding_api
Call Embedding API (OpenAI compatible).
dataflow_agent/toolkits/ragtool/vector_store_tool.py:188
↓ 3 callersMethod_call_llm_json
( self, *, chat_api_url: str, api_key: str, model: str, messag
fastapi_app/services/paper2ppt_frontend_service.py:623
↓ 3 callersFunction_canonical_user_id
(user: AuthUser)
fastapi_app/routers/kb_embedding.py:21
↓ 3 callersFunction_channel_cc
Connected-component channel: returns list of bboxes.
dataflow_agent/toolkits/image2drawio/metric_evaluator.py:372
↓ 3 callersMethod_connect
(self)
fastapi_app/services/guest_quota_service.py:19
↓ 3 callersMethod_convert_messages
Helper: Convert LangChain messages to dict format
dataflow_agent/llm_callers/image.py:174
↓ 3 callersMethod_create_run_dir
为一次请求创建独立目录: - 登录用户 (有 email): outputs/{email}/{task_type}/{timestamp}/ - 无邮箱上下文时: outputs/{task_type}/{timestamp}_{short_uui
fastapi_app/services/paper2any_service.py:625
↓ 3 callersFunction_ensure_result_path
统一本次 workflow 的根输出目录: - 如果 state.result_path 已存在(通常由调用方传入,形如 时间戳+编码),直接使用; - 否则:使用 get_project_root() / "outputs" / "paper2tec" / <timest
dataflow_agent/workflow/wf_paper2technical.py:43
↓ 3 callersFunction_ensure_result_path
(state: Paper2FigureState)
dataflow_agent/workflow/wf_kb_page_content.py:27
↓ 3 callersFunction_ensure_result_path
参考 wf_paper2figure_with_sam.py 的做法: 统一本次 paper2page_content workflow 的根输出目录: - 如果 state.result_path 已存在(通常由调用方传入),直接使用; - 否则:使用 get_p
dataflow_agent/workflow/wf_paper2page_content.py:45
↓ 3 callersFunction_ensure_result_path_for_full
为 full pipeline 统一一个根输出目录: outputs/{email or 'default'}/paper2ppt/<run_id>/
fastapi_app/workflow_adapters/wa_paper2ppt.py:60
↓ 3 callersFunction_expect_ok
(resp: requests.Response, *, case_name: str)
tests/_archive/manual/frontend_workflows/test_frontend_workflows.py:137
↓ 3 callersFunction_export_rebuttal_outputs
(session_id: str, user_dir: str)
fastapi_app/routers/paper2rebuttal.py:68
↓ 3 callersFunction_extract_block_text
尝试从 block 中提取可用文本字段。
dataflow_agent/toolkits/multimodaltool/mineru_tool.py:496
↓ 3 callersFunction_extract_text_result
(state: MainState, role_name: str)
dataflow_agent/workflow/wf_intelligent_qa.py:41
↓ 3 callersFunction_extract_text_result
(state: MainState, role_name: str)
dataflow_agent/workflow/wf_kb_deepresearch.py:133
↓ 3 callersMethod_finalize_current_step
完成当前步骤并添加到步骤列表
dataflow_agent/trajectory/collector.py:334
↓ 3 callersFunction_find
(x)
dataflow_agent/toolkits/image2drawio/metric_evaluator.py:602
↓ 3 callersMethod_find_field_value
(self, fields: Sequence[Dict[str, Any]], key: str)
fastapi_app/services/paper2ppt_frontend_service.py:5213
↓ 3 callersFunction_fix_json_escapes
Fix unescaped backslashes in JSON strings (e.g., backslashes in LaTeX formulas)
dataflow_agent/toolkits/rebuttal/tools.py:93
↓ 3 callersFunction_format_exception_for_log
(exc: BaseException)
fastapi_app/services/paper2ppt_frontend_service.py:138
↓ 3 callersFunction_from_outputs_url
尝试将前端传来的 URL (包含 /outputs/) 转换回本地绝对路径。 如果不是 URL 或者转换失败,则返回原值。
fastapi_app/utils.py:151
↓ 3 callersMethod_get_base_url
(self, api_url: str)
dataflow_agent/toolkits/multimodaltool/providers.py:141
↓ 3 callersFunction_get_default_managed_llm_credentials
()
fastapi_app/services/managed_api_service.py:49
↓ 3 callersFunction_get_scoped_managed_llm_credentials
(scope: str | None)
fastapi_app/services/managed_api_service.py:83
↓ 3 callersMethod_grant_daily_points_if_needed
(self, user: AuthUser)
fastapi_app/services/billing_service.py:280
↓ 3 callersFunction_grid_layout
( cells: List[ET.Element], start_x: float, start_y: float, max_width: float, gap_x: float,
dataflow_agent/toolkits/drawio_tools.py:210
↓ 3 callersFunction_http_get_json
(client: httpx.AsyncClient, url: str, params: Dict[str, Any] | None = None)
dataflow_agent/toolkits/citationtool/honor_enrichment.py:231
↓ 3 callersMethod_image_config
(self, aspect_ratio: str, resolution: str)
dataflow_agent/toolkits/multimodaltool/providers.py:342
↓ 3 callersMethod_insert_row
(self, table: str, payload: Dict[str, Any])
fastapi_app/services/billing_service.py:153
↓ 3 callersMethod_invalidate_cached_quota
(self, *user_ids: Optional[str])
fastapi_app/services/billing_service.py:85
↓ 3 callersFunction_is_equivalent_person_name
(query: str, candidate_name: str)
dataflow_agent/toolkits/citationtool/citation_utils.py:174
↓ 3 callersFunction_is_sam3_checkpoint
(checkpoint: str)
dataflow_agent/toolkits/multimodaltool/sam_tool.py:315
↓ 3 callersFunction_liveportrait_upload_file
上传本地文件到 DashScope 临时 OSS,返回 oss://... URL。调用 API 时需加 Header X-DashScope-OssResourceResolve: enable。
dataflow_agent/toolkits/p2vtool/p2v_tool.py:631
↓ 3 callersFunction_load_citing_works_for_author
( client: OpenAlexCitationClient, publication_items: List[Dict[str, Any]], max_citing_works: int,
dataflow_agent/workflow/wf_paper2citation.py:204
↓ 3 callersMethod_load_deck_theme
( self, slides_dir: Path, *, language: str = "zh", style: str = "",
fastapi_app/services/paper2ppt_frontend_service.py:5219
↓ 3 callersMethod_merge_editable_fields
( self, *, base_fields: Sequence[Dict[str, Any]], override_fields: Sequence[Di
fastapi_app/services/paper2ppt_frontend_service.py:2277
↓ 3 callersFunction_normalize_base_url
(raw: str)
dataflow_agent/toolkits/citationtool/honor_enrichment.py:140
↓ 3 callersMethod_normalize_canvas_component_name
(self, raw_value: Any)
fastapi_app/services/paper2ppt_frontend_service.py:2695
↓ 3 callersMethod_normalize_fields
( self, raw_fields: Any, *, outline_item: Dict[str, Any], slide_index:
fastapi_app/services/paper2ppt_frontend_service.py:3848
↓ 3 callersFunction_normalize_llm_bundle
( bundle: Dict[str, Any], citing_authors: List[Dict[str, Any]], )
dataflow_agent/toolkits/citationtool/honor_enrichment.py:773
↓ 3 callersFunction_normalize_model_name
(value: str | None)
fastapi_app/services/managed_api_service.py:45
↓ 3 callersMethod_normalize_outline_points
(self, value: Any)
fastapi_app/services/paper2ppt_service.py:1129
↓ 3 callersFunction_normalize_scope
(scope: str | None)
fastapi_app/services/managed_api_service.py:33
↓ 3 callersMethod_normalize_single_page_number
(self, value: Any, page_count: int)
fastapi_app/services/paper2ppt_service.py:1460
← previousnext →401–500 of 4,061, ranked by callers