Home / Function/ create_prompt() — langchain Function Reference

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
  2c5336da_81b4_d5b0_c102_4ada7c14fe08["create_prompt()"]
  2d166c20_d149_321c_980b_160d189505a7["ReActTextWorldAgent"]
  2c5336da_81b4_d5b0_c102_4ada7c14fe08 -->|defined in| 2d166c20_d149_321c_980b_160d189505a7
  baf253ff_893e_63bb_1a18_977dfd5c772b["create_prompt()"]
  baf253ff_893e_63bb_1a18_977dfd5c772b -->|calls| 2c5336da_81b4_d5b0_c102_4ada7c14fe08
  baf253ff_893e_63bb_1a18_977dfd5c772b["create_prompt()"]
  2c5336da_81b4_d5b0_c102_4ada7c14fe08 -->|calls| baf253ff_893e_63bb_1a18_977dfd5c772b
  style 2c5336da_81b4_d5b0_c102_4ada7c14fe08 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain/langchain_classic/agents/react/base.py lines 148–150

    def create_prompt(cls, tools: Sequence[BaseTool]) -> BasePromptTemplate:
        """Return default prompt."""
        return TEXTWORLD_PROMPT

Subdomains

Called By

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 148.
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