{% extends "base.html" %} {% from "_macros.html" import icon %} {% block title %}Шаблоны пайплайнов — TG Agent{% endblock %} {% block content %}

Шаблоны пайплайнов

{{ icon("back") }} Назад к пайплайнам

Выберите шаблон для создания нового пайплайна. Шаблоны содержат готовые наборы нод — вы можете настроить их после создания с помощью AI-редактора.

{% set category_icons = { "content": "bi-pencil-square", "automation": "bi-gear", "moderation": "bi-shield-check", "monitoring": "bi-eye", } %} {% set node_icons = { "source": "bi-box-arrow-in-right", "retrieve_context": "bi-search", "llm_generate": "bi-stars", "llm_refine": "bi-pencil", "image_generate": "bi-image", "publish": "bi-send", "notify": "bi-bell", "filter": "bi-funnel", "delay": "bi-clock", "react": "bi-emoji-smile", "forward": "bi-reply-all", "delete_message": "bi-trash", "fetch_messages": "bi-cloud-download", "condition": "bi-signpost-split", "search_query_trigger": "bi-search", "agent_loop": "bi-robot", } %} {% set categories = [] %} {% for tpl in templates %} {% if tpl.category not in categories %} {% set _ = categories.append(tpl.category) %} {% endif %} {% endfor %} {% for category in categories %}

{{ category|capitalize }}

{% for tpl in templates %} {% if tpl.category == category %} {# Determine template capabilities #} {% set node_types = [] %} {% for node in tpl.template_json.nodes %} {% set _ = node_types.append(node.type.value) %} {% endfor %} {% set uses_llm = "llm_generate" in node_types or "llm_refine" in node_types or "agent_loop" in node_types %} {% set needs_target = "forward" in node_types or "publish" in node_types %}
{{ tpl.name }} {% if tpl.is_builtin %}builtin{% endif %}

{{ tpl.description }}

{% for node in tpl.template_json.nodes %} {{ node.name }} {% endfor %}
{% if uses_llm %} Требует LLM {% endif %}
{{ tpl.template_json.to_json() }}
{% endif %} {% endfor %}
{% endfor %} {% if not templates %}

Шаблонов пока нет.

{% endif %} {% endblock %}