schema

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionLog added in v0.7.0

type ActionLog struct {
	ent.Schema
}

ActionLog holds the schema definition for the ActionLog entity. ActionLog stores structured execution records for ontology actions.

func (ActionLog) Edges added in v0.7.0

func (ActionLog) Edges() []ent.Edge

Edges of the ActionLog.

func (ActionLog) Fields added in v0.7.0

func (ActionLog) Fields() []ent.Field

Fields of the ActionLog.

func (ActionLog) Indexes added in v0.7.0

func (ActionLog) Indexes() []ent.Index

Indexes of the ActionLog.

type AgentMemory added in v0.7.0

type AgentMemory struct {
	ent.Schema
}

AgentMemory holds the schema definition for the AgentMemory entity. AgentMemory stores per-agent persistent memory entries such as patterns, preferences, facts, and skills.

func (AgentMemory) Edges added in v0.7.0

func (AgentMemory) Edges() []ent.Edge

Edges of the AgentMemory.

func (AgentMemory) Fields added in v0.7.0

func (AgentMemory) Fields() []ent.Field

Fields of the AgentMemory.

func (AgentMemory) Indexes added in v0.7.0

func (AgentMemory) Indexes() []ent.Index

Indexes of the AgentMemory.

type AuditLog

type AuditLog struct {
	ent.Schema
}

AuditLog holds the schema definition for the AuditLog entity. AuditLog stores security audit trail for tool calls, knowledge saves, etc.

func (AuditLog) Edges

func (AuditLog) Edges() []ent.Edge

Edges of the AuditLog.

func (AuditLog) Fields

func (AuditLog) Fields() []ent.Field

Fields of the AuditLog.

func (AuditLog) Indexes

func (AuditLog) Indexes() []ent.Index

Indexes of the AuditLog.

type ConfigProfile

type ConfigProfile struct {
	ent.Schema
}

ConfigProfile holds the schema definition for the ConfigProfile entity. ConfigProfiles store encrypted application configuration for different environments.

func (ConfigProfile) Edges

func (ConfigProfile) Edges() []ent.Edge

Edges of the ConfigProfile.

func (ConfigProfile) Fields

func (ConfigProfile) Fields() []ent.Field

Fields of the ConfigProfile.

func (ConfigProfile) Indexes

func (ConfigProfile) Indexes() []ent.Index

Indexes of the ConfigProfile.

type CronJob

type CronJob struct {
	ent.Schema
}

CronJob holds the schema definition for a scheduled cron job.

func (CronJob) Edges

func (CronJob) Edges() []ent.Edge

Edges of the CronJob.

func (CronJob) Fields

func (CronJob) Fields() []ent.Field

Fields of the CronJob.

func (CronJob) Indexes

func (CronJob) Indexes() []ent.Index

Indexes of the CronJob.

type CronJobHistory

type CronJobHistory struct {
	ent.Schema
}

CronJobHistory holds the schema definition for a cron job execution record.

func (CronJobHistory) Edges

func (CronJobHistory) Edges() []ent.Edge

Edges of the CronJobHistory.

func (CronJobHistory) Fields

func (CronJobHistory) Fields() []ent.Field

Fields of the CronJobHistory.

func (CronJobHistory) Indexes

func (CronJobHistory) Indexes() []ent.Index

Indexes of the CronJobHistory.

type EntityAlias added in v0.7.0

type EntityAlias struct {
	ent.Schema
}

EntityAlias maps a raw entity ID to its canonical ID for entity resolution.

func (EntityAlias) Edges added in v0.7.0

func (EntityAlias) Edges() []ent.Edge

Edges of the EntityAlias.

func (EntityAlias) Fields added in v0.7.0

func (EntityAlias) Fields() []ent.Field

Fields of the EntityAlias.

func (EntityAlias) Indexes added in v0.7.0

func (EntityAlias) Indexes() []ent.Index

Indexes of the EntityAlias.

