LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • Client
  • AsyncClient
  • Run Helpers
  • Run Trees
  • Evaluation
  • Schemas
  • Utilities
  • Wrappers
  • Anonymizer
  • Testing
  • Expect API
  • Middleware
  • Pytest Plugin
  • Deployment SDK
⌘I

Chat LangChain

What can I help with?

Enter to send·Shift+Enter new line

Menu

OverviewClientAsyncClientRun HelpersRun TreesEvaluationSchemasUtilitiesWrappersAnonymizerTestingExpect APIMiddlewarePytest PluginDeployment SDK
Language
Theme
Pythonlangsmithutilsget_invalid_prompt_identifier_msg
Function●Since v0.16

get_invalid_prompt_identifier_msg

Copy
get_invalid_prompt_identifier_msg(
    identifier: str,
) -> str
View source on GitHub

Parameters

NameTypeDescription
identifier*str

The invalid identifier that was provided.

Get the error message for an invalid prompt identifier.

Used consistently across the codebase when parsing prompt identifiers fails.