config

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Logging    LoggingInfo    `json:"logging,omitempty"`
	ServerInfo ServerInfo     `json:"serverInfo"`
	Inspector  *InspectorInfo `json:"inspector,omitempty"`
	Tools      []ToolConfig   `json:"tools"`
	Prompts    *PromptConfig  `json:"prompts,omitempty"`
}

func LoadConfig

func LoadConfig(configFilePath string) (*Config, error)

LoadConfig loads the configuration from a file

type InspectorInfo added in v0.3.0

type InspectorInfo struct {
	Enabled       bool   `json:"enabled"`
	ListenAddress string `json:"listenAddress"`
}

type LoggingInfo

type LoggingInfo struct {
	File              string `json:"file,omitempty"`
	IsFifo            bool   `json:"isFifo,omitempty"`
	Level             string `json:"level,omitempty"`
	WithStderr        bool   `json:"withStderr,omitempty"`
	ProtocolDebugFile string `json:"protocolDebugFile,omitempty"`
}

type PromptConfig added in v0.2.0

type PromptConfig struct {
	File string `json:"file"`
}

type ServerInfo

type ServerInfo struct {
	Name    string `json:"name"`
	Version string `json:"version"`
}

type ToolConfig

type ToolConfig struct {
	Name          string      `json:"name"`
	IsDisabled    bool        `json:"isDisabled,omitempty"`
	Description   string      `json:"description,omitempty"`
	Configuration interface{} `json:"configuration"`
}

Jump to

Keyboard shortcuts

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