update agent docs (#10894)

This commit is contained in:
Harrison Chase
2023-09-21 09:09:33 -07:00
committed by GitHub
parent 40e836c67e
commit a1ade48e8f
11 changed files with 222 additions and 69 deletions

View File

@@ -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 (

View File

@@ -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