Documentation
¶
Index ¶
- Constants
- func AskHandler(manager *agent.Manager) (string, http.HandlerFunc, *openapi.PathItem)
- func ChatHandler(manager *agent.Manager) (string, http.HandlerFunc, *openapi.PathItem)
- func EmbeddingHandler(manager *agent.Manager) (string, http.HandlerFunc, *openapi.PathItem)
- func ModelGetHandler(manager *agent.Manager) (string, http.HandlerFunc, *openapi.PathItem)
- func ModelListHandler(manager *agent.Manager) (string, http.HandlerFunc, *openapi.PathItem)
- func RegisterHandlers(manager *agent.Manager, router server.HTTPRouter, middleware bool) error
- func SessionGetHandler(manager *agent.Manager) (string, http.HandlerFunc, *openapi.PathItem)
- func SessionHandler(manager *agent.Manager) (string, http.HandlerFunc, *openapi.PathItem)
- func ToolGetHandler(manager *agent.Manager) (string, http.HandlerFunc, *openapi.PathItem)
- func ToolListHandler(manager *agent.Manager) (string, http.HandlerFunc, *openapi.PathItem)
- type Router
Constants ¶
View Source
const (
// PathSeparator is used to split provider/model in URL path values
PathSeparator = "/"
)
Variables ¶
This section is empty.
Functions ¶
func AskHandler ¶
Path: /ask
func ChatHandler ¶
Path: /chat
func EmbeddingHandler ¶
Path: /embedding
func ModelGetHandler ¶
Path: /model/{model...}
func ModelListHandler ¶
Path: /model
func RegisterHandlers ¶
func SessionGetHandler ¶
Path: /session/{session}
func SessionHandler ¶
Path: /session
func ToolGetHandler ¶
Path: /tool/{name}
func ToolListHandler ¶
Path: /tool
Types ¶
Click to show internal directories.
Click to hide internal directories.