Documentation
¶
Index ¶
- type Handler
- func (h *Handler) AgentInit(ctx context.Context, c *app.RequestContext)
- func (h *Handler) AgentRun(ctx context.Context, c *app.RequestContext)
- func (h *Handler) CreateModel(ctx context.Context, c *app.RequestContext)
- func (h *Handler) DeleteModel(ctx context.Context, c *app.RequestContext)
- func (h *Handler) DeleteSession(ctx context.Context, c *app.RequestContext)
- func (h *Handler) GetModelList(ctx context.Context, c *app.RequestContext)
- func (h *Handler) GetPrompt(ctx context.Context, c *app.RequestContext)
- func (h *Handler) GetSessionMessages(ctx context.Context, c *app.RequestContext)
- func (h *Handler) ListSessions(ctx context.Context, c *app.RequestContext)
- func (h *Handler) SavePrompt(ctx context.Context, c *app.RequestContext)
- type SSEStream
- func (s *SSEStream) Close()
- func (s *SSEStream) SendCustomEvent(name string, value any) error
- func (s *SSEStream) SendRunError(message, code string) error
- func (s *SSEStream) SendRunFinished() error
- func (s *SSEStream) SendRunStarted() error
- func (s *SSEStream) SendTextMessageContent(messageID string, role model.MessageRole, delta string, isThinking bool) error
- func (s *SSEStream) SendTextMessageEnd(messageID string, role model.MessageRole) error
- func (s *SSEStream) SendTextMessageStart(messageID string, role model.MessageRole, name string, isThinking bool) error
- func (s *SSEStream) SendToolCallArgs(toolCallID, toolCallName, delta string) error
- func (s *SSEStream) SendToolCallEnd(toolCallID, toolCallName string, status model.ToolCallStatus) error
- func (s *SSEStream) SendToolCallResult(toolCallID, toolCallName, delta string, status model.ToolCallStatus) error
- func (s *SSEStream) SendToolCallStart(toolCallID, toolCallName, parentMessageID string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func (*Handler) CreateModel ¶
func (h *Handler) CreateModel(ctx context.Context, c *app.RequestContext)
func (*Handler) DeleteModel ¶
func (h *Handler) DeleteModel(ctx context.Context, c *app.RequestContext)
func (*Handler) DeleteSession ¶
func (h *Handler) DeleteSession(ctx context.Context, c *app.RequestContext)
func (*Handler) GetModelList ¶
func (h *Handler) GetModelList(ctx context.Context, c *app.RequestContext)
func (*Handler) GetSessionMessages ¶
func (h *Handler) GetSessionMessages(ctx context.Context, c *app.RequestContext)
func (*Handler) ListSessions ¶
func (h *Handler) ListSessions(ctx context.Context, c *app.RequestContext)
func (*Handler) SavePrompt ¶
func (h *Handler) SavePrompt(ctx context.Context, c *app.RequestContext)
type SSEStream ¶
type SSEStream struct {
// contains filtered or unexported fields
}
func NewSSEStream ¶
func (*SSEStream) SendCustomEvent ¶
func (*SSEStream) SendRunError ¶
func (*SSEStream) SendRunFinished ¶
func (*SSEStream) SendRunStarted ¶
func (*SSEStream) SendTextMessageContent ¶
func (*SSEStream) SendTextMessageEnd ¶
func (s *SSEStream) SendTextMessageEnd(messageID string, role model.MessageRole) error
func (*SSEStream) SendTextMessageStart ¶
func (*SSEStream) SendToolCallArgs ¶
func (*SSEStream) SendToolCallEnd ¶
func (s *SSEStream) SendToolCallEnd(toolCallID, toolCallName string, status model.ToolCallStatus) error
func (*SSEStream) SendToolCallResult ¶
func (s *SSEStream) SendToolCallResult(toolCallID, toolCallName, delta string, status model.ToolCallStatus) error
func (*SSEStream) SendToolCallStart ¶
Click to show internal directories.
Click to hide internal directories.