Documentation
¶
Overview ¶
Package relaykitbridge adapts RelayKit's four conversational protocols to the gateway's byte-oriented conversion boundary. It owns no transport or billing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrConversion = errors.New("RelayKit protocol conversion failed")
var ErrSpecialized = errors.New("request requires a specialized protocol bridge")
ErrSpecialized is returned only by pre-conversion feature selection. Callers may select an existing specialized bridge for it, never for conversion errors.
Functions ¶
This section is empty.
Types ¶
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
Session owns exactly one request attempt and its reverse response. It is not shared between attempts, users or streams, and is not concurrency-safe.
func ConvertRequest ¶
func ConvertRequest(ctx context.Context, from, to Format, model string, raw []byte) (*Session, []byte, error)
ConvertRequest selects the engine before invoking RelayKit. Native requests keep their exact bytes and do not enter a DTO decoder. model is the selected upstream model; Gemini carries this identity in its URL rather than its body.