KineticaSqlResponse#
- class langchain_community.chat_models.kinetica.KineticaSqlResponse[source]#
Bases:
BaseModel
Response containing SQL and the fetched data.
This object is returned by a chain with
KineticaSqlOutputParser
and it contains the generated SQL and related Pandas Dataframe fetched from the database.Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- param dataframe: Any = None#
The Pandas dataframe containing the fetched data.
- param sql: str = ''#
The generated SQL.
Examples using KineticaSqlResponse