MCPcopy Create free account

hub / github.com/OpenDCAI/Paper2Any / functions

Functions4,061 in github.com/OpenDCAI/Paper2Any

↓ 2 callersMethod_execute_vlm
Vision-LLM 专用执行流程 与文本链路完全解耦,专门处理视觉语言模型的调用。 Args: state (MainState): 当前状态对象 **kwargs
dataflow_agent/agentroles/cores/base_agent.py:1486
↓ 2 callersFunction_exit_reason
(returncode: int)
fastapi_app/workflow_adapters/heavy_workflow_subprocess.py:71
↓ 2 callersMethod_externalize_asset
( self, asset: Dict[str, Any], request: Request | None, *, base_dir: P
fastapi_app/services/paper2ppt_frontend_service.py:4353
↓ 2 callersMethod_externalize_slide_assets
( self, slide: Dict[str, Any], request: Request | None, *, base_dir: P
fastapi_app/services/paper2ppt_frontend_service.py:4404
↓ 2 callersMethod_extract_assets_with_pymupdf
(self, pdf_path: str, assets_dir: Path)
dataflow_agent/toolkits/postertool/src/agents/parser.py:413
↓ 2 callersFunction_extract_author_surnames
(authors: Iterable[str])
dataflow_agent/toolkits/citationtool/context_locator.py:163
↓ 2 callersFunction_extract_blocks_from_html
(html: str)
dataflow_agent/toolkits/citationtool/context_locator.py:109
↓ 2 callersFunction_extract_dblp_pid
(raw: str)
dataflow_agent/toolkits/citationtool/honor_enrichment.py:170
↓ 2 callersMethod_extract_outline_text
(self, value: Any)
fastapi_app/services/paper2ppt_frontend_service.py:1005
↓ 2 callersFunction_extract_text_result
(state: MainState, role_name: str)
dataflow_agent/workflow/wf_kb_mindmap.py:39
↓ 2 callersMethod_extract_theme_from_visuals
fallback: extract theme from key visuals
dataflow_agent/toolkits/postertool/src/agents/color_agent.py:94
↓ 2 callersFunction_extract_token_usage
(response: Any, *, fallback_input: float, fallback_output_text: str)
dataflow_agent/toolkits/postertool/utils/langgraph_utils.py:146
↓ 2 callersMethod_fallback_visual_classification
(self, visuals)
dataflow_agent/toolkits/postertool/src/agents/parser.py:675
↓ 2 callersFunction_fetch_dblp_identity
( client: httpx.AsyncClient, dblp_id: str, )
dataflow_agent/toolkits/citationtool/honor_enrichment.py:267
↓ 2 callersFunction_fetch_openalex_author_identity
( client: httpx.AsyncClient, openalex_author_id: str, )
dataflow_agent/toolkits/citationtool/honor_enrichment.py:237
↓ 2 callersFunction_fetch_openalex_seed_works
( client: OpenAlexCitationClient, *, author_id: str, seed_limit: int, )
dataflow_agent/workflow/wf_paper2citation.py:189
↓ 2 callersMethod_find_insert_index_after_origin
(self, pages: List[Dict[str, Any]], after_page_number: Optional[int])
fastapi_app/services/paper2ppt_service.py:1548
↓ 2 callersFunction_find_matching_resolved_publication
( publication: Dict[str, Any], resolved_items: List[Dict[str, Any]], )
dataflow_agent/workflow/wf_paper2citation.py:77
↓ 2 callersFunction_flush_current
()
dataflow_agent/utils_markdown_sections.py:152
↓ 2 callersFunction_format_default
Produce a code string for a default value. If default is missing (inspect._empty), we return 'None' to keep code runnable.
dataflow_agent/toolkits/pipetool/pipe_tools.py:348
↓ 2 callersFunction_forward_stream
(stream, level="info")
dataflow_agent/workflow/paper2video_subprocess.py:137
↓ 2 callersFunction_forward_stream
(stream)
fastapi_app/workflow_adapters/heavy_workflow_subprocess.py:132
↓ 2 callersMethod_generate_column_analysis
generate detailed column utilization analysis using exact column calculation method
dataflow_agent/toolkits/postertool/src/agents/layout_agent.py:199
↓ 2 callersMethod_generate_single_slide
( self, *, base_dir: Path, slides_dir: Path, pagecontent: List[Dict[st
fastapi_app/services/paper2ppt_frontend_service.py:521
↓ 2 callersMethod_get_cached_quota
(self, user_id: str, *, allow_stale: bool = False)
fastapi_app/services/billing_service.py:59
↓ 2 callersMethod_get_current_url
(self)
dataflow_agent/agentroles/paper2any_agents/websearch_researcher.py:660
↓ 2 callersFunction_get_file_access_secret
()
fastapi_app/routers/files.py:210
↓ 2 callersFunction_get_intersection_area
(bbox1, bbox2)
dataflow_agent/workflow/deprecated/wf_pdf2ppt_with_sam_ocr_mineru.py:505
↓ 2 callersFunction_get_intersection_area
(bbox1, bbox2)
dataflow_agent/workflow/deprecated/wf_pdf2ppt_parallel.py:621
↓ 2 callersFunction_get_method_params
提取方法形参,转换为列表。 skip_first_self=True 时会丢掉第一个 self 参数。
dataflow_agent/toolkits/optool/op_tools.py:107
↓ 2 callersFunction_get_mineru_remote_config
Return MinerU remote API configuration. Priority: 1) process environment 2) `fastapi_app.config.settings` 3) hardcoded defaults
dataflow_agent/toolkits/multimodaltool/mineru_tool.py:52
↓ 2 callersFunction_get_model_config
get model configuration
dataflow_agent/toolkits/postertool/src/state/poster_state.py:116
↓ 2 callersFunction_get_notebook_local
(user_id: str, notebook_id: str)
fastapi_app/routers/kb.py:167
↓ 2 callersMethod_get_relative_luminance
calculate relative luminance for WCAG contrast calculations
dataflow_agent/toolkits/postertool/src/agents/color_agent.py:250
↓ 2 callersFunction_get_scoped_managed_credentials
( scope: str | None, *, image: bool, )
fastapi_app/services/managed_api_service.py:63
↓ 2 callersFunction_get_session_dir
(session_id: str)
fastapi_app/routers/paper2rebuttal.py:45
↓ 2 callersMethod_get_session_log_dir
(self, session_id: str)
fastapi_app/services/rebuttal_service.py:1241
↓ 2 callersFunction_get_technical_text_model
(state: Paper2FigureState)
dataflow_agent/workflow/wf_paper2technical.py:32
↓ 2 callersFunction_get_template_svg_code
根据语言和配色选择合适的 SVG 模板代码。 - 中文灰度: dataflow_agent/workflow/resources/SVG_template_ZN_gray.md - 中文彩色: dataflow_agent/workflow/resources/SVG_t
dataflow_agent/workflow/wf_paper2technical.py:162
↓ 2 callersFunction_has_any_package
(site_packages: Path, package_names: Iterable[str])
dataflow_agent/toolkits/sam3_import_helper.py:86
↓ 2 callersFunction_has_rmbg_model
(model_path: Path)
dataflow_agent/toolkits/multimodaltool/bg_tool.py:68
↓ 2 callersMethod_headers
(self)
dataflow_agent/toolkits/basetool/llm_client.py:22
↓ 2 callersFunction_hex_to_rgb
(hex_color: str)
dataflow_agent/workflow/deprecated/wf_image2drawio.py:117
↓ 2 callersFunction_image_style
(data_uri: str)
dataflow_agent/workflow/deprecated/wf_image2drawio.py:274
↓ 2 callersFunction_import_workflow_modules_until
Lazy-load workflow definition modules. Importing every workflow during FastAPI startup pulls in heavyweight dependencies such as torchvi
dataflow_agent/workflow/__init__.py:20
↓ 2 callersMethod_infer_asset_caption
( self, blocks: List[Dict[str, Any]], block_index: int, asset_kind: str, )
dataflow_agent/toolkits/postertool/src/agents/parser.py:366
↓ 2 callersFunction_infer_cursor_with_local_model
( instruction: str, image_path: str, *, model_path: str, gpu_id: Optional[int] = None,
dataflow_agent/toolkits/p2vtool/p2v_tool.py:1132
↓ 2 callersMethod_invoke_json_llm
( self, *, chat_api_url: str, api_key: str, model_name: str, s
fastapi_app/services/paper2ppt_service.py:1604
↓ 2 callersFunction_is_image_path
(path: str)
dataflow_agent/workflow/wf_paper2drawio_sam3.py:838
↓ 2 callersFunction_is_local_host
(host: str | None)
fastapi_app/utils.py:84
↓ 2 callersFunction_is_path_within_project
检查路径是否在项目根目录内 Args: path: 要检查的路径 Returns: bool: 如果路径在项目根目录内返回 True,否则返回 False
dataflow_agent/toolkits/filetool/filetools.py:25
↓ 2 callersFunction_is_rate_limited
(ip: str, rule: RateLimitRule)
fastapi_app/middleware/api_key.py:196
↓ 2 callersMethod_is_table_asset_ref
(self, asset_ref: Any)
fastapi_app/services/paper2ppt_frontend_service.py:1124
↓ 2 callersFunction_iter_file_range
(path: Path, start: int, end: int, chunk_size: int = 1024 * 1024)
fastapi_app/routers/files.py:43
↓ 2 callersFunction_largest_contour
(mask_u8: np.ndarray)
tests/_archive/manual/workflows/test_sam3_arrows.py:55
↓ 2 callersFunction_length_hint
(length: str)
dataflow_agent/workflow/wf_kb_report.py:148
↓ 2 callersMethod_load_json_safe
(self, file_path: str)
fastapi_app/services/rebuttal_service.py:933
↓ 2 callersMethod_load_session_from_dir
(self, session_id: str, session_dir: str)
fastapi_app/services/rebuttal_service.py:1112
↓ 2 callersFunction_locate_contexts
( body_blocks: List[Dict[str, str]], *, reference_entry: Dict[str, Any], target_authors: List[
dataflow_agent/toolkits/citationtool/context_locator.py:319
↓ 2 callersFunction_looks_like_heading
(block: Dict[str, str])
dataflow_agent/toolkits/citationtool/context_locator.py:116
↓ 2 callersFunction_lum_bgr
(bgr)
dataflow_agent/toolkits/image2drawio/utils.py:128
↓ 2 callersFunction_make_prompt_for_structured_page
根据结构化 page item 生成: - prompt - image_path (如果是编辑模式) - use_edit 规则: 1) asset 为空:text2img 2) asset 是图片路径:img2img/edit
dataflow_agent/workflow/wf_paper2ppt_parallel_consistent_style.py:112
↓ 2 callersFunction_make_source_slide
(path: Path)
tests/test_paper2ppt_mask_edit.py:12
↓ 2 callersFunction_match_reference_entry
( reference_blocks: List[Dict[str, str]], *, target_doi: str, target_title: str, target_au
dataflow_agent/toolkits/citationtool/context_locator.py:214
↓ 2 callersFunction_match_titles
(texts: List[str])
dataflow_agent/toolkits/citationtool/honor_enrichment.py:191
↓ 2 callersFunction_maybe_merge
(objs: List[Any], merge_dicts: bool)
dataflow_agent/utils_common.py:212
↓ 2 callersFunction_merge_pdfs
(pdf_paths: List[Path], output_path: Path)
fastapi_app/routers/kb.py:341
↓ 2 callersFunction_mindmap_root_for_user
(user: Optional[AuthUser])
fastapi_app/routers/mindmap.py:63
↓ 2 callersMethod_multimodal_to_dict
(data: MultimodalData)
dataflow_agent/trajectory/models.py:187
↓ 2 callersFunction_native
(o)
dataflow_agent/toolkits/image2drawio/metric_evaluator.py:667
↓ 2 callersFunction_norm_bbox_to_px
(bbox_n: List[float], w: int, h: int, pad: int = 0)
dataflow_agent/workflow/wf_pdf2ppt_qwenvl.py:67
↓ 2 callersFunction_normalize_bg_remove_device
Resolve RMBG runtime device from explicit arg or env. Supported values: - auto: use cuda when available, otherwise cpu - cpu - c
dataflow_agent/toolkits/multimodaltool/bg_tool.py:45
↓ 2 callersMethod_normalize_canvas_visual_style
(self, raw_style: Any)
fastapi_app/services/paper2ppt_frontend_service.py:2441
↓ 2 callersFunction_normalize_input
(source_mode: str, source: str)
script/run_portal_paper2ppt_bridge.py:107
↓ 2 callersMethod_normalize_layout_mode
(self, raw_value: Any)
fastapi_app/services/paper2ppt_frontend_service.py:1441
↓ 2 callersFunction_normalize_lookup_text
(value: str)
dataflow_agent/toolkits/citationtool/honor_enrichment.py:149
↓ 2 callersFunction_normalize_mineru_blocks
兼容 MinerU HTTP 不同返回结构,统一提取 blocks 列表。
dataflow_agent/toolkits/multimodaltool/mineru_tool.py:457
↓ 2 callersFunction_normalize_module
将类似 dataflow.operators.general_text.eval.langkit_sample_evaluator 统一裁剪成 dataflow.operators.general_text 规则: 1. 仅
dataflow_agent/toolkits/pipetool/pipe_tools.py:300
↓ 2 callersFunction_normalize_outline_pages
(items: List[Any])
dataflow_agent/workflow/wf_paper2page_content_for_long_paper.py:195
↓ 2 callersMethod_normalize_review_payload
( self, *, payload: Dict[str, Any], slide: Dict[str, Any], local_layou
fastapi_app/services/paper2ppt_frontend_service.py:3813
↓ 2 callersFunction_normalize_tech_route_text_model
技术路线图必须使用文本/SVG 模型。 前端历史配置或旧 localStorage 可能把 image-preview 模型误传到 img_gen_model_name。 这里做后端兜底,避免把生图模型拿去跑 SVG 文本 agent。
fastapi_app/services/paper2any_service.py:34
↓ 2 callersMethod_normalize_theme_payload
( self, payload: Dict[str, Any], *, language: str, style: str, )
fastapi_app/services/paper2ppt_frontend_service.py:4182
↓ 2 callersFunction_normalize_title_tokens
(title: str)
dataflow_agent/toolkits/citationtool/context_locator.py:142
↓ 2 callersFunction_normalize_tree_payload
(payload: Any, *, max_depth: int)
fastapi_app/routers/mindmap.py:187
↓ 2 callersFunction_normalize_user_identifier
(value: Optional[str])
fastapi_app/routers/files.py:55
↓ 2 callersFunction_notebooks_file
Return the path to the local notebooks JSON for a user.
fastapi_app/routers/kb.py:117
↓ 2 callersMethod_organize_sections_by_column
organize sections by column assignment for layout creation
dataflow_agent/toolkits/postertool/src/agents/layout_agent.py:255
↓ 2 callersFunction_owner_slug
(user: Optional[AuthUser])
fastapi_app/routers/mindmap.py:49
↓ 2 callersFunction_pagecontent_count
(raw: Any)
fastapi_app/routers/paper2ppt.py:55
↓ 2 callersFunction_parse_html_table_simple
简单的 HTML 表格解析(不依赖 BeautifulSoup)。 仅用于备用,可能不够健壮。
dataflow_agent/utils_common.py:1074
↓ 2 callersMethod_parse_json_text
(self, raw_text: Optional[str], field_name: str)
fastapi_app/services/paper2ppt_frontend_service.py:5299
↓ 2 callersFunction_parse_page_index_list
(raw: Any, *, max_count: int | None = None)
fastapi_app/services/paper2ppt_task_service.py:56
↓ 2 callersMethod_parse_response
(self, data: Dict[str, Any])
dataflow_agent/toolkits/basetool/llm_client.py:36
↓ 2 callersFunction_post_process_svg
SVG 后处理: 1. 确保 <svg> 标签包含 xmlns="http://www.w3.org/2000/svg" 命名空间(修复浏览器显示为XML代码的问题)。 2. 如果包含中文字符,注入中文友好字体。
dataflow_agent/workflow/wf_paper2technical.py:423
↓ 2 callersFunction_post_stream_and_accumulate
处理流式响应,累积 content 并返回类似非流式的响应结构
dataflow_agent/toolkits/multimodaltool/req_img.py:17
↓ 2 callersMethod_prepare_edit_mask
( self, *, base_dir: Path, pagecontent: List[Dict[str, Any]], page_id:
fastapi_app/services/paper2ppt_service.py:950
↓ 2 callersMethod_prepare_payload
(self, messages: List[Dict[str, str]], **extra: Any)
dataflow_agent/toolkits/basetool/llm_client.py:29
↓ 2 callersMethod_pricing
(self)
fastapi_app/services/billing_service.py:41
↓ 2 callersFunction_process_single_page
( idx: int, item: Any, ref_img_path: Optional[str] = None )
dataflow_agent/workflow/wf_paper2ppt_parallel_consistent_style.py:438
↓ 2 callersFunction_process_single_page_with_limit
( idx: int, item: Any, ref_img_path: Optional[str] = None, )
dataflow_agent/workflow/wf_paper2ppt_parallel_consistent_style.py:662
← previousnext →701–800 of 4,061, ranked by callers