Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Darwin-lfl/langmanus
/ functions
Functions
45 in github.com/Darwin-lfl/langmanus
⨍
Functions
45
◇
Types & classes
14
↳
Endpoints
3
↓ 11 callers
Function
get_llm_by_type
Get LLM instance by type. Returns cached instance if available.
src/agents/llm.py:67
↓ 7 callers
Function
apply_prompt_template
(prompt_name: str, state: AgentState)
src/prompts/template.py:18
↓ 4 callers
Method
crawl
(self, url: str)
src/crawler/crawler.py:9
↓ 3 callers
Function
build_graph
Build and return the agent workflow graph.
src/graph/builder.py:15
↓ 3 callers
Function
create_logged_tool
Factory function to create a logged version of any tool class. Args: base_tool_class: The original tool class to be enhanced with lo
src/tools/decorators.py:62
↓ 3 callers
Function
run_agent_workflow
Run the agent workflow with the given user input. Args: user_input: The user's query or request debug: If True, enables debug lev
src/workflow.py:23
↓ 3 callers
Method
to_markdown
(self, including_title: bool = True)
src/crawler/article.py:14
↓ 2 callers
Function
create_openai_llm
Create a ChatOpenAI instance with the specified configuration
src/agents/llm.py:19
↓ 2 callers
Function
enable_debug_logging
Enable debug level logging for more detailed execution information.
src/workflow.py:12
↓ 1 callers
Method
_log_operation
Helper method to log tool operations.
src/tools/decorators.py:44
↓ 1 callers
Method
crawl
(self, url: str, return_format: str = "html")
src/crawler/jina_client.py:10
↓ 1 callers
Function
create_deepseek_llm
Create a ChatDeepSeek instance with the specified configuration
src/agents/llm.py:41
↓ 1 callers
Function
enable_debug_logging
Enable debug level logging for more detailed execution information.
src/service/workflow_service.py:15
↓ 1 callers
Function
event_generator
()
src/api/app.py:108
↓ 1 callers
Method
extract_article
(self, html: str)
src/crawler/readability_extractor.py:7
↓ 1 callers
Function
get_prompt_template
(prompt_name: str)
src/prompts/template.py:9
↓ 1 callers
Function
run_agent_workflow
Run the agent workflow with the given user input. Args: user_input_messages: The user request messages debug: If True, enables de
src/service/workflow_service.py:30
↓ 1 callers
Method
to_message
(self)
src/crawler/article.py:21
Method
__init__
(self, title: str, html_content: str)
src/crawler/article.py:10
Method
_arun
Run the browser task asynchronously.
src/tools/browser.py:58
Method
_run
Override _run method to add logging.
src/tools/decorators.py:52
Method
_run
Run the browser task synchronously.
src/tools/browser.py:36
Function
bash_tool
Use this to execute bash command and do necessary operations.
src/tools/bash_tool.py:13
Function
browser_node
Node for the browser agent that performs web browsing tasks.
src/graph/nodes.py:64
Function
chat_endpoint
Chat endpoint for LangGraph invoke. Args: request: The chat request req: The FastAPI request object for connection state che
src/api/app.py:73
Function
code_node
Node for the coder agent that executes Python code.
src/graph/nodes.py:43
Function
coordinator_node
Coordinator node that communicate with customers.
src/graph/nodes.py:150
Function
crawl_tool
Use this to crawl a url and get a readable content in markdown format.
src/tools/crawl.py:15
Function
log_io
A decorator that logs the input parameters and output of a tool function. Args: func: The tool function to be decorated Returns
src/tools/decorators.py:10
Function
planner_node
Planner node that generate the full plan.
src/graph/nodes.py:107
Function
python_repl_tool
Use this to execute python code and do data analysis or calculation. If you want to see the output of a value, you should print it out with `print
src/tools/python_repl.py:14
Function
reporter_node
Reporter node that write a final report.
src/graph/nodes.py:167
Function
research_node
Node for the researcher agent that performs research tasks.
src/graph/nodes.py:22
Function
supervisor_node
Supervisor node that decides which agent should act next.
src/graph/nodes.py:85
Method
test_command_with_error
Test bash tool when command fails
tests/integration/test_bash_tool.py:14
Method
test_command_with_exception
Test bash tool when an unexpected exception occurs
tests/integration/test_bash_tool.py:26
Method
test_command_with_output
Test bash tool with a command that produces output
tests/integration/test_bash_tool.py:34
Function
test_crawler_crawl_valid_url
Test crawling with a valid URL.
tests/integration/test_crawler.py:11
Function
test_crawler_initialization
Test that crawler can be properly initialized.
tests/integration/test_crawler.py:5
Function
test_crawler_markdown_output
Test that crawler output can be converted to markdown.
tests/integration/test_crawler.py:20
Function
test_enable_debug_logging
Test that debug logging is properly enabled.
tests/integration/test_workflow.py:6
Function
test_run_agent_workflow_basic
Test basic workflow execution.
tests/integration/test_workflow.py:14
Function
test_run_agent_workflow_empty_input
Test workflow execution with empty input.
tests/integration/test_workflow.py:21
Method
test_successful_command
Test bash tool with a successful command execution
tests/integration/test_bash_tool.py:8
Function
wrapper
(*args: Any, **kwargs: Any)
src/tools/decorators.py:22