Workflow Template Constants (engine/template.py)

astron-agent · core/workflow/consts/engine/template.py · python · Apache-2.0
ai, automation, lang:python, tag:constants, tag:templates

Defines template types and split strategies for workflow processing engines. Use when configuring AI agent template parsing.

# Source: https://github.com/iflytek/astron-agent | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
# Provided via justclaw.it.com; keep this notice with the code.
"""
Template-related constants.

This module defines template types and split types for template processing
in the workflow system.
"""

from enum import Enum


class TemplateType(Enum):
    """
    Template type enumeration.

    Defines different types of templates used in the workflow system.
    """

    NORMAL = 1
    REASONING = 2


class TemplateSplitType(Enum):
    """
    Template split type enumeration.

    When splitting templates, this enum marks the types of different parts:
    - 0: Constants that can be output directly
    - 1: Variables that need to wait for values
   

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key