Preparing search index...
The search index is not available
@skeet-framework/ai
@skeet-framework/ai
VertexAI
Class VertexAI
Implements
AIPromptable
Index
Constructors
constructor
Properties
options
vertex
Params
Methods
chat
generate
Title
Prompt
get
Endpoint
handle
Error
initialize
Options
initialize
Vertex
Params
prepare
Predict
Request
process
Predictions
prompt
prompt
Stream
validate
Options
Constructors
constructor
new
VertexAI
(
options
?
)
:
VertexAI
Parameters
options
:
VertexAiOptions
= {}
Returns
VertexAI
Properties
Protected
options
options
:
VertexAiOptions
Protected
vertex
Params
vertex
Params
:
VertexParameterParams
Methods
chat
chat
(
content
)
:
Promise
<
string
>
Parameters
content
:
string
Returns
Promise
<
string
>
generate
Title
Prompt
generate
Title
Prompt
(
content
,
isJapanese
?
)
:
Promise
<
VertexPromptParams
>
Parameters
content
:
string
isJapanese
:
boolean
= false
Returns
Promise
<
VertexPromptParams
>
Private
get
Endpoint
get
Endpoint
(
)
:
string
Returns
string
Private
handle
Error
handle
Error
(
error
)
:
never
Parameters
error
:
any
Returns
never
Private
initialize
Options
initialize
Options
(
options
)
:
VertexAiOptions
Parameters
options
:
VertexAiOptions
Returns
VertexAiOptions
Private
initialize
Vertex
Params
initialize
Vertex
Params
(
options
)
:
VertexParameterParams
Parameters
options
:
VertexAiOptions
Returns
VertexParameterParams
Private
prepare
Predict
Request
prepare
Predict
Request
(
prompt
)
:
Promise
<
{
endpoint
:
string
;
instanceValue
:
any
;
parameters
:
any
;
}
>
Parameters
prompt
:
VertexPromptParams
Returns
Promise
<
{
endpoint
:
string
;
instanceValue
:
any
;
parameters
:
any
;
}
>
Private
process
Predictions
process
Predictions
(
response
)
:
Promise
<
string
>
Parameters
response
:
any
Returns
Promise
<
string
>
prompt
prompt
(
prompt
)
:
Promise
<
string
>
Parameters
prompt
:
any
Returns
Promise
<
string
>
prompt
Stream
prompt
Stream
(
prompt
)
:
Promise
<
Readable
>
Parameters
prompt
:
any
Returns
Promise
<
Readable
>
Private
validate
Options
validate
Options
(
)
:
void
Returns
void
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
options
vertex
Params
chat
generate
Title
Prompt
get
Endpoint
handle
Error
initialize
Options
initialize
Vertex
Params
prepare
Predict
Request
process
Predictions
prompt
prompt
Stream
validate
Options
@skeet-framework/ai
ChatCompletion
ChatCompletionChunk
openai
InstanceType
NamingEnum
SkeetAiMode
OpenAI
SkeetAI
Stream
VertexAI
AIPrompt
ChatCompletion
ChatCompletionChunk
SkeetAIOptions
AIExample
AIType
AiInstance
ChatCompletionMessageParam
Example
InputOutput
OpenAIMessage
Loading...
Generated using
TypeDoc