know

package
v0.0.0-...-0dfd57a Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Service know answers questions by asking multiple knowledge providers.

Index

Constants

This section is empty.

Variables

View Source
var Module = &services.Module{
	Name:        "know",
	Version:     "1.0",
	NewInstance: NewService,
}

Functions

This section is empty.

Types

type Config

type Config struct {
	WolframApiKey string
}

type Dependencies

type Dependencies struct {
	Config services.Config
	Client sarif.Client
}

type MessageAnswer

type MessageAnswer struct {
	Query  string `json:"query"`
	Answer string `json:"answer"`
	Source string
}

func (MessageAnswer) String

func (m MessageAnswer) String() string

type Service

type Service struct {
	sarif.Client
	// contains filtered or unexported fields
}

func NewService

func NewService(deps *Dependencies) *Service

func (*Service) Disable

func (s *Service) Disable() error

func (*Service) Enable

func (s *Service) Enable() error

Jump to

Keyboard shortcuts

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