第一次提交
This commit is contained in:
12
backend/app/tasks/agent_tasks.py
Normal file
12
backend/app/tasks/agent_tasks.py
Normal file
@@ -0,0 +1,12 @@
|
||||
"""
|
||||
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}
|
||||
Reference in New Issue
Block a user