Files
hermes-agent/scripts
unsupportedpastels fbe9216c11 feat(gemini): Interactions API transport in the gemini provider plugin
Google's Interactions API is now the recommended Gemini interface and where
new Gemini capabilities launch. The gemini plugin now
supplies its own client (ProviderProfile.create_client), which sends each
call to Interactions or to generateContent per model:

- providers.gemini.gemini_api / providers.gemini.models.<m>.gemini_api:
  interactions | generate_content | auto (default). auto keeps
  generateContent except for INTERACTIONS_MODELS (empty for now, so
  default behavior is unchanged). Only the AI Studio host has Interactions,
  so Vertex express and proxy bases stay on generateContent.
- Stateless (store: false): the full history goes as typed steps, so
  compaction, branching and model switches behave as on generateContent.
  Thought signatures ride extra_content.google.thought_signature (the
  existing slot) and replay as thought steps.
- Streaming (step.start/delta/stop, arguments_delta, thought summaries and
  signatures), usage (thoughts folded into completion tokens), status to
  finish_reason, in-band errors mapped to HTTP-equivalent codes.
- Long decode continues requires_continuation hops with
  previous_interaction_id + continuation_token, which needs a stored
  interaction, so only those requests set store: true.
- A long-decode stream that drops resumes from its last mid-stream
  checkpoint token (same request, continued), as the generateContent path
  does. Output past the checkpoint voids it: resuming would repeat that
  output, so the turn is retried instead. The dropped hop is counted up to
  its checkpoint.

One core line: gemini_api joins the known providers.<name> keys, so setting
it no longer logs "unknown config keys ignored". Otherwise core is
untouched: the generateContent path is the existing GeminiNativeClient,
and the plugin rebuilds the same keepalive client and provider TLS settings
the core gives it.
2026-11-10 11:37:47 -05:00
..