Files
microsoft--semantic-kernel/python/semantic_kernel/connectors/utils/structured_output_schema.py
T
wehub-resource-sync b957a53def
CodeQL / Analyze (csharp) (push) Waiting to run
CodeQL / Analyze (python) (push) Waiting to run
chore: import upstream snapshot with attribution
2026-07-13 13:21:23 +08:00

12 lines
370 B
Python

# Copyright (c) Microsoft. All rights reserved.
from typing import Any
def generate_structured_output_response_format_schema(name: str, schema: dict[str, Any]) -> dict[str, Any]:
"""Generate the structured output response format schema."""
return {
"type": "json_schema",
"json_schema": {"name": name, "strict": True, "schema": schema},
}