ReadBaseSchema#

class langchain_google_community.sheets.read_sheet_tools.ReadBaseSchema[source]#

Bases: BaseModel

Base schema for all read operations.

Contains common fields that are shared across all read tools.

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 convert_to_records: bool = False#

Whether to convert data to records (list of dictionaries) using first row as headers.

param date_time_render_option: DateTimeRenderOption = DateTimeRenderOption.SERIAL_NUMBER#

How dates, times, and durations should be rendered.

param numericise_values: bool = True#

Whether to automatically convert string numbers to numeric types.

param spreadsheet_id: str [Required]#

The ID of the Google Spreadsheet to read from.

param value_render_option: ValueRenderOption = ValueRenderOption.FORMATTED_VALUE#

How values should be rendered in the output.