
ChatCompletion
ChatCompletion
yaml
type: "io.kestra.plugin.gcp.vertexai.ChatCompletion"Examples
yaml
id: gcp_vertexai_chat_completion
namespace: company.team
tasks:
- id: chat_completion
type: io.kestra.plugin.gcp.vertexai.ChatCompletion
region: us-central1
projectId: my-project
context: I love jokes that talk about sport
messages:
- author: user
content: Please tell me a joke
Properties
messages*Requiredarray
Min items
1 Definitions
io.kestra.plugin.gcp.vertexai.ChatCompletion-Message
content*Requiredstring
authorDeprecatedstring
region*Requiredstring
historyarray
Definitions
io.kestra.plugin.gcp.vertexai.ChatCompletion-Message
content*Requiredstring
authorDeprecatedstring
impersonatedServiceAccountstring
modelIdstring
Default
gemini-proparametersNon-dynamic
Default
{
"temperature": 0.2,
"maxOutputTokens": 128,
"topK": 40,
"topP": 0.95
} Definitions
io.kestra.plugin.gcp.vertexai.AbstractGenerativeAi-ModelParameter
maxOutputTokensinteger
Default
128Minimum
>= 1Maximum
<= 1024temperaturenumber
Default
0.2Minimum
> Maximum
<= 1topKinteger
Default
40Minimum
>= 1Maximum
<= 40topPnumber
Default
0.95Minimum
> Maximum
<= 1projectIdstring
scopesarray
SubTypestring
Default
["https://www.googleapis.com/auth/cloud-platform"]serviceAccountstring
Outputs
predictionsarray
Definitions
io.kestra.plugin.gcp.vertexai.AbstractGenerativeAi-Prediction
citationMetadata
io.kestra.plugin.gcp.vertexai.AbstractGenerativeAi-CitationMetadata
citationsarray
io.kestra.plugin.gcp.vertexai.AbstractGenerativeAi-Citation
citationsarray
SubTypestring
contentstring
safetyAttributes
io.kestra.plugin.gcp.vertexai.AbstractGenerativeAi-SafetyAttributes
blockedboolean
categoriesarray
SubTypestring
scoresarray
SubTypenumber
Metrics
candidate.token.countcounter
prompt.token.countcounter
serialized.sizecounter
Unit
bytes