output_keys() — langchain Function Reference
Architecture documentation for the output_keys() function in llm.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD b91da557_7e5e_4caf_eec6_d429a4853f71["output_keys()"] ccf50fe1_4990_cf19_1e2d_25efe83f53c5["LLMChain"] b91da557_7e5e_4caf_eec6_d429a4853f71 -->|defined in| ccf50fe1_4990_cf19_1e2d_25efe83f53c5 style b91da557_7e5e_4caf_eec6_d429a4853f71 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/langchain_classic/chains/llm.py lines 106–110
def output_keys(self) -> list[str]:
"""Will always return text key."""
if self.return_final_only:
return [self.output_key]
return [self.output_key, "full_generation"]
Domain
Subdomains
Source
Frequently Asked Questions
What does output_keys() do?
output_keys() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/chains/llm.py.
Where is output_keys() defined?
output_keys() is defined in libs/langchain/langchain_classic/chains/llm.py at line 106.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free