Versions in this module Expand all Collapse all v0 v0.2.0 Nov 22, 2026 Changes in this version + const MomentPlaybackStopped + const MomentPlaybackTruncateRefused + const MomentPlaybackTruncated type Moment + Discarded bool + ItemID string + func (moment Moment) PlayoutSpan(stops map[string]float64) (float64, float64) type SessionConfig + Player bool + WaitConfigured bool type Transcript + ConfigurationWaitMS *float64 + Player bool + func (transcript Transcript) PlaybackStops() map[string]float64 + func (transcript Transcript) PlayoutAudioBetween(fromMS, toMS float64) (float64, bool) v0.1.0 Sep 6, 2026 Changes in this version + const AttestationFormatVersion + const ExpectedResolutionFormatVersion + const MomentAgentAudio + const MomentAgentText + const MomentError + const MomentObservation + const MomentReady + const MomentResponseDone + const MomentScheduled + const MomentSpeechStarted + const MomentSpeechStopped + const MomentToolCall + const MomentToolResult + const MomentTranscript + const MomentVideoFrame + const TransportWebRTC + const TransportWebSocket + var ErrConversationTimeout = errors.New("the conversation did not finish before the timeout") + var ErrSessionFailure = errors.New("the session reported a failure") + func DecodePCM24k(raw []byte) ([]int16, error) + func Fingerprint(value any) string + func LoadPCM24k(path string) ([]int16, error) + func MarshalExecutionEvidence(evidence ExecutionEvidence) ([]byte, error) + func MarshalExecutionRequirement(requirement ExecutionRequirement) ([]byte, error) + func MarshalExpectedResolution(resolution LiveResolution) ([]byte, error) + func SpeechActivity(chunks []TimedAudioChunk, atMS, lookbackMS, recentMS int) (activeMS, recentActiveMS float64) + func TranscriptFileName(caseID string) string + func UnitOf(metric string) string + func ValidateExpectedResolution(resolution LiveResolution) error + func WriteExecutionRequirement(path string, requirement ExecutionRequirement) error + func WriteExpectedResolution(path string, resolution LiveResolution) error + func WriteRetainedTranscript(dir, caseID string, record any) error + type Applicability string + const Applicable + const NotApplicable + type ArtifactIdentity struct + Digest string + ID string + Revision string + type AttestationRequest struct + Inspection *openrealtime.InspectionAccess + Scope string + Status binding.Status + type CapabilityIdentity struct + Adapter *ArtifactIdentity + Contract string + Name string + Provider ArtifactIdentity + type Cell struct + Execution ExecutionRequirement + Levels map[Factor]string + Name string + Varies []Factor + func Reference() Cell + func Vary(factor Factor, level string) (Cell, error) + func VaryFrom(reference Cell, factor Factor, level string) (Cell, error) + func (cell Cell) Describe() string + func (cell Cell) ID() string + type Comparison struct + Baseline string + BaselineRate float64 + Difference float64 + Factor Factor + Refusal string + Reportable bool + Suite string + Variant string + VariantRate float64 + func Pair(baseline, variant Result) Comparison + type Distribution struct + Count int + Max float64 + Mean float64 + Min float64 + P50 float64 + P90 float64 + P95 float64 + P99 float64 + Unit string + func Summarise(values []float64) Distribution + func (distribution Distribution) Format(value float64) string + type EdgeEndpoint struct + Lane string + Node string + Port string + type ElementResolution struct + Capabilities []CapabilityIdentity + Element element.Identity + Implementation string + Node string + Runtime ArtifactIdentity + type ExecutionEvidence struct + Fingerprint string + FormatVersion uint64 + Graph *GraphEvidence + Kind ExecutionKind + Scope string + func FreezeExecutionEvidence(evidence ExecutionEvidence) (ExecutionEvidence, error) + func ParseExecutionEvidence(source []byte) (ExecutionEvidence, error) + func (evidence ExecutionEvidence) Clone() ExecutionEvidence + func (evidence ExecutionEvidence) Validate() error + type ExecutionKind string + const ExecutionGraphNative + type ExecutionRequirement struct + FormatVersion uint64 + Graph *GraphEvidence + Kind ExecutionKind + func ParseExecutionRequirement(source []byte) (ExecutionRequirement, error) + func ReadExecutionRequirement(path string) (ExecutionRequirement, error) + func RequireGraph(graph ir.Graph, configuration ArtifactIdentity, expected LiveResolution) (ExecutionRequirement, error) + func (requirement ExecutionRequirement) IsZero() bool + func (requirement ExecutionRequirement) Match(evidence *ExecutionEvidence) error + func (requirement ExecutionRequirement) MatchStatus(status binding.Status) error + func (requirement ExecutionRequirement) Required() bool + func (requirement ExecutionRequirement) Validate() error + type Factor string + const FactorBinding + const FactorCadence + const FactorCognition + const FactorComponents + const FactorFastAction + const FactorFastModel + const FactorFloor + const FactorInteractionArchitecture + const FactorObservers + const FactorPolicy + const FactorRecognizer + const FactorSlowModel + const FactorTransport + const FactorVideoRate + func Compare(left, right Cell) []Factor + func Paired(left, right Cell) (Factor, bool) + func (factor Factor) Description() string + type GraphAttestor struct + Configuration ArtifactIdentity + Graph ir.Graph + Resolve func(context.Context, AttestationRequest) (LiveResolution, error) + func (attestor GraphAttestor) Attest(ctx context.Context, request AttestationRequest) (ExecutionEvidence, error) + type GraphEvidence struct + Configuration ArtifactIdentity + Deployment *inspect.DeploymentEvidence + Graph GraphIdentity + Nodes []GraphNodeEvidence + Paths []GraphPath + type GraphIdentity struct + Fingerprint string + FormatVersion uint64 + ID string + Revision uint64 + type GraphNodeEvidence struct + Capabilities []CapabilityIdentity + Config ArtifactIdentity + Element element.Identity + Implementation string + Node string + Runtime ArtifactIdentity + type GraphPath struct + Edges []PathEdge + Name string + type LiveInspectionClient struct + Endpoint string + HTTPClient *http.Client + Now func() time.Time + func (client LiveInspectionClient) Resolver(graph ir.Graph, configuration ArtifactIdentity, expected LiveResolution) (func(context.Context, AttestationRequest) (LiveResolution, error), error) + func (client LiveInspectionClient) Snapshot(ctx context.Context, access openrealtime.InspectionAccess) (inspect.Live, error) + type LiveResolution struct + Deployment *inspect.DeploymentEvidence + Elements []ElementResolution + Paths []SelectedPath + func AuthorExpectedResolutionFromInspection(graph ir.Graph, configuration ArtifactIdentity, snapshot inspect.Live) (LiveResolution, error) + func ParseExpectedResolution(source []byte) (LiveResolution, error) + func ReadExpectedResolution(path string) (LiveResolution, error) + func ResolutionFromInspection(graph ir.Graph, configuration ArtifactIdentity, expected LiveResolution, ...) (LiveResolution, error) + type Machine struct + Arch string + CPU string + Cores int + GPU string + GoVersion string + Hostname string + OS string + type Moment struct + Arguments string + AtMS float64 + AudioMS float64 + CallID string + Kind string + Name string + Observer string + PlayoutAtMS float64 + ResponseID string + ResponseStatus string + ResponseStatusReason string + Source string + StreamAtMS float64 + Text string + type PathEdge struct + Delivery string + Depth int + From EdgeEndpoint + ID string + Ordering string + To EdgeEndpoint + Type string + type Provenance struct + ExecutableSHA256 string + FinishedAt string + Machine Machine + Modified bool + Revision string + StartedAt string + func Capture() Provenance + func (provenance Provenance) Complete() Provenance + func (provenance Provenance) Reproducible() error + func (provenance Provenance) String() string + type Result struct + Cell Cell + Expected int + Provenance Provenance + Suite string + Summary Summary + Tasks []TaskOutcome + func (result *Result) Finish() + func (result Result) Reportable() error + func (result Result) Write(path string) error + type RuntimeAttestor interface + Attest func(context.Context, AttestationRequest) (ExecutionEvidence, error) + type RuntimeAttestorFunc func(context.Context, AttestationRequest) (ExecutionEvidence, error) + func (function RuntimeAttestorFunc) Attest(ctx context.Context, request AttestationRequest) (ExecutionEvidence, error) + type ScheduledEvent struct + AtMS int + Event map[string]any + Name string + type SelectedPath struct + Edges []string + Name string + type SessionAudioCapture struct + Agent []TimedAudioChunk + RoomPCM16 []int16 + SampleRateHz uint32 + type SessionConfig struct + AttestationScope string + CaptureAudio func(SessionAudioCapture) error + CaptureRuntimeEvidence bool + CaptureScheduled func(SessionScheduledCapture) error + CaptureVideo func(SessionVideoCapture) error + ConcurrentTools bool + Endpoint string + HandleTool func(context.Context, ToolRequest) (json.RawMessage, error) + Instructions string + Model string + Observers []string + PostPlaybackQuiet time.Duration + Quiet bool + Ready func(context.Context) error + Realtime bool + Respond func(name string, arguments json.RawMessage) (json.RawMessage, error) + RuntimeAttestor RuntimeAttestor + Scheduled []ScheduledEvent + SpeechCues []SpeechCue + Timeout time.Duration + Token string + Tools []json.RawMessage + TrailingSilence time.Duration + Transport string + Video []VideoStream + WorkingTimeout time.Duration + type SessionScheduledCapture struct + AtMS int + EventJSON []byte + EventType string + Name string + type SessionVideoCapture struct + Data []byte + EpisodeAtMS float64 + Height int + MediaType string + Source string + Width int + WireTimestamp int64 + type SpeechCue struct + EarliestMS int + LatestMS int + LookbackMS int + MinimumActiveMS int + MinimumGapMS int + Name string + PCM16 []int16 + RecentMS int + type SpeechCueObservation struct + ActiveMS float64 + EarliestMS int + EndMS float64 + ExpectedSamples int + LatestMS int + LookbackMS int + MinimumActiveMS int + MinimumGapMS int + Name string + PCM16SHA256 string + RecentActiveMS float64 + RecentMS int + SentSamples int + StartMS int + Status string + type Summary struct + Complete bool + Completed int + Distributions map[string]Distribution + Failed int + Incompleteness string + NotApplicable int + PassRate float64 + Passed int + type TaskOutcome struct + Applicability Applicability + Completed bool + Error string + Execution *ExecutionEvidence + ExecutionError string + ID string + Metrics map[string]float64 + Notes map[string]string + Passed bool + func (outcome *TaskOutcome) AttachExecution(transcript Transcript) + func (outcome TaskOutcome) Validate() error + type TimedAudioChunk struct + AtMS float64 + PCM16 []int16 + type ToolRequest struct + Arguments json.RawMessage + CallID string + Name string + Received time.Time + type Transcript struct + Execution *ExecutionEvidence + ExecutionError string + Failure string + Moments []Moment + NegotiatedObservers []string + OutstandingResponses int + OutstandingTools int + PlaybackMS float64 + Runtime *binding.Status + SpeechCues []SpeechCueObservation + func Play(ctx context.Context, config SessionConfig, wavPath string) (Transcript, error) + func PlaySamples(ctx context.Context, config SessionConfig, samples []int16) (transcript Transcript, runErr error) + func (transcript Transcript) AgentTurns() []string + func (transcript Transcript) AudioBetween(fromMS, toMS float64) float64 + func (transcript Transcript) AudioStartedBetween(fromMS, toMS float64) float64 + func (transcript Transcript) FirstAudioAfter(fromMS float64) (float64, bool) + func (transcript Transcript) FirstToolCallAfter(name string, fromMS float64) (float64, bool) + func (transcript Transcript) ToolCalls() []string + func (transcript Transcript) UserTurns() []string + type VideoStream struct + Capture func(context.Context) ([]byte, error) + Height int + Interval time.Duration + Source string + Width int