MCPcopy Create free account

hub / github.com/DSGWJQ/Feagent / functions

Functions13,770 in github.com/DSGWJQ/Feagent

↓ 1 callersMethodpeek
查看队首请求但不移除 返回: SaveRequest 或 None(如果队列为空)
src/domain/services/save_request_channel.py:455
↓ 1 callersFunctionperformBatchCleanup
* 执行批量清理并返回删除数量
web/tests/e2e/scripts/verify-cleanup.ts:79
↓ 1 callersMethodprepare
( self, *, workflow_id: str, run_id: str, input_data: Any = None,
src/domain/ports/workflow_run_execution_entry.py:17
↓ 1 callersFunctionprint_event
格式化打印事件
scripts/test_sse_stream.py:29
↓ 1 callersFunctionprint_report
打印校验报告
scripts/validate_prompt_templates.py:283
↓ 1 callersMethodprocess_bottlenecks
批量处理瓶颈 参数: bottlenecks: 瓶颈列表 返回: 处理结果列表
src/domain/services/monitoring_knowledge_bridge.py:291
↓ 1 callersMethodprocess_incoming_message
处理传入消息并发送 ACK 参数: workflow_id: 工作流 ID data: 消息数据 websocket: WebSocket 连接
src/infrastructure/websocket/canvas_sync.py:655
↓ 1 callersMethodprocess_message_async
异步处理用户消息(推荐使用) 参数: workflow: 当前工作流实体 user_message: 用户消息 use_rag: 是否使用RAG功能 返回: (修改后的
src/domain/services/workflow_chat_service_with_rag.py:51
↓ 1 callersMethodprocess_next_save_request
No-op: 无队列时返回None 返回: None(队列为空)
src/domain/services/null_save_request_orchestrator.py:135
↓ 1 callersMethodprocess_save_request_with_receipt
No-op: 无队列时返回None 返回: None(队列为空)
src/domain/services/null_save_request_orchestrator.py:200
↓ 1 callersMethodput
更新缓存 执行逻辑: 1. 限制消息数量(取最后 N 条) 2. 创建/更新缓存条目 3. 移动到 LRU 末尾 4. 检查容量限制,必要时淘汰最旧的 Args:
src/infrastructure/memory/in_memory_cache.py:125
↓ 1 callersMethodquery
查询日志
src/domain/services/logging_metrics.py:470
↓ 1 callersMethodquery_by_conversation
按会话 ID 查询
src/domain/services/tool_knowledge_store.py:443
↓ 1 callersMethodqueue_size
当前队列大小
src/domain/services/reliable_emitter.py:279
↓ 1 callersFunctionreason_node
推理节点 - LLM 分析任务并决定是否需要工具 职责: 1. 调用 LLM 进行推理 2. LLM 可以决定: a. 直接回答(无需工具) b. 需要使用工具 3. 返回更新的状态 参数: state: 当前状
src/infrastructure/lc_adapters/agents/langgraph_task_executor.py:43
↓ 1 callersMethodreceive_json
(self)
tests/integration/test_agent_websocket_e2e.py:47
↓ 1 callersMethodrecord_exception
记录异常
src/domain/services/monitoring.py:232
↓ 1 callersMethodrecord_execution_summary
同步记录执行总结 参数: summary: ExecutionSummary 实例
src/domain/services/execution_summary_manager.py:58
↓ 1 callersMethodrecord_experiment_metrics
记录实验指标 参数: module_name: 模块名称 user_id: 用户ID success: 是否成功 duration_ms: 任务时长(毫秒) sa
src/domain/services/experiment_orchestrator.py:273
↓ 1 callersMethodrecord_experiment_metrics
记录实验指标(代理到 ExperimentOrchestrator)
src/domain/agents/coordinator_agent.py:3641
↓ 1 callersMethodrecord_failure
记录失败
src/domain/services/rule_engine_facade.py:695
↓ 1 callersMethodrecord_stop
记录 Agent 停止
src/domain/services/logging_metrics.py:892
↓ 1 callersMethodrecord_success
记录成功
src/domain/services/rule_engine_facade.py:690
↓ 1 callersMethodrecord_successful_pattern
记录成功的执行模式 参数: pattern: 模式信息 - task_type: 任务类型 - description: 描述 - steps: 执行步骤
src/domain/services/monitoring_knowledge_bridge.py:302
↓ 1 callersFunctionregister_default_container_executor_factory
为 Domain 层注册默认容器执行器工厂(由 Infrastructure/Composition Root 调用)。 KISS: Domain 不直接依赖 Infrastructure,实现通过注入的工厂提供。
src/domain/agents/workflow_agent.py:57
↓ 1 callersMethodregister_liveness
注册存活检查
src/domain/services/monitoring.py:373
↓ 1 callersMethodregister_readiness
注册就绪检查
src/domain/services/monitoring.py:377
↓ 1 callersMethodregister_to_registry
注册节点到 NodeRegistry 参数: node_name: 节点名称 node_type: 节点类型 schema: 配置 Schema 返回: 注册结果
src/domain/services/node_code_generator.py:841
↓ 1 callersMethodregister_with_event_bus
注册到EventBus 参数: event_bus: EventBus实例 workflow_id: 要监听的工作流ID
src/domain/services/canvas_synchronizer.py:371
↓ 1 callersMethodreject_prompt_change
拒绝提示词变更 参数: record_id: 变更记录ID reason: 拒绝原因 返回: 更新后的 VersionChangeRecord 对象
src/domain/services/prompt_version_facade.py:372
↓ 1 callersMethodreject_prompt_change
拒绝提示词变更(代理到 Facade)
src/domain/agents/coordinator_agent.py:2047
↓ 1 callersMethodremaining
计算剩余资源
src/domain/services/management_modules.py:138
↓ 1 callersMethodremove_child
移除子节点 参数: child_id: 要移除的子节点ID 返回: 是否成功移除
src/domain/services/generic_node.py:228
↓ 1 callersMethodremove_rule
移除规则 参数: rule_id: 规则 ID 返回: 是否成功移除
src/domain/services/save_request_audit.py:486
↓ 1 callersMethodremove_save_audit_rule
移除保存审计规则 参数: rule_id: 规则ID 返回: 是否成功移除
src/domain/services/rule_engine_facade.py:658
↓ 1 callersMethodremove_step_from_group
从分组移除步骤 参数: group_id: 分组ID step_id: 步骤ID
src/domain/agents/workflow_agent.py:3039
↓ 1 callersMethodremove_tag
移除标签 参数: tag: 标签名称
src/domain/services/knowledge_note.py:128
↓ 1 callersMethodremove_task
删除任务结果 参数: task_name: 任务名称
src/domain/value_objects/execution_context.py:134
↓ 1 callersFunctionrenderRoute
(workflowId = 'wf_test_123')
web/src/features/workflows/pages/__tests__/WorkflowEditorPage.test.tsx:46
↓ 1 callersFunctionrenderTaskStatus
(status: string)
web/src/features/agents/pages/AgentDetailPage.tsx:77
↓ 1 callersFunctionrenderTasks
()
web/src/features/agents/pages/AgentDetailPage.tsx:92
↓ 1 callersMethodreorder_children
重排序子节点 参数: parent_id: 父节点ID child_ids: 新的子节点ID顺序
src/domain/services/node_hierarchy_service.py:544
↓ 1 callersMethodrequest
模拟 httpx.AsyncClient.request()
tests/unit/infrastructure/executors/test_http_executor.py:111
↓ 1 callersMethodrequest_context_bridge
请求上下文桥接 代表目标工作流请求源工作流的数据。 参数: source_workflow_id: 源工作流ID target_workflow_id: 目标工作流ID keys: 请求的数据
src/domain/agents/coordinator_agent.py:2369
↓ 1 callersMethodrerank
重排序文档
src/domain/services/ai_node_executors.py:44
↓ 1 callersMethodreset
重置所有计数
src/domain/services/validators.py:321
↓ 1 callersMethodreset
重置控制器 清空所有槽位和队列,重置指标。
src/domain/services/tool_concurrency_controller.py:584
↓ 1 callersMethodreset_all
重置所有数据(执行记录 + 日志)
src/domain/services/container_execution_monitor.py:73
↓ 1 callersMethodreset_retry_count
重置重试计数 参数: node_id: 节点ID
src/domain/services/execution_monitor.py:186
↓ 1 callersMethodreset_token_usage
重置 token 使用计数器
src/domain/entities/session_context.py:390
↓ 1 callersMethodrestore_context
从上下文恢复span引用 参数: context: 传播上下文 返回: 恢复的span(用作父span)
src/domain/services/monitoring.py:310
↓ 1 callersMethodresume_from_subagent_async
从子Agent等待中恢复(异步版本,P0-2 Optimization) 原子性保证(消除空窗): 1. 在单个_state_lock内完成:恢复上下文 + 清理pending + 状态转换 2. 释放锁后再发布StateChangedEvent
src/domain/agents/conversation_agent_state.py:454
↓ 1 callersMethodretrieve
检索文档
src/domain/services/ai_node_executors.py:34
↓ 1 callersMethodretrieve_by_error
通过 RAGService 检索错误相关知识
src/domain/services/knowledge_retriever_port.py:268
↓ 1 callersMethodretrieve_by_goal
通过 RAGService 检索目标相关知识
src/domain/services/knowledge_retriever_port.py:282
↓ 1 callersMethodretrieve_knowledge
按查询检索知识 参数: query: 查询文本 workflow_id: 工作流ID(可选,用于过滤和缓存) top_k: 返回结果数量 返回: KnowledgeRe
src/domain/services/knowledge_retrieval_orchestrator.py:38
↓ 1 callersMethodretrieve_knowledge_by_error
按错误类型检索解决方案 参数: error_type: 错误类型 error_message: 错误消息(可选) top_k: 返回结果数量 返回: Knowledge
src/domain/services/knowledge_retrieval_orchestrator.py:89
↓ 1 callersMethodretrieve_knowledge_by_error
按错误类型检索解决方案(委托) 参数: error_type: 错误类型 error_message: 错误消息(可选) top_k: 返回结果数量 返回: Knowl
src/domain/agents/coordinator_agent.py:2845
↓ 1 callersMethodretrieve_knowledge_by_goal
按目标检索相关知识 参数: goal_text: 目标描述文本 workflow_id: 工作流ID(可选) top_k: 返回结果数量 返回: KnowledgeRe
src/domain/services/knowledge_retrieval_orchestrator.py:135
↓ 1 callersMethodretrieve_knowledge_by_goal
按目标检索相关知识(委托) 参数: goal_text: 目标描述文本 workflow_id: 工作流ID(可选) top_k: 返回结果数量 返回: Knowled
src/domain/agents/coordinator_agent.py:2867
↓ 1 callersMethodretrieve_relevant_chunks
检索相关的文档块
src/infrastructure/knowledge_base/chroma_retriever_service.py:220
↓ 1 callersMethodretry
重试 Task(FAILED → PENDING) 业务规则: - 只有 FAILED 状态的 Task 才能重试 - 重试时重置状态为 PENDING - 清除错误信息和 finished_at - 增加重试次数
src/domain/entities/task.py:300
↓ 1 callersMethodrollback
(self)
src/application/ports/transaction_manager.py:16
↓ 1 callersMethodrollback_prompt_version
回滚提示词版本 参数: module_name: 模块名称 target_version: 目标版本(不指定则回滚到上一版本) reason: 回滚原因 返回: Rol
src/domain/services/prompt_version_facade.py:212
↓ 1 callersMethodrollback_rollout
回滚灰度发布 当指标不达标时回滚到上一版本。 参数: experiment_id: 实验ID 返回: 回滚结果 {"success": bool, "message": str}
src/domain/services/experiment_orchestrator.py:412
↓ 1 callersMethodrollback_to_snapshot
回滚到指定快照 Args: workflow_id: 工作流 ID snapshot_id: 快照 ID Returns: 恢复的状态
src/domain/services/dynamic_node_monitoring.py:261
↓ 1 callersMethodrun_async
异步运行 参数: user_input: 用户输入 返回: 执行结果
src/domain/services/summary_strategy.py:735
↓ 1 callersFunctionrun_chat
()
src/interfaces/api/routes/workflows.py:965
↓ 1 callersFunctionrun_migrations
()
alembic/env.py:53
↓ 1 callersFunctionrun_migrations_offline
()
alembic/env.py:22
↓ 1 callersFunctionrun_migrations_online
()
alembic/env.py:42
↓ 1 callersFunctionrun_repository
(session: Session)
src/interfaces/api/main.py:208
↓ 1 callersMethodrun_turn
( self, *, session_id: str, message: str, context: dict[str, Any] | No
src/application/services/conversation_turn_orchestrator.py:80
↓ 1 callersFunctionrun_workflow_chat
运行工作流聊天逻辑,通过 emitter 发送事件
src/interfaces/api/routes/workflows.py:1359
↓ 1 callersMethodsample_count
获取样本数量
src/domain/services/logging_metrics.py:973
↓ 1 callersMethodsanitize_with_log
带日志的净化 参数: text: 输入文本 返回: 包含净化结果和变更记录的字典
src/domain/services/supervision_strategy.py:427
↓ 1 callersMethodsave
(self, workflow: Workflow)
tests/unit/application/services/test_prd060_scenario_baseline.py:30
↓ 1 callersMethodsave_document
保存文档
src/infrastructure/knowledge_base/sqlite_knowledge_repository.py:140
↓ 1 callersMethodsave_document
保存文档
src/infrastructure/knowledge_base/sqlite_knowledge_repository_old.py:173
↓ 1 callersMethodsave_knowledge_base
保存知识库
src/infrastructure/knowledge_base/sqlite_knowledge_repository.py:72
↓ 1 callersMethodsave_result
保存幂等键对应的执行结果。
src/domain/ports/idempotency_store.py:26
↓ 1 callersMethodsave_solution
保存解法
src/domain/services/knowledge_maintenance.py:982
↓ 1 callersMethodsearch
在工作流的历史记录中搜索消息 业务场景: - 用户在历史记录中搜索关键词:"HTTP节点" - 返回包含关键词的消息列表(按相关性排序) 实现: - 简单实现:使用 LIKE 查询 + Jaccard 相似度
src/infrastructure/database/repositories/chat_message_repository.py:83
↓ 1 callersMethodsearch
在消息历史中进行语义搜索(使用 repository) 参数: query: 搜索查询词 threshold: 相关性阈值(0-1) 返回: [(ChatMessage, relevance_
src/domain/services/workflow_chat_service_enhanced.py:175
↓ 1 callersMethodsearch_documents
搜索文档 参数: query: 查询文本 workflow_id: 可选的工作流ID limit: 返回数量限制 threshold: 相似度阈值 返回:
src/application/services/rag_service.py:121
↓ 1 callersMethodsearch_knowledge
按关键词搜索知识条目 参数: keyword: 搜索关键词 返回: 匹配的条目列表
src/domain/agents/coordinator_agent.py:3372
↓ 1 callersMethodsearch_similar_chunks
搜索相似的文档分块 参数: query_embedding: 查询向量 workflow_id: 可选的工作流ID,用于限定搜索范围 limit: 返回结果数量限制 threshold:
src/domain/knowledge_base/ports/knowledge_repository.py:72
↓ 1 callersFunctionseedOne
(fixture_type)
tools/verify-seed-api.mjs:54
↓ 1 callersMethodselect_next_agent
选择下一个 Agent(用于轮询调度)
src/domain/services/resource_lifecycle.py:367
↓ 1 callersMethodsend
发送告警
src/domain/services/monitoring.py:481
↓ 1 callersMethodsend_save_result_receipt
No-op: 无回执系统时返回空处理结果 返回值结构与 SaveResultReceiptSystem.process_result() 一致。 参数: session_id: 会话ID(忽略) request_id
src/domain/services/null_save_request_orchestrator.py:164
↓ 1 callersFunctionsetTheme
(newTheme: ThemeMode)
web/src/shared/contexts/ThemeContext.tsx:50
↓ 1 callersMethodset_access_policy
设置访问策略 参数: workflow_id: 工作流ID allowed_requesters: 允许的请求者列表 restricted_keys: 受限的数据键列表
src/domain/services/context_bridge_enhanced.py:157
↓ 1 callersMethodset_inputs
设置输入数据 参数: inputs: 输入数据字典
src/domain/services/context_bridge.py:268
↓ 1 callersMethodset_outputs
设置输出数据 参数: outputs: 输出数据字典
src/domain/services/context_bridge.py:276
↓ 1 callersMethodset_sandbox_available
设置沙箱可用性
src/domain/services/dynamic_node_monitoring.py:634
↓ 1 callersFunctionset_scheduler_service
Register global scheduler service instance.
src/interfaces/api/dependencies/scheduler.py:47
↓ 1 callersMethodset_sync_service
设置画布同步服务引用 参数: service: CanvasSyncService实例
src/infrastructure/websocket/canvas_sync.py:258
↓ 1 callersMethodset_variable
设置本地变量(不影响父上下文) 参数: name: 变量名 value: 变量值
src/domain/agents/subtask_executor.py:221
↓ 1 callersMethodshould_rollback_rollout
检查是否应该回滚 参数: experiment_id: 实验ID 返回: 是否应该回滚
src/domain/services/experiment_orchestrator.py:442
← previousnext →3,101–3,200 of 13,770, ranked by callers