docs: apply fleet-template (16-artifact scaffold)
Adds missing standard artifacts: - README.md (if missing) - AGENTS.md (AI agent contract) - PLAN.md (current sprint) - STATUS.md (where we are) - DEVELOPMENT.md (dev workflow) - DEPLOYMENT.md (deploy procedure) - TESTING.md (test strategy) - DECISIONS.md (ADR index + templates) - .github/CODEOWNERS - .github/workflows/ci.yml Preserves all existing artifacts. Refs: RugMunchMedia/fleet-template
This commit is contained in:
commit
e13bd4d774
203 changed files with 31140 additions and 0 deletions
23
backend/adapters/crewai.py
Normal file
23
backend/adapters/crewai.py
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
"""CrewAI Adapter — Use WalletPress tools in CrewAI agents."""
|
||||
from __future__ import annotations
|
||||
from crewai.tools import BaseTool
|
||||
|
||||
class WalletPressCrewTool(BaseTool):
|
||||
name: str = ""
|
||||
description: str = ""
|
||||
_fn = None
|
||||
|
||||
def __init__(self, name: str, description: str, fn):
|
||||
super().__init__(name=name, description=description)
|
||||
self._fn = fn
|
||||
|
||||
def _run(self, **kwargs) -> str:
|
||||
import json
|
||||
result = self._fn(**kwargs) if callable(self._fn) else {"error": "no fn"}
|
||||
return json.dumps(result, default=str)
|
||||
|
||||
|
||||
def get_tools() -> list[BaseTool]:
|
||||
from agent.mcp_server import mcp
|
||||
return [WalletPressCrewTool(name=t.name, description=t.description or t.name, fn=t.fn)
|
||||
for t in mcp._tool_manager.list_tools()]
|
||||
Loading…
Add table
Add a link
Reference in a new issue