server

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2025 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Listen

func Listen(ctx context.Context, addr string) (net.Listener, error)

Types

type Message

type Message struct {
	Role    chat.MessageRole `json:"role"`
	Content string           `json:"content"`
}

type Opt

type Opt func(*Server)

func WithAgentsDir

func WithAgentsDir(dir string) Opt

func WithAutoRunTools

func WithAutoRunTools(autoRunTools bool) Opt

func WithFrontend

func WithFrontend(fsys fs.FS) Opt

type Server

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

func New

func New(sessionStore session.Store, runConfig latest.RuntimeConfig, teams map[string]*team.Team, opts ...Opt) *Server

func (*Server) Serve

func (s *Server) Serve(ctx context.Context, ln net.Listener) error

Jump to

Keyboard shortcuts

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