Metadata-Version: 2.5
Name: llama-index-tools-stackresolve
Version: 0.1.0
Summary: LlamaIndex tools for StackResolve: find, compare, and audit software for AI agents, plus structured company research.
Project-URL: Homepage, https://stackresolve.dev
Project-URL: Repository, https://github.com/autorevai/stackresolve
Author: StackResolve
License: MIT
License-File: LICENSE
Keywords: agent-tools,agentready,ai-agents,llama-index,llamaindex,mcp,stackresolve
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.9
Requires-Dist: llama-index-core>=0.11.0
Requires-Dist: stackresolve>=0.1.0
Provides-Extra: test
Requires-Dist: pytest>=7.0; extra == 'test'
Description-Content-Type: text/markdown

# llama-index-tools-stackresolve

LlamaIndex tools for [StackResolve](https://stackresolve.dev): web intelligence for AI agents.

Choose software for a task, compare vendors, audit agent-readiness, and pull structured
company facts. One tool call instead of a search-and-scrape loop.

```bash
pip install llama-index-tools-stackresolve
```

## Quickstart

```python
from llama_index.tools.stackresolve import StackResolveToolSpec
from llama_index.core.agent.workflow import FunctionAgent
from llama_index.llms.anthropic import Anthropic

agent = FunctionAgent(
    tools=StackResolveToolSpec().to_tool_list(),
    llm=Anthropic(model="claude-sonnet-5"),
)

print(await agent.run("I need to scrape javascript-heavy sites. What should I use, and what does it cost?"))
```

## Tools

`find_tools`, `search_tools`, `compare_products`, `audit`, `get_company`, `get_pricing`,
`find_competitors`, `research_company`.

All of them work without a key, subject to an anonymous rate limit. A free key from
[stackresolve.dev/developers](https://stackresolve.dev/developers) raises it, passed to
the spec or set as `STACKRESOLVE_API_KEY`.

```python
StackResolveToolSpec(api_key="ar_...")
```

## Behavior worth knowing

Tools return readable text on failure rather than raising, so a timeout or an exhausted
allowance does not end the agent's run. Output is capped at 6,000 characters and stays
valid JSON when truncated.

## Also available

Hosted MCP server: `https://mcp.stackresolve.dev/mcp`. LangChain: `pip install
langchain-stackresolve`. CrewAI: `pip install crewai-stackresolve`. TypeScript: `npm
install stackresolve`.

## License

MIT
