LangChain
核心
社区
实验性
文本分割器
ai21
airbyte
anthropic
astradb
aws
azure-dynamic-sessions
chroma
cohere
couchbase
elasticsearch
exa
fireworks
google-community
google-genai
google-vertexai
groq
huggingface
ibm
milvus
mistralai
mongodb
nomic
nvidia-ai-endpoints
ollama
openai
pinecone
postgres
prompty
qdrant
robocorp
together
unstructured
voyageai
weaviate
合作伙伴库
ai21
airbyte
anthropic
astradb
aws
azure-dynamic-sessions
chroma
cohere
couchbase
elasticsearch
exa
fireworks
google-community
google-genai
google-vertexai
groq
huggingface
ibm
milvus
mistralai
mongodb
nomic
nvidia-ai-endpoints
ollama
openai
pinecone
postgres
promty
qdrant
robocorp
together
unstructured
voyageai
weaviate
文档
切换菜单
langchain_core.callbacks.manager
.shielded
shielded()
langchain_core.callbacks.manager
.shielded
¶
langchain_core.callbacks.manager.
shielded
(
func
:
Func
)
→
Func
[源代码]
¶
确保await方法始终免受取消影响。
参数
func
(
可调用对象
) – 要保护的功能。
返回
保护过的功能
返回类型
可调用对象