InputType() — langchain Function Reference
Architecture documentation for the InputType() function in base.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 5970390e_eb12_d216_7e15_3c89530cee10["InputType()"] f5a29046_740d_1358_3615_8cc689b26ca9["BaseLanguageModel"] 5970390e_eb12_d216_7e15_3c89530cee10 -->|defined in| f5a29046_740d_1358_3615_8cc689b26ca9 style 5970390e_eb12_d216_7e15_3c89530cee10 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/langchain_core/language_models/base.py lines 199–204
def InputType(self) -> TypeAlias:
"""Get the input type for this `Runnable`."""
# This is a version of LanguageModelInput which replaces the abstract
# base class BaseMessage with a union of its subclasses, which makes
# for a much better schema.
return str | StringPromptValue | ChatPromptValueConcrete | list[AnyMessage]
Domain
Subdomains
Source
Frequently Asked Questions
What does InputType() do?
InputType() is a function in the langchain codebase, defined in libs/core/langchain_core/language_models/base.py.
Where is InputType() defined?
InputType() is defined in libs/core/langchain_core/language_models/base.py at line 199.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free