René's URL Explorer Experiment


Title: main | deepagents_code | LangChain Reference

Open Graph Title: main | deepagents_code

X Title: main | deepagents_code

Description: Python API reference for main in deepagents_code. Part of the LangChain ecosystem.

Open Graph Description: Python API reference for main in deepagents_code. Part of the LangChain ecosystem.

X Description: Python API reference for main in deepagents_code. Part of the LangChain ecosystem.

Opengraph URL: https://reference.langchain.com/python/deepagents-code/main

direct link

Domain: reference.langchain.com

og:imagehttps://reference.langchain.com/og/python/deepagents-code/main
og:image:width1200
og:image:height630
og:image:altmain | deepagents_code
og:typearticle
twitter:cardsummary_large_image
twitter:imagehttps://reference.langchain.com/og/python/deepagents-code/main

Links:

LangChain Reference home pagehttps://reference.langchain.com/
GitHubhttps://github.com/langchain-ai
Main Docshttps://docs.langchain.com/oss/python/deepagents
Deep Agentshttps://reference.langchain.com/python/deepagents
LangChainhttps://reference.langchain.com/python/langchain/overview
LangGraphhttps://reference.langchain.com/python/langgraph/overview
Integrationshttps://reference.langchain.com/python/integrations/overview
LangSmithhttps://reference.langchain.com/python/langsmith
Deep Agents Codehttps://reference.langchain.com/python/deepagents-code
Deep Agents Codehttps://reference.langchain.com/python/deepagents-code
deepagents-codehttps://reference.langchain.com/python/deepagents-code
attributeloggerhttps://reference.langchain.com/python/deepagents-code/main/logger
functionbuild_version_textBuild the plain-text output for the --version CLI flag. Includes the CLI and SDK versions and any installed optional dependencies. For editable installs it also reports the source path and the resolved versions of the core LangChain-ecosystem dependencies. Reports the same version facts as the /version slash command, in the same section order (versions, editable path, core dependencies, optional dependencies), but omits its network-dependent release-age suffixes and update-available hint so --version stays offline.https://reference.langchain.com/python/deepagents-code/main/build_version_text
functioncheck_cli_dependenciesCheck if optional dependencies are installed.https://reference.langchain.com/python/deepagents-code/main/check_cli_dependencies
functioncheck_optional_toolsCheck for recommended external tools and return missing tool names. Skips tools that the user has suppressed via [warnings].suppress in config.toml.https://reference.langchain.com/python/deepagents-code/main/check_optional_tools
functionbuild_missing_tool_notificationBuild a PendingNotification for a missing optional tool. The returned entry carries the install hint (or URL) in a typed payload so the notification center action handler can copy it / open it without re-running platform detection.https://reference.langchain.com/python/deepagents-code/main/build_missing_tool_notification
functionformat_tool_warning_cliFormat a missing-tool warning for non-interactive console output.https://reference.langchain.com/python/deepagents-code/main/format_tool_warning_cli
functionparse_argsParse command line arguments.https://reference.langchain.com/python/deepagents-code/main/parse_args
functionrun_textual_cli_asyncRun the Textual TUI interface (async version). Starts a LangGraph server in a subprocess and connects the TUI to it via the langgraph-sdk client.https://reference.langchain.com/python/deepagents-code/main/run_textual_cli_async
functionapply_stdin_pipeRead piped stdin and merge it into the parsed CLI arguments. When stdin is not a TTY (i.e. input is piped), reads all available text and applies it to the argument namespace. If stdin is a TTY or the piped input is empty/whitespace-only, the function returns without modifying args. Leading and trailing whitespace is stripped from piped input. If non_interactive_message is already set (-n), prepends the piped text to it (the CLI still runs non-interactively): cat context.txt | dcode -n "summarize this" # non_interactive_message = "{contents of context.txt}\n\nsummarize this" If initial_prompt is already set (-m, but not -n), prepends the piped text to it (the CLI still runs interactively): cat error.log | dcode -m "explain this" # initial_prompt = "{contents of error.log}\n\nexplain this" If initial_skill is already set (--skill, but not -n), stores the piped text in initial_prompt so the skill receives it as the startup request: cat diff.txt | dcode --skill code-review # initial_prompt = "{contents of diff.txt}" Otherwise, sets non_interactive_message to the piped text, causing the CLI to run non-interactively with it as the prompt: echo "fix the typo in README.md" | dcode # non_interactive_message = "fix the typo in README.md"https://reference.langchain.com/python/deepagents-code/main/apply_stdin_pipe
functioncli_mainEntry point for console script.https://reference.langchain.com/python/deepagents-code/main/cli_main
classAppResultResult from running the Textual application.https://reference.langchain.com/python/deepagents-code/app/AppResult
classMCPServerInfoMetadata for a configured MCP server and its tools.https://reference.langchain.com/python/deepagents-code/mcp_tools/MCPServerInfo
classPendingNotificationA single notice waiting for user action. Immutable value object: the registry owns the key-to-toast-identity binding (see NotificationRegistry) so external callers cannot corrupt click-routing indices by mutating notifications after construction.https://reference.langchain.com/python/deepagents-code/notifications/PendingNotification
View source on GitHubhttps://github.com/langchain-ai/deepagents/blob/bd9bafaad3f51d426563aa24658bbb3a089d4825/libs/code/deepagents_code/main.py

Viewport: width=device-width, initial-scale=1


URLs of crawlers that visited me.