openapi

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 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 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