type EntityProperty added in v0.7.0

type EntityProperty struct {
	ent.Schema
}

EntityProperty stores per-entity property values in an EAV model.

func (EntityProperty) Edges added in v0.7.0

func (EntityProperty) Edges() []ent.Edge

Edges of the EntityProperty.

func (EntityProperty) Fields added in v0.7.0

func (EntityProperty) Fields() []ent.Field

Fields of the EntityProperty.

func (EntityProperty) Indexes added in v0.7.0

func (EntityProperty) Indexes() []ent.Index

Indexes of the EntityProperty.

type EscrowDeal added in v0.5.0

type EscrowDeal struct {
	ent.Schema
}

EscrowDeal holds the schema definition for the EscrowDeal entity. EscrowDeal records escrow agreements between peers with on-chain tracking.

func (EscrowDeal) Edges added in v0.5.0

func (EscrowDeal) Edges() []ent.Edge

Edges of the EscrowDeal.

func (EscrowDeal) Fields added in v0.5.0

func (EscrowDeal) Fields() []ent.Field

Fields of the EscrowDeal.

func (EscrowDeal) Indexes added in v0.5.0

func (EscrowDeal) Indexes() []ent.Index

Indexes of the EscrowDeal.

type ExternalRef

type ExternalRef struct {
	ent.Schema
}

ExternalRef holds the schema definition for the ExternalRef entity. ExternalRef stores references to external knowledge sources.

func (ExternalRef) Edges

func (ExternalRef) Edges() []ent.Edge

Edges of the ExternalRef.

func (ExternalRef) Fields

func (ExternalRef) Fields() []ent.Field

Fields of the ExternalRef.

func (ExternalRef) Indexes

func (ExternalRef) Indexes() []ent.Index

Indexes of the ExternalRef.

type Inquiry

type Inquiry struct {
	ent.Schema
}

Inquiry holds the schema definition for the Inquiry entity. Inquiry stores proactive knowledge questions to ask the user.

func (Inquiry) Edges

func (Inquiry) Edges() []ent.Edge

Edges of the Inquiry.

func (Inquiry) Fields

func (Inquiry) Fields() []ent.Field

Fields of the Inquiry.

func (Inquiry) Indexes

func (Inquiry) Indexes() []ent.Index

Indexes of the Inquiry.

type Key

type Key struct {
	ent.Schema
}

Key holds the schema definition for the Key entity. Keys are used for encryption/signing operations.

func (Key) Edges

func (Key) Edges() []ent.Edge

Edges of the Key.

func (Key) Fields

func (Key) Fields() []ent.Field

Fields of the Key.

func (Key) Indexes

func (Key) Indexes() []ent.Index

Indexes of the Key.

type Knowledge

type Knowledge struct {
	ent.Schema
}

Knowledge holds the schema definition for the Knowledge entity. Knowledge stores user rules, definitions, preferences, and facts.

func (Knowledge) Edges

func (Knowledge) Edges() []ent.Edge

Edges of the Knowledge.

func (Knowledge) Fields

func (Knowledge) Fields() []ent.Field

Fields of the Knowledge.

func (Knowledge) Indexes

func (Knowledge) Indexes() []ent.Index

Indexes of the Knowledge.

type Learning

type Learning struct {
	ent.Schema
}

Learning holds the schema definition for the Learning entity. Learning stores agent learnings from error patterns and fixes.

func (Learning) Edges

func (Learning) Edges() []ent.Edge

Edges of the Learning.

func (Learning) Fields

func (Learning) Fields() []ent.Field

Fields of the Learning.

func (Learning) Indexes

func (Learning) Indexes() []ent.Index

Indexes of the Learning.

type Message

type Message struct {
	ent.Schema
}

Message holds the schema definition for the Message entity.

func (Message) Edges

func (Message) Edges() []ent.Edge

Edges of the Message.

func (Message) Fields

func (Message) Fields() []ent.Field

Fields of the Message.

