Project 14: Newsletter Signup Agent
AI Engineer
Builds on these lessons
Current Task
Objective
AgentExecutor runs the reason-act-observe loop: the model picks a tool, the executor runs it, and the result feeds back in until the model has a final answer.
Task: build an AgentExecutor from an agent and its tools, then print how many tools it has access to.
index.py
from langchain.agents import AgentExecutor
agent_executor = AgentExecutor(agent=agent, tools=[subscribe_tool, unsubscribe_tool], verbose=False)
print(len(agent_executor.tools))
* Hint: Correct characters turn green, incorrect ones turn red.
Live Preview
🖼️
Verify your code to see the preview