openapi

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 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 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