pub fn parse_gemini_request(body: &Value) -> Result<ChatRequest, String>Expand description
Parse a Gemini generateContent request into the canonical
ChatRequest. The Gemini native format has:
contents: array of {role, parts} (required)systemInstruction: {parts: [{text}]} (optional)tools: array of {functionDeclarations: [{name, description, parameters}]}toolConfig: {mode: “AUTO”|“NONE”|“ANY”, allowed_function_names}generationConfig: {temperature, topP, maxOutputTokens, stopSequences}