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