intents

package
v0.0.0-...-9e607e1 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindSubject

func FindSubject() *intent.Intent

func Proofread

func Proofread() *intent.Intent

func ProofreadWithTone

func ProofreadWithTone(tone string) *intent.Intent

func Question

func Question(q string) *intent.Intent

func Summarize

func Summarize() *intent.Intent

There should be a "recursive" summarize that tries to cut inputs that exceed a token size. We should then try to summarize each batch, join them and summarize it again (there will be loss of information).

Types

type DOMBrowser

type DOMBrowser struct {
	// contains filtered or unexported fields
}

func NewDOMBrowser

func NewDOMBrowser(url, segment string) *DOMBrowser

func (*DOMBrowser) Execute

func (i *DOMBrowser) Execute(c *client.Client, opts ...client.InputOption) (string, error)

func (*DOMBrowser) SetInput

type JQ

type JQ struct {
	// contains filtered or unexported fields
}

func NewJQ

func NewJQ(segment string) *JQ

func (*JQ) Execute

func (i *JQ) Execute(c *client.Client, opts ...client.InputOption) (string, error)

func (*JQ) SetInput

func (s *JQ) SetInput(ii intent.IntentInput) intent.IntentInput

type ScrapeWeb

type ScrapeWeb struct {
	// contains filtered or unexported fields
}

func Get

func Get() *ScrapeWeb

func NewWebGet

func NewWebGet(s string) *ScrapeWeb

func NewWebScraper

func NewWebScraper(s string) *ScrapeWeb

func Scrape

func Scrape() *ScrapeWeb

func (*ScrapeWeb) Execute

func (i *ScrapeWeb) Execute(c *client.Client, opts ...client.InputOption) (string, error)

func (*ScrapeWeb) SetInput

func (s *ScrapeWeb) SetInput(ii intent.IntentInput) intent.IntentInput

type StringIntent

type StringIntent string

func (StringIntent) Execute

func (s StringIntent) Execute(c *client.Client, opts ...client.InputOption) (string, error)

func (StringIntent) SetInput

type WebGet

type WebGet struct {
	// contains filtered or unexported fields
}

func (*WebGet) Execute

func (i *WebGet) Execute(c *client.Client, opts ...client.InputOption) (string, error)

func (*WebGet) SetInput

func (s *WebGet) SetInput(ii intent.IntentInput) intent.IntentInput

Jump to

Keyboard shortcuts

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