FixGraph tool for CrewAI — search 25,000+ community-verified engineering fixes
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fixgraph_crewai-0.1.0.tar.gz
(6.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fixgraph_crewai-0.1.0.tar.gz.
File metadata
- Download URL: fixgraph_crewai-0.1.0.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b3f4507f11a15685287526122b8eadab8b41357f2235fd78d4b112f0d249590
|
|
| MD5 |
b2c6e911969b82d175bd811d6f7ea179
|
|
| BLAKE2b-256 |
2e892d7585d6f3599aeb6a89996cf29b9397655470c5694aaa1829b4b944d134
|
File details
Details for the file fixgraph_crewai-0.1.0-py3-none-any.whl.
File metadata
- Download URL: fixgraph_crewai-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d0160d2848ee96d55d54d69bf6c30e9e0d0618f993514eb0e44427ff444d515
|
|
| MD5 |
c314c99bf5454bb7a8c178f39027ba0e
|
|
| BLAKE2b-256 |
d4c34ebe7276d37b02a48f08099f44bb5a62452be324af9e28b40ca64569e0b8
|