refactor(automation): rename schema config to params, drop dead fields

This commit is contained in:
CREDO23 2026-05-27 13:29:26 +02:00
parent c8a89ccac8
commit 9fa35f21cf
11 changed files with 31 additions and 37 deletions

View file

@ -1,4 +1,4 @@
"""``AgentTaskActionConfig`` — config for the ``agent_task`` action type."""
"""``AgentTaskActionParams`` — params for the ``agent_task`` action type."""
from __future__ import annotations
@ -7,21 +7,21 @@ from typing import Any
from pydantic import BaseModel, ConfigDict, Field
class AgentTaskActionConfig(BaseModel):
"""Run a LangGraph Deep Agent restricted to a scoped capability list."""
class AgentTaskActionParams(BaseModel):
"""Run an agent task with a scoped tool allowlist."""
model_config = ConfigDict(extra="forbid")
prompt: str = Field(..., min_length=1, description="Task prompt; Jinja-rendered.")
prompt: str = Field(..., min_length=1, description="Task prompt; rendered at execute time.")
tools: list[str] = Field(
default_factory=list,
description="Capability IDs the agent may call. Empty = no tool access.",
description="Tool identifiers the agent may call. Empty = no tool access.",
)
model: str | None = Field(
default=None,
description="LiteLLM model id. Defaults to the search space's agent_llm_id.",
description="Model identifier. Defaults to the search space's agent_llm_id.",
)
output_schema: dict[str, Any] | None = Field(
default=None,
description="JSON Schema the agent must return. Recommended.",
description="JSON Schema (draft 2020-12) the agent must return. Recommended.",
)