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
prompty
qdrant
robocorp
together
unstructured
voyageai
weaviate
文档
切换菜单
langchain_community.tools.bearly.tool
.head_file
head_file()
langchain_community.tools.bearly.tool
.head_file
¶
langchain_community.tools.bearly.tool.
head_file
(
path
:
str
,
n
:
int
)
→
List
[
str
]
[source]
¶
获取文件的前n行。
参数
path
(
str
) –
n
(
int
) –
返回类型
str
列表