Documentation ¶
Index ¶
- func NewEmptySprint() flows.Sprint
- func NewSessionAssets(source assets.Source) (flows.SessionAssets, error)
- func NewSprint(modifiers []flows.Modifier, events []flows.Event) flows.Sprint
- type AirtimeServiceFactory
- type Builder
- func (b *Builder) Build() flows.Engine
- func (b *Builder) WithAirtimeServiceFactory(f AirtimeServiceFactory) *Builder
- func (b *Builder) WithClassificationServiceFactory(f ClassificationServiceFactory) *Builder
- func (b *Builder) WithHTTPClient(client *http.Client) *Builder
- func (b *Builder) WithMaxStepsPerSprint(max int) *Builder
- func (b *Builder) WithWebhookServiceFactory(f WebhookServiceFactory) *Builder
- type ClassificationServiceFactory
- type WebhookServiceFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEmptySprint ¶ added in v0.25.4
NewEmptySprint creates a new sprint
func NewSessionAssets ¶ added in v0.4.0
func NewSessionAssets(source assets.Source) (flows.SessionAssets, error)
NewSessionAssets creates a new session assets instance with the provided base URLs
Types ¶
type AirtimeServiceFactory ¶ added in v0.51.0
type AirtimeServiceFactory func(flows.Session) flows.AirtimeService
AirtimeServiceFactory resolves a session to an airtime service
type Builder ¶ added in v0.27.4
type Builder struct {
// contains filtered or unexported fields
}
Builder is a builder for engine configs
func NewBuilder ¶ added in v0.27.4
func NewBuilder() *Builder
NewBuilder creates a new environment builder
func (*Builder) WithAirtimeServiceFactory ¶ added in v0.51.0
func (b *Builder) WithAirtimeServiceFactory(f AirtimeServiceFactory) *Builder
WithAirtimeServiceFactory sets the airtime service factory
func (*Builder) WithClassificationServiceFactory ¶ added in v0.51.0
func (b *Builder) WithClassificationServiceFactory(f ClassificationServiceFactory) *Builder
WithClassificationServiceFactory sets the NLU service factory
func (*Builder) WithHTTPClient ¶ added in v0.50.1
WithHTTPClient sets the HTTP client
func (*Builder) WithMaxStepsPerSprint ¶ added in v0.30.0
WithMaxStepsPerSprint sets the maximum number of steps allowed in a single sprint
func (*Builder) WithWebhookServiceFactory ¶ added in v0.51.0
func (b *Builder) WithWebhookServiceFactory(f WebhookServiceFactory) *Builder
WithWebhookServiceFactory sets the webhook service factory
type ClassificationServiceFactory ¶ added in v0.51.0
type ClassificationServiceFactory func(flows.Session, *flows.Classifier) flows.ClassificationService
ClassificationServiceFactory resolves a session and classifier to an NLU service
type WebhookServiceFactory ¶ added in v0.51.0
type WebhookServiceFactory func(flows.Session) flows.WebhookService
WebhookServiceFactory resolves a session to a webhook service