langchain.js
Preparing search index...
@langchain/openai
tools
Variable tools
Const
tools
:
{
applyPatch
:
(
options
:
ApplyPatchOptions
,
)
=>
DynamicStructuredTool
<
ZodDiscriminatedUnion
<
[
ZodObject
<
{
diff
:
ZodString
;
path
:
ZodString
;
type
:
ZodLiteral
<
"create_file"
>
;
}
,
$strip
,
>
,
ZodObject
<
{
diff
:
ZodString
;
path
:
ZodString
;
type
:
ZodLiteral
<
"update_file"
>
;
}
,
$strip
,
>
,
ZodObject
<
{
path
:
ZodString
;
type
:
ZodLiteral
<
"delete_file"
>
}
,
$strip
>
,
]
,
>
,
ApplyPatchOperation
,
unknown
,
string
,
>
;
codeInterpreter
:
(
options
?:
CodeInterpreterOptions
)
=>
ServerTool
;
computerUse
:
(
options
:
ComputerUseOptions
,
)
=>
DynamicStructuredTool
<
ZodObject
<
{
action
:
ZodDiscriminatedUnion
<
[
ZodObject
<
{
type
:
ZodLiteral
<
"screenshot"
>
}
,
$strip
>
,
ZodObject
<
{
button
:
ZodDefault
<
ZodEnum
<
(...)
>
>
;
type
:
ZodLiteral
<
"click"
>
;
x
:
ZodNumber
;
y
:
ZodNumber
;
}
,
$strip
,
>
,
ZodObject
<
{
button
:
ZodDefault
<
ZodEnum
<
(...)
>
>
;
type
:
ZodLiteral
<
"double_click"
>
;
x
:
ZodNumber
;
y
:
ZodNumber
;
}
,
$strip
,
>
,
ZodObject
<
{
path
:
ZodArray
<
ZodObject
<
(...)
,
(...)
>
>
;
type
:
ZodLiteral
<
"drag"
>
;
}
,
$strip
,
>
,
]
,
>
;
}
,
$strip
,
>
,
ComputerUseInput
,
unknown
,
any
,
>
;
fileSearch
:
(
options
:
FileSearchOptions
)
=>
ServerTool
;
imageGeneration
:
(
options
?:
ImageGenerationOptions
)
=>
ServerTool
;
localShell
:
(
options
:
LocalShellOptions
,
)
=>
DynamicStructuredTool
<
ZodDiscriminatedUnion
<
[
ZodObject
<
{
command
:
ZodArray
<
ZodString
>
;
env
:
ZodOptional
<
ZodRecord
<
ZodString
,
ZodString
>
>
;
timeout_ms
:
ZodOptional
<
ZodNumber
>
;
type
:
ZodLiteral
<
"exec"
>
;
user
:
ZodOptional
<
ZodString
>
;
working_directory
:
ZodOptional
<
ZodString
>
;
}
,
$strip
,
>
,
]
,
>
,
Action
,
unknown
,
string
,
>
;
mcp
:
{
(
options
:
McpRemoteServerOptions
)
:
ServerTool
;
(
options
:
McpConnectorOptions
)
:
ServerTool
;
}
;
shell
:
(
options
:
ShellOptions
,
)
=>
DynamicStructuredTool
<
ZodObject
<
{
commands
:
ZodArray
<
ZodString
>
;
max_output_length
:
ZodOptional
<
ZodNumber
>
;
timeout_ms
:
ZodOptional
<
ZodNumber
>
;
}
,
$strip
,
>
,
Action
,
unknown
,
string
,
>
;
webSearch
:
(
options
?:
WebSearchOptions
)
=>
ServerTool
;
}
= ...
Type Declaration
applyPatch
:
(
options
:
ApplyPatchOptions
,
)
=>
DynamicStructuredTool
<
ZodDiscriminatedUnion
<
[
ZodObject
<
{
diff
:
ZodString
;
path
:
ZodString
;
type
:
ZodLiteral
<
"create_file"
>
}
,
$strip
,
>
,
ZodObject
<
{
diff
:
ZodString
;
path
:
ZodString
;
type
:
ZodLiteral
<
"update_file"
>
}
,
$strip
,
>
,
ZodObject
<
{
path
:
ZodString
;
type
:
ZodLiteral
<
"delete_file"
>
}
,
$strip
>
,
]
,
>
,
ApplyPatchOperation
,
unknown
,
string
,
>
codeInterpreter
:
(
options
?:
CodeInterpreterOptions
)
=>
ServerTool
computerUse
:
(
options
:
ComputerUseOptions
,
)
=>
DynamicStructuredTool
<
ZodObject
<
{
action
:
ZodDiscriminatedUnion
<
[
ZodObject
<
{
type
:
ZodLiteral
<
"screenshot"
>
}
,
$strip
>
,
ZodObject
<
{
button
:
ZodDefault
<
ZodEnum
<
(...)
>
>
;
type
:
ZodLiteral
<
"click"
>
;
x
:
ZodNumber
;
y
:
ZodNumber
;
}
,
$strip
,
>
,
ZodObject
<
{
button
:
ZodDefault
<
ZodEnum
<
(...)
>
>
;
type
:
ZodLiteral
<
"double_click"
>
;
x
:
ZodNumber
;
y
:
ZodNumber
;
}
,
$strip
,
>
,
ZodObject
<
{
path
:
ZodArray
<
ZodObject
<
(...)
,
(...)
>
>
;
type
:
ZodLiteral
<
"drag"
>
;
}
,
$strip
,
>
,
]
,
>
;
}
,
$strip
,
>
,
ComputerUseInput
,
unknown
,
any
,
>
fileSearch
:
(
options
:
FileSearchOptions
)
=>
ServerTool
imageGeneration
:
(
options
?:
ImageGenerationOptions
)
=>
ServerTool
localShell
:
(
options
:
LocalShellOptions
,
)
=>
DynamicStructuredTool
<
ZodDiscriminatedUnion
<
[
ZodObject
<
{
command
:
ZodArray
<
ZodString
>
;
env
:
ZodOptional
<
ZodRecord
<
ZodString
,
ZodString
>
>
;
timeout_ms
:
ZodOptional
<
ZodNumber
>
;
type
:
ZodLiteral
<
"exec"
>
;
user
:
ZodOptional
<
ZodString
>
;
working_directory
:
ZodOptional
<
ZodString
>
;
}
,
$strip
,
>
,
]
,
>
,
Action
,
unknown
,
string
,
>
mcp
:
{
(
options
:
McpRemoteServerOptions
)
:
ServerTool
;
(
options
:
McpConnectorOptions
)
:
ServerTool
;
}
shell
:
(
options
:
ShellOptions
,
)
=>
DynamicStructuredTool
<
ZodObject
<
{
commands
:
ZodArray
<
ZodString
>
;
max_output_length
:
ZodOptional
<
ZodNumber
>
;
timeout_ms
:
ZodOptional
<
ZodNumber
>
;
}
,
$strip
,
>
,
Action
,
unknown
,
string
,
>
webSearch
:
(
options
?:
WebSearchOptions
)
=>
ServerTool
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
langchain.js
Loading...