langchain.js
Preparing search index...
@langchain/classic
agents
InitializeAgentExecutorOptions
Interface InitializeAgentExecutorOptions
interface
InitializeAgentExecutorOptions
{
agentArgs
?:
|
ChatCreatePromptArgs
&
AgentArgs
|
ChatConversationalCreatePromptArgs
&
AgentArgs
|
ZeroShotCreatePromptArgs
&
AgentArgs
|
XMLAgentInput
&
Pick
<
AgentArgs
,
"callbacks"
>
;
agentType
:
|
"xml"
|
"zero-shot-react-description"
|
"chat-zero-shot-react-description"
|
"chat-conversational-react-description"
;
callbackManager
?:
any
;
earlyStoppingMethod
?:
StoppingMethod
;
handleParsingErrors
?:
string
|
boolean
|
(
(
e
:
any
)
=>
string
)
;
handleToolRuntimeErrors
?:
(
e
:
Error
)
=>
string
;
maxIterations
?:
number
;
memory
?:
any
;
returnIntermediateSteps
?:
boolean
;
}
Index
Properties
agent
Args?
agent
Type
callback
Manager?
early
Stopping
Method?
handle
Parsing
Errors?
handle
Tool
Runtime
Errors?
max
Iterations?
memory?
return
Intermediate
Steps?
Properties
Optional
agent
Args
agentArgs
?:
|
ChatCreatePromptArgs
&
AgentArgs
|
ChatConversationalCreatePromptArgs
&
AgentArgs
|
ZeroShotCreatePromptArgs
&
AgentArgs
|
XMLAgentInput
&
Pick
<
AgentArgs
,
"callbacks"
>
agent
Type
agentType
:
|
"xml"
|
"zero-shot-react-description"
|
"chat-zero-shot-react-description"
|
"chat-conversational-react-description"
Optional
callback
Manager
callbackManager
?:
any
Deprecated
Use
callbacks
instead
Optional
early
Stopping
Method
earlyStoppingMethod
?:
StoppingMethod
Optional
handle
Parsing
Errors
handleParsingErrors
?:
string
|
boolean
|
(
(
e
:
any
)
=>
string
)
Optional
handle
Tool
Runtime
Errors
handleToolRuntimeErrors
?:
(
e
:
Error
)
=>
string
Optional
max
Iterations
maxIterations
?:
number
Optional
memory
memory
?:
any
Optional
return
Intermediate
Steps
returnIntermediateSteps
?:
boolean
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
agent
Args
agent
Type
callback
Manager
early
Stopping
Method
handle
Parsing
Errors
handle
Tool
Runtime
Errors
max
Iterations
memory
return
Intermediate
Steps
langchain.js
Loading...
Deprecated
Use
callbacksinstead