From cdc7cc6d53fbfc3e9a00447d1d1b866f25ea186d Mon Sep 17 00:00:00 2001 From: Jason Schleifer Date: Tue, 26 Nov 2024 07:28:04 +1300 Subject: [PATCH] simplified example --- examples/tools/example_agent.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/examples/tools/example_agent.py b/examples/tools/example_agent.py index 95049f5..73515a4 100644 --- a/examples/tools/example_agent.py +++ b/examples/tools/example_agent.py @@ -1,5 +1,3 @@ -import os - from dotenv import load_dotenv from griptape.file.tools.open_file_tool import OpenFileTool @@ -7,10 +5,7 @@ load_dotenv() -script_dir = os.path.dirname(os.path.abspath(__file__)) -parent_dir = os.path.dirname(script_dir) -images_dir = os.path.join(parent_dir, "media") agent = Agent(tools=[OpenFileTool()]) -agent.run(f"Show me the image at {images_dir}/capybara_cloud.jpeg") +agent.run("Can you show me the image at examples/media/capybara_cloud.jpeg?")