exa

package
v0.6.49 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2026 License: AGPL-3.0, Apache-2.0, MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultBaseURL = "https://api.exa.ai"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(conn Connection) (*Client, error)

func (*Client) FetchContents

func (c *Client) FetchContents(ctx context.Context, urls []string, maxCharacters int) (string, error)

func (*Client) Search

func (c *Client) Search(ctx context.Context, query string, numResults int) (string, error)

type Connection

type Connection struct {
	URL      string
	ApiKey   string
	ProxyURL string
}

func ResolveConnection

func ResolveConnection(raw string, scmCreds *console.ScmCredentialFragment) (Connection, bool)

type ConnectionConfig

type ConnectionConfig struct {
	URL      string `json:"url,omitempty"`
	ApiKey   string `json:"apiKey,omitempty"`
	ProxyURL string `json:"proxyUrl,omitempty"`
}

Jump to

Keyboard shortcuts

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