def pydantic_to_guidance_output_template(cls: Type[BaseModel]) -> str:
    """Convert a pydantic model to guidance output template."""
    return json_schema_to_guidance_output_template(
        cls.model_json_schema(), root=cls.model_json_schema()
    )
Convert a pydantic model to guidance output template.
llama-index-core/llama_index/core/prompts/guidance_utils.py