# DO NOT EDIT — generated by _gen/convenience_emitter.py from convenience.json.
# Regenerate with: cd clients/v2 && python -c "from _gen.convenience_emitter import generate_convenience; generate_convenience()"

"""Llms API namespace — generated from convenience.json."""

from __future__ import annotations

from typing import Any

from goodmem._api_base.llms import LlmsAPIBase, AsyncLlmsAPIBase


# --- Convenience imports ---
from goodmem._transforms import apply_convenience_transforms
from goodmem._overrides import (
    unwrap_create_llm_response,
)
from goodmem.models.llm_response import LLMResponse


class LlmsAPI(LlmsAPIBase):
    def create(self, **kwargs: Any) -> LLMResponse:
        apply_convenience_transforms(("llms", "create"), kwargs)
        created = super().create(**kwargs)
        return unwrap_create_llm_response(created)



class AsyncLlmsAPI(AsyncLlmsAPIBase):
    async def create(self, **kwargs: Any) -> LLMResponse:
        apply_convenience_transforms(("llms", "create"), kwargs)
        created = await super().create(**kwargs)
        return unwrap_create_llm_response(created)

