Home / Function/ aformat() — langchain Function Reference

aformat() — langchain Function Reference

Architecture documentation for the aformat() function in dict.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  d48a69cd_ae11_f9bf_fb23_97098938b638["aformat()"]
  99b61388_a110_30d7_e5b6_3ec6b66bc790["DictPromptTemplate"]
  d48a69cd_ae11_f9bf_fb23_97098938b638 -->|defined in| 99b61388_a110_30d7_e5b6_3ec6b66bc790
  bb0b608c_59c9_0fe2_d2b0_9aac161c0550["format()"]
  d48a69cd_ae11_f9bf_fb23_97098938b638 -->|calls| bb0b608c_59c9_0fe2_d2b0_9aac161c0550
  style d48a69cd_ae11_f9bf_fb23_97098938b638 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/langchain_core/prompts/dict.py lines 42–48

    async def aformat(self, **kwargs: Any) -> dict[str, Any]:
        """Format the prompt with the inputs.

        Returns:
            A formatted dict.
        """
        return self.format(**kwargs)

Subdomains

Calls

Frequently Asked Questions

What does aformat() do?
aformat() is a function in the langchain codebase, defined in libs/core/langchain_core/prompts/dict.py.
Where is aformat() defined?
aformat() is defined in libs/core/langchain_core/prompts/dict.py at line 42.
What does aformat() call?
aformat() calls 1 function(s): format.

Analyze Your Own Codebase

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

Try Supermodel Free