MCPcopy Create free account

hub / github.com/Negai-ai/AgentClaw / functions

Functions3,963 in github.com/Negai-ai/AgentClaw

↓ 4 callersMethod_resolve_prompt
解析 prompt 支持语法: - {variable}: 从 state 中取值 - {@prompt_key}: 从 PromptManager 中取值 热更新支持:
agentclaw/node/llm.py:2109
↓ 4 callersMethod_run_shutdown_step
执行单个关闭步骤,避免某个后台资源阻塞 Ctrl+C 退出。
agentclaw/api/server.py:1660
↓ 4 callersFunction_safe_guard_configured
(config: Any)
agentclaw/api/services/settings_service.py:638
↓ 4 callersMethod_serialize_messages
将 messages 序列化为 JSON 字符串
agentclaw/runtime/tracing/wrappers.py:564
↓ 4 callersFunction_session_from_state
(state: dict[str, Any])
agentclaw/agent_square/turtle_soup_agent/agents/turtle_soup.py:88
↓ 4 callersFunction_store_dir
(project_dir: Path)
agentclaw/api/services/settings_service.py:511
↓ 4 callersFunction_strip_wrapping_quotes
(value: str)
agentclaw/mcp/builtin_servers/skill_tools.py:99
↓ 4 callersMethod_syntax_tool_unavailable
( self, *, path: Path, language: str, checker: str, message: s
agentclaw/mcp/builtin_servers/coding_tools.py:365
↓ 4 callersMethod_trace_context
Trace 上下文管理器
agentclaw/graph/workflow.py:2157
↓ 4 callersMethod_update_code_missing_fields
(mode: str, args: dict)
agentclaw/mcp/builtin_servers/coding_tools.py:1693
↓ 4 callersFunction_write_b64_image
(image_base64: str, output_dir: Path, output_prefix: str, index: int, output_format: str)
agentclaw/skills/builtin_skills/image-generation/scripts/openai_generate_image.py:81
↓ 4 callersMethodadd_node
(self, node: BaseNode)
agentclaw/graph/template.py:40
↓ 4 callersMethodapp
获取 FastAPI 应用实例(用于测试或手动配置)
agentclaw/api/server.py:1730
↓ 4 callersFunctionappend_vote_result
(game: dict[str, Any], title: str, phase: str, candidates: list[int])
agentclaw/agent_square/werewolf_agent/agents/werewolf_machine.py:931
↓ 4 callersFunctionapply_day_speech_order
(game: dict[str, Any], first_seat: int | None)
agentclaw/agent_square/werewolf_agent/agents/werewolf_machine.py:391
↓ 4 callersFunctionapply_saved_workflow_settings
( workflow: Any, project_dir: Path | None = None, safe_guard_configured: bool | None = None, )
agentclaw/api/services/settings_service.py:976
↓ 4 callersFunctionauthentication_failed_response
Dify-compatible auth error response for workflow execution endpoints.
agentclaw/api/auth/dependencies.py:121
↓ 4 callersFunctionbase64url_encode
(data: bytes)
agentclaw/api/routers/public/session.py:112
↓ 4 callersFunctionbuild_data_dir_env_vars
Build the env vars derived from a unified AgentClaw data directory.
agentclaw/env_config.py:383
↓ 4 callersMethodcheck_breakpoint
检查断点(在节点执行前/后调用) 如果命中断点,会暂停执行并等待用户操作。 Args: node_id: 当前节点名称 state: 当前状态
agentclaw/runtime/debugger.py:307
↓ 4 callersFunctioncheck_public_content_safety
Return a safety decision for workflow input content. No guard is applied when models.json does not select a safe_guard model or disables the
agentclaw/api/services/safety_guard_service.py:107
↓ 4 callersMethodcreate_sync_redis_client
创建同步 Redis 客户端(用于子进程或同步上下文) Args: config: Redis 配置 Returns: redis.Redis 客户端实例 Exa
agentclaw/database/manager.py:730
↓ 4 callersMethoddecide_abort
(self, reason: str, **metadata: Any)
agentclaw/runtime/harness/agent_harness.py:227
↓ 4 callersMethoddiscover
自动发现项目配置文件 查找顺序: 1. 入口脚本所在目录(sys.argv[0]) 2. 当前工作目录(CWD) 3. 指定的 base_dir
agentclaw/config.py:257
↓ 4 callersFunctiondurationBarPercent
(ms, durations = [])
agentclaw/admin-dashboard/src/composables/useFormatters.js:27
↓ 4 callersFunctiongetCurrentLocale
()
agentclaw/admin-dashboard/src/i18n/index.js:42
↓ 4 callersFunctionget_builtin_skill_manager
Get built-in SkillManager singleton. Built-in skills are shipped with AgentClaw package and are independent from project local ``./skills`` d
agentclaw/skills/__init__.py:80
↓ 4 callersMethodget_default_model_id
(self, role: str)
agentclaw/knowledgebase/model_gateway.py:67
↓ 4 callersMethodget_job
获取任务
agentclaw/scheduler/scheduler.py:181
↓ 4 callersFunctionget_resource_manager
获取全局资源管理器实例
agentclaw/runtime/resource_manager.py:456
↓ 4 callersMethodinvoke
非流式调用 LLM Args: messages: 消息列表,格式 [{"role": "user/assistant/system", "content": "..."}] response_for
agentclaw/model/manager.py:968
↓ 4 callersMethodinvoke
()
agentclaw/audio/providers/openai_audio.py:44
↓ 4 callersFunctionisBuiltinWorkflowId
(workflowId)
agentclaw/admin-dashboard/src/utils/builtinWorkflowI18n.js:132
↓ 4 callersFunctionis_same_origin_public_page_request
(request: Request)
agentclaw/api/routers/public/session.py:67
↓ 4 callersFunctionlog
(level, message, ...args)
agentclaw/channels/wecom_worker/worker.mjs:16
↓ 4 callersFunctionmake_builtin_workflow
(tmp_path, node=None)
agentclaw/test/api/test_workflow_settings_security.py:39
↓ 4 callersFunctionmask_public_sensitive_words
(content: str)
agentclaw/api/services/public_sensitive_words_service.py:86
↓ 4 callersFunctionnormalize_public_room_nickname
(value: str)
agentclaw/api/services/public_room_service.py:148
↓ 4 callersMethodon_init
组件初始化
agentclaw/node/toolkit.py:227
↓ 4 callersFunctionpublic_safety_guard_error_payload
(exc: Exception)
agentclaw/api/services/safety_guard_service.py:160
↓ 4 callersMethodpush_message_end
推送 message_end 事件 Args: usage: LLM 调用的 token 使用情况(包括系统提示词) context_tokens: 会话上下文的 token 数(历史消息,不包括系统提示词)
agentclaw/runtime/streaming/context.py:431
↓ 4 callersFunctionpush_output
推送输出到会话队列(供状态事件使用)
agentclaw/api/routers/admin/debug.py:577
↓ 4 callersMethodrelease
释放锁
agentclaw/scheduler/lock.py:32
↓ 4 callersMethodreset_instance
重置单例(用于测试)
agentclaw/api/auth/token.py:48
↓ 4 callersFunctionreset_public_sensitive_words_cache
()
agentclaw/api/services/public_sensitive_words_service.py:21
↓ 4 callersFunctionresolve_base_url
(args: argparse.Namespace)
agentclaw/skills/builtin_skills/image-generation/scripts/openai_generate_image.py:47
↓ 4 callersMethodrun
(self)
agentclaw/mcp/browser_server.py:1266
↓ 4 callersMethodrun
执行工作流(带追踪)
agentclaw/runtime/tracing/wrappers.py:641
↓ 4 callersFunctionshould_self_explode
(text: str)
agentclaw/agent_square/werewolf_agent/agents/werewolf_input.py:60
↓ 4 callersMethodstop
停止服务器
agentclaw/api/server.py:1789
↓ 4 callersMethodto_dict
转换为字典格式(用于 API 返回)
agentclaw/inputs/types.py:134
↓ 4 callersMethodto_json_schema
转换为 JSON Schema 格式
agentclaw/inputs/types.py:86
↓ 4 callersFunctionto_local_aware_datetime
Normalize a datetime for PostgreSQL TIMESTAMPTZ columns.
agentclaw/utils/datetime.py:35
↓ 4 callersFunctionto_local_naive_datetime
Normalize a datetime for PostgreSQL TIMESTAMP columns. Trace tables currently store naive local datetimes, so aware values coming from I
agentclaw/utils/datetime.py:21
↓ 4 callersFunctiontransfer_sheriff_badge
(game: dict[str, Any], old_seat: int, target: int | None)
agentclaw/agent_square/werewolf_agent/agents/werewolf_machine.py:770
↓ 4 callersFunctiontrust_proxy_headers
()
agentclaw/api/routers/public/access.py:106
↓ 4 callersMethodupdate_job
更新任务
agentclaw/scheduler/scheduler.py:195
↓ 4 callersMethodupload_document
( self, *, knowledgebase_id: str, data: bytes, filename: str,
agentclaw/knowledgebase/service.py:134
↓ 4 callersFunctionvalidate_download_file_size
(path: Path)
agentclaw/mcp/download_limits.py:41
↓ 4 callersMethodverify_room_token
(self, room_id: str, room_token: str)
agentclaw/api/services/public_room_service.py:462
↓ 3 callersMethod__init__
(self, **kwargs)
agentclaw/api/builtin_agent.py:196
↓ 3 callersFunction_add_line_numbers
给文本内容添加行号
agentclaw/mcp/builtin_servers/skill_tools.py:41
↓ 3 callersMethod_append_replace_syntax_feedback
(self, result: str, fp: Path)
agentclaw/mcp/builtin_servers/coding_tools.py:2127
↓ 3 callersFunction_apply_env_vars
写入当前进程环境,供即将启动的 server 使用
agentclaw/cli.py:710
↓ 3 callersMethod_apply_input_mapping
( self, sub_input: dict, parent_state: dict, mapping: Optional[Dict[str, str]]
agentclaw/node/sub_workflow.py:411
↓ 3 callersMethod_async_sync_prompts_to_redis
异步同步所有提示词到 Redis
agentclaw/prompt/manager.py:485
↓ 3 callersFunction_attach_project_runtime_config
(workflow: Any, project: Any)
agentclaw/agent_square/__init__.py:378
↓ 3 callersMethod_bounded_int
(value: Any, *, default: int, minimum: int, maximum: int)
agentclaw/mcp/builtin_servers/computer_tools.py:419
↓ 3 callersFunction_build_child_workflow_with_human_node
()
agentclaw/test/unit/test_sub_workflow_node.py:534
↓ 3 callersMethod_build_chunk
(self, chunk_index: int, content: str)
agentclaw/knowledgebase/splitter.py:57
↓ 3 callersFunction_build_daily_log_path
Convert a base log path into a dated daily log path.
agentclaw/logger/config.py:31
↓ 3 callersMethod_build_human_resume_value
从本次请求中提取 HumanNode 恢复值,保留按钮 value 的原始类型。
agentclaw/graph/workflow.py:2144
↓ 3 callersMethod_build_langgraph_config
Build LangGraph runtime config from AgentClaw workflow settings.
agentclaw/graph/workflow.py:845
↓ 3 callersMethod_build_thread_id
生成 thread_id,保持会话连续性
agentclaw/channels/__init__.py:112
↓ 3 callersMethod_build_tools
(self)
agentclaw/mcp/builtin_servers/computer_tools.py:47
↓ 3 callersMethod_bump_room_version
(self, room_id: str)
agentclaw/api/services/public_room_service.py:649
↓ 3 callersFunction_chunk_to_response
(record)
agentclaw/api/routers/admin/knowledgebases.py:94
↓ 3 callersFunction_client_identity
(request: Request)
agentclaw/api/routers/public/access.py:252
↓ 3 callersFunction_coerce_bool
(value: Any, default: bool = False)
agentclaw/api/services/settings_service.py:304
↓ 3 callersMethod_compute_signature
(self, timestamp: str, nonce: str, payload: str)
agentclaw/channels/wecom.py:698
↓ 3 callersMethod_count_tokens
(self, text: str)
agentclaw/knowledgebase/splitter.py:76
↓ 3 callersFunction_create_channel
工厂方法:根据类型创建 Channel 实例
agentclaw/channels/__init__.py:526
↓ 3 callersFunction_data_dir_child
Return a path under AGENTCLAW_DATA_DIR, or an empty string when unset.
agentclaw/config.py:23
↓ 3 callersMethod_detect_interrupt_from_snapshot
通过 snapshot 检测中断状态(兜底方案,兼容所有 LangGraph 版本)
agentclaw/graph/workflow.py:2083
↓ 3 callersFunction_docker_compose_command
返回固定项目名的 docker compose 基础命令
agentclaw/cli.py:424
↓ 3 callersMethod_ensure_checkpointer
确保 Checkpointer 已初始化
agentclaw/graph/workflow.py:616
↓ 3 callersMethod_ensure_feedback_table
(self)
agentclaw/api/services/conversation_service.py:97
↓ 3 callersFunction_ensure_page_state
(target_id: str)
agentclaw/mcp/browser_server.py:330
↓ 3 callersMethod_ensure_token
确保 token 有效,仅在过期时刷新
agentclaw/channels/feishu.py:805
↓ 3 callersMethod_ensure_tracing
确保追踪器已初始化(如果启用)
agentclaw/graph/workflow.py:1588
↓ 3 callersFunction_env_apply_scope
(name: str)
agentclaw/api/services/settings_service.py:259
↓ 3 callersMethod_execute_builtin
使用内置执行引擎(无持久化)
agentclaw/graph/workflow.py:2278
↓ 3 callersMethod_execute_workflow
核心执行逻辑
agentclaw/graph/workflow.py:1791
↓ 3 callersMethod_extra
(self, config: LLMConfig)
agentclaw/audio/providers/openai_audio.py:126
↓ 3 callersFunction_format_seconds
(seconds: float)
agentclaw/mcp/builtin_servers/skill_tools.py:173
↓ 3 callersMethod_get_config_file
获取工作流的配置文件路径
agentclaw/api/services/tool_config_service.py:129
↓ 3 callersMethod_get_encoding
(self)
agentclaw/knowledgebase/splitter.py:65
↓ 3 callersMethod_get_last_usage
获取最后一次调用的 usage 信息
agentclaw/runtime/tracing/wrappers.py:586
↓ 3 callersMethod_get_pool
(self)
agentclaw/api/services/public_room_chat_service.py:74
↓ 3 callersMethod_get_redis_key
获取 Redis 缓存 key
agentclaw/prompt/manager.py:269
← previousnext →401–500 of 3,963, ranked by callers