LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • Client
  • AsyncClient
  • Run Helpers
  • Run Trees
  • Evaluation
  • Schemas
  • Utilities
  • Wrappers
  • Anonymizer
  • Testing
  • Expect API
  • Middleware
  • Pytest Plugin
  • Deployment SDK
⌘I

Chat LangChain

What can I help with?

Enter to send·Shift+Enter new line

Menu

OverviewClientAsyncClientRun HelpersRun TreesEvaluationSchemasUtilitiesWrappersAnonymizerTestingExpect APIMiddlewarePytest PluginDeployment SDK
Language
Theme
Pythonlangsmithtypessql_query_responseSqlQueryResponse
Class●Since v0.15

SqlQueryResponse

Copy
SqlQueryResponse()

Bases

BaseModel

Attributes

Inherited fromBaseModel

Attributes

Amodel_fields_set: set[str]Amodel_config: ConfigDictAmodel_construct: construct

Methods

Mto_dict
—

Recursively generate a dictionary representation of the model, optionally specifying which fields to include or exclude.

View source on GitHub
Mto_json
—

Generates a JSON string representing this model as it would be received from or sent to the API (but with indentation).

Mconstruct
Mmodel_dump
—

Usage docs: https://docs.pydantic.dev/2.4/concepts/serialization/#modelmodel_dump

Mmodel_dump_json
—

Usage docs: https://docs.pydantic.dev/2.4/concepts/serialization/#modelmodel_dump_json

Classes

CConfig
attribute
columns: Optional[List[Column]]
attribute
execution_time_ms: Optional[float]
attribute
is_truncated: Optional[bool]
attribute
row_count: Optional[int]
attribute
rows: Optional[List[List[object]]]
attribute
truncation_reason: Optional[Literal['row_limit', 'size_limit']]
attribute
warnings: Optional[List[str]]

IsTruncated reports that the query matched rows not included in Rows.

Rows holds at most the configured row limit (1000 by default), each ordered like Columns.

TruncationReason is "row_limit" when the query matched more rows than the row limit, "size_limit" when the rows past about 10 MB were left out, or null.

Warnings contains query planning warnings. Empty when there are no warnings.