mirror of
https://github.com/RightNow-AI/openfang.git
synced 2026-07-30 06:32:17 +00:00
Add a Python-based code review agent powered by LangChain that integrates with OpenFang via the A2A (Agent-to-Agent) protocol. - agent.py: Core review logic with structured Chinese SYSTEM_PROMPT covering 6 dimensions (correctness, security, performance, maintainability, testing, style) and 4 severity levels - server.py: FastAPI server exposing A2A-compatible endpoints (/.well-known/agent.json and /a2a JSON-RPC) - workflow.json: OpenFang workflow definition for the review pipeline - config.example.toml: Example A2A config for ~/.openfang/config.toml - Supports OpenAI, DeepSeek, and Ollama backends Made-with: Cursor
11 lines
229 B
TOML
11 lines
229 B
TOML
# Add this section to your ~/.openfang/config.toml
|
|
# to register the LangChain code review agent.
|
|
|
|
[a2a]
|
|
enabled = true
|
|
listen_path = "/a2a"
|
|
|
|
[[a2a.external_agents]]
|
|
name = "langchain-code-reviewer"
|
|
url = "http://127.0.0.1:9100"
|