browser

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Tools

func Tools(browserSession *browser.Session, supportedActions *controller.ActionModel) string

Types

type AgentThought

type AgentThought struct {
	EvaluationPreviousGoal string `json:"evaluation_previous_goal"`
	Memory                 string `json:"memory"`
	NextGoal               string `json:"next_goal"`
}

Current state of the agent

type Browser

type Browser struct {
	BrowserSession *browser.Session
	tool.Tool
	// contains filtered or unexported fields
}

func (*Browser) DoAction

func (b *Browser) DoAction(ctx context.Context, args string) (string, error)

func (*Browser) GetCurrentState

func (b *Browser) GetCurrentState(ctx context.Context, args string) string

type ToolParams

type ToolParams struct {
	Thought *AgentThought          `json:"thought"`
	Actions []*controller.ActModel `json:"actions" jsonschema:"minItems=1"` // List of actions to execute
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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