MCPcopy Create free account

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

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

↓ 3 callersMethod_get_trace_summary_aggregate
统一的追踪汇总查询,供仪表盘/执行追踪等场景复用。
agentclaw/runtime/tracing/db_tracer.py:263
↓ 3 callersMethod_init_clients
初始化所有模型的 LLM 客户端
agentclaw/model/manager.py:575
↓ 3 callersFunction_is_mcp_cleanup_error
检查是否是 MCP 清理时的错误
agentclaw/mcp/__init__.py:142
↓ 3 callersFunction_is_placeholder_env_value
(value: str)
agentclaw/cli.py:89
↓ 3 callersFunction_load_models_config
(path: Path)
agentclaw/api/services/settings_service.py:589
↓ 3 callersFunction_load_project_env
在导入项目 server.py 前加载项目 .env
agentclaw/cli.py:143
↓ 3 callersFunction_load_project_env
()
agentclaw/skills/builtin_skills/image-generation/scripts/openai_generate_image.py:20
↓ 3 callersFunction_looks_like_base64
(s: str)
agentclaw/database/file_storage.py:519
↓ 3 callersFunction_messages_prefix_hash
(messages: list[dict], *, limit: int = 8)
agentclaw/model/manager.py:2137
↓ 3 callersFunction_models_config_path
(config: Any)
agentclaw/api/services/settings_service.py:582
↓ 3 callersMethod_normalize_file_input
(self, item: Any)
agentclaw/node/document.py:125
↓ 3 callersMethod_normalize_interrupt_state
标准化中断返回字段,方便外层识别嵌套工作流中断。
agentclaw/graph/workflow.py:2131
↓ 3 callersFunction_open_public_session
(public_api_client, workflow_id: str)
agentclaw/test/api/test_management_api_contracts.py:30
↓ 3 callersMethod_parse_file
解析单个文件
agentclaw/node/document.py:207
↓ 3 callersMethod_parse_line_col
(self, text: str)
agentclaw/mcp/builtin_servers/coding_tools.py:432
↓ 3 callersMethod_parse_row
(row)
agentclaw/api/services/conversation_service.py:125
↓ 3 callersMethod_prefix_matches
(path: str, prefix: str)
agentclaw/api/upload_limits.py:85
↓ 3 callersFunction_project_agents_dir
(project_dir: Path)
agentclaw/agent_square/__init__.py:91
↓ 3 callersFunction_prompt_generated_secret
让用户输入密钥;留空时自动生成
agentclaw/cli.py:894
↓ 3 callersMethod_provider
(self, config: LLMConfig, model_type: str)
agentclaw/audio/service.py:46
↓ 3 callersFunction_public_max_tts_chars
()
agentclaw/api/routers/public/audio.py:64
↓ 3 callersFunction_public_room_stream_event
(room_id: str, event: dict[str, Any], *, participant: dict[str, Any] | None = None)
agentclaw/api/routers/public/rooms.py:122
↓ 3 callersMethod_push_post_tool_retry
(self, *, error: str, attempt: int, max_attempts: int)
agentclaw/runtime/harness/agent_harness.py:629
↓ 3 callersMethod_push_tool_result
(self, channel: Any, call: ToolCallEnvelope, envelope: ToolResultEnvelope, batch_id: str)
agentclaw/runtime/harness/tool_executor.py:246
↓ 3 callersMethod_read_file
Read file content with smart format handling
agentclaw/mcp/builtin_servers/skill_tools.py:1269
↓ 3 callersFunction_read_timeout_arg
Read a positive timeout from tool arguments.
agentclaw/mcp/builtin_servers/skill_tools.py:161
↓ 3 callersFunction_register_hot_workflow
( client: httpx.Client, admin_token: str, workflow_id: str, )
agentclaw/test/real/test_real_environment_api.py:395
↓ 3 callersFunction_render_comment
(text: str)
agentclaw/env_config.py:304
↓ 3 callersMethod_render_edge_endpoint
(self, value: str, variables: Dict[str, Any], id_map: Dict[str, str])
agentclaw/graph/template.py:107
↓ 3 callersFunction_require_public_page_owner
(request: Request, workflow_id: str)
agentclaw/api/routers/public/rooms.py:192
↓ 3 callersFunction_resolve_env_vars
递归替换 ${ENV_VAR} 为环境变量值
agentclaw/channels/__init__.py:512
↓ 3 callersMethod_resolve_explicit_path
解析显式配置路径(支持相对路径,按候选 base 目录兜底)。
agentclaw/graph/workflow.py:333
↓ 3 callersMethod_resolve_model
(self, model_id: str | None, expected_type: str)
agentclaw/audio/service.py:30
↓ 3 callersMethod_resolve_server_base_url
Resolve the server base URL from relay config or environment.
agentclaw/mcp/builtin_servers/skill_tools.py:264
↓ 3 callersFunction_room_event_channel
(room_id: str)
agentclaw/api/services/public_room_service.py:200
↓ 3 callersMethod_row_to_channel
(row)
agentclaw/channels/store.py:433
↓ 3 callersMethod_row_to_kb
(self, row)
agentclaw/knowledgebase/store.py:673
↓ 3 callersMethod_run_exec_process
( self, cmd: list[str], *, cwd: str, env: dict[str, str], time
agentclaw/mcp/builtin_servers/skill_tools.py:375
↓ 3 callersMethod_run_subprocess
( self, cmd: List[str], *, timeout: Optional[float] = None, cwd: Optio
agentclaw/mcp/builtin_servers/coding_tools.py:168
↓ 3 callersFunction_sanitize_for_log
(value: Any, *, key: str = "")
agentclaw/test/real/test_real_environment_api.py:163
↓ 3 callersMethod_search
Execute search via SearXNG API
agentclaw/mcp/builtin_servers/search_tools.py:162
↓ 3 callersFunction_service
(tmp_path)
agentclaw/test/api/test_settings_maintenance_config.py:9
↓ 3 callersMethod_start_bot_worker
(self)
agentclaw/channels/wecom.py:303
↓ 3 callersMethod_sync_document_chunks
(self, knowledgebase_id: str, document_id: str)
agentclaw/knowledgebase/service.py:623
↓ 3 callersFunction_target_dir_for_app
(app_id: str, project_dir: Path)
agentclaw/agent_square/__init__.py:95
↓ 3 callersFunction_terminate_async_process_tree
Terminate an asyncio subprocess and its child process group when possible.
agentclaw/mcp/builtin_servers/skill_tools.py:177
↓ 3 callersMethod_to_info
转换为工作流信息
agentclaw/api/services/workflow_service.py:285
↓ 3 callersFunction_tools_signature
(tools: Optional[List[dict]])
agentclaw/model/manager.py:2168
↓ 3 callersMethod_track_background_task
(self, task: asyncio.Task)
agentclaw/channels/dingtalk.py:190
↓ 3 callersFunction_truthy_override
(value: Any)
agentclaw/api/services/settings_service.py:748
↓ 3 callersFunction_type_to_json_type
Python 类型转 JSON Schema 类型
agentclaw/inputs/types.py:310
↓ 3 callersFunction_upsert_env_file
向 .env 补齐一组环境变量。 默认不覆盖已经生效的用户配置;模板中的注释配置可被启用为本次模式的默认值。 当 overwrite=True 时,只覆盖传入 env_vars 对应的已有配置。
agentclaw/cli.py:719
↓ 3 callersMethod_windows_press_vk
(self, vk: int)
agentclaw/mcp/builtin_servers/computer_tools.py:313
↓ 3 callersFunction_workflow_entry_module
(entry: str)
agentclaw/agent_square/__init__.py:99
↓ 3 callersFunction_write_env_updates
(project_dir: Path, updates: dict[str, str], section_title: str)
agentclaw/api/services/settings_service.py:445
↓ 3 callersFunction_write_models
(path: Path)
agentclaw/test/unit/test_audio_service.py:13
↓ 3 callersMethodadd_conditional_edge
添加条件边
agentclaw/graph/workflow.py:1294
↓ 3 callersMethodadd_usage
累加 token 使用量(用于多次 LLM 调用)
agentclaw/runtime/streaming/context.py:425
↓ 3 callersFunctionapply_security_headers
(response: Response, *, csp: str | None = None)
agentclaw/api/security_headers.py:43
↓ 3 callersMethodaput
(self, config: Dict[str, Any], checkpoint: Dict[str, Any], metadata: Dict[str, Any], new_versions: Dict[str, A
agentclaw/state/checkpointer.py:122
↓ 3 callersMethodaupdate_state
(self, config, state)
agentclaw/test/api/test_public_execution_contracts.py:2467
↓ 3 callersFunctionbuildWorkflowRunInputs
({ baseInputs = {}, userInput, inputField = '', humanInput = null, } = {})
agentclaw/admin-dashboard/src/api/index.js:121
↓ 3 callersFunctionbuild_vision_messages
构建包含图像的消息列表 Args: prompt: 用户文本提示 images: 图像列表 system_prompt: 系统提示 provider: LLM 提供商(openai/anthro
agentclaw/model/vision.py:224
↓ 3 callersFunctioncollect_public_user_input_content
( *, user_value: Any, input_data: Any, user_input_field: str | None, )
agentclaw/api/services/safety_guard_service.py:166
↓ 3 callersMethodcompress
压缩上下文 Args: messages: 消息列表 llm_manager: LLM 管理器实例(如果初始化时未提供) Returns: (compress
agentclaw/runtime/context_compressor.py:125
↓ 3 callersMethodconnect
连接所有 MCP Server Returns: {server_name: error_message or None}
agentclaw/mcp/toolkit.py:102
↓ 3 callersMethodconnect_all
连接所有启用的 Server Returns: {server_name: error_message or None}
agentclaw/mcp/manager.py:125
↓ 3 callersMethodcopy
返回共享 _accessed_keys 的新 StateProxy
agentclaw/runtime/tracing/wrappers.py:119
↓ 3 callersFunctiondeath_shot_role_name
(kind: str)
agentclaw/agent_square/werewolf_agent/agents/werewolf_machine.py:812
↓ 3 callersMethoddelete_by_key
通过 storage key 删除文件(不删数据库记录)
agentclaw/database/file_storage.py:404
↓ 3 callersMethoddelete_chunks
(self, collection_name: str, chunk_ids: List[str])
agentclaw/knowledgebase/vector_store.py:306
↓ 3 callersMethodembed_texts
(self, texts: List[str], *, model_id: str = "")
agentclaw/knowledgebase/model_gateway.py:124
↓ 3 callersFunctionescapeHtml
(value)
agentclaw/admin-dashboard/src/utils/sanitize.js:33
↓ 3 callersMethodexpire
(self, key, _ttl)
agentclaw/test/api/test_public_room_api.py:64
↓ 3 callersFunctionextract_bearer_token
Extract a Bearer token from the Authorization header.
agentclaw/api/auth/dependencies.py:35
↓ 3 callersFunctionfetchData
()
agentclaw/admin-dashboard/src/composables/useList.js:16
↓ 3 callersMethodfinish
结束流
agentclaw/runtime/streaming/context.py:663
↓ 3 callersFunctionfinish_game
(game: dict[str, Any], winner: str, message: str)
agentclaw/agent_square/werewolf_agent/agents/werewolf_rules.py:25
↓ 3 callersFunctionformatCompact
(num, divisor, suffix)
agentclaw/admin-dashboard/src/composables/useFormatters.js:58
↓ 3 callersMethodfrom_config
从配置文件创建 Manager
agentclaw/mcp/manager.py:55
↓ 3 callersMethodfrom_dict
(cls, data: dict)
agentclaw/api/auth/api_key.py:87
↓ 3 callersFunctiongetCanonicalDashboardUrl
(locationLike)
agentclaw/admin-dashboard/src/utils/canonicalHost.js:3
↓ 3 callersFunctiongetStoredLocale
()
agentclaw/admin-dashboard/src/i18n/index.js:37
↓ 3 callersMethodget_answer
获取完整的 answer(所有输出拼接)
agentclaw/runtime/streaming/context.py:724
↓ 3 callersFunctionget_channel_manager
()
agentclaw/channels/routes.py:40
↓ 3 callersFunctionget_checkpointer
获取全局检查点器
agentclaw/state/checkpointer.py:305
↓ 3 callersMethodget_config
获取工作流的工具配置
agentclaw/api/services/tool_config_service.py:57
↓ 3 callersFunctionget_conversation_service
()
agentclaw/api/services/conversation_service.py:500
↓ 3 callersFunctionget_current_session
获取当前调试会话
agentclaw/runtime/debugger.py:213
↓ 3 callersMethodget_document_chunk_ids
(self, document_id: str)
agentclaw/knowledgebase/store.py:448
↓ 3 callersMethodget_fallback_state
获取降级状态详情 Returns: 降级状态字典,包含: - is_fallback: 是否处于降级状态 - fallback_reason: 降级原因
agentclaw/model/manager.py:2010
↓ 3 callersMethodget_global
(self)
agentclaw/api/services/settings_service.py:1034
↓ 3 callersMethodget_instance
(cls)
agentclaw/mcp/token_manager.py:179
↓ 3 callersMethodget_key
(self, role: str, name: Optional[str] = None)
agentclaw/mcp/browser_server.py:497
↓ 3 callersMethodget_knowledgebase
(self, knowledgebase_id: str)
agentclaw/knowledgebase/service.py:96
↓ 3 callersMethodget_knowledgebase
(self, knowledgebase_id: str)
agentclaw/knowledgebase/store.py:144
↓ 3 callersFunctionget_knowledgebase_service
()
agentclaw/knowledgebase/__init__.py:45
↓ 3 callersMethodget_model
获取单个模型信息
agentclaw/api/services/model_service.py:61
↓ 3 callersMethodget_model_info
获取单个模型的详细信息 Args: model_id: 模型 ID Returns: 模型信息字典,如果不存在返回 None
agentclaw/model/manager.py:2070
↓ 3 callersFunctionget_public_room_chat_service
()
agentclaw/api/services/public_room_chat_service.py:266
← previousnext →501–600 of 3,963, ranked by callers