Skip to main content

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fixgraph_crewai-0.1.0-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

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

Hashes for fixgraph_crewai-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2b3f4507f11a15685287526122b8eadab8b41357f2235fd78d4b112f0d249590
MD5 b2c6e911969b82d175bd811d6f7ea179
BLAKE2b-256 2e892d7585d6f3599aeb6a89996cf29b9397655470c5694aaa1829b4b944d134

See more details on using hashes here.

File details

Details for the file fixgraph_crewai-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for fixgraph_crewai-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1d0160d2848ee96d55d54d69bf6c30e9e0d0618f993514eb0e44427ff444d515
MD5 c314c99bf5454bb7a8c178f39027ba0e
BLAKE2b-256 d4c34ebe7276d37b02a48f08099f44bb5a62452be324af9e28b40ca64569e0b8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page