def __init__(
self,
*,
uuid: UUID | None = None,
code: str,
language: str,
code_block_count: int,
recipient: Union["Agent", str],
):
super().__init__(
uuid=uuid,
code=code,
language=language,
code_block_count=code_block_count,
recipient=recipient.name if hasattr(recipient, "name") else recipient,
)