mirror of
				https://github.com/abhinavxd/libredesk.git
				synced 2025-11-03 21:43:35 +00:00 
			
		
		
		
	feat: command menu on press ctrl + k
feat: CSAT email when a conversation is marked resolved.
feat(AI) ✨ agent message rewriting with OpenAI prompts
		
	
		
			
				
	
	
		
			21 lines
		
	
	
		
			530 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			530 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package ai
 | 
						|
 | 
						|
// ProviderClient is the interface all providers should implement.
 | 
						|
type ProviderClient interface {
 | 
						|
	SendPrompt(payload PromptPayload) (string, error)
 | 
						|
}
 | 
						|
 | 
						|
// ProviderType is an enum-like type for different providers.
 | 
						|
type ProviderType string
 | 
						|
 | 
						|
const (
 | 
						|
	ProviderOpenAI ProviderType = "openai"
 | 
						|
	ProviderClaude ProviderType = "claude"
 | 
						|
)
 | 
						|
 | 
						|
// PromptPayload represents the structured input for an LLM provider.
 | 
						|
type PromptPayload struct {
 | 
						|
	SystemPrompt string `json:"system_prompt"`
 | 
						|
	UserPrompt   string `json:"user_prompt"`
 | 
						|
}
 |