Gemini
Gemini
Gemini(model_name: GeminiModelName = 'gemini-2.0-flash-exp', skill_sources: str | None = None, temperature: float = 0.0, max_tokens: int = 4096)
Bases: CodeActModel
A CodeActModel
implementation based on Google's Gemini 2 chat API.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
model_name
|
GeminiModelName
|
The specific Gemini 2 model to use |
'gemini-2.0-flash-exp'
|
skill_sources
|
str | None
|
Skill module sources to include in the system instruction |
None
|
temperature
|
float
|
Controls randomness in the model's output (0.0 = deterministic) |
0.0
|
max_tokens
|
int
|
Maximum number of tokens in the model's response |
4096
|
Source code in freeact/model/gemini/model/chat.py
GeminiLive
async
GeminiLive(model_name: GeminiModelName = 'gemini-2.0-flash-exp', skill_sources: str | None = None, temperature: float = 0.0, max_tokens: int = 4096)
Context manager for a CodeActModel
implementation based on Google's Gemini 2 live API.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
model_name
|
GeminiModelName
|
The specific Gemini 2 model to use |
'gemini-2.0-flash-exp'
|
skill_sources
|
str | None
|
Skill module sources to include in the system instruction. |
None
|
temperature
|
float
|
Controls randomness in the model's output (0.0 = deterministic) |
0.0
|
max_tokens
|
int
|
Maximum number of tokens in the model's response |
4096
|