Skip to content

Commit

Permalink
simplified example
Browse files Browse the repository at this point in the history
  • Loading branch information
shhlife committed Nov 25, 2024
1 parent eeee5ef commit cdc7cc6
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions examples/tools/example_agent.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
import os

from dotenv import load_dotenv

from griptape.file.tools.open_file_tool import OpenFileTool
from griptape.structures import Agent

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?")

0 comments on commit cdc7cc6

Please sign in to comment.