MCPcopy Create free account

hub / github.com/Xeron2000/openOii / functions

Functions2,741 in github.com/Xeron2000/openOii

↓ 411 callersMethodget
(self, model, pk)
backend/tests/test_main.py:333
↓ 216 callersFunctioncreate_project
( session: AsyncSession, title: str = "Test Project", story: str = "Test story", style: str =
backend/tests/factories.py:11
↓ 114 callersFunctioncreate_run
( session: AsyncSession, project_id: int, status: str = "queued", )
backend/tests/factories.py:36
↓ 114 callersMethodjson
(self)
backend/tests/test_services/test_video.py:485
↓ 112 callersMethodadd
(self, obj)
backend/tests/test_main.py:336
↓ 111 callersMethodpost
(self, url, headers, json)
backend/tests/test_services/test_video.py:327
↓ 107 callersMethodexecute
(self, operation: Any, parameters: Optional[Sequence[Any]] = None)
backend/aiosqlite/__init__.py:65
↓ 107 callersMethodrefresh
(self, obj)
backend/tests/test_api/test_shots.py:61
↓ 86 callersFunctionmake_context
( session: AsyncSession, settings: Settings, project: Project | None = None, run: AgentRun | N
backend/tests/agent_fixtures.py:67
↓ 83 callersMethodcommit
(self)
backend/aiosqlite/__init__.py:160
↓ 78 callersMethodsend_event
(self, project_id: int, event: dict[str, Any] | WsEvent)
backend/app/ws/manager.py:90
↓ 74 callersFunctioncreate_shot
( session: AsyncSession, project_id: int, order: int = 1, description: str = "Test shot",
backend/tests/factories.py:103
↓ 69 callersMethodget
(self, *args, **kwargs)
backend/tests/test_api/test_shots.py:50
↓ 65 callersMethodscalars
(self)
backend/tests/test_main.py:184
↓ 61 callersMethodcommit
(self)
backend/tests/test_api/test_shots.py:58
↓ 60 callersMethodsend_message
发送消息 Args: ctx: Agent 上下文 content: 消息内容 summary: 摘要(用于确认环节显示) progress: 进度值(0-1 之间)
backend/app/agents/base.py:72
↓ 58 callersMethodall
(self)
backend/tests/test_main.py:187
↓ 51 callersFunctioncreate_character
( session: AsyncSession, project_id: int, name: str = "Test Character", description: str = "Te
backend/tests/factories.py:84
↓ 50 callersMethodadd
(self, obj)
backend/tests/test_api/test_shots.py:55
↓ 50 callersFunctionget_or_404
Fetch a DB object by primary key or raise 404.
backend/app/api/deps.py:48
↓ 49 callersFunctionapplyWsEvent
( event: WsEvent, store: ReturnType<typeof useEditorStore.getState>, autoConfirm: AutoConfirmFn, )
frontend/app/hooks/useWebSocket.ts:274
↓ 48 callersMethoddelete
(self, key)
backend/tests/test_agents/test_orchestrator.py:198
↓ 47 callersMethodget
(self, url)
backend/tests/test_services/test_image_service.py:106
↓ 43 callersMethodmodel_dump
(self, mode="json")
backend/tests/test_agents/test_orchestrator.py:93
↓ 40 callersMethodcommit
(self)
backend/tests/test_agents/test_orchestrator.py:74
↓ 40 callersMethodrun
(self, ctx)
backend/tests/test_api/test_shots.py:39
↓ 33 callersFunctionmake_settings
(**overrides)
backend/tests/test_services/test_video.py:9
↓ 32 callersFunctionfetchApi
( endpoint: string, options?: RequestInit, )
frontend/app/services/api.ts:128
↓ 32 callersMethodflush
(self)
backend/tests/test_services/test_creative_control.py:64
↓ 32 callersFunctionmakeConfig
(key: string, overrides?: Partial<ConfigItem>)
frontend/app/utils/configGroups.test.ts:5
↓ 32 callersMethodrefresh
(self, obj)
backend/tests/test_agents/test_orchestrator.py:77
↓ 29 callersFunctionutcnow
Return current UTC time without timezone info (compatible with PostgreSQL TIMESTAMP WITHOUT TIME ZONE).
backend/app/db/utils.py:6
↓ 25 callersFunctionrenderComponent
()
frontend/app/components/settings/SettingsModal.test.tsx:109
↓ 25 callersFunctionworkflow_progress_for_stage
(stage: str, *, within_stage: float = 0.0)
backend/app/orchestration/state.py:79
↓ 24 callersFunctionhasText
(value: string | null | undefined)
frontend/app/features/comic-workflow/graph/buildComicWorkflow.ts:82
↓ 24 callersFunctionmake_settings
(**overrides)
backend/tests/test_services/test_doubao_video.py:10
↓ 24 callersFunctionmake_settings
(**overrides)
backend/tests/test_services/test_text_service.py:65
↓ 23 callersFunctiongetStaticUrl
(path: string | null | undefined)
frontend/app/services/api.ts:85
↓ 22 callersMethodclear
()
frontend/app/components/canvas/canvasEvents.ts:66
↓ 22 callersMethodsend_thinking
发送思考链消息 根据 thinking_chain_enabled 和 thinking_chain_detail_level 过滤推送。 消息推送为轻量 WS 写入,不会显著阻塞主流程。 Args: ctx: Agent
backend/app/agents/base.py:131
↓ 21 callersFunctioncreate_config_item
( session: AsyncSession, key: str = "TEST_CONFIG_KEY", value: str = "test_value", is_sensitive
backend/tests/factories.py:128
↓ 18 callersMethod_cleanup_for_rerun
清理逻辑:根据重新运行的 agent 和模式清理数据 Args: project_id: 项目 ID start_agent: 从哪个 agent 开始重新运行 mode: "full" 全量清理,"incre
backend/app/agents/orchestrator.py:306
↓ 18 callersMethodall
(self)
backend/tests/test_api/test_websocket.py:67
↓ 18 callersFunctionbuildComicWorkflow
({ project, characters, shots, blockingClips, isGenerating, }: BuildComicWorkflowInput)
frontend/app/features/comic-workflow/graph/buildComicWorkflow.ts:182
↓ 18 callersMethodcreate_task
创建视频生成任务 Args: prompt: 视频描述文本 image_url: 首帧图片 URL(图生视频模式) duration: 视频时长(5 或 10 秒) ratio: 视频比
backend/app/services/doubao_video.py:143
↓ 18 callersMethodgenerate_url
( self, *, prompt: str, size: str = "1024x1024", image_bytes: bytes |
backend/app/services/image.py:497
↓ 18 callersMethodscalars
(self)
backend/tests/test_api/test_websocket.py:64
↓ 17 callersMethodadd
(self, obj)
backend/tests/test_services/test_creative_control.py:61
↓ 16 callersMethodall
(self)
backend/tests/test_agents/test_orchestrator.py:41
↓ 16 callersMethodexecute
(self, statement)
backend/tests/test_agents/test_orchestrator.py:63
↓ 16 callersMethodgenerate
生成文本(兼容 LLMService 接口) Args: messages: 消息列表(优先使用) prompt: 提示词(向后兼容) system: 系统提示(可选) max_toke
backend/app/services/text.py:429
↓ 16 callersMethodraise_for_status
(self)
backend/tests/test_services/test_video.py:482
↓ 16 callersMethodscalars
(self)
backend/tests/test_agents/test_orchestrator.py:38
↓ 15 callersMethod_extract_url_from_text
(self, text: str)
backend/app/services/image.py:139
↓ 15 callersFunction_stage_key
(stage: str)
backend/app/orchestration/nodes.py:64
↓ 15 callersMethodexecute
(self, *args, **kwargs)
backend/tests/test_db/test_session.py:53
↓ 15 callersFunctionextract_json
从 LLM 响应中提取 JSON 对象,支持不完整 JSON 的修复。
backend/app/agents/utils.py:37
↓ 15 callersMethodset
(self, key, value, ex=None)
backend/tests/test_agents/test_orchestrator.py:192
↓ 15 callersFunctionshot
(id: number, order: number)
frontend/app/features/comic-workflow/canvas/syncTldrawProjection.test.ts:52
↓ 14 callersFunction_next_phase2_stage
(stage: str | None)
backend/app/agents/orchestrator.py:43
↓ 14 callersFunction_normalize_resume_value
(value: Any)
backend/app/orchestration/nodes.py:739
↓ 14 callersMethod_post_stream_with_retry
( self, url: str, payload: dict[str, Any] )
backend/app/services/text.py:133
↓ 14 callersFunctiongenerateMessageId
()
frontend/app/hooks/useWebSocket.ts:38
↓ 14 callersMethodgenerate_url
生成视频并返回 URL Args: prompt: 文本提示词 image_bytes: 参考图片字节流(图生视频模式) **kwargs: 其他参数 Returns:
backend/app/services/video.py:356
↓ 14 callersMethodtext
(self)
backend/tests/test_services/test_text_service.py:1256
↓ 13 callersMethod_build_payload
( self, *, messages: list[dict[str, Any]] | None = None, prompt: str | None =
backend/app/services/text.py:260
↓ 13 callersFunction_resume_agent_for_stage
(stage: str | None)
backend/app/agents/orchestrator.py:84
↓ 13 callersMethodadd
(self, obj)
backend/tests/test_agents/test_orchestrator.py:83
↓ 13 callersMethodcancel
取消指定项目的任务,返回是否成功取消
backend/app/services/task_manager.py:23
↓ 13 callersMethodcommit
(self)
backend/tests/test_api/test_characters.py:57
↓ 13 callersFunctionlayoutComicWorkflow
( graph: ComicWorkflowGraph, )
frontend/app/features/comic-workflow/graph/layoutComicWorkflow.ts:93
↓ 12 callersMethod_is_retryable_status
(self, status_code: int)
backend/app/services/text.py:59
↓ 12 callersFunction_parse_value
(raw: str, field_type: Any)
backend/app/services/config_service.py:164
↓ 12 callersMethod_set_run
(self, run: AgentRun, **fields)
backend/app/agents/orchestrator.py:379
↓ 11 callersFunction_character_to_description
(item: dict)
backend/app/agents/plan.py:44
↓ 11 callersMethod_modelscope_generate
ModelScope 异步图片生成
backend/app/services/image.py:360
↓ 11 callersFunctionbuild_graph_config
(run: Run | Any)
backend/app/orchestration/runtime.py:10
↓ 11 callersFunctioncreateWorkflowShapePartials
({ graph, layout, interactionMode = "layout", }: { graph: ComicWorkflowGraph; layout: ComicWorkflowLayout
frontend/app/features/comic-workflow/canvas/syncTldrawProjection.ts:146
↓ 11 callersFunctiondelete_file
删除本地文件 Args: url: 文件 URL(如 /static/videos/xxx.mp4) Returns: 是否成功删除
backend/app/services/file_cleaner.py:57
↓ 11 callersFunctionfulfillJson
(body: JsonValue, status = 200)
frontend/tests/e2e/workflow-stage-sync.spec.ts:114
↓ 11 callersMethodgenerate
( self, *, messages: list[dict[str, Any]], system: str | None = None,
backend/app/services/llm.py:161
↓ 11 callersFunctionget_local_path
将本地 URL 转换为文件系统路径 安全检查:验证最终路径在 STATIC_DIR 内,防止路径遍历攻击
backend/app/services/file_cleaner.py:35
↓ 11 callersFunctionget_settings
()
backend/app/config.py:314
↓ 11 callersFunctionnext_production_stage
(stage: str | None)
backend/app/orchestration/state.py:67
↓ 11 callersFunctionuseProjectWebSocket
(projectId: number | null)
frontend/app/hooks/useWebSocket.ts:49
↓ 10 callersMethod_post_json_with_retry
(self, url: str, payload: dict[str, Any])
backend/app/services/text.py:100
↓ 10 callersFunction_safe_stage_name
(value: Any)
backend/app/services/run_recovery.py:72
↓ 10 callersMethodbuild_public_url
将本地路径(如 /static/xxx)转换为对外可访问的完整 URL
backend/app/config.py:290
↓ 10 callersMethodclose
(self)
backend/tests/test_agents/test_orchestrator.py:181
↓ 10 callersMethodcommit
(self)
backend/tests/test_main.py:339
↓ 10 callersMethodfirst
(self)
backend/tests/test_agents/test_orchestrator.py:44
↓ 10 callersFunctiongetWorkbenchStatusMeta
( state: WorkbenchStatusState, )
frontend/app/features/comic-workflow/state/deriveWorkbenchStatus.ts:70
↓ 10 callersFunctionget_redis
()
backend/app/agents/orchestrator.py:133
↓ 10 callersMethodmerge_videos
拼接多个视频 Args: video_urls: 视频 URL 列表 output_filename: 输出文件名(不含扩展名),默认自动生成 Returns: 拼接后视频的本地路径(相对于
backend/app/services/video_merger.py:77
↓ 10 callersFunctionrenderChatPanel
(isGenerating = false)
frontend/app/components/chat/ChatPanel.test.tsx:54
↓ 10 callersFunctionrenderDrawer
(props = {} as any)
frontend/app/components/panels/HistoryDrawer.test.tsx:64
↓ 10 callersMethodstream
流式输出。 产出事件: - {"type": "text", "text": "..."} # 增量文本 - {"type": "final", "response": LLMResponse(...)} # 最终聚合(包含 tool_calls
backend/app/services/llm.py:203
↓ 10 callersMethodstream
流式生成文本(兼容 LLMService 接口) Args: messages: 消息列表(优先使用) prompt: 提示词(向后兼容) system: 系统提示(可选) max_to
backend/app/services/text.py:463
↓ 10 callersFunctiontextOrNull
(value: unknown)
frontend/app/features/comic-workflow/inspector/WorkflowInspector.tsx:804
↓ 9 callersFunction_fix_common_json_errors
修复 LLM 生成 JSON 的常见错误。
backend/app/agents/utils.py:140
next →1–100 of 2,741, ranked by callers