state

package
v0.0.38 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TargetProj = configuration.MarshaledProperty[TargetProject]{
		KeyName:    "target_project",
		ViperStore: StateViper,
		DefaultValue: &TargetProject{
			Name: "",
			Id:   "",
		},
	}
	TargetOrg = configuration.MarshaledProperty[TargetOrganization]{
		KeyName:    "target_org",
		ViperStore: StateViper,
		DefaultValue: &TargetOrganization{
			Name: "",
			Id:   "",
		},
	}
	TargetKm = configuration.MarshaledProperty[TargetKnowledgeModel]{
		KeyName:    "target_knowledge_model",
		ViperStore: StateViper,
		DefaultValue: &TargetKnowledgeModel{
			Name: "",
		},
	}
	ChatHist = configuration.MarshaledProperty[ChatHistory]{
		KeyName:    "chat_history",
		ViperStore: StateViper,
		DefaultValue: &ChatHistory{
			History: &models.KnowledgeModelChatHistory{},
		},
	}
)
View Source
var ConfigFile = configuration.ConfigFile{
	FileName:   "state",
	FileFormat: "yaml",
	Properties: properties,
	ViperStore: StateViper,
}
View Source
var StateViper *viper.Viper = viper.New()

Functions

This section is empty.

Types

type ChatHistory added in v0.0.21

type ChatHistory struct {
	History *models.KnowledgeModelChatHistory `json:"history"`
}

type TargetContext

type TargetContext struct {
	Project        string
	Org            string
	KnowledgeModel string
}

func GetTargetContext

func GetTargetContext() *TargetContext

type TargetKnowledgeModel added in v0.0.21

type TargetKnowledgeModel struct {
	Name string `json:"name"`
	Id   string `json:"id"`
}

type TargetOrganization

type TargetOrganization struct {
	Name string `json:"name"`
	Id   string `json:"id"`
}

type TargetProject

type TargetProject struct {
	Name string `json:"name"`
	Id   string `json:"global_id"`
}

Jump to

Keyboard shortcuts

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