type Observation

type Observation struct {
	ent.Schema
}

Observation holds the schema definition for the Observation entity. Observation stores raw conversation observations for memory processing.

func (Observation) Edges

func (Observation) Edges() []ent.Edge

Edges of the Observation.

func (Observation) Fields

func (Observation) Fields() []ent.Field

Fields of the Observation.

func (Observation) Indexes

func (Observation) Indexes() []ent.Index

Indexes of the Observation.

type OntologyConflict added in v0.7.0

type OntologyConflict struct {
	ent.Schema
}

OntologyConflict holds the schema for detected contradictions between triples.

func (OntologyConflict) Edges added in v0.7.0

func (OntologyConflict) Edges() []ent.Edge

Edges of the OntologyConflict.

func (OntologyConflict) Fields added in v0.7.0

func (OntologyConflict) Fields() []ent.Field

Fields of the OntologyConflict.

func (OntologyConflict) Indexes added in v0.7.0

func (OntologyConflict) Indexes() []ent.Index

Indexes of the OntologyConflict.

type OntologyPredicate added in v0.7.0

type OntologyPredicate struct {
	ent.Schema
}

OntologyPredicate holds the schema definition for formal relationship types in the ontology.

func (OntologyPredicate) Edges added in v0.7.0

func (OntologyPredicate) Edges() []ent.Edge

Edges of the OntologyPredicate.

func (OntologyPredicate) Fields added in v0.7.0

func (OntologyPredicate) Fields() []ent.Field

Fields of the OntologyPredicate.

func (OntologyPredicate) Indexes added in v0.7.0

func (OntologyPredicate) Indexes() []ent.Index

Indexes of the OntologyPredicate.

type OntologyType added in v0.7.0

type OntologyType struct {
	ent.Schema
}

OntologyType holds the schema definition for formal entity types in the ontology.

func (OntologyType) Edges added in v0.7.0

func (OntologyType) Edges() []ent.Edge

Edges of the OntologyType.

func (OntologyType) Fields added in v0.7.0

func (OntologyType) Fields() []ent.Field

Fields of the OntologyType.

func (OntologyType) Indexes added in v0.7.0

func (OntologyType) Indexes() []ent.Index

Indexes of the OntologyType.

type PaymentTx

type PaymentTx struct {
	ent.Schema
}

PaymentTx holds the schema definition for the PaymentTx entity. PaymentTx records blockchain payment transactions for audit and tracking.

func (PaymentTx) Edges

func (PaymentTx) Edges() []ent.Edge

Edges of the PaymentTx.

func (PaymentTx) Fields

func (PaymentTx) Fields() []ent.Field

Fields of the PaymentTx.

func (PaymentTx) Indexes

func (PaymentTx) Indexes() []ent.Index

Indexes of the PaymentTx.

type PeerReputation

type PeerReputation struct {
	ent.Schema
}

PeerReputation holds the schema definition for tracking peer trust scores.

func (PeerReputation) Edges

func (PeerReputation) Edges() []ent.Edge

Edges of the PeerReputation.

func (PeerReputation) Fields

func (PeerReputation) Fields() []ent.Field

Fields of the PeerReputation.

func (PeerReputation) Indexes

func (PeerReputation) Indexes() []ent.Index

Indexes of the PeerReputation.

type ProvenanceAttribution added in v0.7.0

type ProvenanceAttribution struct {
	ent.Schema
}

ProvenanceAttribution holds git-aware provenance attribution rows.

func (ProvenanceAttribution) Edges added in v0.7.0

func (ProvenanceAttribution) Edges() []ent.Edge

Edges of the ProvenanceAttribution.

func (ProvenanceAttribution) Fields added in v0.7.0

func (ProvenanceAttribution) Fields() []ent.Field

Fields of the ProvenanceAttribution.

func (ProvenanceAttribution) Indexes added in v0.7.0

func (ProvenanceAttribution) Indexes() []ent.Index

