diff --git a/docs/docs/understanding/agent/tools.md b/docs/docs/understanding/agent/tools.md
index ea48a4fca42631b22f51ba2096e4e3498fd6c05a..47f940956bd948aa038541fafbba9cff602d38ec 100644
--- a/docs/docs/understanding/agent/tools.md
+++ b/docs/docs/understanding/agent/tools.md
@@ -33,6 +33,13 @@ finance_tools.extend([multiply, add])
 And we'll ask a different question than last time, necessitating the use of the new tools:
 
 ```python
+workflow = AgentWorkflow.from_tools_or_functions(
+    finance_tools,
+    llm=OpenAI(model="gpt-4o-mini"),
+    system_prompt="You are a helpful assistant.",
+)
+
+
 async def main():
     response = await workflow.run(
         user_msg="What's the current stock price of NVIDIA?"