Versions in this module Expand all Collapse all v0 v0.0.5 May 27, 2026 v0.0.4 May 27, 2026 Changes in this version + func RegisterHandlers(router gin.IRouter, si ServerInterface) + func RegisterHandlersWithOptions(router gin.IRouter, si ServerInterface, options GinServerOptions) + type AddPromptJSONBody struct + Content string + Format AddPromptJSONBodyFormat + FormatInstructions string + Name string + Parameters []string + SampleParameters *map[string]string + Tags []string + type AddPromptJSONBodyFormat string + const AddPromptJSONBodyFormatJson + const AddPromptJSONBodyFormatMarkdown + const AddPromptJSONBodyFormatText + type AddPromptJSONRequestBody AddPromptJSONBody + type BasicEntity struct + Icon *string + Id openapi_types.UUID + Name string + type ErrorSchema struct + Code int32 + Message string + type ExecutePromptJSONBody struct + Content *string + Format *ExecutePromptJSONBodyFormat + FormatInstructions *string + Parameters *[]string + ParametersValues *map[string]string + type ExecutePromptJSONBodyFormat string + const ExecutePromptJSONBodyFormatJson + const ExecutePromptJSONBodyFormatMarkdown + const ExecutePromptJSONBodyFormatText + type ExecutePromptJSONRequestBody ExecutePromptJSONBody + type ExecutePromptParams struct + Id *openapi_types.UUID + Llm *string + MaxTokens *int32 + Name *string + Provider *ExecutePromptParamsProvider + Temperature *float32 + type ExecutePromptParamsProvider string + const ANTHROPIC + const GOOGLEAI + const MISTRAL + const OLLAMA + const OPENAI + type FormatPromptJSONBody struct + Parameters *map[string]string + type FormatPromptJSONRequestBody FormatPromptJSONBody + type FormatPromptParams struct + Id *openapi_types.UUID + Name *string + type GinServerOptions struct + BaseURL string + ErrorHandler func(*gin.Context, error, int) + Middlewares []MiddlewareFunc + type InternalServerError struct + Error *string + Message *string + type ListPromptsParams struct + Detail *string + Order *ListPromptsParamsOrder + Page *int32 + PageSize *int32 + Q *string + SortBy *string + Tags *[]string + type ListPromptsParamsOrder string + const Asc + const Desc + type MiddlewareFunc func(c *gin.Context) + type NewPrompt struct + Content string + Format NewPromptFormat + FormatInstructions string + Name string + Parameters []string + SampleParameters *map[string]string + Tags []string + type NewPromptFormat string + const NewPromptFormatJson + const NewPromptFormatMarkdown + const NewPromptFormatText + type Prompt struct + Content string + Format PromptFormat + FormatInstructions string + Id openapi_types.UUID + Name string + Parameters []string + SampleParameters *map[string]string + Tags []string + type PromptFormat string + const PromptFormatJson + const PromptFormatMarkdown + const PromptFormatText + type PromptResponse struct + Result string + type ServerInterface interface + AddPrompt func(c *gin.Context) + DeletePrompt func(c *gin.Context, id openapi_types.UUID) + ExecutePrompt func(c *gin.Context, params ExecutePromptParams) + FormatPrompt func(c *gin.Context, params FormatPromptParams) + GetPromptByID func(c *gin.Context, id openapi_types.UUID) + ListPrompts func(c *gin.Context, params ListPromptsParams) + UpdatePrompt func(c *gin.Context, id openapi_types.UUID) + type ServerInterfaceWrapper struct + ErrorHandler func(*gin.Context, error, int) + Handler ServerInterface + HandlerMiddlewares []MiddlewareFunc + func (siw *ServerInterfaceWrapper) AddPrompt(c *gin.Context) + func (siw *ServerInterfaceWrapper) DeletePrompt(c *gin.Context) + func (siw *ServerInterfaceWrapper) ExecutePrompt(c *gin.Context) + func (siw *ServerInterfaceWrapper) FormatPrompt(c *gin.Context) + func (siw *ServerInterfaceWrapper) GetPromptByID(c *gin.Context) + func (siw *ServerInterfaceWrapper) ListPrompts(c *gin.Context) + func (siw *ServerInterfaceWrapper) UpdatePrompt(c *gin.Context) + type UnauthorizedError struct + Error *string + Message *string + type UpdatePromptJSONBody struct + Content string + Format UpdatePromptJSONBodyFormat + FormatInstructions string + Id openapi_types.UUID + Name string + Parameters []string + SampleParameters *map[string]string + Tags []string + type UpdatePromptJSONBodyFormat string + const Json + const Markdown + const Text + type UpdatePromptJSONRequestBody UpdatePromptJSONBody