Indexes of the ProvenanceAttribution.

type ProvenanceCheckpoint added in v0.7.0

type ProvenanceCheckpoint struct {
	ent.Schema
}

ProvenanceCheckpoint holds the schema definition for a provenance checkpoint.

func (ProvenanceCheckpoint) Edges added in v0.7.0

func (ProvenanceCheckpoint) Edges() []ent.Edge

Edges of the ProvenanceCheckpoint.

func (ProvenanceCheckpoint) Fields added in v0.7.0

func (ProvenanceCheckpoint) Fields() []ent.Field

Fields of the ProvenanceCheckpoint.

func (ProvenanceCheckpoint) Indexes added in v0.7.0

func (ProvenanceCheckpoint) Indexes() []ent.Index

Indexes of the ProvenanceCheckpoint.

type Reflection

type Reflection struct {
	ent.Schema
}

Reflection holds the schema definition for the Reflection entity. Reflection stores distilled insights from observations.

func (Reflection) Edges

func (Reflection) Edges() []ent.Edge

Edges of the Reflection.

func (Reflection) Fields

func (Reflection) Fields() []ent.Field

Fields of the Reflection.

func (Reflection) Indexes

func (Reflection) Indexes() []ent.Index

Indexes of the Reflection.

type RunJournal added in v0.7.0

type RunJournal struct {
	ent.Schema
}

RunJournal holds the schema definition for a single journal event in the RunLedger append-only log.

func (RunJournal) Edges added in v0.7.0

func (RunJournal) Edges() []ent.Edge

Edges of the RunJournal.

func (RunJournal) Fields added in v0.7.0

func (RunJournal) Fields() []ent.Field

Fields of the RunJournal.

func (RunJournal) Indexes added in v0.7.0

func (RunJournal) Indexes() []ent.Index

Indexes of the RunJournal.

type RunSnapshot added in v0.7.0

type RunSnapshot struct {
	ent.Schema
}

RunSnapshot holds the schema definition for a cached RunLedger snapshot. This is a materialized view — the journal is the source of truth.

func (RunSnapshot) Edges added in v0.7.0

func (RunSnapshot) Edges() []ent.Edge

Edges of the RunSnapshot.

func (RunSnapshot) Fields added in v0.7.0

func (RunSnapshot) Fields() []ent.Field

Fields of the RunSnapshot.

func (RunSnapshot) Indexes added in v0.7.0

func (RunSnapshot) Indexes() []ent.Index

Indexes of the RunSnapshot.

type RunStep added in v0.7.0

type RunStep struct {
	ent.Schema
}

RunStep holds the schema definition for a step within a RunLedger run. This is a projection for efficient per-step queries.

func (RunStep) Edges added in v0.7.0

func (RunStep) Edges() []ent.Edge

Edges of the RunStep.

func (RunStep) Fields added in v0.7.0

func (RunStep) Fields() []ent.Field

Fields of the RunStep.

func (RunStep) Indexes added in v0.7.0

func (RunStep) Indexes() []ent.Index

Indexes of the RunStep.

type Secret

type Secret struct {
	ent.Schema
}

Secret holds the schema definition for the Secret entity. Secrets store encrypted values that can be retrieved by AI agents.

func (Secret) Edges

func (Secret) Edges() []ent.Edge

Edges of the Secret.

func (Secret) Fields

func (Secret) Fields() []ent.Field

Fields of the Secret.

func (Secret) Indexes

func (Secret) Indexes() []ent.Index

Indexes of the Secret.

type Session

type Session struct {
	ent.Schema
}

Session holds the schema definition for the Session entity.

func (Session) Edges

func (Session) Edges() []ent.Edge

Edges of the Session.

func (Session) Fields

func (Session) Fields() []ent.Field

Fields of the Session.

func (Session) Indexes

func (Session) Indexes() []ent.Index

Indexes of the Session.

type SessionProvenance added in v0.7.0

