MCPcopy Create free account

hub / github.com/TencentCloud/Octop / functions

Functions12,485 in github.com/TencentCloud/Octop

↓ 26 callersFunctiontr
(key: str, locale: Locale, **kwargs: object)
src/octop/i18n/domains/slash.py:11
↓ 26 callersFunctionuseAgent
()
dashboard/src/context/AgentContext.tsx:307
↓ 25 callersFunctiononChange
()
dashboard/src/pages/Chat/components/TurnTimelineRail.tsx:121
↓ 25 callersMethodregister
( self, connection_id: str, send_fn: SendFn, *, user_id: int | None =
src/octop/infra/gateway/ws/ws_hub.py:43
↓ 25 callersMethodstart
(self)
src/octop/infra/server.py:281
↓ 24 callersFunction_cron_id
()
tests/unit/cron/test_cron_manager.py:99
↓ 24 callersFunction_make_agent
Insert agent + owner user; return (agent_id, user_id).
tests/unit/cron/test_cron_manager.py:45
↓ 24 callersFunction_row
( *, agent_id: str = "01AGENT", config_json: str | None = None, default_model: str | None = No
tests/unit/agents/test_agent_manager.py:72
↓ 24 callersFunctionact
(fn)
src/octop/infra/agents/plugins/bundled/tetris/ui/index.js:245
↓ 24 callersFunctioncreate_system_backup
Write a ``.tar.gz`` archive to *dest* (streamed to disk). Configuration, agent workspaces, skill packages, plugins, and knowledge files can b
src/octop/infra/backup/system_archive.py:187
↓ 24 callersFunctionread_password
Return the wizard password, or ``None`` if the file is absent/empty. Supports two layouts: * Plain — the password is the file's first non-e
src/octop/infra/setup/password_file.py:39
↓ 24 callersFunctionrequire_running_workspace
Auth-checked :class:`BackendWorkspace` for a running agent. PATCH /agents triggers a background ``arebuild_agent`` that briefly removes the l
src/octop/api/common/workspace.py:37
↓ 24 callersMethodtext
(self, line: str)
src/octop/infra/gateway/process/processor.py:94
↓ 23 callersFunction_load_module
(path: Path, name: str)
tests/unit/agents/test_clinical_learning_subscription_template.py:18
↓ 23 callersFunction_serialize_history_message
Project a LangGraph checkpoint message into dashboard history shape.
src/octop/api/routers/chat/serialize.py:915
↓ 23 callersMethodbuild_harness_configs
(self)
src/octop/infra/agents/providers/store.py:134
↓ 23 callersMethoddashboard_key
(*, agent_id: str, user_id: int)
src/octop/infra/gateway/threads.py:49
↓ 23 callersFunctionfind_adb
Locate ``adb`` without guessing OS-specific install layouts. Resolution order: 1. ``PATH`` via ``shutil.which("adb")`` (covers ``adb.exe`` on
src/octop/infra/mobile/adb.py:22
↓ 23 callersMethodget
(self, event_id: str)
src/octop/infra/trajectory/store.py:47
↓ 23 callersMethodget_bound_thread_id
(self, session_key: str)
src/octop/infra/gateway/threads.py:197
↓ 22 callersFunction_map_knowledge_error
( exc: Exception, *, locale: str, server: OctopServer | None = None )
src/octop/api/routers/knowledge_bases.py:201
↓ 22 callersFunction_table_exists
(db: DatabasePool, table: str)
src/octop/infra/db/migrate.py:96
↓ 22 callersMethodflush
Commit changed messages before the caller forwards the current event.
src/octop/infra/history/recorder.py:335
↓ 22 callersMethodobserve_chunk
(self, *_args: object, **_kwargs: object)
tests/unit/gateway/test_processor_trajectory_observe.py:38
↓ 22 callersMethodrefresh
Re-scan the library directory; quietly skip malformed entries.
src/octop/infra/agents/experts/catalog.py:672
↓ 22 callersMethodremove
(self, username: str)
src/octop/infra/users/manager.py:724
↓ 22 callersMethodreset
( self, *, agent_id: str, user_id: int, channel_type: str, cha
src/octop/infra/gateway/threads.py:247
↓ 22 callersMethodupdate_config
( self, agent_id: str, *, name: str | None | object = UNSET, descripti
src/octop/infra/db/repos/agents.py:201
↓ 21 callersFunction_require_agent_access
( agent_id: str, *, user: Any, as_user: int | None, server: Any, )
src/octop/api/routers/channels.py:104
↓ 21 callersFunctioncall_memory_rpc
( *, agent_id: str, method: str, params: dict[str, Any] | None, user: Any, as_user: in
src/octop/api/common/memory_client.py:146
↓ 21 callersFunctiongetAuthToken
()
dashboard/src/api/request.ts:52
↓ 21 callersMethodget_document
(self, doc_id: str)
src/octop/infra/db/repos/knowledge.py:343
↓ 21 callersMethodhandle
(self, cmd: SlashCommand, ctx: SlashCtx, sink: SlashSink)
src/octop/infra/gateway/slash/dispatcher.py:33
↓ 21 callersMethodload
(self)
src/octop/infra/agents/security/policy_store.py:32
↓ 20 callersMethodainvoke
(self, *_a: Any, **_k: Any)
tests/unit/agents/test_mcp_tool_cache.py:55
↓ 20 callersFunctioncopyText
(text: string)
dashboard/src/utils/copyText.ts:13
↓ 20 callersMethodlocalized
( cls, code: ErrorCode, locale: str | Locale = "en", *, message: str |
src/octop/infra/errors.py:238
↓ 20 callersMethodsave
( self, *, enabled: bool, public_key: str, host: str, secret_k
src/octop/infra/agents/langfuse.py:98
↓ 19 callersMethodobserve
(self, chunk: dict[str, Any])
src/octop/infra/history/recorder.py:118
↓ 18 callersFunction_knowledge_service
(server: OctopServer)
src/octop/api/routers/knowledge_bases.py:142
↓ 18 callersFunction_mutate_state
( root: Path, mutator: Callable[[dict[str, Any]], Any], )
src/octop/infra/agents/experts/library/clinical-learning-subscription/scripts/clinical_profile.py:666
↓ 18 callersMethodagent_workspace
Global agent workspace: ~/.octop/agents/<agent_id>/
src/octop/infra/utils/paths.py:82
↓ 18 callersFunctionbool_int
(value: bool)
src/octop/infra/db/repos/_base.py:26
↓ 18 callersMethodensure_agent_workspace
(self, agent_id: str)
scripts/smoke_memory_api.py:27
↓ 18 callersFunctionfail_octop
(exc: OctopError)
src/octop/cli/support/errors.py:12
↓ 18 callersFunctionfake_bin_path
Host-agnostic fake binary path for mocks (never opened as a real file). Prefer this over hard-coded ``/usr/bin/...`` strings so argv assertions s
tests/support/fakes.py:25
↓ 18 callersMethodget_or_create
(self, k: str, factory: Callable[[], bytes])
src/octop/infra/db/repos/secrets.py:20
↓ 18 callersFunctionlang_of
(ctx: SlashCtx)
src/octop/infra/gateway/slash/ctx.py:46
↓ 18 callersMethodlist_by_agent
( self, agent_id: str, *, include_disabled: bool = True, user_id: int
src/octop/infra/cron/manager.py:149
↓ 18 callersFunctionrefresh
()
dashboard/src/pages/KnowledgeBases/index.tsx:953
↓ 18 callersFunctionrestore_system_backup
Restore database, workspaces, and optional config from a tar.gz archive. *source* may be a filesystem path (preferred) or in-memory bytes (tests
src/octop/infra/backup/system_archive.py:419
↓ 18 callersMethodstop
(self)
src/octop/infra/server.py:522
↓ 18 callersFunctionwithFromWorkspace
(url: string)
dashboard/src/utils/fromWorkspace.ts:5
↓ 17 callersFunction_connector_service
(server: Any)
src/octop/api/routers/connectors.py:268
↓ 17 callersFunction_is_admin
(user: User)
src/octop/api/routers/knowledge_bases.py:181
↓ 17 callersFunctionbuild_trigger
Parse 'cron:<expr>' / 'interval:<seconds>' / 'date:<ISO>'.
src/octop/infra/cron/trigger.py:62
↓ 17 callersMethoddecrypt
(self, instance_id: str)
src/octop/infra/connectors/service.py:101
↓ 17 callersMethodfinish
(self, *, completed: bool)
src/octop/infra/history/recorder.py:373
↓ 17 callersMethodget_by_name
(self, name: str)
src/octop/infra/db/repos/backends.py:100
↓ 17 callersMethodget_models
Return the models list from ``models_json``.
src/octop/infra/db/repos/providers.py:53
↓ 17 callersFunctionnotify
(state: SessionStreamState)
dashboard/src/pages/Chat/hooks/chatStore.ts:372
↓ 17 callersFunctionoctop_client
Start OctopServer, yield ``(httpx client, server)``, then stop. Greenfield starts defer the control-plane DB until ``/setup/database``. Most
tests/support/app.py:38
↓ 17 callersMethodon_provider_changed
Sync harness factory from DB, then reload impacted agents (awaited). When *provider_name* or *active_model_changed* is set, only the impact s
src/octop/infra/agents/manager.py:1189
↓ 17 callersMethodpush
(self, connection_id: str, frame: dict[str, Any])
src/octop/infra/gateway/ws/ws_hub.py:114
↓ 17 callersFunctionrequire_agent_owner_row
Load an agent row and require owner-level access.
src/octop/api/common/agent.py:64
↓ 17 callersMethodresolve_workspace_dir
On-disk workspace for Octop host FS ops (delete, memory path, …). May map agent-facing ``/.octop/workspaces/…`` onto scoped ``root_dir``.
src/octop/infra/agents/manager.py:879
↓ 17 callersMethodvalidate
(self, code: str)
src/octop/infra/users/invites.py:133
↓ 17 callersFunctionwrite_inbound
Persist bytes under ``inbound/{unix_ts}_{original}``.
src/octop/infra/gateway/media/inbound_store.py:400
↓ 16 callersFunction_request
()
tests/unit/api/test_knowledge_bases.py:16
↓ 16 callersFunction_require_clean
(label: str, value: str, *, max_length: int = 240)
src/octop/infra/agents/experts/library/clinical-learning-subscription/scripts/clinical_profile.py:334
↓ 16 callersFunctionopen_database
Return a DB pool for the configured driver. When ``config.json`` has no ``database`` section and no ``OCTOP_DATABASE_*`` env overrides are se
src/octop/infra/db/factory.py:34
↓ 16 callersFunctionrequestBlob
( path: string, options: RequestInit = {}, onProgress?: (loaded: number, total: number) => void, )
dashboard/src/api/request.ts:353
↓ 16 callersFunctionshowApiError
( error: unknown, fallback: string, t?: TFunction, )
dashboard/src/utils/showApiToast.ts:7
↓ 16 callersFunctionsnapshot_env
(environ: Mapping[str, str] | None = None)
src/octop/infra/auth/captcha/config.py:30
↓ 15 callersFunction_body
(decisions: list[dict])
tests/unit/api/test_hitl_resume_validation.py:11
↓ 15 callersFunction_questions
(actions: list[dict])
tests/unit/gateway/test_hitl_ask_user.py:92
↓ 15 callersFunction_service
(tmp_path: Path)
tests/unit/trajectory/test_trajectory_service.py:38
↓ 15 callersFunctionassert_safe_host_path
Resolve *path* and reject traversal tricks / disallowed host locations. When *restrict_to_home* is true, only the process home directory and its
src/octop/infra/utils/host_dirs.py:142
↓ 15 callersFunctioncontent_disposition
Return a ``Content-Disposition`` header value safe for Starlette/ASGI. HTTP header values must encode as latin-1. Non-ASCII names use RFC 5987
src/octop/api/common/content_disposition.py:23
↓ 15 callersMethodcreate_document
( self, *, kb_id: str, filename: str, content_type: str, byte_
src/octop/infra/db/repos/knowledge.py:280
↓ 15 callersMethoddeliver
Run one delivery under the target channel session lock.
src/octop/infra/cron/delivery.py:67
↓ 15 callersMethodget
(self, slug: str)
src/octop/infra/agents/subagents/catalog.py:548
↓ 15 callersFunctiongetApiUrl
(path: string)
dashboard/src/api/config.ts:8
↓ 15 callersMethodget_custom_servers
(self, user_id: int)
src/octop/infra/connectors/service.py:155
↓ 15 callersMethodget_thread
(self, thread_id: str)
src/octop/infra/gateway/threads.py:352
↓ 15 callersFunctioninbound_rel_path
Map harness ``MediaBackend`` key to workspace-relative ``inbound/`` path.
src/octop/infra/gateway/media/inbound_store.py:253
↓ 15 callersMethodlist_rows
Return all enabled agent rows (all users), sorted by creation time.
src/octop/infra/agents/manager.py:833
↓ 15 callersMethodlist_visible
(self, user_id: int)
src/octop/infra/db/repos/knowledge.py:174
↓ 15 callersFunctionload
()
dashboard/src/pages/Agent/Workspace/components/MediaPreview.tsx:56
↓ 15 callersMethodpackage_skills_dir
(self, pack_id: str)
src/octop/infra/skills/skill_package_store.py:86
↓ 15 callersMethodpage
( self, thread_id: str, *, limit: int, cursor: str | None, leg
src/octop/infra/history/service.py:207
↓ 15 callersMethodread
(self, size: int = -1)
src/octop/api/common/upload_limit.py:13
↓ 15 callersMethodrecord
Append one usage row. Returns the new row id.
src/octop/infra/db/repos/usage.py:145
↓ 15 callersFunctionset_test_siteverify_url
(slug: str, url: str | None)
src/octop/infra/auth/captcha/verify.py:25
↓ 15 callersMethodsubscribe
Add *connection_id* as a subscriber for *thread_id*. Switching threads unsubscribes this connection from the previous thread. Other c
src/octop/infra/gateway/ws/ws_hub.py:73
↓ 15 callersMethodto_dict
(self)
src/octop/cli/support/db.py:106
↓ 15 callersFunctionuseServerTimezone
()
dashboard/src/hooks/useServerTimezone.ts:28
↓ 15 callersFunctionuserCan
( user: PermissionHolder | null | undefined, key: string, )
dashboard/src/utils/permissions.ts:78
↓ 14 callersFunction_call
(name: str, args: dict[str, Any] | None = None)
tests/unit/connectors/test_tencent_ima.py:39
↓ 14 callersFunction_seed_test_provider
(manager: AgentManager)
tests/unit/agents/test_agent_manager.py:60
← previousnext →101–200 of 12,485, ranked by callers