Metadata-Version: 2.5
Name: llama-index-tools-foxapis
Version: 0.1.0
Summary: LlamaIndex tool spec for FoxAPIs: company, person, funding, layoff and executive-change records.
Project-URL: Homepage, https://foxapis.com/docs
Project-URL: Repository, https://github.com/OsakaSaul/llama-index-tools-foxapis
License-Expression: MIT
License-File: LICENSE
Keywords: agents,company-data,due-diligence,foxapis,llama-index,tools
Requires-Python: >=3.9
Requires-Dist: llama-index-core>=0.12.0
Description-Content-Type: text/markdown

# llama-index-tools-foxapis

LlamaIndex tool spec for [FoxAPIs](https://foxapis.com/docs): sourced records on companies, people, funding, layoffs, executive changes and federal contracts.

LlamaIndex no longer takes new integration packages in its own repository, so this package is maintained here and published to PyPI on its own.

## Install

```
pip install llama-index-tools-foxapis
```

Get a key with free starting credits at https://foxapis.com/trial and set `FOXAPIS_API_KEY`. Each call spends credits; prices are at https://foxapis.com/pricing.

## Use

```python
from llama_index.tools.foxapis import FoxAPIsToolSpec
from llama_index.core.agent.workflow import FunctionAgent
from llama_index.llms.openai import OpenAI

tools = FoxAPIsToolSpec(api_key="YOUR_FOXAPIS_KEY").to_tool_list()
agent = FunctionAgent(tools=tools, llm=OpenAI(model="gpt-4.1"))
print(await agent.run("Which companies filed WARN layoff notices in California this month?"))
```

## Tools

| Tool | What it returns |
| --- | --- |
| `enrich_person` | Sourced identity and contact fields for a named person |
| `find_work_email` | Best work email at a company website, with verification status (charged only when found) |
| `company_snapshot` | Short sourced company snapshot for one decision (async job, polled for you) |
| `form_d_raises` | Recent SEC Form D private-placement raises |
| `layoffs` | US WARN-notice layoff records |
| `executive_changes` | Executive appointments and departures from Form 8-K Item 5.02 |
| `federal_contract_awards` | US federal contract awards with the official record link |

Each tool returns a list with one `Document` holding the JSON answer. API errors raise `FoxAPIsError`.

## Test

```
pip install -e . pytest
pytest tests
```

MIT licence.
