services

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthConfig

type AuthConfig proxy.Config

type Config

type Config struct {
	HTTPListenPort             int    `usage:"HTTP port to listen on" default:"8080" name:"http-listen-port"`
	DevMode                    bool   `usage:"Enable development mode" default:"false" name:"dev-mode" env:"OTTO8_DEV_MODE"`
	DevUIPort                  int    `usage:"The port on localhost running the dev instance of the UI" default:"5173"`
	AllowedOrigin              string `usage:"Allowed origin for CORS"`
	ToolRegistry               string `usage:"The tool reference for the tool registry" default:"github.com/otto8-ai/tools"`
	WorkspaceProviderType      string `` /* 130-byte string literal not displayed */
	WorkspaceTool              string `usage:"The tool reference for the workspace provider" default:"github.com/gptscript-ai/workspace-provider"`
	DatasetsTool               string `usage:"The tool reference for the dataset provider" default:"github.com/gptscript-ai/datasets"`
	HelperModel                string `usage:"The model used to generate names and descriptions" default:"gpt-4o-mini"`
	AWSKMSKeyARN               string `` /* 126-byte string literal not displayed */
	EncryptionConfigFile       string `usage:"The path to the encryption configuration file" default:"./encryption.yaml"`
	KnowledgeSetIngestionLimit int    `` /* 158-byte string literal not displayed */
	EmailServerName            string `usage:"The name of the email server to display for email receivers (default: ui-hostname value)"`

	AuthConfig
	GatewayConfig
	services.Config
}

type GatewayConfig

type GatewayConfig gserver.Options

type Services

type Services struct {
	ToolRegistryURL            string
	WorkspaceProviderType      string
	ServerURL                  string
	EmailServerName            string
	DevUIPort                  int
	Events                     *events.Emitter
	StorageClient              storage.Client
	Router                     *router.Router
	GPTClient                  *gptscript.GPTScript
	Invoker                    *invoke.Invoker
	TokenServer                *jwt.TokenService
	APIServer                  *server.Server
	AIHelper                   *aihelper.AIHelper
	Started                    chan struct{}
	ProxyServer                *proxy.Proxy
	GatewayServer              *gserver.Server
	ModelProviderDispatcher    *dispatcher.Dispatcher
	KnowledgeSetIngestionLimit int
}

func New

func New(ctx context.Context, config Config) (*Services, error)

Jump to

Keyboard shortcuts

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