@jarcelao/pi-exa-api
v0.2.0
Published
Web search and content fetching for pi via the Exa API
Readme
pi-exa-api
Web search and content fetching for pi via the Exa API.
Installation
Install as a pi package:
pi install npm:@jarcelao/pi-exa-apiConfiguration
Set your Exa API key as an environment variable before starting pi:
export EXA_API_KEY="your-api-key-here"
piOr add to your shell profile (~/.bashrc, ~/.zshrc, etc.) for persistence.
Check Configuration
Run the /exa-status command in pi to verify your API key is configured:
/exa-statusUsage
Web Search
The agent can use exa_search to find information on the web:
Search for recent developments in quantum computingParameters:
query(required) - Natural language search querycontentType(optional) - Type of content to retrieve:highlights(default) - Key excerpts from each resulttext- Full text content (may be truncated)summary- AI-generated summarynone- Metadata only (title, URL, date, author)
numResults(optional) - Number of results (1-100, default: 10)
Fetch URL Content
The agent can use exa_fetch to extract content from a specific URL:
Fetch the content from https://example.com/articleParameters:
url(required) - URL to fetchcontentType(optional) - Type of content:text(default) - Full page texthighlights- Key excerptssummary- AI-generated summary
maxCharacters(optional) - Maximum characters to return (1000-100000)
Development
# Install dependencies
npm install
# Run tests
npm test
# Run linting
npm run lint
# Format code
npm run formatLicense
MIT
