2026-05-27 17:07:20 +02:00
|
|
|
"""``agent_task`` ``ActionDefinition`` registration."""
|
2026-05-27 13:58:57 +02:00
|
|
|
|
|
|
|
|
from __future__ import annotations
|
|
|
|
|
|
2026-05-27 17:07:20 +02:00
|
|
|
from ..store import register_action
|
|
|
|
|
from ..types import ActionDefinition
|
|
|
|
|
from .factory import build_handler
|
|
|
|
|
from .params import AgentTaskActionParams
|
2026-05-27 13:58:57 +02:00
|
|
|
|
|
|
|
|
AGENT_TASK_ACTION = ActionDefinition(
|
|
|
|
|
type="agent_task",
|
|
|
|
|
name="Agent task",
|
2026-05-27 17:02:44 +02:00
|
|
|
description="Run a multi_agent_chat turn from an automation step.",
|
2026-05-27 21:21:43 +02:00
|
|
|
params_model=AgentTaskActionParams,
|
2026-05-27 17:02:44 +02:00
|
|
|
build_handler=build_handler,
|
2026-05-27 13:58:57 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
register_action(AGENT_TASK_ACTION)
|