models

package
v1.5.42 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 31, 2024 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AIChatHistory added in v1.5.38

type AIChatHistory struct {
	Messages []AIMessage `json:"messages"`
}

type AIChatResponse added in v1.5.38

type AIChatResponse struct {
	AIResponse string `json:"ai_response"`
	Tokens     int    `json:"tokens"`
	TimeTaken  int    `json:"time_taken"`
}

type AIMessage added in v1.5.38

type AIMessage struct {
	Message string  `json:"message"`
	Role    AIRoles `json:"role"`
}

type AIRoles added in v1.5.38

type AIRoles string
const (
	User      AIRoles = "user"
	Assistant AIRoles = "assistant"
	System    AIRoles = "system"
	Tool      AIRoles = "tool"
	Function  AIRoles = "function"
)

type Email added in v1.4.37

type Email struct {
	Subject string    `json:"subject"`
	Body    EmailBody `json:"body"`
}

type EmailBody added in v1.4.37

type EmailBody struct {
	Text string `json:"text"`
	HTML string `json:"html"`
}

type ErrorMessage added in v1.3.26

type ErrorMessage struct {
	ErrorCode   int    `json:"error_code"`
	Description string `json:"description"`
	ErrorMsg    string `json:"error_msg"`
	UserMsg     string `json:"user_msg"`
	ErrorLevel  string `json:"error_level"`
}

type GoogleCallbackData

type GoogleCallbackData struct {
	Email         string `json:"email"`
	Name          string `json:"name"`
	Picture       string `json:"picture"`
	VerifiedEmail bool   `json:"verified_email"`
	ID            string `json:"id"`
}

type SingleEmailRequest added in v1.4.37

type SingleEmailRequest struct {
	Email
	To string `json:"to"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL