Skip to contents

Context-aware Gemini methodology assistant turn

Usage

gemini_ask(history, user_text, context_text, api_key, model = .gemini_model())

Arguments

history

Prior turns as a list of list(role, text).

user_text

The researcher's question.

context_text

Summary of the current analysis passed as context.

api_key

Google Gemini API key.

model

Gemini model id; defaults to the pinned session model.

Value

A list with text (assistant reply), next_history, and the resolved model id (record this for reproducibility).