Spaces:
Configuration error
Configuration error
| from magentic import Agent, prompt | |
| from tools import ImageCaptioning, WebSearch, GoogleSheets | |
| class ResearchAgent(Agent): | |
| def __init__(self, name: str, description: str): | |
| super().__init__(name=name, description=description) | |
| self.tools = { | |
| "image_caption": ImageCaptioning(), | |
| "web_search": WebSearch(), | |
| "sheets": GoogleSheets() | |
| } | |
| async def process_image(self, image): | |
| """Obdelava slike z uporabo magentic-one promptov""" | |
| return await self.tools["image_caption"].analyze(image) | |
| class UnderwritingAgent(Agent): | |
| def __init__(self, name: str, description: str): | |
| super().__init__(name=name, description=description) | |
| async def assess_risk(self, data): | |
| """Ocena tveganja z uporabo magentic-one promptov""" | |
| # Implementacija ocene tveganja | |
| pass | |
| # Podobno implementirajte še SalesAgent in DelegationAgent |