MCPcopy Create free account

hub / github.com/DSGWJQ/Feagent / functions

Functions13,770 in github.com/DSGWJQ/Feagent

↓ 1 callersMethodcreate
创建 Task(工厂方法) 为什么使用工厂方法而不是直接 __init__? 1. 封装创建逻辑:自动生成 ID、设置默认值 2. 业务语义清晰:create() 比 __init__() 更符合业务语言 3. 验证逻辑集中:在一个地
src/domain/entities/task.py:131
↓ 1 callersFunctioncreateDefaultHookReturn
()
web/src/shared/components/__tests__/WorkflowAIChat.test.tsx:17
↓ 1 callersFunctioncreateTestQueryClient
()
web/src/features/agents/components/__tests__/CreateAgentForm.test.tsx:20
↓ 1 callersFunctioncreateTestQueryClient
()
web/src/features/agents/pages/__tests__/CreateAgentPage.test.tsx:21
↓ 1 callersFunctioncreateTestQueryClient
()
web/src/test/utils.tsx:24
↓ 1 callersFunctioncreateTestQueryClient
()
web/src/shared/hooks/__tests__/useAgents.test.tsx:41
↓ 1 callersFunctioncreate_conversation_agent
( *, event_bus: EventBus, model_metadata_port: ModelMetadataPort, coordinator: object | None =
src/application/services/conversation_agent_factory.py:17
↓ 1 callersMethodcreate_database_node
创建 Database 节点定义 参数: name: 节点名称 query: SQL 查询 database: 数据库名称 description: 节点描述 *
src/domain/agents/node_definition.py:1334
↓ 1 callersMethodcreate_default
创建默认规则引擎 包含协调者Agent常用的预设规则。 返回: 配置好的规则引擎
src/domain/services/rule_engine.py:368
↓ 1 callersFunctioncreate_final_message
创建最终响应消息
src/domain/services/stream_message_formatter.py:324
↓ 1 callersMethodcreate_fixture
创建指定类型的 fixture workflow Args: fixture_type: fixture 类型名称 project_id: 关联的项目 ID(可选) custom_nodes: 自定义节点覆盖(
src/domain/services/workflow_fixtures.py:60
↓ 1 callersMethodcreate_http_node
创建 HTTP 节点定义 参数: name: 节点名称 url: 请求 URL method: 请求方法 headers: 请求头 description: 节点
src/domain/agents/node_definition.py:1299
↓ 1 callersFunctioncreate_langgraph_task_executor
Public wrapper for tests to patch. Delegates to `src.lc.agents.langgraph_task_executor.create_langgraph_task_executor`.
src/lc/agents/task_executor_adapter.py:6
↓ 1 callersFunctioncreate_langgraph_workflow_executor
( workflow: Workflow, executor_registry: NodeExecutorRegistry | None = None, *, event_callback
src/infrastructure/lc_adapters/workflow/langgraph_workflow_executor.py:100
↓ 1 callersMethodcreate_llm_node
创建 LLM 节点定义 参数: name: 节点名称 prompt: Prompt 模板 model: 模型名称 temperature: 温度参数 descri
src/domain/agents/node_definition.py:1264
↓ 1 callersFunctioncreate_model_metadata_adapter
工厂函数:创建模型元数据适配器 Returns: ModelMetadataAdapter 实例,实现 ModelMetadataPort 协议
src/infrastructure/adapters/model_metadata_adapter.py:68
↓ 1 callersMethodcreate_multi_step_node
创建多步骤节点 创建一个父节点,包含多个容器子节点(每个步骤一个)。 参数: name: 父节点名称 steps: 步骤列表,每个步骤包含 name 和 code description: 父
src/domain/agents/hierarchical_node_factory.py:336
↓ 1 callersMethodcreate_multi_variant_experiment
创建多变体实验 参数: experiment_id: 实验唯一标识 name: 实验名称 module_name: 模块名称 variants: 变体配置 {"v1": {"versio
src/domain/services/experiment_orchestrator.py:115
↓ 1 callersMethodcreate_new_version
从已批准笔记创建新版本 创建一个新的草稿笔记,版本号递增,继承原笔记的标签和所有者。 参数: note: 原笔记实例 new_content: 新版本的内容 返回: 新版本的
src/domain/services/knowledge_note_lifecycle.py:175
↓ 1 callersMethodcreate_ollama
创建 Ollama 本地模型提供商(预定义配置) 参数: base_url: Ollama API 地址(默认本地) 返回: 配置好的 Ollama LLMProvider 说明:
src/domain/entities/llm_provider.py:156
↓ 1 callersMethodcreate_or_get_pending
( self, *, run_id: str, workflow_id: str, node_id: str, )
src/application/services/run_confirmation_store.py:40
↓ 1 callersMethodcreate_rollout_plan
创建灰度发布计划 参数: experiment_id: 实验ID(用于跟踪) module_name: 模块名称 new_version: 新版本号 stages: 发布阶段列表 [{"
src/domain/services/experiment_orchestrator.py:324
↓ 1 callersMethodcreate_rollout_plan
创建灰度发布计划(代理到 ExperimentOrchestrator)
src/domain/agents/coordinator_agent.py:3666
↓ 1 callersFunctioncreate_test_global_context
创建测试用全局上下文
tests/unit/domain/services/test_save_request_audit.py:48
↓ 1 callersFunctioncreate_test_global_context
创建测试用全局上下文
tests/unit/domain/services/test_save_request_channel.py:58
↓ 1 callersFunctioncreate_test_workflow
创建测试工作流
scripts/create_test_workflow.py:19
↓ 1 callersFunctioncreate_test_workflow
()
tests/manual/create_test_workflow.py:24
↓ 1 callersFunctioncreate_thought_message
创建思考消息
src/domain/services/stream_message_formatter.py:272
↓ 1 callersFunctioncreate_tool_call_message
创建工具调用消息
src/domain/services/stream_message_formatter.py:281
↓ 1 callersMethodcreate_with_rules
使用自定义规则创建引擎 参数: rules_config: 规则配置列表 返回: 配置好的规则引擎
src/domain/services/rule_engine.py:424
↓ 1 callersMethodcreate_workflow_plan
根据目标创建工作流规划(Phase 8 新增) 使用LLM根据用户目标生成完整的工作流计划,包括节点定义和边定义。 支持父子节点结构和策略传播。 参数: goal: 用户目标描述 返回:
src/domain/agents/conversation_agent_workflow.py:91
↓ 1 callersMethodcritical
记录 CRITICAL 级别日志
src/domain/services/unified_log_collector.py:125
↓ 1 callersMethoddeactivate
停用插件 参数: plugin_id: 插件ID
src/domain/services/extension_api.py:196
↓ 1 callersMethoddec_gauge
减少仪表盘值 参数: name: 指标名称 delta: 减量
src/domain/services/monitoring.py:113
↓ 1 callersMethoddecompose_goal
分解目标为子任务
src/domain/agents/conversation_engine.py:134
↓ 1 callersMethoddecompose_goal
(self, goal: str)
tests/unit/domain/agents/test_conversation_engine.py:65
↓ 1 callersMethoddelete_by_workflow_id
清空工作流的对话历史 业务场景: 1. 用户点击"清空历史记录"按钮 2. 前端调用 DELETE /api/workflows/{id}/chat-history 3. 删除该工作流的所有消息 业务语义:
src/domain/ports/chat_message_repository.py:135
↓ 1 callersMethoddelete_document
删除文档
src/infrastructure/knowledge_base/sqlite_knowledge_repository.py:220
↓ 1 callersMethoddelete_edge
删除边 参数: edge_id: 边ID
src/domain/services/bidirectional_sync.py:186
↓ 1 callersMethoddelete_knowledge
删除知识条目 参数: entry_id: 条目 ID 返回: 是否删除成功
src/domain/agents/coordinator_agent.py:3352
↓ 1 callersMethoddequeue_save_request
No-op: 无队列时返回None 返回: None(队列为空)
src/domain/services/null_save_request_orchestrator.py:97
↓ 1 callersFunctiondetect_cyclic_dependencies
检测工作流中的循环依赖 使用拓扑排序算法检测 DAG 中的循环。 Args: nodes: 节点列表 edges: 边列表 Returns: (has_cycle, cycle_path) - has_cy
src/domain/agents/conversation_agent_enhanced.py:96
↓ 1 callersMethoddetermine_action
确定错误处理动作 参数: node_id: 节点ID error: 异常 node_type: 节点类型 返回: 处理动作
src/domain/services/execution_monitor.py:138
↓ 1 callersFunctiondiffEdgeFields
(before: WorkflowEdge, after: WorkflowEdge)
web/src/features/workflows/utils/workflowDiff.ts:73
↓ 1 callersFunctiondiffNodeFields
(before: WorkflowNode, after: WorkflowNode)
web/src/features/workflows/utils/workflowDiff.ts:54
↓ 1 callersMethoddisable_auto_knowledge_retrieval
禁用自动知识检索(委托)
src/domain/agents/coordinator_agent.py:3015
↓ 1 callersMethoddisable_policy
禁用策略
src/domain/services/supervision_strategy.py:262
↓ 1 callersMethoddisable_save_request_handler
No-op: 无EventBus时不禁用处理器
src/domain/services/null_save_request_orchestrator.py:43
↓ 1 callersFunctiondo_run_migrations
(connection: Connection)
alembic/env.py:35
↓ 1 callersFunctiondummy_task
()
tests/unit/domain/agents/test_conversation_agent_refactor_regression.py:172
↓ 1 callersMethodemit_complete
触发完成事件
src/domain/services/sandbox_executor.py:491
↓ 1 callersMethodemit_error_event
发布错误事件到事件总线 将节点执行错误发布为NodeErrorEvent,供监控和日志系统订阅。 参数: node_id: 节点ID error: 异常实例 recovery_action:
src/domain/agents/conversation_agent_recovery.py:391
↓ 1 callersMethodemit_event
发出事件 参数: event: 要发出的事件
src/infrastructure/lc_adapters/workflow/react_orchestrator.py:149
↓ 1 callersMethodemit_reasoning
发送推理步骤 参数: content: 推理内容 **metadata: 额外元数据
src/domain/services/conversation_flow_emitter.py:253
↓ 1 callersMethodemit_recovery_complete_event
发布恢复完成事件 将错误恢复的结果发布为RecoveryCompleteEvent,供监控系统订阅。 参数: node_id: 节点ID success: 恢复是否成功 method: 恢复方
src/domain/agents/conversation_agent_recovery.py:415
↓ 1 callersMethodemit_start
触发开始事件
src/domain/services/sandbox_executor.py:480
↓ 1 callersMethodemit_tool_call
发送工具调用 参数: tool_name: 工具名称 tool_id: 工具调用 ID arguments: 工具参数 **metadata: 额外元数据
src/domain/services/conversation_flow_emitter.py:293
↓ 1 callersMethodenable_auto_repair
启用代码自动修复 参数: max_attempts: 最大修复尝试次数
src/domain/agents/coordinator_agent.py:1722
↓ 1 callersMethodenable_policy
启用策略
src/domain/services/supervision_strategy.py:255
↓ 1 callersMethodenable_rule
启用规则 参数: rule_id: 规则 ID 返回: 是否成功
src/domain/services/dynamic_alert_rule_manager.py:209
↓ 1 callersMethodenable_save_request_handler
No-op: 无EventBus时不启用处理器
src/domain/services/null_save_request_orchestrator.py:39
↓ 1 callersMethodencode_done
编码结束标记
src/domain/services/stream_message_formatter.py:247
↓ 1 callersMethodencode_message
编码前端消息
src/domain/services/stream_message_formatter.py:251
↓ 1 callersMethodencode_step
将步骤编码为 SSE 格式 参数: step: 会话步骤 返回: SSE 格式的字符串
src/domain/services/stream_message_formatter.py:235
↓ 1 callersMethodend
结束span
src/domain/services/monitoring.py:245
↓ 1 callersMethodenrich_error_with_knowledge
用知识丰富错误信息 参数: error: 子任务错误 error_knowledge: 错误相关知识 返回: 丰富后的 SubtaskError
src/domain/services/power_compressor.py:593
↓ 1 callersMethodenrich_issue_with_knowledge
用知识丰富问题信息 参数: issue: 未解决问题 knowledge: 相关知识 返回: 丰富后的 UnresolvedIssue
src/domain/services/power_compressor.py:619
↓ 1 callersMethodestimate_cost_by_provider
按提供商统计成本 参数: usages: LLMUsage 列表 返回: {provider: total_cost} 字典
src/domain/entities/llm_usage.py:177
↓ 1 callersFunctionestimate_execution_time
估算工作流执行时间 Args: payload: 工作流规划 payload Returns: 时间估算结果
src/domain/agents/conversation_agent_enhanced.py:285
↓ 1 callersMethodestimate_time
预估执行时间 参数: plan: 执行计划 返回: 预估的总执行时间(秒)
src/domain/services/performance_optimizer.py:403
↓ 1 callersMethodestimate_tokens
估计消息列表的 token 数量 参数: messages: 消息列表 返回: 估计的 token 数
src/domain/services/workflow_chat_service_enhanced.py:260
↓ 1 callersMethodestimate_total_cost
估算总成本 参数: usages: LLMUsage 列表 返回: 总成本(美元)
src/domain/entities/llm_usage.py:165
↓ 1 callersMethodevaluate
评估请求 参数: request: SaveRequest 实例 返回: AuditRuleResult 评估结果
src/domain/services/save_request_audit.py:189
↓ 1 callersMethodevaluate
评估条件
src/domain/services/management_modules.py:1004
↓ 1 callersMethodevent_callback
(event_type: str, data: dict[str, Any])
src/application/use_cases/execute_workflow.py:154
↓ 1 callersFunctionevent_generator
()
src/interfaces/api/routes/workflows.py:684
↓ 1 callersFunctionevent_generator
()
src/interfaces/api/routes/chat_workflows.py:38
↓ 1 callersMethodevent_handler
(event)
tests/unit/domain/services/test_execution_monitor.py:384
↓ 1 callersMethodexecute
执行任务 返回: 任务结果
src/domain/services/concurrent_execution_manager.py:98
↓ 1 callersMethodexecute
执行节点逻辑 参数: config: 节点配置 inputs: 输入数据 返回: 输出数据
src/domain/services/extension_api.py:238
↓ 1 callersMethodexecute
执行工具 参数: tool: 工具定义 params: 调用参数(已验证) context: 执行上下文 返回: 执行结果字典 异常:
src/domain/services/tool_executor.py:289
↓ 1 callersMethodexecute
执行子任务 参数: task_data: 任务数据 context: 执行上下文 返回: SubTaskResult 执行结果
src/domain/agents/subtask_executor.py:126
↓ 1 callersMethodexecute
执行用例:创建并执行 Run 业务流程: 1. 验证输入(agent_id 不能为空) 2. 检查 Agent 是否存在 3. 创建 Run 实体 4. 保存 Run(PENDING 状态) 5. 启动
src/application/use_cases/execute_run.py:106
↓ 1 callersMethodexecute
执行用例:创建测试 Workflow
src/application/use_cases/seed_test_workflow.py:66
↓ 1 callersMethodexecute
执行用例:清理测试 Workflow
src/application/use_cases/seed_test_workflow.py:145
↓ 1 callersMethodexecute
( self, *, workflow_id: str, input_data: Any = None, idempotency_key:
src/application/services/workflow_execution_orchestrator.py:75
↓ 1 callersMethodexecute
(self, node: Node, inputs: dict[str, Any], context: dict[str, Any])
tests/unit/domain/services/test_workflow_executor.py:28
↓ 1 callersMethodexecute_async
( self, code: str, config: ContainerConfig | None = None, inputs: dict[str, An
src/infrastructure/executors/container_executor.py:169
↓ 1 callersMethodexecute_batch
批量执行工具 参数: tool_calls: 工具调用列表 [(tool_name, params), ...] 返回: 执行结果列表
src/domain/services/tool_executor.py:433
↓ 1 callersMethodexecute_segment
执行代码段 参数: segment: 代码段 config: 沙箱配置 input_data: 输入数据 返回: 执行结果
src/domain/services/sandbox_executor.py:829
↓ 1 callersMethodexecute_streaming
( self, *, workflow_id: str, input_data: Any = None, correlation_id: s
src/application/services/workflow_execution_orchestrator.py:184
↓ 1 callersFunctionexecute_task_with_context
执行任务(带上下文) 这个函数允许传入额外的上下文信息,帮助 Agent 更好地理解任务。 参数: task_name: 任务名称 task_description: 任务描述 context: 上下文信息(可选)
src/infrastructure/lc_adapters/agents/task_executor.py:265
↓ 1 callersMethodexecute_with_events
带事件发布的异步执行
src/domain/agents/container_executor.py:256
↓ 1 callersMethodexists
(self, idempotency_key: str)
src/infrastructure/adapters/in_memory_idempotency_store.py:16
↓ 1 callersMethodexpand_node_recursive
递归展开节点 参数: node_id: 节点ID 返回: 完整的嵌套结构
src/domain/services/node_schema.py:854
↓ 1 callersMethodexport
导出消息列表(从数据库加载)
src/domain/services/workflow_chat_service_enhanced.py:170
↓ 1 callersMethodexport
导出消息列表 Returns: 消息字典列表
src/application/services/memory_service_adapter.py:74
↓ 1 callersFunctionexport_json_report
导出 JSON 格式报告
scripts/validate_prompt_templates.py:321
↓ 1 callersMethodexport_log_json
导出日志为 JSON
src/domain/services/supervision_strategy.py:839
↓ 1 callersMethodexport_logs_json
导出日志为 JSON 字符串 参数: indent: JSON 缩进空格数(默认 2) 返回: JSON 格式的日志字符串 注意: 仅导出 log_collector 的日志
src/domain/services/unified_log_integration.py:296
← previousnext →2,701–2,800 of 13,770, ranked by callers