Documentation
¶
Overview ¶
Package ingress normalizes authenticated external content into typed graph observations and explicit retained-media requests. It is a gateway boundary, not a wire-protocol parser: transports translate their events before these ports and cannot choose provenance by setting an authority field.
Index ¶
- func AttachmentHandleType() element.Type
- func ContentCancelType() element.Type
- func Descriptors() []element.Descriptor
- func FactoryRegistrations() ([]graphruntime.FactoryRegistration, error)
- func ObservationType() element.Type
- func OutcomeType() element.Type
- func RegisterDescriptors(catalog *resolve.Catalog) error
- func RegisterFactories(registry *graphruntime.Registry) error
- func UserAttachmentType() element.Type
- func UserContentDescriptor() element.Descriptor
- func UserFileType() element.Type
- func UserImageType() element.Type
- func UserTextType() element.Type
- type ContentCancel
- type Outcome
- type OutcomeKind
- type UserAttachment
- type UserContentConfig
- type UserFile
- type UserImage
- type UserText
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttachmentHandleType ¶
func ContentCancelType ¶
func Descriptors ¶
func Descriptors() []element.Descriptor
func FactoryRegistrations ¶
func FactoryRegistrations() ([]graphruntime.FactoryRegistration, error)
func ObservationType ¶
func OutcomeType ¶
func RegisterDescriptors ¶
func RegisterFactories ¶
func RegisterFactories(registry *graphruntime.Registry) error
func UserAttachmentType ¶
func UserContentDescriptor ¶
func UserContentDescriptor() element.Descriptor
UserContentDescriptor keeps modality and activation explicit while sharing only the state needed to join retention replies to their originating turn. It never parses files or narrates images; those choices remain downstream.
func UserFileType ¶
func UserImageType ¶
func UserTextType ¶
Types ¶
type ContentCancel ¶
type ContentCancel struct {
ContentID string `json:"content_id,omitempty"`
StreamID string `json:"stream_id,omitempty"`
Reason string `json:"reason,omitempty"`
}
ContentCancel addresses content within the envelope's exact session. A StreamID cancels all revisions while its bounded cancellation record remains retained, including revisions arriving after pending retention finishes. A ContentID cancels one pending or next matching content request. If both are supplied, the content lookup takes precedence for pending work and the stream cancellation also remains recorded. New requests use new stream identities. RunID/CancellationScope is a content-ID fallback only without explicit IDs.
type Outcome ¶
type Outcome struct {
Kind OutcomeKind `json:"kind"`
Operation string `json:"operation"`
ContentID string `json:"content_id,omitempty"`
StreamID string `json:"stream_id,omitempty"`
SourceRevision uint64 `json:"source_revision,omitempty"`
Handle string `json:"handle,omitempty"`
Code string `json:"code,omitempty"`
Message string `json:"message,omitempty"`
FinishedNS uint64 `json:"finished_ns,omitempty"`
}
type OutcomeKind ¶
type OutcomeKind string
const ( OutcomeSucceeded OutcomeKind = "succeeded" OutcomeCanceled OutcomeKind = "canceled" OutcomeRefused OutcomeKind = "refused" OutcomeFailed OutcomeKind = "failed" OutcomeIgnored OutcomeKind = "ignored" )
type UserAttachment ¶
type UserAttachment struct {
ContentID string `json:"content_id,omitempty"`
StreamID string `json:"stream_id,omitempty"`
Name string `json:"name,omitempty"`
Caption string `json:"caption,omitempty"`
MIMEType string `json:"mime_type"`
Content []byte `json:"-"`
SHA256 string `json:"sha256,omitempty"`
SourceRevision uint64 `json:"source_revision"`
CapturedNS uint64 `json:"captured_ns,omitempty"`
}
UserAttachment covers non-image, non-file content without weakening those two contracts. Kind remains media.AttachmentOther after retention.
type UserContentConfig ¶
type UserContentConfig struct {
Observer string `json:"observer,omitempty"`
TextSource string `json:"text_source,omitempty"`
AttachmentSource string `json:"attachment_source,omitempty"`
RetentionScope string `json:"retention_scope,omitempty"`
MaxTextBytes int `json:"max_text_bytes,omitempty"`
MaxMetadataBytes int `json:"max_metadata_bytes,omitempty"`
MaxInputBytes int `json:"max_input_bytes,omitempty"`
MaxPending int `json:"max_pending,omitempty"`
MaxPendingBytes int `json:"max_pending_bytes,omitempty"`
MaxStreams int `json:"max_streams,omitempty"`
TerminalMemory int `json:"terminal_memory,omitempty"`
}
type UserFile ¶
type UserFile struct {
ContentID string `json:"content_id,omitempty"`
StreamID string `json:"stream_id,omitempty"`
Name string `json:"name"`
Caption string `json:"caption,omitempty"`
MIMEType string `json:"mime_type"`
Content []byte `json:"-"`
SHA256 string `json:"sha256,omitempty"`
SourceRevision uint64 `json:"source_revision"`
CapturedNS uint64 `json:"captured_ns,omitempty"`
}
type UserImage ¶
type UserImage struct {
ContentID string `json:"content_id,omitempty"`
StreamID string `json:"stream_id,omitempty"`
Caption string `json:"caption,omitempty"`
MIMEType string `json:"mime_type"`
Content []byte `json:"-"`
SHA256 string `json:"sha256,omitempty"`
Width int `json:"width"`
Height int `json:"height"`
SourceRevision uint64 `json:"source_revision"`
CapturedNS uint64 `json:"captured_ns,omitempty"`
}
type UserText ¶
type UserText struct {
ContentID string `json:"content_id,omitempty"`
StreamID string `json:"stream_id,omitempty"`
Text string `json:"text"`
StableText string `json:"stable_text,omitempty"`
Language string `json:"language,omitempty"`
Revision uint64 `json:"revision"`
Supersedes uint64 `json:"supersedes,omitempty"`
Final bool `json:"final,omitempty"`
}
UserText is authenticated participant text. Authority is intentionally not a payload field: only a gateway edge selected by topology may feed this type.