Expand description
Protocol abstraction — unified interface for remote model API providers.
Each provider (OpenAI, Anthropic, Google) implements ProtocolHandler,
which owns message formatting, request building, response parsing, and
streaming. RemoteBackend becomes a thin dispatcher.
Structs§
- Anthropic
Handler - ApiRequest
- Unified request parameters for any protocol.
- ApiResponse
- Unified response from any protocol.
- Azure
Open AiHandler - Google
Handler - Open
AiHandler
Traits§
- Protocol
Handler - Protocol handler trait — each provider implements this.
Functions§
- google_
url - Build the full Google API URL with model and key.
- handler_
for - Get the appropriate protocol handler for an API protocol.