Gemini Annotation Agent
gemini_agent · Built-in agent recipeAnnotation agent powered by Google Gemini. Annotates named entities (NER), spans, part-of-speech tags and text categories, and accepts or rejects binary suggestions.
If you've connected Ellf to your coding assistant, it can set up the agent for you: it knows the recipe's settings, can create the datasets and assets it needs and will ask you about anything it can't work out itself.
✳︎Claude Code: Setting up an agent
› Set up an Ellf agent using the Gemini Annotation Agent recipe (gemini_agent) and assign it to my annotation task.- In the app, go to AgentsNew agent.
- Select the Gemini Annotation Agent recipe under APIs.
- Fill in the form – you'll need to provide Gemini API key. Everything else has sensible defaults.
- Assign the agent to a task via AgentAdd to tasks, or add it from the task via TaskAdd agents.
API key needed
This recipe needs your Gemini API key. Add it as a secret on your cluster and select it in the form.
Create the agent with ellf agents create and the recipe name. All settings from the form are available as arguments. To view all recipe arguments, run ellf agents create gemini_agent --help.
| Argument | Type | Description | Default |
|---|---|---|---|
--name | str | Name of the agent | None |
--api-key | str | Gemini API key: Your Google AI API key, stored as an Ellf secret. | |
--model | str | Gemini model name | "gemini-2.5-flash" |
--labels.scheme | str | Label scheme: Labels asset with definitions. They replace the task's definitions of the same labels. | None |
--labels.ignore-task-labels | bool | Ignore label definitions from task: Only use the definitions from the agent's label scheme. | False |
--icon | str | Icon: Avatar shown for this agent's annotations.Available: bot, openai, gemini, claude, huggingface, mistral, ollama, wand, zap, tag, cpu | "gemini" |
--settings.instructions | str | Agent instructions: Markdown document with guidelines for the agent. If annotation instructions from the task are used, the instructions are combined. | None |
--settings.ignore-task-instructions | bool | Ignore annotation instructions from task: Don't include the annotation instructions of the task the agent is assigned to. | False |
--poll-interval | float | Poll interval (seconds) | 1 |
--idle-shutdown-seconds | float | Idle shutdown (seconds): Stops the agent after it's been idle for this many seconds (0 = keep running). | 0 |
--thinking-budget | int | Thinking token budget: Tokens the model can spend thinking (0 = off). | 0 |
--project-id | str | Project ID to add agent to. Defaults to your saved project. | None |
--worker-class | str | Worker class to launch the agent on, as configured on your cluster | None |