MCPcopy Create free account

hub / github.com/DSGWJQ/Feagent / functions

Functions13,770 in github.com/DSGWJQ/Feagent

↓ 2 callersMethodfind_knowledge_bases_by_owner
查找指定所有者的知识库
src/domain/knowledge_base/ports/knowledge_repository.py:32
↓ 2 callersMethodfind_tools_by_query
按查询找到相关工具 参数: query: 查询字符串(可以是关键词或标签) 返回: 匹配的工具列表
src/domain/services/context/service.py:137
↓ 2 callersMethodflush
刷新到文件
src/domain/services/logging_metrics.py:395
↓ 2 callersMethodfor_model
根据模型创建 Guardrail 大上下文模型可以使用更高的阈值。 参数: model_name: 模型名称 context_limit: 上下文限制 返回: 配置好的 To
src/domain/services/token_guardrail.py:94
↓ 2 callersMethodformat_logs
格式化日志输出
src/domain/services/resource_lifecycle.py:586
↓ 2 callersMethodfrom_dict
从字典创建实例
src/domain/services/context_protocol.py:116
↓ 2 callersMethodfrom_entities
从 Run 实体列表创建 DTO 列表 Args: runs: Run 领域实体列表 Returns: RunResponse DTO 列表
src/interfaces/api/dto/run_dto.py:93
↓ 2 callersMethodfrom_entity
从 Domain 实体创建 DTO 参数: node: Node 实体 返回: NodeDTO
src/interfaces/api/dto/workflow_dto.py:53
↓ 2 callersMethodfrom_exception
从异常创建失败结果
src/domain/services/execution_result.py:132
↓ 2 callersMethodfrom_execution_result
从执行结果创建记录 参数: result: ToolExecutionResult 执行结果 params: 调用参数 caller_id: 调用者 ID caller_type: 调用
src/domain/services/tool_knowledge_store.py:75
↓ 2 callersMethodfrom_string
从字符串创建
src/domain/services/configurable_rule_engine.py:78
↓ 2 callersMethodfrom_yaml_directory
从目录加载所有 YAML 文件 参数: dir_path: 目录路径 返回: NodeDefinition 列表
src/domain/agents/node_definition.py:897
↓ 2 callersMethodgenerate
生成文本响应. 参数: prompt: 提示词 temperature: 温度参数(0.0-1.0), 控制生成的随机性 max_tokens: 最大token数 **kwargs: 其
src/domain/ports/llm_port.py:24
↓ 2 callersMethodgenerate
生成响应
src/domain/services/ai_node_executors.py:52
↓ 2 callersMethodgenerate_api_summary
生成 API 摘要
src/domain/services/logging_metrics.py:1106
↓ 2 callersMethodgenerate_document
生成 Runbook 文档
src/domain/services/coordinator_runbook.py:978
↓ 2 callersMethodgenerate_embedding
生成文本的向量嵌入
src/infrastructure/knowledge_base/chroma_retriever_service.py:150
↓ 2 callersMethodgenerate_execution_rules
生成执行策略规则 参数: timeout_seconds: 超时时间 max_retries: 最大重试次数 返回: 规则列表
src/domain/services/rule_generator.py:531
↓ 2 callersMethodgenerate_for_subtask
为子任务生成提示词 Args: subtask: 子任务字典,包含 id, type, description, context Returns: TaskPrompt 实例
src/domain/services/scenario_prompt_system.py:874
↓ 2 callersMethodgenerate_log_analysis
生成日志分析
src/domain/services/logging_metrics.py:1147
↓ 2 callersMethodgenerate_next_plan
生成后续计划 参数: context: 上下文数据 返回: NextPlanItem 列表
src/domain/services/power_compressor.py:446
↓ 2 callersMethodgenerate_performance_report
生成性能报告 参数: traces: 任务追踪列表 返回: 性能报告字典
src/domain/services/log_analysis.py:614
↓ 2 callersMethodgenerate_preference_report
生成偏好报告 参数: traces: 任务追踪列表 返回: 偏好报告字典
src/domain/services/log_analysis.py:799
↓ 2 callersMethodgenerate_response
直接生成回复(Phase 14 新增) 用于普通对话场景,跳过 ReAct 循环直接生成回复。 参数: user_input: 用户输入 context: 上下文信息 返回:
src/domain/agents/conversation_agent.py:174
↓ 2 callersMethodgenerate_system_overview
生成系统概览
src/domain/services/logging_metrics.py:1089
↓ 2 callersMethodgenerate_tracking_id
生成追踪 ID Args: result_id: 结果包 ID Returns: 追踪 ID
src/domain/services/result_memory_integration.py:482
↓ 2 callersMethodgenerate_workflow_summary
生成工作流摘要
src/domain/services/logging_metrics.py:1123
↓ 2 callersFunctiongetApiBaseUrl
()
web/tests/e2e/fullreal/ux-wf-201-real-llm.spec.ts:392
↓ 2 callersFunctiongetDefaultNodeData
(type: string)
web/src/features/workflows/utils/nodeUtils.ts:31
↓ 2 callersFunctiongetTestWorkflows
* 获取所有测试 workflows(通过 source='e2e_test' 标记)
web/tests/e2e/scripts/verify-cleanup.ts:41
↓ 2 callersMethodget_actual_type
获取值的实际类型名称
src/domain/services/tool_parameter_validator.py:152
↓ 2 callersFunctionget_agent_bridge
获取 Agent 通信桥接单例
src/interfaces/api/routes/agent_websocket.py:62
↓ 2 callersFunctionget_agent_channel
获取 Agent 通信信道单例
src/interfaces/api/routes/agent_websocket.py:54
↓ 2 callersMethodget_alert_history
获取警报历史
src/domain/services/prompt_stability_monitor.py:902
↓ 2 callersMethodget_all_descendants
获取所有后代节点 递归获取所有子节点及其后代。 返回: 所有后代节点列表
src/domain/agents/node_definition.py:579
↓ 2 callersMethodget_all_summaries
获取所有总结 返回: 工作流ID到总结的映射
src/domain/agents/coordinator_agent.py:3131
↓ 2 callersFunctionget_all_tools
获取所有可用的工具 为什么需要这个函数? - 统一入口:一次性获取所有工具 - 便于管理:添加新工具时只需修改这里 - 便于使用:Agent 可以直接使用所有工具 返回: list[Tool]: 所有可用的工具列表 示例:
src/infrastructure/lc_adapters/tools/__init__.py:42
↓ 2 callersMethodget_approval_history
获取批准历史 参数: note_id: 笔记ID 返回: 批准历史列表(包含批准者和时间)
src/domain/services/knowledge_audit_log.py:322
↓ 2 callersMethodget_approval_info
获取批准信息 参数: note: 笔记实例 返回: 包含批准信息的字典
src/domain/services/knowledge_note_lifecycle.py:197
↓ 2 callersMethodget_available_tools
获取所有可用工具 返回: 工具字典列表
src/domain/services/context/service.py:114
↓ 2 callersMethodget_budget_report
获取预算报告 参数: session: 会话上下文 返回: 预算报告字典
src/domain/services/token_guardrail.py:311
↓ 2 callersMethodget_by_kind
按类型筛选消息
src/domain/services/reliable_emitter.py:151
↓ 2 callersMethodget_by_name
根据名称获取 LLMProvider 参数: name: 提供商名称(openai, deepseek, qwen等) 返回: LLMProvider 实体 抛出: NotF
src/domain/ports/llm_provider_repository.py:67
↓ 2 callersMethodget_by_session
获取特定会话的所有请求 参数: session_id: 会话 ID 返回: 该会话的请求列表
src/domain/services/save_request_channel.py:466
↓ 2 callersMethodget_by_time_range
按时间范围筛选消息
src/domain/services/reliable_emitter.py:156
↓ 2 callersMethodget_canvas_snapshot
获取画布快照 参数: workflow_id: 工作流ID 返回: 画布状态快照
src/domain/services/canvas_synchronizer.py:353
↓ 2 callersMethodget_chain_log
获取请求的完整链路日志 参数: request_id: 请求 ID 返回: 链路日志列表
src/domain/services/save_request_receipt.py:611
↓ 2 callersMethodget_compression_ratio
获取压缩率 返回: 压缩率(summary_token_count / original_token_count)
src/domain/services/structured_dialogue_summary.py:112
↓ 2 callersMethodget_context_async
(self, user_input, workflow_id=None)
tests/integration/test_conversation_engine_e2e.py:319
↓ 2 callersMethodget_context_for_reasoning
Get reasoning context from host. Must be provided by concrete ConversationAgent.
src/domain/agents/conversation_agent_workflow.py:66
↓ 2 callersMethodget_current_version
获取模块当前活跃版本号
src/domain/services/prompt_version_manager.py:308
↓ 2 callersFunctionget_db_session
获取数据库会话 这是 FastAPI 依赖注入函数: - 为每个请求创建新的 Session - 请求结束后自动关闭 Session - 使用 yield 确保资源正确释放 为什么使用 Generator? - FastAPI 支持 Generat
src/infrastructure/database/engine.py:110
↓ 2 callersMethodget_deviation_reason
获取偏离原因说明 参数: goal: 目标描述 action_description: 行动描述 返回: 偏离原因说明
src/domain/services/rule_generator.py:244
↓ 2 callersMethodget_document_processing_config
获取文档处理配置
src/infrastructure/knowledge_base/rag_config_manager.py:86
↓ 2 callersMethodget_document_stats
获取文档统计信息 参数: workflow_id: 可选的工作流ID 返回: 统计信息字典
src/application/services/rag_service.py:245
↓ 2 callersMethodget_execution_chain
获取执行链 返回按时间顺序排列的执行步骤。
src/domain/services/log_analysis.py:221
↓ 2 callersMethodget_experiment
获取实验详情 参数: experiment_id: 实验ID 返回: 实验配置字典或 None
src/domain/services/experiment_orchestrator.py:490
↓ 2 callersMethodget_experiment_for_module
获取模块当前的活跃实验
src/domain/services/ab_testing_system.py:615
↓ 2 callersMethodget_experiment_report
获取实验报告
src/domain/services/ab_testing_system.py:862
↓ 2 callersMethodget_experiment_variant
获取用户的实验变体 根据确定性哈希分配用户到实验变体,确保同一用户 在同一实验中始终获得相同的变体。 参数: experiment_id: 实验ID user_id: 用户ID 返回
src/domain/services/experiment_orchestrator.py:237
↓ 2 callersMethodget_experiment_variant
获取用户的实验变体(代理到 ExperimentOrchestrator)
src/domain/agents/coordinator_agent.py:3629
↓ 2 callersMethodget_from_workflow
直接从工作流获取数据(需要已桥接) 如果没有桥接,抛出 AccessDeniedError。 参数: source_workflow_id: 源工作流ID target_workflow_id: 目标工作流ID
src/domain/services/context_bridge_enhanced.py:239
↓ 2 callersMethodget_hierarchical_execution_order
获取层次化节点的执行顺序 返回节点及其所有后代的执行顺序。 子节点先于父节点执行,以便父节点可以聚合子节点结果。 参数: node_id: 节点ID 返回: 按执行顺序排列的节点ID
src/domain/agents/workflow_agent.py:3313
↓ 2 callersMethodget_highest_priority_action
获取最高优先级动作 参数: infos: 监督信息列表 返回: 最高优先级的动作
src/domain/services/supervision_module.py:591
↓ 2 callersMethodget_histogram
获取直方图统计 参数: name: 指标名称 返回: 直方图统计信息
src/domain/services/monitoring.py:151
↓ 2 callersMethodget_injection_logs
获取所有注入日志(委托到 ContextInjectionManager)
src/domain/agents/coordinator_agent.py:1394
↓ 2 callersMethodget_injection_logs_by_session
获取指定会话的注入日志(委托到 ContextInjectionManager)
src/domain/agents/coordinator_agent.py:1398
↓ 2 callersMethodget_input_mapping
获取输入映射
src/domain/services/generic_node.py:262
↓ 2 callersMethodget_intervention_log
获取干预日志
src/domain/services/supervision_strategy.py:1129
↓ 2 callersMethodget_knowledge
获取知识条目 参数: entry_id: 条目 ID 返回: 条目字典,如果不存在返回 None
src/domain/agents/coordinator_agent.py:3301
↓ 2 callersMethodget_latency_stats
获取延迟统计
src/domain/services/logging_metrics.py:753
↓ 2 callersMethodget_loading_logs
获取加载日志
src/domain/services/prompt_version_manager.py:718
↓ 2 callersMethodget_logs
获取所有日志
src/domain/services/intervention/logger.py:102
↓ 2 callersMethodget_logs_by_note_id
按笔记ID获取日志 参数: note_id: 笔记ID 返回: 该笔记的所有日志(按时间顺序)
src/domain/services/knowledge_audit_log.py:277
↓ 2 callersMethodget_logs_by_session
按会话获取日志
src/domain/services/supervision_module.py:294
↓ 2 callersMethodget_logs_by_session
按会话获取日志
src/domain/services/context_injection.py:250
↓ 2 callersMethodget_logs_by_session
按会话获取日志
src/domain/services/intervention/logger.py:106
↓ 2 callersMethodget_memory
获取记忆 参数: memory_id: 记忆 ID 返回: LongTermMemory 或 None
src/domain/services/knowledge_maintenance.py:599
↓ 2 callersMethodget_message_statistics
获取消息统计 Phase 35.3: 委托给 MessageLogListener 返回: 包含消息统计的字典: - total_messages: 总消息数 - by_intent: 按意图
src/domain/agents/coordinator_agent.py:2529
↓ 2 callersMethodget_metrics
获取指标
src/domain/services/coordinator_runbook.py:581
↓ 2 callersMethodget_metrics_by_endpoint
按端点获取指标
src/domain/services/logging_metrics.py:777
↓ 2 callersMethodget_missing_variables
获取模板中存在但未声明的变量 返回: 未声明的变量名集合
src/domain/services/prompt_template_system.py:99
↓ 2 callersMethodget_modules_for_agent
获取适用于特定 Agent 的所有模块 参数: agent_type: Agent 类型名称 返回: 适用模块列表
src/domain/services/prompt_template_system.py:315
↓ 2 callersMethodget_node_tree
获取节点的完整树结构 参数: node_id: 节点ID 返回: 树结构字典
src/domain/agents/workflow_agent.py:947
↓ 2 callersMethodget_or_create_collection
(self, *, name: str, metadata: dict[str, object])
tests/unit/infrastructure/knowledge_base/test_chroma_retriever_service.py:126
↓ 2 callersMethodget_output_mapping
获取输出映射
src/domain/services/generic_node.py:274
↓ 2 callersMethodget_progress
获取进度信息 返回: 进度字典
src/domain/services/execution_monitor.py:331
↓ 2 callersMethodget_raw_data
获取原始数据 参数: ref_id: 引用ID data_path: 数据路径(可选) 返回: 原始数据
src/domain/services/summary_strategy.py:814
↓ 2 callersMethodget_receipt_chain_log
获取回执链路日志 参数: request_id: 请求 ID 返回: 链路日志或 None
src/domain/services/save_request_receipt.py:765
↓ 2 callersMethodget_recent_logs
获取最近的日志 参数: limit: 返回的日志数量(默认 10) 返回: 最近的日志列表(最新的在前)
src/domain/services/knowledge_audit_log.py:365
↓ 2 callersMethodget_remaining_tokens
获取剩余可用 token 数 参数: used_tokens: 已使用的 token 数 返回: 剩余 token 数(最小为 0)
src/infrastructure/lc_adapters/token_counter.py:189
↓ 2 callersMethodget_resolution_guide
获取解决指南
src/domain/services/coordinator_runbook.py:880
↓ 2 callersMethodget_resource_allocation_summary
获取资源分配摘要
src/domain/services/resource_lifecycle.py:377
↓ 2 callersMethodget_resource_summary
获取资源摘要
src/domain/services/resource_lifecycle.py:906
↓ 2 callersMethodget_result
读取幂等键对应的已缓存结果。
src/domain/ports/idempotency_store.py:22
↓ 2 callersMethodget_retrieval_config
获取检索配置
src/infrastructure/knowledge_base/rag_config_manager.py:75
↓ 2 callersMethodget_root_nodes
获取根节点(没有入边的节点) 返回: 根节点列表
src/domain/agents/workflow_plan.py:300
↓ 2 callersMethodget_save_receipt_logs
获取所有回执日志(代理到 SaveRequestOrchestrator)
src/domain/agents/coordinator_agent.py:1677
↓ 2 callersMethodget_save_request_status
获取保存请求状态(代理到 SaveRequestOrchestrator) 参数: request_id: 请求 ID 返回: SaveRequestStatus 或 None
src/domain/agents/coordinator_agent.py:1160
↓ 2 callersMethodget_scheduled_workflow_details
获取定时任务详情 参数: scheduled_workflow_id: 定时任务ID 返回: 定时任务实体 抛出: NotFoundError: 任务不存在
src/application/use_cases/schedule_workflow.py:145
← previousnext →1,801–1,900 of 13,770, ranked by callers