memoryv1

package
v0.1.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MemoryCore_ObserveSourceEvent_FullMethodName   = "/memory.v1.MemoryCore/ObserveSourceEvent"
	MemoryCore_SelectMemory_FullMethodName         = "/memory.v1.MemoryCore/SelectMemory"
	MemoryCore_RecordMemoryDelivery_FullMethodName = "/memory.v1.MemoryCore/RecordMemoryDelivery"
	MemoryCore_ReportOutcome_FullMethodName        = "/memory.v1.MemoryCore/ReportOutcome"
)

Variables

View Source
var (
	MemoryScopeKind_name = map[int32]string{
		0: "MEMORY_SCOPE_KIND_UNSPECIFIED",
		1: "MEMORY_SCOPE_KIND_AGENT",
		2: "MEMORY_SCOPE_KIND_RELATIONSHIP",
	}
	MemoryScopeKind_value = map[string]int32{
		"MEMORY_SCOPE_KIND_UNSPECIFIED":  0,
		"MEMORY_SCOPE_KIND_AGENT":        1,
		"MEMORY_SCOPE_KIND_RELATIONSHIP": 2,
	}
)

Enum value maps for MemoryScopeKind.

View Source
var (
	EpisodeSourceRole_name = map[int32]string{
		0: "EPISODE_SOURCE_ROLE_UNSPECIFIED",
		1: "EPISODE_SOURCE_ROLE_SITUATION",
		2: "EPISODE_SOURCE_ROLE_AGENT_ACT",
		3: "EPISODE_SOURCE_ROLE_OUTCOME",
	}
	EpisodeSourceRole_value = map[string]int32{
		"EPISODE_SOURCE_ROLE_UNSPECIFIED": 0,
		"EPISODE_SOURCE_ROLE_SITUATION":   1,
		"EPISODE_SOURCE_ROLE_AGENT_ACT":   2,
		"EPISODE_SOURCE_ROLE_OUTCOME":     3,
	}
)

Enum value maps for EpisodeSourceRole.

View Source
var (
	SourceActorKind_name = map[int32]string{
		0: "SOURCE_ACTOR_KIND_UNSPECIFIED",
		1: "SOURCE_ACTOR_KIND_USER",
		2: "SOURCE_ACTOR_KIND_AGENT",
		3: "SOURCE_ACTOR_KIND_SYSTEM",
		4: "SOURCE_ACTOR_KIND_TOOL",
		5: "SOURCE_ACTOR_KIND_EXTERNAL",
	}
	SourceActorKind_value = map[string]int32{
		"SOURCE_ACTOR_KIND_UNSPECIFIED": 0,
		"SOURCE_ACTOR_KIND_USER":        1,
		"SOURCE_ACTOR_KIND_AGENT":       2,
		"SOURCE_ACTOR_KIND_SYSTEM":      3,
		"SOURCE_ACTOR_KIND_TOOL":        4,
		"SOURCE_ACTOR_KIND_EXTERNAL":    5,
	}
)

Enum value maps for SourceActorKind.

View Source
var (
	MemoryApplicationScope_name = map[int32]string{
		0: "MEMORY_APPLICATION_SCOPE_UNSPECIFIED",
		1: "MEMORY_APPLICATION_SCOPE_SELF",
		2: "MEMORY_APPLICATION_SCOPE_OTHER",
		3: "MEMORY_APPLICATION_SCOPE_RELATION",
		4: "MEMORY_APPLICATION_SCOPE_SITUATION",
	}
	MemoryApplicationScope_value = map[string]int32{
		"MEMORY_APPLICATION_SCOPE_UNSPECIFIED": 0,
		"MEMORY_APPLICATION_SCOPE_SELF":        1,
		"MEMORY_APPLICATION_SCOPE_OTHER":       2,
		"MEMORY_APPLICATION_SCOPE_RELATION":    3,
		"MEMORY_APPLICATION_SCOPE_SITUATION":   4,
	}
)

Enum value maps for MemoryApplicationScope.

View Source
var File_memory_v1_memory_proto protoreflect.FileDescriptor
View Source
var MemoryCore_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "memory.v1.MemoryCore",
	HandlerType: (*MemoryCoreServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ObserveSourceEvent",
			Handler:    _MemoryCore_ObserveSourceEvent_Handler,
		},
		{
			MethodName: "SelectMemory",
			Handler:    _MemoryCore_SelectMemory_Handler,
		},
		{
			MethodName: "RecordMemoryDelivery",
			Handler:    _MemoryCore_RecordMemoryDelivery_Handler,
		},
		{
			MethodName: "ReportOutcome",
			Handler:    _MemoryCore_ReportOutcome_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "memory/v1/memory.proto",
}

MemoryCore_ServiceDesc is the grpc.ServiceDesc for MemoryCore service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterMemoryCoreServer

