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
↓ 3 callers
Method
get_remaining_tokens
获取剩余可用 token 数 返回: 剩余 token 数(最小为 0)
src/domain/entities/session_context.py:364
↓ 3 callers
Method
get_rollout_stages
获取发布阶段
src/domain/services/coordinator_runbook.py:400
↓ 3 callers
Method
get_root
获取根节点 返回: 根节点(如果自己就是根,返回自己)
src/domain/services/node_registry.py:339
↓ 3 callers
Method
get_rule
根据ID获取规则 参数: rule_id: 规则ID 返回: 规则对象,不存在则返回None
src/domain/services/enhanced_rule_repository.py:147
↓ 3 callers
Method
get_rules_by_category
按类别获取规则(按优先级排序) 参数: category: 规则类别 返回: 规则列表
src/domain/services/enhanced_rule_repository.py:166
↓ 3 callers
Method
get_rules_by_source
按来源获取规则(按优先级排序) 参数: source: 规则来源 返回: 规则列表
src/domain/services/enhanced_rule_repository.py:178
↓ 3 callers
Method
get_sandbox_failure_rate
获取沙箱失败率
src/domain/services/dynamic_node_monitoring.py:155
↓ 3 callers
Method
get_save_audit_logs_by_session
获取特定会话的保存审计日志(代理到 SaveRequestOrchestrator) 参数: session_id: 会话 ID 返回: 该会话的审计日志列表
src/domain/agents/coordinator_agent.py:1257
↓ 3 callers
Method
get_save_receipt_context
获取保存回执上下文(代理到 SaveRequestOrchestrator) 为 ConversationAgent 生成保存结果相关的上下文。 参数: session_id: 会话 ID 返回:
src/domain/agents/coordinator_agent.py:1653
↓ 3 callers
Method
get_session
获取会话 参数: session_id: 会话 ID 返回: SSEEmitterHandler 或 None
src/interfaces/api/services/sse_emitter_handler.py:319
↓ 3 callers
Method
get_session_statistics
获取会话统计 参数: session_id: 会话 ID 返回: 统计信息字典
src/domain/services/save_request_receipt.py:284
↓ 3 callers
Method
get_snapshot_count
获取快照数量
src/domain/services/dynamic_node_monitoring.py:315
↓ 3 callers
Method
get_statistics
获取同步统计 返回: 统计数据字典
src/domain/services/bidirectional_sync.py:533
↓ 3 callers
Method
get_status
获取同步状态 返回: 状态字典
src/domain/services/bidirectional_sync.py:545
↓ 3 callers
Method
get_status
获取资源状态 返回: 包含所有资源维度的状态字典
src/domain/services/validators.py:296
↓ 3 callers
Method
get_summary
生成人类可读摘要
src/domain/services/self_describing_node_validator.py:82
↓ 3 callers
Method
get_supervision_logs
获取所有监督日志(委托到 SupervisionFacade)
src/domain/agents/coordinator_agent.py:1461
↓ 3 callers
Method
get_template
获取模板详情 参数: template_id: 模板ID 返回: 模板详情(包含config) 异常: ValueError: 模板不存在
src/domain/services/node_template_manager.py:141
↓ 3 callers
Method
get_tracking_id
获取追踪 ID Args: result_id: 结果包 ID Returns: 追踪 ID
src/domain/services/result_memory_integration.py:496
↓ 3 callers
Method
get_transfer_logs
获取所有传递日志 返回: 日志列表
src/domain/services/context_bridge_enhanced.py:274
↓ 3 callers
Method
get_usage_history
获取使用历史
src/domain/services/prompt_stability_monitor.py:277
↓ 3 callers
Method
get_usage_statistics
获取使用统计
src/domain/services/prompt_stability_monitor.py:306
↓ 3 callers
Method
get_valid_transitions
获取当前状态允许的下一个状态列表 参数: current_status: 当前状态 返回: 允许的下一个状态列表
src/domain/services/knowledge_note_lifecycle.py:225
↓ 3 callers
Method
get_version
获取指定版本的节点配置 参数: node_id: 节点ID version: 版本号 返回: 版本详情 异常: ValueError: 版本不存在
src/domain/services/node_version_manager.py:135
↓ 3 callers
Method
get_version_for_variant
获取变体对应的版本
src/domain/services/ab_testing_system.py:600
↓ 3 callers
Method
get_workflow_total_duration
获取工作流总时长 参数: workflow_id: 工作流ID 返回: 总时长(秒)
src/domain/services/supervision/efficiency.py:119
↓ 3 callers
Method
get_workflow_usage
获取工作流资源使用情况 参数: workflow_id: 工作流ID 返回: 资源使用情况
src/domain/services/supervision/efficiency.py:94
↓ 3 callers
Method
handle_change
处理画布变更 参数: event: CanvasChangeEvent 返回: SyncResult
src/domain/services/bidirectional_sync.py:283
↓ 3 callers
Method
handle_node_failure
处理节点失败 根据配置的策略处理节点执行失败: - RETRY: 重试执行节点 - SKIP: 跳过节点继续执行 - ABORT: 终止工作流 - REPLAN: 请求重新规划 参数:
src/domain/services/workflow_failure_orchestrator.py:241
↓ 3 callers
Method
handle_spawn_event
处理子Agent生成事件 参数: event: SpawnSubAgentEvent 事件 返回: SubAgentResult 执行结果
src/domain/services/subagent_orchestrator.py:143
↓ 3 callers
Method
handle_user_error_decision
处理用户的错误恢复决策 根据用户选择的action返回相应的处理结果。 参数: decision: 用户决策对象(包含action和optional_data) 返回: 决策处理结果(指示是否继续、
src/domain/agents/conversation_agent_recovery.py:361
↓ 3 callers
Method
has
检查是否已注册 参数: agent_type: Agent类型 返回: 是否已注册
src/domain/services/sub_agent_scheduler.py:347
↓ 3 callers
Method
has_circular_dependency
检测是否有循环依赖 使用 DFS 检测有向图中的环。 返回: True 如果存在循环依赖
src/domain/agents/workflow_plan.py:209
↓ 3 callers
Method
has_tag
判断是否有指定标签 参数: tag: 标签名称 返回: 是否存在该标签
src/domain/services/knowledge_note.py:138
↓ 3 callers
Method
increment_access
增加访问计数
src/domain/services/knowledge_maintenance.py:136
↓ 3 callers
Method
increment_retry_count
增加重试次数 业务需求: - 记录重试次数用于限流和监控 - 可以在重试前调用(用于统计) 示例: >>> task = Task.create(run_id="run-123", name="测试任务")
src/domain/entities/task.py:331
↓ 3 callers
Method
inject_intervention
注入干预 参数: session_id: 会话 ID content: 干预内容 source: 来源 reason: 原因 priority: 优先级(干预默认
src/domain/services/context_injection.py:448
↓ 3 callers
Method
inject_memory
注入长期记忆 参数: session_id: 会话 ID content: 记忆内容 source: 来源 relevance_score: 相关性分数 prio
src/domain/services/context_injection.py:381
↓ 3 callers
Method
inject_warning
注入警告信息 当规则违反或检测到风险时调用。 参数: session_id: 会话 ID warning_message: 警告消息 rule_id: 触发警告的规则 ID
src/domain/agents/coordinator_agent.py:1298
↓ 3 callers
Method
inspect_all_notes
巡检所有笔记 参数: notes: 笔记列表 返回: 巡检结果列表
src/domain/services/knowledge_coordinator_inspector.py:157
↓ 3 callers
Method
inspect_next_action
巡检 next_action 笔记 参数: note: next_action 笔记 返回: 巡检结果
src/domain/services/knowledge_coordinator_inspector.py:128
↓ 3 callers
Method
invalidate
主动失效指定 workflow 的缓存 Args: workflow_id: 工作流 ID Note: - 操作幂等(重复调用不报错) - 标记为失效,触发下次读取时回溯
src/domain/ports/memory_cache.py:71
↓ 3 callers
Function
isEqual
(a: unknown, b: unknown)
web/src/features/workflows/utils/workflowDiff.ts:49
↓ 3 callers
Method
is_approaching_limit
判断是否接近上下文限制 参数: used_tokens: 已使用的 token 数 threshold: 阈值(默认 0.8,即 80%) 返回: 是否接近限制
src/infrastructure/lc_adapters/token_counter.py:176
↓ 3 callers
Method
is_approved
判断是否已批准 返回: 是否已批准
src/domain/services/knowledge_note.py:162
↓ 3 callers
Method
is_blocker_resolved
判断 blocker 是否已解决 参数: note: blocker 笔记 返回: 是否已解决
src/domain/services/knowledge_coordinator_inspector.py:184
↓ 3 callers
Method
is_empty
检查是否没有变更
src/infrastructure/websocket/canvas_sync.py:147
↓ 3 callers
Method
is_expired
检查是否已达到最大重试次数
src/infrastructure/websocket/canvas_sync.py:60
↓ 3 callers
Method
is_note_ignored
判断笔记是否被忽视 参数: note: 笔记实例 agent_actions: agent 的行动列表 返回: 是否被忽视
src/domain/services/knowledge_deviation_alert.py:183
↓ 3 callers
Method
is_plan_expired
判断计划是否过期 参数: note: next_action 笔记 days: 过期天数阈值 返回: 是否过期
src/domain/services/knowledge_coordinator_inspector.py:205
↓ 3 callers
Method
is_rejection_rate_high
检查拒绝率是否过高 (DEPRECATED - use _rule_engine_facade.is_rejection_rate_high) 返回: 是否超过阈值
src/domain/agents/coordinator_agent.py:2175
↓ 3 callers
Method
is_retryable
判断错误是否可重试
src/domain/services/execution_result.py:31
↓ 3 callers
Method
is_similar_error
判断是否相似错误 参数: error_message: 目标错误消息 task_type: 目标任务类型 返回: 是否相似
src/domain/services/knowledge_maintenance.py:454
↓ 3 callers
Method
link_knowledge_to_segments
链接知识到各段 参数: ctx: 压缩上下文 knowledge: 知识列表 返回: 更新后的 PowerCompressedContext
src/domain/services/power_compressor.py:547
↓ 3 callers
Method
list_by_source
按来源列出引用ID 参数: source_id: 来源ID 返回: 引用ID列表
src/domain/services/summary_strategy.py:205
↓ 3 callers
Method
list_experiments
列出所有实验(代理到 ExperimentOrchestrator)
src/domain/agents/coordinator_agent.py:3697
↓ 3 callers
Method
list_versions
列出节点所有版本(与 get_version_history 相同) 参数: node_id: 节点ID 返回: 版本列表
src/domain/services/node_version_manager.py:124
↓ 3 callers
Method
load_and_validate_startup
(self)
src/application/services/capability_catalog_service.py:86
↓ 3 callers
Method
load_prompt_template
加载提示词模板(代理到 Facade)
src/domain/agents/coordinator_agent.py:1974
↓ 3 callers
Method
load_recent
加载最近消息(缓存优先 + 自动回溯) 流程: 1. 尝试从缓存读取 2. 缓存命中 → 直接返回 3. 缓存未命中 → 回溯到数据库 → 压缩 → 更新缓存 Args: w
src/application/services/composite_memory_service.py:130
↓ 3 callers
Method
load_rules_from_dict
从字典加载规则 参数: config: 规则配置字典
src/domain/services/rule_engine.py:304
↓ 3 callers
Method
load_to_working_memory
加载上下文到工作记忆 Args: context_package: 上下文包 Returns: 工作记忆字典
src/domain/services/subagent_context_bridge.py:347
↓ 3 callers
Method
log_error
记录错误 参数: node_id: 节点ID workflow_id: 工作流ID error: 异常 context: 上下文信息 返回: 日
src/domain/agents/error_handling.py:847
↓ 3 callers
Method
log_execution
记录执行结果 参数: result: ExecutionResult 执行结果
src/domain/services/save_request_audit.py:726
↓ 3 callers
Method
log_knowledge_written
记录知识写入 Args: result_id: 结果包 ID tracking_id: 追踪 ID entry_ids: 创建的知识条目 ID 列表 Returns:
src/domain/services/result_memory_integration.py:576
↓ 3 callers
Method
log_node_replacement
记录节点替换
src/domain/services/intervention/logger.py:27
↓ 3 callers
Method
log_note_archival
记录笔记归档 参数: note: 笔记实例 archived_by: 归档者ID 返回: 创建的审计日志
src/domain/services/knowledge_audit_log.py:237
↓ 3 callers
Method
log_request_received
记录请求接收 参数: request_id: 请求 ID session_id: 会话 ID target_path: 目标路径 返回: 日志条目
src/domain/services/save_request_receipt.py:506
↓ 3 callers
Function
make_edge
创建测试边(固定ID以便验证)
tests/unit/infrastructure/database/repositories/test_workflow_repository.py:101
↓ 3 callers
Method
mark_node_completed
标记节点完成 参数: node_id: 节点ID outputs: 输出数据
src/domain/services/execution_monitor.py:262
↓ 3 callers
Method
mark_node_failed
标记节点失败 参数: node_id: 节点ID error_type: 错误类型 error_message: 错误消息 action_taken: 采取的动作
src/domain/services/execution_monitor.py:278
↓ 3 callers
Method
modify_node
修改节点配置 参数: node_id: 节点ID config: 新配置 返回: 操作结果
src/domain/agents/workflow_agent.py:2704
↓ 3 callers
Method
move_node
移动节点 参数: node_id: 节点ID position: 新位置
src/domain/services/bidirectional_sync.py:160
↓ 3 callers
Method
on_state_change
订阅状态变更事件
src/domain/services/management_modules.py:534
↓ 3 callers
Function
orchestrator_factory
(_: Session)
tests/integration/api/workflows/test_run_event_persistence.py:59
↓ 3 callers
Method
pause_agent
暂停 Agent
src/domain/services/management_modules.py:676
↓ 3 callers
Method
percentile
计算百分位数
src/domain/services/logging_metrics.py:1025
↓ 3 callers
Method
prepare
( self, *, workflow_id: str, run_id: str, input_data: Any = None,
src/application/services/workflow_run_execution_entry.py:197
↓ 3 callers
Method
prepare_long_term_updates
准备长期记忆更新 Args: unpacked: 解包后的结果 Returns: 长期记忆更新列表
src/domain/services/result_memory_integration.py:292
↓ 3 callers
Function
probe_model_context_limit
探针调用:测试模型实际上下文限制 通过发送一个简单的请求,记录实际的 token 使用情况。 参数: llm: LLM 客户端实例 provider: 提供商名称 model: 模型名称 返回: 探针结果字
src/infrastructure/lc_adapters/model_metadata.py:229
↓ 3 callers
Method
process_message
处理用户消息,修改工作流 参数: workflow: 当前工作流实体 user_message: 用户消息 返回: (修改后的工作流, AI回复消息) 抛出:
src/domain/services/workflow_chat_service.py:49
↓ 3 callers
Function
ps_quote
(s: str)
scripts/organize_project_files.py:491
↓ 3 callers
Method
query
( self, *, query_embeddings: list[list[float]], n_results: int, where:
tests/unit/infrastructure/knowledge_base/test_chroma_retriever_service.py:67
↓ 3 callers
Method
query_call_records
查询调用记录 参数: conversation_id: 会话 ID(可选) tool_name: 工具名称(可选) caller_id: 调用者 ID(可选) limit: 返回数量限制
src/domain/services/tool_engine.py:1088
↓ 3 callers
Method
queue_size
获取队列大小 返回: 当前队列中的请求数量
src/domain/services/save_request_channel.py:397
↓ 3 callers
Method
record_activity
记录活动
src/domain/services/resource_lifecycle.py:146
↓ 3 callers
Method
record_execution_summary_async
异步记录执行总结并发布事件 参数: summary: ExecutionSummary 实例
src/domain/services/execution_summary_manager.py:68
↓ 3 callers
Method
record_request
记录 Agent 请求
src/domain/services/logging_metrics.py:896
↓ 3 callers
Method
record_workflow_resource
记录工作流节点的资源使用 参数: workflow_id: 工作流 ID node_id: 节点 ID memory_mb: 内存使用 (MB) cpu_percent: CPU 使用百
src/domain/agents/coordinator_agent.py:3482
↓ 3 callers
Method
register
注册健康检查 参数: name: 组件名称 check_fn: 检查函数(返回dict)
src/domain/services/monitoring.py:364
↓ 3 callers
Method
register
注册模块 参数: module: 要注册的模块
src/domain/services/prompt_template_system.py:277
↓ 3 callers
Method
register_complete
完整注册流程 参数: node_name: 节点名称 yaml_content: YAML 内容 code: 代码内容 language: 编程语言 返回:
src/domain/services/node_code_generator.py:870
↓ 3 callers
Function
register_model_metadata
注册新模型元数据 参数: provider: 提供商名称 model: 模型名称 context_window: 上下文窗口大小 max_input_tokens: 最大输入 token 数(可选) max_o
src/infrastructure/lc_adapters/model_metadata.py:197
↓ 3 callers
Function
register_self_describing_rules
注册自描述节点验证规则到 Coordinator 注册的规则: 1. self_describing_required_fields - 必需字段验证 2. self_describing_sandbox_permission - 沙箱许可验证 参数:
src/domain/services/self_describing_node_validator.py:574
↓ 3 callers
Method
register_type
注册子Agent类型 参数: agent_type: SubAgentType 枚举值 agent_class: 子Agent类
src/domain/services/subagent_orchestrator.py:84
↓ 3 callers
Method
release
释放锁
src/domain/services/concurrent_execution_manager.py:61
↓ 3 callers
Method
remove_node
移除节点 参数: workflow_definition: 工作流定义 request: 移除请求 返回: 修改结果
src/domain/services/intervention/workflow_modifier.py:103
↓ 3 callers
Method
remove_rule
移除规则 (DEPRECATED - use _rule_engine_facade.remove_decision_rule) 参数: rule_id: 规则ID 返回: 是否成功移除
src/domain/agents/coordinator_agent.py:1895
↓ 3 callers
Method
render
渲染模板 参数: **kwargs: 变量值 返回: 渲染后的字符串 异常: TemplateRenderError: 如果缺少必需的变量
src/domain/services/prompt_template_system.py:119
↓ 3 callers
Method
render
渲染为完整的提示词字符串
src/domain/services/scenario_prompt_system.py:137
← previous
next →
1,401–1,500 of 13,770, ranked by callers