Home / Function/ get_stock_price() — langchain Function Reference

get_stock_price() — langchain Function Reference

Architecture documentation for the get_stock_price() function in test_tool_selection.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  c5e349c4_b3b9_4b2d_df27_b78162c31433["get_stock_price()"]
  f96107c8_8757_b550_ad6f_b1dcda0da20b["test_tool_selection.py"]
  c5e349c4_b3b9_4b2d_df27_b78162c31433 -->|defined in| f96107c8_8757_b550_ad6f_b1dcda0da20b
  style c5e349c4_b3b9_4b2d_df27_b78162c31433 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain_v1/tests/unit_tests/agents/middleware/implementations/test_tool_selection.py lines 51–53

def get_stock_price(symbol: str) -> str:
    """Get current stock price for a symbol."""
    return f"Stock price for {symbol}: $150.25"

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free