func RegisterMemoryCoreServer(s grpc.ServiceRegistrar, srv MemoryCoreServer)

Types

type Constitution

type Constitution struct {
	MemoryRef string `protobuf:"bytes,1,opt,name=memory_ref,json=memoryRef,proto3" json:"memory_ref,omitempty"`
	Text      string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
	// contains filtered or unexported fields
}

Constitution is the product-owned, read-only Agent role baseline, carried by immutable source intake and selected MemoryContext, never learned evidence. Harnesses pass the same optional snapshot to Situation intake and Select. memory_ref is its stable external version ref, not a writable Memory target.

func (*Constitution) Descriptor deprecated

func (*Constitution) Descriptor() ([]byte, []int)

Deprecated: Use Constitution.ProtoReflect.Descriptor instead.

func (*Constitution) GetMemoryRef

func (x *Constitution) GetMemoryRef() string

func (*Constitution) GetText

func (x *Constitution) GetText() string

func (*Constitution) ProtoMessage

func (*Constitution) ProtoMessage()

func (*Constitution) ProtoReflect

func (x *Constitution) ProtoReflect() protoreflect.Message

func (*Constitution) Reset

func (x *Constitution) Reset()

func (*Constitution) String

func (x *Constitution) String() string

type Disposition

type Disposition struct {
	MemoryRef        string                 `protobuf:"bytes,1,opt,name=memory_ref,json=memoryRef,proto3" json:"memory_ref,omitempty"`
	Text             string                 `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
	ApplicationScope MemoryApplicationScope `` /* 148-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Disposition) Descriptor deprecated

func (*Disposition) Descriptor() ([]byte, []int)

Deprecated: Use Disposition.ProtoReflect.Descriptor instead.

func (*Disposition) GetApplicationScope

func (x *Disposition) GetApplicationScope() MemoryApplicationScope

func (*Disposition) GetMemoryRef

func (x *Disposition) GetMemoryRef() string

func (*Disposition) GetText

func (x *Disposition) GetText() string

func (*Disposition) ProtoMessage

func (*Disposition) ProtoMessage()

func (*Disposition) ProtoReflect

func (x *Disposition) ProtoReflect() protoreflect.Message

func (*Disposition) Reset

func (x *Disposition) Reset()

func (*Disposition) String

func (x *Disposition) String() string

type EpisodeBinding

type EpisodeBinding struct {
	RunRef         string            `protobuf:"bytes,1,opt,name=run_ref,json=runRef,proto3" json:"run_ref,omitempty"`
	SourceGroupRef string            `protobuf:"bytes,2,opt,name=source_group_ref,json=sourceGroupRef,proto3" json:"source_group_ref,omitempty"`
	Role           EpisodeSourceRole `protobuf:"varint,3,opt,name=role,proto3,enum=memory.v1.EpisodeSourceRole" json:"role,omitempty"`
	// contains filtered or unexported fields
}

func (*EpisodeBinding) Descriptor deprecated

func (*EpisodeBinding) Descriptor() ([]byte, []int)

Deprecated: Use EpisodeBinding.ProtoReflect.Descriptor instead.

func (*EpisodeBinding) GetRole

func (x *EpisodeBinding) GetRole() EpisodeSourceRole

func (*EpisodeBinding) GetRunRef

func (x *EpisodeBinding) GetRunRef() string

func (*EpisodeBinding) GetSourceGroupRef

func (x *EpisodeBinding) GetSourceGroupRef() string

func (*EpisodeBinding) ProtoMessage

func (*EpisodeBinding) ProtoMessage()

func (*EpisodeBinding) ProtoReflect

func (x *EpisodeBinding) ProtoReflect() protoreflect.Message

func (*EpisodeBinding) Reset

func (x *EpisodeBinding) Reset()

func (*EpisodeBinding) String

func (x *EpisodeBinding) String() string

type EpisodeEvidence

type EpisodeEvidence struct {
	MemoryRef string `protobuf:"bytes,1,opt,name=memory_ref,json=memoryRef,proto3" json:"memory_ref,omitempty"`
	Text      string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
	// contains filtered or unexported fields
}

EpisodeEvidence is canonical historical source text selected as bounded reference evidence. It is not learned Memory and grants no write eligibility.

func (*EpisodeEvidence) Descriptor deprecated

func (*EpisodeEvidence) Descriptor() ([]byte, []int)

Deprecated: Use EpisodeEvidence.ProtoReflect.Descriptor instead.

func (*EpisodeEvidence) GetMemoryRef

func (x *EpisodeEvidence) GetMemoryRef() string

func (*EpisodeEvidence) GetText

func (x *EpisodeEvidence) GetText() string

func (*EpisodeEvidence) ProtoMessage

func (*EpisodeEvidence) ProtoMessage()

func (*EpisodeEvidence) ProtoReflect

func (x *EpisodeEvidence) ProtoReflect() protoreflect.Message

func (*EpisodeEvidence) Reset

func (x *EpisodeEvidence) Reset()

func (*EpisodeEvidence) String

func (x *EpisodeEvidence) String() string

type EpisodeSourceRole

type EpisodeSourceRole int32
const (
	EpisodeSourceRole_EPISODE_SOURCE_ROLE_UNSPECIFIED EpisodeSourceRole = 0
	EpisodeSourceRole_EPISODE_SOURCE_ROLE_SITUATION   EpisodeSourceRole = 1
	EpisodeSourceRole_EPISODE_SOURCE_ROLE_AGENT_ACT   EpisodeSourceRole = 2
	EpisodeSourceRole_EPISODE_SOURCE_ROLE_OUTCOME     EpisodeSourceRole = 3
)

func (EpisodeSourceRole) Descriptor

func (EpisodeSourceRole) Enum

func (EpisodeSourceRole) EnumDescriptor deprecated

func (EpisodeSourceRole) EnumDescriptor() ([]byte, []int)

Deprecated: Use EpisodeSourceRole.Descriptor instead.

func (EpisodeSourceRole) Number

func (EpisodeSourceRole) String

func (x EpisodeSourceRole) String() string

func (EpisodeSourceRole) Type

type MemoryApplicationScope

type MemoryApplicationScope int32

MemoryApplicationScope tells a Harness which subject selected long-term memory may shape. It does not encode kind-specific semantic eligibility.

const (
	MemoryApplicationScope_MEMORY_APPLICATION_SCOPE_UNSPECIFIED MemoryApplicationScope = 0
	MemoryApplicationScope_MEMORY_APPLICATION_SCOPE_SELF        MemoryApplicationScope = 1
	MemoryApplicationScope_MEMORY_APPLICATION_SCOPE_OTHER       MemoryApplicationScope = 2
	MemoryApplicationScope_MEMORY_APPLICATION_SCOPE_RELATION    MemoryApplicationScope = 3
	MemoryApplicationScope_MEMORY_APPLICATION_SCOPE_SITUATION   MemoryApplicationScope = 4
)

func (MemoryApplicationScope) Descriptor

func (MemoryApplicationScope) Enum

func (MemoryApplicationScope) EnumDescriptor deprecated

func (MemoryApplicationScope) EnumDescriptor() ([]byte, []int)

Deprecated: Use MemoryApplicationScope.Descriptor instead.

func (MemoryApplicationScope) Number

func (MemoryApplicationScope) String

func (x MemoryApplicationScope) String() string

func (MemoryApplicationScope) Type

type MemoryContext

type MemoryContext struct {
	ContextRef      string             `protobuf:"bytes,1,opt,name=context_ref,json=contextRef,proto3" json:"context_ref,omitempty"`
	RunRef          string             `protobuf:"bytes,2,opt,name=run_ref,json=runRef,proto3" json:"run_ref,omitempty"`
	Scope           *MemoryScope       `protobuf:"bytes,3,opt,name=scope,proto3" json:"scope,omitempty"`
	Constitution    *Constitution      `protobuf:"bytes,4,opt,name=constitution,proto3" json:"constitution,omitempty"`
	Recollections   []*Recollection    `protobuf:"bytes,5,rep,name=recollections,proto3" json:"recollections,omitempty"`
	Dispositions    []*Disposition     `protobuf:"bytes,6,rep,name=dispositions,proto3" json:"dispositions,omitempty"`
	EpisodeEvidence []*EpisodeEvidence `protobuf:"bytes,7,rep,name=episode_evidence,json=episodeEvidence,proto3" json:"episode_evidence,omitempty"`
	// contains filtered or unexported fields
}

MemoryContext is the Core-selected, run-frozen long-term personalization context. Harnesses place and consume its text but do not mutate it.

func (*MemoryContext) Descriptor deprecated

func (*MemoryContext) Descriptor() ([]byte, []int)

Deprecated: Use MemoryContext.ProtoReflect.Descriptor instead.

func (*MemoryContext) GetConstitution

func (x *MemoryContext) GetConstitution() *Constitution

func (*MemoryContext) GetContextRef

func (x *MemoryContext) GetContextRef() string

func (*MemoryContext) GetDispositions

func (x *MemoryContext) GetDispositions() []*Disposition

func (*MemoryContext) GetEpisodeEvidence

func (x *MemoryContext) GetEpisodeEvidence() []*EpisodeEvidence

func (*MemoryContext) GetRecollections

func (x *MemoryContext) GetRecollections() []*Recollection

func (*MemoryContext) GetRunRef

func (x *MemoryContext) GetRunRef() string

func (*MemoryContext) GetScope

func (x *MemoryContext) GetScope() *MemoryScope

func (*MemoryContext) ProtoMessage

func (*MemoryContext) ProtoMessage()

func (*MemoryContext) ProtoReflect

func (x *MemoryContext) ProtoReflect() protoreflect.Message

func (*MemoryContext) Reset

func (x *MemoryContext) Reset()

func (*MemoryContext) String

func (x *MemoryContext) String() string

type MemoryCoreClient

type MemoryCoreClient interface {
	ObserveSourceEvent(ctx context.Context, in *ObserveSourceEventRequest, opts ...grpc.CallOption) (*SourceEventReceipt, error)
	SelectMemory(ctx context.Context, in *SelectMemoryRequest, opts ...grpc.CallOption) (*MemoryContext, error)
	RecordMemoryDelivery(ctx context.Context, in *MemoryDeliveryReceipt, opts ...grpc.CallOption) (*ReceiptAck, error)
	ReportOutcome(ctx context.Context, in *ReportOutcomeRequest, opts ...grpc.CallOption) (*OutcomeReceipt, error)
}

MemoryCoreClient is the client API for MemoryCore service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

MemoryCore is the harness-neutral public boundary of the authoritative core.

func NewMemoryCoreClient

func NewMemoryCoreClient(cc grpc.ClientConnInterface) MemoryCoreClient

type MemoryCoreServer

type MemoryCoreServer interface {
	ObserveSourceEvent(context.Context, *ObserveSourceEventRequest) (*SourceEventReceipt, error)
	SelectMemory(context.Context, *SelectMemoryRequest) (*MemoryContext, error)
	RecordMemoryDelivery(context.Context, *MemoryDeliveryReceipt) (*ReceiptAck, error)
	ReportOutcome(context.Context, *ReportOutcomeRequest) (*OutcomeReceipt, error)
	// contains filtered or unexported methods
}

MemoryCoreServer is the server API for MemoryCore service. All implementations must embed UnimplementedMemoryCoreServer for forward compatibility.

MemoryCore is the harness-neutral public boundary of the authoritative core.

type MemoryDeliveryReceipt

type MemoryDeliveryReceipt struct {
	IdempotencyKey      string       `protobuf:"bytes,1,opt,name=idempotency_key,json=idempotencyKey,proto3" json:"idempotency_key,omitempty"`
	Scope               *MemoryScope `protobuf:"bytes,2,opt,name=scope,proto3" json:"scope,omitempty"`
	RunRef              string       `protobuf:"bytes,3,opt,name=run_ref,json=runRef,proto3" json:"run_ref,omitempty"`
	MemoryContextRef    string       `protobuf:"bytes,4,opt,name=memory_context_ref,json=memoryContextRef,proto3" json:"memory_context_ref,omitempty"`
	DeliveredMemoryRefs []string     `protobuf:"bytes,5,rep,name=delivered_memory_refs,json=deliveredMemoryRefs,proto3" json:"delivered_memory_refs,omitempty"`
	// contains filtered or unexported fields
}

func (*MemoryDeliveryReceipt) Descriptor deprecated

func (*MemoryDeliveryReceipt) Descriptor() ([]byte, []int)

Deprecated: Use MemoryDeliveryReceipt.ProtoReflect.Descriptor instead.

func (*MemoryDeliveryReceipt) GetDeliveredMemoryRefs

func (x *MemoryDeliveryReceipt) GetDeliveredMemoryRefs() []string

func (*MemoryDeliveryReceipt) GetIdempotencyKey

func (x *MemoryDeliveryReceipt) GetIdempotencyKey() string

func (*MemoryDeliveryReceipt) GetMemoryContextRef

func (x *MemoryDeliveryReceipt) GetMemoryContextRef() string

func (*MemoryDeliveryReceipt) GetRunRef

func (x *MemoryDeliveryReceipt) GetRunRef() string

func (*MemoryDeliveryReceipt) GetScope

func (x *MemoryDeliveryReceipt) GetScope() *MemoryScope

func (*MemoryDeliveryReceipt) ProtoMessage

func (*MemoryDeliveryReceipt) ProtoMessage()

func (*MemoryDeliveryReceipt) ProtoReflect

func (x *MemoryDeliveryReceipt) ProtoReflect() protoreflect.Message

func (*MemoryDeliveryReceipt) Reset

func (x *MemoryDeliveryReceipt) Reset()

func (*MemoryDeliveryReceipt) String

func (x *MemoryDeliveryReceipt) String() string

type MemoryScope

type MemoryScope struct {
	TenantRef       string          `protobuf:"bytes,1,opt,name=tenant_ref,json=tenantRef,proto3" json:"tenant_ref,omitempty"`
	AgentRef        string          `protobuf:"bytes,2,opt,name=agent_ref,json=agentRef,proto3" json:"agent_ref,omitempty"`
	RelationshipRef string          `protobuf:"bytes,3,opt,name=relationship_ref,json=relationshipRef,proto3" json:"relationship_ref,omitempty"`
	SessionRef      string          `protobuf:"bytes,4,opt,name=session_ref,json=sessionRef,proto3" json:"session_ref,omitempty"`
	Kind            MemoryScopeKind `protobuf:"varint,5,opt,name=kind,proto3,enum=memory.v1.MemoryScopeKind" json:"kind,omitempty"`
	// contains filtered or unexported fields
}

MemoryScope is the complete caller and causal isolation boundary carried by every public call. kind determines long-term ownership; session_ref fences current causal intake and is not a third ownership kind. AGENT requires an empty relationship_ref; RELATIONSHIP requires an exact relationship_ref.

func (*MemoryScope) Descriptor deprecated

func (*MemoryScope) Descriptor() ([]byte, []int)

Deprecated: Use MemoryScope.ProtoReflect.Descriptor instead.

func (*MemoryScope) GetAgentRef

func (x *MemoryScope) GetAgentRef() string

func (*MemoryScope) GetKind

func (x *MemoryScope) GetKind() MemoryScopeKind

func (*MemoryScope) GetRelationshipRef

func (x *MemoryScope) GetRelationshipRef() string

func (*MemoryScope) GetSessionRef

func (x *MemoryScope) GetSessionRef() string

func (*MemoryScope) GetTenantRef

func (x *MemoryScope) GetTenantRef() string

func (*MemoryScope) ProtoMessage

func (*MemoryScope) ProtoMessage()

func (*MemoryScope) ProtoReflect

func (x *MemoryScope) ProtoReflect() protoreflect.Message

func (*MemoryScope) Reset

func (x *MemoryScope) Reset()

func (*MemoryScope) String

func (x *MemoryScope) String() string

type MemoryScopeKind

type MemoryScopeKind int32
const (
	MemoryScopeKind_MEMORY_SCOPE_KIND_UNSPECIFIED  MemoryScopeKind = 0
	MemoryScopeKind_MEMORY_SCOPE_KIND_AGENT        MemoryScopeKind = 1
	MemoryScopeKind_MEMORY_SCOPE_KIND_RELATIONSHIP MemoryScopeKind = 2
)

func (MemoryScopeKind) Descriptor

func (MemoryScopeKind) Enum

func (x MemoryScopeKind) Enum() *MemoryScopeKind

func (MemoryScopeKind) EnumDescriptor deprecated

func (MemoryScopeKind) EnumDescriptor() ([]byte, []int)

Deprecated: Use MemoryScopeKind.Descriptor instead.

func (MemoryScopeKind) Number

func (MemoryScopeKind) String

func (x MemoryScopeKind) String() string

func (MemoryScopeKind) Type

type ObserveSourceEventRequest

type ObserveSourceEventRequest struct {

	// idempotency_key is namespaced by source_event.scope.tenant_ref and identifies
	// the complete ObserveSourceEvent request, including episode_binding.
	// Reusing a key in another scope of the same tenant is a conflict.
	// To attach the same source to a new relation command, use a new idempotency_key and reuse source_event.source_ref.
	IdempotencyKey string          `protobuf:"bytes,1,opt,name=idempotency_key,json=idempotencyKey,proto3" json:"idempotency_key,omitempty"`
	SourceEvent    *SourceEvent    `protobuf:"bytes,2,opt,name=source_event,json=sourceEvent,proto3" json:"source_event,omitempty"`
	EpisodeBinding *EpisodeBinding `protobuf:"bytes,3,opt,name=episode_binding,json=episodeBinding,proto3" json:"episode_binding,omitempty"`
	// contains filtered or unexported fields
}

func (*ObserveSourceEventRequest) Descriptor deprecated

func (*ObserveSourceEventRequest) Descriptor() ([]byte, []int)

Deprecated: Use ObserveSourceEventRequest.ProtoReflect.Descriptor instead.

func (*ObserveSourceEventRequest) GetEpisodeBinding

func (x *ObserveSourceEventRequest) GetEpisodeBinding() *EpisodeBinding

func (*ObserveSourceEventRequest) GetIdempotencyKey

func (x *ObserveSourceEventRequest) GetIdempotencyKey() string

func (*ObserveSourceEventRequest) GetSourceEvent

func (x *ObserveSourceEventRequest) GetSourceEvent() *SourceEvent

func (*ObserveSourceEventRequest) ProtoMessage

func (*ObserveSourceEventRequest) ProtoMessage()

func (*ObserveSourceEventRequest) ProtoReflect

func (*ObserveSourceEventRequest) Reset

func (x *ObserveSourceEventRequest) Reset()

func (*ObserveSourceEventRequest) String

func (x *ObserveSourceEventRequest) String() string

type OutcomeReceipt

type OutcomeReceipt struct {
	OutcomeEventRef string `protobuf:"bytes,1,opt,name=outcome_event_ref,json=outcomeEventRef,proto3" json:"outcome_event_ref,omitempty"`
	EpisodeRef      string `protobuf:"bytes,2,opt,name=episode_ref,json=episodeRef,proto3" json:"episode_ref,omitempty"`
	// contains filtered or unexported fields
}

func (*OutcomeReceipt) Descriptor deprecated

func (*OutcomeReceipt) Descriptor() ([]byte, []int)

Deprecated: Use OutcomeReceipt.ProtoReflect.Descriptor instead.

func (*OutcomeReceipt) GetEpisodeRef

func (x *OutcomeReceipt) GetEpisodeRef() string

func (*OutcomeReceipt) GetOutcomeEventRef

func (x *OutcomeReceipt) GetOutcomeEventRef() string

func (*OutcomeReceipt) ProtoMessage

func (*OutcomeReceipt) ProtoMessage()

func (*OutcomeReceipt) ProtoReflect

func (x *OutcomeReceipt) ProtoReflect() protoreflect.Message

func (*OutcomeReceipt) Reset

func (x *OutcomeReceipt) Reset()

func (*OutcomeReceipt) String

func (x *OutcomeReceipt) String() string

type ReceiptAck

type ReceiptAck struct {
	ReceiptRef string `protobuf:"bytes,1,opt,name=receipt_ref,json=receiptRef,proto3" json:"receipt_ref,omitempty"`
	// contains filtered or unexported fields
}

func (*ReceiptAck) Descriptor deprecated

func (*ReceiptAck) Descriptor() ([]byte, []int)

Deprecated: Use ReceiptAck.ProtoReflect.Descriptor instead.

func (*ReceiptAck) GetReceiptRef

func (x *ReceiptAck) GetReceiptRef() string

func (*ReceiptAck) ProtoMessage

func (*ReceiptAck) ProtoMessage()

func (*ReceiptAck) ProtoReflect

func (x *ReceiptAck) ProtoReflect() protoreflect.Message

func (*ReceiptAck) Reset

func (x *ReceiptAck) Reset()

func (*ReceiptAck) String

func (x *ReceiptAck) String() string

type Recollection

type Recollection struct {
	MemoryRef        string                 `protobuf:"bytes,1,opt,name=memory_ref,json=memoryRef,proto3" json:"memory_ref,omitempty"`
	Text             string                 `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
	ApplicationScope MemoryApplicationScope `` /* 148-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Recollection) Descriptor deprecated

func (*Recollection) Descriptor() ([]byte, []int)

Deprecated: Use Recollection.ProtoReflect.Descriptor instead.

func (*Recollection) GetApplicationScope

func (x *Recollection) GetApplicationScope() MemoryApplicationScope

func (*Recollection) GetMemoryRef

func (x *Recollection) GetMemoryRef() string

func (*Recollection) GetText

func (x *Recollection) GetText() string

func (*Recollection) ProtoMessage

func (*Recollection) ProtoMessage()

func (*Recollection) ProtoReflect

func (x *Recollection) ProtoReflect() protoreflect.Message

func (*Recollection) Reset

func (x *Recollection) Reset()

func (*Recollection) String

func (x *Recollection) String() string

type ReportOutcomeRequest

type ReportOutcomeRequest struct {
	IdempotencyKey         string       `protobuf:"bytes,1,opt,name=idempotency_key,json=idempotencyKey,proto3" json:"idempotency_key,omitempty"`
	Scope                  *MemoryScope `protobuf:"bytes,2,opt,name=scope,proto3" json:"scope,omitempty"`
	RunRef                 string       `protobuf:"bytes,3,opt,name=run_ref,json=runRef,proto3" json:"run_ref,omitempty"`
	SourceGroupRef         string       `protobuf:"bytes,4,opt,name=source_group_ref,json=sourceGroupRef,proto3" json:"source_group_ref,omitempty"`
	Text                   string       `protobuf:"bytes,5,opt,name=text,proto3" json:"text,omitempty"`
	DeliveryReceiptRefs    []string     `protobuf:"bytes,6,rep,name=delivery_receipt_refs,json=deliveryReceiptRefs,proto3" json:"delivery_receipt_refs,omitempty"`
	RelatedSourceEventRefs []string     `` /* 131-byte string literal not displayed */
	// Trusted source identity is supplied by the authenticated Adapter; Core
	// never invents an actor from outcome text.
	SourceRef string          `protobuf:"bytes,8,opt,name=source_ref,json=sourceRef,proto3" json:"source_ref,omitempty"`
	ActorKind SourceActorKind `protobuf:"varint,9,opt,name=actor_kind,json=actorKind,proto3,enum=memory.v1.SourceActorKind" json:"actor_kind,omitempty"`
	ActorRef  string          `protobuf:"bytes,10,opt,name=actor_ref,json=actorRef,proto3" json:"actor_ref,omitempty"`
	// Same source snapshot as Observe, including when reused as the next Situation.
	Constitution *Constitution `protobuf:"bytes,11,opt,name=constitution,proto3" json:"constitution,omitempty"`
	// contains filtered or unexported fields
}

