langchain.js
Preparing search index...
langchain
tools
ReadFileTool
Class ReadFileTool
Class for reading files from the disk. Extends the StructuredTool class.
Hierarchy (
View Summary
)
BaseMessage
ReadFileTool
Index
Constructors
constructor
Properties
description
name
schema
store
Methods
_
call
lc_
name
Constructors
constructor
new
ReadFileTool
(
__namedParameters
:
ReadFileParams
)
:
ReadFileTool
Parameters
__namedParameters
:
ReadFileParams
Returns
ReadFileTool
Properties
description
description
:
string
= "Read file from disk"
name
name
:
string
= "read_file"
schema
schema
:
ZodObject
<
{
file_path
:
ZodString
}
,
"strip"
,
ZodTypeAny
,
{
file_path
:
string
}
,
{
file_path
:
string
}
,
>
= readSchema
store
store
:
BaseFileStore
Methods
_
call
_call
(
__namedParameters
:
InferInteropZodOutput
<
ZodObject
<
{
file_path
:
ZodString
}
,
"strip"
,
ZodTypeAny
,
{
file_path
:
string
}
,
{
file_path
:
string
}
,
>
,
>
,
)
:
Promise
<
string
>
Parameters
__namedParameters
:
InferInteropZodOutput
<
ZodObject
<
{
file_path
:
ZodString
}
,
"strip"
,
ZodTypeAny
,
{
file_path
:
string
}
,
{
file_path
:
string
}
,
>
,
>
Returns
Promise
<
string
>
Static
lc_
name
lc_name
()
:
string
Returns
string
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
description
name
schema
store
Methods
_
call
lc_
name
langchain.js
Loading...
Class for reading files from the disk. Extends the StructuredTool class.