Documentation
¶
Overview ¶
Package artifact defines immutable revisions, exact references, lineage, and the public persistence contracts shared by Artifact families.
Index ¶
- Constants
- type Artifact
- type Catalog
- type Draft
- type DraftSnapshot
- type EvidenceKind
- type FamilyMismatchError
- type GenerationEvidence
- type GenerationInput
- type InvalidReferenceError
- type Lineage
- type NotFoundError
- type Ref
- type RevisionConflictError
- type Service
- func (s *Service[T]) Add(ctx context.Context, draft Draft[T]) (Artifact[T], error)
- func (s *Service[T]) Get(ctx context.Context, value Artifact[T]) (Artifact[T], error)
- func (s *Service[T]) Latest(ctx context.Context, value Artifact[T]) (Artifact[T], error)
- func (s *Service[T]) Revise(ctx context.Context, current Artifact[T], draft Draft[T]) (Artifact[T], error)
- func (s *Service[T]) Revisions(ctx context.Context, value Artifact[T]) ([]Artifact[T], error)
- type Snapshot
- type Store
Constants ¶
View Source
const ( MaxGenerationEvidence = 32 MaxGenerationEvidenceChars = 64_000 )
View Source
const ( MaxFamilyLength = 128 MaxIDLength = 128 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Artifact ¶
type Artifact[T any] struct { // contains filtered or unexported fields }
func (Artifact[T]) ContentValue ¶
type Draft ¶
type Draft[T any] struct { // contains filtered or unexported fields }
func (Draft[T]) ContentValue ¶
type DraftSnapshot ¶
DraftSnapshot is the non-generic write view used by relational stores whose family registry may contain several concrete content types.
type EvidenceKind ¶
type EvidenceKind string
const ( SourceEvidence EvidenceKind = "source" ArtifactEvidence EvidenceKind = "artifact" )
type FamilyMismatchError ¶
func (*FamilyMismatchError) Error ¶
func (e *FamilyMismatchError) Error() string
type GenerationEvidence ¶
type GenerationEvidence struct {
EvidenceID string
Kind EvidenceKind
Content string
Truncated bool
}
func NewGenerationEvidence ¶
func NewGenerationEvidence(id string, kind EvidenceKind, content string, truncated bool) (GenerationEvidence, error)
type GenerationInput ¶
type GenerationInput struct {
// contains filtered or unexported fields
}
func NewGenerationInput ¶
func NewGenerationInput(evidence []GenerationEvidence, targetEvidenceID *string) (GenerationInput, error)
func (GenerationInput) Evidence ¶
func (i GenerationInput) Evidence() []GenerationEvidence
func (GenerationInput) TargetEvidenceID ¶
func (i GenerationInput) TargetEvidenceID() *string
type InvalidReferenceError ¶
func (*InvalidReferenceError) Error ¶
func (e *InvalidReferenceError) Error() string
type NotFoundError ¶
type NotFoundError struct{ Ref Ref }
func (*NotFoundError) Error ¶
func (e *NotFoundError) Error() string
type RevisionConflictError ¶
func (*RevisionConflictError) Error ¶
func (e *RevisionConflictError) Error() string
type Service ¶
type Service[T any] struct { // contains filtered or unexported fields }
Directories
¶
| Path | Synopsis |
|---|---|
|
Package experience implements the reviewed Experience Artifact family.
|
Package experience implements the reviewed Experience Artifact family. |
|
prompts
Package prompts owns the frozen Experience inference instructions.
|
Package prompts owns the frozen Experience inference instructions. |
|
Package handoff implements temporary and durable Handoff lifecycles.
|
Package handoff implements temporary and durable Handoff lifecycles. |
|
prompts
Package prompts owns the frozen Handoff inference instructions.
|
Package prompts owns the frozen Handoff inference instructions. |
|
Package memory implements the Memory Artifact family and deterministic retrieval behavior.
|
Package memory implements the Memory Artifact family and deterministic retrieval behavior. |
|
prompts
Package prompts owns the frozen Memory inference instructions.
|
Package prompts owns the frozen Memory inference instructions. |
|
Package skill implements managed Skills and host-native external Skill registration.
|
Package skill implements managed Skills and host-native external Skill registration. |
|
prompts
Package prompts owns the frozen managed-Skill inference instructions.
|
Package prompts owns the frozen managed-Skill inference instructions. |
Click to show internal directories.
Click to hide internal directories.