Versions in this module Expand all Collapse all v1 v1.1.4 Sep 7, 2022 Changes in this version + func UserAgent() string + func Version() string + type BaseClient struct + Endpoint string + func New(endpoint string) BaseClient + func NewWithoutDefaults(endpoint string) BaseClient + type DynamicList struct + ListEntityName *string + RequestLists *[]RequestList + type Error struct + Error *ErrorBody + type ErrorBody struct + Code *string + Message *string + type ExternalEntity struct + EntityLength *int32 + EntityName *string + Resolution interface{} + Score *float64 + StartIndex *int32 + type Intent struct + ChildApp *Prediction + Score *float64 + type Prediction struct + AlteredQuery *string + Entities map[string]interface{} + Intents map[string]*Intent + Sentiment *Sentiment + TopIntent *string + func (p Prediction) MarshalJSON() ([]byte, error) + type PredictionClient struct + func NewPredictionClient(endpoint string) PredictionClient + func (client PredictionClient) GetSlotPrediction(ctx context.Context, appID uuid.UUID, slotName string, ...) (result PredictionResponse, err error) + func (client PredictionClient) GetSlotPredictionPreparer(ctx context.Context, appID uuid.UUID, slotName string, ...) (*http.Request, error) + func (client PredictionClient) GetSlotPredictionResponder(resp *http.Response) (result PredictionResponse, err error) + func (client PredictionClient) GetSlotPredictionSender(req *http.Request) (*http.Response, error) + func (client PredictionClient) GetVersionPrediction(ctx context.Context, appID uuid.UUID, versionID string, ...) (result PredictionResponse, err error) + func (client PredictionClient) GetVersionPredictionPreparer(ctx context.Context, appID uuid.UUID, versionID string, ...) (*http.Request, error) + func (client PredictionClient) GetVersionPredictionResponder(resp *http.Response) (result PredictionResponse, err error) + func (client PredictionClient) GetVersionPredictionSender(req *http.Request) (*http.Response, error) + type PredictionRequest struct + DynamicLists *[]DynamicList + ExternalEntities *[]ExternalEntity + Options *PredictionRequestOptions + Query *string + type PredictionRequestOptions struct + DatetimeReference *date.Time + PreferExternalEntities *bool + type PredictionResponse struct + Prediction *Prediction + Query *string + type RequestList struct + CanonicalForm *string + Name *string + Synonyms *[]string + type Sentiment struct + Label *string + Score *float64