Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/langchain-ai/langchain
/ to_string
Method
to_string
libs/core/langchain_core/prompt_values.py:41–42 ·
view source on GitHub ↗
Return prompt value as string.
(self)
Source
from the content-addressed store, hash-verified
39
40
@abstractmethod
41
def
to_string(self) -> str:
42
""
"Return prompt value as string."
""
43
44
@abstractmethod
45
def
to_messages(self) -> List[BaseMessage]:
Callers
15
_create_chat_prompt
Method · 0.45
convert_prompt
Method · 0.45
test_context.py
File · 0.45
test_chat_prompt_template
Function · 0.45
test_prompt_invoke_with_metadata
Function · 0.45
test_prompt_ainvoke_with_metadata
Function · 0.45
test_prompt_falsy_vars
Function · 0.45
stream
Method · 0.45
astream
Method · 0.45
generate_prompt
Method · 0.45
agenerate_prompt
Method · 0.45
format
Method · 0.45
Calls
no outgoing calls
Tested by
8
test_chat_prompt_template
Function · 0.36
test_prompt_invoke_with_metadata
Function · 0.36
test_prompt_ainvoke_with_metadata
Function · 0.36
test_prompt_falsy_vars
Function · 0.36
sample_gdf
Function · 0.36
test_ideation
Function · 0.36
test_critique
Function · 0.36
test_resolver
Function · 0.36