MCPcopy Create free account

hub / github.com/DSGWJQ/Feagent / functions

Functions13,770 in github.com/DSGWJQ/Feagent

↓ 2 callersMethodget_session
获取会话信息 参数: session_id: 会话ID 返回: 会话信息或 None
src/domain/agents/agent_channel.py:229
↓ 2 callersMethodget_session_context
获取会话上下文 参数: session_id: 会话ID 返回: 会话上下文,不存在返回None
src/domain/services/context_bridge.py:493
↓ 2 callersMethodget_session_save_statistics
获取会话的保存统计(代理到 SaveRequestOrchestrator) 参数: session_id: 会话 ID 返回: 统计信息字典
src/domain/agents/coordinator_agent.py:1681
↓ 2 callersMethodget_session_summary
获取会话摘要 参数: session_id: 会话ID 返回: 会话统计摘要
src/domain/services/knowledge_coordinator_integration.py:244
↓ 2 callersMethodget_snapshot
获取快照 参数: snapshot_id: 快照ID 返回: 压缩上下文,不存在返回None
src/domain/services/context_compressor.py:665
↓ 2 callersMethodget_solutions
获取所有解法
src/domain/services/knowledge_maintenance.py:723
↓ 2 callersMethodget_statistics
获取连接统计信息 返回: 统计信息字典
src/infrastructure/websocket/canvas_sync.py:402
↓ 2 callersMethodget_statistics
获取统计信息
src/domain/services/agent_orchestrator.py:239
↓ 2 callersMethodget_statistics
获取发送统计 返回: 包含统计信息的字典
src/domain/services/conversation_flow_emitter.py:448
↓ 2 callersMethodget_stats
获取缓存统计指标 Returns: 包含以下字段的字典: - hits: 命中次数 - misses: 未命中次数 - hit_rate: 命中率(0-1)
src/infrastructure/memory/in_memory_cache.py:188
↓ 2 callersMethodget_status
获取子Agent状态 参数: subagent_id: 子Agent实例ID 返回: 状态字典,如果不存在返回None
src/domain/services/subagent_orchestrator.py:331
↓ 2 callersMethodget_summary
获取摘要
src/domain/services/prompt_stability_monitor.py:224
↓ 2 callersFunctionget_sync_engine
创建同步数据库引擎 为什么需要同步引擎? - 当前的 Repository 实现是同步的 - FastAPI 路由可以使用同步或异步 - 同步代码更简单,易于理解和调试 未来迁移到异步: - 修改 Repository 为异步 - 修改路由
src/infrastructure/database/engine.py:55
↓ 2 callersMethodget_system_status_with_alerts
获取带告警评估的系统状态 自动评估所有告警规则,返回系统状态和触发的告警。 P1-1清理: 改为调用 Facade API 以减少重复依赖 返回: 系统状态字典,包含 alerts 字段
src/domain/agents/coordinator_agent.py:3429
↓ 2 callersMethodget_task_result
获取任务执行结果 参数: task_id: 任务ID timeout: 等待超时时间(秒) 返回: 任务结果或None
src/domain/services/concurrent_execution_manager.py:252
↓ 2 callersMethodget_termination_events
获取终止事件列表 返回: 终止事件列表
src/domain/services/supervision/coordinator.py:72
↓ 2 callersMethodget_top
获取相关度最高的前N个引用 参数: n: 数量 返回: 按相关度降序排列的引用列表
src/domain/services/knowledge_reference.py:226
↓ 2 callersMethodget_trace
获取追踪记录
src/domain/services/coordinator_runbook.py:724
↓ 2 callersMethodget_transfer_history
获取特定工作流的传递历史 参数: workflow_id: 工作流ID direction: "incoming"(传入), "outgoing"(传出), "both"(全部) 返回: 日志
src/domain/services/context_bridge_enhanced.py:293
↓ 2 callersMethodget_version_history
获取版本历史
src/domain/services/prompt_version_manager.py:341
↓ 2 callersMethodget_violations
获取违规项 返回: 违规项字典 {资源类型: 违规描述}
src/domain/services/validators.py:273
↓ 2 callersMethodget_visible_children
获取可见子节点(考虑折叠状态) 参数: node_id: 节点ID 返回: 可见子节点列表
src/domain/services/node_hierarchy_service.py:428
↓ 2 callersMethodget_workflow_context
获取工作流上下文 参数: workflow_id: 工作流ID 返回: 工作流上下文,不存在返回None
src/domain/services/context_bridge.py:504
↓ 2 callersMethodget_workflow_progress
获取当前工作流执行进度 返回: 进度百分比(0.0-1.0)
src/domain/agents/workflow_agent.py:2297
↓ 2 callersMethodhandle_reflection_with_knowledge
处理反思事件并检索相关知识(委托) 当收到反思事件时调用此方法,会基于工作流目标检索相关知识。 参数: workflow_id: 工作流ID assessment: 评估内容 confiden
src/domain/agents/coordinator_agent.py:3049
↓ 2 callersMethodhas_errors
判断是否有错误
src/domain/services/result_memory_integration.py:127
↓ 2 callersMethodhas_schema
检查Schema是否存在 参数: node_type: 节点类型 返回: 是否存在
src/domain/services/node_schema.py:459
↓ 2 callersMethodidentify_parallel_groups
识别可并行执行的节点组 使用拓扑排序,将无依赖关系的节点分组。 参数: workflow: 工作流定义,包含nodes和edges 返回: 节点组列表,每组内的节点可并行执行
src/domain/services/performance_optimizer.py:111
↓ 2 callersMethodidentify_slow_services
识别慢服务 参数: traces: 任务追踪列表 threshold_ms: 阈值(毫秒) 返回: 慢服务字典
src/domain/services/log_analysis.py:582
↓ 2 callersMethodimport_from_dict
从字典导入 参数: data: 知识数据字典
src/domain/services/knowledge_maintenance.py:1012
↓ 2 callersMethodinc_gauge
增加仪表盘值 参数: name: 指标名称 delta: 增量
src/domain/services/monitoring.py:104
↓ 2 callersMethodincrement_reuse
增加复用计数
src/domain/services/knowledge_maintenance.py:308
↓ 2 callersMethodingest_file
导入单个文件
scripts/ingest_docs.py:195
↓ 2 callersMethodinject_intervention
注入干预指令 当需要暂停或干预执行时调用。 参数: session_id: 会话 ID intervention_message: 干预消息 reason: 干预原因 返回:
src/domain/agents/coordinator_agent.py:1324
↓ 2 callersMethodinject_knowledge_to_context
向现有压缩上下文注入知识 参数: workflow_id: 工作流ID goal: 任务目标(可选) errors: 错误列表(可选)
src/domain/services/knowledge_retrieval_orchestrator.py:260
↓ 2 callersMethodinject_observation
注入观察信息 参数: session_id: 会话 ID observation: 观察内容 source: 来源 返回: 创建的 ContextInjection
src/domain/agents/coordinator_agent.py:1372
↓ 2 callersMethodinject_warning
注入警告 参数: session_id: 会话 ID content: 警告内容 source: 来源 reason: 原因 priority: 优先级
src/domain/services/context_injection.py:415
↓ 2 callersMethodinspect_context
检查上下文
src/domain/services/coordinator_runbook.py:702
↓ 2 callersMethodis_admin
检查是否是管理员
src/domain/entities/user.py:188
↓ 2 callersMethodis_aligned
检查行动是否与目标对齐(布尔值) 参数: goal: 目标描述 action_description: 行动描述 keywords: 可选的关键词列表 返回: 是否对齐
src/domain/services/rule_generator.py:225
↓ 2 callersMethodis_archived
判断是否已归档 返回: 是否已归档
src/domain/services/knowledge_note.py:170
↓ 2 callersMethodis_available
检查容器执行环境是否可用
src/domain/agents/container_executor.py:156
↓ 2 callersMethodis_draft
判断是否为草稿状态 返回: 是否为草稿
src/domain/services/knowledge_note.py:154
↓ 2 callersMethodis_empty
检查队列是否为空 返回: True 如果队列为空
src/domain/services/save_request_channel.py:406
↓ 2 callersMethodis_empty
判断摘要是否为空 返回: 如果所有段落都为空则返回 True
src/domain/services/structured_dialogue_summary.py:122
↓ 2 callersMethodis_error
是否为错误 返回: True 如果状态为 FAILED 或 REJECTED
src/domain/services/save_request_receipt.py:89
↓ 2 callersMethodis_expired
检查是否过期
src/domain/services/performance_optimizer.py:56
↓ 2 callersMethodis_monitoring
检查是否正在监控
src/domain/services/supervision_strategy.py:595
↓ 2 callersMethodis_removal
是否为移除操作
src/domain/services/intervention/models.py:126
↓ 2 callersMethodis_save_request_channel_enabled
检查保存请求通道是否启用 返回: True 如果已启用
src/domain/agents/conversation_agent.py:446
↓ 2 callersMethodis_valid_version
验证版本号是否符合语义化版本规范
src/domain/services/prompt_version_manager.py:66
↓ 2 callersMethodlimit_injection
限制注入数量 参数: notes: 笔记列表 max_total: 最大总数 返回: 限制后的笔记列表
src/domain/services/knowledge_vault_retriever.py:264
↓ 2 callersMethodlist_all
列出所有Schema 返回: Schema列表
src/domain/services/node_schema.py:470
↓ 2 callersMethodlist_all
列出所有定义
src/domain/services/unified_definition.py:278
↓ 2 callersMethodlist_all
列出所有策略 返回: 策略列表
src/domain/services/supervision/strategy_repo.py:66
↓ 2 callersMethodlist_by_category
按分类列出节点 参数: category: 分类名称 返回: 该分类下的节点定义列表
src/domain/services/extension_api.py:352
↓ 2 callersMethodlist_domains
列出所有领域 Returns: 领域名称列表
src/domain/services/scenario_prompt_system.py:810
↓ 2 callersMethodlist_fixture_types
列出所有可用的 fixture 类型
src/domain/services/workflow_fixtures.py:56
↓ 2 callersMethodlist_sessions
列出所有会话 ID
src/domain/services/reliable_emitter.py:193
↓ 2 callersMethodlist_task_types
列出所有注册的任务类型 Returns: 任务类型列表
src/domain/services/scenario_prompt_system.py:502
↓ 2 callersMethodlist_types
列出所有已注册类型 返回: 已注册的Agent类型列表
src/domain/services/sub_agent_scheduler.py:369
↓ 2 callersMethodload_from_directory
从目录加载所有定义 参数: dir_path: 目录路径 返回: 统一定义列表
src/domain/services/unified_definition.py:750
↓ 2 callersMethodload_from_directory
从目录加载所有场景配置 Args: dir_path: 目录路径 Returns: {scenario_id: ScenarioPrompt} 字典
src/domain/services/scenario_prompt_system.py:422
↓ 2 callersMethodload_from_yaml
从 YAML 文件加载模块 参数: file_path: YAML 文件路径 返回: 加载的模块 异常: FileNotFoundError: 文件不存在
src/domain/services/prompt_template_system.py:444
↓ 2 callersMethodload_memory
加载记忆
src/domain/services/knowledge_maintenance.py:970
↓ 2 callersMethodload_rules
从YAML文件加载规则 参数: config_path: 配置文件路径
src/domain/services/rule_engine.py:285
↓ 2 callersMethodlog_applied
记录注入已应用 参数: injection_id: 注入 ID session_id: 会话 ID iteration: 应用时的迭代次数
src/domain/services/context_injection.py:217
↓ 2 callersMethodlog_audit_completed
记录审核完成 参数: request_id: 请求 ID approved: 是否批准 rules_checked: 检查的规则列表 返回: 日志条目
src/domain/services/save_request_receipt.py:541
↓ 2 callersMethodlog_note_rejection
记录笔记拒绝 参数: note: 笔记实例 rejected_by: 拒绝者ID reason: 拒绝原因(可选) 返回: 创建的审计日志
src/domain/services/knowledge_audit_log.py:211
↓ 2 callersMethodlog_receipt_sent
记录回执发送 参数: request_id: 请求 ID status: 状态 message: 消息 返回: 日志条目
src/domain/services/save_request_receipt.py:576
↓ 2 callersMethodlog_recovery_attempt
记录恢复尝试 参数: node_id: 节点ID action: 恢复动作 attempt: 尝试次数 success: 是否成功 next_action: 下一
src/domain/agents/error_handling.py:876
↓ 2 callersFunctionmapBackendNodeTypeToFrontend
(backendType: string)
web/src/features/workflows/pages/WorkflowEditorPageWithMutex.tsx:518
↓ 2 callersMethodmark_as_applied
标记注入已应用 参数: injection_id: 注入 ID iteration: 应用时的迭代次数 返回: 是否成功标记
src/domain/services/context_injection.py:330
↓ 2 callersMethodmark_failed
标记 Agent 为失败状态
src/domain/services/management_modules.py:724
↓ 2 callersMethodmean
(self)
tests/performance/test_performance_benchmarks.py:45
↓ 2 callersMethodmerge
合并两个摘要 参数: other: 另一个摘要 返回: 合并后的新摘要
src/domain/services/structured_dialogue_summary.py:156
↓ 2 callersMethodmove_node
移动节点到新父节点 参数: node_id: 要移动的节点ID new_parent_id: 新父节点ID,None 表示移动到根级别 异常: ValueError: 节点不存在
src/domain/services/node_hierarchy_service.py:259
↓ 2 callersMethodmove_step_to_group
在分组间移动步骤 参数: step_id: 步骤ID new_group_id: 新分组ID
src/domain/agents/workflow_agent.py:3052
↓ 2 callersMethodobserve
记录直方图观察值 参数: name: 指标名称 value: 观察值 labels: 标签字典
src/domain/services/monitoring.py:122
↓ 2 callersMethodon_error
( self, *, workflow_id: str, input_data: Any, error: Exception,
src/application/services/workflow_execution_orchestrator.py:42
↓ 2 callersMethodon_error
( self, *, session_id: str, message: str, context: dict[str, Any] | No
src/application/services/conversation_turn_orchestrator.py:51
↓ 2 callersMethodon_workflow_complete
工作流完成 参数: workflow_id: 工作流ID status: 完成状态
src/domain/services/execution_monitor.py:573
↓ 2 callersMethodpack_with_mid_term_memory
使用中期记忆打包 Args: task_description: 任务描述 mid_term_memory: 中期记忆数据 **kwargs: 其他参数 Returns:
src/domain/services/context_protocol.py:412
↓ 2 callersMethodpack_with_short_term_memory
使用短期记忆打包 Args: task_description: 任务描述 short_term_memory: 短期记忆数据 **kwargs: 其他参数 Returns:
src/domain/services/context_protocol.py:378
↓ 2 callersMethodparse
解析原始结果为语义化结果 参数: raw_result: WorkflowAgent 返回的原始结果 返回: 语义化结果
src/domain/services/self_describing_node_validator.py:499
↓ 2 callersFunctionparseJsonOrNull
(text: string)
web/tests/e2e/fullreal/ux-wf-201-real-llm.spec.ts:435
↓ 2 callersFunctionparseSseJsonEvents
(text: string)
web/tests/e2e/deterministic/ux-wf-clean-001-data-cleaning-chat-create.spec.ts:14
↓ 2 callersMethodparse_output_schema
解析输出模式 参数: node_def: 节点定义 返回: 输出字段名 -> 类型信息的映射
src/domain/services/workflow_dependency_graph.py:124
↓ 2 callersMethodpause_experiment
暂停实验 参数: experiment_id: 实验ID 返回: 是否成功暂停
src/domain/services/experiment_orchestrator.py:183
↓ 2 callersMethodpause_scheduled_workflow
暂停任务并从调度器移除。 事务边界: - 若提供 session_factory,创建独立 session 并提交 - 否则依赖外部 UseCase 控制事务
src/domain/services/workflow_scheduler.py:211
↓ 2 callersMethodplan_workflow
规划工作流结构(Phase 8 新增) 参数: goal: 用户目标 context: 上下文信息 返回: 工作流规划字典,包含 nodes 和 edges
src/domain/agents/conversation_agent.py:115
↓ 2 callersMethodprepare_for_workflow
为工作流准备预算 检查可行性,必要时执行压缩。 参数: session: 会话上下文 workflow_nodes: 工作流节点列表 返回: 最终的可行性评估
src/domain/services/token_guardrail.py:258
↓ 2 callersFunctionprint_header
(title: str)
scripts/test_sse_stream.py:23
↓ 2 callersFunctionprint_separator
(title)
tests/manual/test_chat_api_advanced.py:11
↓ 2 callersFunctionprint_separator
(title)
tests/manual/test_edge_validation_fix.py:9
↓ 2 callersMethodpromote
提升节点生命周期 参数: target_lifecycle: 目标生命周期 异常: ValueError: 如果转换路径无效 转换规则: - TEMPORARY → PERSISTE
src/domain/services/node_registry.py:183
↓ 2 callersMethodpromote_to_global
升级为全局节点(阶段4新增) 将模板升级为系统级全局可用。 异常: ValueError: 如果当前不是模板状态
src/domain/services/node_registry.py:229
↓ 2 callersMethodpromote_to_template
升级为模板(阶段4新增) 将工作流节点升级为可复用的模板。 参数: template_name: 模板名称 异常: ValueError: 如果当前状态不允许升级
src/domain/services/node_registry.py:208
↓ 2 callersMethodpublish_summary
发布摘要事件 参数: summary: 摘要文本 evidence_refs: 证据引用 original_event_id: 原始事件ID level: 摘要级别
src/domain/services/summary_strategy.py:583
↓ 2 callersMethodquery_by_caller
按调用者查询
src/domain/services/tool_knowledge_store.py:341
← previousnext →1,901–2,000 of 13,770, ranked by callers