Home / Function/ get_weather() — langchain Function Reference

get_weather() — langchain Function Reference

Architecture documentation for the get_weather() function in test_tool_emulator.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  74065bd6_ab57_f23a_c9ca_67ad54c34e84["get_weather()"]
  5b00cf78_0f18_c9ad_fc5f_85cc0378daf1["test_tool_emulator.py"]
  74065bd6_ab57_f23a_c9ca_67ad54c34e84 -->|defined in| 5b00cf78_0f18_c9ad_fc5f_85cc0378daf1
  style 74065bd6_ab57_f23a_c9ca_67ad54c34e84 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain_v1/tests/unit_tests/agents/middleware/implementations/test_tool_emulator.py lines 22–25

def get_weather(location: str) -> str:
    """Get current weather for a location."""
    msg = "This tool should be emulated"
    raise NotImplementedError(msg)

Domain

Subdomains

Frequently Asked Questions

What does get_weather() do?
get_weather() is a function in the langchain codebase, defined in libs/langchain_v1/tests/unit_tests/agents/middleware/implementations/test_tool_emulator.py.
Where is get_weather() defined?
get_weather() is defined in libs/langchain_v1/tests/unit_tests/agents/middleware/implementations/test_tool_emulator.py at line 22.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free