httphandler

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// PathSeparator is used to split provider/model in URL path values
	PathSeparator = "/"
)

Variables

This section is empty.

Functions

func AskHandler

func AskHandler(manager *agent.Manager) (string, http.HandlerFunc, *openapi.PathItem)

Path: /ask

func ChatHandler

func ChatHandler(manager *agent.Manager) (string, http.HandlerFunc, *openapi.PathItem)

Path: /chat

func EmbeddingHandler

func EmbeddingHandler(manager *agent.Manager) (string, http.HandlerFunc, *openapi.PathItem)

Path: /embedding

func ModelGetHandler

func ModelGetHandler(manager *agent.Manager) (string, http.HandlerFunc, *openapi.PathItem)

Path: /model/{model...}

func ModelListHandler

func ModelListHandler(manager *agent.Manager) (string, http.HandlerFunc, *openapi.PathItem)

Path: /model

func RegisterHandlers

func RegisterHandlers(manager *agent.Manager, router server.HTTPRouter, middleware bool) error

func SessionGetHandler

func SessionGetHandler(manager *agent.Manager) (string, http.HandlerFunc, *openapi.PathItem)

Path: /session/{session}

func SessionHandler

func SessionHandler(manager *agent.Manager) (string, http.HandlerFunc, *openapi.PathItem)

Path: /session

func ToolGetHandler

func ToolGetHandler(manager *agent.Manager) (string, http.HandlerFunc, *openapi.PathItem)

Path: /tool/{name}

func ToolListHandler

func ToolListHandler(manager *agent.Manager) (string, http.HandlerFunc, *openapi.PathItem)

Path: /tool

Types

type Router

type Router interface {
	RegisterFunc(path string, handler http.HandlerFunc, middleware bool, spec *openapi.PathItem) error
}

Jump to

Keyboard shortcuts

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