geometor.arcprize.solvers.gemini_client

Google Gemini Model Interface for ARC Challenge

Provides a streamlined interface to Google’s Gemini model, configured specifically for the dialogue-based ARC solving approach.

Features:

  • Structured conversation management

  • Code execution capabilities

  • Function calling support

  • System instruction integration

  • Error handling and retry logic

The client is designed to maintain consistent context while allowing for flexible interaction patterns including code exploration and function calls.

class geometor.arcprize.solvers.gemini_client.GeminiClient(model_name: str, instructions_file: str)[source]

Bases: object

Initialize the GeminiClient with model configuration and system instructions.

parameters

model_namestr

Name of the Gemini model to use.

instructions_filestr

Path to the instructions file.

generate_content(prompt: list, tools=None) object[source]

Generate content from the Gemini model based on the provided prompt.

parameters

promptlist

The prompt to send to the model.

toolsstr or list

Optional tools or functions the model can use. “code_execution”

returns

responseGeminiResponse

the model’s response.