Home / Function/ _stop() — langchain Function Reference

_stop() — langchain Function Reference

Architecture documentation for the _stop() function in base.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  d8fa59af_994b_832d_4a38_755e0d841dc8["_stop()"]
  826e6477_6abe_d406_5d34_9df3fbec8707["StructuredChatAgent"]
  d8fa59af_994b_832d_4a38_755e0d841dc8 -->|defined in| 826e6477_6abe_d406_5d34_9df3fbec8707
  style d8fa59af_994b_832d_4a38_755e0d841dc8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain/langchain_classic/agents/structured_chat/base.py lines 88–89

    def _stop(self) -> list[str]:
        return ["Observation:"]

Subdomains

Frequently Asked Questions

What does _stop() do?
_stop() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/agents/structured_chat/base.py.
Where is _stop() defined?
_stop() is defined in libs/langchain/langchain_classic/agents/structured_chat/base.py at line 88.

Analyze Your Own Codebase

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

Try Supermodel Free