LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • Agent
  • Middleware
  • Backends
  • Sandboxes
  • Skills
  • Subagents
  • Configuration
  • Types
Modal
Daytona
Deno
Node VFS
Sandbox Standard Tests
  • Vitest
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

OverviewAgentMiddlewareBackendsSandboxesSkillsSubagentsConfigurationTypes
Modal
Daytona
Deno
Node VFS
Sandbox Standard Tests
Vitest
Language
Theme
JavaScriptdeepagentsindexReadResult
Interface●Since v1.8

ReadResult

Copy
interface ReadResult

Properties

View source on GitHub
property
content: string | Uint8Array<ArrayBufferLike>

File contents as Uint8Array on success, null on failure

property
error: string

Error message on failure, undefined on success

property
mimeType: string

MIME type of the file, when available

Structured result from backend read operations.

Replaces the previous plain string return, giving callers a programmatic way to distinguish errors from content.