StructuredOutputCompletion
yaml
type: "io.kestra.plugin.gemini.structuredoutputcompletion"
Examples
yaml
id: gemini_structured_json_completion
namespace: company.team
tasks:
- id: gemini_structured_json_completion
type: io.kestra.plugin.gemini.StructuredOutputCompletion
apiKey: "{{ secret('GEMINI_API_KEY') }}"
model: "gemini-2.5-flash-preview-05-20"
prompt: What are the weather predictions for tomorrow in London?
jsonResponseSchema: |
{
"type": "object",
"properties": {
"predictions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"content": {
"type": "string"
}
}
}
}
}
}
Properties
apiKey *Requiredstring
jsonResponseSchema *Requiredstring
model *Requiredstring
prompt *Requiredstring
Outputs
predictions array
SubType string