func (*ReportOutcomeRequest) Descriptor deprecated

func (*ReportOutcomeRequest) Descriptor() ([]byte, []int)

Deprecated: Use ReportOutcomeRequest.ProtoReflect.Descriptor instead.

func (*ReportOutcomeRequest) GetActorKind

func (x *ReportOutcomeRequest) GetActorKind() SourceActorKind

func (*ReportOutcomeRequest) GetActorRef

func (x *ReportOutcomeRequest) GetActorRef() string

func (*ReportOutcomeRequest) GetConstitution

func (x *ReportOutcomeRequest) GetConstitution() *Constitution

func (*ReportOutcomeRequest) GetDeliveryReceiptRefs

func (x *ReportOutcomeRequest) GetDeliveryReceiptRefs() []string

func (*ReportOutcomeRequest) GetIdempotencyKey

func (x *ReportOutcomeRequest) GetIdempotencyKey() string

func (*ReportOutcomeRequest) GetRelatedSourceEventRefs

func (x *ReportOutcomeRequest) GetRelatedSourceEventRefs() []string

func (*ReportOutcomeRequest) GetRunRef

func (x *ReportOutcomeRequest) GetRunRef() string

func (*ReportOutcomeRequest) GetScope

func (x *ReportOutcomeRequest) GetScope() *MemoryScope

