Documentation
¶
Overview ¶
Package app provides application initialization and lifecycle management.
App is the core container that holds all application components. Created by Setup, released by Close.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
Config *config.Config
Genkit *genkit.Genkit
Embedder ai.Embedder
DBPool *pgxpool.Pool
DocStore *postgresql.DocStore
Retriever ai.Retriever
SessionStore *session.Store
MemoryStore *memory.Store
PathValidator *security.Path
Tools []ai.Tool // Pre-registered Genkit tools (for chat agent)
// Concrete toolsets shared by CLI and MCP entry points.
File *tools.File
System *tools.System
Network *tools.Network
Knowledge *tools.Knowledge // nil if retriever unavailable
// contains filtered or unexported fields
}
App is the application instance. Created by Setup, closed by Close. All entry points (CLI, HTTP, MCP) use this struct to access shared resources.
func Setup ¶
Setup creates and initializes the application. Returns an App with embedded cleanup — call Close() to release.
Click to show internal directories.
Click to hide internal directories.