Documentation
¶
Overview ¶
Package memorymirror records Goncho's Go-native architecture mirror of the upstream broad-memory reference system without importing its TypeScript runtime.
Index ¶
- func NewToolRegistry(svc *goncho.Service, opts ToolRegistryOptions) []toolmeta.Tool
- type Architecture
- type BacklogItem
- type BacklogPriority
- type BenchmarkTargetSet
- type Capability
- type CompatCatalog
- type CompatTool
- type Hook
- type LongMemEvalAssessment
- type LongMemEvalEvidence
- type LongMemEvalTarget
- type MemoryTier
- type PipelineStage
- type PortStatus
- type RetrievalStream
- type Source
- type TokenSavingsTarget
- type ToolRegistryOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewToolRegistry ¶
func NewToolRegistry(svc *goncho.Service, opts ToolRegistryOptions) []toolmeta.Tool
Types ¶
type Architecture ¶
type Architecture struct {
Source Source `json:"source"`
Pipeline []PipelineStage `json:"pipeline"`
MemoryTiers []MemoryTier `json:"memory_tiers"`
RetrievalStreams []RetrievalStream `json:"retrieval_streams"`
Hooks []Hook `json:"hooks"`
Tools []Capability `json:"tools"`
}
func ArchitectureManifest ¶
func ArchitectureManifest() Architecture
func (Architecture) MemoryTier ¶
func (a Architecture) MemoryTier(name string) (MemoryTier, bool)
func (Architecture) RetrievalStream ¶
func (a Architecture) RetrievalStream(name string) (RetrievalStream, bool)
func (Architecture) Tool ¶
func (a Architecture) Tool(name string) (Capability, bool)
type BacklogItem ¶
type BacklogItem struct {
ID string `json:"id"`
PublicName string `json:"public_name"`
Priority BacklogPriority `json:"priority"`
CurrentStatus PortStatus `json:"current_status"`
GonchoSeam string `json:"goncho_seam"`
Rationale string `json:"rationale"`
SmallestSlice string `json:"smallest_slice"`
}
func BacklogByPriority ¶
func BacklogByPriority(priority BacklogPriority) []BacklogItem
func ImplementationBacklog ¶
func ImplementationBacklog() []BacklogItem
type BacklogPriority ¶
type BacklogPriority string
const ( PriorityP0 BacklogPriority = "P0" PriorityP1 BacklogPriority = "P1" PriorityP2 BacklogPriority = "P2" PriorityP3 BacklogPriority = "P3" )
type BenchmarkTargetSet ¶
type BenchmarkTargetSet struct {
LongMemEval LongMemEvalTarget `json:"longmemeval_s"`
TokenSavings TokenSavingsTarget `json:"token_savings"`
}
func BenchmarkTargets ¶
func BenchmarkTargets() BenchmarkTargetSet
type Capability ¶
type Capability struct {
Name string `json:"name"`
Kind string `json:"kind"`
GonchoSeam string `json:"goncho_seam"`
Status PortStatus `json:"status"`
Residual string `json:"residual,omitempty"`
}
type CompatCatalog ¶ added in v0.3.0
type CompatCatalog struct {
Tools []CompatTool `json:"tools"`
}
CompatCatalog documents the agentmemory-style alias layer Goncho is willing to expose. It is separate from NewToolRegistry so broad upstream tools can be classified without automatically enabling every mutating operation.
func CompatibilityCatalog ¶ added in v0.3.0
func CompatibilityCatalog() CompatCatalog
func (CompatCatalog) CompatTool ¶ added in v0.3.0
func (c CompatCatalog) CompatTool(name string) (CompatTool, bool)
type CompatTool ¶ added in v0.3.0
type CompatTool struct {
Name string `json:"name"`
RegisteredName string `json:"registered_name,omitempty"`
Status PortStatus `json:"status"`
GonchoSeam string `json:"goncho_seam"`
Mutating bool `json:"mutating"`
PromptSafe bool `json:"prompt_safe"`
AuditKind string `json:"audit_kind"`
Source string `json:"source"`
DefaultEnabled bool `json:"default_enabled"`
Residual string `json:"residual,omitempty"`
}
type Hook ¶
type Hook struct {
Name string `json:"name"`
Captures string `json:"captures"`
GonchoSeam string `json:"goncho_seam"`
Status PortStatus `json:"status"`
Residual string `json:"residual,omitempty"`
}
type LongMemEvalAssessment ¶
type LongMemEvalAssessment struct {
MeetsSimilarGate bool `json:"meets_similar_gate"`
RecallAnyAt5Delta float64 `json:"recall_any_at_5_delta"`
RecallAnyAt10Delta float64 `json:"recall_any_at_10_delta"`
MRRDelta float64 `json:"mrr_delta"`
ReproductionCommand string `json:"reproduction_command,omitempty"`
ClaimScope string `json:"claim_scope,omitempty"`
Reason string `json:"reason,omitempty"`
}
func AssessLongMemEval ¶
func AssessLongMemEval(evidence LongMemEvalEvidence, target LongMemEvalTarget) LongMemEvalAssessment
type LongMemEvalEvidence ¶
type LongMemEvalTarget ¶
type LongMemEvalTarget struct {
Dataset string `json:"dataset"`
QuestionCount int `json:"question_count"`
EmbeddingModel string `json:"embedding_model"`
ReferenceRecallAnyAt5 float64 `json:"reference_recall_any_at_5"`
ReferenceRecallAnyAt10 float64 `json:"reference_recall_any_at_10"`
ReferenceMRR float64 `json:"reference_mrr"`
SimilarRecallAnyAt10Gap float64 `json:"similar_recall_any_at_10_gap"`
FrozenReportPath string `json:"frozen_report_path"`
ReproductionCommand string `json:"reproduction_command"`
ClaimScope string `json:"claim_scope"`
}
type MemoryTier ¶
type MemoryTier struct {
Name string `json:"name"`
Upstream string `json:"upstream"`
GonchoSeam string `json:"goncho_seam"`
Status PortStatus `json:"status"`
}
type PipelineStage ¶
type PipelineStage struct {
Name string `json:"name"`
Upstream string `json:"upstream"`
GonchoSeam string `json:"goncho_seam"`
Status PortStatus `json:"status"`
Residual string `json:"residual,omitempty"`
}
type PortStatus ¶
type PortStatus string
const ( PortDelivered PortStatus = "delivered" PortPartial PortStatus = "partial" PortAdapter PortStatus = "adapter" PortDeferred PortStatus = "deferred" PortExcluded PortStatus = "owned_excluded" )
type RetrievalStream ¶
type TokenSavingsTarget ¶
type TokenSavingsTarget struct {
PasteFullContextTokensPerYear int `json:"paste_full_context_tokens_per_year"`
SummarizedTokensPerYear int `json:"summarized_tokens_per_year"`
TargetTokensPerYear int `json:"target_tokens_per_year"`
TargetCostUSDPerYear float64 `json:"target_cost_usd_per_year"`
LocalEmbeddingCostUSDPerYear float64 `json:"local_embedding_cost_usd_per_year"`
EmbeddingModel string `json:"embedding_model"`
}
Click to show internal directories.
Click to hide internal directories.