Home / Function/ output_keys() — langchain Function Reference

output_keys() — langchain Function Reference

Architecture documentation for the output_keys() function in agent.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  985fbb6d_62a6_60fd_3c7a_96f297b88472["output_keys()"]
  ec1d7866_e6a8_7cbe_b150_f82463cf2c7f["AgentExecutor"]
  985fbb6d_62a6_60fd_3c7a_96f297b88472 -->|defined in| ec1d7866_e6a8_7cbe_b150_f82463cf2c7f
  style 985fbb6d_62a6_60fd_3c7a_96f297b88472 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain/langchain_classic/agents/agent.py lines 1218–1222

    def output_keys(self) -> list[str]:
        """Return the singular output key."""
        if self.return_intermediate_steps:
            return [*self._action_agent.return_values, "intermediate_steps"]
        return self._action_agent.return_values

Subdomains

Frequently Asked Questions

What does output_keys() do?
output_keys() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/agents/agent.py.
Where is output_keys() defined?
output_keys() is defined in libs/langchain/langchain_classic/agents/agent.py at line 1218.

Analyze Your Own Codebase

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

Try Supermodel Free