Share via


PromptRenderingResult Class

Represents the result of rendering a prompt template.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

Constructor

PromptRenderingResult(*, rendered_prompt: str, ai_service: AIServiceClientBase, execution_settings: PromptExecutionSettings, function_result: FunctionResult | None = None)

Keyword-Only Parameters

Name Description
rendered_prompt
Required
ai_service
Required
execution_settings
Required
function_result
Required

Attributes

rendered_prompt

The rendered prompt.

rendered_prompt: str

ai_service

The AI service that rendered the prompt.

ai_service: AIServiceClientBase

execution_settings

The execution settings for the prompt.

execution_settings: PromptExecutionSettings

function_result

The result of executing the prompt.

function_result: FunctionResult | None