create_prompt() — langchain Function Reference
Architecture documentation for the create_prompt() function in base.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD baf253ff_893e_63bb_1a18_977dfd5c772b["create_prompt()"] 1cf99388_e912_1afe_4370_b5eb6aef0535["ReActDocstoreAgent"] baf253ff_893e_63bb_1a18_977dfd5c772b -->|defined in| 1cf99388_e912_1afe_4370_b5eb6aef0535 2c5336da_81b4_d5b0_c102_4ada7c14fe08["create_prompt()"] 2c5336da_81b4_d5b0_c102_4ada7c14fe08 -->|calls| baf253ff_893e_63bb_1a18_977dfd5c772b 2c5336da_81b4_d5b0_c102_4ada7c14fe08["create_prompt()"] baf253ff_893e_63bb_1a18_977dfd5c772b -->|calls| 2c5336da_81b4_d5b0_c102_4ada7c14fe08 style baf253ff_893e_63bb_1a18_977dfd5c772b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/langchain_classic/agents/react/base.py lines 53–55
def create_prompt(cls, tools: Sequence[BaseTool]) -> BasePromptTemplate:
"""Return default prompt."""
return WIKI_PROMPT
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does create_prompt() do?
create_prompt() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/agents/react/base.py.
Where is create_prompt() defined?
create_prompt() is defined in libs/langchain/langchain_classic/agents/react/base.py at line 53.
What does create_prompt() call?
create_prompt() calls 1 function(s): create_prompt.
What calls create_prompt()?
create_prompt() is called by 1 function(s): create_prompt.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free