Versions in this module Expand all Collapse all v0 v0.0.3 Dec 18, 2024 v0.0.2 Dec 17, 2024 v0.0.1 Dec 17, 2024 Changes in this version + type DatasetEntry struct + Date time.Time + Value float64 + type Emotion string + const EmotionAnger + const EmotionAnnoyance + const EmotionAnxiety + const EmotionBoredom + const EmotionCompassion + const EmotionDepression + const EmotionDisgust + const EmotionEmbarrassment + const EmotionEnvy + const EmotionFear + const EmotionGuilt + const EmotionHappiness + const EmotionHatred + const EmotionLoneliness + const EmotionLove + const EmotionNeutral + const EmotionPride + const EmotionSadness + const EmotionSatisfaction + const EmotionSelfConfidence + const EmotionShame + const EmotionSurprise + type Endpoint string + type GeographyRequest struct + Country string + Latitude float64 + Longitude float64 + ProximityLat float64 + ProximityLng float64 + Query string + Types string + func (r *GeographyRequest) URLQuery(url *url.URL) + type GeographyResponse struct + Data []struct{ ... } + Success bool + type ImageGenerationRequest struct + Height int + Model string + Prompt string + Size string + Width int + type ImageGenerationResponse struct + Image string + Success bool + type JigsawStack struct + func NewJigsawStack(apiKey string, opts ...Option) (*JigsawStack, error) + func (j *JigsawStack) AudioTTS(ctx context.Context, text string, options ...TTSOption) (mp3 string, err error) + func (j *JigsawStack) FileAdd(ctx context.Context, key string, contentType string, content string) (string, error) + func (j *JigsawStack) FileDelete(fileName string) error + func (j *JigsawStack) FileGet(ctx context.Context, fileName string) (string, error) + func (j *JigsawStack) GeographyGeocode(ctx context.Context, request GeographyRequest) (response GeographyResponse, err error) + func (j *JigsawStack) GeographySearch(ctx context.Context, request GeographyRequest) (response GeographyResponse, err error) + func (j *JigsawStack) ImageGeneration(ctx context.Context, request ImageGenerationRequest) (response ImageGenerationResponse, err error) + func (j *JigsawStack) KVAdd(ctx context.Context, key string, value string) error + func (j *JigsawStack) KVDelete(ctx context.Context, key string) (string, error) + func (j *JigsawStack) KVGet(ctx context.Context, key string) (string, error) + func (j *JigsawStack) Predict(ctx context.Context, dataset []DatasetEntry) (response PredictResponse, err error) + func (j *JigsawStack) PromptCreate(ctx context.Context, request PromptCreateRequest) (response PromptResponse, err error) + func (j *JigsawStack) PromptDelete(ctx context.Context, id string) (response PromptResponse, err error) + func (j *JigsawStack) PromptGet(ctx context.Context, id string) (response PromptEngine, err error) + func (j *JigsawStack) PromptList(ctx context.Context, page int, limit int) (response PromptListResponse, err error) + func (j *JigsawStack) PromptRun(ctx context.Context, id string, inputs map[string]any) (response PromptRunResponse, err error) + func (j *JigsawStack) PromptRunDirect(ctx context.Context, request PromptCreateRequest, inputs map[string]any) (response PromptRunResponse, err error) + func (j *JigsawStack) Sentiment(ctx context.Context, text string) (SentimentResponse, error) + func (j *JigsawStack) Summarize(ctx context.Context, request SummaryRequest) (response SummaryResponse, err error) + func (j *JigsawStack) TextToSQL(ctx context.Context, prompt string, sqlSchema string) (response TextToSQLResponse, err error) + func (j *JigsawStack) Translate(ctx context.Context, request TranslateRequest) (response TranslateResponse, err error) + func (j *JigsawStack) VOCR(ctx context.Context, prompt string, opt VCOROption) (string, error) + func (j *JigsawStack) VisionObjectDetection(ctx context.Context, params visionRequest) (string, error) + func (j *JigsawStack) WebSearch(ctx context.Context, query string) (response WebSearchResponse, err error) + func (j *JigsawStack) WebSearchSuggestions(ctx context.Context, query string) (response WebSearchSuggestions, err error) + type Language string + type Option func(*JigsawStack) + func WithBaseURL(baseURL string) Option + func WithClient(client *http.Client) Option + func WithLogger(logger *slog.Logger) Option + type PredictResponse struct + Answer []DatasetEntry + Success bool + type PromptCreateInput struct + InitialValue string + Key string + Optional bool + type PromptCreateRequest struct + Inputs []PromptCreateInput + Optimize bool + Prompt string + PromptGuard []string + ReturnPrompt string + UseInternet bool + type PromptEngine struct + CreatedAt time.Time + ID string + Inputs any + Prompt string + ReturnPrompt any + type PromptListResponse struct + HasMore bool + Limit int + Page int + PromptEngines []PromptEngine + Success bool + type PromptResponse struct + ID string + Success bool + type PromptRunResponse struct + Result string + Success bool + type SentimentResponse struct + Sentiment struct{ ... } + Success bool + type StorageResponse struct + Key string + Message string + Success bool + URL string + Value string + type SummaryRequest struct + Text string + type SummaryResponse struct + Success bool + Summary string + type TTSOption func(*ttsRequest) + func WithAccent(accent string) TTSOption + func WithFileKey(key string) TTSOption + func WithSpeakerURL(url string) TTSOption + type TextToSQLResponse struct + SQL string + Success bool + type TranslateRequest struct + CurrentLanguage Language + TargetLanguage Language + Text string + type TranslateResponse struct + Success bool + TranslatedText string + type VCOROption func(*visionRequest) + func WithKey(key string) VCOROption + func WithURL(url string) VCOROption + type VOCRResponse struct + Context string + HasText bool + Height int + Sections []any + Success bool + Tags []string + Width int + type VisionObjectResponse struct + Height int + Objects []struct{ ... } + Success bool + Tags []string + Width int + type WebSearchResponse struct + AiOverview string + IsSafe bool + Query string + Results []struct{ ... } + SpellFixed string + Success bool + type WebSearchSuggestions struct + Success bool + Suggestions []string