Documentation
¶
Index ¶
Constants ¶
View Source
const (
LLMPluginName = "LLMHoneypot"
)
Variables ¶
This section is empty.
Functions ¶
func InitBeelzebubCloud ¶ added in v3.1.8
func InitBeelzebubCloud(uri, authToken string) *beelzebubCloud
Types ¶
type HoneypotConfigResponseDTO ¶ added in v3.2.3
type LLMHoneypot ¶ added in v3.2.2
type LLMHoneypot struct { Histories []Message OpenAIKey string Protocol tracer.Protocol Provider LLMProvider Model string Host string CustomPrompt string // contains filtered or unexported fields }
func InitLLMHoneypot ¶ added in v3.2.2
func InitLLMHoneypot(config LLMHoneypot) *LLMHoneypot
func (*LLMHoneypot) ExecuteModel ¶ added in v3.2.2
func (llmHoneypot *LLMHoneypot) ExecuteModel(command string) (string, error)
type LLMProvider ¶ added in v3.3.5
type LLMProvider int
const ( Ollama LLMProvider = iota OpenAI )
func FromStringToLLMProvider ¶ added in v3.3.5
func FromStringToLLMProvider(llmProvider string) (LLMProvider, error)
type Response ¶ added in v3.2.2
type Response struct { ID string `json:"id"` Object string `json:"object"` Created int `json:"created"` Model string `json:"model"` Choices []Choice `json:"choices"` Message Message `json:"message"` Usage struct { PromptTokens int `json:"prompt_tokens"` CompletionTokens int `json:"completion_tokens"` TotalTokens int `json:"total_tokens"` } `json:"usage"` }
Click to show internal directories.
Click to hide internal directories.