Expand description
Buffered direct Claude Messages ↔ Gemini GenerateContent conversion.
Modules§
- stream
- Direct incremental Claude Messages ↔ Gemini GenerateContent streams.
Structs§
- Claude
Gemini Request Context - Concrete media facts obtained by the caller’s resource capabilities.
- Claude
Gemini Usage Facts - Measured counters absent from the source response. Supplied counters must agree with any corresponding upstream fields; omission is not zero.
- Media
Facts - MIME and public resource URI resolved by an invocation. The key is the exact source URL/file ID; opaque native IDs cannot simply become target URLs.
Functions§
- claude_
to_ gemini_ request - claude_
to_ gemini_ response - gemini_
to_ claude_ request - gemini_
to_ claude_ response - without_
gemini_ thinking - A Claude Messages (or count tokens) body with every Gemini-signed
thinkingblock removed, and any message the removal empties;Nonewhen the body holds none. This is for a request that reaches an Anthropic upstream as it is, without conversion: Anthropic refuses a signature it did not issue, which is the case after the conversation moved over from a Gemini upstream.