rest

package
v0.0.0-...-cef57f9 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chat

type Chat struct {
	// contains filtered or unexported fields
}

Chat registers WebSocket and REST API routes for the web chat. It handles all WebSocket I/O (connect, read, write, disconnect) and delegates to the go-agent-sdk Agent for the actual LLM work.

func (*Chat) HandleWebSocket

func (c *Chat) HandleWebSocket(webSocket *web.WebSocket) error

HandleWebSocket is the entry point for web WebSocket connections. Each connection gets a unique session ID; all chat messages within one connection share the same conversation context.

func (*Chat) Init

func (c *Chat) Init(ctx *core.Context) error

Init registers all chat-related routes on the web framework context.

type Flow

type Flow struct {
	// contains filtered or unexported fields
}

Flow 注册 workflow 浏览相关的 REST 路由。

func (*Flow) Init

func (c *Flow) Init(ctx *core.Context) error

Init 注册 flow 相关路由。

type FlowView

type FlowView struct {
	Id   string `json:"id"`
	Name string `json:"name"`
}

FlowView workflow 的前端视图,仅暴露 id 和 name。

Jump to

Keyboard shortcuts

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