StringPromptValue#

class langchain_core.prompt_values.StringPromptValue[source]#

Bases: PromptValue

String prompt value.

param text: str [Required]#

Prompt text.

param type: Literal['StringPromptValue'] = 'StringPromptValue'#
to_messages() list[BaseMessage][source]#

Return prompt as messages.

Return type:

list[BaseMessage]

to_string() str[source]#

Return prompt as string.

Return type:

str