Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DSGWJQ/Feagent
/ functions
Functions
13,770 in github.com/DSGWJQ/Feagent
⨍
Functions
13,770
◇
Types & classes
3,506
↳
Endpoints
127
↓ 2 callers
Method
check_workflow_efficiency
检查工作流效率 评估工作流的资源使用是否超过阈值。 参数: workflow_id: 工作流 ID 返回: 告警列表,每个告警包含 type, message, severity
src/domain/agents/coordinator_agent.py:3517
↓ 2 callers
Method
classify_with_context
分类异常并返回上下文信息 参数: error: 异常实例 返回: 包含分类和上下文的结果
src/domain/agents/error_handling.py:153
↓ 2 callers
Function
cleanup
(tokens)
tools/verify-seed-api.mjs:64
↓ 2 callers
Function
cleanup
执行清理操作
scripts/cleanup.py:11
↓ 2 callers
Method
clear
清空所有数据
src/domain/services/reliable_emitter.py:197
↓ 2 callers
Method
clear
清空日志
src/domain/services/save_request_audit.py:767
↓ 2 callers
Method
clear_all_alerts
清除所有告警
src/domain/services/dynamic_node_monitoring.py:717
↓ 2 callers
Method
clear_cached_knowledge
清除缓存的知识引用(委托) 参数: workflow_id: 工作流ID
src/domain/agents/coordinator_agent.py:2900
↓ 2 callers
Method
clear_conversation_history
清空对话历史
src/application/use_cases/enhanced_chat_workflow.py:87
↓ 2 callers
Method
clear_history
清空执行历史
src/domain/services/tool_executor.py:534
↓ 2 callers
Function
clear_scheduler_service
Reset scheduler service (used on shutdown/tests).
src/interfaces/api/dependencies/scheduler.py:53
↓ 2 callers
Method
clear_snapshots
清除指定工作流的所有快照
src/domain/services/dynamic_node_monitoring.py:310
↓ 2 callers
Method
clear_workflow_state
清理单个工作流状态 参数: workflow_id: 工作流ID 返回: 是否成功删除
src/domain/agents/workflow_state_monitor.py:447
↓ 2 callers
Method
collapse_node
折叠节点 参数: node_id: 节点ID
src/domain/services/node_hierarchy_service.py:319
↓ 2 callers
Method
collapse_node_async
异步版本:折叠节点(发布事件) 参数: node_id: 节点ID
src/domain/services/node_hierarchy_service.py:329
↓ 2 callers
Method
complete
完成请求并销毁上下文
src/domain/services/resource_lifecycle.py:326
↓ 2 callers
Method
complete_experiment
完成实验 参数: experiment_id: 实验ID 返回: 是否成功完成
src/domain/services/experiment_orchestrator.py:210
↓ 2 callers
Method
compose
组合通用模板与场景模板 Args: generic_template: 通用模板字符串 scenario: 场景提示词 task_content: 任务内容 Returns:
src/domain/services/scenario_prompt_system.py:599
↓ 2 callers
Method
compress_subtask_results
压缩子任务结果 参数: workflow_id: 工作流ID session_id: 会话ID subtask_results: 子任务结果列表 返回: PowerCo
src/domain/services/power_compressor.py:357
↓ 2 callers
Method
compress_with_report
压缩并返回报告 Args: package: 原始上下文包 Returns: (压缩后的包, 压缩报告)
src/domain/services/context_protocol.py:679
↓ 2 callers
Method
configure_save_auditor
配置保存请求审核器 参数: path_whitelist: 路径白名单(如果提供,只允许这些路径) path_blacklist: 路径黑名单 max_content_size: 最大内容大小(字节)
src/domain/services/save_request_orchestrator.py:243
↓ 2 callers
Method
connect_nodes_batch
批量连接节点 参数: edge_definitions: 边定义列表 name_to_id: 节点名称到ID的映射 返回: 创建的边列表
src/domain/agents/workflow_agent.py:2682
↓ 2 callers
Method
convert_blocker_to_conclusion
将 blocker 转为 conclusion 参数: blocker: blocker 笔记 返回: 新的 conclusion 笔记
src/domain/services/knowledge_coordinator_inspector.py:218
↓ 2 callers
Function
convert_node_schema_to_unified
从 NodeRegistry Schema 转换为统一定义 参数: node_type: 节点类型枚举 schema: 节点 Schema description: 描述 返回: 统一定义
src/domain/services/unified_definition.py:527
↓ 2 callers
Method
count_messages
计算消息列表的 token 数 参数: messages: 消息列表,每个消息包含 role 和 content 返回: token 数
src/infrastructure/lc_adapters/token_counter.py:64
↓ 2 callers
Method
create
创建注入记录 参数: session_id: 会话ID query: 查询字符串 injected_notes: 注入的笔记列表 返回: 注入记录实例
src/domain/services/knowledge_coordinator_integration.py:55
↓ 2 callers
Method
create_container_node
创建容器执行节点定义 (Phase 4) 参数: name: 节点名称 code: Python 代码 image: Docker 镜像 timeout: 超时时间(秒)
src/domain/agents/node_definition.py:1366
↓ 2 callers
Function
create_context_package
创建上下文包的便捷函数 Args: task_description: 任务描述 prompt_version: 提示词版本 **kwargs: 其他参数 Returns: ContextPackage 实
src/domain/services/context_protocol.py:722
↓ 2 callers
Function
create_coordinator_agent
(*, event_bus: EventBus)
src/application/services/coordinator_agent_factory.py:9
↓ 2 callers
Method
create_initial_event
Create initial thinking event before UseCase starts. This provides a public API for creating the first event, avoiding router layer n
src/application/services/planning_event_mapper.py:75
↓ 2 callers
Method
create_instance
创建Agent实例 参数: agent_type: Agent类型 agent_id: 实例ID(可选) config: 配置字典(可选) **kwargs: 其他构造参数
src/domain/services/sub_agent_scheduler.py:377
↓ 2 callers
Method
create_instance
从模板创建实例 参数: new_id: 新实例的ID workflow_id: 所属工作流ID 返回: 新的GenericNode实例
src/domain/services/generic_node.py:300
↓ 2 callers
Method
create_qwen
创建通义千问提供商(预定义配置) 参数: api_key: 通义千问 API 密钥 返回: 配置好的 Qwen LLMProvider
src/domain/entities/llm_provider.py:138
↓ 2 callers
Function
create_test_session_context
创建测试用的 SessionContext
tests/integration/test_subagent_e2e.py:36
↓ 2 callers
Function
create_test_session_context
创建测试用的 SessionContext
tests/unit/domain/agents/test_spawn_subagent.py:22
↓ 2 callers
Function
create_tool_result_message
创建工具结果消息
src/domain/services/stream_message_formatter.py:300
↓ 2 callers
Method
create_with_idempotency
创建幂等 Run(由 idempotency_key 派生稳定 run_id)。 约束: - 不引入额外 DB 字段(KISS),通过稳定主键实现幂等。 - run_id 取 sha256 前 16 hex,降低碰撞概率。
src/domain/entities/run.py:125
↓ 2 callers
Function
db_session_maker
创建同步会话工厂 为什么需要 session_maker? - 每个测试需要独立的会话 - 避免会话之间的数据污染
tests/unit/infrastructure/database/test_task_repository.py:74
↓ 2 callers
Method
debug
调试日志
src/domain/services/subagent_context_bridge.py:210
↓ 2 callers
Method
delete
删除定时工作流 参数: scheduled_workflow_id: 定时工作流 ID 抛出: NotFoundError: 定时工作流不存在
src/infrastructure/database/repositories/scheduled_workflow_repository.py:179
↓ 2 callers
Method
delete
删除知识条目 参数: entry_id: 条目 ID 返回: 是否删除成功
src/domain/services/knowledge_manager.py:219
↓ 2 callers
Method
delete_by_workflow_id
清空工作流的对话历史 业务场景: - 用户点击"清空历史记录"按钮 - 删除该工作流的所有消息 实现: - 物理删除(不是软删除) - 幂等操作:多次删除不报错
src/infrastructure/database/repositories/chat_message_repository.py:142
↓ 2 callers
Method
delete_chunks_by_document_id
删除指定文档的所有分块
src/domain/knowledge_base/ports/knowledge_repository.py:98
↓ 2 callers
Method
delete_document
删除文档 参数: document_id: 文档ID 返回: 是否成功删除
src/application/services/rag_service.py:227
↓ 2 callers
Method
delete_node
删除节点 参数: node_id: 节点ID
src/domain/services/bidirectional_sync.py:150
↓ 2 callers
Method
delete_rule
删除规则 参数: rule_id: 规则 ID 返回: 是否删除成功
src/domain/services/dynamic_alert_rule_manager.py:194
↓ 2 callers
Method
demote_to_user
降级为普通用户 业务方法:只有管理员可以降级其他管理员
src/domain/entities/user.py:178
↓ 2 callers
Method
deprecate
废弃工具 业务规则: - 将状态设置为 DEPRECATED - 记录废弃原因(保存在 implementation_config 中) - 更新时间戳 参数: reason: 废弃原因(字符
src/domain/entities/tool.py:174
↓ 2 callers
Method
dequeue
从队列中取出最高优先级的请求 返回: SaveRequest 或 None(如果队列为空)
src/domain/services/save_request_channel.py:441
↓ 2 callers
Method
dequeue_save_request
从队列中取出最高优先级的保存请求 返回: SaveRequest 或 None
src/domain/services/save_request_orchestrator.py:233
↓ 2 callers
Method
destroy_context
销毁运行上下文
src/domain/services/resource_lifecycle.py:204
↓ 2 callers
Method
detect_all_drifts
检测所有类型的漂移
src/domain/services/prompt_stability_monitor.py:491
↓ 2 callers
Method
detect_module_drift
检测模块组合漂移
src/domain/services/prompt_stability_monitor.py:368
↓ 2 callers
Method
detect_output_format_drift
检测输出格式漂移
src/domain/services/prompt_stability_monitor.py:413
↓ 2 callers
Method
disable_rule
禁用规则 参数: rule_id: 规则 ID 返回: 是否成功
src/domain/services/dynamic_alert_rule_manager.py:226
↓ 2 callers
Method
disconnect
()
web/src/test/setup.ts:51
↓ 2 callers
Method
emit_error
发送错误步骤 参数: error_message: 错误消息 error_code: 错误代码 recoverable: 是否可恢复 **metadata: 额外元数据
src/domain/services/conversation_flow_emitter.py:369
↓ 2 callers
Method
emit_reasoning
发送推理步骤
src/domain/services/reliable_emitter.py:451
↓ 2 callers
Method
emit_system_notice
发送系统通知 (Step 2: 短期记忆缓冲与饱和事件) 用于发送系统级别的通知消息,例如上下文压缩提示。 参数: content: 通知内容 **metadata: 额外元数据
src/domain/services/conversation_flow_emitter.py:395
↓ 2 callers
Method
emit_tool_result
发送工具执行结果 参数: tool_id: 工具调用 ID result: 执行结果 success: 是否成功 error: 错误信息(失败时) **metad
src/domain/services/conversation_flow_emitter.py:320
↓ 2 callers
Method
encode
(self, text: str)
tests/unit/infrastructure/knowledge_base/test_chroma_retriever_service.py:43
↓ 2 callers
Method
error
错误日志
src/domain/services/subagent_context_bridge.py:222
↓ 2 callers
Method
estimate_workflow_tokens
估算工作流 token 需求 参数: workflow_nodes: 工作流节点列表 返回: 估算的总 token 数
src/domain/services/token_guardrail.py:190
↓ 2 callers
Method
evaluate
评估路径是否在黑名单中
src/domain/services/save_request_audit.py:235
↓ 2 callers
Method
evaluate
评估路径是否在白名单中
src/domain/services/save_request_audit.py:272
↓ 2 callers
Method
evaluate
评估内容大小是否在限制内
src/domain/services/save_request_audit.py:309
↓ 2 callers
Method
evaluate_by_category
按类别评估规则 只检查指定类别的规则。 参数: context: 评估上下文 category: 规则类别 返回: 违规列表
src/domain/services/enhanced_rule_repository.py:347
↓ 2 callers
Function
event_generator
()
src/interfaces/api/routes/coordinator_status.py:229
↓ 2 callers
Method
execute
执行 Task 参数: task: 要执行的 Task context: 执行上下文(包含前置任务的结果) 返回: Task 执行结果 异常: 可能抛
src/domain/services/execution_engine.py:37
↓ 2 callers
Method
execute
( self, task_data: dict[str, Any], context: SubTaskExecutionContext )
tests/integration/test_subtask_isolation_e2e.py:90
↓ 2 callers
Method
execute
(self, node, inputs, context)
tests/integration/api/workflows/test_execute_stream_validation_gate.py:67
↓ 2 callers
Method
execute
执行 Python 代码 参数: code: Python 代码 input_data: 输入数据 返回: 执行结果
tests/unit/domain/agents/test_sales_analysis_workflow_integration.py:56
↓ 2 callers
Method
execute_async
( self, code: str, config: Any = None, inputs: dict[str, Any]
src/domain/agents/workflow_agent.py:93
↓ 2 callers
Method
execute_hierarchical_node
执行层次化节点(支持父节点策略传播和统一错误处理) 按顺序执行节点及其所有子节点,并聚合结果。 支持父节点策略继承、统一错误处理、容器化执行。 参数: node_id: 节点ID 返回:
src/domain/agents/workflow_agent.py:3342
↓ 2 callers
Method
execute_node
(node_id: str)
tests/unit/domain/services/test_performance_optimizer.py:575
↓ 2 callers
Method
execute_streaming
( self, *, workflow_id: str, input_data: Any = None )
src/infrastructure/lc_adapters/workflow/langgraph_workflow_executor_adapter.py:54
↓ 2 callers
Method
execute_streaming
( self, *, workflow_id: str, input_data: Any = None )
src/application/services/workflow_execution_facade.py:79
↓ 2 callers
Method
execute_workflow
执行工作流 参数: workflow_def: 工作流定义 返回: 执行结果
src/domain/services/self_describing_node.py:800
↓ 2 callers
Method
exists_by_email
检查邮箱是否已存在 Args: email: 用户邮箱 Returns: bool: 如果存在返回True,否则返回False
src/domain/ports/user_repository.py:118
↓ 2 callers
Method
exists_by_github_id
检查GitHub ID是否已存在 Args: github_id: GitHub用户ID Returns: bool: 如果存在返回True,否则返回False
src/domain/ports/user_repository.py:107
↓ 2 callers
Method
expand_all
展开节点及其所有后代 参数: node_id: 节点ID
src/domain/services/node_hierarchy_service.py:382
↓ 2 callers
Method
expand_node
展开节点 参数: node_id: 节点ID
src/domain/services/node_hierarchy_service.py:344
↓ 2 callers
Method
expand_node_async
异步版本:展开节点(发布事件) 参数: node_id: 节点ID
src/domain/services/node_hierarchy_service.py:354
↓ 2 callers
Method
export_json
导出为 JSON 字符串 参数: indent: 缩进空格数 返回: JSON 字符串
src/domain/services/unified_log_collector.py:214
↓ 2 callers
Method
export_logs
导出日志
src/domain/services/resource_lifecycle.py:571
↓ 2 callers
Method
export_prometheus
导出 Prometheus 格式指标
src/domain/services/dynamic_node_monitoring.py:160
↓ 2 callers
Method
export_to_dict
导出为字典 返回: 包含所有知识的字典
src/domain/services/knowledge_maintenance.py:998
↓ 2 callers
Method
export_to_json
导出为 JSON 参数: report: 报告字典 返回: JSON 字符串
src/domain/services/log_analysis.py:892
↓ 2 callers
Method
export_to_markdown
导出为 Markdown 参数: report: 报告字典 返回: Markdown 字符串
src/domain/services/log_analysis.py:903
↓ 2 callers
Method
extract_for_memory
提取用于记忆存储的数据 Args: package: 上下文包 Returns: 可存储的记忆数据
src/domain/services/context_protocol.py:534
↓ 2 callers
Method
extract_unresolved_issues
提取未解决问题 参数: execution_data: 执行数据 返回: UnresolvedIssue 列表
src/domain/services/power_compressor.py:407
↓ 2 callers
Method
filter_by_level
按级别过滤日志 参数: level: 日志级别 返回: 匹配的日志列表
src/domain/services/unified_log_collector.py:129
↓ 2 callers
Method
filter_by_time_range
按时间范围过滤日志 参数: since: 开始时间(可选) until: 结束时间(可选) 返回: 匹配的日志列表
src/domain/services/unified_log_collector.py:152
↓ 2 callers
Function
findBoundary
(input: string)
web/src/features/workflows/api/workflowsApi.ts:289
↓ 2 callers
Method
find_active
(self)
src/domain/ports/scheduler_repository.py:20
↓ 2 callers
Method
find_all
查找所有 Workflow 实现策略: - 使用 select() + scalars().all() - 按 created_at 倒序排列 - 级联加载:lazy="selectin" 自动加载 Node 和 Edge
src/infrastructure/database/repositories/workflow_repository.py:267
↓ 2 callers
Method
find_by_email
根据邮箱查找用户 Args: email: 用户邮箱 Returns: Optional[User]: 用户实体,如果不存在则返回None
src/domain/ports/user_repository.py:96
↓ 2 callers
Method
find_by_name
根据名称查找 LLMProvider 参数: name: 提供商名称(openai, deepseek, qwen等) 返回: LLMProvider 实体,如果不存在返回 None
src/domain/ports/llm_provider_repository.py:92
↓ 2 callers
Method
find_documents_by_workflow_id
查找指定工作流的所有文档
src/domain/knowledge_base/ports/knowledge_repository.py:47
↓ 2 callers
Method
find_knowledge_base_by_id
根据ID查找��识库
src/domain/knowledge_base/ports/knowledge_repository.py:27
← previous
next →
1,701–1,800 of 13,770, ranked by callers