pub fn process_contents(contents: &[Content]) -> Vec<Content>
Expand description

Gemini require contents:

  1. start with “user” role
  2. alternate between “user” and “model” role
  3. end with “user” role or function response