MCPcopy Create free account

hub / github.com/DSGWJQ/Feagent / functions

Functions13,770 in github.com/DSGWJQ/Feagent

↓ 4 callersMethodformat_progress_for_websocket
格式化进度事件为 WebSocket 消息 .. deprecated:: Step 1.5 WebSocket 已被移除,请使用 format_progress_for_sse() 替代。 此方法将在未来版本中删除。
src/domain/agents/conversation_agent.py:867
↓ 4 callersMethodfrom_dict
从字典创建
src/domain/services/knowledge_maintenance.py:504
↓ 4 callersMethodfrom_records
从记录列表创建摘要 参数: conversation_id: 会话 ID records: 调用记录列表 返回: ToolCallSummary 实例
src/domain/services/tool_knowledge_store.py:203
↓ 4 callersMethodgenerate_context_for_agent
为 ConversationAgent 生成上下文 参数: session_id: 会话 ID 返回: 上下文字典
src/domain/services/save_request_receipt.py:318
↓ 4 callersMethodgenerate_embedding
(self, text: str)
src/interfaces/api/dependencies/rag.py:235
↓ 4 callersMethodgenerate_error_recovery_decision
生成错误恢复决策(P0-2 Phase 2: 锁保护版本) 根据 pending_feedbacks 中的反馈信息生成恢复决策。 锁保护: - 在_state_lock下读取pending_feedbacks快照 - 使用stage
src/domain/agents/conversation_agent_recovery.py:257
↓ 4 callersMethodget_active_alerts
获取所有活跃告警
src/domain/services/management_modules.py:1108
↓ 4 callersMethodget_alerts_by_level
按级别获取警报
src/domain/services/prompt_stability_monitor.py:906
↓ 4 callersMethodget_all_contexts
获取所有上下文
src/domain/services/resource_lifecycle.py:211
↓ 4 callersMethodget_all_descendants
获取所有后代节点 返回: 后代列表(深度优先遍历)
src/domain/services/node_registry.py:363
↓ 4 callersMethodget_audit_log
获取审计日志 Args: result_id: 结果包 ID Returns: 审计日志列表
src/domain/services/result_memory_integration.py:725
↓ 4 callersMethodget_canvas_snapshot
获取画布快照 参数: workflow_id: 工作流ID 返回: 画布状态快照
src/infrastructure/websocket/canvas_sync.py:497
↓ 4 callersFunctionget_composite_memory_service
Return CompositeMemoryService instance (optionally bound to a given DB session).
src/interfaces/api/dependencies/memory.py:90
↓ 4 callersMethodget_context_async
模拟获取上下文
tests/unit/domain/agents/test_conversation_engine.py:29
↓ 4 callersMethodget_context_for_query
( self, query: str, workflow_id: str | None = None, max_tokens: int = 4000,
src/interfaces/api/dependencies/rag.py:263
↓ 4 callersMethodget_delay
计算第 N 次重试的延迟 参数: attempt: 重试次数(从 0 开始) 返回: 延迟秒数
src/domain/services/execution_result.py:173
↓ 4 callersMethodget_delay_with_jitter
计算带抖动的延迟时间 参数: attempt: 尝试次数 返回: 带抖动的延迟时间(秒)
src/domain/agents/error_handling.py:371
↓ 4 callersMethodget_depth
获取当前节点深度 根节点深度为 0,每层子节点深度 +1。 返回: 节点深度
src/domain/services/node_registry.py:324
↓ 4 callersMethodget_effective_error_strategy
获取节点的有效错误策略 合并逻辑:节点策略 > 全局默认策略 参数: node_name: 节点名称 返回: 合并后的有效策略,或 None(如果无策略)
src/domain/agents/workflow_plan.py:161
↓ 4 callersMethodget_execution_order
获取拓扑执行顺序 使用 Kahn 算法进行拓扑排序。 返回: 按拓扑顺序排列的节点名称列表 抛出: ValueError: 如果存在循环依赖
src/domain/agents/workflow_plan.py:247
↓ 4 callersMethodget_group_visible_steps
获取分组的可见步骤 参数: group_id: 分组ID 返回: 可见步骤列表
src/domain/agents/workflow_agent.py:2948
↓ 4 callersMethodget_hierarchy_tree
获取完整的层级树 参数: group_id: 根节点ID 返回: 层级树字典
src/domain/agents/workflow_agent.py:3028
↓ 4 callersMethodget_inherited_resources
获取继承的资源配置
src/domain/agents/node_definition.py:549
↓ 4 callersMethodget_logs
获取所有日志
src/domain/services/context_injection.py:246
↓ 4 callersMethodget_node
获取节点 参数: node_id: 节点ID 返回: 节点实例,不存在返回 None
src/domain/services/node_hierarchy_service.py:111
↓ 4 callersMethodget_node_strategy
获取节点的失败处理策略 如果节点没有特定策略,返回默认策略。 参数: node_id: 节点ID 返回: 失败处理策略
src/domain/services/workflow_failure_orchestrator.py:209
↓ 4 callersMethodget_or_raise
按名称获取工具,不存在则抛出异常 参数: name: 工具名称 返回: Tool 实例 抛出: ToolNotFoundError: 工具不存在时
src/domain/services/tool_engine.py:506
↓ 4 callersMethodget_progress_events_by_workflow
按工作流ID查询进度事件 参数: workflow_id: 工作流ID 返回: 该工作流的进度事件列表
src/domain/agents/conversation_agent.py:911
↓ 4 callersMethodget_save_audit_logs
获取保存审计日志(代理到 SaveRequestOrchestrator) 返回: 审计日志列表
src/domain/agents/coordinator_agent.py:1249
↓ 4 callersMethodget_save_request_queue
获取保存请求队列(按优先级排序)(代理到 SaveRequestOrchestrator) 返回: 排序后的 SaveRequest 列表
src/domain/agents/coordinator_agent.py:1152
↓ 4 callersMethodget_session_summary
获取会话摘要
src/domain/services/reliable_emitter.py:166
↓ 4 callersMethodget_short_term_memory
获取短期记忆 参数: session_id: 会话 ID 返回: 短期记忆记录列表
src/domain/services/save_request_receipt.py:260
↓ 4 callersMethodget_success_rate
获取成功率
src/domain/services/ab_testing_system.py:304
↓ 4 callersMethodget_switch_status
获取切换状态
src/domain/services/coordinator_runbook.py:492
↓ 4 callersMethodget_template
获取节点模板 模板包含所有字段的默认值。 参数: node_type: 节点类型 返回: 配置模板
src/domain/services/node_registry.py:729
↓ 4 callersMethodget_termination_events
获取终止事件列表
src/domain/services/supervision_strategy.py:827
↓ 4 callersMethodget_timeout_slots
获取超时的槽位 返回: 超时槽位列表
src/domain/services/tool_concurrency_controller.py:496
↓ 4 callersMethodget_token_usage_summary
获取 token 使用摘要 返回: 包含所有 token 使用信息的字典
src/domain/entities/session_context.py:373
↓ 4 callersMethodget_total_tokens
获取总 token 数 返回: 总 token 数,如果 token_usage 中没有 total_tokens 字段则返回 0
src/domain/services/short_term_buffer.py:70
↓ 4 callersMethodget_traces_in_period
获取时间段内的所有追踪 参数: start_time: 开始时间 end_time: 结束时间 返回: TaskTrace 列表
src/domain/services/log_analysis.py:421
↓ 4 callersMethodget_usage_by_session
按会话获取使用记录
src/domain/services/prompt_stability_monitor.py:281
↓ 4 callersMethodget_user_emails
获取GitHub用户邮箱列表 GitHub用户可能有多个邮箱,此方法返回所有邮箱, 包括主邮箱标识(primary=True)。 Args: access_token: GitHub访问令牌 Returns
src/infrastructure/auth/github_oauth_service.py:131
↓ 4 callersMethodget_version_history
获取节点版本历史 参数: node_id: 节点ID 返回: 版本历史列表(按版本号升序)
src/domain/services/node_version_manager.py:111
↓ 4 callersMethodget_with_timeout
带超时的获取消息 参数: timeout: 超时时间(秒) 返回: ConversationStep 或 None(如果超时)
src/domain/services/reliable_emitter.py:405
↓ 4 callersMethodget_workflow_container_executions
获取工作流的容器执行记录 参数: workflow_id: 工作流ID 返回: 执行记录列表,如果不存在返回空列表
src/domain/services/container_execution_monitor.py:218
↓ 4 callersMethodget_working_memory
获取工作记忆
src/domain/services/subagent_context_bridge.py:477
↓ 4 callersMethodincrement_usage
增加使用计数 业务规则: - 每次工具被使用时调用此方法 - 增加 usage_count - 更新 last_used_at 时间戳
src/domain/entities/tool.py:189
↓ 4 callersMethodinfer_from_code
从 Python 代码推断输出 Schema 通过解析代码中的 return 语句和类型提示来推断。 参数: code: Python 代码字符串 返回: 推断出的 JSON Schema,或 No
src/domain/services/schema_inference.py:125
↓ 4 callersMethodinstantiate
从模板创建节点实例 创建一个新的节点,继承模板的配置但是独立的实例。 参数: template_id: 模板ID workflow_id: 目标工作流ID(用于追踪) node_id: 可选,
src/domain/services/node_template_manager.py:168
↓ 4 callersMethodis_approaching_limit
判断是否接近上下文限制 参数: threshold: 阈值(默认 0.8,即 80%) 返回: 是否接近限制
src/domain/entities/session_context.py:353
↓ 4 callersMethodis_empty
检查是否为空
src/domain/services/knowledge_reference.py:183
↓ 4 callersMethodis_overloaded
判断是否过载
src/domain/services/management_modules.py:76
↓ 4 callersMethodis_success
判断是否成功
src/domain/services/result_memory_integration.py:123
↓ 4 callersMethodis_success
是否成功 返回: True 如果状态为 SUCCESS
src/domain/services/save_request_receipt.py:81
↓ 4 callersMethodis_timeout
检查是否超时
src/domain/services/tool_concurrency_controller.py:97
↓ 4 callersMethodlist_all
列出所有工具 返回: 所有工具列表
src/domain/services/tool_engine.py:567
↓ 4 callersMethodlist_names
列出所有工具名称
src/domain/services/tool_engine.py:243
↓ 4 callersMethodlist_scheduled_workflows
列出所有定时任务 返回: 定时任务列表
src/application/use_cases/schedule_workflow.py:137
↓ 4 callersMethodlog_injection
记录注入 参数: injection: 注入数据
src/domain/services/context_injection.py:187
↓ 4 callersMethodlog_intervention
记录干预 参数: info: 监督信息 result: 干预结果
src/domain/services/supervision_module.py:262
↓ 4 callersMethodlog_intervention
记录通用干预
src/domain/services/intervention/logger.py:79
↓ 4 callersMethodlog_memory_updated
记录记忆更新 Args: result_id: 结果包 ID tracking_id: 追踪 ID update_type: 更新类型 Returns:
src/domain/services/result_memory_integration.py:547
↓ 4 callersMethodlog_result_received
记录结果接收 Args: result_pkg: 结果包 Returns: 日志条目
src/domain/services/result_memory_integration.py:518
↓ 4 callersMethodlog_task_termination
记录任务终止
src/domain/services/intervention/logger.py:55
↓ 4 callersFunctionmake_knowledge_base
创建测试知识库(固定ID + 确定性时间戳)
tests/unit/infrastructure/knowledge_base/test_sqlite_knowledge_repository.py:59
↓ 4 callersMethodmark_node_skipped
标记节点跳过 参数: node_id: 节点ID reason: 跳过原因
src/domain/services/execution_monitor.py:314
↓ 4 callersMethodmark_processed
标记文档已处理
src/domain/knowledge_base/entities/document.py:84
↓ 4 callersMethodmerge
合并两个集合 参数: other: 另一个集合 deduplicate: 是否去重 返回: 合并后的新集合
src/domain/services/knowledge_reference.py:289
↓ 4 callersMethodon_event
注册事件处理器。
src/domain/ports/react_orchestrator.py:41
↓ 4 callersMethodparse
解析 YAML 内容 参数: yaml_content: YAML 字符串 返回: 统一定义 异常: ValueError: YAML 内容无效
src/domain/services/unified_definition.py:720
↓ 4 callersMethodpop_goal
从栈顶弹出目标 返回: 弹出的目标,如果栈为空返回None
src/domain/services/context_bridge.py:148
↓ 4 callersMethodprocess_result
处理保存结果 完整流程: 1. 记录到短期记忆 2. 记录到中期记忆 3. 严重违规写入知识库 4. 记录回执日志 参数: session_id: 会话 ID
src/domain/services/save_request_receipt.py:690
↓ 4 callersMethodprocess_save_request_with_receipt
处理保存请求并发送回执(代理到 SaveRequestOrchestrator) 完整流程: 1. 从队列取出请求 2. 执行审核 3. 如果通过,执行写操作 4. 发送结果回执 5. 更新 Conve
src/domain/agents/coordinator_agent.py:1635
↓ 4 callersMethodpublish
发布工具 业务规则: - 只有 TESTING 状态的工具才能发布 - 发布后状态变为 PUBLISHED - 记录发布时间 抛出: DomainError: 当工具不在 TESTING 状态
src/domain/entities/tool.py:156
↓ 4 callersMethodpublish_decision
发布决策事件 参数: decision: Decision 对象
src/domain/agents/conversation_agent_react_core.py:832
↓ 4 callersMethodquery
执行 SQL 查询 返回: 销售数据列表
tests/unit/domain/agents/test_sales_analysis_workflow_integration.py:33
↓ 4 callersMethodquery_by_tool_name
按工具名查询
src/domain/services/tool_knowledge_store.py:320
↓ 4 callersMethodquery_next_plan
查询后续计划 参数: workflow_id: 工作流ID 返回: 后续计划列表
src/domain/agents/coordinator_agent.py:3220
↓ 4 callersMethodquery_unresolved_issues
查询未解决问题 参数: workflow_id: 工作流ID 返回: 未解决问题列表
src/domain/agents/coordinator_agent.py:3209
↓ 4 callersMethodrecord_interaction
记录用户交互指标
src/domain/services/ab_testing_system.py:822
↓ 4 callersMethodregister_alert_callback
注册警报回调
src/domain/services/prompt_stability_monitor.py:895
↓ 4 callersMethodregister_prompt_version
注册新的提示词版本(代理到 Facade)
src/domain/agents/coordinator_agent.py:1955
↓ 4 callersMethodremove_child
移除子节点 参数: child_id: 子节点ID
src/domain/services/node_registry.py:291
↓ 4 callersMethodremove_child
移除子节点 参数: child_id: 要移除的子节点ID
src/domain/agents/node_definition.py:290
↓ 4 callersMethodreplace_node
替换节点 参数: workflow_definition: 工作流定义 request: 替换请求 返回: 修改结果
src/domain/services/intervention/workflow_modifier.py:28
↓ 4 callersMethodreport_failed
报告执行失败 参数: session_id: 会话ID workflow_id: 工作流ID error: 错误信息 failed_node: 失败节点ID
src/domain/agents/agent_channel.py:385
↓ 4 callersMethodreport_metrics
报告切换指标
src/domain/services/coordinator_runbook.py:473
↓ 4 callersMethodrequires_user_intervention
判断错误是否需要用户干预
src/domain/agents/error_handling.py:47
↓ 4 callersMethodresolve_inheritance
解析继承链 参数: node_id: 节点 ID visited: 已访问节点集合(用于循环检测) depth: 当前深度 返回: 解析后的完整 Schema
src/domain/services/parent_node_schema.py:421
↓ 4 callersMethodrestart_agent
重启 Agent 状态流转:ANY -> RESTARTING -> INITIALIZING -> READY -> RUNNING
src/domain/services/management_modules.py:648
↓ 4 callersMethodretrieve_by_query
通过 RAGService 检索
src/domain/services/knowledge_retriever_port.py:235
↓ 4 callersMethodretrieve_context
检索查询上下文 Args: query_context: 查询上下文字典,包含: - query: 查询文本 - workflow_id: 工作流ID (可选)
src/domain/ports/rag_service_port.py:28
↓ 4 callersMethodrollback
回滚注册 删除已写入的文件。 参数: node_name: 节点名称
src/domain/services/node_code_generator.py:911
↓ 4 callersMethodrollback
回滚版本 Args: module_name: 模块名称 target_version: 目标版本(不指定则回滚到上一个版本) reason: 回滚原因 Returns:
src/domain/services/prompt_version_manager.py:509
↓ 4 callersMethodrun
执行任务并返回结果文本
src/infrastructure/lc_adapters/task_runner.py:13
↓ 4 callersMethodsearch
在消息历史中进行语义搜索 Args: query: 搜索查询词 threshold: 相关性阈值(0-1) Returns: [(ChatMessage, relevance_score),
src/application/services/memory_service_adapter.py:92
↓ 4 callersMethodsearch_memories
搜索记忆 参数: keyword: 关键词 category: 可选的类别过滤 返回: 匹配的记忆列表
src/domain/services/knowledge_maintenance.py:613
↓ 4 callersMethodset_attribute
设置属性
src/domain/services/monitoring.py:224
↓ 4 callersMethodset_goal
设置当前目标 参数: goal: 目标描述
src/domain/services/decision_validator.py:118
↓ 4 callersMethodset_knowledge_recorder
设置知识库记录器 参数: recorder: KnowledgeRecorder 实例
src/domain/services/tool_engine.py:794
← previousnext →1,101–1,200 of 13,770, ranked by callers