Download the PHP package shipfastlabs/toolkit-exa without Composer

On this page you can find all versions of the php package shipfastlabs/toolkit-exa. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package toolkit-exa

shipfastlabs/toolkit-exa

Latest Version Total Downloads

Exa tools for the Laravel AI SDK - Search, Find Similar, Get Contents, and Answer

Part of the shipfastlabs/toolkit catalog of reusable AI tools for the Laravel AI SDK.

Installation

Usage

Register every Exa tool at once with the Exa helper:

Or add individual tools to an agent's tools():

Tools

ExaSearch

Search the web with Exa's embeddings-based search engine.

Parameter Type Required Description
query string yes The search query to look up on the web.
type string no "auto", "keyword", "neural", "fast", or "deep". Defaults to "auto".
num_results integer no Number of results to return (1-25). Defaults to 10.
category string no Focus a category, e.g. "research paper", "news", "github", "pdf".
include_domains string no Comma-separated domains to restrict results to.
exclude_domains string no Comma-separated domains to exclude from results.
include_text boolean no Whether to include each result's full page text. Defaults to true.

ExaFindSimilar

Find pages semantically similar to a given URL.

Parameter Type Required Description
url string yes The URL to find similar pages for.
num_results integer no Number of similar results to return (1-25). Defaults to 10.
include_domains string no Comma-separated domains to restrict results to.
exclude_domains string no Comma-separated domains to exclude from results.
include_text boolean no Whether to include each result's full page text. Defaults to true.

ExaGetContents

Retrieve clean, parsed contents from one or more URLs.

Parameter Type Required Description
urls string yes A single URL or comma-separated URLs (max 20) to fetch contents from.
text boolean no Whether to include the full page text. Defaults to true.
summary boolean no Whether to include an AI-generated summary of each page. Defaults to false.
highlights boolean no Whether to include relevant highlighted snippets. Defaults to false.
livecrawl string no "never", "fallback", "always", or "preferred". Defaults to "fallback".

ExaAnswer

Get a direct, sourced answer to a question with citations.

Parameter Type Required Description
query string yes The question to answer using web sources.
include_text boolean no Whether to include the full text of each cited source. Defaults to false.

Provider setup

All tools read their API credentials from Laravel's services config and their optional defaults from the ai config.

1. Add the Exa service to config/services.php

2. Add toolkit defaults to config/ai.php

3. Add environment variables to .env

Config key Env var Default Description
services.exa.key EXA_API_KEY - Required. Your Exa API key.
ai.toolkit.exa.search.num_results EXA_SEARCH_NUM_RESULTS 10 Default search results (1-25).
ai.toolkit.exa.search.type EXA_SEARCH_TYPE "auto" "auto", "keyword", "neural", "fast", or "deep".
ai.toolkit.exa.search.include_text EXA_SEARCH_INCLUDE_TEXT true Include full page text in search results.
ai.toolkit.exa.find_similar.num_results EXA_FIND_SIMILAR_NUM_RESULTS 10 Default similar results (1-25).
ai.toolkit.exa.find_similar.include_text EXA_FIND_SIMILAR_INCLUDE_TEXT true Include full page text in similar results.
ai.toolkit.exa.contents.text EXA_CONTENTS_TEXT true Include full page text in contents.
ai.toolkit.exa.contents.livecrawl EXA_CONTENTS_LIVECRAWL "fallback" "never", "fallback", "always", or "preferred".
ai.toolkit.exa.answer.include_text EXA_ANSWER_INCLUDE_TEXT false Include full text of cited sources.

Safety

Exa API

These tools use the Exa API. Exa offers a free tier to get started.

Full API reference:


All versions of toolkit-exa with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4.0
illuminate/contracts Version ^12.0|^13.0
illuminate/support Version ^12.0|^13.0
laravel/ai Version ^0.7
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package shipfastlabs/toolkit-exa contains the following files

Loading the files please wait ...