openapi

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChatAgent

func ChatAgent(ctx *gin.Context)

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

func ChatRag(ctx *gin.Context)

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

func CreateAgentConversation(ctx *gin.Context)

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

func GetMCPServerMessage(ctx *gin.Context)

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

func GetMCPServerSSE(ctx *gin.Context)

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

func GetMCPServerStreamable(ctx *gin.Context)

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

func OAuthConfig(ctx *gin.Context)

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

func OAuthGetUserInfo(ctx *gin.Context)

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

func OAuthJWKS(ctx *gin.Context)

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

func OAuthLogin(ctx *gin.Context)

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

func OAuthRefresh(ctx *gin.Context)

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

func OAuthToken(ctx *gin.Context)

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

func WorkflowFileUpload(ctx *gin.Context)

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

func WorkflowRun(ctx *gin.Context)

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.

Jump to

Keyboard shortcuts

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