Documentation
¶
Overview ¶
Package graphnative owns the Meeting Assistant's graph-native plugin contributions and its stable Realtime-to-graph adapter profile.
The package contains no listener, UI, model endpoint, credential, or implementation-name switch. Deployments contribute exact provider and adapter plugins through graph/launch; the checked graph decides how those plugins are composed.
Index ¶
- Constants
- func AdapterPlugin(config AdapterPluginConfig) (graphlaunch.AdapterPlugin, graphlaunch.AdapterSelection, error)
- func AssemblyContribution() (graphassembly.Catalog, error)
- func BackgroundInjectionDescriptor() element.Descriptor
- func BackgroundOutcomeType() element.Type
- func DefaultDescriptorCatalog() (*resolve.Catalog, error)
- func FactoryRegistrations() ([]graphruntime.FactoryRegistration, error)
- func LaunchConfig(config ProviderConfig) (graphlaunch.Config, error)
- func NewApplicationRegistration(source ApplicationHostConfig) (launchprofile.Registration, error)
- func NewProvider(ctx context.Context, config ProviderConfig) (graphlaunch.Result, error)
- func RegisterDescriptors(catalog *resolve.Catalog) error
- func ScreenForkDescriptor() element.Descriptor
- func SessionAdapterFactory(config SessionAdapterConfig) graphbinding.AdapterFactory
- type AdapterPluginConfig
- type AdapterProfileConfig
- type ApplicationArtifactPaths
- type ApplicationConfig
- type ApplicationHostConfig
- type ApplicationPlanSelection
- type BackgroundInjectionConfig
- type BackgroundInjectionOutcome
- type BackgroundOutcomeKind
- type BackgroundPlugin
- type ContextInjection
- type ForegroundBindingFactory
- type ForegroundPlugin
- type ProviderConfig
- type SchemaResolver
- type ScreenForkConfig
- type SessionAdapterConfig
- type SessionPlugin
- type SessionPluginConfig
- type TTSPlugin
- type VisualPlugin
Constants ¶
const ( // ApplicationReference is the stable host-registry key for the Meeting // Assistant graph application. Installed executable material is selected // separately by the registration's exact Artifact identity. ApplicationReference = "application.openrealtime.meeting-assistant.v1" ApplicationFormatVersion uint64 = 1 )
const ( GraphID = "meeting_assistant" // Provider references are stable graph contracts. Exact server profiles // contribute implementations for these references; they never rewrite the // topology or select an implementation by a cascade/Omni name switch. ForegroundDeploymentReference = "meeting.foreground" VisualProviderReference = "meeting.visual" BackgroundProviderReference = "meeting.background" TTSProviderReference = "meeting.tts" // ForegroundCausalOrderingCapability is required because model.External // drains different input ports concurrently. A selected deployment must // buffer a Generate frame until every ContextInjection named by its causal // parents has been applied. ForegroundCausalOrderingCapability = "model.causal-input-order" ForegroundCausalOrderingContract = "text.ContextInjection->cognition.Generate" ScreenForkConfigSchema = "schema://openrealtime/meeting/screen-fork-config/v1" BackgroundConfigSchema = "schema://openrealtime/meeting/background-injection-config/v1" )
const ( SessionAdapterReference = "go://github.com/bojieli/OpenRealtime/meeting/graphnative/session-adapter/v1" SessionProfileName = "openrealtime.meeting-assistant.graph-native" SessionProfileRevision = uint64(1) )
Variables ¶
This section is empty.
Functions ¶
func AdapterPlugin ¶
func AdapterPlugin( config AdapterPluginConfig, ) (graphlaunch.AdapterPlugin, graphlaunch.AdapterSelection, error)
AdapterPlugin builds the graph-fingerprint-bound Realtime projection while leaving protocol translation in an exact, deployment-selected adapter factory. Constructing or binding the plugin acquires no runtime resource.
func AssemblyContribution ¶
func AssemblyContribution() (graphassembly.Catalog, error)
func BackgroundInjectionDescriptor ¶
func BackgroundInjectionDescriptor() element.Descriptor
BackgroundInjectionDescriptor turns a complete prepared slow-model text stream into an explicit foreground context injection followed by a response trigger. Partial, interrupted, replayed, and oversized streams never cross the injection boundary.
func BackgroundOutcomeType ¶
func FactoryRegistrations ¶
func FactoryRegistrations() ([]graphruntime.FactoryRegistration, error)
FactoryRegistrations returns the resource-free executable contribution for this plugin. Provider services are separate launch-catalog contributions.
func LaunchConfig ¶
func LaunchConfig(config ProviderConfig) (graphlaunch.Config, error)
LaunchConfig composes the resource-free Meeting Assistant contribution into the generic graph launcher contract. The returned selection remains fully inspectable by a server-profile registry before graphlaunch.New is called. It does not mount an element, invoke a dependency or adapter factory, resolve a secret, dial a provider, or open a listener.
func NewApplicationRegistration ¶
func NewApplicationRegistration( source ApplicationHostConfig, ) (launchprofile.Registration, error)
NewApplicationRegistration snapshots and validates one host-installed Meeting Assistant application plugin. Its returned factory only decodes and composes resource-free launch configuration: it never resolves a secret, invokes a mount dependency or adapter factory, dials a model, mounts a graph, or opens a listener.
func NewProvider ¶
func NewProvider(ctx context.Context, config ProviderConfig) (graphlaunch.Result, error)
NewProvider seals an exact Meeting Assistant graph provider without mounting an element, dialing a model, resolving a secret, or opening a listener. The caller may pass a broader plugin catalog; graph/launch reduces it to the immutable plan before creating the provider.
func RegisterDescriptors ¶
RegisterDescriptors contributes only Meeting Assistant element contracts. It is intentionally not called by elements.Catalog: installing this application plugin is an explicit deployment choice.
func ScreenForkDescriptor ¶
func ScreenForkDescriptor() element.Descriptor
ScreenForkDescriptor converts one exact Realtime/model video input into a direct foreground stream and an explicitly clocked adaptive-observation stream. The conversion is a graph element so direct vision is not hidden in an adapter callback and the observation path remains independently inspectable.
func SessionAdapterFactory ¶
func SessionAdapterFactory(config SessionAdapterConfig) graphbinding.AdapterFactory
SessionAdapterFactory constructs the concrete Meeting Assistant adapter. It is suitable for AdapterPluginConfig.Factory and acquires no provider or listener resource until NativeBinding starts a session.
Types ¶
type AdapterPluginConfig ¶
type AdapterPluginConfig struct {
Reference string
Artifact inspect.ArtifactIdentity
Profile AdapterProfileConfig
Factory graphbinding.AdapterFactory
}
type AdapterProfileConfig ¶
type AdapterProfileConfig struct {
Name string
Revision uint64
Ownership legacy.Ownership
Voice legacy.VoiceControl
Stack legacy.StackCapabilities
MaxOutputTokens int
AdditionalObservers []string
}
type ApplicationArtifactPaths ¶
type ApplicationArtifactPaths struct {
Topology string `json:"topology"`
Values string `json:"values"`
Lock string `json:"lock"`
Channels string `json:"channels,omitempty"`
Deployment string `json:"deployment"`
}
ApplicationArtifactPaths repeats the immutable bundle member names selected by a launch profile without embedding their bytes. The host loads and owns those bytes; the profile's complete Plan identity detects content drift.
type ApplicationConfig ¶
type ApplicationConfig struct {
FormatVersion uint64 `json:"format_version"`
Artifacts ApplicationArtifactPaths `json:"artifacts"`
Plan ApplicationPlanSelection `json:"plan"`
Adapter launchprofile.AdapterSelection `json:"adapter"`
}
ApplicationConfig is the strict plugin-owned JSON object carried by a generic graph launch profile. Adapter metadata is deliberately repeated: the application exact-matches it against installed code before LaunchConfig, and the generic resolver exact-matches the returned selection a second time.
type ApplicationHostConfig ¶
type ApplicationHostConfig struct {
ApplicationArtifact inspect.ArtifactIdentity
ProviderArtifact inspect.ArtifactIdentity
Artifacts graphconfig.Artifacts
PlanOptions graphconfig.Options
Plugins graphlaunch.Catalog
GraphMetadata graphcatalog.Metadata
SecretCatalog *graphsecret.Document
Evidence graphevidence.Document
Adapters []AdapterPluginConfig
Inspection graphruntime.InspectionConfig
ShutdownTimeout time.Duration
TraceRecording *graphbinding.TraceRecordingConfig
Readiness []graphlaunch.ReadinessCheck
}
ApplicationHostConfig is process-private application inventory. It carries immutable bundle bytes, broad resource-free plugin metadata, mount-time factories, and exact executable identities. None of these functions or credential locators enters serialized profile JSON.
type ApplicationPlanSelection ¶
type ApplicationPlanSelection struct {
Revision uint64 `json:"revision"`
OptionalDependencies []string `json:"optional_dependencies,omitempty"`
}
ApplicationPlanSelection contains the non-secret plan choices that are not already fixed by the bundle bytes. Host-owned safety limits remain outside the serialized document and the resulting complete plan identity is checked by graph/launch/profile before a provider can be exposed.
type BackgroundInjectionConfig ¶
type BackgroundInjectionConfig struct {
Role string `json:"role"`
Instruction string `json:"instruction"`
MaxOutputTokens int `json:"max_output_tokens,omitempty"`
MaxRuns int `json:"max_runs,omitempty"`
MaxTextBytes int `json:"max_text_bytes,omitempty"`
TerminalMemory int `json:"terminal_memory,omitempty"`
}
type BackgroundInjectionOutcome ¶
type BackgroundInjectionOutcome struct {
Kind BackgroundOutcomeKind `json:"kind"`
RunID string `json:"run_id,omitempty"`
Bytes int `json:"bytes,omitempty"`
Code string `json:"code,omitempty"`
Message string `json:"message,omitempty"`
}
BackgroundInjectionOutcome is bounded audit evidence for every terminal background stream. It deliberately carries no generated text.
type BackgroundOutcomeKind ¶
type BackgroundOutcomeKind string
const ( BackgroundInjected BackgroundOutcomeKind = "injected" BackgroundInterrupted BackgroundOutcomeKind = "interrupted" BackgroundRejected BackgroundOutcomeKind = "rejected" BackgroundIgnored BackgroundOutcomeKind = "ignored" )
type BackgroundPlugin ¶
type BackgroundPlugin struct {
Artifact inspect.ArtifactIdentity
Descriptor continuation.Descriptor
Factory func(context.Context, legacy.Options) (continuation.Provider, error)
}
BackgroundPlugin contributes exactly one silent continuation provider. Its output can reach the foreground only through meeting.BackgroundInjection.
type ContextInjection ¶
type ContextInjection struct {
Role string `json:"role"`
Source string `json:"source"`
RunID string `json:"run_id"`
Text string `json:"text"`
}
ContextInjection is the provider-neutral payload carried by text.ContextInjection. External foreground plugins may enrich how it is rendered, but may not reinterpret its role or source identity.
type ForegroundBindingFactory ¶
ForegroundBindingFactory constructs one session-scoped implementation of the stable voice-stack contract. The returned binding is exposed only through model.External protocol v4; it never becomes a second server or a Meeting-specific wire protocol.
type ForegroundPlugin ¶
type ForegroundPlugin struct {
Artifact inspect.ArtifactIdentity
ProviderArtifact inspect.ArtifactIdentity
RuntimeArtifact inspect.ArtifactIdentity
WireAdapterArtifact inspect.ArtifactIdentity
BindingName string
Ownership legacy.Ownership
Capabilities legacy.Capabilities
Descriptor continuation.Descriptor
Factory ForegroundBindingFactory
}
ForegroundPlugin pins the live binding contract and the three independently observable identities in its protocol-v4 readiness proof. Artifact is the mount-dependency identity. ProviderArtifact identifies the complete selected voice stack, RuntimeArtifact identifies the wrapper executing it, and WireAdapterArtifact identifies its payload translation.
type ProviderConfig ¶
type ProviderConfig struct {
Artifacts graphconfig.Artifacts
PlanOptions graphconfig.Options
Plugins graphlaunch.Catalog
GraphMetadata graphcatalog.Metadata
SecretCatalog *graphsecret.Document
Evidence graphevidence.Document
Adapter AdapterPluginConfig
Inspection graphruntime.InspectionConfig
ShutdownTimeout time.Duration
TraceRecording *graphbinding.TraceRecordingConfig
Readiness []graphlaunch.ReadinessCheck
}
ProviderConfig is an application-profile seam over the generic launcher. Plugins contains only extra provider/dependency/adapter contributions; standard and Meeting Assistant element implementations are composed here.
type SchemaResolver ¶
type SchemaResolver struct {
// contains filtered or unexported fields
}
SchemaResolver composes the Meeting Assistant plugin schemas over another exact resolver. It never performs filesystem or network fallback.
func DefaultSchemaResolver ¶
func DefaultSchemaResolver() (*SchemaResolver, error)
func NewSchemaResolver ¶
func NewSchemaResolver(base graphschema.Resolver) (*SchemaResolver, error)
func (*SchemaResolver) ResolveConfigSchema ¶
func (resolver *SchemaResolver) ResolveConfigSchema( ctx context.Context, reference string, ) (graphschema.ResolvedSchema, error)
type ScreenForkConfig ¶
type ScreenForkConfig struct {
Source string `json:"source"`
Kind videograph.SourceKind `json:"kind"`
MaxFrameBytes int `json:"max_frame_bytes,omitempty"`
}
type SessionAdapterConfig ¶
type SessionAdapterConfig struct {
FrameRateMilliHz int
}
SessionAdapterConfig is the resource-free executable contribution for the stable Realtime-to-Meeting-graph boundary. Provider selection belongs to the independently registered graph dependencies; this adapter contains only protocol translation and the exact video cadence declared on model.External.
type SessionPlugin ¶
type SessionPlugin struct {
// contains filtered or unexported fields
}
SessionPlugin contributes the concrete Realtime adapter and all four exact mount-scoped services selected by the Meeting graph.
func NewSessionPlugin ¶
func NewSessionPlugin(source SessionPluginConfig) (*SessionPlugin, error)
NewSessionPlugin validates and snapshots a production Meeting contribution without acquiring a recognizer, model, narrator, synthesizer, or listener.
func (*SessionPlugin) AdapterConfig ¶
func (plugin *SessionPlugin) AdapterConfig() AdapterPluginConfig
AdapterConfig returns the exact application-host adapter contribution.
func (*SessionPlugin) AssemblyDependencies ¶
func (plugin *SessionPlugin) AssemblyDependencies() []graphassembly.Dependency
AssemblyDependencies returns the four exact, mount-scoped service identities. No service value or provider resource exists at this stage.
func (*SessionPlugin) MountDependencies ¶
func (plugin *SessionPlugin) MountDependencies() []graphlaunch.MountDependencyPlugin
MountDependencies returns independent exact service contributions. Every call creates a fresh per-session registry, while provider acquisition stays behind the graph element that owns that provider's lifecycle.
type SessionPluginConfig ¶
type SessionPluginConfig struct {
AdapterArtifact inspect.ArtifactIdentity
Adapter SessionAdapterConfig
Foreground ForegroundPlugin
Visual VisualPlugin
Background BackgroundPlugin
TTS TTSPlugin
}
SessionPluginConfig is a resource-free executable inventory for one exact Meeting Assistant deployment. Constructing the plugin validates and clones metadata only; provider factories are called after a session graph mounts.
type TTSPlugin ¶
type TTSPlugin struct {
Artifact inspect.ArtifactIdentity
Descriptor v1.Descriptor
Factory func(context.Context, legacy.Options) (v1.SpeechProvider, error)
}
TTSPlugin contributes the separately attested synthesizer used only by the graph-owned SafePreparedText -> SegmentPreparedText -> speech.TTS path. It is intentionally independent from the legacy foreground binding: native model audio has no authority to cross the Meeting presentation boundary.
type VisualPlugin ¶
type VisualPlugin struct {
Artifact inspect.ArtifactIdentity
Descriptor perceptionelements.VisualProviderDescriptor
Factory func(context.Context, legacy.Options) (perceptionelements.VisualProvider, error)
}
VisualPlugin contributes exactly one adaptive-observation narrator selected by the immutable Meeting graph.