func (*ReportOutcomeRequest) GetSourceGroupRef

func (x *ReportOutcomeRequest) GetSourceGroupRef() string

func (*ReportOutcomeRequest) GetSourceRef

func (x *ReportOutcomeRequest) GetSourceRef() string

func (*ReportOutcomeRequest) GetText

func (x *ReportOutcomeRequest) GetText() string

func (*ReportOutcomeRequest) ProtoMessage

func (*ReportOutcomeRequest) ProtoMessage()

func (*ReportOutcomeRequest) ProtoReflect

func (x *ReportOutcomeRequest) ProtoReflect() protoreflect.Message

func (*ReportOutcomeRequest) Reset

func (x *ReportOutcomeRequest) Reset()

func (*ReportOutcomeRequest) String

func (x *ReportOutcomeRequest) String() string

type SelectMemoryRequest

type SelectMemoryRequest struct {
	Scope                    *MemoryScope `protobuf:"bytes,1,opt,name=scope,proto3" json:"scope,omitempty"`
	RunRef                   string       `protobuf:"bytes,2,opt,name=run_ref,json=runRef,proto3" json:"run_ref,omitempty"`
	SituationSourceEventRefs []string     `` /* 137-byte string literal not displayed */
	// constitution is an external normative baseline. It is copied into this
	// MemoryContext and is never a writable Memory target.
	Constitution *Constitution `protobuf:"bytes,4,opt,name=constitution,proto3" json:"constitution,omitempty"`
	// 0 preserves the legacy selection behavior. Values from 1 through 16384
	// enable complete, frozen Episode evidence under this UTF-8 byte budget.
	EpisodeEvidenceMaxBytes int32 `` /* 135-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*SelectMemoryRequest) Descriptor deprecated

func (*SelectMemoryRequest) Descriptor() ([]byte, []int)

Deprecated: Use SelectMemoryRequest.ProtoReflect.Descriptor instead.

func (*SelectMemoryRequest) GetConstitution

func (x *SelectMemoryRequest) GetConstitution() *Constitution

func (*SelectMemoryRequest) GetEpisodeEvidenceMaxBytes

func (x *SelectMemoryRequest) GetEpisodeEvidenceMaxBytes() int32

func (*SelectMemoryRequest) GetRunRef

func (x *SelectMemoryRequest) GetRunRef() string

func (*SelectMemoryRequest) GetScope

func (x *SelectMemoryRequest) GetScope() *MemoryScope

func (*SelectMemoryRequest) GetSituationSourceEventRefs

func (x *SelectMemoryRequest) GetSituationSourceEventRefs() []string

func (*SelectMemoryRequest) ProtoMessage

func (*SelectMemoryRequest) ProtoMessage()

func (*SelectMemoryRequest) ProtoReflect

func (x *SelectMemoryRequest) ProtoReflect() protoreflect.Message

func (*SelectMemoryRequest) Reset

func (x *SelectMemoryRequest) Reset()

func (*SelectMemoryRequest) String

func (x *SelectMemoryRequest) String() string

type SourceActorKind

type SourceActorKind int32
const (
	SourceActorKind_SOURCE_ACTOR_KIND_UNSPECIFIED SourceActorKind = 0
	SourceActorKind_SOURCE_ACTOR_KIND_USER        SourceActorKind = 1
	SourceActorKind_SOURCE_ACTOR_KIND_AGENT       SourceActorKind = 2
	SourceActorKind_SOURCE_ACTOR_KIND_SYSTEM      SourceActorKind = 3
	SourceActorKind_SOURCE_ACTOR_KIND_TOOL        SourceActorKind = 4
	SourceActorKind_SOURCE_ACTOR_KIND_EXTERNAL    SourceActorKind = 5
)

func (SourceActorKind) Descriptor

func (SourceActorKind) Enum

func (x SourceActorKind) Enum() *SourceActorKind

func (SourceActorKind) EnumDescriptor deprecated

func (SourceActorKind) EnumDescriptor() ([]byte, []int)

Deprecated: Use SourceActorKind.Descriptor instead.

func (SourceActorKind) Number

func (SourceActorKind) String

func (x SourceActorKind) String() string

func (SourceActorKind) Type

type SourceEvent

type SourceEvent struct {
	Scope *MemoryScope `protobuf:"bytes,1,opt,name=scope,proto3" json:"scope,omitempty"`
	// UTF-8 payload; V1 Core rejects values larger than 64 KiB.
	Text      string          `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
	SourceRef string          `protobuf:"bytes,3,opt,name=source_ref,json=sourceRef,proto3" json:"source_ref,omitempty"`
	ActorKind SourceActorKind `protobuf:"varint,4,opt,name=actor_kind,json=actorKind,proto3,enum=memory.v1.SourceActorKind" json:"actor_kind,omitempty"`
	ActorRef  string          `protobuf:"bytes,5,opt,name=actor_ref,json=actorRef,proto3" json:"actor_ref,omitempty"`
	// Optional immutable external baseline snapshot; not a writable Memory.
	Constitution *Constitution `protobuf:"bytes,6,opt,name=constitution,proto3" json:"constitution,omitempty"`
	// contains filtered or unexported fields
}

Source identity and actor fields are trusted provenance from an authenticated adapter; the AI worker must never infer or rewrite them from text.

func (*SourceEvent) Descriptor deprecated

func (*SourceEvent) Descriptor() ([]byte, []int)

Deprecated: Use SourceEvent.ProtoReflect.Descriptor instead.

func (*SourceEvent) GetActorKind

func (x *SourceEvent) GetActorKind() SourceActorKind

func (*SourceEvent) GetActorRef

func (x *SourceEvent) GetActorRef() string

func (*SourceEvent) GetConstitution

func (x *SourceEvent) GetConstitution() *Constitution

func (*SourceEvent) GetScope

func (x *SourceEvent) GetScope() *MemoryScope

func (*SourceEvent) GetSourceRef

func (x *SourceEvent) GetSourceRef() string

func (*SourceEvent) GetText

func (x *SourceEvent) GetText() string

func (*SourceEvent) ProtoMessage

func (*SourceEvent) ProtoMessage()

func (*SourceEvent) ProtoReflect

func (x *SourceEvent) ProtoReflect() protoreflect.Message

func (*SourceEvent) Reset

func (x *SourceEvent) Reset()

func (*SourceEvent) String

func (x *SourceEvent) String() string

type SourceEventReceipt

type SourceEventReceipt struct {
	SourceEventRef string `protobuf:"bytes,1,opt,name=source_event_ref,json=sourceEventRef,proto3" json:"source_event_ref,omitempty"`
	EpisodeRef     string `protobuf:"bytes,2,opt,name=episode_ref,json=episodeRef,proto3" json:"episode_ref,omitempty"`
	// contains filtered or unexported fields
}

func (*SourceEventReceipt) Descriptor deprecated

func (*SourceEventReceipt) Descriptor() ([]byte, []int)

Deprecated: Use SourceEventReceipt.ProtoReflect.Descriptor instead.

func (*SourceEventReceipt) GetEpisodeRef

func (x *SourceEventReceipt) GetEpisodeRef() string

func (*SourceEventReceipt) GetSourceEventRef

func (x *SourceEventReceipt) GetSourceEventRef() string

func (*SourceEventReceipt) ProtoMessage

func (*SourceEventReceipt) ProtoMessage()

func (*SourceEventReceipt) ProtoReflect

func (x *SourceEventReceipt) ProtoReflect() protoreflect.Message

func (*SourceEventReceipt) Reset

func (x *SourceEventReceipt) Reset()

func (*SourceEventReceipt) String

func (x *SourceEventReceipt) String() string

type UnimplementedMemoryCoreServer

type UnimplementedMemoryCoreServer struct{}

UnimplementedMemoryCoreServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedMemoryCoreServer) ObserveSourceEvent

func (UnimplementedMemoryCoreServer) RecordMemoryDelivery

func (UnimplementedMemoryCoreServer) ReportOutcome

func (UnimplementedMemoryCoreServer) SelectMemory

type UnsafeMemoryCoreServer

type UnsafeMemoryCoreServer interface {
	// contains filtered or unexported methods
}

UnsafeMemoryCoreServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MemoryCoreServer will result in compilation errors.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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