conformance

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 6, 2026 License: Apache-2.0 Imports: 10 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package conformance validates the stable component API and the complete pinned OpenAI Realtime event registry.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExtensionCheck

type ExtensionCheck struct {
	Name   string `json:"name"`
	Passed bool   `json:"passed"`
	Detail string `json:"detail,omitempty"`
}

ExtensionCheck is one verified property.

type ExtensionReport

type ExtensionReport struct {
	Suite   string `json:"suite"`
	Passed  bool   `json:"passed"`
	Version int    `json:"version"`

	ClientEvents      int `json:"client_events"`
	ServerEvents      int `json:"server_events"`
	ExtendedObjects   int `json:"extended_objects"`
	ChangedBaseEvents int `json:"changed_base_events"`
	BaseWireNames     int `json:"base_wire_names"`

	Checks   []ExtensionCheck `json:"checks"`
	Failures []string         `json:"failures,omitempty"`
}

ExtensionReport records what the OpenRealtime Protocol suite verified.

The counts are part of the report because the design bar was numeric: three events and two object extensions, on a base protocol with 66 wire names. A suite that verified behaviour but let the surface grow would be checking the wrong thing.

func RunExtension

func RunExtension() ExtensionReport

RunExtension verifies the extension against its own rules.

type ProfileCount

type ProfileCount struct {
	Profile   openaiwire.Profile   `json:"profile"`
	Direction openaiwire.Direction `json:"direction"`
	Count     uint64               `json:"count"`
}

type ProtocolReport

type ProtocolReport struct {
	Suite                   string         `json:"suite"`
	Passed                  bool           `json:"passed"`
	Definitions             uint64         `json:"definitions"`
	UniqueWireTypes         uint64         `json:"unique_wire_types"`
	SchemaDefinitions       uint64         `json:"schema_definitions"`
	SchemaSHA256            string         `json:"schema_sha256"`
	Source                  ProtocolSource `json:"source"`
	Counts                  []ProfileCount `json:"counts"`
	KnownDirectionProbes    uint64         `json:"known_direction_probes"`
	UnknownTypeRejected     bool           `json:"unknown_type_rejected"`
	CrossDirectionRejected  bool           `json:"cross_direction_rejected"`
	CrossProfileRejected    bool           `json:"cross_profile_rejected"`
	MissingRequiredRejected bool           `json:"missing_required_rejected"`
}

func RunProtocol

func RunProtocol() (ProtocolReport, error)

type ProtocolSource

type ProtocolSource struct {
	URL         string `json:"url"`
	Revision    string `json:"revision"`
	SHA256      string `json:"sha256"`
	RetrievedAt string `json:"retrieved_at"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL