Documentation
¶
Index ¶
- func GeminiEmbedding(ctx *fasthttp.RequestCtx, stdCtx context.Context, model, action, vk string, ...)
- func GeminiResponse(ctx *fasthttp.RequestCtx, stdCtx context.Context, model, action, vk string, ...)
- func GeminiSpeech(ctx *fasthttp.RequestCtx, stdCtx context.Context, model, action, vk string, ...)
- func RecordSpanError(span trace.Span, err error)
- func RegisterAgentConfigRoutes(r *router.Router, svc *services.Services)
- func RegisterAuthRoutes(r *router.Router, svc *services.Services, auth *authenticator.Authenticator)
- func RegisterConversationRoutes(r *router.Router, svc *services.Services)
- func RegisterDurableConverseRoute(r *router.Router, svc *services.Services, llmGateway *gateway.LLMGateway, ...)
- func RegisterGatewayRoutes(r *router.Group, svc *services.Services, llmGateway *gateway.LLMGateway)
- func RegisterProjectRoutes(r *router.Router, svc *services.Services)
- func RegisterPromptRoutes(r *router.Router, svc *services.Services)
- func RegisterProviderRoutes(r *router.Router, svc *services.Services)
- func RegisterTracesRoutes(r *router.Group, svc *services.Services)
- func RegisterVirtualKeyRoutes(r *router.Router, svc *services.Services)
- type ConverseRequest
- type LoginRequest
- type LoginResponse
- type UserResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GeminiEmbedding ¶
func GeminiEmbedding(ctx *fasthttp.RequestCtx, stdCtx context.Context, model, action, vk string, llmGateway *gateway.LLMGateway)
func GeminiResponse ¶
func GeminiResponse(ctx *fasthttp.RequestCtx, stdCtx context.Context, model, action, vk string, llmGateway *gateway.LLMGateway)
func GeminiSpeech ¶ added in v0.1.11
func GeminiSpeech(ctx *fasthttp.RequestCtx, stdCtx context.Context, model, action, vk string, llmGateway *gateway.LLMGateway)
func RecordSpanError ¶ added in v0.1.11
func RegisterAgentConfigRoutes ¶ added in v0.1.11
func RegisterAuthRoutes ¶
func RegisterAuthRoutes(r *router.Router, svc *services.Services, auth *authenticator.Authenticator)
func RegisterDurableConverseRoute ¶
func RegisterDurableConverseRoute(r *router.Router, svc *services.Services, llmGateway *gateway.LLMGateway, conf *config.Config, broker core.StreamBroker)
func RegisterGatewayRoutes ¶
func RegisterTracesRoutes ¶
RegisterTracesRoutes registers trace-related API routes
Types ¶
type ConverseRequest ¶
type ConverseRequest struct {
Message responses.InputMessageUnion `json:"message" doc:"User message"`
Namespace string `json:"namespace" doc:"Namespace ID"`
PreviousMessageID string `json:"previous_message_id" doc:"Previous run ID for threading"`
Context map[string]any `json:"context" doc:"Context to pass to prompt template"`
SessionID string `json:"session_id" required:"true" doc:"Session ID"`
}
type LoginRequest ¶
type LoginResponse ¶
type LoginResponse struct {
Token string `json:"token"`
User UserResponse `json:"user"`
}
Click to show internal directories.
Click to hide internal directories.