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

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

OverviewClientAsyncClientRun HelpersRun TreesEvaluationSchemasUtilitiesWrappersAnonymizerTestingExpect APIMiddlewarePytest PluginDeployment SDK
Language
Theme
Pythonlangsmithsandbox_modelsFileChunk
Class●Since v0.13

FileChunk

Copy
FileChunk(
  self,
  content: bytes,
  etag: Optional[str] = None,
  total_bytes

Constructors

Attributes

View source on GitHub
:
Optional
[
int
]
=
None
,
start
:
int
=
0
,
partial
:
bool
=
False
,
unchanged
:
bool
=
False
,
last_modified
:
Optional
[
str
]
=
None
)
constructor
__init__
NameType
contentbytes
etagOptional[str]
total_bytesOptional[int]
startint
partialbool
unchangedbool
last_modifiedOptional[str]
attribute
content: bytes
attribute
etag: Optional[str]
attribute
total_bytes: Optional[int]
attribute
start: int
attribute
partial: bool
attribute
unchanged: bool
attribute
last_modified: Optional[str]
attribute
end: int

Offset just past the last byte returned.

Bytes returned by a ranged read, and where they sit in the file.