Dummy Agent#
Dummy agent for when you need to provide an agent but don’t care for a real one.
Useful for when you want to use langchain’s AgentExecutor but not Agent. Errors out on attempted usage to ensure that you are not actually using it.
[1]:
from langchain_contrib.agents import DummyAgent
try:
agent = DummyAgent()
agent._extract_tool_and_input("blah blah")
except Exception as e:
print(f"Error: {e}")
Error: You're using the dummy Agent