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)