MCPcopy Create free account

hub / github.com/DSGWJQ/Feagent / functions

Functions13,770 in github.com/DSGWJQ/Feagent

↓ 1 callersMethodadd_message
添加消息到对话历史(支持双签名) 支持两种调用方式: 1. context_manager风格: add_message({"role": "user", "content": "..."}) 2. context_bridge风格: add_mes
src/domain/entities/session_context.py:222
↓ 1 callersMethodadd_node_to_group
将已存在的节点移动到指定分组(Legacy 兼容)。 与 add_step_to_group 不同:该方法不创建新节点,而是建立父子层级关系。
src/domain/agents/workflow_agent.py:2918
↓ 1 callersMethodadd_notification_channel
添加通知渠道
src/domain/services/monitoring.py:527
↓ 1 callersMethodadd_parameter
添加参数 参数: param: 工具参数
src/domain/entities/tool.py:212
↓ 1 callersMethodadd_pattern
添加解析模式
src/domain/services/management_modules.py:939
↓ 1 callersMethodadd_pattern_alert_rule
添加基于模式的告警规则
src/domain/services/management_modules.py:1163
↓ 1 callersMethodadd_rule
添加规则
src/domain/services/save_request_audit.py:482
↓ 1 callersMethodadd_save_audit_rule
添加保存审计规则 参数: rule: 审计规则
src/domain/services/rule_engine_facade.py:647
↓ 1 callersMethodadd_strategy
添加策略
src/domain/services/supervision_strategy.py:956
↓ 1 callersMethodadd_tag_to_note
给笔记添加标签 只允许修改 draft 或 pending_user 状态的笔记。 参数: note: 笔记实例 tag: 标签名称 异常: NoteImmutableErr
src/domain/services/knowledge_note_lifecycle.py:155
↓ 1 callersMethodadd_violation
添加违规
src/domain/services/supervision_strategy.py:72
↓ 1 callersMethodadvance_rollout_stage
推进灰度发布阶段 检查当前阶段指标是否达标,如果达标则推进到下一阶段。 参数: experiment_id: 实验ID 返回: 推进结果 {"success": bool, "message": s
src/domain/services/experiment_orchestrator.py:379
↓ 1 callersMethodadvance_rollout_stage
推进灰度发布阶段(代理到 ExperimentOrchestrator)
src/domain/agents/coordinator_agent.py:3681
↓ 1 callersMethodaembed_query
(self, text: str)
src/infrastructure/knowledge_base/chroma_retriever_service.py:94
↓ 1 callersMethodafter_execute
( self, *, workflow_id: str, input_data: Any, result: dict[str, Any],
src/application/services/workflow_execution_orchestrator.py:32
↓ 1 callersMethodaggregate
简单聚合结果 参数: results: 节点ID到结果的字典 返回: 聚合后的结果
src/domain/services/performance_optimizer.py:456
↓ 1 callersMethodaggregate_by_label
按标签聚合
src/domain/services/logging_metrics.py:1036
↓ 1 callersMethodaggregate_logs_by_level
按级别聚合日志数量 返回: 级别统计字典 {"INFO": 60, "WARNING": 20, "ERROR": 10, ...}
src/domain/services/unified_log_integration.py:204
↓ 1 callersMethodaggregate_logs_by_source
按来源聚合日志数量 返回: 来源统计字典 {"CoordinatorAgent": 50, "WorkflowAgent": 30, ...}
src/domain/services/unified_log_integration.py:196
↓ 1 callersMethodaggregate_with_errors
区分成功和失败的聚合 参数: results: 节点ID到结果的字典 返回: 包含成功、失败和摘要的聚合结果
src/domain/services/performance_optimizer.py:506
↓ 1 callersMethodanalyze_and_record_failures
分析并记录频繁失败 参数: threshold: 失败次数阈值 返回: 分析结果
src/domain/services/monitoring_knowledge_bridge.py:390
↓ 1 callersMethodapply_to_session
将更新应用到会话 Args: unpacked: 解包后的结果 session: 会话对象
src/domain/services/result_memory_integration.py:365
↓ 1 callersMethodapprove_prompt_change
审批通过提示词变更 参数: record_id: 变更记录ID comment: 审批意见 返回: 更新后的 VersionChangeRecord 对象
src/domain/services/prompt_version_facade.py:342
↓ 1 callersMethodapprove_prompt_change
审批通过提示词变更(代理到 Facade)
src/domain/agents/coordinator_agent.py:2036
↓ 1 callersMethodarchive_expired_plan
归档过期计划 参数: note: next_action 笔记 lifecycle_manager: 生命周期管理器
src/domain/services/knowledge_coordinator_inspector.py:239
↓ 1 callersFunctionassertSeedResponse
(data, expectedType)
tools/verify-seed-api.mjs:42
↓ 1 callersFunctionattach_event_bus_sse_bridge
Attach a minimal EventBus -> SSE bridge for active ConversationFlowEmitter sessions. KISS: only forwards Coordinator allow/deny signals.
src/interfaces/api/services/event_bus_sse_bridge.py:17
↓ 1 callersMethodattach_knowledge_sources
附加知识来源 参数: ctx: 压缩上下文 knowledge_context: 知识上下文 返回: 更新后的 PowerCompressedContext
src/domain/services/power_compressor.py:502
↓ 1 callersMethodauto_enrich_context_on_error
错误发生时自动丰富上下文 当节点执行失败时,自动检索相关的错误解决方案知识。 参数: workflow_id: 工作流ID error_type: 错误类型 error_message: 错误
src/domain/services/knowledge_retrieval_orchestrator.py:374
↓ 1 callersMethodbatch_add_children
批量添加子节点 参数: parent_id: 父节点ID children_configs: 子节点配置列表 返回: 创建的子节点列表
src/domain/services/node_hierarchy_service.py:491
↓ 1 callersMethodbatch_remove_children
批量删除子节点 参数: parent_id: 父节点ID child_ids: 要删除的子节点ID列表
src/domain/services/node_hierarchy_service.py:522
↓ 1 callersMethodbatch_write_violations
批量写入违规记录 参数: session_id: 会话 ID results: 保存结果列表 返回: 知识条目 ID 列表
src/domain/services/save_request_receipt.py:434
↓ 1 callersMethodbefore_execute
( self, *, workflow_id: str, input_data: Any, correlation_id: str | No
src/application/services/workflow_execution_orchestrator.py:23
↓ 1 callersMethodbuild_agent_coordination
构建 Agent 协调层 创建: - SubAgentOrchestrator(共享 log_collector) - SupervisionCoordinator - DynamicAlertRuleManager(可选,如果模块存
src/domain/services/coordinator_bootstrap.py:770
↓ 1 callersMethodbuild_base_state
构建基础状态 创建所有基础状态容器:规则列表、统计字典、工作流状态、标志位等。 返回: 基础状态字典
src/domain/services/coordinator_bootstrap.py:594
↓ 1 callersMethodbuild_failure_layer
构建失败处理层 创建 WorkflowFailureOrchestrator,注入状态访问器和工作流 Agent 解析器。 参数: base: 基础状态字典 infra: 基础设施组件字典 返回:
src/domain/services/coordinator_bootstrap.py:703
↓ 1 callersMethodbuild_guardians
构建守护层 创建: - ContextInjectionManager Facade(Phase 34.12:包装旧的注入管理器) - SupervisionFacade(Phase 34.13:包装 SupervisionModule、Logger
src/domain/services/coordinator_bootstrap.py:894
↓ 1 callersMethodbuild_infra
构建基础设施层 创建: - CircuitBreaker(如果配置提供) - UnifiedLogCollector(共享单例) - ContainerExecutionMonitor - UnifiedLogInte
src/domain/services/coordinator_bootstrap.py:652
↓ 1 callersMethodbuild_knowledge_layer
构建知识层 创建: - KnowledgeManager - _ContextGateway(访问 _compressed_contexts) - KnowledgeRetrievalOrchestrator - Ex
src/domain/services/coordinator_bootstrap.py:727
↓ 1 callersFunctionbuild_parser
()
web/tests/e2e/scripts/collect-metrics.py:598
↓ 1 callersFunctionbuild_plan
(root: Path, rules: Rules, *, mode: str, stale_days: int)
scripts/organize_project_files.py:657
↓ 1 callersMethodbuild_prompt_experiment
构建提示词与实验层 创建: - PromptVersionFacade(共享 log_collector) - ExperimentOrchestrator(共享 log_collector) 参数: inf
src/domain/services/coordinator_bootstrap.py:815
↓ 1 callersMethodbuild_rule_engine_facade
构建 RuleEngineFacade(P1-1 Step 3) 创建规则引擎 Facade,整合决策规则、安全校验、审计等功能。 策略: - 如果 config.rule_engine_facade 已注入,直接使用 - 否则,自
src/domain/services/coordinator_bootstrap.py:989
↓ 1 callersMethodbuild_save_flow
构建保存请求流程 创建 SaveRequestOrchestrator(仅当 event_bus 不为 None), 并更新 base 中的相关别名。 参数: base: 基础状态字典 infra:
src/domain/services/coordinator_bootstrap.py:843
↓ 1 callersMethodbuild_span_tree
构建跨度树 将扁平的跨度列表构建为树形结构。
src/domain/services/log_analysis.py:150
↓ 1 callersMethodcall_tool
调用MCP工具
src/domain/services/ai_node_executors.py:60
↓ 1 callersMethodcan_transition_to
(self, target: RunStatus)
src/domain/value_objects/run_status.py:25
↓ 1 callersMethodcancel_task
取消任务 参数: task_id: 任务ID 返回: True 如果成功取消
src/domain/services/concurrent_execution_manager.py:280
↓ 1 callersMethodcheck
检查值是否符合类型 参数: param_type: 参数类型(string/number/boolean/object/array/any) value: 实际值 返回: 是否类型匹配
src/domain/services/tool_parameter_validator.py:136
↓ 1 callersMethodcheck_circuit_breaker_state
检查熔断器状态并发布告警事件 如果熔断器打开,发布告警事件。
src/domain/agents/coordinator_agent.py:2351
↓ 1 callersMethodcheck_experiment_expiry
检查实验是否过期
src/domain/services/ab_testing_system.py:558
↓ 1 callersMethodcheck_experiment_metrics_threshold
检查实验指标是否达到阈值 参数: experiment_id: 实验ID variant: 变体名称 thresholds: 阈值配置 {"success_rate": 0.95, "avg_duration"
src/domain/services/experiment_orchestrator.py:502
↓ 1 callersMethodcheck_experiment_metrics_threshold
检查实验指标是否达到阈值(代理到 ExperimentOrchestrator)
src/domain/agents/coordinator_agent.py:3705
↓ 1 callersMethodcheck_liveness
执行存活检查
src/domain/services/monitoring.py:408
↓ 1 callersMethodcheck_readiness
执行就绪检查
src/domain/services/monitoring.py:412
↓ 1 callersFunctioncheck_resource_constraints
检查资源约束 验证工作流是否满足资源约束。 Args: payload: 工作流规划 payload constraints: 资源约束配置 Returns: 约束检查结果
src/domain/agents/conversation_agent_enhanced.py:223
↓ 1 callersMethodcheck_state
检查状态,如果熔断则抛出异常 异常: CircuitBreakerOpenError: 熔断器已打开
src/domain/services/circuit_breaker.py:126
↓ 1 callersFunctionclassifyTask
( data: ClassifyTaskRequest )
web/src/features/classification/api/classificationApi.ts:19
↓ 1 callersMethodclassify_intent
分类用户输入的意图 参数: user_input: 用户输入 返回: IntentClassificationResult 意图分类结果
src/domain/agents/conversation_agent_intent.py:74
↓ 1 callersFunctioncleanupWorkflows
* 清理测试 workflows(增强版) * @param cleanupTokens - 清理 token 列表 * @param options - 清理选项 * @returns 清理统计信息
web/tests/e2e/fixtures/workflowFixtures.ts:138
↓ 1 callersMethodcleanup_completed
清理已完成的会话 返回: 清理的会话数量
src/interfaces/api/services/sse_emitter_handler.py:347
↓ 1 callersMethodcleanup_workflow_context
清理工作流上下文 参数: workflow_id: 工作流ID
src/domain/services/context_bridge.py:515
↓ 1 callersMethodclear
清空指定 workflow 的所有消息 Args: workflow_id: 工作流 ID
src/infrastructure/memory/database_memory_store.py:108
↓ 1 callersMethodclear
清空所有消息(从数据库删除)
src/domain/services/workflow_chat_service_enhanced.py:166
↓ 1 callersMethodclear
清空所有规则
src/domain/services/enhanced_rule_repository.py:257
↓ 1 callersMethodclear
清空所有日志
src/domain/services/unified_log_collector.py:229
↓ 1 callersMethodclear
清空日志
src/domain/services/context_injection.py:254
↓ 1 callersMethodclear
清空所有消息
src/application/services/memory_service_adapter.py:70
↓ 1 callersMethodclear
(self, workflow_id: str)
tests/unit/domain/ports/test_memory_provider.py:70
↓ 1 callersMethodclear_alert
清除指定告警
src/domain/services/dynamic_node_monitoring.py:709
↓ 1 callersMethodclear_feedbacks
清空待处理的反馈 注意:同步版本不使用锁,适用于非关键路径。 在异步上下文中请使用clear_feedbacks_async。
src/domain/agents/conversation_agent_recovery.py:230
↓ 1 callersMethodclear_history
清空对话历史
src/domain/services/workflow_chat_service_enhanced.py:395
↓ 1 callersMethodclear_logs
清空 UnifiedLogCollector 中的所有日志 注意: 仅清空 log_collector 的日志,不影响 message_log 或 container_logs
src/domain/services/unified_log_integration.py:288
↓ 1 callersMethodclear_old_states
清理旧状态 删除超过指定时间的工作流状态。 参数: max_age_seconds: 最大年龄(秒) 返回: 删除的状态数量
src/domain/agents/workflow_state_monitor.py:424
↓ 1 callersMethodclear_scenario
清除当前场景
src/domain/services/scenario_prompt_system.py:489
↓ 1 callersMethodclear_session
清除会话的所有注入 参数: session_id: 会话 ID
src/domain/services/context_injection.py:362
↓ 1 callersMethodcollapse
折叠节点 返回: self,支持链式调用
src/domain/services/generic_node.py:201
↓ 1 callersMethodcollapse_all
折叠节点及其所有后代 参数: node_id: 节点ID
src/domain/services/node_hierarchy_service.py:397
↓ 1 callersMethodcollapse_node
折叠节点 参数: node_id: 节点ID 返回: 折叠的节点结构
src/domain/services/node_schema.py:832
↓ 1 callersMethodcollect
(event)
tests/unit/domain/services/test_resource_lifecycle.py:718
↓ 1 callersMethodcompare_versions
比较两个版本的差异 参数: node_id: 节点ID version1: 版本1 version2: 版本2 返回: 差异报告: {
src/domain/services/node_version_manager.py:202
↓ 1 callersMethodcomplete
完成目标
src/domain/services/goal_decomposer.py:89
↓ 1 callersMethodcomplete
完成执行
src/domain/services/context_bridge.py:289
↓ 1 callersMethodcomplete_current_goal
完成当前目标 从目标栈弹出当前目标。 返回: 完成的目标
src/domain/agents/conversation_agent_helpers.py:106
↓ 1 callersMethodcomplete_experiment
完成实验
src/domain/services/ab_testing_system.py:551
↓ 1 callersMethodcomplete_experiment
完成实验(代理到 ExperimentOrchestrator)
src/domain/agents/coordinator_agent.py:3625
↓ 1 callersMethodcompress
压缩缓冲区内容 参数: buffers: 短期缓冲区列表 existing_summary: 已有的摘要(用于增量压缩) 返回: StructuredDialogueSummary 实例
src/domain/services/memory_compression_handler.py:38
↓ 1 callersMethodcompress
压缩输入数据 参数: input_data: 压缩输入 返回: 压缩后的上下文
src/domain/services/context_compressor.py:223
↓ 1 callersMethodcompress_history
压缩历史消息以控制 token 数量 Args: max_tokens: 最大允许的 token 数 min_messages: 最小保留消息数 Returns: 压缩后的消息列表
src/application/services/memory_service_adapter.py:131
↓ 1 callersFunctioncomputeIsolatedNodeIds
(workflow: WorkflowResponse)
web/tests/e2e/fullreal/ux-wf-201-real-llm.spec.ts:406
↓ 1 callersMethodconfigure_api_domains
配置 API 域名 参数: whitelist: 白名单域名列表 blacklist: 黑名单域名列表 allowed_schemes: 允许的协议集合
src/domain/services/rule_engine_facade.py:546
↓ 1 callersMethodconfigure_file_security
配置文件安全 参数: whitelist: 白名单路径列表 blacklist: 黑名单路径列表 max_content_bytes: 最大内容字节数 allowed_operation
src/domain/services/rule_engine_facade.py:524
↓ 1 callersMethodconfigure_save_auditor
抛出异常: 无EventBus时不支持审核器配置 此方法的行为与SaveRequestOrchestrator.__init__一致。 当event_bus=None时,真实实现在初始化时抛出ValueError, Null实现在配置时抛出相同异常。
src/domain/services/null_save_request_orchestrator.py:107
↓ 1 callersFunctionconfirmRunSideEffect
( runId: string, body: { confirm_id: string; decision: 'allow' | 'deny' } )
web/src/features/workflows/api/workflowsApi.ts:76
↓ 1 callersFunctionconvert_node_schema_registry_to_unified
从 NodeSchemaRegistry 转换所有定义 参数: node_schema_registry: NodeSchemaRegistry 实例 返回: 统一定义列表
src/domain/services/unified_definition.py:571
↓ 1 callersFunctionconvert_to_react_flow_format
转换后端格式到 React Flow 格式
tests/manual/test_e2e_workflow_chat.py:139
↓ 1 callersMethodcount_by_workflow_id
统计工作流的消息数量 业务场景: - 前端显示:"共 25 条对话记录" 实现: - 使用 COUNT 查询(不加载消息内容) - 性能优化:比 len(find_by_workflow_id()) 更高效
src/infrastructure/database/repositories/chat_message_repository.py:158
↓ 1 callersMethodcount_by_workflow_id
统计指定 Workflow 下的 Run 数量
src/infrastructure/database/repositories/run_repository.py:255
↓ 1 callersMethodcount_logs_by_action
按操作类型统计日志数量 返回: 操作类型到数量的映射
src/domain/services/knowledge_audit_log.py:354
↓ 1 callersMethodcreate
创建偏离告警 参数: alert_type: 告警类型 ignored_notes: 被忽视的笔记列表 reason: 告警原因 severity: 严重程度 (可选, 默认根据笔记类型
src/domain/services/knowledge_deviation_alert.py:61
← previousnext →2,601–2,700 of 13,770, ranked by callers