mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-10 07:21:03 +00:00
update agent docs (#10894)
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
"""Logic for formatting intermediate steps into an agent scratchpad.
|
||||
|
||||
Intermediate steps refers to the list of (AgentAction, observation) tuples
|
||||
that result from previous iterations of the agent.
|
||||
Depending on the prompting strategy you are using, you may want to format these
|
||||
differently before passing them into the LLM.
|
||||
"""
|
||||
from langchain.agents.format_scratchpad.log import format_log_to_str
|
||||
from langchain.agents.format_scratchpad.log_to_messages import format_log_to_messages
|
||||
from langchain.agents.format_scratchpad.openai_functions import (
|
||||
|
@@ -1,3 +1,9 @@
|
||||
"""Different methods for rendering Tools to be passed to LLMs.
|
||||
|
||||
Depending on the LLM you are using and the prompting strategy you are using,
|
||||
you may want Tools to be rendered in a different way.
|
||||
This module contains various ways to render tools.
|
||||
"""
|
||||
from typing import List
|
||||
|
||||
from langchain.tools.base import BaseTool
|
||||
|
Reference in New Issue
Block a user