Files
aiagent/backend/app/tasks/agent_tasks.py

13 lines
299 B
Python
Raw Normal View History

2026-01-19 00:09:36 +08:00
"""
Agent任务
"""
from celery import Task
from app.core.celery_app import celery_app
@celery_app.task(bind=True)
def execute_agent_task(self, agent_id: str, input_data: dict):
"""执行Agent任务"""
# TODO: 实现Agent执行逻辑
return {"status": "pending", "agent_id": agent_id}