composition

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package composition implements identity prompt composition. Transforms identity snapshots into prompts injectable into LLM context window.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SoulComposerService

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

SoulComposerService implements ports.IdentityComposer. Generates natural and effective identity prompts for LLMs.

func NewSoulComposerService

func NewSoulComposerService() *SoulComposerService

NewSoulComposerService creates a new composition service.

func (*SoulComposerService) ComposeDiffusionAlert

ComposeDiffusionAlert génère une alerte de diffusion identitaire

func (*SoulComposerService) ComposeIdentityPrompt

func (s *SoulComposerService) ComposeIdentityPrompt(ctx context.Context, identity *entities.IdentitySnapshot, budgetTokens int) (*valueobjects.IdentityContextPrompt, error)

ComposeIdentityPrompt generates a complete identity prompt

func (*SoulComposerService) ComposeReinforcementPrompt

ComposeReinforcementPrompt génère un prompt de renforcement post-model-swap

func (*SoulComposerService) EstimateTokenCount

func (s *SoulComposerService) EstimateTokenCount(ctx context.Context, prompt string) (int, error)

EstimateTokenCount estimates the number of tokens in a text.

Jump to

Keyboard shortcuts

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