api

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChatServer

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

ChatServer handles incoming HTTP chat requests and manages streaming output.

func NewChatServer

func NewChatServer(assistant *runtime.AssistantRuntime, logger *slog.Logger) *ChatServer

NewChatServer initializes a new API server for the bot runtime.

func (*ChatServer) ServeHTTP

func (s *ChatServer) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP implements the POST /chat endpoint and streams tokens via Server-Sent Events.

Jump to

Keyboard shortcuts

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