Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anxuanzi/bua
/ types & classes
Types & classes
95 in github.com/anxuanzi/bua
⨍
Functions
249
◇
Types & classes
95
Struct
ADKTabInfo
ADKTabInfo represents information about a browser tab.
agent/adk_tools.go:293
Struct
Agent
Agent is the main interface for browser automation with LLM.
bua.go:14
Struct
AgentConfig
AgentConfig configures the browser agent.
agent/agent.go:56
Struct
AgentHistory
AgentHistory manages the execution history of an agent.
agent/history.go:25
Struct
AnnotatedOptions
AnnotatedOptions extends Options with annotation settings.
screenshot/screenshot.go:477
Struct
AnnotationConfig
AnnotationConfig configures how annotations are drawn.
screenshot/annotate.go:15
Struct
BoundingBox
BoundingBox represents an element's position and size on the page.
dom/element.go:6
Interface
BoundingBoxInfo
BoundingBoxInfo provides bounding box data for annotation.
screenshot/screenshot.go:20
Interface
BoundingBoxInfoInterface
BoundingBoxInfoInterface defines the interface for bounding box info. This matches the screenshot.BoundingBoxInfo interface.
dom/element.go:205
Struct
Browser
Browser wraps rod.Browser with enhanced functionality.
browser/browser.go:72
Struct
BrowserAgent
BrowserAgent is the main agent that controls browser automation via LLM using ADK.
agent/agent.go:21
Struct
BrowserToolkit
BrowserToolkit holds browser context for tool execution.
agent/adk_tools.go:13
Struct
ClearAndTypeArgs
ClearAndTypeArgs is the input for the clear_and_type tool.
agent/adk_tools.go:83
Struct
ClearAndTypeResult
ClearAndTypeResult is the output for the clear_and_type tool.
agent/adk_tools.go:90
Struct
ClickArgs
ClickArgs is the input for the click tool.
agent/adk_tools.go:58
Struct
ClickResult
ClickResult is the output for the click tool.
agent/adk_tools.go:64
Struct
CloseTabArgs
CloseTabArgs is the input for the close_tab tool.
agent/adk_tools.go:278
Struct
CloseTabResult
CloseTabResult is the output for the close_tab tool.
agent/adk_tools.go:284
Struct
Config
Config holds agent configuration.
config.go:40
Struct
Config
Config holds browser configuration.
browser/browser.go:19
Struct
Config
Config holds test runner configuration.
tests/e2e/run_tests.go:50
Struct
ContextualAgent
ContextualAgent wraps Agent with a context for convenience methods.
bua.go:288
Struct
DoneArgs
DoneArgs is the input for the done tool.
agent/adk_tools.go:321
Struct
DoneResult
DoneResult is the output for the done tool.
agent/adk_tools.go:328
Struct
DoubleClickArgs
DoubleClickArgs is the input for the double_click tool.
agent/adk_tools.go:156
Struct
DoubleClickResult
DoubleClickResult is the output for the double_click tool.
agent/adk_tools.go:162
Struct
Element
Element represents an interactive page element.
dom/element.go:44
Interface
ElementInfo
ElementInfo provides element data needed for annotation.
screenshot/screenshot.go:29
Interface
ElementInfoInterface
ElementInfoInterface defines the interface for element info used in screenshot annotations. This matches the screenshot.ElementInfo interface.
dom/element.go:194
Struct
ElementMap
ElementMap holds all interactive elements on a page.
dom/element.go:142
Struct
ElementMapAdapter
ElementMapAdapter adapts dom.ElementMap to screenshot.ElementMapInterface.
browser/page.go:660
Interface
ElementMapInterface
ElementMapInterface defines the interface for element maps used in annotations. This allows the screenshot package to work with element maps without c
screenshot/screenshot.go:40
Struct
EvaluateJSArgs
EvaluateJSArgs is the input for the evaluate_js tool.
agent/adk_tools.go:228
Struct
EvaluateJSResult
EvaluateJSResult is the output for the evaluate_js tool.
agent/adk_tools.go:234
Struct
Expectations
Expectations defines what to validate after task completion.
tests/e2e/run_tests.go:32
Struct
ExtractContentArgs
ExtractContentArgs is the input for the extract_content tool.
agent/adk_tools.go:203
Struct
ExtractContentResult
ExtractContentResult is the output for the extract_content tool.
agent/adk_tools.go:208
Struct
Extractor
Extractor handles DOM element extraction from a page.
dom/extract.go:153
Struct
FocusArgs
FocusArgs is the input for the focus tool.
agent/adk_tools.go:168
Struct
FocusResult
FocusResult is the output for the focus tool.
agent/adk_tools.go:174
Struct
GetPageStateArgs
GetPageStateArgs is the input for the get_page_state tool (no args needed).
agent/adk_tools.go:308
Struct
GetPageStateResult
GetPageStateResult is the output for the get_page_state tool.
agent/adk_tools.go:311
Struct
GoBackArgs
GoBackArgs is the input for the go_back tool.
agent/adk_tools.go:122
Struct
GoBackResult
GoBackResult is the output for the go_back tool.
agent/adk_tools.go:127
Struct
GoForwardArgs
GoForwardArgs is the input for the go_forward tool.
agent/adk_tools.go:133
Struct
GoForwardResult
GoForwardResult is the output for the go_forward tool.
agent/adk_tools.go:138
Struct
HistoryItem
HistoryItem represents a single step in the agent's execution history.
agent/history.go:10
Struct
HoverArgs
HoverArgs is the input for the hover tool.
agent/adk_tools.go:144
Struct
HoverResult
HoverResult is the output for the hover tool.
agent/adk_tools.go:150
Struct
ListTabsArgs
ListTabsArgs is the input for the list_tabs tool (no args needed).
agent/adk_tools.go:290
Struct
ListTabsResult
ListTabsResult is the output for the list_tabs tool.
agent/adk_tools.go:301
Struct
MessageManager
MessageManager handles conversation state and message construction for the LLM.
agent/message.go:12
Struct
MessageManagerConfig
MessageManagerConfig configures the message manager.
agent/message.go:21
Struct
NavigateArgs
---- Tool Argument Structs (ADK format with json + jsonschema tags) ---- NavigateArgs is the input for the navigate tool.
agent/adk_tools.go:45
Struct
NavigateResult
NavigateResult is the output for the navigate tool.
agent/adk_tools.go:51
Struct
NewTabArgs
NewTabArgs is the input for the new_tab tool.
agent/adk_tools.go:253
Struct
NewTabResult
NewTabResult is the output for the new_tab tool.
agent/adk_tools.go:259
Struct
Options
Options configures screenshot capture.
screenshot/screenshot.go:52
Struct
PageInfo
GetPageInfo returns information about the current page state.
screenshot/screenshot.go:336
TypeAlias
Preset
Preset defines token/quality tradeoffs for different use cases.
config.go:9
Struct
ReloadArgs
ReloadArgs is the input for the reload tool.
agent/adk_tools.go:180
Struct
ReloadResult
ReloadResult is the output for the reload tool.
agent/adk_tools.go:185
Struct
Result
Result represents the outcome of a task execution.
result.go:6
Struct
Result
Result represents the outcome of an agent run.
agent/agent.go:71
Struct
ScreenshotArgs
ScreenshotArgs is the input for the screenshot tool.
agent/adk_tools.go:215
Struct
ScreenshotResult
ScreenshotResult is the output for the screenshot tool.
agent/adk_tools.go:221
Struct
ScrollArgs
ScrollArgs is the input for the scroll tool.
agent/adk_tools.go:96
Struct
ScrollResult
ScrollResult is the output for the scroll tool.
agent/adk_tools.go:104
Struct
ScrollToElementArgs
ScrollToElementArgs is the input for the scroll_to_element tool.
agent/adk_tools.go:191
Struct
ScrollToElementResult
ScrollToElementResult is the output for the scroll_to_element tool.
agent/adk_tools.go:197
Struct
SendKeysArgs
SendKeysArgs is the input for the send_keys tool.
agent/adk_tools.go:110
Struct
SendKeysResult
SendKeysResult is the output for the send_keys tool.
agent/adk_tools.go:116
Struct
SensitiveDataFilter
SensitiveDataFilter filters sensitive data from messages.
agent/message.go:181
Struct
SerializeOptions
SerializeOptions configures how elements are serialized.
dom/serialize.go:10
Struct
StealthConfig
StealthConfig configures anti-detection measures.
browser/stealth.go:14
Struct
Step
Step represents a single action in the execution sequence.
result.go:31
Struct
Step
Step represents a single step in the agent's execution.
agent/agent.go:40
Struct
SwitchTabArgs
SwitchTabArgs is the input for the switch_tab tool.
agent/adk_tools.go:266
Struct
SwitchTabResult
SwitchTabResult is the output for the switch_tab tool.
agent/adk_tools.go:272
Struct
TabInfo
TabInfo contains information about a browser tab.
bua.go:275
Struct
TabInfo
TabInfo contains information about an open tab.
browser/browser.go:64
Struct
TestCase
TestCase represents a single test definition.
tests/e2e/run_tests.go:22
Struct
TestResult
TestResult holds the outcome of a single test.
tests/e2e/run_tests.go:41
Struct
TestSuite
TestSuite represents a collection of tests from a YAML file.
tests/e2e/run_tests.go:17
Struct
TokenBudget
TokenBudget helps manage token allocation across message components.
agent/token.go:113
Struct
TokenCounter
TokenCounter provides token estimation for text content. This is a simple approximation - actual token counts depend on the specific tokenizer.
agent/token.go:10
Struct
TypeTextArgs
TypeTextArgs is the input for the type_text tool.
agent/adk_tools.go:70
Struct
TypeTextResult
TypeTextResult is the output for the type_text tool.
agent/adk_tools.go:77
Struct
Viewport
Viewport defines browser viewport dimensions.
config.go:29
Struct
WaitArgs
WaitArgs is the input for the wait tool.
agent/adk_tools.go:241
Struct
WaitResult
WaitResult is the output for the wait tool.
agent/adk_tools.go:247
Struct
elementInfoAdapter
elementInfoAdapter adapts dom.Element to screenshot.ElementInfo.
browser/page.go:691
Struct
extractionResult
extractionResult is the structure returned by the extraction JavaScript.
dom/extract.go:146
Struct
jsonMap
dom/serialize.go:187
Struct
presetConfig
presetConfig defines the configuration for each preset.
config.go:111