MCPcopy Create free account

hub / github.com/anxuanzi/bua / types & classes

Types & classes95 in github.com/anxuanzi/bua

StructADKTabInfo
ADKTabInfo represents information about a browser tab.
agent/adk_tools.go:293
StructAgent
Agent is the main interface for browser automation with LLM.
bua.go:14
StructAgentConfig
AgentConfig configures the browser agent.
agent/agent.go:56
StructAgentHistory
AgentHistory manages the execution history of an agent.
agent/history.go:25
StructAnnotatedOptions
AnnotatedOptions extends Options with annotation settings.
screenshot/screenshot.go:477
StructAnnotationConfig
AnnotationConfig configures how annotations are drawn.
screenshot/annotate.go:15
StructBoundingBox
BoundingBox represents an element's position and size on the page.
dom/element.go:6
InterfaceBoundingBoxInfo
BoundingBoxInfo provides bounding box data for annotation.
screenshot/screenshot.go:20
InterfaceBoundingBoxInfoInterface
BoundingBoxInfoInterface defines the interface for bounding box info. This matches the screenshot.BoundingBoxInfo interface.
dom/element.go:205
StructBrowser
Browser wraps rod.Browser with enhanced functionality.
browser/browser.go:72
StructBrowserAgent
BrowserAgent is the main agent that controls browser automation via LLM using ADK.
agent/agent.go:21
StructBrowserToolkit
BrowserToolkit holds browser context for tool execution.
agent/adk_tools.go:13
StructClearAndTypeArgs
ClearAndTypeArgs is the input for the clear_and_type tool.
agent/adk_tools.go:83
StructClearAndTypeResult
ClearAndTypeResult is the output for the clear_and_type tool.
agent/adk_tools.go:90
StructClickArgs
ClickArgs is the input for the click tool.
agent/adk_tools.go:58
StructClickResult
ClickResult is the output for the click tool.
agent/adk_tools.go:64
StructCloseTabArgs
CloseTabArgs is the input for the close_tab tool.
agent/adk_tools.go:278
StructCloseTabResult
CloseTabResult is the output for the close_tab tool.
agent/adk_tools.go:284
StructConfig
Config holds agent configuration.
config.go:40
StructConfig
Config holds browser configuration.
browser/browser.go:19
StructConfig
Config holds test runner configuration.
tests/e2e/run_tests.go:50
StructContextualAgent
ContextualAgent wraps Agent with a context for convenience methods.
bua.go:288
StructDoneArgs
DoneArgs is the input for the done tool.
agent/adk_tools.go:321
StructDoneResult
DoneResult is the output for the done tool.
agent/adk_tools.go:328
StructDoubleClickArgs
DoubleClickArgs is the input for the double_click tool.
agent/adk_tools.go:156
StructDoubleClickResult
DoubleClickResult is the output for the double_click tool.
agent/adk_tools.go:162
StructElement
Element represents an interactive page element.
dom/element.go:44
InterfaceElementInfo
ElementInfo provides element data needed for annotation.
screenshot/screenshot.go:29
InterfaceElementInfoInterface
ElementInfoInterface defines the interface for element info used in screenshot annotations. This matches the screenshot.ElementInfo interface.
dom/element.go:194
StructElementMap
ElementMap holds all interactive elements on a page.
dom/element.go:142
StructElementMapAdapter
ElementMapAdapter adapts dom.ElementMap to screenshot.ElementMapInterface.
browser/page.go:660
InterfaceElementMapInterface
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
StructEvaluateJSArgs
EvaluateJSArgs is the input for the evaluate_js tool.
agent/adk_tools.go:228
StructEvaluateJSResult
EvaluateJSResult is the output for the evaluate_js tool.
agent/adk_tools.go:234
StructExpectations
Expectations defines what to validate after task completion.
tests/e2e/run_tests.go:32
StructExtractContentArgs
ExtractContentArgs is the input for the extract_content tool.
agent/adk_tools.go:203
StructExtractContentResult
ExtractContentResult is the output for the extract_content tool.
agent/adk_tools.go:208
StructExtractor
Extractor handles DOM element extraction from a page.
dom/extract.go:153
StructFocusArgs
FocusArgs is the input for the focus tool.
agent/adk_tools.go:168
StructFocusResult
FocusResult is the output for the focus tool.
agent/adk_tools.go:174
StructGetPageStateArgs
GetPageStateArgs is the input for the get_page_state tool (no args needed).
agent/adk_tools.go:308
StructGetPageStateResult
GetPageStateResult is the output for the get_page_state tool.
agent/adk_tools.go:311
StructGoBackArgs
GoBackArgs is the input for the go_back tool.
agent/adk_tools.go:122
StructGoBackResult
GoBackResult is the output for the go_back tool.
agent/adk_tools.go:127
StructGoForwardArgs
GoForwardArgs is the input for the go_forward tool.
agent/adk_tools.go:133
StructGoForwardResult
GoForwardResult is the output for the go_forward tool.
agent/adk_tools.go:138
StructHistoryItem
HistoryItem represents a single step in the agent's execution history.
agent/history.go:10
StructHoverArgs
HoverArgs is the input for the hover tool.
agent/adk_tools.go:144
StructHoverResult
HoverResult is the output for the hover tool.
agent/adk_tools.go:150
StructListTabsArgs
ListTabsArgs is the input for the list_tabs tool (no args needed).
agent/adk_tools.go:290
StructListTabsResult
ListTabsResult is the output for the list_tabs tool.
agent/adk_tools.go:301
StructMessageManager
MessageManager handles conversation state and message construction for the LLM.
agent/message.go:12
StructMessageManagerConfig
MessageManagerConfig configures the message manager.
agent/message.go:21
StructNavigateArgs
---- Tool Argument Structs (ADK format with json + jsonschema tags) ---- NavigateArgs is the input for the navigate tool.
agent/adk_tools.go:45
StructNavigateResult
NavigateResult is the output for the navigate tool.
agent/adk_tools.go:51
StructNewTabArgs
NewTabArgs is the input for the new_tab tool.
agent/adk_tools.go:253
StructNewTabResult
NewTabResult is the output for the new_tab tool.
agent/adk_tools.go:259
StructOptions
Options configures screenshot capture.
screenshot/screenshot.go:52
StructPageInfo
GetPageInfo returns information about the current page state.
screenshot/screenshot.go:336
TypeAliasPreset
Preset defines token/quality tradeoffs for different use cases.
config.go:9
StructReloadArgs
ReloadArgs is the input for the reload tool.
agent/adk_tools.go:180
StructReloadResult
ReloadResult is the output for the reload tool.
agent/adk_tools.go:185
StructResult
Result represents the outcome of a task execution.
result.go:6
StructResult
Result represents the outcome of an agent run.
agent/agent.go:71
StructScreenshotArgs
ScreenshotArgs is the input for the screenshot tool.
agent/adk_tools.go:215
StructScreenshotResult
ScreenshotResult is the output for the screenshot tool.
agent/adk_tools.go:221
StructScrollArgs
ScrollArgs is the input for the scroll tool.
agent/adk_tools.go:96
StructScrollResult
ScrollResult is the output for the scroll tool.
agent/adk_tools.go:104
StructScrollToElementArgs
ScrollToElementArgs is the input for the scroll_to_element tool.
agent/adk_tools.go:191
StructScrollToElementResult
ScrollToElementResult is the output for the scroll_to_element tool.
agent/adk_tools.go:197
StructSendKeysArgs
SendKeysArgs is the input for the send_keys tool.
agent/adk_tools.go:110
StructSendKeysResult
SendKeysResult is the output for the send_keys tool.
agent/adk_tools.go:116
StructSensitiveDataFilter
SensitiveDataFilter filters sensitive data from messages.
agent/message.go:181
StructSerializeOptions
SerializeOptions configures how elements are serialized.
dom/serialize.go:10
StructStealthConfig
StealthConfig configures anti-detection measures.
browser/stealth.go:14
StructStep
Step represents a single action in the execution sequence.
result.go:31
StructStep
Step represents a single step in the agent's execution.
agent/agent.go:40
StructSwitchTabArgs
SwitchTabArgs is the input for the switch_tab tool.
agent/adk_tools.go:266
StructSwitchTabResult
SwitchTabResult is the output for the switch_tab tool.
agent/adk_tools.go:272
StructTabInfo
TabInfo contains information about a browser tab.
bua.go:275
StructTabInfo
TabInfo contains information about an open tab.
browser/browser.go:64
StructTestCase
TestCase represents a single test definition.
tests/e2e/run_tests.go:22
StructTestResult
TestResult holds the outcome of a single test.
tests/e2e/run_tests.go:41
StructTestSuite
TestSuite represents a collection of tests from a YAML file.
tests/e2e/run_tests.go:17
StructTokenBudget
TokenBudget helps manage token allocation across message components.
agent/token.go:113
StructTokenCounter
TokenCounter provides token estimation for text content. This is a simple approximation - actual token counts depend on the specific tokenizer.
agent/token.go:10
StructTypeTextArgs
TypeTextArgs is the input for the type_text tool.
agent/adk_tools.go:70
StructTypeTextResult
TypeTextResult is the output for the type_text tool.
agent/adk_tools.go:77
StructViewport
Viewport defines browser viewport dimensions.
config.go:29
StructWaitArgs
WaitArgs is the input for the wait tool.
agent/adk_tools.go:241
StructWaitResult
WaitResult is the output for the wait tool.
agent/adk_tools.go:247
StructelementInfoAdapter
elementInfoAdapter adapts dom.Element to screenshot.ElementInfo.
browser/page.go:691
StructextractionResult
extractionResult is the structure returned by the extraction JavaScript.
dom/extract.go:146
StructjsonMap
dom/serialize.go:187
StructpresetConfig
presetConfig defines the configuration for each preset.
config.go:111