web

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package web provides a compiled skill for web content extraction and analysis.

Index

Constants

View Source
const (
	// SkillName is the name of the web skill.
	SkillName = "web"

	// DefaultTimeout is the default HTTP timeout.
	DefaultTimeout = 30 * time.Second

	// DefaultMaxSize is the default maximum response size (5MB).
	DefaultMaxSize = 5 * 1024 * 1024

	// DefaultUserAgent is the default user agent string.
	DefaultUserAgent = "OmniAgent/1.0 (Web Skill)"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Timeout is the HTTP request timeout.
	Timeout time.Duration

	// MaxSize is the maximum response size in bytes.
	MaxSize int64

	// UserAgent is the user agent string for requests.
	UserAgent string
}

Config configures the web skill.

type Skill

type Skill struct {
	// contains filtered or unexported fields
}

Skill implements compiled.Skill for web content operations.

func NewSkill

func NewSkill(cfg Config) *Skill

NewSkill creates a new web skill.

func (*Skill) Close

func (s *Skill) Close() error

Close implements compiled.Skill.

func (*Skill) Description

func (s *Skill) Description() string

Description implements compiled.Skill.

func (*Skill) Init

func (s *Skill) Init(ctx context.Context) error

Init implements compiled.Skill.

func (*Skill) Name

func (s *Skill) Name() string

Name implements compiled.Skill.

func (*Skill) Tools

func (s *Skill) Tools() []skill.Tool

Tools implements compiled.Skill.

Jump to

Keyboard shortcuts

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