langchain.js
Preparing search index...
langchain
tools
WriteFileTool
Class WriteFileTool
Class for writing data to files on the disk. Extends the StructuredTool class.
Hierarchy (
View Summary
)
BaseMessage
WriteFileTool
Index
Constructors
constructor
Properties
description
name
schema
store
Methods
_
call
lc_
name
Constructors
constructor
new
WriteFileTool
(
__namedParameters
:
WriteFileParams
)
:
WriteFileTool
Parameters
__namedParameters
:
WriteFileParams
Returns
WriteFileTool
Properties
description
description
:
string
= "Write file from disk"
name
name
:
string
= "write_file"
schema
schema
:
ZodObject
<
{
file_path
:
ZodString
;
text
:
ZodString
}
,
"strip"
,
ZodTypeAny
,
{
file_path
:
string
;
text
:
string
}
,
{
file_path
:
string
;
text
:
string
}
,
>
= writeSchema
store
store
:
BaseFileStore
Methods
_
call
_call
(
__namedParameters
:
InferInteropZodOutput
<
ZodObject
<
{
file_path
:
ZodString
;
text
:
ZodString
}
,
"strip"
,
ZodTypeAny
,
{
file_path
:
string
;
text
:
string
}
,
{
file_path
:
string
;
text
:
string
}
,
>
,
>
,
)
:
Promise
<
string
>
Parameters
__namedParameters
:
InferInteropZodOutput
<
ZodObject
<
{
file_path
:
ZodString
;
text
:
ZodString
}
,
"strip"
,
ZodTypeAny
,
{
file_path
:
string
;
text
:
string
}
,
{
file_path
:
string
;
text
:
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 writing data to files on the disk. Extends the StructuredTool class.