serverapi

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2025 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig[T any](cfg *T) error

func New

func New(
	ctx context.Context,
	config *Config,
	dbInstance libdb.DBManager,
	pubsub libbus.Messenger,
	embedder llmrepo.ModelRepo,
	execmodelrepo llmrepo.ModelRepo,
	environmentExec taskengine.EnvExecutor,
	state *runtimestate.State,
	hookRegistry taskengine.HookRegistry,
	kvManager libkv.KVManager,
) (http.Handler, func() error, error)

Types

type Config

type Config struct {
	DatabaseURL         string `json:"database_url"`
	Port                string `json:"port"`
	Addr                string `json:"addr"`
	NATSURL             string `json:"nats_url"`
	NATSUser            string `json:"nats_user"`
	NATSPassword        string `json:"nats_password"`
	TokenizerServiceURL string `json:"tokenizer_service_url"`
	EmbedModel          string `json:"embed_model"`
	TaskModel           string `json:"task_model"`
	VectorStoreURL      string `json:"vector_store_url"`
	KVBackend           string `json:"kv_backend"`
	KVHost              string `json:"kv_host"`
	KVPassword          string `json:"kv_password"`
}

Jump to

Keyboard shortcuts

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