Documentation
¶
Overview ¶
Copyright © 2024 NAME HERE <EMAIL ADDRESS>
Index ¶
- func LoadScript(filename string) string
- func NewTextAnimator(input io.Reader, output io.Writer) *textAnimator
- type TutorialAgent
- func (wa *TutorialAgent) BlackboardHandler(w http.ResponseWriter, r *http.Request)
- func (wa *TutorialAgent) IndexHandler(w http.ResponseWriter, r *http.Request)
- func (wa *TutorialAgent) JSHandler(w http.ResponseWriter, r *http.Request)
- func (wa *TutorialAgent) ListenAndServe(addr string) error
- func (wa *TutorialAgent) Log(sev core.Log_Severity, msg string) error
- func (wa *TutorialAgent) LoggingMiddleware(next http.Handler) http.HandlerFunc
- func (wa *TutorialAgent) Loop(ctx context.Context) (bool, error)
- func (wa *TutorialAgent) Setup() error
- type TutorialState
- type WebState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadScript ¶
Types ¶
type TutorialAgent ¶
type TutorialAgent struct { *TutorialState client.CoreAgent *sync.WaitGroup // contains filtered or unexported fields }
func NewTutorialAgent ¶
func NewTutorialAgent(bb_addr string) *TutorialAgent
func (*TutorialAgent) BlackboardHandler ¶
func (wa *TutorialAgent) BlackboardHandler(w http.ResponseWriter, r *http.Request)
func (*TutorialAgent) IndexHandler ¶
func (wa *TutorialAgent) IndexHandler(w http.ResponseWriter, r *http.Request)
func (*TutorialAgent) JSHandler ¶
func (wa *TutorialAgent) JSHandler(w http.ResponseWriter, r *http.Request)
func (*TutorialAgent) ListenAndServe ¶
func (wa *TutorialAgent) ListenAndServe(addr string) error
func (*TutorialAgent) Log ¶
func (wa *TutorialAgent) Log(sev core.Log_Severity, msg string) error
func (*TutorialAgent) LoggingMiddleware ¶
func (wa *TutorialAgent) LoggingMiddleware(next http.Handler) http.HandlerFunc
This page functions more like a web app using JS to interact with the new blackboard that is created when visiting this page.
Thought: agent design should almost always be "fire and forget". Transactional agents are ineffective and slow. Streaming agents utilize the system to the fullest effect. Get the middle-agent out of the way.
The web interface
func (*TutorialAgent) Setup ¶
func (wa *TutorialAgent) Setup() error
Fulfill the managed interface Always serve the tutorial on localhost? Blackboard does not necessarily have to be on localhost
type TutorialState ¶
func NewTutorialState ¶
func NewTutorialState() *TutorialState
func (*TutorialState) DoItForMe ¶
func (t *TutorialState) DoItForMe() error
func (*TutorialState) MarshalJSON ¶
func (t *TutorialState) MarshalJSON() ([]byte, error)
func (*TutorialState) Next ¶
func (t *TutorialState) Next() error
func (*TutorialState) Prev ¶
func (t *TutorialState) Prev() error
Click to show internal directories.
Click to hide internal directories.