Tool - Browseruse

BrowserUse Tool

A BrowserUse Tool implementation for Eino that implements the Tool interface. This enables seamless integration with Eino’s LLM capabilities for enhanced natural language processing and generation.

Note: This implementation is inspired by and references the OpenManus project.

Features

  • Implements github.com/cloudwego/eino/components/tool.BaseTool
  • Easy integration with Eino’s tool system
  • Supports executing browser actions

Installation

go get github.com/cloudwego/eino-ext/components/tool/browseruse@latest

Quick Start

package main

import (
    "context"
    "fmt"
    "log"
    "time"

    "github.com/cloudwego/eino-ext/components/tool/browseruse"
)

func main() {
    ctx := context.Background()
    but, err := browseruse.NewBrowserUseTool(ctx, &browseruse.Config{})
    if err != nil { log.Fatal(err) }

    url := "https://www.google.com"
    result, err := but.Execute(&browseruse.Param{ Action: browseruse.ActionGoToURL, URL: &url })
    if err != nil { log.Fatal(err) }
    fmt.Println(result)
    time.Sleep(10 * time.Second)
    but.Cleanup()
}

For More Details