Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Candidate ¶
type Candidate struct {
Content Content `json:"content"`
FinishReason string `json:"finishReason"`
Index int `json:"index"`
SafetyRatings []SafetyRating `json:"safetyRatings"`
CitationMetadata CitationMetadata `json:"citationMetadata"`
}
type CitationMetadata ¶
type CitationMetadata struct {
CitationSources []CitationSource `json:"citationSources"`
}
type CitationSource ¶
type Content ¶
type Content struct {
Role string `json:"role"`
Parts []ContentPart `json:"parts"`
}
Content struct represents the content object in the request body
type ContentPart ¶
type ContentPart struct {
Text string `json:"text"`
}
ContentPart struct represents a part of the content
type GenerateContentRequest ¶
type GenerateContentRequest struct {
Contents []Content `json:"contents"`
}
GenerateContentRequest struct represents the request body for generateContent
type ModuleGenerate ¶
type ModuleGenerate interface {
GetInstagramProfile(username string) instagram.InstagramProfile
GenerateRoast(profile instagram.InstagramProfile) (string, error)
WrapText(text string, width int) []string
}
func NewGenerate ¶
func NewGenerate(config helper.Config) ModuleGenerate
type SafetyRating ¶
Click to show internal directories.
Click to hide internal directories.