Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BotV2 ¶
type BotV2 struct {
// contains filtered or unexported fields
}
BotV2 implements a mock chat bot with conversation management
func (*BotV2) GetConversation ¶
func (b *BotV2) GetConversation(clientID string) (conversation.Conversation, bool)
GetConversation returns the conversation for a client
func (*BotV2) HandleMessage ¶
func (b *BotV2) HandleMessage(client *sse.Client, req ChatRequest)
HandleMessage processes a chat message and streams the response
func (*BotV2) LoadConversation ¶
LoadConversation loads a conversation from a file for a client
type ChatMessage ¶
ChatMessage represents a message in the chat
type ChatRequest ¶
type ChatRequest struct {
Messages []ChatMessage `json:"messages"`
}
ChatRequest represents an incoming chat request
type MockBot ¶
type MockBot struct {
// contains filtered or unexported fields
}
MockBot implements a simple mock chat bot that reverses messages
func NewMockBot ¶
NewMockBot creates a new mock bot instance
func (*MockBot) HandleMessage ¶
func (b *MockBot) HandleMessage(client *sse.Client, req ChatRequest)
HandleMessage processes a chat message and streams the response
Click to show internal directories.
Click to hide internal directories.