state

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: May 28, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppState

type AppState struct {
	Repositories map[string]*repository.Repository `json:"repositories"`
	Settings     settings.Settings                 `json:"settings"`
	Scheduler    *scheduler.Scheduler
	Mu           sync.RWMutex
	Logger       logr.Logger
	GenAI        map[string]*genai.Provider
	Remote       *RemoteProviders
	Agents       map[int]*agent.Agent
	RAG          *rag.Store
	Workflows    map[string]*agent.Workflow
	Integrations map[string]types.Integration
}
var State *AppState

func NewState

func NewState(logger logr.Logger, settings settings.Settings) *AppState

func (*AppState) ReloadSettings added in v0.0.6

func (s *AppState) ReloadSettings(newSettings settings.Settings) error

ReloadSettings reloads settings, agents and workflows

func (*AppState) UpdateAgents added in v0.0.6

func (s *AppState) UpdateAgents() error

UpdateAgents re-initializes the agents based on the new settings.

func (*AppState) UpdateWorkflows added in v0.0.6

func (s *AppState) UpdateWorkflows() error

UpdateWorkflows re-initializes the workflows based on the new settings.

type RemoteProviders

type RemoteProviders struct {
	GitHub remote.Provider
	Local  remote.Provider
}

Jump to

Keyboard shortcuts

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