chore: import upstream snapshot with attribution
CodeQL / Analyze (csharp) (push) Waiting to run
CodeQL / Analyze (python) (push) Waiting to run

This commit is contained in:
wehub-resource-sync
2026-07-13 13:21:23 +08:00
commit b957a53def
5423 changed files with 863745 additions and 0 deletions
@@ -0,0 +1,24 @@
# Copyright (c) Microsoft. All rights reserved.
import logging
from typing import ClassVar
from pydantic import field_validator
from semantic_kernel.kernel_pydantic import KernelBaseModel
from semantic_kernel.template_engine.blocks.block_types import BlockTypes
logger: logging.Logger = logging.getLogger(__name__)
class Block(KernelBaseModel):
"""A block."""
type: ClassVar[BlockTypes] = BlockTypes.UNDEFINED
content: str
@field_validator("content", mode="before")
@classmethod
def content_strip(cls, content: str):
"""Strip the content of the block."""
return content.strip()