Files
libredesk/internal/ai/provider.go
Abhinav Raut d8e29b569f feat: conversation snooze
feat: command menu on press ctrl + k
feat: CSAT email when a conversation is marked resolved.
feat(AI)  agent message rewriting with OpenAI prompts
2025-01-08 06:34:28 +05:30

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"`
}