Mirrored from https://github.com/Camo67/OCIU-npo.git
Synced Nov 21, 07:15 UTC
fix/ociu-hero-navigation-20261109
| 1 | from backend.agents.base import BaseAgent |
| 2 | from backend.services.model_router import TaskComplexity |
| 3 | |
| 4 | class DonorBuddyAgent(BaseAgent): |
| 5 | def __init__(self): |
| 6 | super().__init__("DonorBuddy", TaskComplexity.MID) |
| 7 | |
| 8 | async def run(self, need: str) -> dict: |
| 9 | prompt = f"Find ethical donor prospects and CSR programs for: {need}. Generate a professional outreach proposal." |
| 10 | result = await self.generate_response(prompt) |
| 11 | |
| 12 | self.log_to_vault(f"donor_prospects_{hash(need) % 10000}", result) |
| 13 | |
| 14 | return {"output": result, "model_used": self.get_model()} |
| 15 | |
| 16 | donor_buddy_agent = DonorBuddyAgent() |