llm_prefix() — langchain Function Reference
Architecture documentation for the llm_prefix() function in base.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD e3c82ab0_4ef0_c683_7bc9_3e4fa67e9de5["llm_prefix()"] f260a2f9_1c69_1831_630e_d202f4a07d55["ZeroShotAgent"] e3c82ab0_4ef0_c683_7bc9_3e4fa67e9de5 -->|defined in| f260a2f9_1c69_1831_630e_d202f4a07d55 style e3c82ab0_4ef0_c683_7bc9_3e4fa67e9de5 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/langchain_classic/agents/mrkl/base.py lines 74–80
def llm_prefix(self) -> str:
"""Prefix to append the llm call with.
Returns:
"Thought: "
"""
return "Thought:"
Domain
Subdomains
Source
Frequently Asked Questions
What does llm_prefix() do?
llm_prefix() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/agents/mrkl/base.py.
Where is llm_prefix() defined?
llm_prefix() is defined in libs/langchain/langchain_classic/agents/mrkl/base.py at line 74.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free