File size: 2,367 Bytes
715a633 af3a044 715a633 af3a044 715a633 af3a044 715a633 af3a044 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 |
"""ANKELODON: Core AI Agent Package.
Import key components for easy use:
from src import workflow, llm
"""
"""
Ankelodon Multi-Agent System – package init.
Экспортирует удобный публичный API для работы с графом, состоянием агента,
схемами и конфигом. Клади этот файл в директорию, где лежат:
agent.py, config.py, nodes.py, schemas.py, state.py
(у тебя это src/).
"""
# Версия пакета (по желанию обновляй вручную/из git)
__version__ = "0.1.0"
# ── Граф/сборка
from .agent import build_workflow
# ── Состояние
from .state import AgentState
# ── Схемы/модели
from .schemas import (
ComplexityLevel,
CritiqueFeedback,
PlannerPlan,
PlanStep,
ExecutionReport,
ToolExecution,
TaskType,
)
# ── Конфиг/LLM/Tools
from .config import (
config,
TOOLS,
DEBUGGING_TOOL_NODE,
llm,
llm_deterministic,
planner_llm,
llm_with_tools,
llm_criticist,
llm_reasoning,
)
# ── Узлы/роутеры (если нужно вызывать напрямую или для тестов)
from .nodes import (
query_input,
complexity_assessor,
planner,
agent,
simple_executor,
critic_evaluator,
replanner,
enhanced_finalizer,
# роутеры
should_continue,
should_use_planning,
should_replan,
should_use_tools_simple_executor,
)
__all__ = [
# версия
"__version__",
# сборка графа
"build_workflow",
# состояние
"AgentState",
# схемы
"ComplexityLevel",
"CritiqueFeedback",
"PlannerPlan",
"PlanStep",
"ExecutionReport",
"ToolExecution",
"TaskType",
# конфиг/модели/тулы
"config",
"TOOLS",
"DEBUGGING_TOOL_NODE",
"llm",
"llm_deterministic",
"planner_llm",
"llm_with_tools",
"llm_criticist",
"llm_reasoning",
# узлы и роутеры
"query_input",
"complexity_assessor",
"planner",
"agent",
"simple_executor",
"critic_evaluator",
"replanner",
"enhanced_finalizer",
"should_continue",
"should_use_planning",
"should_replan",
"should_use_tools_simple_executor",
]
|