pair

package
v0.0.0-...-7b96089 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CritiquePromptTemplate

func CritiquePromptTemplate() chat.Prompt

CritiquePromptTemplate generates a critique of the AI_Agent's current state.

func NewCritiqueChain

func NewCritiqueChain(model chat.LanguageModel) chain.Chain

func NewNudgeChain

func NewNudgeChain(model chat.LanguageModel) chain.Chain

func NewPreemptChain

func NewPreemptChain(model chat.LanguageModel) chain.Chain

NewPreemptChain returns a new PreemptChain based on the provided language model.

func NudgeTaskPromptTemplate

func NudgeTaskPromptTemplate() chat.Prompt

NudgeTaskPromptTemplate generates a nudge to guide the AI_Agent's next steps.

func PreemptTaskPromptTemplate

func PreemptTaskPromptTemplate() chat.Prompt

PreemptTaskPromptTemplate assesses whether the AI_Agent has completed its current objective.

Types

type Agent

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

func NewAgent

func NewAgent(model chat.LanguageModel) *Agent

NewAgent returns a new Agent based on the provided language model.

func (*Agent) Run

func (a *Agent) Run()

Jump to

Keyboard shortcuts

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