jina

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package jina is the Jina Reader backend for the web_fetch built-in tool: one GET per call with the target URL as the request path, answered as markdown text. It passes webtooltest's Fetcher contract.

Index

Constants

View Source
const DefaultBaseURL = "https://r.jina.ai"

DefaultBaseURL is Jina Reader's public endpoint. A deployment may point the adapter elsewhere (a proxy, a self-hosted reader) — never hard-code the public host in a caller.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client is a webtool.Fetcher backed by Jina Reader.

func New

func New(baseURL, key string) *Client

New returns a Client for baseURL (empty means DefaultBaseURL). An empty key sends no Authorization header — Jina's rate-limited free tier takes none.

func (*Client) Fetch

func (c *Client) Fetch(ctx context.Context, target string) (webtool.FetchResult, error)

Fetch reads one page through the reader. The target is model-supplied input, so it is validated before anything touches the network: absolute http(s) URLs only.

Jump to

Keyboard shortcuts

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