mb_search

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

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 SimplifiedSearchResultJSON

type SimplifiedSearchResultJSON struct {
	MessageID   string `json:"msg_id"`
	MessageBody string `json:"msg_body"`
}

type TwitterMetadata

type TwitterMetadata struct {
	TweetStrID string `json:"in_reply_to_tweet_id"`
	Text       string `json:"text"`
}

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

Jump to

Keyboard shortcuts

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