Documentation
¶
Index ¶
- func ChatAgent(ctx *gin.Context)
- func ChatRag(ctx *gin.Context)
- func CreateAgentConversation(ctx *gin.Context)
- func GetMCPServerMessage(ctx *gin.Context)
- func GetMCPServerSSE(ctx *gin.Context)
- func GetMCPServerStreamable(ctx *gin.Context)
- func OAuthConfig(ctx *gin.Context)
- func OAuthGetUserInfo(ctx *gin.Context)
- func OAuthJWKS(ctx *gin.Context)
- func OAuthLogin(ctx *gin.Context)
- func OAuthRefresh(ctx *gin.Context)
- func OAuthToken(ctx *gin.Context)
- func WorkflowFileUpload(ctx *gin.Context)
- func WorkflowRun(ctx *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChatAgent ¶
ChatAgent
@Tags openapi
@Summary 智能体对话OpenAPI
@Description 智能体对话OpenAPI
@Accept json
@Produce json
@Param data body request.OpenAPIAgentChatRequest true "请求参数"
@Success 200 {object} response.OpenAPIAgentChatResponse
@Success 400 {object} response.Response
@Router /agent/chat [post]
func ChatRag ¶
ChatRag
@Tags openapi
@Summary 文本问答OpenAPI
@Description 文本问答OpenAPI
@Accept json
@Produce json
@Param data body request.OpenAPIRagChatRequest true "请求参数"
@Success 200 {object} response.OpenAPIRagChatResponse
@Success 400 {object} response.Response
@Router /rag/chat [post]
func CreateAgentConversation ¶
CreateAgentConversation
@Tags openapi
@Summary 智能体创建对话OpenAPI
@Description 智能体创建对话OpenAPI
@Accept json
@Produce json
@Param data body request.OpenAPIAgentCreateConversationRequest true "请求参数"
@Success 400 {object} response.Response{data=response.OpenAPIAgentCreateConversationResponse}
@Router /agent/conversation [post]
func GetMCPServerMessage ¶ added in v0.2.5
GetMCPServerMessage
@Tags openapi
@Summary 获取MCPServer Message
@Description 获取MCPServer Message
@Accept json
@Produce json
@Param id query string true "mcpServerId"
@Success 200 {object} response.Response{}
@Router /mcp/server/message [post]
func GetMCPServerSSE ¶ added in v0.2.5
GetMCPServerSSE
@Tags openapi
@Summary 获取MCPServer SSE
@Description 获取MCPServer SSE
@Accept json
@Produce json
@Param key query string true "key"
@Success 200 {object} response.Response{}
@Router /mcp/server/sse [get]
func GetMCPServerStreamable ¶ added in v0.2.5
GetMCPServerStreamable
@Tags openapi
@Summary 获取MCPServer streamable 类型消息
@Description 获取MCPServer streamable 类型消息
@Accept json
@Produce json
@Param key query string true "key"
@Success 200 {object} response.Response{}
@Router /mcp/server/streamable [post]
func OAuthConfig ¶ added in v0.2.7
OAuthConfig
@Tags openapi.OIDC
@Summary 动态客户端发现配置
@Description 自动获取 OP 的配置信息
@Produce json
@Success 200 {object} response.OAuthConfig
@Router /.well-known/openid-configuration [get]
func OAuthGetUserInfo ¶ added in v0.2.7
OAuthGetUserInfo
@Tags openapi.OIDC
@Summary OAuth获取用户信息
@Description 通过access token获取用户信息
@Produce json
@Success 200 {object} response.OAuthGetUserInfo
@Router /oauth/userinfo [get]
func OAuthJWKS ¶ added in v0.2.7
OAuthJWKS
@Tags openapi.OIDC
@Summary 公钥获取链接
@Description 自动获取OAuthJWKS
@Produce json
@Success 200 {object} response.OAuthJWKS
@Router /oauth/jwks [get]
func OAuthLogin ¶ added in v0.2.7
OAuthLogin
@Tags openapi.OIDC
@Summary OAuth登录授权
@Description 返回OAuth登录页面
@Accept json
@Produce json
@Param client_id query string true "备案ID"
@Param redirect_uri query string true "重定向URI"
@Param response_type query string true "响应类型"
@Param scope query string false "权限范围"
@Param state query string true "状态参数"
@Success 302 {string} string "重定向到指定URI"
@Router /oauth/login [get]
func OAuthRefresh ¶ added in v0.2.7
OAuthRefresh
@Tags openapi.OIDC
@Summary 刷新令牌
@Description 刷新令牌
@Accept json
@Produce json
@Param data body request.OAuthRefreshRequest true "RefreshToken"
@Success 200 {object} response.OAuthRefreshTokenResponse
@Router /oauth/code/token/refresh [post]
func OAuthToken ¶ added in v0.2.7
OAuthToken
@Tags openapi.OIDC
@Summary 授权码方式
@Description 授权码方式-获取Token
@Accept x-www-form-urlencoded
@Produce json
@Param grant_type formData string true "授权类型"
@Param code formData string true "授权码"
@Param client_id formData string true "Client ID"
@Param redirect_uri formData string true "回调地址"
@Param client_secret formData string true "备案密钥"
@Success 200 {object} response.OAuthTokenResponse
@Router /oauth/code/token [post]
func WorkflowFileUpload ¶ added in v0.2.2
WorkflowFileUpload
@Tags openapi
@Summary 工作流OpenAPI文件上传
@Description 工作流OpenAPI文件上传
@Accept multipart/form-data
@Produce json
@Param file formData file true "文件"
@Success 200 {object} string
@Success 400 {object} response.Response
@Router /workflow/file/upload [post]
func WorkflowRun ¶ added in v0.2.2
WorkflowRun
@Tags openapi
@Summary 工作流OpenAPI
@Description 工作流OpenAPI
@Accept json
@Produce json
@Success 200 {object} response.Response
@Router /workflow/run [post]
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.