gemini_startChat
Start a stateful chat session with a Gemini model, returning a unique sessionId for continued interaction. Customize with initial history, generation settings, and safety configurations.
Instructions
Initiates a new stateful chat session with a specified Gemini model. Returns a unique sessionId to be used in subsequent chat messages. Optionally accepts initial conversation history and session-wide generation/safety configurations.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| generationConfig | No | Optional. Session-wide generation configuration settings. | |
| history | No | Optional. An array of initial conversation turns to seed the chat session. Must alternate between 'user' and 'model' roles, starting with 'user'. | |
| modelName | No | Optional. The name of the Gemini model to use for this chat session (e.g., 'gemini-1.5-flash'). If omitted, the server's default model (from GOOGLE_GEMINI_MODEL env var) will be used. | |
| safetySettings | No | Optional. Session-wide safety settings to apply. | |
| tools | No | Optional. A list of tools (currently only supporting function declarations) the model may use during the chat session. |