engine

package
v0.0.0-...-af0c24f Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithActorStore

func WithActorStore(store *stores.ActorStore) options.Option[Engine]

WithActorStore sets the actor store for the Engine.

func WithContext

func WithContext(ctx context.Context) options.Option[Engine]

WithContext sets the context for the Engine.

func WithDB

func WithDB(db *gorm.DB) options.Option[Engine]

WithDB sets the database connection for the Engine.

func WithIdentifier

func WithIdentifier(id id.ID, name string) options.Option[Engine]

WithIdentifier sets the ID and name for the Engine.

func WithInteractionFragmentStore

func WithInteractionFragmentStore(store *stores.FragmentStore) options.Option[Engine]

WithInteractionFragmentStore sets the interaction fragment store for the Engine.

func WithLLMClient

func WithLLMClient(client *llm.LLMClient) options.Option[Engine]

WithLLMClient sets the LLM client for the Engine.

func WithLogger

func WithLogger(logger *logger.Logger) options.Option[Engine]

WithLogger sets the logger for the Engine.

func WithManagerOrder

func WithManagerOrder(order []manager.ManagerID) options.Option[Engine]

WithManagerOrder sets the execution order for managers in the Engine.

func WithManagers

func WithManagers(_managers ...manager.Manager) options.Option[Engine]

WithManagers sets the list of managers for the Engine, checking for duplicates and dependencies.

func WithSessionStore

func WithSessionStore(store *stores.SessionStore) options.Option[Engine]

WithSessionStore sets the session store for the Engine.

Types

This section is empty.

Jump to

Keyboard shortcuts

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