v0.2
v0.1
Preparing search index...
The search index is not available
LangChain.js - v0.2.13
LangChain.js
langchain-google-common
ChatGoogleBase
Class ChatGoogleBase<AuthOptions>
Abstract
Integration with a chat model.
Type Parameters
AuthOptions
Hierarchy (
view full
)
Toolkit
<
GoogleAIBaseLanguageModelCallOptions
,
Toolkit
>
ChatGoogleBase
Implements
ChatGoogleBaseInput
<
AuthOptions
>
Index
Constructors
constructor
Accessors
platform
Methods
bind
Tools
with
Structured
Output
Constructors
constructor
new
Chat
Google
Base
<
AuthOptions
>
(
fields
?
)
:
ChatGoogleBase
<
AuthOptions
>
Type Parameters
AuthOptions
Parameters
Optional
fields
:
ChatGoogleBaseInput
<
AuthOptions
>
Returns
ChatGoogleBase
<
AuthOptions
>
Accessors
platform
get
platform
(
)
:
GooglePlatformType
Returns
GooglePlatformType
Methods
bind
Tools
bind
Tools
(
tools
,
kwargs
?
)
:
Runnable
<
BaseLanguageModelInput
,
AIMessageChunk
,
GoogleAIBaseLanguageModelCallOptions
>
Parameters
tools
:
any
[]
Optional
kwargs
:
Partial
<
GoogleAIBaseLanguageModelCallOptions
>
Returns
Runnable
<
BaseLanguageModelInput
,
AIMessageChunk
,
GoogleAIBaseLanguageModelCallOptions
>
with
Structured
Output
with
Structured
Output
<
RunOutput
>
(
outputSchema
,
config
?
)
:
Runnable
<
BaseLanguageModelInput
,
RunOutput
>
Type Parameters
RunOutput
extends
Record
<
string
,
any
>
=
Record
<
string
,
any
>
Parameters
outputSchema
:
Record
<
string
,
any
>
|
ZodType
<
RunOutput
,
ZodTypeDef
,
RunOutput
>
Optional
config
:
any
Returns
Runnable
<
BaseLanguageModelInput
,
RunOutput
>
with
Structured
Output
<
RunOutput
>
(
outputSchema
,
config
?
)
:
Runnable
<
BaseLanguageModelInput
,
{
parsed
:
RunOutput
;
raw
:
BaseMessage
;
}
>
Type Parameters
RunOutput
extends
Record
<
string
,
any
>
=
Record
<
string
,
any
>
Parameters
outputSchema
:
Record
<
string
,
any
>
|
ZodType
<
RunOutput
,
ZodTypeDef
,
RunOutput
>
Optional
config
:
any
Returns
Runnable
<
BaseLanguageModelInput
,
{
parsed
:
RunOutput
;
raw
:
BaseMessage
;
}
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Accessors
platform
Methods
bind
Tools
with
Structured
Output
LangChain.js - v0.2.13
Loading...
Integration with a chat model.