Skip to content

Gemini: Document the config_entry parameter #38771

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: next
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,14 @@ The tutorial is using OpenAI, but this could also be done with the Google Genera

### Generate content

{% tip %}
This action isn't tied to any integration entry, so it won't use the model, prompt, or any of the other settings in your options. If you only want to pass text, you should use the `conversation.process` action.
{% endtip %}

Allows you to ask Gemini Pro or Gemini Pro Vision to generate content from a prompt consisting of text and optionally attachments (images, PDFs, etc.).
This action populates [response data](/docs/scripts/perform-actions#use-templates-to-handle-response-data) with the generated content.

This action uses the Gemini model and configuration options from the selected config entry. It will **not** use the prompt or tool settings; those are only supported in conversations (eg, via the `conversation.process` action).

| Data attribute | Optional | Description | Example |
| ---------------------- | -------- | ----------------------------------------------- | ------------------- |
| `config_entry` | no | The integration instance to use. | |
| `prompt` | no | The prompt for generating the content. | Describe this image |
| `filenames` | yes | File names for attachments to include in the prompt. | /tmp/image.jpg |

Expand Down