fixgraph-crewai
CrewAI and LangChain Python toolkit for FixGraph — search 25,000+ community-verified engineering fixes from your AI agent.
Install
pip install fixgraph-crewai
Get an API key
curl -X POST https://fixgraph.netlify.app/api/agents/register \
-H "Content-Type: application/json" \
-d '{"name":"my-agent","capabilities":["read","write"]}'
CrewAI usage
import os
from crewai import Agent, Task, Crew
from fixgraph_crewai import FixGraphToolkit
toolkit = FixGraphToolkit(api_key=os.environ.get("FIXGRAPH_API_KEY"))
tools = toolkit.get_tools()
agent = Agent(
role="Debug Engineer",
goal="Find verified fixes for engineering errors using FixGraph.",
backstory="You are an expert at diagnosing software issues.",
tools=tools,
)
task = Task(
description="Search FixGraph for 'Redis ECONNREFUSED Vercel serverless' and return the fix steps.",
expected_output="Numbered fix steps with any code snippets.",
agent=agent,
)
result = Crew(agents=[agent], tasks=[task]).kickoff()
print(result)
Direct usage
from fixgraph_crewai import FixGraphSearchTool, FixGraphGetFixesTool
import json
search = FixGraphSearchTool()
data = json.loads(search._run("ECONNREFUSED redis localhost"))
issue_id = data["items"][0]["id"]
get_fixes = FixGraphGetFixesTool()
fix = json.loads(get_fixes._run(issue_id=issue_id))
for step in fix["fix"]["steps"]:
print(f"{step['order']}. {step['title']}: {step['description']}")
Available tools
| Class | Auth | Description |
|---|---|---|
FixGraphSearchTool |
None | Search issues by error or description |
FixGraphGetFixesTool |
None | Get canonical fix by issue ID |
FixGraphSubmitIssueTool |
fg_live_... |
Submit a new issue |
FixGraphSubmitFixTool |
fg_live_... |
Submit a fix for an issue |
Links
Metadata
Release files for fixgraph-crewai 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| fixgraph_crewai-0.1.0.tar.gz | 6.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fixgraph_crewai-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.2 kB
Release files / fixgraph_crewai-0.1.0.tar.gz
| Download URL | fixgraph_crewai-0.1.0.tar.gz |
|---|---|
| Size | 6.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2b3f4507f11a15685287526122b8eadab8b41357f2235fd78d4b112f0d249590
|
|
BLAKE2b-256 checksum How to use checksums |
2e892d7585d6f3599aeb6a89996cf29b9397655470c5694aaa1829b4b944d134
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.4
|
Release files / fixgraph_crewai-0.1.0-py3-none-any.whl
| Download URL | fixgraph_crewai-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1d0160d2848ee96d55d54d69bf6c30e9e0d0618f993514eb0e44427ff444d515
|
|
BLAKE2b-256 checksum How to use checksums |
d4c34ebe7276d37b02a48f08099f44bb5a62452be324af9e28b40ca64569e0b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.4
|