preparation

package
v1.10.4 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package preparation binds snapshot readers to a scope and callback lifetime.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type View

type View struct {
	// contains filtered or unexported fields
}

View exposes only preparation reads and serializes access to a transaction.

func New

New creates a callback-lifetime view. bind attaches a backend session, if any.

func (*View) Close

func (v *View) Close()

Close invalidates the view before the backend releases its transaction.

func (*View) Get

func (v *View) Get(ctx context.Context, key id.AgentID) (*agent.Config, error)

Get reads an agent from the bound snapshot.

func (*View) GetByName

func (v *View) GetByName(ctx context.Context, name string) (*agent.Config, error)

GetByName resolves a participant in the bound snapshot.

func (*View) GetOrchestration

func (v *View) GetOrchestration(ctx context.Context, key id.OrchestrationConfigID) (*orchestration.Config, error)

GetOrchestration reads strategy, participants and settings in the bound snapshot.

func (*View) GetOverlayForAgentAt

func (v *View) GetOverlayForAgentAt(ctx context.Context, key id.AgentID, scope cortex.Scope) (*prompt.Overlay, error)

GetOverlayForAgentAt reads an ancestor overlay from the bound snapshot.

func (*View) GetPersonaByName

func (v *View) GetPersonaByName(ctx context.Context, name string) (*persona.Persona, error)

GetPersonaByName reads a persona from the bound snapshot.

func (*View) GetSkillByName

func (v *View) GetSkillByName(ctx context.Context, name string) (*skill.Skill, error)

GetSkillByName reads a skill from the bound snapshot.

func (*View) GetTraitByName

func (v *View) GetTraitByName(ctx context.Context, name string) (*trait.Trait, error)

GetTraitByName reads a trait from the bound snapshot.

Jump to

Keyboard shortcuts

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