"""Synthetic AI client for the v2 audit integration tests.""" from __future__ import annotations from typing import Any, List Metadata = dict[str, Any] History = List[dict[str, Any]] def send_result() -> Metadata: data: Metadata = {"role": "user", "content": "hello"} return data def append_history() -> History: data: History = [] return data def to_list(history: History) -> History: out: History = [] for entry in history: role = entry["role"] content = entry["content"] out.append({"role": role, "content": content}) return out def process(metadata: Metadata) -> str: role = metadata["role"] return role