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
↓ 13 callers
Method
evaluate_expression
评估表达式并返回原始值 用于非布尔场景(如Map操作),返回表达式的实际计算结果。 参数: expression: 表达式字符串 context: 主求值上下文 workflow_vars:
src/domain/services/expression_evaluator.py:189
↓ 13 callers
Method
execute
执行任务分类用例 参数: input_data: ClassifyTaskInput 输入参数 返回: ClassifyTaskOutput 分类结果 说明: V2阶段:优先
src/application/use_cases/classify_task.py:90
↓ 13 callers
Method
execute_node_with_progress
执行单个节点并发布进度事件 参数: node_id: 节点ID 返回: 执行结果
src/domain/agents/workflow_agent.py:2152
↓ 13 callers
Method
execute_subtasks_isolated
执行多个子任务,每个在隔离环境中 参数: subtasks: 子任务列表 executors: 执行器列表(与子任务一一对应) parallel: 是否并行执行 返回:
src/domain/agents/conversation_engine.py:728
↓ 13 callers
Method
find_by_condition
按条件查找策略 参数: condition: 触发条件 返回: 匹配的策略列表(按优先级排序)
src/domain/services/supervision/strategy_repo.py:74
↓ 13 callers
Function
format_sse_event
格式化 SSE 事件 参数: data: 事件数据 event_type: 可选的事件类型 返回: 格式化的 SSE 消息
src/interfaces/api/routes/coordinator_status.py:78
↓ 13 callers
Method
get_by_id
按 ID 获取定时工作流 参数: scheduled_workflow_id: 定时工作流 ID 返回: ScheduledWorkflow 领域实体 抛出: NotFoun
src/infrastructure/database/repositories/scheduled_workflow_repository.py:116
↓ 13 callers
Method
get_logs
获取所有日志
src/domain/services/save_request_audit.py:755
↓ 13 callers
Method
get_metrics
获取所有指标 返回: 指标字典
src/domain/services/monitoring.py:133
↓ 13 callers
Method
handle_message
处理消息 参数: message: 接收到的消息 返回: 处理结果(如果有)
src/domain/agents/agent_channel.py:466
↓ 13 callers
Method
has
检查是否已注册执行器 参数: node_type: 节点类型 返回: 是否已注册
src/domain/ports/node_executor.py:70
↓ 13 callers
Method
initiate_termination
发起任务终止 参数: task_id: 任务ID reason: 终止原因 severity: 严重性 graceful: 是否优雅终止 workflow_id:
src/domain/services/supervision/coordinator.py:30
↓ 13 callers
Method
list_all
列出所有工具
src/domain/services/tool_engine.py:238
↓ 13 callers
Method
log_note_approval
记录笔记批准 参数: note: 笔记实例 approved_by: 批准者ID 返回: 创建的审计日志
src/domain/services/knowledge_audit_log.py:193
↓ 13 callers
Method
record_success
记录成功解法 参数: task_type: 任务类型 task_description: 任务描述 workflow_id: 工作流 ID solution_steps: 解决步骤
src/domain/services/knowledge_maintenance.py:685
↓ 13 callers
Function
renderWithReactFlow
(ui: React.ReactElement)
web/src/features/workflows/components/nodes/__tests__/DatabaseNode.test.tsx:19
↓ 13 callers
Method
save
保存消息到内存
src/domain/services/reliable_emitter.py:134
↓ 13 callers
Method
save_document
保存文档
src/domain/knowledge_base/ports/knowledge_repository.py:37
↓ 13 callers
Method
set_node_output
设置节点预设输出
tests/integration/test_workflow_conditions_and_collections.py:35
↓ 13 callers
Method
span
创建span上下文管理器 参数: name: span名称 parent: 父span attributes: 初始属性
src/domain/services/monitoring.py:266
↓ 13 callers
Method
start_execution
标记执行开始
src/domain/services/subagent_context_bridge.py:497
↓ 13 callers
Method
update_actual_output
更新实际输出
src/domain/services/prompt_stability_monitor.py:295
↓ 12 callers
Method
_append_lifecycle_event
( self, *, run_id: str, event_type: str, workflow_id: str, pay
src/application/services/workflow_run_execution_entry.py:108
↓ 12 callers
Method
_ensure_tables
确保所有表存在
src/infrastructure/knowledge_base/sqlite_knowledge_repository_old.py:49
↓ 12 callers
Method
_get_connection
获取或创建数据库连接
src/infrastructure/knowledge_base/sqlite_knowledge_repository_old.py:35
↓ 12 callers
Method
_handle_save_request
处理 SaveRequest 事件(已由 SaveRequestOrchestrator 接管) 注意:此方法不应被直接调用,event_bus 会直接调用 orchestrator 的异步处理器。 保留此方法仅为向后兼容。 参数:
src/domain/agents/coordinator_agent.py:1123
↓ 12 callers
Function
_make_test_agent
Create WorkflowAgent with mock executor for testing
tests/unit/domain/agents/test_workflow_agent_dag_execution.py:30
↓ 12 callers
Method
add_dag_validation_rule
添加 DAG(有向无环图)验证规则 P1-1步骤4-5: 直接委托给 RuleEngineFacade 验证工作流的节点和边结构: - 节点 ID 唯一性 - 边引用的节点存在性 - 无循环依赖
src/domain/agents/coordinator_agent.py:2143
↓ 12 callers
Method
check_bias
检测偏见 参数: text: 输入文本 返回: 检测结果
src/domain/services/supervision/conversation.py:139
↓ 12 callers
Method
check_harmful_content
检测有害内容 参数: text: 输入文本 返回: 检测结果
src/domain/services/supervision/conversation.py:163
↓ 12 callers
Method
check_thresholds
检查阈值并生成告警 参数: workflow_id: 工作流ID 返回: 告警列表
src/domain/services/supervision/efficiency.py:133
↓ 12 callers
Method
create_snapshot
创建工作流快照 Args: workflow_id: 工作流 ID state: 当前状态 reason: 创建原因 Returns: 快照 ID
src/domain/services/dynamic_node_monitoring.py:213
↓ 12 callers
Function
create_tool_yaml
创建工具 YAML 配置
tests/integration/test_tool_operations.py:29
↓ 12 callers
Function
create_workflow_agent_for_test
创建测试用的 WorkflowAgent
tests/integration/test_hierarchy_e2e.py:16
↓ 12 callers
Method
create_workflow_plan
Create workflow plan from goal (mixin method, for internal calls).
src/domain/agents/conversation_agent_protocols.py:88
↓ 12 callers
Method
decompose
将全局目标分解为子目标 参数: global_goal: 要分解的全局目标 返回: 子目标列表 异常: DecompositionError: 分解失败时抛出
src/domain/services/goal_decomposer.py:127
↓ 12 callers
Method
emit_step
发送步骤 参数: step: 会话步骤 异常: EmitterClosedError: 如果 emitter 已关闭
src/domain/services/conversation_flow_emitter.py:214
↓ 12 callers
Method
for_conversation
为对话 Agent 创建上下文 参数: agent_id: Agent ID conversation_id: 会话 ID user_message: 用户消息 **kwargs: 其他
src/domain/services/tool_executor.py:66
↓ 12 callers
Method
get_container_executor
获取容器执行器(懒加载) 返回: 容器执行器实例
src/domain/agents/workflow_agent.py:447
↓ 12 callers
Method
get_experiment
获取实验配置
src/domain/services/ab_testing_system.py:523
↓ 12 callers
Method
get_node_output
获取节点输出 参数: node_id: 节点ID key: 可选,获取特定的输出key 返回: 如果指定key,返回该key的值,否则返回整个输出字典
src/domain/services/context_bridge.py:207
↓ 12 callers
Method
infer_from_data
从样本数据推断 JSON Schema 参数: data: 样本数据 返回: 推断出的 JSON Schema
src/domain/services/schema_inference.py:39
↓ 12 callers
Method
initialize
初始化提示词版本管理器 参数: config: 版本配置字典(覆盖构造函数中的配置)
src/domain/services/prompt_version_facade.py:71
↓ 12 callers
Method
inject_context
注入上下文 参数: target_agent: 目标 Agent context_type: 上下文类型 (warning/blocking) message: 消息 severity:
src/domain/services/supervision_strategy.py:649
↓ 12 callers
Method
load_from_directory
从目录加载所有工具配置 只加载 .yaml 和 .yml 扩展名的文件,跳过无效配置 参数: dir_path: 目录路径 返回: 成功加载的 ToolConfigSchema 列表
src/domain/services/tool_config_loader.py:201
↓ 12 callers
Function
make_node
创建测试节点(固定ID以便验证)
tests/unit/infrastructure/database/repositories/test_workflow_repository.py:89
↓ 12 callers
Method
push_goal
将目标压入栈 参数: goal: 目标实体
src/domain/services/context_bridge.py:140
↓ 12 callers
Method
query
查询日志
src/domain/services/logging_metrics.py:295
↓ 12 callers
Method
register
注册策略 参数: name: 策略名称 trigger_conditions: 触发条件列表 action: 动作 (warn/block/terminate/log) priority
src/domain/services/supervision/strategy_repo.py:20
↓ 12 callers
Method
register_message
注册待确认消息
src/infrastructure/websocket/canvas_sync.py:82
↓ 12 callers
Function
renderWithProviders
(component: React.ReactElement)
web/src/features/scheduler/pages/__tests__/ScheduledWorkflowsPage.test.tsx:22
↓ 12 callers
Method
request
执行HTTP请求. 参数: method: HTTP方法(GET/POST/PUT/DELETE等), 大小写不敏感 url: 请求URL(完整URL或相对路径) headers: 请求头(可选)
src/domain/ports/http_client_port.py:23
↓ 12 callers
Method
rollback
(self)
tests/integration/api/test_sse_disconnect_reconnect.py:420
↓ 12 callers
Method
set_node_failure_strategy
为特定节点设置失败处理策略 参数: node_id: 节点ID strategy: 失败处理策略
src/domain/agents/coordinator_agent.py:2416
↓ 12 callers
Method
supervise_context
监督上下文(委托到 SupervisionFacade) 分析上下文数据,判断是否需要干预。 参数: context: 上下文数据 返回: 触发的 SupervisionInfo 列表
src/domain/agents/coordinator_agent.py:1404
↓ 12 callers
Method
to_text
转换为文本格式(用于 LLM 上下文) 返回: 格式化的文本摘要
src/domain/services/structured_dialogue_summary.py:240
↓ 12 callers
Method
validate_input_alignment
验证输入与参数定义对齐 检查: 1. 必需参数是否提供 2. 参数类型是否匹配 参数: node_def: 节点定义 inputs: 实际输入 返回:
src/domain/services/self_describing_node_validator.py:273
↓ 12 callers
Method
wait_for_subagent
等待子Agent执行 暂停当前执行,保存上下文,等待子Agent结果。 参数: subagent_id: 子Agent ID task_id: 任务ID context: 当前执行上下文(用于
src/domain/agents/conversation_agent_state.py:380
↓ 11 callers
Method
_extract_control_flow_by_rules
基于规则从文本中提取控制流 使用简单的关键词匹配识别决策点和循环,支持中英文输入。 这是一个快速回退策略,当 LLM 分析失败时使用。 参数: text: 用户输入的目标描述 返回:
src/domain/agents/conversation_agent_control_flow.py:50
↓ 11 callers
Method
_log
内部日志记录
src/domain/services/experiment_orchestrator.py:58
↓ 11 callers
Method
_stage_decision_record
暂存决策记录(P0-2 Phase 2) 用于批量提交,减少锁获取次数。 参数: record: 决策记录字典
src/domain/agents/conversation_agent.py:380
↓ 11 callers
Function
_top_dir
(root: Path, path: Path)
scripts/organize_project_files.py:68
↓ 11 callers
Method
analyze
分析任务需求与现有节点的缺口 参数: task_description: 任务描述 existing_nodes: 现有节点列表 coordinator_context: 协调者上下文(可选)
src/domain/services/node_code_generator.py:233
↓ 11 callers
Method
check_stability
检查稳定性
src/domain/services/prompt_stability_monitor.py:933
↓ 11 callers
Method
count_by_workflow_id
统计指定 Workflow 下的 Run 数量 Args: workflow_id: Workflow ID Returns: Run 数量
src/domain/ports/run_repository.py:125
↓ 11 callers
Method
create_chart_generation_node
创建图表生成节点定义(PYTHON 类型) 用于生成可视化图表的场景(使用 matplotlib)。 参数: name: 节点名称 chart_type: 图表类型("line", "bar", "pie")
src/domain/agents/node_definition.py:1626
↓ 11 callers
Method
create_data_analysis_node
创建数据分析节点定义(LLM 类型) 用于 LLM 分析数据并生成报告的场景。 参数: name: 节点名称 analysis_type: 分析类型("summary", "insight", "recommenda
src/domain/agents/node_definition.py:1773
↓ 11 callers
Method
execute_plan_from_dict
从字典格式执行工作流规划 参数: plan_dict: 规划字典 返回: 执行结果
src/domain/agents/workflow_agent.py:2752
↓ 11 callers
Function
extract_main_subgraph
提取 start->end 主连通子图(纯函数) 算法:BFS 正向遍历(从 start)+ BFS 反向遍历(从 end),取交集 Fail-Closed 策略: - 缺 start 或 end → 返回空集 - start/end 无路径 → 返回空集
src/domain/services/workflow_chat_service_enhanced.py:33
↓ 11 callers
Method
fetch
检索相关笔记 参数: query: 查询字符串 notes: 笔记列表 limit_per_type: 每种类型的最大数量(可选) max_total: 最大总数(可选,默认 6)
src/domain/services/knowledge_vault_retriever.py:112
↓ 11 callers
Method
generate
生成任务提示词 Args: task_id: 任务 ID task_type: 任务类型 objective: 任务目标 context: 上下文信息
src/domain/services/scenario_prompt_system.py:511
↓ 11 callers
Method
get_context_for_reasoning
Get reasoning context for LLM calls. Returns: dict containing conversation history, goals, decision history, etc.
src/domain/agents/conversation_agent_protocols.py:68
↓ 11 callers
Method
get_decision_statistics
获取决策统计 返回: 统计字典 注意: 线程安全 - 使用锁保护 P1-1 Step 3: 优先从 statistics_ref 读取(如果提供)
src/domain/services/rule_engine_facade.py:382
↓ 11 callers
Method
get_module
获取模块 参数: name: 模块名称 version: 版本号,如果为 None 则返回最新版本 返回: 模块实例,如果不存在则返回 None
src/domain/services/prompt_template_system.py:292
↓ 11 callers
Method
get_statistics
获取决策统计 (DEPRECATED - use _rule_engine_facade.get_decision_statistics) 返回: 统计字典
src/domain/agents/coordinator_agent.py:2164
↓ 11 callers
Method
has
检查定义是否存在
src/domain/services/unified_definition.py:274
↓ 11 callers
Method
health_check
健康检查
src/domain/services/management_modules.py:742
↓ 11 callers
Function
import_from_node_registry
从 NodeRegistry 导入定义到统一注册中心 参数: node_registry: NodeRegistry 实例 unified_registry: 统一注册中心
src/domain/services/unified_definition.py:668
↓ 11 callers
Method
inject_context
向会话注入上下文(委托到 ContextInjectionManager) 参数: session_id: 会话 ID injection_type: 注入类型(InjectionType 枚举) conten
src/domain/agents/coordinator_agent.py:1270
↓ 11 callers
Function
is_execution_event_type
(event_type: str)
src/application/services/workflow_event_contract.py:49
↓ 11 callers
Method
is_retryable
(self)
tests/unit/domain/services/test_workflow_failure_orchestrator.py:45
↓ 11 callers
Method
log_note_creation
记录笔记创建 参数: note: 笔记实例 返回: 创建的审计日志
src/domain/services/knowledge_audit_log.py:158
↓ 11 callers
Function
make_document
创建测试文档(固定ID + 确定性时间戳)
tests/unit/infrastructure/knowledge_base/test_sqlite_knowledge_repository.py:82
↓ 11 callers
Method
pause
暂停实验
src/domain/services/ab_testing_system.py:123
↓ 11 callers
Method
put
更新缓存 Args: workflow_id: 工作流 ID messages: 要缓存的消息列表 Note: - 自动更新 last_access_time
src/domain/ports/memory_cache.py:53
↓ 11 callers
Method
record_call
记录 API 调用
src/domain/services/logging_metrics.py:733
↓ 11 callers
Method
record_execution_failure
记录失败的执行 参数: error_message: 错误信息 自动禁用:当连续失败次数达到或超过 max_retries 时自动禁用
src/domain/entities/scheduled_workflow.py:109
↓ 11 callers
Method
record_sandbox_execution
记录沙箱执行
src/domain/services/dynamic_node_monitoring.py:84
↓ 11 callers
Method
register
注册事件处理器
src/domain/services/memory_compression_handler.py:193
↓ 11 callers
Method
register_subagent_type
注册子Agent类型(代理到 SubAgentOrchestrator)
src/domain/agents/coordinator_agent.py:2690
↓ 11 callers
Function
run_sync
Run an awaitable from synchronous code. Defensive behavior: - If no loop is running in the current thread, use `asyncio.run`. - If a loop
src/domain/services/asyncio_compat.py:16
↓ 11 callers
Method
sync_execution_status
同步执行状态 参数: workflow_id: 工作流ID node_id: 节点ID status: 状态 outputs: 输出结果 error: 错误信息
src/infrastructure/websocket/canvas_sync.py:801
↓ 11 callers
Method
trigger
触发钩子 参数: hook_point: 钩子点名称 context: 上下文数据(可被处理器修改) 异常: HookAbort: 处理器中止执行
src/domain/services/extension_api.py:490
↓ 11 callers
Method
trigger_alert
触发警报
src/domain/services/prompt_stability_monitor.py:872
↓ 11 callers
Method
unpack
解包上下文 Args: package: 上下文包 Returns: UnpackedContext 实例
src/domain/services/context_protocol.py:483
↓ 11 callers
Method
validate_sandbox_permission
验证沙箱许可 检查: 1. 代码节点是否启用沙箱(如果 require_sandbox=True) 2. 是否包含危险导入 参数: node_def: 节点定义 require_san
src/domain/services/self_describing_node_validator.py:359
↓ 10 callers
Method
_calculate_diff
计算两个状态之间的差异 参数: old_state: 旧状态 {"nodes": [...], "edges": [...]} new_state: 新状态 {"nodes": [...], "edges": [...]}
src/infrastructure/websocket/canvas_sync.py:508
↓ 10 callers
Method
_create_mock_task_runner
创建 Mock TaskRunner
tests/unit/domain/services/test_task_executor.py:30
↓ 10 callers
Method
_next_sequence
Get next sequence number (1-based, monotonically increasing).
src/application/services/planning_event_mapper.py:70
↓ 10 callers
Function
_node
(node_type: NodeType, *, config: dict | None = None)
tests/unit/domain/services/test_workflow_save_validator.py:20
← previous
next →
301–400 of 13,770, ranked by callers