type SessionProvenance struct {
	ent.Schema
}

SessionProvenance holds the schema definition for a session tree node.

func (SessionProvenance) Edges added in v0.7.0

func (SessionProvenance) Edges() []ent.Edge

Edges of the SessionProvenance.

func (SessionProvenance) Fields added in v0.7.0

func (SessionProvenance) Fields() []ent.Field

Fields of the SessionProvenance.

func (SessionProvenance) Indexes added in v0.7.0

func (SessionProvenance) Indexes() []ent.Index

Indexes of the SessionProvenance.

type TokenUsage added in v0.5.0

type TokenUsage struct {
	ent.Schema
}

TokenUsage holds the schema definition for the TokenUsage entity. TokenUsage stores per-request token usage and estimated cost.

func (TokenUsage) Edges added in v0.5.0

func (TokenUsage) Edges() []ent.Edge

Edges of the TokenUsage.

func (TokenUsage) Fields added in v0.5.0

func (TokenUsage) Fields() []ent.Field

Fields of the TokenUsage.

func (TokenUsage) Indexes added in v0.5.0

func (TokenUsage) Indexes() []ent.Index

Indexes of the TokenUsage.

type ToolCall

type ToolCall struct {
	ID               string `json:"id"`
	Name             string `json:"name"`
	Input            string `json:"input"`
	Output           string `json:"output,omitempty"`
	Thought          bool   `json:"thought,omitempty"`
	ThoughtSignature []byte `json:"thoughtSignature,omitempty"`
}

ToolCall represents a tool invocation (embedded in Message)

type TurnTrace added in v0.7.0

type TurnTrace struct {
	ent.Schema
}

TurnTrace holds the schema definition for a single user turn trace.

func (TurnTrace) Edges added in v0.7.0

func (TurnTrace) Edges() []ent.Edge

Edges of the TurnTrace.

func (TurnTrace) Fields added in v0.7.0

func (TurnTrace) Fields() []ent.Field

Fields of the TurnTrace.

func (TurnTrace) Indexes added in v0.7.0

func (TurnTrace) Indexes() []ent.Index

Indexes of the TurnTrace.

type TurnTraceEvent added in v0.7.0

type TurnTraceEvent struct {
	ent.Schema
}

TurnTraceEvent holds the schema definition for an append-only trace event.

func (TurnTraceEvent) Edges added in v0.7.0

func (TurnTraceEvent) Edges() []ent.Edge

Edges of the TurnTraceEvent.

func (TurnTraceEvent) Fields added in v0.7.0

func (TurnTraceEvent) Fields() []ent.Field

Fields of the TurnTraceEvent.

func (TurnTraceEvent) Indexes added in v0.7.0

func (TurnTraceEvent) Indexes() []ent.Index

Indexes of the TurnTraceEvent.

type WorkflowRun

type WorkflowRun struct {
	ent.Schema
}

WorkflowRun holds the schema definition for a workflow execution instance.

func (WorkflowRun) Edges

func (WorkflowRun) Edges() []ent.Edge

Edges of the WorkflowRun.

func (WorkflowRun) Fields

func (WorkflowRun) Fields() []ent.Field

Fields of the WorkflowRun.

func (WorkflowRun) Indexes

func (WorkflowRun) Indexes() []ent.Index

Indexes of the WorkflowRun.

type WorkflowStepRun

type WorkflowStepRun struct {
	ent.Schema
}

WorkflowStepRun holds the schema definition for a single step execution within a workflow run.

func (WorkflowStepRun) Edges

func (WorkflowStepRun) Edges() []ent.Edge

Edges of the WorkflowStepRun.

func (WorkflowStepRun) Fields

func (WorkflowStepRun) Fields() []ent.Field

Fields of the WorkflowStepRun.

func (WorkflowStepRun) Indexes

func (WorkflowStepRun) Indexes() []ent.Index

Indexes of the WorkflowStepRun.

Jump to

Keyboard shortcuts

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