mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-08-25 17:12:26 +02:00
634 B
634 B
@langchain/langgraph-sdk / getApiKey
Function: getApiKey()
getApiKey(
apiKey?):undefined|string
Defined in: client.ts:122
Get the API key from the environment. Precedence:
- explicit argument
- LANGGRAPH_API_KEY
- LANGSMITH_API_KEY
- LANGCHAIN_API_KEY
Parameters
apiKey?
string
Optional API key provided as an argument
Returns
undefined | string
The API key if found, otherwise undefined