explorer

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StaticFiles embed.FS

Functions

This section is empty.

Types

type Config

type Config struct {
	Port          string `env:"PORT" envDefault:"8094"`
	ClickHouseURL string `env:"CLICKHOUSE_URL" envDefault:"http://localhost:8123"`
	ModelURL      string `env:"MODEL_URL" envDefault:"http://localhost:8091"`
	Model         string `env:"MODEL" envDefault:"qwen3.5-122b"`
}

Config holds explorer service configuration.

type LLMClient

type LLMClient interface {
	Chat(ctx context.Context, req *loop.Request, fn func(loop.Response) error) error
}

LLMClient is the interface for sending chat requests to an LLM.

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server is the explorer HTTP server.

func NewServer

func NewServer(cfg Config) *Server

NewServer creates an explorer server.

func (*Server) Handler

func (s *Server) Handler() http.Handler

Handler returns the HTTP handler with all routes.

func (*Server) SetLLM

func (s *Server) SetLLM(llm LLMClient)

SetLLM configures the LLM client. Used for testing.

Jump to

Keyboard shortcuts

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