mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-24 20:09:01 +00:00
docs: udpated api reference (#25172)
- Move the API reference into the vercel build - Update api reference organization and styling
This commit is contained in:
@@ -8,10 +8,10 @@ from langchain.schema import (
|
||||
BaseChatMessageHistory,
|
||||
Document,
|
||||
)
|
||||
from langchain.tools.base import BaseTool
|
||||
from langchain_community.tools.human.tool import HumanInputRun
|
||||
from langchain_core.language_models import BaseChatModel
|
||||
from langchain_core.messages import AIMessage, HumanMessage, SystemMessage
|
||||
from langchain_core.tools import BaseTool
|
||||
from langchain_core.vectorstores import VectorStoreRetriever
|
||||
|
||||
from langchain_experimental.autonomous_agents.autogpt.output_parser import (
|
||||
|
@@ -1,11 +1,11 @@
|
||||
import time
|
||||
from typing import Any, Callable, List, cast
|
||||
|
||||
from langchain.tools.base import BaseTool
|
||||
from langchain_core.messages import BaseMessage, HumanMessage, SystemMessage
|
||||
from langchain_core.prompts.chat import (
|
||||
BaseChatPromptTemplate,
|
||||
)
|
||||
from langchain_core.tools import BaseTool
|
||||
from langchain_core.vectorstores import VectorStoreRetriever
|
||||
|
||||
from langchain_experimental.autonomous_agents.autogpt.prompt_generator import get_prompt
|
||||
|
@@ -1,7 +1,7 @@
|
||||
import json
|
||||
from typing import List
|
||||
|
||||
from langchain.tools.base import BaseTool
|
||||
from langchain_core.tools import BaseTool
|
||||
|
||||
FINISH_NAME = "finish"
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
from typing import List
|
||||
|
||||
from langchain.base_language import BaseLanguageModel
|
||||
from langchain.tools.base import BaseTool
|
||||
from langchain_core.tools import BaseTool
|
||||
|
||||
from langchain_experimental.autonomous_agents.hugginggpt.repsonse_generator import (
|
||||
load_response_generator,
|
||||
|
@@ -3,7 +3,7 @@ import uuid
|
||||
from typing import Dict, List
|
||||
|
||||
import numpy as np
|
||||
from langchain.tools.base import BaseTool
|
||||
from langchain_core.tools import BaseTool
|
||||
|
||||
from langchain_experimental.autonomous_agents.hugginggpt.task_planner import Plan
|
||||
|
||||
|
@@ -5,7 +5,6 @@ from typing import Any, Dict, List, Optional, Union
|
||||
|
||||
from langchain.base_language import BaseLanguageModel
|
||||
from langchain.chains import LLMChain
|
||||
from langchain.tools.base import BaseTool
|
||||
from langchain_core.callbacks.manager import Callbacks
|
||||
from langchain_core.prompts.chat import (
|
||||
AIMessagePromptTemplate,
|
||||
@@ -13,6 +12,7 @@ from langchain_core.prompts.chat import (
|
||||
HumanMessagePromptTemplate,
|
||||
SystemMessagePromptTemplate,
|
||||
)
|
||||
from langchain_core.tools import BaseTool
|
||||
|
||||
from langchain_experimental.pydantic_v1 import BaseModel
|
||||
|
||||
|
@@ -2,8 +2,8 @@ from typing import List
|
||||
|
||||
from langchain.agents.agent import AgentExecutor
|
||||
from langchain.agents.structured_chat.base import StructuredChatAgent
|
||||
from langchain.tools import BaseTool
|
||||
from langchain_core.language_models import BaseLanguageModel
|
||||
from langchain_core.tools import BaseTool
|
||||
|
||||
from langchain_experimental.plan_and_execute.executors.base import ChainExecutor
|
||||
|
||||
|
@@ -5,7 +5,7 @@ from __future__ import annotations
|
||||
from typing import TYPE_CHECKING, Union
|
||||
|
||||
from langchain.pydantic_v1 import Field, root_validator
|
||||
from langchain.tools.base import BaseTool
|
||||
from langchain_core.tools import BaseTool
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from transformers import Pipeline
|
||||
|
@@ -8,12 +8,12 @@ from io import StringIO
|
||||
from typing import Any, Dict, Optional, Type
|
||||
|
||||
from langchain.pydantic_v1 import BaseModel, Field, root_validator
|
||||
from langchain.tools.base import BaseTool
|
||||
from langchain_core.callbacks.manager import (
|
||||
AsyncCallbackManagerForToolRun,
|
||||
CallbackManagerForToolRun,
|
||||
)
|
||||
from langchain_core.runnables.config import run_in_executor
|
||||
from langchain_core.tools import BaseTool
|
||||
|
||||
from langchain_experimental.utilities.python import PythonREPL
|
||||
|
||||
|
Reference in New Issue
Block a user