langchain.js
Preparing search index...
langchain
index
FakeToolCallingModel
Class FakeToolCallingModel
Fake chat model for testing tool calling functionality
Hierarchy (
View Summary
)
BaseMessage
FakeToolCallingModel
Index
Constructors
constructor
Properties
structured
Response?
tool
Calls
tool
Style
Accessors
index
Methods
_
combine
LLM
Output
_
generate
_
llm
Type
bind
Tools
with
Structured
Output
Constructors
constructor
new
FakeToolCallingModel
(
__namedParameters
?:
FakeToolCallingModelFields
&
{
indexRef
?:
{
current
:
number
}
;
}
,
)
:
FakeToolCallingModel
Parameters
__namedParameters
:
FakeToolCallingModelFields
&
{
indexRef
?:
{
current
:
number
}
}
= {}
Returns
FakeToolCallingModel
Properties
Optional
structured
Response
structuredResponse
?:
any
tool
Calls
toolCalls
:
ToolCall
[]
[]
tool
Style
toolStyle
:
"openai"
|
"anthropic"
Accessors
index
get
index
()
:
number
Returns
number
set
index
(
value
:
number
)
:
void
Parameters
value
:
number
Returns
void
Methods
_
combine
LLM
Output
_combineLLMOutput
()
:
never
[]
Returns
never
[]
_
generate
_generate
(
messages
:
BaseMessage
[]
,
_options
?:
unknown
,
_runManager
?:
any
,
)
:
Promise
<
ChatResult
>
Parameters
messages
:
BaseMessage
[]
Optional
_options
:
unknown
Optional
_runManager
:
any
Returns
Promise
<
ChatResult
>
_
llm
Type
_llmType
()
:
string
Returns
string
bind
Tools
bindTools
(
tools
:
StructuredTool
[]
)
:
any
Parameters
tools
:
StructuredTool
[]
Returns
any
with
Structured
Output
withStructuredOutput
(
_schema
:
any
)
:
any
Parameters
_schema
:
any
Returns
any
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
structured
Response
tool
Calls
tool
Style
Accessors
index
Methods
_
combine
LLM
Output
_
generate
_
llm
Type
bind
Tools
with
Structured
Output
langchain.js
Loading...
Fake chat model for testing tool calling functionality