mirror of
https://github.com/abhinavxd/libredesk.git
synced 2026-09-25 03:42:02 +00:00
d8e29b569f
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"`
|
|
}
|