[ACTION] Update Google Gemini actions #16262
Labels
action
New Action Request
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
triaged
For maintainers: This issue has been triaged by a Pipedream employee
General Improvements
Let's make sure the models are up to date (can we list them dynamically?)
Actions improvement
Action: Chat
Uses the
generateContent
endpoint with conversation history.Props:
model
prompt
contents.parts.text
history
contents
(previous items)systemMessage
system_instruction
temperature
generationConfig.temperature
maxOutputTokens
generationConfig.maxOutputTokens
topK
generationConfig.topK
topP
generationConfig.topP
safetySettings
safetySettings
outputSchema
generationConfig.response_schema
API Document: https://ai.google.dev/gemini-api/docs/text-generation#chat
Action: Create Embeddings
Uses the
embedContent
orbatchEmbedContents
endpoints.Props:
content
content.parts.text
(or inrequests
)model
taskType
taskType
API Document: https://ai.google.dev/gemini-api/docs/embeddings
Action: Summarize
Uses the
generateContent
endpoint with a specific instruction prompt.Props:
model
content
contents.parts.text
instruction
contents.parts.text
maxOutputTokens
generationConfig.maxOutputTokens
temperature
generationConfig.temperature
API Document: https://ai.google.dev/gemini-api/docs/text-generation
Action: Translate Text
Uses the
generateContent
endpoint with a specific instruction prompt.Props:
model
content
contents.parts.text
instruction
contents.parts.text
temperature
generationConfig.temperature
API Document: https://ai.google.dev/gemini-api/docs/text-generation
Action: Classify Items Into Categories
Uses the
generateContent
endpoint with a specific instruction prompt. Use Output Schema to produce the output in object as follow:Props:
model
items
contents.parts.text
categories
contents.parts.text
instruction
contents.parts.text
temperature
generationConfig.temperature
API Document: https://ai.google.dev/gemini-api/docs/text-generation
Action: Chat with Image/Video
Uses the
generateContent
endpoint with multimodal input (image/video + text prompt).Props:
model
filePath
tmp
dir to image/videoprompt
outputSchema
generationConfig.response_schema
API Document: https://ai.google.dev/gemini-api/docs/vision
Action: Chat with Audio
Uses the
generateContent
endpoint with multimodal input (audio + text prompt).Props:
model
filePath
tmp
dir to the audioprompt
contents.parts.text
outputSchema
generationConfig.response_schema
API Document: https://ai.google.dev/gemini-api/docs/audio
The text was updated successfully, but these errors were encountered: