Source code for novelai_image_mcp.schemas
"""Structured-output models for tools that compute their own results.
Tools that pass a NovelAI payload straight through keep returning
``dict[str, Any]`` (an object return already yields structured content, and
modelling an upstream payload risks dropping unknown fields). The models here
cover only the shapes this server computes itself, so their output schema is
precise and stable.
"""
from __future__ import annotations
from pydantic import BaseModel, ConfigDict
[docs]
class AnlasEstimate(BaseModel):
"""Anlas cost estimate returned by ``estimate_anlas_cost``."""
anlas: int
opus_free_sample: bool
__all__ = ["AnlasEstimate", "TagSuggestion"]