MCPcopy
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_promptMethod · 0.45
convert_promptMethod · 0.45
test_context.pyFile · 0.45
test_prompt_falsy_varsFunction · 0.45
streamMethod · 0.45
astreamMethod · 0.45
generate_promptMethod · 0.45
agenerate_promptMethod · 0.45
formatMethod · 0.45

Calls

no outgoing calls

Tested by 8

test_prompt_falsy_varsFunction · 0.36
sample_gdfFunction · 0.36
test_ideationFunction · 0.36
test_critiqueFunction · 0.36
test_resolverFunction · 0.36