MCPcopy Create free account

hub / github.com/langchain-ai/deepagents / functions

Functions17,176 in github.com/langchain-ai/deepagents

↓ 2,774 callersMethodpause
Pause the animation and update status. Args: status: Status to show while paused
libs/code/deepagents_code/widgets/loading.py:180
↓ 1,069 callersMethodget
(self, namespace: tuple[str, ...], key: str)
libs/code/tests/unit_tests/test_agent.py:67
↓ 1,015 callersMethodquery_one
(selector: object, *_args: object)
libs/code/tests/unit_tests/test_app.py:264
↓ 950 callersMethodappend
Add a new message to the store. Args: message: The message data to add.
libs/code/deepagents_code/widgets/message_store.py:459
↓ 839 callersMethodget
Return the notification for *key*, or `None` when not registered.
libs/code/deepagents_code/notifications.py:180
↓ 621 callersMethodappend
(self, level: str, args: tuple[Any, ...])
libs/partners/quickjs/langchain_quickjs/_repl.py:159
↓ 364 callersFunctioncreate_deep_agent
r"""Create a deep agent. By default, this agent has access to the following tools: - `write_todos`: manage a todo list - `ls`, `read_fil
libs/deepagents/deepagents/graph.py:297
↓ 314 callersFunctiontool_call
Create a `ToolCall` efficiency assertion. Args: name: Expected tool name. step: Optional 1-indexed step to restrict the search to
libs/evals/tests/evals/utils.py:907
↓ 306 callersMethod_mount_message
Mount a message widget to the messages area. This method also stores the message data and handles pruning when the widget count excee
libs/code/deepagents_code/app.py:11045
↓ 289 callersMethoditems
Yield items while mutating the dict mid-iteration.
libs/code/tests/unit_tests/test_textual_adapter.py:3591
↓ 276 callersMethodpush_screen
( _screen: object, callback: Callable[[str | None], None], )
libs/code/tests/unit_tests/test_app.py:1882
↓ 252 callersMethodinvoke
(self, messages, config=None, **kw)
libs/deepagents/tests/unit_tests/test_eviction_replay.py:29
↓ 249 callersMethodclear
Clear all tracked media and reset counters.
libs/code/deepagents_code/input.py:181
↓ 208 callersMethodget
Send a GET request and decode JSON. Args: path: Absolute bridge endpoint path. Returns: JSON-decoded respons
libs/talon/deepagents_talon/channels/whatsapp.py:202
↓ 193 callersFunctionfinal_text_contains
Create a `FinalTextContains` success assertion. Args: text: The substring to look for in the final agent text. case_insensitive:
libs/evals/tests/evals/utils.py:757
↓ 166 callersMethod_handle_command
Handle a slash command. Args: command: The slash command (including /)
libs/code/deepagents_code/app.py:9184
↓ 164 callersFunctionget_glyphs
Get the glyph set for the current charset mode. Returns: The appropriate Glyphs instance based on charset mode detection.
libs/code/deepagents_code/config.py:1164
↓ 157 callersMethodexit
Exit the app after shutting down background resources. Args: result: Return value passed to the app runner. return_co
libs/code/deepagents_code/app.py:11843
↓ 149 callersMethodwrite
(self, s: str)
libs/code/tests/unit_tests/test_clipboard.py:272
↓ 143 callersMethodadd
Insert or replace a subagent record, preserving arrival order.
libs/code/deepagents_code/widgets/subagent_panel.py:118
↓ 133 callersFunctionparse_args
Parse command line arguments. Returns: Parsed arguments namespace.
libs/code/deepagents_code/main.py:1142
↓ 126 callersMethodload
Load config from file. When called with the default path, results are cached for the lifetime of the process. Use `clear_caches()` to
libs/code/deepagents_code/model_config.py:2321
↓ 122 callersMethodindex
Row index in the parent list.
libs/code/deepagents_code/widgets/notification_center.py:113
↓ 116 callersMethoddecode
(self, *_args: object)
libs/deepagents/tests/unit_tests/middleware/test_video.py:269
↓ 115 callersMethodsuccess
Append correctness assertions that hard-fail the test when violated. Args: *assertions: One or more `SuccessAssertion` instances.
libs/evals/tests/evals/utils.py:953
↓ 110 callersMethodwrite
Write file content to the mapped real path.
libs/deepagents/tests/unit_tests/test_local_sandbox_operations.py:162
↓ 108 callersMethodexpect
Append efficiency assertions that are logged but never fail. Args: agent_steps: Expected number of agent steps. tool_
libs/evals/tests/evals/utils.py:967
↓ 104 callersMethodrender
Render the model label with width-aware truncation. Returns: Text content, truncated from the left when necessary.
libs/code/deepagents_code/widgets/status.py:106
↓ 104 callersFunctionrun_agent
Run agent eval against the given query. Args: agent: The compiled state graph to invoke. query: A string prompt or list of messag
libs/evals/tests/evals/utils.py:1186
↓ 103 callersMethodexecute
Delegate to internal mock so callers can assert calls.
libs/code/tests/unit_tests/test_local_context.py:59
↓ 86 callersFunction_app_test_double
Return `app` as dynamic for test-only Textual method patching. Textual apps expose real methods at type-check time, but these tests replace t
libs/code/tests/unit_tests/test_thread_selector.py:2952
↓ 85 callersFunctionregister_harness_profile
Register a harness profile for a provider or specific model. !!! beta `deepagents.profiles` exposes beta APIs that may receive minor cha
libs/deepagents/deepagents/profiles/harness/harness_profiles.py:980
↓ 84 callersFunction_runtime
(tool_call_id="")
libs/deepagents/tests/unit_tests/test_middleware.py:79
↓ 84 callersMethodload
Load state from the user-local deploy cache. Returns an empty state if the file does not exist. With `reset=True`, deletes the file (
libs/cli/deepagents_cli/deploy/state.py:57
↓ 82 callersMethodclose
Mark the group complete; no further members will join.
libs/code/deepagents_code/widgets/messages.py:2804
↓ 80 callersMethodget
(self, thread_id: str)
libs/partners/quickjs/langchain_quickjs/_repl.py:955
↓ 79 callersMethodopen
(_url: str, *_args: Any, **_kwargs: Any)
libs/code/tests/unit_tests/test_openai_codex_integration.py:691
↓ 76 callersFunctionmake_mock_model
Create a mock LLM model for summarization. Args: summary_response: The text to return as the summary for testing purposes.
libs/deepagents/tests/unit_tests/middleware/test_summarization_middleware.py:240
↓ 76 callersMethodshow_selector
Show the thread selector screen.
libs/code/tests/unit_tests/test_thread_selector.py:162
↓ 75 callersMethodstop
Stop the animation (widget will be removed by caller).
libs/code/deepagents_code/widgets/loading.py:225
↓ 74 callersMethodvalues
Yield values while mutating the dict mid-iteration.
libs/code/tests/unit_tests/test_textual_adapter.py:3610
↓ 73 callersFunction_patch_list_threads
Return a patch context manager for `list_threads`. Args: threads: Thread list to return. Defaults to `MOCK_THREADS`.
libs/code/tests/unit_tests/test_thread_selector.py:63
↓ 71 callersFunctioncreate_model
Create a chat model. Uses `init_chat_model` for standard providers, or imports a custom `BaseChatModel` subclass when the provider has a `cla
libs/code/deepagents_code/config.py:4095
↓ 71 callersFunctionformat_tool_display
Format tool calls for display with tool-specific smart formatting. Shows the most relevant information for each tool type rather than all argumen
libs/code/deepagents_code/tool_display.py:139
↓ 70 callersFunctionmake_mock_runtime
Create a mock `Runtime`. Note: `Runtime` does not have a `config` attribute. Config is accessed via `get_config()` from langgraph's contextva
libs/deepagents/tests/unit_tests/middleware/test_summarization_middleware.py:208
↓ 69 callersFunctionextract_command_types
Extract all command types from a shell command, handling && separators. For security-sensitive commands (python, node, npm, uv, etc.), includes t
libs/acp/deepagents_acp/utils.py:152
↓ 65 callersMethodainvoke
(self, messages, config=None, **kw)
libs/deepagents/tests/unit_tests/test_eviction_replay.py:32
↓ 64 callersFunction_pause_for_strip
Wait two frames so the prefix-strip text-change event propagates.
libs/code/tests/unit_tests/test_chat_input.py:848
↓ 63 callersMethodput
( self, namespace: tuple[str, ...], key: str, value: Mapping[str, Any], )
libs/code/tests/unit_tests/test_agent.py:59
↓ 61 callersFunction_make_backend
Create a StoreBackend backed by InMemoryStore, optionally pre-populated with files.
libs/deepagents/tests/unit_tests/test_middleware.py:60
↓ 60 callersMethodon_subagent_event
Apply one validated subagent lifecycle event. The caller (textual adapter) has already checked `type == "subagent"` and that this is
libs/code/deepagents_code/widgets/subagent_panel.py:327
↓ 59 callersMethodwrite
Create a new file, routing to appropriate backend. Args: file_path: Absolute file path. content: File content as a st
libs/deepagents/deepagents/backends/composite.py:509
↓ 58 callersMethodexecute
Execute a command using subprocess on the local machine. Args: command: Full shell command string to execute. timeout
libs/deepagents/tests/unit_tests/test_local_sandbox_operations.py:98
↓ 56 callersMethodwait
Wait for the authorization callback and return `(code, state)`. Returns: The OAuth authorization code and optional state.
libs/code/deepagents_code/mcp_auth.py:706
↓ 55 callersFunction_make_model
Create a mock BaseChatModel with model_name set.
libs/code/tests/unit_tests/test_configurable_model.py:29
↓ 55 callersMethodupload_files
Upload multiple files to the filesystem. Args: files: List of `(path, content)` tuples where content is bytes. Returns:
libs/deepagents/deepagents/backends/filesystem.py:1075
↓ 54 callersFunctioncall_wrap_model_call
Helper to call wrap_model_call and capture what was passed to handler. Args: middleware: The middleware instance to test. state:
libs/deepagents/tests/unit_tests/middleware/test_summarization_middleware.py:277
↓ 53 callersFunctionmock_argv
Factory fixture to mock sys.argv with given arguments.
libs/code/tests/unit_tests/test_main_args.py:22
↓ 53 callersMethodread
(self, file_path: str, offset: int = 0, limit: int = 100)
libs/deepagents/tests/unit_tests/middleware/test_filesystem_video.py:343
↓ 52 callersFunctionclear_caches
Reset module-level caches so the next call recomputes from scratch. Intended for tests and for the `/reload` command.
libs/code/deepagents_code/model_config.py:772
↓ 52 callersFunctionget_option
Return the manifest entry for `key`, or `None` when unknown.
libs/code/deepagents_code/config_manifest.py:1213
↓ 52 callersFunctionwrite_config
Write a JSON config dict to a temp file and return the path.
libs/code/tests/unit_tests/test_mcp_tools.py:86
↓ 51 callersFunctionis_shell_command_allowed
Check if a shell command is in the allow-list. The allow-list matches against the first token of the command (the executable name). This allo
libs/code/deepagents_code/config.py:2785
↓ 50 callersFunctionresolve_scalar
Resolve an option against the environment then `config.toml`. Args: option: The option to resolve. toml_data: Parsed `config.toml
libs/code/deepagents_code/config_manifest.py:531
↓ 49 callersFunctioncreate_file_data
Create a `FileData` object with timestamps. Args: content: File content as string (plain text or base64-encoded binary). created_
libs/deepagents/deepagents/backends/utils.py:347
↓ 49 callersFunctionexecute_task_textual
Execute a task with output directed to Textual UI. This is the Textual-compatible version of execute_task() that uses the TextualUIAdapter fo
libs/code/deepagents_code/textual_adapter.py:460
↓ 49 callersMethodremove
Stop animation before delegating DOM removal to Textual. Returns: Awaitable that completes once the widget is removed from the DO
libs/code/deepagents_code/widgets/loading.py:142
↓ 48 callersFunction_run_section
Run a bash section snippet and return stdout. Note: bash scripts may return exit code 1 when their last conditional evaluates to false (e.g.,
libs/code/tests/unit_tests/test_local_context.py:914
↓ 48 callersMethodrun_worker
(work: Awaitable[None], **_kwargs: object)
libs/code/tests/unit_tests/test_app.py:1889
↓ 48 callersMethodwrite
Write content to a file, creating it or overwriting it if it already exists. Returns `WriteResult` on success or error.
libs/deepagents/deepagents/backends/store.py:601
↓ 47 callersFunction_patch_columns
Patch thread config loaders for tests.
libs/code/tests/unit_tests/test_thread_selector.py:77
↓ 47 callersFunctionmake_conversation_messages
Create a realistic conversation message sequence. Args: num_old: Number of "old" messages that will be summarized num_recent: Num
libs/deepagents/tests/unit_tests/middleware/test_summarization_middleware.py:34
↓ 46 callersMethodshow_prompt
Push the prompt and capture the dismissal result.
libs/code/tests/unit_tests/test_auth_widgets.py:68
↓ 45 callersFunction_make_backend
Build a ContextHubBackend with a mocked langsmith.Client. `files` pre-populates the `pull_agent` return as `AgentContext.files`. Entry values
libs/deepagents/tests/unit_tests/backends/test_context_hub_backend.py:22
↓ 45 callersMethodeval_async
( self, code: str, *, outer_runtime: ToolRuntime | None = None, outer_
libs/partners/quickjs/langchain_quickjs/_repl.py:755
↓ 45 callersFunctionresolve_env_var
Look up an env var with `DEEPAGENTS_CODE_` prefix override. Checks `DEEPAGENTS_CODE_{name}` first, then falls back to `{name}`. If the prefi
libs/code/deepagents_code/model_config.py:57
↓ 45 callersFunctionrun_auth_command
Dispatch a parsed `dcode auth` invocation. Returns: Process exit code (`0` on success, non-zero on error).
libs/code/deepagents_code/auth_commands.py:160
↓ 44 callersMethod_build_banner
Build the banner content. When the primary project URL is resolved and a thread ID is set, the thread ID is rendered as a clickable h
libs/code/deepagents_code/widgets/welcome.py:310
↓ 44 callersMethodawrite
Async version of write.
libs/deepagents/deepagents/backends/composite.py:529
↓ 44 callersFunctioncli_main
Entry point for console script.
libs/code/deepagents_code/main.py:2483
↓ 44 callersFunctionregister_provider_profile
Register a `ProviderProfile` for a provider or specific model. !!! beta `deepagents.profiles` exposes beta APIs that may receive minor c
libs/deepagents/deepagents/profiles/provider/provider_profiles.py:195
↓ 43 callersFunction_make_backend
(files: dict | None = None)
libs/deepagents/tests/unit_tests/test_permissions.py:35
↓ 43 callersFunction_ns
(**kwargs: object)
libs/code/tests/unit_tests/test_auth_commands.py:62
↓ 43 callersFunctionlist_skills
List skills from built-in, user, and/or project directories. This is a dcode-specific wrapper around the prebuilt middleware's skill loading
libs/code/deepagents_code/skills/load.py:47
↓ 43 callersFunctionload_mcp_config
Load and validate MCP configuration from a JSON file. Supports multiple server types: - stdio: Process-based servers with `command`, `args`,
libs/code/deepagents_code/mcp_tools.py:713
↓ 43 callersMethodreceive_message
Handle one inbound channel message. Args: channel: Channel that delivered the message. message: Inbound message to pr
libs/talon/deepagents_talon/host.py:189
↓ 42 callersMethod_set_spinner
Show, update, or hide the loading spinner. Also drives the terminal's `OSC 9;4` progress indicator, when supported, so taskbar / dock
libs/code/deepagents_code/app.py:5806
↓ 42 callersMethodcleanup
(self)
libs/code/tests/unit_tests/test_server_graph.py:125
↓ 41 callersMethod_get_backend
Get the resolved backend instance from backend or factory. Args: runtime: The tool runtime context. Returns:
libs/deepagents/deepagents/middleware/filesystem.py:1371
↓ 41 callersMethodclose
(self)
libs/partners/quickjs/langchain_quickjs/_repl.py:1050
↓ 41 callersFunctioncreate_cli_agent
Create a CLI-configured agent with flexible options. This is the main entry point for creating a Deep Agents Code agent, usable both internal
libs/code/deepagents_code/agent.py:1307
↓ 41 callersMethodon_text_changed
Update suggestions when text changes.
libs/code/deepagents_code/widgets/autocomplete.py:698
↓ 40 callersFunction_make_request
Create a ModelRequest with a runtime that carries CLIContext.
libs/code/tests/unit_tests/test_configurable_model.py:38
↓ 40 callersFunction_sample_info
()
libs/code/tests/unit_tests/test_mcp_viewer.py:40
↓ 40 callersMethodfrom_environment
Create settings by detecting the current environment. Args: start_path: Directory to start project detection from (defaults to cw
libs/code/deepagents_code/config.py:2172
↓ 39 callersFunction_make_response
Create a minimal model response for handler mocks.
libs/code/tests/unit_tests/test_configurable_model.py:58
↓ 39 callersMethodwrap_model_call
Inject the ask_user system prompt. Returns: Model response from the wrapped handler.
libs/code/deepagents_code/ask_user.py:262
↓ 38 callersFunction_invoke_with_permissions
Invoke a FilesystemMiddleware tool configured with permissions.
libs/deepagents/tests/unit_tests/test_permissions.py:47
↓ 38 callersFunction_start
( sub_id: str, eval_id: str, desc: str = "task", label: str | None = "work" )
libs/code/tests/unit_tests/test_subagent_panel.py:51
↓ 38 callersMethodget_previous
Get the previous history entry matching a substring query. The query is captured on the first call of a navigation session (when `_cu
libs/code/deepagents_code/widgets/history.py:126
next →1–100 of 17,176, ranked by callers