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.
Click to show internal directories.
Click to hide internal directories.