fix: delete agent 500 error + dynamic personality + deployment guide
- Fix delete agent 500: clean up FK records (agent_llm_logs, permissions, schedules, executions, team_members) and unbind goals/tasks before delete - Remove hardcoded personality templates in Android, replace with dynamic system prompt generation from name + description - Set promptSectionsEnabled=false to bypass PromptComposer for personality - Add Tencent Cloud Linux deployment guide (Docker Compose) - Accumulated backend service updates, frontend UI fixes, Android app changes Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -58,9 +58,10 @@ async def create_agent_from_template_v1(
|
||||
current_user: User = Depends(get_current_user),
|
||||
):
|
||||
try:
|
||||
workflow_config = build_workflow_for_template(
|
||||
body.template_id, body.parameters or {}
|
||||
)
|
||||
params = dict(body.parameters or {})
|
||||
if body.contract_id:
|
||||
params["contract_id"] = body.contract_id
|
||||
workflow_config = build_workflow_for_template(body.template_id, params)
|
||||
except ValueError as e:
|
||||
raise ValidationError(str(e))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user