server

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: May 7, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package server implements the daimon HTTP API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server routes HTTP requests to provider components and drives the MCP agentic loop when tools are available.

func New

func New(
	components map[string]conversation.Conversation,
	mcpClients []*mcp.Client,
	stores map[string]memory.MemoryStore,
	graphs map[string]memory.GraphStore,
	componentStores map[string]string,
	sessionSt session.SessionStore,
) *Server

New creates a Server, pre-fetches tool catalogues from all MCP clients, generates store/graph tool definitions, and registers HTTP routes.

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP implements http.Handler.

Jump to

Keyboard shortcuts

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