Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetInstructions ¶
func SetInstructions(r *RetrievalItem) error
Types ¶
type RedditMetadata ¶
type RedditMetadata struct { PostID string `json:"postID"` FullPostID string `json:"fullPostID"` NumberOfComments int `json:"numberOfComments"` Url string `json:"url"` Title string `json:"title"` Body string `json:"body"` Permalink string Author string `json:"author"` AuthorID string `json:"authorID"` Subreddit string `json:"subreddit"` Score int `json:"score"` UpvoteRatio float64 `json:"upvoteRatio"` Metadata json.RawMessage `json:"metadata"` }
type RetrievalItem ¶
type RetrievalItem struct { RetrievalStrID *string `json:"retrievalStrID"` RetrievalID *int `json:"retrievalID,omitempty"` // ID of the retrieval RetrievalName string `json:"retrievalName"` // Name of the retrieval RetrievalGroup string `json:"retrievalGroup"` // Group of the retrieval RetrievalItemInstruction `json:"retrievalItemInstruction"` // Instructions for the retrieval }
type RetrievalItemInstruction ¶
type RetrievalItemInstruction struct { RetrievalPlatform string `json:"retrievalPlatform"` RetrievalPrompt *string `json:"retrievalPrompt,omitempty"` // Prompt for the retrieval RetrievalPlatformGroups *string `json:"retrievalPlatformGroups,omitempty"` // Platform groups for the retrieval RetrievalKeywords *string `json:"retrievalKeywords,omitempty"` // Keywords for the retrieval RetrievalNegativeKeywords *string `json:"retrievalNegativeKeywords,omitempty"` // Keywords for the retrieval RetrievalUsernames *string `json:"retrievalUsernames,omitempty"` // Usernames for the retrieval WebFilters *WebFilters `json:"webFilters,omitempty"` // Web filters for the retrieval Instructions json.RawMessage `json:"instructions,omitempty"` // Instructions for the retrieval }
type SearchResult ¶
type SearchResult struct { UnixTimestamp int `json:"unixTimestamp"` Source string `json:"source"` Value string `json:"value"` Group string `json:"group"` Verified *bool `json:"verified,omitempty"` RedditMetadata RedditMetadata `json:"redditMetadata"` TwitterMetadata *TwitterMetadata `json:"twitterMetadata,omitempty"` WebResponse WebResponse `json:"webResponses,omitempty"` }
type TwitterMetadata ¶
type WebFilters ¶
type WebFilters struct { RoutingGroup *string `json:"routingGroup,omitempty"` LbStrategy *string `json:"lbStrategy,omitempty"` MaxRetries *int `json:"maxRetries,omitempty"` BackoffCoefficient *float64 `json:"backoffCoefficient,omitempty"` EndpointRoutePath *string `json:"endpointRoutePath,omitempty"` EndpointREST *string `json:"endpointREST,omitempty"` }
type WebResponse ¶
type WebResponse struct { WebFilters *WebFilters `json:"webFilters,omitempty"` Body echo.Map `json:"body"` RawMessage []byte `json:"rawMessage"` }
Click to show internal directories.
Click to hide internal directories.